@warp-ds/elements 2.3.0-next.9 → 2.3.1
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 +156 -3728
- package/dist/index.d.ts +34 -717
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/attention/attention.stories.js +4 -1
- package/dist/packages/attention/index.js +55 -19
- package/dist/packages/attention/index.js.map +3 -3
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/button.stories.d.ts +4 -4
- package/dist/packages/button/button.stories.js +4 -4
- package/dist/packages/button/button.test.js +30 -1
- package/dist/packages/button/index.d.ts +2 -0
- package/dist/packages/button/index.js +49 -13
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/datepicker/datepicker.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.js +439 -2732
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.test.js +27 -0
- package/dist/packages/datepicker/index.js +2785 -1
- package/dist/packages/datepicker/{datepicker.js.map → index.js.map} +3 -3
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/link/index.d.ts +2 -8
- package/dist/packages/link/index.js +43 -7
- package/dist/packages/link/index.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +6 -4
- package/dist/packages/link/link.react.stories.js +22 -12
- package/dist/packages/link/link.stories.d.ts +5 -3
- package/dist/packages/link/link.stories.js +22 -12
- package/dist/packages/link/styles.js +36 -0
- package/dist/packages/modal/index.js.map +2 -2
- package/dist/packages/modal/modal-header.js.map +2 -2
- package/dist/packages/modal/modal.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.js +32 -32
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +26 -5
- package/dist/packages/select/index.js +17 -16
- package/dist/packages/select/index.js.map +3 -3
- 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/select/select.test.js +30 -0
- package/dist/packages/textfield/index.d.ts +4 -0
- package/dist/packages/textfield/index.js +20 -19
- package/dist/packages/textfield/index.js.map +3 -3
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +17 -0
- package/dist/web-types.json +44 -707
- package/package.json +11 -89
- package/dist/packages/combobox/combobox.react.stories.d.ts +0 -28
- package/dist/packages/combobox/combobox.react.stories.js +0 -90
- package/dist/packages/combobox/combobox.stories.d.ts +0 -18
- package/dist/packages/combobox/combobox.stories.js +0 -117
- package/dist/packages/combobox/index.d.ts +0 -85
- package/dist/packages/combobox/index.js +0 -2492
- package/dist/packages/combobox/index.js.map +0 -7
- package/dist/packages/combobox/locales/da/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/da/messages.mjs +0 -1
- package/dist/packages/combobox/locales/en/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/en/messages.mjs +0 -1
- package/dist/packages/combobox/locales/fi/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/fi/messages.mjs +0 -1
- package/dist/packages/combobox/locales/nb/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/nb/messages.mjs +0 -1
- package/dist/packages/combobox/locales/sv/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/sv/messages.mjs +0 -1
- package/dist/packages/combobox/react.d.ts +0 -7
- package/dist/packages/combobox/react.js +0 -17
- package/dist/packages/combobox/styles.d.ts +0 -1
- package/dist/packages/combobox/styles.js +0 -2
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +0 -15
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +0 -34
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -14
- package/dist/packages/dead-toggle/dead-toggle.stories.js +0 -45
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/dead-toggle/dead-toggle.test.js +0 -9
- package/dist/packages/dead-toggle/index.d.ts +0 -17
- package/dist/packages/dead-toggle/index.js +0 -2547
- package/dist/packages/dead-toggle/index.js.map +0 -7
- package/dist/packages/dead-toggle/react.d.ts +0 -2
- package/dist/packages/dead-toggle/react.js +0 -11
- package/dist/packages/pageindicator/index.d.ts +0 -10
- package/dist/packages/pageindicator/index.js +0 -32
- package/dist/packages/pageindicator/index.js.map +0 -7
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +0 -19
- package/dist/packages/pageindicator/pageindicator.react.stories.js +0 -20
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
- package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
- package/dist/packages/pageindicator/react.d.ts +0 -2
- package/dist/packages/pageindicator/react.js +0 -11
- package/dist/packages/pageindicator/style.d.ts +0 -1
- package/dist/packages/pageindicator/style.js +0 -26
- package/dist/packages/pagination/index.d.ts +0 -32
- package/dist/packages/pagination/index.js +0 -2500
- package/dist/packages/pagination/index.js.map +0 -7
- package/dist/packages/pagination/locales/da/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/da/messages.mjs +0 -1
- package/dist/packages/pagination/locales/en/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/en/messages.mjs +0 -1
- package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
- package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
- package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
- package/dist/packages/pagination/pagination.react.stories.js +0 -45
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.stories.js +0 -56
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/pagination.test.js +0 -76
- package/dist/packages/pagination/react.d.ts +0 -5
- package/dist/packages/pagination/react.js +0 -15
- package/dist/packages/pagination/styles.d.ts +0 -1
- package/dist/packages/pagination/styles.js +0 -2
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +0 -10
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -66
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +0 -2591
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +0 -11
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +0 -25
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -6
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +0 -7
- package/dist/packages/rip-and-tear-checkbox/react.js +0 -20
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +0 -12
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +0 -10
- 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 +0 -46
- package/dist/packages/rip-and-tear-radio/base-element.js +0 -100
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/rip-and-tear-radio/custom-error-validator.js +0 -22
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
- package/dist/packages/rip-and-tear-radio/form-associated-element.js +0 -282
- package/dist/packages/rip-and-tear-radio/host-styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/host-styles.js +0 -12
- package/dist/packages/rip-and-tear-radio/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/index.js +0 -6
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/invalid.js +0 -5
- package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/math.js +0 -4
- package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +0 -59
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
- package/dist/packages/rip-and-tear-radio/radio-group.js +0 -2648
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +0 -1
- package/dist/packages/rip-and-tear-radio/radio-styles.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
- package/dist/packages/rip-and-tear-radio/radio.js +0 -2562
- package/dist/packages/rip-and-tear-radio/radio.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/radio.stories.js +0 -2653
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/react.d.ts +0 -9
- package/dist/packages/rip-and-tear-radio/react.js +0 -22
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
- package/dist/packages/rip-and-tear-radio/required-validator.js +0 -34
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +0 -9
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +0 -10
- package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
- package/dist/packages/rip-and-tear-radio/slot.js +0 -71
- package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
- package/dist/packages/rip-and-tear-radio/watch.js +0 -39
- package/dist/packages/slider/Slider.d.ts +0 -2
- package/dist/packages/slider/Slider.js +0 -8
- package/dist/packages/slider/SliderThumb.d.ts +0 -2
- package/dist/packages/slider/SliderThumb.js +0 -8
- package/dist/packages/slider/index.d.ts +0 -2
- package/dist/packages/slider/index.js +0 -2
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +0 -2
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +0 -3
- package/dist/packages/slider/react.d.ts +0 -8
- package/dist/packages/slider/react.js +0 -20
- package/dist/packages/slider/slider-thumb.d.ts +0 -57
- package/dist/packages/slider/slider-thumb.js +0 -2705
- package/dist/packages/slider/slider-thumb.js.map +0 -7
- package/dist/packages/slider/slider.d.ts +0 -46
- package/dist/packages/slider/slider.js +0 -2587
- package/dist/packages/slider/slider.js.map +0 -7
- package/dist/packages/slider/slider.react.stories.d.ts +0 -18
- package/dist/packages/slider/slider.react.stories.js +0 -118
- package/dist/packages/slider/slider.stories.d.ts +0 -18
- package/dist/packages/slider/slider.stories.js +0 -197
- package/dist/packages/slider/slider.test.d.ts +0 -4
- package/dist/packages/slider/slider.test.js +0 -83
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +0 -167
- package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider.styles.js +0 -134
- package/dist/packages/slider/styles.d.ts +0 -1
- package/dist/packages/slider/styles.js +0 -2
- package/dist/packages/steps/index.d.ts +0 -36
- package/dist/packages/steps/index.js +0 -2465
- package/dist/packages/steps/index.js.map +0 -7
- package/dist/packages/steps/locales/da/messages.d.mts +0 -1
- package/dist/packages/steps/locales/da/messages.mjs +0 -1
- package/dist/packages/steps/locales/en/messages.d.mts +0 -1
- package/dist/packages/steps/locales/en/messages.mjs +0 -1
- package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
- package/dist/packages/steps/locales/fi/messages.mjs +0 -1
- package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
- package/dist/packages/steps/locales/nb/messages.mjs +0 -1
- package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
- package/dist/packages/steps/locales/sv/messages.mjs +0 -1
- package/dist/packages/steps/react.d.ts +0 -3
- package/dist/packages/steps/react.js +0 -16
- package/dist/packages/steps/steps.react.stories.d.ts +0 -15
- package/dist/packages/steps/steps.react.stories.js +0 -112
- package/dist/packages/steps/steps.stories.d.ts +0 -12
- package/dist/packages/steps/steps.stories.js +0 -172
- package/dist/packages/steps/styles.d.ts +0 -1
- package/dist/packages/steps/styles.js +0 -2
- package/dist/packages/switch/index.d.ts +0 -15
- package/dist/packages/switch/index.js +0 -2455
- package/dist/packages/switch/index.js.map +0 -7
- package/dist/packages/switch/react.d.ts +0 -5
- package/dist/packages/switch/react.js +0 -15
- package/dist/packages/switch/styles.d.ts +0 -1
- package/dist/packages/switch/styles.js +0 -2
- package/dist/packages/switch/switch.react.stories.d.ts +0 -15
- package/dist/packages/switch/switch.react.stories.js +0 -29
- package/dist/packages/switch/switch.stories.d.ts +0 -9
- package/dist/packages/switch/switch.stories.js +0 -34
- package/dist/packages/tabs/index.d.ts +0 -4
- package/dist/packages/tabs/index.js +0 -3
- package/dist/packages/tabs/react.d.ts +0 -12
- package/dist/packages/tabs/react.js +0 -31
- package/dist/packages/tabs/styles.d.ts +0 -1
- package/dist/packages/tabs/styles.js +0 -2
- package/dist/packages/tabs/tab-panel.d.ts +0 -20
- package/dist/packages/tabs/tab-panel.js +0 -51
- package/dist/packages/tabs/tab.d.ts +0 -18
- package/dist/packages/tabs/tab.js +0 -2464
- package/dist/packages/tabs/tab.js.map +0 -7
- package/dist/packages/tabs/tabs.d.ts +0 -40
- package/dist/packages/tabs/tabs.js +0 -2448
- package/dist/packages/tabs/tabs.js.map +0 -7
- package/dist/packages/tabs/tabs.react.stories.d.ts +0 -15
- package/dist/packages/tabs/tabs.react.stories.js +0 -51
- package/dist/packages/tabs/tabs.stories.d.ts +0 -11
- package/dist/packages/tabs/tabs.stories.js +0 -93
- package/dist/packages/textarea/index.d.ts +0 -1
- package/dist/packages/textarea/index.js +0 -1
- package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/da/messages.mjs +0 -1
- package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/en/messages.mjs +0 -1
- package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
- package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
- package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
- package/dist/packages/textarea/react.d.ts +0 -11
- package/dist/packages/textarea/react.js +0 -21
- package/dist/packages/textarea/styles.d.ts +0 -1
- package/dist/packages/textarea/styles.js +0 -2
- package/dist/packages/textarea/textarea.d.ts +0 -48
- package/dist/packages/textarea/textarea.js +0 -2475
- package/dist/packages/textarea/textarea.js.map +0 -7
- package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
- package/dist/packages/textarea/textarea.react.stories.js +0 -41
- package/dist/packages/textarea/textarea.stories.d.ts +0 -19
- package/dist/packages/textarea/textarea.stories.js +0 -85
- package/dist/packages/textarea/textarea.test.d.ts +0 -1
- package/dist/packages/textarea/textarea.test.js +0 -49
- package/dist/packages/toggle-styles.d.ts +0 -1
- package/dist/packages/toggle-styles.js +0 -108
- package/dist/setup-tests.d.ts +0 -1
- package/dist/setup-tests.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,19 +16,6 @@ import type { ModalFooter } from "./packages/modal/modal-footer.ts";
|
|
|
16
16
|
import type { ModalHeader } from "./packages/modal/modal-header.ts";
|
|
17
17
|
import type { ModalMain } from "./packages/modal/modal-main.ts";
|
|
18
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";
|
|
23
|
-
import type { WarpPagination } from "./packages/pagination/index.ts";
|
|
24
|
-
import type { WCheckboxGroup } from "./packages/rip-and-tear-checkbox/checkbox-group.ts";
|
|
25
|
-
import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
|
|
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";
|
|
32
19
|
|
|
33
20
|
/**
|
|
34
21
|
* This type can be used to create scoped tags for your components.
|
|
@@ -147,8 +134,6 @@ export type WarpLinkProps = {
|
|
|
147
134
|
/** */
|
|
148
135
|
"variant"?: WarpLink['variant'];
|
|
149
136
|
/** */
|
|
150
|
-
"quiet"?: WarpLink['quiet'];
|
|
151
|
-
/** */
|
|
152
137
|
"small"?: WarpLink['small'];
|
|
153
138
|
/** */
|
|
154
139
|
"href"?: WarpLink['href'];
|
|
@@ -162,14 +147,6 @@ export type WarpLinkProps = {
|
|
|
162
147
|
"full-width"?: WarpLink['fullWidth'];
|
|
163
148
|
/** */
|
|
164
149
|
"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
150
|
|
|
174
151
|
|
|
175
152
|
}
|
|
@@ -379,15 +356,21 @@ export type WarpPillProps = {
|
|
|
379
356
|
|
|
380
357
|
|
|
381
358
|
export type WarpSelectProps = {
|
|
382
|
-
/** Whether the element should receive focus on render */
|
|
359
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
383
360
|
"auto-focus"?: WarpSelect['autoFocus'];
|
|
384
|
-
/** Whether the element should receive focus on render */
|
|
361
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
385
362
|
"autoFocus"?: WarpSelect['autoFocus'];
|
|
386
|
-
/**
|
|
363
|
+
/** Whether the element should receive focus on render */
|
|
364
|
+
"autofocus"?: WarpSelect['autofocus'];
|
|
365
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
366
|
+
"help-text"?: WarpSelect['helpText'];
|
|
367
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
368
|
+
"helpText"?: WarpSelect['helpText'];
|
|
369
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
387
370
|
"invalid"?: WarpSelect['invalid'];
|
|
388
|
-
/** Whether to always show a hint */
|
|
371
|
+
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
389
372
|
"always"?: WarpSelect['always'];
|
|
390
|
-
/** The content displayed as the help text */
|
|
373
|
+
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
391
374
|
"hint"?: WarpSelect['hint'];
|
|
392
375
|
/** The content to disply as the label */
|
|
393
376
|
"label"?: WarpSelect['label'];
|
|
@@ -395,10 +378,12 @@ export type WarpSelectProps = {
|
|
|
395
378
|
"optional"?: WarpSelect['optional'];
|
|
396
379
|
/** Renders the field in a disabled state. */
|
|
397
380
|
"disabled"?: WarpSelect['disabled'];
|
|
398
|
-
/** Renders the field in a readonly state. */
|
|
381
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
399
382
|
"read-only"?: WarpSelect['readOnly'];
|
|
400
|
-
/** Renders the field in a readonly state. */
|
|
383
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
401
384
|
"readOnly"?: WarpSelect['readOnly'];
|
|
385
|
+
/** Renders the field in a readonly state. */
|
|
386
|
+
"readonly"?: WarpSelect['readonly'];
|
|
402
387
|
/** */
|
|
403
388
|
"name"?: WarpSelect['name'];
|
|
404
389
|
/** */
|
|
@@ -453,6 +438,8 @@ export type WarpTextFieldProps = {
|
|
|
453
438
|
"value"?: WarpTextField['value'];
|
|
454
439
|
/** */
|
|
455
440
|
"name"?: WarpTextField['name'];
|
|
441
|
+
/** */
|
|
442
|
+
"step"?: WarpTextField['step'];
|
|
456
443
|
/** Function to format value when the input field.
|
|
457
444
|
|
|
458
445
|
Only active when the input field does not have focus,
|
|
@@ -517,349 +504,6 @@ export type ModalMainProps = {
|
|
|
517
504
|
export type WarpToastContainerProps = {
|
|
518
505
|
|
|
519
506
|
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
export type WarpComboboxProps = {
|
|
524
|
-
/** The available options to select from */
|
|
525
|
-
"options"?: WarpCombobox['options'];
|
|
526
|
-
/** Label above input */
|
|
527
|
-
"label"?: WarpCombobox['label'];
|
|
528
|
-
/** Input placeholder */
|
|
529
|
-
"placeholder"?: WarpCombobox['placeholder'];
|
|
530
|
-
/** The input value */
|
|
531
|
-
"value"?: WarpCombobox['value'];
|
|
532
|
-
/** Whether the popover opens when focus is on the text field */
|
|
533
|
-
"open-on-focus"?: WarpCombobox['openOnFocus'];
|
|
534
|
-
/** Whether the popover opens when focus is on the text field */
|
|
535
|
-
"openOnFocus"?: WarpCombobox['openOnFocus'];
|
|
536
|
-
/** Select active option on blur */
|
|
537
|
-
"select-on-blur"?: WarpCombobox['selectOnBlur'];
|
|
538
|
-
/** Select active option on blur */
|
|
539
|
-
"selectOnBlur"?: WarpCombobox['selectOnBlur'];
|
|
540
|
-
/** Whether the matching text segments in the options should be highlighted */
|
|
541
|
-
"match-text-segments"?: WarpCombobox['matchTextSegments'];
|
|
542
|
-
/** Whether the matching text segments in the options should be highlighted */
|
|
543
|
-
"matchTextSegments"?: WarpCombobox['matchTextSegments'];
|
|
544
|
-
/** Disable client-side static filtering */
|
|
545
|
-
"disable-static-filtering"?: WarpCombobox['disableStaticFiltering'];
|
|
546
|
-
/** Disable client-side static filtering */
|
|
547
|
-
"disableStaticFiltering"?: WarpCombobox['disableStaticFiltering'];
|
|
548
|
-
/** Renders the input field in an invalid state */
|
|
549
|
-
"invalid"?: WarpCombobox['invalid'];
|
|
550
|
-
/** The content to display as the help text */
|
|
551
|
-
"help-text"?: WarpCombobox['helpText'];
|
|
552
|
-
/** The content to display as the help text */
|
|
553
|
-
"helpText"?: WarpCombobox['helpText'];
|
|
554
|
-
/** Whether the element is disabled */
|
|
555
|
-
"disabled"?: WarpCombobox['disabled'];
|
|
556
|
-
/** Whether the element is required */
|
|
557
|
-
"required"?: WarpCombobox['required'];
|
|
558
|
-
/** Whether to show optional text */
|
|
559
|
-
"optional"?: WarpCombobox['optional'];
|
|
560
|
-
/** Additional container styling */
|
|
561
|
-
"class-name"?: WarpCombobox['containerClassName'];
|
|
562
|
-
/** Additional container styling */
|
|
563
|
-
"containerClassName"?: WarpCombobox['containerClassName'];
|
|
564
|
-
/** Additional list styling */
|
|
565
|
-
"list-class-name"?: WarpCombobox['listClassName'];
|
|
566
|
-
/** Additional list styling */
|
|
567
|
-
"listClassName"?: WarpCombobox['listClassName'];
|
|
568
|
-
/** Name attribute for form submission */
|
|
569
|
-
"name"?: WarpCombobox['name'];
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
export type WarpDatepickerProps = {
|
|
576
|
-
/** */
|
|
577
|
-
"label"?: WarpDatepicker['label'];
|
|
578
|
-
/** Takes precedence over the `<html>` lang attribute. */
|
|
579
|
-
"lang"?: WarpDatepicker['lang'];
|
|
580
|
-
/** */
|
|
581
|
-
"name"?: WarpDatepicker['name'];
|
|
582
|
-
/** */
|
|
583
|
-
"value"?: WarpDatepicker['value'];
|
|
584
|
-
/** Decides the format of the date as shown in the calendar header.
|
|
585
|
-
|
|
586
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
587
|
-
"header-format"?: WarpDatepicker['headerFormat'];
|
|
588
|
-
/** Decides the format of the date as shown in the calendar header.
|
|
589
|
-
|
|
590
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
591
|
-
"headerFormat"?: WarpDatepicker['headerFormat'];
|
|
592
|
-
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
593
|
-
|
|
594
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
595
|
-
"weekday-format"?: WarpDatepicker['weekdayFormat'];
|
|
596
|
-
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
597
|
-
|
|
598
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
599
|
-
"weekdayFormat"?: WarpDatepicker['weekdayFormat'];
|
|
600
|
-
/** Decides the format of the day in the calendar as read to screen readers.
|
|
601
|
-
|
|
602
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
603
|
-
"day-format"?: WarpDatepicker['dayFormat'];
|
|
604
|
-
/** Decides the format of the day in the calendar as read to screen readers.
|
|
605
|
-
|
|
606
|
-
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
607
|
-
"dayFormat"?: WarpDatepicker['dayFormat'];
|
|
608
|
-
/** Lets you control if a date in the calendar should be disabled.
|
|
609
|
-
|
|
610
|
-
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
611
|
-
"isDayDisabled"?: WarpDatepicker['isDayDisabled'];
|
|
612
|
-
/** */
|
|
613
|
-
"isCalendarOpen"?: WarpDatepicker['isCalendarOpen'];
|
|
614
|
-
/** */
|
|
615
|
-
"navigationDate"?: WarpDatepicker['navigationDate'];
|
|
616
|
-
/** */
|
|
617
|
-
"calendar"?: WarpDatepicker['calendar'];
|
|
618
|
-
/** */
|
|
619
|
-
"input"?: WarpDatepicker['input'];
|
|
620
|
-
/** */
|
|
621
|
-
"toggleButton"?: WarpDatepicker['toggleButton'];
|
|
622
|
-
/** */
|
|
623
|
-
"wrapper"?: WarpDatepicker['wrapper'];
|
|
624
|
-
/** This is the first focusable element, needed for the modal focus trap.
|
|
625
|
-
|
|
626
|
-
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
627
|
-
They work the first time, but once the calendar is closed and reopened
|
|
628
|
-
the query will point to an element that doesn't exist anymore. */
|
|
629
|
-
"previousMonthButton"?: WarpDatepicker['previousMonthButton'];
|
|
630
|
-
/** */
|
|
631
|
-
"todayCell"?: WarpDatepicker['todayCell'];
|
|
632
|
-
/** */
|
|
633
|
-
"selectedCell"?: WarpDatepicker['selectedCell'];
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
export type WarpDeadToggleProps = {
|
|
640
|
-
/** */
|
|
641
|
-
"type"?: WarpDeadToggle['type'];
|
|
642
|
-
/** */
|
|
643
|
-
"checked"?: WarpDeadToggle['checked'];
|
|
644
|
-
/** */
|
|
645
|
-
"indeterminate"?: WarpDeadToggle['indeterminate'];
|
|
646
|
-
/** */
|
|
647
|
-
"invalid"?: WarpDeadToggle['invalid'];
|
|
648
|
-
/** */
|
|
649
|
-
"disabled"?: WarpDeadToggle['disabled'];
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
export type WarpPageIndicatorProps = {
|
|
656
|
-
/** Currently selected page (1-based index) */
|
|
657
|
-
"selected-page"?: WarpPageIndicator['selectedPage'];
|
|
658
|
-
/** Currently selected page (1-based index) */
|
|
659
|
-
"selectedPage"?: WarpPageIndicator['selectedPage'];
|
|
660
|
-
/** Total number of pages */
|
|
661
|
-
"page-count"?: WarpPageIndicator['pageCount'];
|
|
662
|
-
/** Total number of pages */
|
|
663
|
-
"pageCount"?: WarpPageIndicator['pageCount'];
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
export type WarpPaginationProps = {
|
|
670
|
-
/** */
|
|
671
|
-
"base-url"?: WarpPagination['baseUrl'];
|
|
672
|
-
/** */
|
|
673
|
-
"baseUrl"?: WarpPagination['baseUrl'];
|
|
674
|
-
/** */
|
|
675
|
-
"pages"?: WarpPagination['pages'];
|
|
676
|
-
/** */
|
|
677
|
-
"current-page"?: WarpPagination['currentPageNumber'];
|
|
678
|
-
/** */
|
|
679
|
-
"currentPageNumber"?: WarpPagination['currentPageNumber'];
|
|
680
|
-
/** */
|
|
681
|
-
"visible-pages"?: WarpPagination['visiblePages'];
|
|
682
|
-
/** */
|
|
683
|
-
"visiblePages"?: WarpPagination['visiblePages'];
|
|
684
|
-
|
|
685
|
-
/** Triggered when a link button in the pagination is clicked. Contains the page number in `string` form. */
|
|
686
|
-
"onpage-click"?: (e: CustomEvent<CustomEvent>) => void;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
export type WarpSliderThumbProps = {
|
|
692
|
-
/** */
|
|
693
|
-
"aria-label"?: WarpSliderThumb['ariaLabel'];
|
|
694
|
-
/** */
|
|
695
|
-
"ariaLabel"?: WarpSliderThumb['ariaLabel'];
|
|
696
|
-
/** */
|
|
697
|
-
"aria-description"?: WarpSliderThumb['ariaDescription'];
|
|
698
|
-
/** */
|
|
699
|
-
"ariaDescription"?: WarpSliderThumb['ariaDescription'];
|
|
700
|
-
/** */
|
|
701
|
-
"label"?: WarpSliderThumb['label'];
|
|
702
|
-
/** */
|
|
703
|
-
"name"?: WarpSliderThumb['name'];
|
|
704
|
-
/** */
|
|
705
|
-
"value"?: WarpSliderThumb['value'];
|
|
706
|
-
/** */
|
|
707
|
-
"disabled"?: WarpSliderThumb['disabled'];
|
|
708
|
-
/** Set by `<w-slider>` */
|
|
709
|
-
"markers"?: WarpSliderThumb['markers'];
|
|
710
|
-
/** Set by `<w-slider>` */
|
|
711
|
-
"required"?: WarpSliderThumb['required'];
|
|
712
|
-
/** Set by `<w-slider>` */
|
|
713
|
-
"step"?: WarpSliderThumb['step'];
|
|
714
|
-
/** Set by `<w-slider>` */
|
|
715
|
-
"min"?: WarpSliderThumb['min'];
|
|
716
|
-
/** Set by `<w-slider>` */
|
|
717
|
-
"max"?: WarpSliderThumb['max'];
|
|
718
|
-
/** Set by `<w-slider>` */
|
|
719
|
-
"suffix"?: WarpSliderThumb['suffix'];
|
|
720
|
-
/** JS hook to help you format the numeric value how you want. */
|
|
721
|
-
"formatter"?: WarpSliderThumb['formatter'];
|
|
722
|
-
/** */
|
|
723
|
-
"range"?: WarpSliderThumb['range'];
|
|
724
|
-
/** */
|
|
725
|
-
"textfield"?: WarpSliderThumb['textfield'];
|
|
726
|
-
|
|
727
|
-
/** */
|
|
728
|
-
"onslidervalidity"?: (e: CustomEvent<CustomEvent>) => void;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
export type WarpSliderProps = {
|
|
733
|
-
/** The slider fieldset label. Required for proper accessibility.
|
|
734
|
-
|
|
735
|
-
If you need to display HTML, use the `label` slot instead. */
|
|
736
|
-
"label"?: WarpSlider['label'];
|
|
737
|
-
/** */
|
|
738
|
-
"disabled"?: WarpSlider['disabled'];
|
|
739
|
-
/** */
|
|
740
|
-
"invalid"?: WarpSlider['invalid'];
|
|
741
|
-
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
742
|
-
"required"?: WarpSlider['required'];
|
|
743
|
-
/** */
|
|
744
|
-
"min"?: WarpSlider['min'];
|
|
745
|
-
/** */
|
|
746
|
-
"max"?: WarpSlider['max'];
|
|
747
|
-
/** Pass a value similar to step to create visual markers at that interval */
|
|
748
|
-
"markers"?: WarpSlider['markers'];
|
|
749
|
-
/** */
|
|
750
|
-
"step"?: WarpSlider['step'];
|
|
751
|
-
/** Suffix used in text input fields and for the min and max values of the slider. */
|
|
752
|
-
"suffix"?: WarpSlider['suffix'];
|
|
753
|
-
/** Function to format the to- and from labels and value in the slider thumb tooltip. */
|
|
754
|
-
"formatter"?: WarpSlider['formatter'];
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
export type WarpStepsProps = {
|
|
761
|
-
/** */
|
|
762
|
-
"horizontal"?: WarpSteps['horizontal'];
|
|
763
|
-
/** */
|
|
764
|
-
"right"?: WarpSteps['right'];
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
export type WarpStepProps = {
|
|
771
|
-
/** */
|
|
772
|
-
"active"?: WarpStep['active'];
|
|
773
|
-
/** */
|
|
774
|
-
"completed"?: WarpStep['completed'];
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
export type WarpSwitchProps = {
|
|
781
|
-
/** */
|
|
782
|
-
"value"?: WarpSwitch['value'];
|
|
783
|
-
/** */
|
|
784
|
-
"disabled"?: WarpSwitch['disabled'];
|
|
785
|
-
|
|
786
|
-
/** */
|
|
787
|
-
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
export type WarpTabProps = {
|
|
792
|
-
/** */
|
|
793
|
-
"name"?: WarpTab['name'];
|
|
794
|
-
/** */
|
|
795
|
-
"label"?: WarpTab['label'];
|
|
796
|
-
/** */
|
|
797
|
-
"active"?: WarpTab['active'];
|
|
798
|
-
/** */
|
|
799
|
-
"over"?: WarpTab['over'];
|
|
800
|
-
/** */
|
|
801
|
-
"tab-class"?: WarpTab['tabClass'];
|
|
802
|
-
/** */
|
|
803
|
-
"tabClass"?: WarpTab['tabClass'];
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
export type WarpTabsProps = {
|
|
810
|
-
/** */
|
|
811
|
-
"active"?: WarpTabs['active'];
|
|
812
|
-
/** */
|
|
813
|
-
"tab-class"?: WarpTabs['tabClass'];
|
|
814
|
-
/** */
|
|
815
|
-
"tabClass"?: WarpTabs['tabClass'];
|
|
816
|
-
|
|
817
|
-
/** */
|
|
818
|
-
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
export type WarpTextareaProps = {
|
|
823
|
-
/** */
|
|
824
|
-
"disabled"?: WarpTextarea['disabled'];
|
|
825
|
-
/** */
|
|
826
|
-
"invalid"?: WarpTextarea['invalid'];
|
|
827
|
-
/** */
|
|
828
|
-
"label"?: WarpTextarea['label'];
|
|
829
|
-
/** */
|
|
830
|
-
"help-text"?: WarpTextarea['helpText'];
|
|
831
|
-
/** */
|
|
832
|
-
"helpText"?: WarpTextarea['helpText'];
|
|
833
|
-
/** */
|
|
834
|
-
"maximum-rows"?: WarpTextarea['maxRows'];
|
|
835
|
-
/** */
|
|
836
|
-
"maxRows"?: WarpTextarea['maxRows'];
|
|
837
|
-
/** */
|
|
838
|
-
"minimum-rows"?: WarpTextarea['minRows'];
|
|
839
|
-
/** */
|
|
840
|
-
"minRows"?: WarpTextarea['minRows'];
|
|
841
|
-
/** */
|
|
842
|
-
"name"?: WarpTextarea['name'];
|
|
843
|
-
/** */
|
|
844
|
-
"placeholder"?: WarpTextarea['placeholder'];
|
|
845
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
846
|
-
"read-only"?: WarpTextarea['readOnly'];
|
|
847
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
848
|
-
"readOnly"?: WarpTextarea['readOnly'];
|
|
849
|
-
/** */
|
|
850
|
-
"readonly"?: WarpTextarea['readonly'];
|
|
851
|
-
/** */
|
|
852
|
-
"required"?: WarpTextarea['required'];
|
|
853
|
-
/** */
|
|
854
|
-
"value"?: WarpTextarea['value'];
|
|
855
|
-
/** */
|
|
856
|
-
"optional"?: WarpTextarea['optional'];
|
|
857
|
-
/** */
|
|
858
|
-
"minHeight"?: WarpTextarea['minHeight'];
|
|
859
|
-
/** */
|
|
860
|
-
"maxHeight"?: WarpTextarea['maxHeight'];
|
|
861
|
-
|
|
862
|
-
|
|
863
507
|
}
|
|
864
508
|
|
|
865
509
|
export type CustomElements = {
|
|
@@ -915,16 +559,12 @@ export type WarpTextareaProps = {
|
|
|
915
559
|
*
|
|
916
560
|
* - `autofocus`: undefined
|
|
917
561
|
* - `variant`: undefined
|
|
918
|
-
* - `quiet`: undefined
|
|
919
562
|
* - `small`: undefined
|
|
920
563
|
* - `href`: undefined
|
|
921
564
|
* - `disabled`: undefined
|
|
922
565
|
* - `target`: undefined
|
|
923
566
|
* - `rel`: undefined
|
|
924
567
|
* - `full-width`/`fullWidth`: undefined
|
|
925
|
-
* - `button-class`/`buttonClass`: undefined
|
|
926
|
-
* - `name`: undefined
|
|
927
|
-
* - `classes`: undefined (property only)
|
|
928
568
|
*/
|
|
929
569
|
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
930
570
|
|
|
@@ -952,6 +592,12 @@ export type WarpTextareaProps = {
|
|
|
952
592
|
* - `name`: undefined
|
|
953
593
|
* - `value`: undefined
|
|
954
594
|
* - `ariaValueTextLoading`: undefined (property only)
|
|
595
|
+
*
|
|
596
|
+
* ## Methods
|
|
597
|
+
*
|
|
598
|
+
* Methods that can be called to access component functionality.
|
|
599
|
+
*
|
|
600
|
+
* - `resetFormControl() => void`: undefined
|
|
955
601
|
*/
|
|
956
602
|
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
957
603
|
|
|
@@ -1131,14 +777,17 @@ export type WarpTextareaProps = {
|
|
|
1131
777
|
*
|
|
1132
778
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1133
779
|
*
|
|
1134
|
-
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
1135
|
-
* - `
|
|
1136
|
-
* - `
|
|
1137
|
-
* - `
|
|
780
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
781
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
782
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
783
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
784
|
+
* - `always`: Whether to always show a hint.
|
|
785
|
+
* - `hint`: The content displayed as the help text.
|
|
1138
786
|
* - `label`: The content to disply as the label
|
|
1139
787
|
* - `optional`: Whether to show optional text
|
|
1140
788
|
* - `disabled`: Renders the field in a disabled state.
|
|
1141
789
|
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
790
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
1142
791
|
* - `name`: undefined
|
|
1143
792
|
* - `value`: undefined
|
|
1144
793
|
*
|
|
@@ -1146,6 +795,7 @@ export type WarpTextareaProps = {
|
|
|
1146
795
|
*
|
|
1147
796
|
* Methods that can be called to access component functionality.
|
|
1148
797
|
*
|
|
798
|
+
* - `resetFormControl() => void`: undefined
|
|
1149
799
|
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
1150
800
|
* - `onChange({ target }) => void`: undefined
|
|
1151
801
|
*/
|
|
@@ -1179,6 +829,7 @@ export type WarpTextareaProps = {
|
|
|
1179
829
|
* - `type`: undefined
|
|
1180
830
|
* - `value`: undefined
|
|
1181
831
|
* - `name`: undefined
|
|
832
|
+
* - `step`: undefined
|
|
1182
833
|
* - `formatter`: Function to format value when the input field.
|
|
1183
834
|
*
|
|
1184
835
|
* Only active when the input field does not have focus,
|
|
@@ -1191,6 +842,7 @@ export type WarpTextareaProps = {
|
|
|
1191
842
|
*
|
|
1192
843
|
* Methods that can be called to access component functionality.
|
|
1193
844
|
*
|
|
845
|
+
* - `resetFormControl() => void`: undefined
|
|
1194
846
|
* - `handler(e: Event) => void`: undefined
|
|
1195
847
|
* - `prefixSlotChange() => void`: undefined
|
|
1196
848
|
* - `suffixSlotChange() => void`: undefined
|
|
@@ -1304,341 +956,6 @@ export type WarpTextareaProps = {
|
|
|
1304
956
|
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
1305
957
|
*/
|
|
1306
958
|
"w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* A combobox element for text input with selectable options.
|
|
1311
|
-
*
|
|
1312
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
1313
|
-
*
|
|
1314
|
-
* ## Attributes & Properties
|
|
1315
|
-
*
|
|
1316
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1317
|
-
*
|
|
1318
|
-
* - `options`: The available options to select from
|
|
1319
|
-
* - `label`: Label above input
|
|
1320
|
-
* - `placeholder`: Input placeholder
|
|
1321
|
-
* - `value`: The input value
|
|
1322
|
-
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
1323
|
-
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
1324
|
-
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
1325
|
-
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
1326
|
-
* - `invalid`: Renders the input field in an invalid state
|
|
1327
|
-
* - `help-text`/`helpText`: The content to display as the help text
|
|
1328
|
-
* - `disabled`: Whether the element is disabled
|
|
1329
|
-
* - `required`: Whether the element is required
|
|
1330
|
-
* - `optional`: Whether to show optional text
|
|
1331
|
-
* - `class-name`/`containerClassName`: Additional container styling
|
|
1332
|
-
* - `list-class-name`/`listClassName`: Additional list styling
|
|
1333
|
-
* - `name`: Name attribute for form submission
|
|
1334
|
-
*/
|
|
1335
|
-
"w-combobox": Partial<WarpComboboxProps & BaseProps<WarpCombobox> & BaseEvents>;
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* An input for dates.
|
|
1340
|
-
*
|
|
1341
|
-
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
1342
|
-
*
|
|
1343
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
1344
|
-
*
|
|
1345
|
-
* ## Attributes & Properties
|
|
1346
|
-
*
|
|
1347
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1348
|
-
*
|
|
1349
|
-
* - `label`: undefined
|
|
1350
|
-
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
1351
|
-
* - `name`: undefined
|
|
1352
|
-
* - `value`: undefined
|
|
1353
|
-
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
1354
|
-
*
|
|
1355
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1356
|
-
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1357
|
-
*
|
|
1358
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1359
|
-
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
1360
|
-
*
|
|
1361
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1362
|
-
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
1363
|
-
*
|
|
1364
|
-
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
1365
|
-
* - `isCalendarOpen`: undefined (property only)
|
|
1366
|
-
* - `navigationDate`: undefined (property only)
|
|
1367
|
-
* - `selectedDate`: undefined (property only) (readonly)
|
|
1368
|
-
* - `month`: undefined (property only) (readonly)
|
|
1369
|
-
* - `weeks`: undefined (property only) (readonly)
|
|
1370
|
-
* - `calendar`: undefined (property only)
|
|
1371
|
-
* - `input`: undefined (property only)
|
|
1372
|
-
* - `toggleButton`: undefined (property only)
|
|
1373
|
-
* - `wrapper`: undefined (property only)
|
|
1374
|
-
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
1375
|
-
*
|
|
1376
|
-
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
1377
|
-
* They work the first time, but once the calendar is closed and reopened
|
|
1378
|
-
* the query will point to an element that doesn't exist anymore. (property only)
|
|
1379
|
-
* - `todayCell`: undefined (property only)
|
|
1380
|
-
* - `selectedCell`: undefined (property only)
|
|
1381
|
-
*/
|
|
1382
|
-
"w-datepicker": Partial<WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents>;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
/**
|
|
1386
|
-
* 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.
|
|
1387
|
-
*
|
|
1388
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)
|
|
1389
|
-
*
|
|
1390
|
-
* ## Attributes & Properties
|
|
1391
|
-
*
|
|
1392
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1393
|
-
*
|
|
1394
|
-
* - `type`: undefined
|
|
1395
|
-
* - `checked`: undefined
|
|
1396
|
-
* - `indeterminate`: undefined
|
|
1397
|
-
* - `invalid`: undefined
|
|
1398
|
-
* - `disabled`: undefined
|
|
1399
|
-
*/
|
|
1400
|
-
"w-dead-toggle": Partial<WarpDeadToggleProps & BaseProps<WarpDeadToggle> & BaseEvents>;
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
*
|
|
1405
|
-
*
|
|
1406
|
-
* ## Attributes & Properties
|
|
1407
|
-
*
|
|
1408
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1409
|
-
*
|
|
1410
|
-
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
1411
|
-
* - `page-count`/`pageCount`: Total number of pages
|
|
1412
|
-
*/
|
|
1413
|
-
"w-pageindicator": Partial<WarpPageIndicatorProps & BaseProps<WarpPageIndicator> & BaseEvents>;
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
/**
|
|
1417
|
-
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
1418
|
-
*
|
|
1419
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
1420
|
-
*
|
|
1421
|
-
* ## Attributes & Properties
|
|
1422
|
-
*
|
|
1423
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1424
|
-
*
|
|
1425
|
-
* - `base-url`/`baseUrl`: undefined
|
|
1426
|
-
* - `pages`: undefined
|
|
1427
|
-
* - `current-page`/`currentPageNumber`: undefined
|
|
1428
|
-
* - `visible-pages`/`visiblePages`: undefined
|
|
1429
|
-
*
|
|
1430
|
-
* ## Events
|
|
1431
|
-
*
|
|
1432
|
-
* Events that will be emitted by the component.
|
|
1433
|
-
*
|
|
1434
|
-
* - `page-click`: Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.
|
|
1435
|
-
*/
|
|
1436
|
-
"w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
/**
|
|
1441
|
-
* Component to place inside a `<w-slider>`.
|
|
1442
|
-
*
|
|
1443
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
1444
|
-
*
|
|
1445
|
-
* ## Attributes & Properties
|
|
1446
|
-
*
|
|
1447
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1448
|
-
*
|
|
1449
|
-
* - `aria-label`/`ariaLabel`: undefined
|
|
1450
|
-
* - `aria-description`/`ariaDescription`: undefined
|
|
1451
|
-
* - `label`: undefined
|
|
1452
|
-
* - `name`: undefined
|
|
1453
|
-
* - `value`: undefined
|
|
1454
|
-
* - `disabled`: undefined
|
|
1455
|
-
* - `markers`: Set by `<w-slider>` (property only)
|
|
1456
|
-
* - `required`: Set by `<w-slider>` (property only)
|
|
1457
|
-
* - `step`: Set by `<w-slider>` (property only)
|
|
1458
|
-
* - `min`: Set by `<w-slider>` (property only)
|
|
1459
|
-
* - `max`: Set by `<w-slider>` (property only)
|
|
1460
|
-
* - `suffix`: Set by `<w-slider>` (property only)
|
|
1461
|
-
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
1462
|
-
* - `range`: undefined (property only)
|
|
1463
|
-
* - `textfield`: undefined (property only)
|
|
1464
|
-
*
|
|
1465
|
-
* ## Events
|
|
1466
|
-
*
|
|
1467
|
-
* Events that will be emitted by the component.
|
|
1468
|
-
*
|
|
1469
|
-
* - `slidervalidity`: undefined
|
|
1470
|
-
*/
|
|
1471
|
-
"w-slider-thumb": Partial<WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents>;
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
1476
|
-
*
|
|
1477
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
1478
|
-
*
|
|
1479
|
-
* ## Attributes & Properties
|
|
1480
|
-
*
|
|
1481
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1482
|
-
*
|
|
1483
|
-
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
1484
|
-
*
|
|
1485
|
-
* If you need to display HTML, use the `label` slot instead.
|
|
1486
|
-
* - `disabled`: undefined
|
|
1487
|
-
* - `invalid`: undefined
|
|
1488
|
-
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
1489
|
-
* - `min`: undefined
|
|
1490
|
-
* - `max`: undefined
|
|
1491
|
-
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
1492
|
-
* - `step`: undefined
|
|
1493
|
-
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
1494
|
-
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
1495
|
-
*
|
|
1496
|
-
* ## Slots
|
|
1497
|
-
*
|
|
1498
|
-
* Areas where markup can be added to the component.
|
|
1499
|
-
*
|
|
1500
|
-
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
1501
|
-
* - `label`: Label for the slider or range slider as a whole.
|
|
1502
|
-
* - `description`: Optional description between the label and slider.
|
|
1503
|
-
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
1504
|
-
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
1505
|
-
*/
|
|
1506
|
-
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
/**
|
|
1510
|
-
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
1511
|
-
*
|
|
1512
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
1513
|
-
*
|
|
1514
|
-
* ## Attributes & Properties
|
|
1515
|
-
*
|
|
1516
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1517
|
-
*
|
|
1518
|
-
* - `horizontal`: undefined
|
|
1519
|
-
* - `right`: undefined
|
|
1520
|
-
*
|
|
1521
|
-
* ## Methods
|
|
1522
|
-
*
|
|
1523
|
-
* Methods that can be called to access component functionality.
|
|
1524
|
-
*
|
|
1525
|
-
* - `updateStepsContext() => void`: undefined
|
|
1526
|
-
*/
|
|
1527
|
-
"w-steps": Partial<WarpStepsProps & BaseProps<WarpSteps> & BaseEvents>;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
/**
|
|
1531
|
-
* Individual step component that shows a single step in a process
|
|
1532
|
-
*
|
|
1533
|
-
* ## Attributes & Properties
|
|
1534
|
-
*
|
|
1535
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1536
|
-
*
|
|
1537
|
-
* - `active`: undefined
|
|
1538
|
-
* - `completed`: undefined
|
|
1539
|
-
*
|
|
1540
|
-
* ## Methods
|
|
1541
|
-
*
|
|
1542
|
-
* Methods that can be called to access component functionality.
|
|
1543
|
-
*
|
|
1544
|
-
* - `setContext(context: StepsContext) => void`: undefined
|
|
1545
|
-
* - `getAriaLabel() => void`: undefined
|
|
1546
|
-
*/
|
|
1547
|
-
"w-step": Partial<WarpStepProps & BaseProps<WarpStep> & BaseEvents>;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
*
|
|
1552
|
-
*
|
|
1553
|
-
* ## Attributes & Properties
|
|
1554
|
-
*
|
|
1555
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1556
|
-
*
|
|
1557
|
-
* - `value`: undefined
|
|
1558
|
-
* - `disabled`: undefined
|
|
1559
|
-
*
|
|
1560
|
-
* ## Events
|
|
1561
|
-
*
|
|
1562
|
-
* Events that will be emitted by the component.
|
|
1563
|
-
*
|
|
1564
|
-
* - `change`: undefined
|
|
1565
|
-
*/
|
|
1566
|
-
"w-switch": Partial<WarpSwitchProps & BaseProps<WarpSwitch> & BaseEvents>;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* Individual tab component used within w-tabs container.
|
|
1571
|
-
*
|
|
1572
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1573
|
-
*
|
|
1574
|
-
* ## Attributes & Properties
|
|
1575
|
-
*
|
|
1576
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1577
|
-
*
|
|
1578
|
-
* - `name`: undefined
|
|
1579
|
-
* - `label`: undefined
|
|
1580
|
-
* - `active`: undefined
|
|
1581
|
-
* - `over`: undefined
|
|
1582
|
-
* - `tab-class`/`tabClass`: undefined
|
|
1583
|
-
*/
|
|
1584
|
-
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* Tabs are used to organize content by grouping similar information on the same page.
|
|
1589
|
-
*
|
|
1590
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1591
|
-
*
|
|
1592
|
-
* ## Attributes & Properties
|
|
1593
|
-
*
|
|
1594
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1595
|
-
*
|
|
1596
|
-
* - `active`: undefined
|
|
1597
|
-
* - `tab-class`/`tabClass`: undefined
|
|
1598
|
-
* - `tabs`: undefined (property only) (readonly)
|
|
1599
|
-
* - `activeTab`: undefined (property only) (readonly)
|
|
1600
|
-
*
|
|
1601
|
-
* ## Events
|
|
1602
|
-
*
|
|
1603
|
-
* Events that will be emitted by the component.
|
|
1604
|
-
*
|
|
1605
|
-
* - `change`: undefined
|
|
1606
|
-
*/
|
|
1607
|
-
"w-tabs": Partial<WarpTabsProps & BaseProps<WarpTabs> & BaseEvents>;
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
/**
|
|
1611
|
-
* A single line text input element.
|
|
1612
|
-
*
|
|
1613
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
1614
|
-
*
|
|
1615
|
-
* ## Attributes & Properties
|
|
1616
|
-
*
|
|
1617
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1618
|
-
*
|
|
1619
|
-
* - `disabled`: undefined
|
|
1620
|
-
* - `invalid`: undefined
|
|
1621
|
-
* - `label`: undefined
|
|
1622
|
-
* - `help-text`/`helpText`: undefined
|
|
1623
|
-
* - `maximum-rows`/`maxRows`: undefined
|
|
1624
|
-
* - `minimum-rows`/`minRows`: undefined
|
|
1625
|
-
* - `name`: undefined
|
|
1626
|
-
* - `placeholder`: undefined
|
|
1627
|
-
* - `read-only`/`readOnly`: undefined
|
|
1628
|
-
* - `readonly`: undefined
|
|
1629
|
-
* - `required`: undefined
|
|
1630
|
-
* - `value`: undefined
|
|
1631
|
-
* - `optional`: undefined
|
|
1632
|
-
* - `minHeight`: undefined (property only)
|
|
1633
|
-
* - `maxHeight`: undefined (property only)
|
|
1634
|
-
*
|
|
1635
|
-
* ## Methods
|
|
1636
|
-
*
|
|
1637
|
-
* Methods that can be called to access component functionality.
|
|
1638
|
-
*
|
|
1639
|
-
* - `handler(e: InputEvent) => void`: undefined
|
|
1640
|
-
*/
|
|
1641
|
-
"w-textarea": Partial<WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents>;
|
|
1642
959
|
}
|
|
1643
960
|
|
|
1644
961
|
export type CustomCssProperties = {
|
|
@@ -1674,7 +991,7 @@ declare module '@stencil/core' {
|
|
|
1674
991
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1675
992
|
}
|
|
1676
993
|
|
|
1677
|
-
declare module 'hono' {
|
|
994
|
+
declare module 'hono/jsx' {
|
|
1678
995
|
namespace JSX {
|
|
1679
996
|
interface IntrinsicElements extends CustomElements {}
|
|
1680
997
|
}
|