@warp-ds/elements 2.9.2-next.1 → 2.10.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +4 -0
  2. package/dist/api.js +1 -1
  3. package/dist/api.js.map +1 -1
  4. package/dist/custom-elements.json +508 -145
  5. package/dist/docs/affix/affix.md +2 -2
  6. package/dist/docs/affix/styling.md +1 -0
  7. package/dist/docs/alert/alert.md +2 -2
  8. package/dist/docs/alert/styling.md +1 -0
  9. package/dist/docs/attention/attention.md +2 -0
  10. package/dist/docs/attention/styling.md +1 -0
  11. package/dist/docs/badge/badge.md +2 -0
  12. package/dist/docs/badge/styling.md +1 -0
  13. package/dist/docs/box/box.md +22 -40
  14. package/dist/docs/box/examples.md +20 -38
  15. package/dist/docs/box/styling.md +1 -0
  16. package/dist/docs/breadcrumbs/breadcrumbs.md +8 -2
  17. package/dist/docs/breadcrumbs/examples.md +7 -1
  18. package/dist/docs/breadcrumbs/styling.md +1 -0
  19. package/dist/docs/button/accessibility.md +42 -0
  20. package/dist/docs/button/api.md +63 -39
  21. package/dist/docs/button/button.md +395 -42
  22. package/dist/docs/button/examples.md +126 -0
  23. package/dist/docs/button/styling.md +72 -0
  24. package/dist/docs/button/usage.md +89 -0
  25. package/dist/docs/card/accessibility.md +74 -0
  26. package/dist/docs/card/api.md +9 -3
  27. package/dist/docs/card/card.md +236 -5
  28. package/dist/docs/card/examples.md +75 -0
  29. package/dist/docs/card/styling.md +1 -0
  30. package/dist/docs/card/usage.md +76 -0
  31. package/dist/docs/checkbox/api.md +128 -0
  32. package/dist/docs/checkbox/checkbox.md +134 -0
  33. package/dist/docs/checkbox-group/accessibility.md +71 -0
  34. package/dist/docs/checkbox-group/api.md +79 -0
  35. package/dist/docs/checkbox-group/checkbox-group.md +492 -0
  36. package/dist/docs/checkbox-group/examples.md +105 -0
  37. package/dist/docs/checkbox-group/styling.md +132 -0
  38. package/dist/docs/checkbox-group/usage.md +95 -0
  39. package/dist/docs/combobox/accessibility.md +71 -0
  40. package/dist/docs/combobox/api.md +60 -30
  41. package/dist/docs/combobox/combobox.md +205 -32
  42. package/dist/docs/combobox/examples.md +44 -0
  43. package/dist/docs/combobox/styling.md +1 -0
  44. package/dist/docs/combobox/usage.md +28 -0
  45. package/dist/docs/datepicker/accessibility.md +25 -0
  46. package/dist/docs/datepicker/api.md +22 -14
  47. package/dist/docs/datepicker/datepicker.md +208 -16
  48. package/dist/docs/datepicker/examples.md +75 -0
  49. package/dist/docs/datepicker/styling.md +1 -0
  50. package/dist/docs/datepicker/usage.md +84 -0
  51. package/dist/docs/expandable/api.md +20 -32
  52. package/dist/docs/expandable/examples.md +54 -0
  53. package/dist/docs/expandable/expandable.md +74 -32
  54. package/dist/docs/expandable/styling.md +1 -0
  55. package/dist/docs/icon/accessibility.md +5 -0
  56. package/dist/docs/icon/api.md +43 -0
  57. package/dist/docs/icon/examples.md +45 -0
  58. package/dist/docs/icon/icon.md +115 -0
  59. package/dist/docs/icon/styling.md +1 -0
  60. package/dist/docs/icon/usage.md +11 -0
  61. package/dist/docs/index.md +46 -0
  62. package/dist/docs/link/api.md +18 -22
  63. package/dist/docs/link/examples.md +75 -0
  64. package/dist/docs/link/link.md +113 -24
  65. package/dist/docs/link/styling.md +1 -0
  66. package/dist/docs/link/usage.md +18 -0
  67. package/dist/docs/modal/api.md +51 -0
  68. package/dist/docs/modal/examples.md +67 -0
  69. package/dist/docs/modal/modal.md +240 -0
  70. package/dist/docs/modal/styling.md +1 -0
  71. package/dist/docs/modal/usage.md +110 -0
  72. package/dist/docs/modal-footer/api.md +11 -0
  73. package/dist/docs/modal-footer/modal-footer.md +17 -0
  74. package/dist/docs/modal-header/api.md +42 -0
  75. package/dist/docs/modal-header/modal-header.md +48 -0
  76. package/dist/docs/page-indicator/api.md +6 -6
  77. package/dist/docs/page-indicator/examples.md +8 -0
  78. package/dist/docs/page-indicator/page-indicator.md +25 -6
  79. package/dist/docs/page-indicator/styling.md +1 -0
  80. package/dist/docs/page-indicator/usage.md +8 -0
  81. package/dist/docs/pagination/api.md +12 -10
  82. package/dist/docs/pagination/examples.md +20 -0
  83. package/dist/docs/pagination/pagination.md +52 -12
  84. package/dist/docs/pagination/styling.md +1 -0
  85. package/dist/docs/pagination/usage.md +18 -0
  86. package/dist/docs/pill/accessibility.md +2 -0
  87. package/dist/docs/pill/api.md +10 -26
  88. package/dist/docs/pill/examples.md +23 -0
  89. package/dist/docs/pill/pill.md +45 -28
  90. package/dist/docs/pill/styling.md +1 -0
  91. package/dist/docs/pill/usage.md +8 -0
  92. package/dist/docs/radio/radio.md +1 -7
  93. package/dist/docs/select/select.md +2 -0
  94. package/dist/docs/select/styling.md +1 -0
  95. package/dist/docs/slider/slider.md +2 -0
  96. package/dist/docs/slider/styling.md +1 -0
  97. package/dist/docs/slider-thumb/slider-thumb.md +2 -0
  98. package/dist/docs/slider-thumb/styling.md +1 -0
  99. package/dist/docs/step-indicator/step-indicator.md +2 -0
  100. package/dist/docs/step-indicator/styling.md +1 -0
  101. package/dist/docs/switch/styling.md +1 -0
  102. package/dist/docs/switch/switch.md +2 -0
  103. package/dist/docs/tabs/styling.md +1 -0
  104. package/dist/docs/tabs/tabs.md +2 -0
  105. package/dist/docs/textarea/styling.md +1 -0
  106. package/dist/docs/textarea/textarea.md +2 -0
  107. package/dist/docs/textfield/styling.md +1 -0
  108. package/dist/docs/textfield/textfield.md +2 -0
  109. package/dist/index.d.ts +950 -602
  110. package/dist/packages/affix/affix.hydration.test.js +1 -1
  111. package/dist/packages/affix/affix.js +4 -4
  112. package/dist/packages/affix/affix.js.map +4 -4
  113. package/dist/packages/alert/alert.hydration.test.js +1 -1
  114. package/dist/packages/alert/alert.js +3 -3
  115. package/dist/packages/alert/alert.js.map +3 -3
  116. package/dist/packages/attention/attention.hydration.test.js +1 -1
  117. package/dist/packages/attention/attention.js +397 -444
  118. package/dist/packages/attention/attention.js.map +4 -4
  119. package/dist/packages/attention/attention.test.js +1 -1
  120. package/dist/packages/badge/badge.hydration.test.js +1 -1
  121. package/dist/packages/box/box.hydration.test.js +1 -1
  122. package/dist/packages/box/box.js +1 -1
  123. package/dist/packages/box/box.js.map +1 -1
  124. package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +3 -2
  125. package/dist/packages/breadcrumbs/breadcrumbs.js +4 -4
  126. package/dist/packages/breadcrumbs/breadcrumbs.js.map +3 -3
  127. package/dist/packages/button/button.d.ts +54 -37
  128. package/dist/packages/button/button.hydration.test.js +1 -1
  129. package/dist/packages/button/button.js +385 -432
  130. package/dist/packages/button/button.js.map +4 -4
  131. package/dist/packages/button/button.react.stories.d.ts +2 -2
  132. package/dist/packages/button/button.stories.d.ts +29 -0
  133. package/dist/packages/button/button.stories.js +176 -2
  134. package/dist/packages/button/react.d.ts +1 -1
  135. package/dist/packages/button/styles.d.ts +22 -1
  136. package/dist/packages/button/styles.js +390 -1
  137. package/dist/packages/card/card.d.ts +9 -6
  138. package/dist/packages/card/card.hydration.test.js +1 -1
  139. package/dist/packages/card/card.js +3 -3
  140. package/dist/packages/card/card.js.map +4 -4
  141. package/dist/packages/checkbox/checkbox.d.ts +45 -14
  142. package/dist/packages/checkbox/checkbox.hydration.test.js +1 -1
  143. package/dist/packages/checkbox/checkbox.js +3 -3
  144. package/dist/packages/checkbox/checkbox.js.map +3 -3
  145. package/dist/packages/checkbox/checkbox.react.stories.d.ts +1 -1
  146. package/dist/packages/checkbox/checkbox.stories.d.ts +2 -2
  147. package/dist/packages/checkbox/checkbox.test.js +1 -1
  148. package/dist/packages/checkbox/react.d.ts +2 -2
  149. package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +1 -1
  150. package/dist/packages/checkbox-group/checkbox-group.d.ts +35 -8
  151. package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +1 -1
  152. package/dist/packages/checkbox-group/checkbox-group.js +6 -6
  153. package/dist/packages/checkbox-group/checkbox-group.js.map +4 -4
  154. package/dist/packages/checkbox-group/react.d.ts +3 -3
  155. package/dist/packages/combobox/combobox.a11y.test.js +24 -0
  156. package/dist/packages/combobox/combobox.d.ts +65 -45
  157. package/dist/packages/combobox/combobox.hydration.test.js +39 -1
  158. package/dist/packages/combobox/combobox.js +21 -21
  159. package/dist/packages/combobox/combobox.js.map +4 -4
  160. package/dist/packages/combobox/combobox.stories.js +28 -15
  161. package/dist/packages/combobox/combobox.test.js +110 -0
  162. package/dist/packages/datepicker/DatePicker.test.js +1 -1
  163. package/dist/packages/datepicker/datepicker.d.ts +22 -30
  164. package/dist/packages/datepicker/datepicker.hydration.test.js +1 -1
  165. package/dist/packages/datepicker/datepicker.js +49 -49
  166. package/dist/packages/datepicker/datepicker.js.map +4 -4
  167. package/dist/packages/datepicker/datepicker.test.js +1 -1
  168. package/dist/packages/expandable/expandable.d.ts +11 -32
  169. package/dist/packages/expandable/expandable.hydration.test.js +1 -1
  170. package/dist/packages/expandable/expandable.js +11 -11
  171. package/dist/packages/expandable/expandable.js.map +3 -3
  172. package/dist/packages/expandable/expandable.react.stories.d.ts +2 -2
  173. package/dist/packages/expandable/react.d.ts +1 -1
  174. package/dist/packages/icon/icon.d.ts +16 -4
  175. package/dist/packages/icon/icon.hydration.test.js +1 -1
  176. package/dist/packages/icon/icon.js +2 -2
  177. package/dist/packages/icon/icon.js.map +3 -3
  178. package/dist/packages/icon/icon.react.stories.d.ts +1 -1
  179. package/dist/packages/icon/react.d.ts +2 -2
  180. package/dist/packages/link/link.d.ts +15 -16
  181. package/dist/packages/link/link.hydration.test.js +1 -1
  182. package/dist/packages/link/link.js +420 -190
  183. package/dist/packages/link/link.js.map +4 -4
  184. package/dist/packages/link/link.test.js +1 -1
  185. package/dist/packages/link/styles.d.ts +5 -0
  186. package/dist/packages/link/styles.js +80 -0
  187. package/dist/packages/modal/index.d.ts +4 -4
  188. package/dist/packages/modal/index.js +4 -4
  189. package/dist/packages/modal/modal.d.ts +22 -12
  190. package/dist/packages/modal/modal.hydration.test.js +1 -1
  191. package/dist/packages/modal/modal.js +5 -5
  192. package/dist/packages/modal/modal.js.map +3 -3
  193. package/dist/packages/modal/modal.react.stories.d.ts +3 -3
  194. package/dist/packages/modal/modal.stories.d.ts +2 -1
  195. package/dist/packages/modal/modal.stories.js +85 -3
  196. package/dist/packages/modal/react.d.ts +2 -2
  197. package/dist/packages/modal-footer/modal-footer.d.ts +5 -3
  198. package/dist/packages/modal-footer/modal-footer.js +4 -4
  199. package/dist/packages/modal-footer/modal-footer.js.map +3 -3
  200. package/dist/packages/modal-footer/react.d.ts +1 -1
  201. package/dist/packages/modal-header/modal-header.d.ts +21 -11
  202. package/dist/packages/modal-header/modal-header.js +11 -9
  203. package/dist/packages/modal-header/modal-header.js.map +4 -4
  204. package/dist/packages/modal-header/react.d.ts +2 -2
  205. package/dist/packages/page-indicator/page-indicator.d.ts +9 -14
  206. package/dist/packages/page-indicator/page-indicator.hydration.test.js +1 -1
  207. package/dist/packages/page-indicator/page-indicator.js +5 -5
  208. package/dist/packages/page-indicator/page-indicator.js.map +4 -4
  209. package/dist/packages/pagination/pagination.d.ts +11 -11
  210. package/dist/packages/pagination/pagination.hydration.test.js +1 -1
  211. package/dist/packages/pagination/pagination.js +4 -4
  212. package/dist/packages/pagination/pagination.js.map +4 -4
  213. package/dist/packages/pagination/pagination.test.js +1 -1
  214. package/dist/packages/pill/pill.d.ts +14 -29
  215. package/dist/packages/pill/pill.hydration.test.js +1 -1
  216. package/dist/packages/pill/pill.js +3 -3
  217. package/dist/packages/pill/pill.js.map +4 -4
  218. package/dist/packages/pill/pill.react.stories.d.ts +2 -2
  219. package/dist/packages/pill/react.d.ts +1 -1
  220. package/dist/packages/radio/radio.hydration.test.js +1 -1
  221. package/dist/packages/radio/radio.js +3 -3
  222. package/dist/packages/radio/radio.js.map +3 -3
  223. package/dist/packages/radio/radio.test.js +1 -1
  224. package/dist/packages/radio-group/radio-group.a11y.test.js +7 -3
  225. package/dist/packages/radio-group/radio-group.hydration.test.js +6 -2
  226. package/dist/packages/radio-group/radio-group.js +11 -11
  227. package/dist/packages/radio-group/radio-group.js.map +4 -4
  228. package/dist/packages/select/select.a11y.test.js +6 -2
  229. package/dist/packages/select/select.hydration.test.js +1 -1
  230. package/dist/packages/select/select.js +7 -7
  231. package/dist/packages/select/select.js.map +4 -4
  232. package/dist/packages/select/select.test.js +4 -2
  233. package/dist/packages/slider/slider.hydration.test.js +7 -2
  234. package/dist/packages/slider/slider.js +5 -5
  235. package/dist/packages/slider/slider.js.map +4 -4
  236. package/dist/packages/slider/slider.react.stories.js +2 -2
  237. package/dist/packages/slider/slider.test.js +1 -1
  238. package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +1 -1
  239. package/dist/packages/slider-thumb/slider-thumb.js +20 -20
  240. package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
  241. package/dist/packages/step/step.hydration.test.js +1 -1
  242. package/dist/packages/step/step.js +8 -8
  243. package/dist/packages/step/step.js.map +4 -4
  244. package/dist/packages/step-indicator/step-indicator.hydration.test.js +1 -1
  245. package/dist/packages/switch/switch.a11y.test.js +1 -1
  246. package/dist/packages/switch/switch.hydration.test.js +1 -1
  247. package/dist/packages/switch/switch.js +1 -1
  248. package/dist/packages/switch/switch.js.map +1 -1
  249. package/dist/packages/tab/tab.hydration.test.js +1 -1
  250. package/dist/packages/tab/tab.js +10 -10
  251. package/dist/packages/tab/tab.js.map +2 -2
  252. package/dist/packages/tab-panel/tab-panel.hydration.test.js +1 -1
  253. package/dist/packages/tab-panel/tab-panel.js +3 -3
  254. package/dist/packages/tab-panel/tab-panel.js.map +2 -2
  255. package/dist/packages/tabs/tabs.a11y.test.js +2 -2
  256. package/dist/packages/tabs/tabs.hydration.test.js +1 -1
  257. package/dist/packages/tabs/tabs.js +1 -1
  258. package/dist/packages/tabs/tabs.js.map +2 -2
  259. package/dist/packages/tabs/tabs.test.js +4 -4
  260. package/dist/packages/textarea/textarea.hydration.test.js +1 -1
  261. package/dist/packages/textarea/textarea.js +4 -4
  262. package/dist/packages/textarea/textarea.js.map +3 -3
  263. package/dist/packages/textarea/textarea.test.js +1 -1
  264. package/dist/packages/textfield/textfield.hydration.test.js +1 -1
  265. package/dist/packages/textfield/textfield.js +1 -1
  266. package/dist/packages/textfield/textfield.js.map +1 -1
  267. package/dist/packages/textfield/textfield.test.js +1 -1
  268. package/dist/packages/toast/toast.js +6 -6
  269. package/dist/packages/toast/toast.js.map +4 -4
  270. package/dist/packages/toast/toast.stories.d.ts +1 -5
  271. package/dist/packages/toast/toast.stories.js +0 -17
  272. package/dist/packages/toast-container/toast-container.js +2 -2
  273. package/dist/packages/toast-container/toast-container.js.map +2 -2
  274. package/dist/web-types.json +509 -172
  275. package/eik/index.js +2536 -0
  276. package/package.json +18 -12
  277. package/dist/docs/radio/examples.md +0 -1
  278. package/dist/docs/radio/usage.md +0 -1
  279. package/dist/packages/button/styles/w-button.styles.d.ts +0 -1
  280. package/dist/packages/button/styles/w-button.styles.js +0 -282
  281. package/dist/packages/link/styles/w-link.styles.d.ts +0 -1
  282. package/dist/packages/link/styles/w-link.styles.js +0 -213
  283. /package/dist/docs/{radio → modal}/accessibility.md +0 -0
