@warp-ds/elements 2.10.0-next.4 → 2.10.0-next.6

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 (158) hide show
  1. package/README.md +4 -0
  2. package/dist/custom-elements.json +68 -14
  3. package/dist/docs/affix/affix.md +2 -2
  4. package/dist/docs/affix/styling.md +1 -0
  5. package/dist/docs/alert/alert.md +2 -2
  6. package/dist/docs/alert/styling.md +1 -0
  7. package/dist/docs/attention/attention.md +2 -0
  8. package/dist/docs/attention/styling.md +1 -0
  9. package/dist/docs/badge/badge.md +2 -0
  10. package/dist/docs/badge/styling.md +1 -0
  11. package/dist/docs/box/box.md +22 -40
  12. package/dist/docs/box/examples.md +20 -38
  13. package/dist/docs/box/styling.md +1 -0
  14. package/dist/docs/breadcrumbs/breadcrumbs.md +8 -2
  15. package/dist/docs/breadcrumbs/examples.md +7 -1
  16. package/dist/docs/breadcrumbs/styling.md +1 -0
  17. package/dist/docs/button/button.md +73 -2
  18. package/dist/docs/button/styling.md +72 -0
  19. package/dist/docs/card/card.md +2 -2
  20. package/dist/docs/card/styling.md +1 -0
  21. package/dist/docs/checkbox/api.md +128 -0
  22. package/dist/docs/checkbox/checkbox.md +134 -0
  23. package/dist/docs/checkbox-group/accessibility.md +71 -0
  24. package/dist/docs/checkbox-group/api.md +79 -0
  25. package/dist/docs/checkbox-group/checkbox-group.md +492 -0
  26. package/dist/docs/checkbox-group/examples.md +105 -0
  27. package/dist/docs/checkbox-group/styling.md +132 -0
  28. package/dist/docs/checkbox-group/usage.md +95 -0
  29. package/dist/docs/combobox/combobox.md +2 -2
  30. package/dist/docs/combobox/styling.md +1 -0
  31. package/dist/docs/datepicker/accessibility.md +25 -0
  32. package/dist/docs/datepicker/api.md +22 -14
  33. package/dist/docs/datepicker/datepicker.md +208 -16
  34. package/dist/docs/datepicker/examples.md +75 -0
  35. package/dist/docs/datepicker/styling.md +1 -0
  36. package/dist/docs/datepicker/usage.md +84 -0
  37. package/dist/docs/expandable/api.md +20 -32
  38. package/dist/docs/expandable/examples.md +54 -0
  39. package/dist/docs/expandable/expandable.md +74 -32
  40. package/dist/docs/expandable/styling.md +1 -0
  41. package/dist/docs/icon/icon.md +3 -1
  42. package/dist/docs/icon/styling.md +1 -0
  43. package/dist/docs/index.md +46 -0
  44. package/dist/docs/link/link.md +2 -2
  45. package/dist/docs/link/styling.md +1 -0
  46. package/dist/docs/modal/modal.md +2 -0
  47. package/dist/docs/modal/styling.md +1 -0
  48. package/dist/docs/modal-footer/modal-footer.md +0 -6
  49. package/dist/docs/modal-header/modal-header.md +0 -6
  50. package/dist/docs/page-indicator/page-indicator.md +2 -0
  51. package/dist/docs/page-indicator/styling.md +1 -0
  52. package/dist/docs/pagination/pagination.md +2 -0
  53. package/dist/docs/pagination/styling.md +1 -0
  54. package/dist/docs/pill/pill.md +2 -0
  55. package/dist/docs/pill/styling.md +1 -0
  56. package/dist/docs/radio/radio.md +1 -7
  57. package/dist/docs/select/select.md +2 -0
  58. package/dist/docs/select/styling.md +1 -0
  59. package/dist/docs/slider/slider.md +2 -0
  60. package/dist/docs/slider/styling.md +1 -0
  61. package/dist/docs/slider-thumb/slider-thumb.md +2 -0
  62. package/dist/docs/slider-thumb/styling.md +1 -0
  63. package/dist/docs/step-indicator/step-indicator.md +2 -0
  64. package/dist/docs/step-indicator/styling.md +1 -0
  65. package/dist/docs/switch/styling.md +1 -0
  66. package/dist/docs/switch/switch.md +2 -0
  67. package/dist/docs/tabs/styling.md +1 -0
  68. package/dist/docs/tabs/tabs.md +2 -0
  69. package/dist/docs/textarea/styling.md +1 -0
  70. package/dist/docs/textarea/textarea.md +2 -0
  71. package/dist/docs/textfield/styling.md +1 -0
  72. package/dist/docs/textfield/textfield.md +2 -0
  73. package/dist/index.d.ts +164 -128
  74. package/dist/packages/affix/affix.hydration.test.js +1 -1
  75. package/dist/packages/alert/alert.hydration.test.js +1 -1
  76. package/dist/packages/attention/attention.hydration.test.js +1 -1
  77. package/dist/packages/attention/attention.js +397 -446
  78. package/dist/packages/attention/attention.js.map +4 -4
  79. package/dist/packages/badge/badge.hydration.test.js +1 -1
  80. package/dist/packages/box/box.hydration.test.js +1 -1
  81. package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +3 -2
  82. package/dist/packages/button/button.hydration.test.js +1 -1
  83. package/dist/packages/button/button.js +387 -436
  84. package/dist/packages/button/button.js.map +4 -4
  85. package/dist/packages/button/button.stories.d.ts +29 -0
  86. package/dist/packages/button/button.stories.js +176 -2
  87. package/dist/packages/button/styles.d.ts +22 -1
  88. package/dist/packages/button/styles.js +390 -1
  89. package/dist/packages/card/card.hydration.test.js +1 -1
  90. package/dist/packages/checkbox/checkbox.d.ts +5 -3
  91. package/dist/packages/checkbox/checkbox.hydration.test.js +1 -1
  92. package/dist/packages/checkbox/checkbox.js +2 -2
  93. package/dist/packages/checkbox/checkbox.js.map +3 -3
  94. package/dist/packages/checkbox/checkbox.react.stories.d.ts +1 -1
  95. package/dist/packages/checkbox/checkbox.stories.d.ts +2 -2
  96. package/dist/packages/checkbox/react.d.ts +2 -2
  97. package/dist/packages/checkbox-group/checkbox-group.d.ts +5 -3
  98. package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +1 -1
  99. package/dist/packages/checkbox-group/checkbox-group.js +6 -6
  100. package/dist/packages/checkbox-group/checkbox-group.js.map +3 -3
  101. package/dist/packages/checkbox-group/react.d.ts +3 -3
  102. package/dist/packages/datepicker/datepicker.d.ts +22 -30
  103. package/dist/packages/datepicker/datepicker.hydration.test.js +1 -1
  104. package/dist/packages/datepicker/datepicker.js.map +2 -2
  105. package/dist/packages/expandable/expandable.d.ts +11 -32
  106. package/dist/packages/expandable/expandable.hydration.test.js +1 -1
  107. package/dist/packages/expandable/expandable.js.map +2 -2
  108. package/dist/packages/expandable/expandable.react.stories.d.ts +2 -2
  109. package/dist/packages/expandable/react.d.ts +1 -1
  110. package/dist/packages/icon/icon.hydration.test.js +1 -1
  111. package/dist/packages/link/link.hydration.test.js +1 -1
  112. package/dist/packages/link/link.js +420 -190
  113. package/dist/packages/link/link.js.map +4 -4
  114. package/dist/packages/link/styles.d.ts +5 -0
  115. package/dist/packages/link/styles.js +80 -0
  116. package/dist/packages/modal/modal.hydration.test.js +1 -1
  117. package/dist/packages/page-indicator/page-indicator.hydration.test.js +1 -1
  118. package/dist/packages/pagination/pagination.hydration.test.js +1 -1
  119. package/dist/packages/pill/pill.hydration.test.js +1 -1
  120. package/dist/packages/radio/radio.hydration.test.js +1 -1
  121. package/dist/packages/radio/radio.js.map +1 -1
  122. package/dist/packages/radio-group/radio-group.a11y.test.js +6 -2
  123. package/dist/packages/radio-group/radio-group.hydration.test.js +6 -2
  124. package/dist/packages/radio-group/radio-group.js +2 -2
  125. package/dist/packages/radio-group/radio-group.js.map +4 -4
  126. package/dist/packages/select/select.a11y.test.js +6 -2
  127. package/dist/packages/select/select.hydration.test.js +1 -1
  128. package/dist/packages/select/select.test.js +4 -2
  129. package/dist/packages/slider/slider.hydration.test.js +7 -2
  130. package/dist/packages/slider/slider.js.map +1 -1
  131. package/dist/packages/slider/slider.react.stories.js +2 -2
  132. package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +1 -1
  133. package/dist/packages/step/step.hydration.test.js +1 -1
  134. package/dist/packages/step-indicator/step-indicator.hydration.test.js +1 -1
  135. package/dist/packages/switch/switch.hydration.test.js +1 -1
  136. package/dist/packages/tab/tab.hydration.test.js +1 -1
  137. package/dist/packages/tab-panel/tab-panel.hydration.test.js +1 -1
  138. package/dist/packages/tabs/tabs.a11y.test.js +1 -1
  139. package/dist/packages/tabs/tabs.hydration.test.js +1 -1
  140. package/dist/packages/tabs/tabs.test.js +3 -3
  141. package/dist/packages/textarea/textarea.hydration.test.js +1 -1
  142. package/dist/packages/textfield/textfield.hydration.test.js +1 -1
  143. package/dist/web-types.json +91 -28
  144. package/eik/index.js +115 -0
  145. package/package.json +7 -7
  146. package/dist/docs/modal-footer/accessibility.md +0 -1
  147. package/dist/docs/modal-footer/examples.md +0 -1
  148. package/dist/docs/modal-footer/usage.md +0 -1
  149. package/dist/docs/modal-header/accessibility.md +0 -1
  150. package/dist/docs/modal-header/examples.md +0 -1
  151. package/dist/docs/modal-header/usage.md +0 -1
  152. package/dist/docs/radio/accessibility.md +0 -1
  153. package/dist/docs/radio/examples.md +0 -1
  154. package/dist/docs/radio/usage.md +0 -1
  155. package/dist/packages/button/styles/w-button.styles.d.ts +0 -1
  156. package/dist/packages/button/styles/w-button.styles.js +0 -282
  157. package/dist/packages/link/styles/w-link.styles.d.ts +0 -1
  158. package/dist/packages/link/styles/w-link.styles.js +0 -213
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Description
4
4
 
