You are here

overview-page-patterns.yml in UI Patterns 8

modules/ui_patterns_library/tests/fixtures/overview-page-patterns.yml

File

modules/ui_patterns_library/tests/fixtures/overview-page-patterns.yml
View source
  1. - name: 'simple'
  2. label: 'Simple'
  3. description: 'A simple pattern'
  4. has_variants: false
  5. preview: '<div class="pattern-simple">Simple pattern field</div>'
  6. fields:
  7. - name: 'field'
  8. type: 'string'
  9. label: 'Field'
  10. description: 'Field description'
  11. - name: 'with_variants'
  12. label: 'With variants'
  13. description: 'Pattern with variants'
  14. has_variants: true
  15. preview: ~
  16. fields:
  17. - name: 'field'
  18. type: 'string'
  19. label: 'Field'
  20. description: 'Field description'
  21. variants:
  22. - meta:
  23. name: 'one'
  24. label: 'One'
  25. description: 'First variant'
  26. preview: '<div class="pattern-with-variant-one">With variants pattern field</div>'
  27. - meta:
  28. name: 'two'
  29. label: 'Two'
  30. description: 'Second variant'
  31. preview: '<div class="pattern-with-variant-two">With variants pattern field</div>'
  32. - name: 'with_custom_theme_hook'
  33. theme hook: 'custom_theme_hook'
  34. label: 'With custom theme hook'
  35. description: 'Pattern with custom theme hook.'
  36. has_variants: false
  37. preview: 'With custom theme hook: Pattern field value'
  38. fields:
  39. - name: 'field'
  40. type: 'string'
  41. label: 'Field'
  42. description: 'Field description'
  43. - name: 'button'
  44. label: 'Button'
  45. description: 'A simple button.'
  46. has_variants: true
  47. preview: ~
  48. fields:
  49. - name: 'title'
  50. type: 'text'
  51. label: 'Label'
  52. description: 'The button label'
  53. preview: 'Submit'
  54. - name: 'url'
  55. type: 'text'
  56. label: 'URL'
  57. description: 'The button URL'
  58. preview: 'http://example.com'
  59. variants:
  60. - meta:
  61. name: 'default'
  62. label: 'Default'
  63. description: 'A default button, nothing to see here.'
  64. preview: '<a href="http://example.com" target="_blank" class="btn btn-default button">Submit</a>'
  65. - meta:
  66. name: 'primary'
  67. label: 'Primary'
  68. description: 'A primary button.'
  69. preview: '<a href="http://example.com" target="_blank" class="btn btn-primary button">Submit</a>'
  70. - meta:
  71. name: 'danger'
  72. label: 'Danger'
  73. description: 'A button for dangerous operations.'
  74. preview: '<a href="http://example.com" target="_blank" class="btn btn-danger button">Delete</a>'
  75. - name: 'with_local_libraries'
  76. label: 'With local libraries'
  77. description: 'Pattern defining local libraries'
  78. has_variants: false
  79. preview: 'With local libraries: Pattern field value'
  80. fields:
  81. - name: 'field'
  82. type: 'string'
  83. label: 'Field'
  84. description: 'Field description'
  85. - name: 'with_raw_template'
  86. label: 'With raw template'
  87. description: 'Pattern using raw Twig template.'
  88. has_variants: false
  89. preview: 'With raw template: Pattern field value'
  90. fields:
  91. - name: 'field'
  92. type: 'string'
  93. label: 'Field'
  94. description: 'Field description'