@@ -4,73 +4,113 @@
4
4
 
5
5
  Expandable is a layout component used for creating expandable content areas on a page.
6
6
 
7
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
8
-
9
7
  ## Usage
10
8
 
11
9
  ## Accessibility
12
10
 
13
11
  ## Examples
14
12
 
15
- ## `<w-expandable>` API
13
+ <elements-example>
16
14
 
17
- Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
15
+ ```html
16
+ <w-expandable title="I'm expandable" animated>
17
+ <p>with expanded content</p>
18
+ </w-expandable>
19
+ ```
18
20
 
19
- ### Properties
21
+ </elements-example>
20
22
 
21
- | Name | Type | Default | Summary |
22
- |-|-|-|-|
23
- | _hasTitle | `boolean` | `true` | - |
24
- | _showChevronUp | `boolean` | `false` | - |
25
- | animated | `boolean` | `false` | - |
26
- | bleed | `boolean` | `false` | - |
27
- | box | `boolean` | `false` | - |
28
- | button-class | `string` | `-` | - |
29
- | content-class | `string` | `-` | - |
30
- | expanded | `boolean` | `false` | - |
31
- | heading-level | `number` | `-` | - |
32
- | no-chevron | `boolean` | `false` | - |
33
- | title | `string` | `-` | - |
23
+ ### Expandable box
34
24
 