5
-
5
+ See the Icons overview for a list of available icons. Icon names are case sensitive.
6
6
 
7
7
  ## Usage
8
8
 
@@ -68,6 +68,8 @@ You can set a pixel size as well if none of the presets fit your needs.
68
68
 
69
69
  </elements-example>
70
70
 
71
+ ## Styling API
72
+
71
73
  ## `<w-icon>` API
72
74
 
73
75
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -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) |
@@ -4,8 +4,6 @@
4
4
 
5
5
  Buttons are used to perform actions, with different visuals for different needs.
6
6
 
7
- [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
8
-
9
7
  ## Usage
10
8
 
11
9
  **Do:**
@@ -105,6 +103,8 @@ All variants can be small.
105
103
 
106
104
  </elements-example>
107
105
 
106
+ ## Styling API
107
+
108
108
  ## `<w-link>` API
109
109
 
110
110
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -185,6 +185,8 @@ modal.addEventListener('command', function (event: CommandEvent) {
185
185
 
186
186
  </elements-example>
187
187
 
188
+ ## Styling API
189
+
188
190
  ## `<w-modal>` API
189
191
 
190
192
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -4,12 +4,6 @@
4
4
 
5
5
  The footer section of a modal, typically where you place actions.
6
6
 
7
- ## Usage
8
-
9
- ## Accessibility
10
-
11
- ## Examples
12
-
13
7
  ### `<w-modal-footer>` API
14
8
 
15
9
  #### Properties
@@ -4,12 +4,6 @@
4
4
 
5
5
  The header section of a modal, typically where you place the title and a close button.
6
6
 
7
- ## Usage
8
-
9
- ## Accessibility
10
-
11
- ## Examples
12
-
13
7
  ### `<w-modal-header>` API
14
8
 
15
9
  #### Properties
@@ -28,6 +28,8 @@ One dot is highlighted to indicate the currently selected page.
28
28
 
29
29
  </elements-example>
30
30
 
31
+ ## Styling API
32
+
31
33
  ## `<w-page-indicator>` API
32
34
 
33
35
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -48,6 +48,8 @@ If you want to override this in your app and handle things like scroll and focus
48
48
  </script>
49
49
  ```
50
50
 
51
+ ## Styling API
52
+
51
53
  ## `<w-pagination>` API
52
54
 
53
55
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -43,6 +43,8 @@ For example to dismiss or turn off parts of a filter.
43
43
 
44
44
  </elements-example>
45
45
 
46
+ ## Styling API
47
+
46
48
  ## `<w-pill>` API
47
49
 
48
50
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -2,13 +2,7 @@
2
2
 
3
3
  ## Description
4
4
 
5
-
6
-
7
- ## Usage
8
-
9
- ## Accessibility
10
-
11
- ## Examples
5
+ A radio input typically consists of two components:
12
6
 
13
7
  ### `<w-radio>` API
14
8
 
@@ -158,6 +158,8 @@ The `readonly` boolean attribute makes the selection immutable. Unlike disabled
158
158
 
159
159
  </elements-example>
160
160
 
161
+ ## Styling API
162
+
161
163
  ## `<w-select>` API
162
164
 
163
165
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -306,6 +306,8 @@ The text field doubles as a visualization of the exact value, which is difficult
306
306
 
307
307
  </elements-example>
308
308
 
309
+ ## Styling API
310
+
309
311
  ## `<w-slider>` API
310
312
 
311
313
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -10,6 +10,8 @@ Component to place inside a `<w-slider>`.
10
10
 
11
11
  ## Examples
12
12
 
13
+ ## Styling API
14
+
13
15
  ### `<w-slider-thumb>` API
14
16
 
15
17
  #### Properties
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -103,6 +103,8 @@ Each `<w-step>` can be marked as `active` or `completed` to indicate progress. T
103
103
 
104
104
  </elements-example>
105
105
 
106
+ ## Styling API
107
+
106
108
  ## `<w-step-indicator>` API
107
109
 
108
110
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -34,6 +34,8 @@ The internal control is rendered as a native `button` with `role="switch"` and `
34
34
 
35
35
  </elements-example>
36
36
 
37
+ ## Styling API
38
+
37
39
  ## `<w-switch>` API
38
40
 
39
41
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -97,6 +97,8 @@ Use the `over` attribute to position icons above the label:
97
97
 
98
98
  </elements-example>
99
99
 
100
+ ## Styling API
101
+
100
102
  ## `<w-tabs>` API
101
103
 
102
104
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -111,6 +111,8 @@ Makes the textarea content immutable while remaining focusable. The contents can
111
111
 
112
112
  </elements-example>
113
113
 
114
+ ## Styling API
115
+
114
116
  ## `<w-textarea>` API
115
117
 
116
118
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
@@ -0,0 +1 @@
1
+ ## Styling API
@@ -181,6 +181,8 @@ The readonly boolean attribute makes the w-textfield's text content immutable. U
181
181
 
182
182
  </elements-example>
183
183
 
184
+ ## Styling API
185
+
184
186
  ## `<w-textfield>` API
185
187
 
186
188
  Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).