@warp-ds/elements 2.3.0-next.1 → 2.3.0-next.11
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.
- package/dist/custom-elements.json +3658 -357
- package/dist/index.d.ts +593 -13
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/attention/index.js +3 -3
- package/dist/packages/attention/index.js.map +1 -1
- package/dist/packages/attention/react.d.ts +1 -1
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/button/index.js +3 -3
- package/dist/packages/button/index.js.map +1 -1
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +28 -0
- package/dist/packages/combobox/combobox.react.stories.js +90 -0
- package/dist/packages/combobox/combobox.stories.d.ts +18 -0
- package/dist/packages/combobox/combobox.stories.js +117 -0
- package/dist/packages/combobox/index.d.ts +85 -0
- package/dist/packages/combobox/index.js +2492 -0
- package/dist/packages/combobox/index.js.map +7 -0
- package/dist/packages/combobox/locales/da/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/da/messages.mjs +1 -0
- package/dist/packages/combobox/locales/en/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/en/messages.mjs +1 -0
- package/dist/packages/combobox/locales/fi/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/fi/messages.mjs +1 -0
- package/dist/packages/combobox/locales/nb/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/nb/messages.mjs +1 -0
- package/dist/packages/combobox/locales/sv/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/sv/messages.mjs +1 -0
- package/dist/packages/combobox/react.d.ts +7 -0
- package/dist/packages/combobox/react.js +17 -0
- package/dist/packages/combobox/styles.d.ts +1 -0
- package/dist/packages/combobox/styles.js +2 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +2 -0
- package/dist/packages/datepicker/DatePicker.test.js +69 -0
- package/dist/packages/datepicker/datepicker.d.ts +102 -0
- package/dist/packages/datepicker/datepicker.js +2785 -0
- package/dist/packages/datepicker/datepicker.js.map +7 -0
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +18 -0
- package/dist/packages/datepicker/datepicker.react.stories.js +26 -0
- package/dist/packages/datepicker/datepicker.stories.d.ts +12 -0
- package/dist/packages/datepicker/datepicker.stories.js +51 -0
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/datepicker.test.js +62 -0
- package/dist/packages/datepicker/index.d.ts +1 -0
- package/dist/packages/datepicker/index.js +1 -0
- package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/da/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/en/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/fi/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/nb/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/sv/messages.mjs +1 -0
- package/dist/packages/datepicker/react.d.ts +5 -0
- package/dist/packages/datepicker/react.js +15 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.js +15 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.js +64 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.js +72 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.js +101 -0
- package/dist/packages/datepicker/utils.d.ts +13 -0
- package/dist/packages/datepicker/utils.js +28 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +34 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +14 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.js +45 -0
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/dead-toggle/dead-toggle.test.js +9 -0
- package/dist/packages/dead-toggle/index.d.ts +17 -0
- package/dist/packages/dead-toggle/index.js +2547 -0
- package/dist/packages/dead-toggle/index.js.map +7 -0
- package/dist/packages/dead-toggle/react.d.ts +2 -0
- package/dist/packages/dead-toggle/react.js +11 -0
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/link/index.js +2640 -93
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.react.stories.d.ts +21 -0
- package/dist/packages/link/link.react.stories.js +96 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.stories.js +110 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/link.test.js +9 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/react.js +11 -0
- package/dist/packages/link/styles.js +3 -3
- package/dist/packages/modal/react.d.ts +1 -1
- package/dist/packages/pageindicator/index.d.ts +10 -0
- package/dist/packages/pageindicator/index.js +32 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +19 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.js +20 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/pageindicator.stories.js +71 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/react.js +11 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pageindicator/style.js +26 -0
- package/dist/packages/pagination/react.d.ts +1 -1
- package/dist/packages/pill/react.d.ts +1 -1
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +10 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +66 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +2591 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +11 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +25 -0
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +1 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +6 -0
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +7 -0
- package/dist/packages/rip-and-tear-checkbox/react.js +20 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +12 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-checkbox/styles.js +0 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
- package/dist/packages/rip-and-tear-radio/base-element.js +100 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.js +22 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.js +282 -0
- package/dist/packages/rip-and-tear-radio/host-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/host-styles.js +12 -0
- package/dist/packages/rip-and-tear-radio/index.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/index.js +6 -0
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/invalid.js +5 -0
- package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/math.js +4 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +59 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js +2648 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +1 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
- package/dist/packages/rip-and-tear-radio/radio.js +2562 -0
- package/dist/packages/rip-and-tear-radio/radio.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.js +2653 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/react.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/react.js +22 -0
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
- package/dist/packages/rip-and-tear-radio/required-validator.js +34 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
- package/dist/packages/rip-and-tear-radio/slot.js +71 -0
- package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
- package/dist/packages/rip-and-tear-radio/watch.js +39 -0
- package/dist/packages/select/index.d.ts +25 -5
- package/dist/packages/select/index.js +14 -13
- package/dist/packages/select/index.js.map +2 -2
- package/dist/packages/select/react.d.ts +1 -1
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.js +3 -4
- package/dist/packages/slider/react.d.ts +2 -2
- package/dist/packages/steps/index.d.ts +36 -0
- package/dist/packages/steps/index.js +2465 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/da/messages.mjs +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.mjs +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.mjs +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.mjs +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.mjs +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/react.js +16 -0
- package/dist/packages/steps/steps.react.stories.d.ts +15 -0
- package/dist/packages/steps/steps.react.stories.js +112 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/steps.stories.js +172 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/steps/styles.js +2 -0
- package/dist/packages/switch/index.d.ts +15 -0
- package/dist/packages/switch/index.js +2456 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +5 -0
- package/dist/packages/switch/react.js +15 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/styles.js +2 -0
- package/dist/packages/switch/switch.react.stories.d.ts +15 -0
- package/dist/packages/switch/switch.react.stories.js +29 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/switch/switch.stories.js +34 -0
- package/dist/packages/tabs/index.d.ts +4 -0
- package/dist/packages/tabs/index.js +3 -0
- package/dist/packages/tabs/react.d.ts +12 -0
- package/dist/packages/tabs/react.js +31 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/styles.js +2 -0
- package/dist/packages/tabs/tab-panel.d.ts +20 -0
- package/dist/packages/tabs/tab-panel.js +51 -0
- package/dist/packages/tabs/tab.d.ts +18 -0
- package/dist/packages/tabs/tab.js +2464 -0
- package/dist/packages/tabs/tab.js.map +7 -0
- package/dist/packages/tabs/tabs.d.ts +40 -0
- package/dist/packages/tabs/tabs.js +2448 -0
- package/dist/packages/tabs/tabs.js.map +7 -0
- package/dist/packages/tabs/tabs.react.stories.d.ts +15 -0
- package/dist/packages/tabs/tabs.react.stories.js +51 -0
- package/dist/packages/tabs/tabs.stories.d.ts +11 -0
- package/dist/packages/tabs/tabs.stories.js +93 -0
- package/dist/packages/textarea/index.d.ts +1 -0
- package/dist/packages/textarea/index.js +1 -0
- package/dist/packages/textarea/locales/da/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/da/messages.mjs +1 -0
- package/dist/packages/textarea/locales/en/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/en/messages.mjs +1 -0
- package/dist/packages/textarea/locales/fi/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/fi/messages.mjs +1 -0
- package/dist/packages/textarea/locales/nb/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/nb/messages.mjs +1 -0
- package/dist/packages/textarea/locales/sv/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/sv/messages.mjs +1 -0
- package/dist/packages/textarea/react.d.ts +11 -0
- package/dist/packages/textarea/react.js +21 -0
- package/dist/packages/textarea/styles.d.ts +1 -0
- package/dist/packages/textarea/styles.js +2 -0
- package/dist/packages/textarea/textarea.d.ts +48 -0
- package/dist/packages/textarea/textarea.js +2475 -0
- package/dist/packages/textarea/textarea.js.map +7 -0
- package/dist/packages/textarea/textarea.react.stories.d.ts +33 -0
- package/dist/packages/textarea/textarea.react.stories.js +41 -0
- package/dist/packages/textarea/textarea.stories.d.ts +19 -0
- package/dist/packages/textarea/textarea.stories.js +85 -0
- package/dist/packages/textarea/textarea.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.test.js +49 -0
- package/dist/packages/textfield/index.d.ts +2 -0
- package/dist/packages/textfield/index.js +5 -5
- package/dist/packages/textfield/index.js.map +2 -2
- package/dist/packages/textfield/react.d.ts +1 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/toggle-styles.d.ts +1 -0
- package/dist/packages/toggle-styles.js +108 -0
- package/dist/web-types.json +575 -7
- package/package.json +191 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import type { WarpAffix } from "./packages/affix/index.ts";
|
|
3
3
|
import type { WarpAlert } from "./packages/alert/index.ts";
|
|
4
|
+
import type { WarpLink } from "./packages/link/index.ts";
|
|
4
5
|
import type { WarpButton } from "./packages/button/index.ts";
|
|
5
6
|
import type { WarpAttention } from "./packages/attention/index.ts";
|
|
6
7
|
import type { WarpBadge } from "./packages/badge/index.ts";
|
|
@@ -15,9 +16,19 @@ import type { ModalFooter } from "./packages/modal/modal-footer.ts";
|
|
|
15
16
|
import type { ModalHeader } from "./packages/modal/modal-header.ts";
|
|
16
17
|
import type { ModalMain } from "./packages/modal/modal-main.ts";
|
|
17
18
|
import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
|
|
19
|
+
import type { WarpCombobox } from "./packages/combobox/index.ts";
|
|
20
|
+
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
21
|
+
import type { WarpDeadToggle } from "./packages/dead-toggle/index.ts";
|
|
22
|
+
import type { WarpPageIndicator } from "./packages/pageindicator/index.ts";
|
|
18
23
|
import type { WarpPagination } from "./packages/pagination/index.ts";
|
|
24
|
+
import type { WCheckboxGroup } from "./packages/rip-and-tear-checkbox/checkbox-group.ts";
|
|
19
25
|
import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
|
|
20
26
|
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
27
|
+
import type { WarpSteps, WarpStep } from "./packages/steps/index.ts";
|
|
28
|
+
import type { WarpSwitch } from "./packages/switch/index.ts";
|
|
29
|
+
import type { WarpTab } from "./packages/tabs/tab.ts";
|
|
30
|
+
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
31
|
+
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
21
32
|
|
|
22
33
|
/**
|
|
23
34
|
* This type can be used to create scoped tags for your components.
|
|
@@ -130,6 +141,40 @@ export type WarpAlertProps = {
|
|
|
130
141
|
}
|
|
131
142
|
|
|
132
143
|
|
|
144
|
+
export type WarpLinkProps = {
|
|
145
|
+
/** */
|
|
146
|
+
"autofocus"?: WarpLink['autofocus'];
|
|
147
|
+
/** */
|
|
148
|
+
"variant"?: WarpLink['variant'];
|
|
149
|
+
/** */
|
|
150
|
+
"quiet"?: WarpLink['quiet'];
|
|
151
|
+
/** */
|
|
152
|
+
"small"?: WarpLink['small'];
|
|
153
|
+
/** */
|
|
154
|
+
"href"?: WarpLink['href'];
|
|
155
|
+
/** */
|
|
156
|
+
"disabled"?: WarpLink['disabled'];
|
|
157
|
+
/** */
|
|
158
|
+
"target"?: WarpLink['target'];
|
|
159
|
+
/** */
|
|
160
|
+
"rel"?: WarpLink['rel'];
|
|
161
|
+
/** */
|
|
162
|
+
"full-width"?: WarpLink['fullWidth'];
|
|
163
|
+
/** */
|
|
164
|
+
"fullWidth"?: WarpLink['fullWidth'];
|
|
165
|
+
/** */
|
|
166
|
+
"button-class"?: WarpLink['buttonClass'];
|
|
167
|
+
/** */
|
|
168
|
+
"buttonClass"?: WarpLink['buttonClass'];
|
|
169
|
+
/** */
|
|
170
|
+
"name"?: WarpLink['name'];
|
|
171
|
+
/** */
|
|
172
|
+
"classes"?: WarpLink['classes'];
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
133
178
|
export type WarpButtonProps = {
|
|
134
179
|
/** */
|
|
135
180
|
"type"?: WarpButton['type'];
|
|
@@ -334,15 +379,21 @@ export type WarpPillProps = {
|
|
|
334
379
|
|
|
335
380
|
|
|
336
381
|
export type WarpSelectProps = {
|
|
337
|
-
/** Whether the element should receive focus on render */
|
|
382
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
338
383
|
"auto-focus"?: WarpSelect['autoFocus'];
|
|
339
|
-
/** Whether the element should receive focus on render */
|
|
384
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
340
385
|
"autoFocus"?: WarpSelect['autoFocus'];
|
|
341
|
-
/**
|
|
386
|
+
/** Whether the element should receive focus on render */
|
|
387
|
+
"autofocus"?: WarpSelect['autofocus'];
|
|
388
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
389
|
+
"help-text"?: WarpSelect['helpText'];
|
|
390
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
391
|
+
"helpText"?: WarpSelect['helpText'];
|
|
392
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
342
393
|
"invalid"?: WarpSelect['invalid'];
|
|
343
|
-
/** Whether to always show a hint */
|
|
394
|
+
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
344
395
|
"always"?: WarpSelect['always'];
|
|
345
|
-
/** The content displayed as the help text */
|
|
396
|
+
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
346
397
|
"hint"?: WarpSelect['hint'];
|
|
347
398
|
/** The content to disply as the label */
|
|
348
399
|
"label"?: WarpSelect['label'];
|
|
@@ -350,10 +401,12 @@ export type WarpSelectProps = {
|
|
|
350
401
|
"optional"?: WarpSelect['optional'];
|
|
351
402
|
/** Renders the field in a disabled state. */
|
|
352
403
|
"disabled"?: WarpSelect['disabled'];
|
|
353
|
-
/** Renders the field in a readonly state. */
|
|
404
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
354
405
|
"read-only"?: WarpSelect['readOnly'];
|
|
355
|
-
/** Renders the field in a readonly state. */
|
|
406
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
356
407
|
"readOnly"?: WarpSelect['readOnly'];
|
|
408
|
+
/** Renders the field in a readonly state. */
|
|
409
|
+
"readonly"?: WarpSelect['readonly'];
|
|
357
410
|
/** */
|
|
358
411
|
"name"?: WarpSelect['name'];
|
|
359
412
|
/** */
|
|
@@ -394,11 +447,13 @@ export type WarpTextFieldProps = {
|
|
|
394
447
|
"pattern"?: WarpTextField['pattern'];
|
|
395
448
|
/** */
|
|
396
449
|
"placeholder"?: WarpTextField['placeholder'];
|
|
397
|
-
/** */
|
|
450
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
398
451
|
"read-only"?: WarpTextField['readOnly'];
|
|
399
|
-
/** */
|
|
452
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
400
453
|
"readOnly"?: WarpTextField['readOnly'];
|
|
401
454
|
/** */
|
|
455
|
+
"readonly"?: WarpTextField['readonly'];
|
|
456
|
+
/** */
|
|
402
457
|
"required"?: WarpTextField['required'];
|
|
403
458
|
/** */
|
|
404
459
|
"type"?: WarpTextField['type'];
|
|
@@ -473,6 +528,152 @@ export type WarpToastContainerProps = {
|
|
|
473
528
|
}
|
|
474
529
|
|
|
475
530
|
|
|
531
|
+
export type WarpComboboxProps = {
|
|
532
|
+
/** The available options to select from */
|
|
533
|
+
"options"?: WarpCombobox['options'];
|
|
534
|
+
/** Label above input */
|
|
535
|
+
"label"?: WarpCombobox['label'];
|
|
536
|
+
/** Input placeholder */
|
|
537
|
+
"placeholder"?: WarpCombobox['placeholder'];
|
|
538
|
+
/** The input value */
|
|
539
|
+
"value"?: WarpCombobox['value'];
|
|
540
|
+
/** Whether the popover opens when focus is on the text field */
|
|
541
|
+
"open-on-focus"?: WarpCombobox['openOnFocus'];
|
|
542
|
+
/** Whether the popover opens when focus is on the text field */
|
|
543
|
+
"openOnFocus"?: WarpCombobox['openOnFocus'];
|
|
544
|
+
/** Select active option on blur */
|
|
545
|
+
"select-on-blur"?: WarpCombobox['selectOnBlur'];
|
|
546
|
+
/** Select active option on blur */
|
|
547
|
+
"selectOnBlur"?: WarpCombobox['selectOnBlur'];
|
|
548
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
549
|
+
"match-text-segments"?: WarpCombobox['matchTextSegments'];
|
|
550
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
551
|
+
"matchTextSegments"?: WarpCombobox['matchTextSegments'];
|
|
552
|
+
/** Disable client-side static filtering */
|
|
553
|
+
"disable-static-filtering"?: WarpCombobox['disableStaticFiltering'];
|
|
554
|
+
/** Disable client-side static filtering */
|
|
555
|
+
"disableStaticFiltering"?: WarpCombobox['disableStaticFiltering'];
|
|
556
|
+
/** Renders the input field in an invalid state */
|
|
557
|
+
"invalid"?: WarpCombobox['invalid'];
|
|
558
|
+
/** The content to display as the help text */
|
|
559
|
+
"help-text"?: WarpCombobox['helpText'];
|
|
560
|
+
/** The content to display as the help text */
|
|
561
|
+
"helpText"?: WarpCombobox['helpText'];
|
|
562
|
+
/** Whether the element is disabled */
|
|
563
|
+
"disabled"?: WarpCombobox['disabled'];
|
|
564
|
+
/** Whether the element is required */
|
|
565
|
+
"required"?: WarpCombobox['required'];
|
|
566
|
+
/** Whether to show optional text */
|
|
567
|
+
"optional"?: WarpCombobox['optional'];
|
|
568
|
+
/** Additional container styling */
|
|
569
|
+
"class-name"?: WarpCombobox['containerClassName'];
|
|
570
|
+
/** Additional container styling */
|
|
571
|
+
"containerClassName"?: WarpCombobox['containerClassName'];
|
|
572
|
+
/** Additional list styling */
|
|
573
|
+
"list-class-name"?: WarpCombobox['listClassName'];
|
|
574
|
+
/** Additional list styling */
|
|
575
|
+
"listClassName"?: WarpCombobox['listClassName'];
|
|
576
|
+
/** Name attribute for form submission */
|
|
577
|
+
"name"?: WarpCombobox['name'];
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
export type WarpDatepickerProps = {
|
|
584
|
+
/** */
|
|
585
|
+
"label"?: WarpDatepicker['label'];
|
|
586
|
+
/** Takes precedence over the `<html>` lang attribute. */
|
|
587
|
+
"lang"?: WarpDatepicker['lang'];
|
|
588
|
+
/** */
|
|
589
|
+
"name"?: WarpDatepicker['name'];
|
|
590
|
+
/** */
|
|
591
|
+
"value"?: WarpDatepicker['value'];
|
|
592
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
593
|
+
|
|
594
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
595
|
+
"header-format"?: WarpDatepicker['headerFormat'];
|
|
596
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
597
|
+
|
|
598
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
599
|
+
"headerFormat"?: WarpDatepicker['headerFormat'];
|
|
600
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
601
|
+
|
|
602
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
603
|
+
"weekday-format"?: WarpDatepicker['weekdayFormat'];
|
|
604
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
605
|
+
|
|
606
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
607
|
+
"weekdayFormat"?: WarpDatepicker['weekdayFormat'];
|
|
608
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
609
|
+
|
|
610
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
611
|
+
"day-format"?: WarpDatepicker['dayFormat'];
|
|
612
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
613
|
+
|
|
614
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
615
|
+
"dayFormat"?: WarpDatepicker['dayFormat'];
|
|
616
|
+
/** Lets you control if a date in the calendar should be disabled.
|
|
617
|
+
|
|
618
|
+
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
619
|
+
"isDayDisabled"?: WarpDatepicker['isDayDisabled'];
|
|
620
|
+
/** */
|
|
621
|
+
"isCalendarOpen"?: WarpDatepicker['isCalendarOpen'];
|
|
622
|
+
/** */
|
|
623
|
+
"navigationDate"?: WarpDatepicker['navigationDate'];
|
|
624
|
+
/** */
|
|
625
|
+
"calendar"?: WarpDatepicker['calendar'];
|
|
626
|
+
/** */
|
|
627
|
+
"input"?: WarpDatepicker['input'];
|
|
628
|
+
/** */
|
|
629
|
+
"toggleButton"?: WarpDatepicker['toggleButton'];
|
|
630
|
+
/** */
|
|
631
|
+
"wrapper"?: WarpDatepicker['wrapper'];
|
|
632
|
+
/** This is the first focusable element, needed for the modal focus trap.
|
|
633
|
+
|
|
634
|
+
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
635
|
+
They work the first time, but once the calendar is closed and reopened
|
|
636
|
+
the query will point to an element that doesn't exist anymore. */
|
|
637
|
+
"previousMonthButton"?: WarpDatepicker['previousMonthButton'];
|
|
638
|
+
/** */
|
|
639
|
+
"todayCell"?: WarpDatepicker['todayCell'];
|
|
640
|
+
/** */
|
|
641
|
+
"selectedCell"?: WarpDatepicker['selectedCell'];
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
export type WarpDeadToggleProps = {
|
|
648
|
+
/** */
|
|
649
|
+
"type"?: WarpDeadToggle['type'];
|
|
650
|
+
/** */
|
|
651
|
+
"checked"?: WarpDeadToggle['checked'];
|
|
652
|
+
/** */
|
|
653
|
+
"indeterminate"?: WarpDeadToggle['indeterminate'];
|
|
654
|
+
/** */
|
|
655
|
+
"invalid"?: WarpDeadToggle['invalid'];
|
|
656
|
+
/** */
|
|
657
|
+
"disabled"?: WarpDeadToggle['disabled'];
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
export type WarpPageIndicatorProps = {
|
|
664
|
+
/** Currently selected page (1-based index) */
|
|
665
|
+
"selected-page"?: WarpPageIndicator['selectedPage'];
|
|
666
|
+
/** Currently selected page (1-based index) */
|
|
667
|
+
"selectedPage"?: WarpPageIndicator['selectedPage'];
|
|
668
|
+
/** Total number of pages */
|
|
669
|
+
"page-count"?: WarpPageIndicator['pageCount'];
|
|
670
|
+
/** Total number of pages */
|
|
671
|
+
"pageCount"?: WarpPageIndicator['pageCount'];
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
|
|
476
677
|
export type WarpPaginationProps = {
|
|
477
678
|
/** */
|
|
478
679
|
"base-url"?: WarpPagination['baseUrl'];
|
|
@@ -494,6 +695,7 @@ export type WarpPaginationProps = {
|
|
|
494
695
|
}
|
|
495
696
|
|
|
496
697
|
|
|
698
|
+
|
|
497
699
|
export type WarpSliderThumbProps = {
|
|
498
700
|
/** */
|
|
499
701
|
"aria-label"?: WarpSliderThumb['ariaLabel'];
|
|
@@ -560,6 +762,112 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
560
762
|
"formatter"?: WarpSlider['formatter'];
|
|
561
763
|
|
|
562
764
|
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
export type WarpStepsProps = {
|
|
769
|
+
/** */
|
|
770
|
+
"horizontal"?: WarpSteps['horizontal'];
|
|
771
|
+
/** */
|
|
772
|
+
"right"?: WarpSteps['right'];
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
export type WarpStepProps = {
|
|
779
|
+
/** */
|
|
780
|
+
"active"?: WarpStep['active'];
|
|
781
|
+
/** */
|
|
782
|
+
"completed"?: WarpStep['completed'];
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
export type WarpSwitchProps = {
|
|
789
|
+
/** */
|
|
790
|
+
"value"?: WarpSwitch['value'];
|
|
791
|
+
/** */
|
|
792
|
+
"disabled"?: WarpSwitch['disabled'];
|
|
793
|
+
|
|
794
|
+
/** */
|
|
795
|
+
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
export type WarpTabProps = {
|
|
800
|
+
/** */
|
|
801
|
+
"name"?: WarpTab['name'];
|
|
802
|
+
/** */
|
|
803
|
+
"label"?: WarpTab['label'];
|
|
804
|
+
/** */
|
|
805
|
+
"active"?: WarpTab['active'];
|
|
806
|
+
/** */
|
|
807
|
+
"over"?: WarpTab['over'];
|
|
808
|
+
/** */
|
|
809
|
+
"tab-class"?: WarpTab['tabClass'];
|
|
810
|
+
/** */
|
|
811
|
+
"tabClass"?: WarpTab['tabClass'];
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
export type WarpTabsProps = {
|
|
818
|
+
/** */
|
|
819
|
+
"active"?: WarpTabs['active'];
|
|
820
|
+
/** */
|
|
821
|
+
"tab-class"?: WarpTabs['tabClass'];
|
|
822
|
+
/** */
|
|
823
|
+
"tabClass"?: WarpTabs['tabClass'];
|
|
824
|
+
|
|
825
|
+
/** */
|
|
826
|
+
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
export type WarpTextareaProps = {
|
|
831
|
+
/** */
|
|
832
|
+
"disabled"?: WarpTextarea['disabled'];
|
|
833
|
+
/** */
|
|
834
|
+
"invalid"?: WarpTextarea['invalid'];
|
|
835
|
+
/** */
|
|
836
|
+
"label"?: WarpTextarea['label'];
|
|
837
|
+
/** */
|
|
838
|
+
"help-text"?: WarpTextarea['helpText'];
|
|
839
|
+
/** */
|
|
840
|
+
"helpText"?: WarpTextarea['helpText'];
|
|
841
|
+
/** */
|
|
842
|
+
"maximum-rows"?: WarpTextarea['maxRows'];
|
|
843
|
+
/** */
|
|
844
|
+
"maxRows"?: WarpTextarea['maxRows'];
|
|
845
|
+
/** */
|
|
846
|
+
"minimum-rows"?: WarpTextarea['minRows'];
|
|
847
|
+
/** */
|
|
848
|
+
"minRows"?: WarpTextarea['minRows'];
|
|
849
|
+
/** */
|
|
850
|
+
"name"?: WarpTextarea['name'];
|
|
851
|
+
/** */
|
|
852
|
+
"placeholder"?: WarpTextarea['placeholder'];
|
|
853
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
854
|
+
"read-only"?: WarpTextarea['readOnly'];
|
|
855
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
856
|
+
"readOnly"?: WarpTextarea['readOnly'];
|
|
857
|
+
/** */
|
|
858
|
+
"readonly"?: WarpTextarea['readonly'];
|
|
859
|
+
/** */
|
|
860
|
+
"required"?: WarpTextarea['required'];
|
|
861
|
+
/** */
|
|
862
|
+
"value"?: WarpTextarea['value'];
|
|
863
|
+
/** */
|
|
864
|
+
"optional"?: WarpTextarea['optional'];
|
|
865
|
+
/** */
|
|
866
|
+
"minHeight"?: WarpTextarea['minHeight'];
|
|
867
|
+
/** */
|
|
868
|
+
"maxHeight"?: WarpTextarea['maxHeight'];
|
|
869
|
+
|
|
870
|
+
|
|
563
871
|
}
|
|
564
872
|
|
|
565
873
|
export type CustomElements = {
|
|
@@ -604,6 +912,31 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
604
912
|
"w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
|
|
605
913
|
|
|
606
914
|
|
|
915
|
+
/**
|
|
916
|
+
* Buttons are used to perform actions, with different visuals for different needs.
|
|
917
|
+
*
|
|
918
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
919
|
+
*
|
|
920
|
+
* ## Attributes & Properties
|
|
921
|
+
*
|
|
922
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
923
|
+
*
|
|
924
|
+
* - `autofocus`: undefined
|
|
925
|
+
* - `variant`: undefined
|
|
926
|
+
* - `quiet`: undefined
|
|
927
|
+
* - `small`: undefined
|
|
928
|
+
* - `href`: undefined
|
|
929
|
+
* - `disabled`: undefined
|
|
930
|
+
* - `target`: undefined
|
|
931
|
+
* - `rel`: undefined
|
|
932
|
+
* - `full-width`/`fullWidth`: undefined
|
|
933
|
+
* - `button-class`/`buttonClass`: undefined
|
|
934
|
+
* - `name`: undefined
|
|
935
|
+
* - `classes`: undefined (property only)
|
|
936
|
+
*/
|
|
937
|
+
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
938
|
+
|
|
939
|
+
|
|
607
940
|
/**
|
|
608
941
|
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
609
942
|
*
|
|
@@ -806,14 +1139,17 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
806
1139
|
*
|
|
807
1140
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
808
1141
|
*
|
|
809
|
-
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
810
|
-
* - `
|
|
811
|
-
* - `
|
|
812
|
-
* - `
|
|
1142
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
1143
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
1144
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
1145
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
1146
|
+
* - `always`: Whether to always show a hint.
|
|
1147
|
+
* - `hint`: The content displayed as the help text.
|
|
813
1148
|
* - `label`: The content to disply as the label
|
|
814
1149
|
* - `optional`: Whether to show optional text
|
|
815
1150
|
* - `disabled`: Renders the field in a disabled state.
|
|
816
1151
|
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
1152
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
817
1153
|
* - `name`: undefined
|
|
818
1154
|
* - `value`: undefined
|
|
819
1155
|
*
|
|
@@ -849,6 +1185,7 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
849
1185
|
* - `pattern`: undefined
|
|
850
1186
|
* - `placeholder`: undefined
|
|
851
1187
|
* - `read-only`/`readOnly`: undefined
|
|
1188
|
+
* - `readonly`: undefined
|
|
852
1189
|
* - `required`: undefined
|
|
853
1190
|
* - `type`: undefined
|
|
854
1191
|
* - `value`: undefined
|
|
@@ -980,6 +1317,113 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
980
1317
|
"w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
|
|
981
1318
|
|
|
982
1319
|
|
|
1320
|
+
/**
|
|
1321
|
+
* A combobox element for text input with selectable options.
|
|
1322
|
+
*
|
|
1323
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
1324
|
+
*
|
|
1325
|
+
* ## Attributes & Properties
|
|
1326
|
+
*
|
|
1327
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1328
|
+
*
|
|
1329
|
+
* - `options`: The available options to select from
|
|
1330
|
+
* - `label`: Label above input
|
|
1331
|
+
* - `placeholder`: Input placeholder
|
|
1332
|
+
* - `value`: The input value
|
|
1333
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
1334
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
1335
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
1336
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
1337
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
1338
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
1339
|
+
* - `disabled`: Whether the element is disabled
|
|
1340
|
+
* - `required`: Whether the element is required
|
|
1341
|
+
* - `optional`: Whether to show optional text
|
|
1342
|
+
* - `class-name`/`containerClassName`: Additional container styling
|
|
1343
|
+
* - `list-class-name`/`listClassName`: Additional list styling
|
|
1344
|
+
* - `name`: Name attribute for form submission
|
|
1345
|
+
*/
|
|
1346
|
+
"w-combobox": Partial<WarpComboboxProps & BaseProps<WarpCombobox> & BaseEvents>;
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* An input for dates.
|
|
1351
|
+
*
|
|
1352
|
+
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
1353
|
+
*
|
|
1354
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
1355
|
+
*
|
|
1356
|
+
* ## Attributes & Properties
|
|
1357
|
+
*
|
|
1358
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1359
|
+
*
|
|
1360
|
+
* - `label`: undefined
|
|
1361
|
+
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
1362
|
+
* - `name`: undefined
|
|
1363
|
+
* - `value`: undefined
|
|
1364
|
+
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
1365
|
+
*
|
|
1366
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1367
|
+
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1368
|
+
*
|
|
1369
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1370
|
+
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
1371
|
+
*
|
|
1372
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1373
|
+
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
1374
|
+
*
|
|
1375
|
+
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
1376
|
+
* - `isCalendarOpen`: undefined (property only)
|
|
1377
|
+
* - `navigationDate`: undefined (property only)
|
|
1378
|
+
* - `selectedDate`: undefined (property only) (readonly)
|
|
1379
|
+
* - `month`: undefined (property only) (readonly)
|
|
1380
|
+
* - `weeks`: undefined (property only) (readonly)
|
|
1381
|
+
* - `calendar`: undefined (property only)
|
|
1382
|
+
* - `input`: undefined (property only)
|
|
1383
|
+
* - `toggleButton`: undefined (property only)
|
|
1384
|
+
* - `wrapper`: undefined (property only)
|
|
1385
|
+
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
1386
|
+
*
|
|
1387
|
+
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
1388
|
+
* They work the first time, but once the calendar is closed and reopened
|
|
1389
|
+
* the query will point to an element that doesn't exist anymore. (property only)
|
|
1390
|
+
* - `todayCell`: undefined (property only)
|
|
1391
|
+
* - `selectedCell`: undefined (property only)
|
|
1392
|
+
*/
|
|
1393
|
+
"w-datepicker": Partial<WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents>;
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Dead toggle can be used where the appearance of a checkbox or radio is needed - but for accessibility purposes an actual input element should not be present.
|
|
1398
|
+
*
|
|
1399
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)
|
|
1400
|
+
*
|
|
1401
|
+
* ## Attributes & Properties
|
|
1402
|
+
*
|
|
1403
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1404
|
+
*
|
|
1405
|
+
* - `type`: undefined
|
|
1406
|
+
* - `checked`: undefined
|
|
1407
|
+
* - `indeterminate`: undefined
|
|
1408
|
+
* - `invalid`: undefined
|
|
1409
|
+
* - `disabled`: undefined
|
|
1410
|
+
*/
|
|
1411
|
+
"w-dead-toggle": Partial<WarpDeadToggleProps & BaseProps<WarpDeadToggle> & BaseEvents>;
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
*
|
|
1417
|
+
* ## Attributes & Properties
|
|
1418
|
+
*
|
|
1419
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1420
|
+
*
|
|
1421
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
1422
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
1423
|
+
*/
|
|
1424
|
+
"w-pageindicator": Partial<WarpPageIndicatorProps & BaseProps<WarpPageIndicator> & BaseEvents>;
|
|
1425
|
+
|
|
1426
|
+
|
|
983
1427
|
/**
|
|
984
1428
|
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
985
1429
|
*
|
|
@@ -1003,6 +1447,7 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
1003
1447
|
"w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
|
|
1004
1448
|
|
|
1005
1449
|
|
|
1450
|
+
|
|
1006
1451
|
/**
|
|
1007
1452
|
* Component to place inside a `<w-slider>`.
|
|
1008
1453
|
*
|
|
@@ -1070,6 +1515,141 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
1070
1515
|
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
1071
1516
|
*/
|
|
1072
1517
|
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
1522
|
+
*
|
|
1523
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
1524
|
+
*
|
|
1525
|
+
* ## Attributes & Properties
|
|
1526
|
+
*
|
|
1527
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1528
|
+
*
|
|
1529
|
+
* - `horizontal`: undefined
|
|
1530
|
+
* - `right`: undefined
|
|
1531
|
+
*
|
|
1532
|
+
* ## Methods
|
|
1533
|
+
*
|
|
1534
|
+
* Methods that can be called to access component functionality.
|
|
1535
|
+
*
|
|
1536
|
+
* - `updateStepsContext() => void`: undefined
|
|
1537
|
+
*/
|
|
1538
|
+
"w-steps": Partial<WarpStepsProps & BaseProps<WarpSteps> & BaseEvents>;
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Individual step component that shows a single step in a process
|
|
1543
|
+
*
|
|
1544
|
+
* ## Attributes & Properties
|
|
1545
|
+
*
|
|
1546
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1547
|
+
*
|
|
1548
|
+
* - `active`: undefined
|
|
1549
|
+
* - `completed`: undefined
|
|
1550
|
+
*
|
|
1551
|
+
* ## Methods
|
|
1552
|
+
*
|
|
1553
|
+
* Methods that can be called to access component functionality.
|
|
1554
|
+
*
|
|
1555
|
+
* - `setContext(context: StepsContext) => void`: undefined
|
|
1556
|
+
* - `getAriaLabel() => void`: undefined
|
|
1557
|
+
*/
|
|
1558
|
+
"w-step": Partial<WarpStepProps & BaseProps<WarpStep> & BaseEvents>;
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
*
|
|
1563
|
+
*
|
|
1564
|
+
* ## Attributes & Properties
|
|
1565
|
+
*
|
|
1566
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1567
|
+
*
|
|
1568
|
+
* - `value`: undefined
|
|
1569
|
+
* - `disabled`: undefined
|
|
1570
|
+
*
|
|
1571
|
+
* ## Events
|
|
1572
|
+
*
|
|
1573
|
+
* Events that will be emitted by the component.
|
|
1574
|
+
*
|
|
1575
|
+
* - `change`: undefined
|
|
1576
|
+
*/
|
|
1577
|
+
"w-switch": Partial<WarpSwitchProps & BaseProps<WarpSwitch> & BaseEvents>;
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* Individual tab component used within w-tabs container.
|
|
1582
|
+
*
|
|
1583
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1584
|
+
*
|
|
1585
|
+
* ## Attributes & Properties
|
|
1586
|
+
*
|
|
1587
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1588
|
+
*
|
|
1589
|
+
* - `name`: undefined
|
|
1590
|
+
* - `label`: undefined
|
|
1591
|
+
* - `active`: undefined
|
|
1592
|
+
* - `over`: undefined
|
|
1593
|
+
* - `tab-class`/`tabClass`: undefined
|
|
1594
|
+
*/
|
|
1595
|
+
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
1600
|
+
*
|
|
1601
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1602
|
+
*
|
|
1603
|
+
* ## Attributes & Properties
|
|
1604
|
+
*
|
|
1605
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1606
|
+
*
|
|
1607
|
+
* - `active`: undefined
|
|
1608
|
+
* - `tab-class`/`tabClass`: undefined
|
|
1609
|
+
* - `tabs`: undefined (property only) (readonly)
|
|
1610
|
+
* - `activeTab`: undefined (property only) (readonly)
|
|
1611
|
+
*
|
|
1612
|
+
* ## Events
|
|
1613
|
+
*
|
|
1614
|
+
* Events that will be emitted by the component.
|
|
1615
|
+
*
|
|
1616
|
+
* - `change`: undefined
|
|
1617
|
+
*/
|
|
1618
|
+
"w-tabs": Partial<WarpTabsProps & BaseProps<WarpTabs> & BaseEvents>;
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* A single line text input element.
|
|
1623
|
+
*
|
|
1624
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
1625
|
+
*
|
|
1626
|
+
* ## Attributes & Properties
|
|
1627
|
+
*
|
|
1628
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1629
|
+
*
|
|
1630
|
+
* - `disabled`: undefined
|
|
1631
|
+
* - `invalid`: undefined
|
|
1632
|
+
* - `label`: undefined
|
|
1633
|
+
* - `help-text`/`helpText`: undefined
|
|
1634
|
+
* - `maximum-rows`/`maxRows`: undefined
|
|
1635
|
+
* - `minimum-rows`/`minRows`: undefined
|
|
1636
|
+
* - `name`: undefined
|
|
1637
|
+
* - `placeholder`: undefined
|
|
1638
|
+
* - `read-only`/`readOnly`: undefined
|
|
1639
|
+
* - `readonly`: undefined
|
|
1640
|
+
* - `required`: undefined
|
|
1641
|
+
* - `value`: undefined
|
|
1642
|
+
* - `optional`: undefined
|
|
1643
|
+
* - `minHeight`: undefined (property only)
|
|
1644
|
+
* - `maxHeight`: undefined (property only)
|
|
1645
|
+
*
|
|
1646
|
+
* ## Methods
|
|
1647
|
+
*
|
|
1648
|
+
* Methods that can be called to access component functionality.
|
|
1649
|
+
*
|
|
1650
|
+
* - `handler(e: InputEvent) => void`: undefined
|
|
1651
|
+
*/
|
|
1652
|
+
"w-textarea": Partial<WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents>;
|
|
1073
1653
|
}
|
|
1074
1654
|
|
|
1075
1655
|
export type CustomCssProperties = {
|