35
- ### Property Details
25
+ <elements-example>
36
26
 
37
- #### _hasTitle
27
+ ```html
28
+ <w-expandable title="I'm expandable" animated box>
29
+ <p>with expanded content</p>
30
+ </w-expandable>
31
+ ```
38
32
 
33
+ </elements-example>
39
34
 
40
35
 
41
- - Type: `boolean`
42
- - Default: `true`
36
+ ### Expandable box with custom title
43
37
 
44
- #### _showChevronUp
38
+ This can be used if more control over styling is needed than the `title` prop allows
45
39
 
40
+ <elements-example>
46
41
 
42
+ ```html
43
+ <w-expandable animated box>
44
+ <div slot="title" class="flex flex-row items-center">
45
+ <w-icon-bag-16></w-icon-bag-16>
46
+ <p class="ml-8 mb-0">This is a title with an icon</p>
47
+ </div>
48
+ <p>with expanded content</p>
49
+ </w-expandable>
50
+ ```
47
51
 
48
- - Type: `boolean`
49
- - Default: `false`
52
+ </elements-example>
50
53
 
51
- #### animated
52
54
 
55
+ ### With expanded prop
56
+
57
+ <elements-example>
58
+
59
+ ```html
60
+ <w-expandable animated box title="I'm expanded by default" expanded>
61
+ <p>content should be visible</p>
62
+ </w-expandable>
63
+ ```
64
+
65
+ </elements-example>
66
+
67
+ ## Styling API
68
+
69
+ ## `<w-expandable>` API
70
+
71
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
72
+
73
+ ### Properties
74
+
75
+ | Name | Type | Default | Summary |
76
+ |-|-|-|-|
77
+ | animated | `boolean` | `false` | Will animate the expansion/collapse |
78
+ | bleed | `boolean` | `false` | Will make the expandable full-width on the sm breakpoint size |
79
+ | box | `boolean` | `false` | Will make the expandable a Box |
80
+ | button-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
81
+ | content-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
82
+ | expanded | `boolean` | `false` | Controls component's expanded state |
83
+ | heading-level | `number` | `-` | Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element. |
84
+ | no-chevron | `boolean` | `false` | Controls chevron visibility |
85
+ | title | `string` | `-` | Component title. Used to display the title value which is always present regardless of whether the component is open or closed. |
86
+
87
+ ### Property Details
88
+
89
+ #### animated
53
90
 
91
+ Will animate the expansion/collapse
54
92
 
55
93
  - Type: `boolean`
56
94
  - Default: `false`
57
95
 
58
96
  #### bleed
59
97
 
60
-
98
+ Will make the expandable full-width on the sm breakpoint size
61
99
 
62
100
  - Type: `boolean`
63
101
  - Default: `false`
64
102
 
65
103
  #### box
66
104
 
67
-
105
+ Will make the expandable a Box
68
106
 
69
107
  - Type: `boolean`
70
108
  - Default: `false`
71
109
 
72
110
  #### button-class
73
111
 
112
+ **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component.
113
+
74
114
 
75
115
 
76
116
  - Type: `string`
@@ -78,6 +118,8 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
78
118
 
79
119
  #### content-class
80
120
 
121
+ **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component.
122
+
81
123
 
82
124
 
83
125
  - Type: `string`
@@ -85,28 +127,28 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
85
127
 
86
128
  #### expanded
87
129
 
88
-
130
+ Controls component's expanded state
89
131
 
90
132
  - Type: `boolean`
91
133
  - Default: `false`
92
134
 
93
135
  #### heading-level
94
136
 
95
-
137
+ Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element.
96
138
 
97
139
  - Type: `number`
98
140
  - Default: `-`
99
141
 
100
142
  #### no-chevron
101
143
 
102
-
144
+ Controls chevron visibility
103
145
 
104
146
  - Type: `boolean`
105
147
  - Default: `false`
106
148
 
107
149
  #### title
108
150
 
109
-
151
+ Component title. Used to display the title value which is always present regardless of whether the component is open or closed.
110
152
 
111
153
  - Type: `string`
112
154
  - Default: `-`
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -0,0 +1,5 @@
1
+ ## Accessibility
2
+
3
+ Icons ship with a localized descriptive `<title>`.
4
+
5
+ Note that the description is about the icon itself, not its semantic meaning in every given context. If you for example make an icon button, make sure to include an `aria-label` on your button that describes its action.
@@ -0,0 +1,43 @@
1
+ ## `<w-icon>` API
2
+
3
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
4
+
5
+ ### Properties
6
+
7
+ | Name | Type | Default | Summary |
8
+ |-|-|-|-|
9
+ | locale | `string` | `-` | Locale used for `<title>` text. |
10
+ | name | `string` | `-` | Icon filename (without .svg) |
11
+ | size | [`'small' \| 'medium' \| 'large' \| PixelValue`](#small-medium-large-pixelvalue) | `"medium"` | Size: small, medium, large or pixel value (e.g. "32px"). |
12
+
13
+ ### Property Details
14
+
15
+ #### locale
16
+
17
+ Locale used for `<title>` text.
18
+
19
+ Reads the `lang` attribute from `<html>`, falls back to 'en'.
20
+
21
+ - Type: `string`
22
+ - Default: `-`
23
+
24
+ #### name
25
+
26
+ Icon filename (without .svg)
27
+
28
+ - Type: `string`
29
+ - Default: `-`
30
+
31
+ #### size
32
+
33
+ Size: small, medium, large or pixel value (e.g. "32px").
34
+
35
+ - Type: [`'small' | 'medium' | 'large' | PixelValue`](#small-medium-large-pixelvalue)
36
+ - Default: `"medium"`
37
+
38
+ ### Types
39
+
40
+ #### 'small' | 'medium' | 'large' | PixelValue
41
+
42
+ `'small' | 'medium' | 'large' | `${number}px``
43
+
@@ -0,0 +1,45 @@
1
+ ## Examples
2
+
3
+ ### Small
4
+
5
+ <elements-example>
6
+
7
+ ```html
8
+ <w-icon name="Rocket" size="small"></w-icon>
9
+ ```
10
+
11
+ </elements-example>
12
+
13
+ ### Medium
14
+
15
+ This is the default size.
16
+
17
+ <elements-example>
18
+
19
+ ```html
20
+ <w-icon name="Rocket" size="medium"></w-icon>
21
+ ```
22
+
23
+ </elements-example>
24
+
25
+ ### Large
26
+
27
+ <elements-example>
28
+
29
+ ```html
30
+ <w-icon name="Rocket" size="large"></w-icon>
31
+ ```
32
+
33
+ </elements-example>
34
+
35
+ ### Custom size
36
+
37
+ You can set a pixel size as well if none of the presets fit your needs.
38
+
39
+ <elements-example>
40
+
41
+ ```html
42
+ <w-icon name="Rocket" size="13.37px"></w-icon>
43
+ ```
44
+
45
+ </elements-example>
@@ -0,0 +1,115 @@
1
+ # Icon (w-icon)
2
+
3
+ ## Description
4
+
5
+ See the Icons overview for a list of available icons. Icon names are case sensitive.
6
+
7
+ ## Usage
8
+
9
+ See the [Icons overview](https://warp-ds.github.io/docs/components/icons/overview) for a list of available icons. Icon names are case sensitive.
10
+
11
+ <elements-example>
12
+
13
+ ```html
14
+ <w-icon name="Rocket"></w-icon>
15
+ ```
16
+
17
+ </elements-example>
18
+
19
+ ## Accessibility
20
+
21
+ Icons ship with a localized descriptive `<title>`.
22
+
23
+ Note that the description is about the icon itself, not its semantic meaning in every given context. If you for example make an icon button, make sure to include an `aria-label` on your button that describes its action.
24
+
25
+ ## Examples
26
+
27
+ ### Small
28
+
29
+ <elements-example>
30
+
31
+ ```html
32
+ <w-icon name="Rocket" size="small"></w-icon>
33
+ ```
34
+
35
+ </elements-example>
36
+
37
+ ### Medium
38
+
39
+ This is the default size.
40
+
41
+ <elements-example>
42
+
43
+ ```html
44
+ <w-icon name="Rocket" size="medium"></w-icon>
45
+ ```
46
+
47
+ </elements-example>
48
+
49
+ ### Large
50
+
51
+ <elements-example>
52
+
53
+ ```html
54
+ <w-icon name="Rocket" size="large"></w-icon>
55
+ ```
56
+
57
+ </elements-example>
58
+
59
+ ### Custom size
60
+
61
+ You can set a pixel size as well if none of the presets fit your needs.
62
+
63
+ <elements-example>
64
+
65
+ ```html
66
+ <w-icon name="Rocket" size="13.37px"></w-icon>
67
+ ```
68
+
69
+ </elements-example>
70
+
71
+ ## Styling API
72
+
73
+ ## `<w-icon>` API
74
+
75
+ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
76
+
77
+ ### Properties
78
+
79
+ | Name | Type | Default | Summary |
80
+ |-|-|-|-|
81
+ | locale | `string` | `-` | Locale used for `<title>` text. |
82
+ | name | `string` | `-` | Icon filename (without .svg) |
83
+ | size | [`'small' \| 'medium' \| 'large' \| PixelValue`](#small-medium-large-pixelvalue) | `"medium"` | Size: small, medium, large or pixel value (e.g. "32px"). |
84
+
85
+ ### Property Details
86
+
87
+ #### locale
88
+
89
+ Locale used for `<title>` text.
90
+
91
+ Reads the `lang` attribute from `<html>`, falls back to 'en'.
92
+
93
+ - Type: `string`
94
+ - Default: `-`
95
+
96
+ #### name
97
+
98
+ Icon filename (without .svg)
99
+
100
+ - Type: `string`
101
+ - Default: `-`
102
+
103
+ #### size
104
+
105
+ Size: small, medium, large or pixel value (e.g. "32px").
106
+
107
+ - Type: [`'small' | 'medium' | 'large' | PixelValue`](#small-medium-large-pixelvalue)
108
+ - Default: `"medium"`
109
+
110
+ ### Types
111
+
112
+ #### 'small' | 'medium' | 'large' | PixelValue
113
+
114
+ `'small' | 'medium' | 'large' | `${number}px``
115
+
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -0,0 +1,11 @@
1
+ ## Usage
2
+
3
+ See the [Icons overview](https://warp-ds.github.io/docs/components/icons/overview) for a list of available icons. Icon names are case sensitive.
4
+
5
+ <elements-example>
6
+
7
+ ```html
8
+ <w-icon name="Rocket"></w-icon>
9
+ ```
10
+
11
+ </elements-example>
@@ -0,0 +1,46 @@
1
+ # Warp Elements Component Documentation
2
+
3
+ Generated by `pnpm build:docs`. This file indexes the Markdown documentation shipped with `@warp-ds/elements`.
4
+
5
+ - Package export: `@warp-ds/elements/docs`
6
+ - Component docs export pattern: `@warp-ds/elements/docs/<component>/<component>.md`
7
+
8
+ ## Components
9
+
10
+ | Component | Element / API | Package | Summary | Docs |
11
+ |-|-|-|-|-|
12
+ | Affix | `<w-affix>` | `affix` | This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`. | [affix.md](./affix/affix.md) |
13
+ | Alert | `<w-alert>` | `alert` | Alert is an inline component used for displaying different types of messages. For accessibility reasons, alert should appear close to the element that triggered it. | [alert.md](./alert/alert.md) |
14
+ | Attention | `<w-attention>` | `attention` | Attention is a versatile component for displaying contextual information and messages. It can be used for a wide range of purposes, such as tooltips, callouts, popovers, and highlights. The component is designed to be anchored to a trigger element, providing contextual information related to that element. It supports various placements and styling options to accommodate different use cases and design needs. Note: attention will soon be split into multiple components (tooltip, callout, popover, highlight) at which time this component will be deprecated. For now, use the `tooltip`, `callout`, `popover`, and `highlight` boolean properties to achieve the desired style and behavior. | [attention.md](./attention/attention.md) |
15
+ | Badge | `<w-badge>` | `badge` | `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count. | [badge.md](./badge/badge.md) |
16
+ | Box | `<w-box>` | `box` | Box is a layout component used for separating content areas on a page. | [box.md](./box/box.md) |
17
+ | Breadcrumbs | `<w-breadcrumbs>` | `breadcrumbs` | Shows the navigation structure for the current page. Renders direct child links and non-link elements as a breadcrumb trail, inserts separators between items, and exposes the trail as navigation. | [breadcrumbs.md](./breadcrumbs/breadcrumbs.md) |
18
+ | Button | `<w-button>` | `button` | Performs an action or renders a link with button styling. Use button variants to match action priority, risk, and context. | [button.md](./button/button.md) |
19
+ | Card | `<w-card>` | `card` | Card is a layout component used for separating content areas on a page. | [card.md](./card/card.md) |
20
+ | Checkbox | `<w-checkbox>` | `checkbox` | Checkbox lets users select one or more options. Use it for independent yes/no choices, multi-select lists, and terms or consent confirmations. | [checkbox.md](./checkbox/checkbox.md) |
21
+ | Checkbox Group | `<w-checkbox-group>` | `checkbox-group` | Use `w-checkbox-group` when several checkboxes share one label, help text, optional indicator, or required validation. | [checkbox-group.md](./checkbox-group/checkbox-group.md) |
22
+ | Combobox | `<w-combobox>` | `combobox` | A combobox element for text input with selectable options. | [combobox.md](./combobox/combobox.md) |
23
+ | Datepicker | `<w-datepicker>` | `datepicker` | An input for dates. Uses the `lang` attribute on either the element or on `<html>` to determine the locale options. | [datepicker.md](./datepicker/datepicker.md) |
24
+ | Expandable | `<w-expandable>` | `expandable` | Expandable is a layout component used for creating expandable content areas on a page. | [expandable.md](./expandable/expandable.md) |
25
+ | Icon | `<w-icon>` | `icon` | See the Icons overview for a list of available icons. Icon names are case sensitive. | [icon.md](./icon/icon.md) |
26
+ | Link | `<w-link>` | `link` | Buttons are used to perform actions, with different visuals for different needs. | [link.md](./link/link.md) |
27
+ | Modal | `<w-modal>` | `modal` | Modals (or dialogs) display important information that users need to acknowledge. | [modal.md](./modal/modal.md) |
28
+ | Modal Footer | `<w-modal-footer>` | `modal-footer` | The footer section of a modal, typically where you place actions. | [modal-footer.md](./modal-footer/modal-footer.md) |
29
+ | Modal Header | `<w-modal-header>` | `modal-header` | The header section of a modal, typically where you place the title and a close button. | [modal-header.md](./modal-header/modal-header.md) |
30
+ | Page Indicator | `<w-page-indicator>` | `page-indicator` | A page indicator component that displays a series of dots representing pages. One dot is highlighted to indicate the currently selected page. | [page-indicator.md](./page-indicator/page-indicator.md) |
31
+ | Pagination | `<w-pagination>` | `pagination` | Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows. | [pagination.md](./pagination/pagination.md) |
32
+ | Pill | `<w-pill>` | `pill` | Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc. | [pill.md](./pill/pill.md) |
33
+ | Radio | `<w-radio>` | `radio` | A radio input typically consists of two components: | [radio.md](./radio/radio.md) |
34
+ | Radio Group | `<w-radio-group>` | `radio-group` | Radios allow users to select a single option from a list of choices. Use with `w-radio`. | [radio-group.md](./radio-group/radio-group.md) |
35
+ | Select | `<w-select>` | `select` | A dropdown component for selecting a single value. | [select.md](./select/select.md) |
36
+ | Slider | `<w-slider>` | `slider` | Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`. | [slider.md](./slider/slider.md) |
37
+ | Slider Thumb | `<w-slider-thumb>` | `slider-thumb` | Component to place inside a `<w-slider>`. | [slider-thumb.md](./slider-thumb/slider-thumb.md) |
38
+ | Step | `<w-step>` | `step` | Individual step component that shows a single step in a process | [step.md](./step/step.md) |
39
+ | Step Indicator | `<w-step-indicator>` | `step-indicator` | Steps are used to show progress through a process or to guide users through a multi-step task. | [step-indicator.md](./step-indicator/step-indicator.md) |
40
+ | Switch | `<w-switch>` | `switch` | The Switch component allows users to toggle between two states. | [switch.md](./switch/switch.md) |
41
+ | Tab | `<w-tab>` | `tab` | Individual tab component used within w-tabs container. | [tab.md](./tab/tab.md) |
42
+ | Tab Panel | `<w-tab-panel>` | `tab-panel` | Tab panel component that holds content for individual tabs. Each tab panel should have a name that matches a corresponding tab. | [tab-panel.md](./tab-panel/tab-panel.md) |
43
+ | Tabs | `<w-tabs>` | `tabs` | Tabs are used to organize content by grouping similar information on the same page. | [tabs.md](./tabs/tabs.md) |
44
+ | Textarea | `<w-textarea>` | `textarea` | A multi-line text input with built-in form validation, auto-resizing, and styling support. The component automatically handles: - Form integration - Auto-resizing based on content and row constraints - Built-in validation with customizable error messages - Accessibility attributes and labeling | [textarea.md](./textarea/textarea.md) |
45
+ | Textfield | `<w-textfield>` | `textfield` | A single-line input component used for entering and editing textual or numeric data. | [textfield.md](./textfield/textfield.md) |
46
+ | Toast | `@warp-ds/elements/toast` | `toast` | Toasts are brief user feedback messages that overlay content. | [toast.md](./toast/toast.md) |
@@ -6,77 +6,73 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
6
6
 
7
7
  | Name | Type | Default | Summary |
8
8
  |-|-|-|-|
9
- | autofocus | `boolean` | `false` | - |
10
- | disabled | `boolean` | `false` | - |
11
- | full-width | `boolean` | `false` | - |
12
- | href | `string` | `-` | - |
13
- | rel | `string` | `-` | - |
14
- | shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
15
- | small | `boolean` | `false` | - |
16
- | target | `string` | `-` | - |
17
- | variant | [`ButtonVariant`](#buttonvariant) | `-` | - |
9
+ | autofocus | `boolean` | `false` | Focus the link after it is rendered |
10
+ | disabled | `boolean` | `false` | Applies disabled styling, but you need to disable clicks on your own. |
11
+ | full-width | `boolean` | `false` | Makes the link take up the full width of its parent |
12
+ | href | `string` | `-` | The URL the link points to |
13
+ | rel | `string` | `-` | Relationship of the linked URL. |
14
+ | small | `boolean` | `false` | Render a smaller version |
15
+ | target | `string` | `-` | Where to display the linked URL (e.g. `_blank`) |
16
+ | variant | [`ButtonVariant`](#buttonvariant) | `-` | Visual style for the link/button. |
18
17
 
19
18
  ### Property Details
20
19
 
21
20
  #### autofocus
22
21
 
23
-
22
+ Focus the link after it is rendered
24
23
 
25
24
  - Type: `boolean`
26
25
  - Default: `false`
27
26
 
28
27
  #### disabled
29
28
 
29
+ Applies disabled styling, but you need to disable clicks on your own.
30
30
 
31
+ The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior.
31
32
 
32
33
  - Type: `boolean`
33
34
  - Default: `false`
34
35
 
35
36
  #### full-width
36
37
 
37
-
38
+ Makes the link take up the full width of its parent
38
39
 
39
40
  - Type: `boolean`
40
41
  - Default: `false`
41
42
 
42
43
  #### href
43
44
 
44
-
45
+ The URL the link points to
45
46
 
46
47
  - Type: `string`
47
48
  - Default: `-`
48
49
 
49
50
  #### rel
50
51
 
52
+ Relationship of the linked URL.
51
53
 
54
+ If `target="_blank"` and `rel` is not provided, the component uses `noopener`.
52
55
 
53
56
  - Type: `string`
54
57
  - Default: `-`
55
58
 
56
- #### shadowRootOptions (JS only)
57
-
58
-
59
-
60
- - Type: `object`
61
- - Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
62
-
63
59
  #### small
64
60
 
65
-
61
+ Render a smaller version
66
62
 
67
63
  - Type: `boolean`
68
64
  - Default: `false`
69
65
 
70
66
  #### target
71
67
 
72
-
68
+ Where to display the linked URL (e.g. `_blank`)
73
69
 
74
70
  - Type: `string`
75
71
  - Default: `-`
76
72
 
77
73
  #### variant
78
74
 
79
-
75
+ Visual style for the link/button.
80
76
 
81
77
  - Type: [`ButtonVariant`](#buttonvariant)
82
78
  - Default: `-`
@@ -1 +1,76 @@
1
1
  ## Examples
2
+
3
+ ### Primary
4
+
5
+ <elements-example>
6
+
7
+ ```html
8
+ <w-link variant="primary" href="#">Go to the top of this page</w-link>
9
+ ```
10
+
11
+ </elements-example>
12
+
13
+ ### Secondary
14
+
15
+ This is the default appearance.
16
+
17
+ <elements-example>
18
+
19
+ ```html
20
+ <w-link href="#">Go to the top of this page</w-link>
21
+ ```
22
+
23
+ </elements-example>
24
+
25
+ ### Negative
26
+
27
+ <elements-example>
28
+
29
+ ```html
30
+ <w-link variant="negative" href="#">Go to the top of this page</w-link>
31
+ ```
32
+
33
+ </elements-example>
34
+
35
+ ### Utility
36
+
37
+ <elements-example>
38
+
39
+ ```html
40
+ <w-link variant="utility" href="#">Go to the top of this page</w-link>
41
+ ```
42
+
43
+ </elements-example>
44
+
45
+ ### Quiet
46
+
47
+ <elements-example>
48
+
49
+ ```html
50
+ <w-link variant="quiet" href="#">Go to the top of this page</w-link>
51
+ ```
52
+
53
+ </elements-example>
54
+
55
+ ### Small
56
+
57
+ All variants can be small.
58
+
59
+ <elements-example>
60
+
61
+ ```html
62
+ <w-link href="#" small>Go to the top of this page</w-link>
63
+ ```
64
+
65
+ </elements-example>
66
+
67
+ ### Full width
68
+
69
+
70
+ <elements-example>
71
+
72
+ ```html
73
+ <w-link href="#" full-width>Go to the top of this page</w-link>
74
+ ```
75
+
76
+ </elements-example>