@warp-ds/elements 2.3.0-next.3 → 2.3.0-next.31
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 +1139 -144
- package/dist/index.d.ts +413 -34
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/attention/attention.stories.js +4 -1
- package/dist/packages/attention/index.js +58 -22
- package/dist/packages/attention/index.js.map +3 -3
- package/dist/packages/attention/react.d.ts +1 -1
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- 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 +52 -16
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/checkbox/checkbox-group.d.ts +10 -0
- package/dist/packages/checkbox/checkbox-group.js +7 -0
- package/dist/packages/checkbox/checkbox-group.js.map +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.d.ts +2 -2
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.js +3 -4
- package/dist/packages/checkbox/checkbox.js.map +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/checkbox.stories.d.ts +3 -0
- package/dist/packages/checkbox/checkbox.stories.js +25 -0
- package/dist/packages/checkbox/index.d.ts +2 -0
- package/dist/packages/checkbox/index.js +2 -0
- package/dist/packages/checkbox/react.d.ts +7 -0
- package/dist/packages/{rip-and-tear-checkbox → checkbox}/react.js +5 -0
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.stories.d.ts +1 -0
- package/dist/packages/combobox/combobox.stories.js +29 -3
- package/dist/packages/combobox/index.d.ts +7 -1
- package/dist/packages/combobox/index.js +20 -19
- package/dist/packages/combobox/index.js.map +4 -4
- package/dist/packages/combobox/react.d.ts +1 -1
- package/dist/packages/combobox/styles.js +2 -1
- package/dist/packages/datepicker/datepicker.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.js +35 -35
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.test.js +27 -0
- package/dist/packages/datepicker/react.d.ts +1 -1
- package/dist/packages/{dead-toggle → deadtoggle}/index.js +2 -3
- package/dist/packages/deadtoggle/index.js.map +7 -0
- package/dist/packages/{dead-toggle → deadtoggle}/react.d.ts +1 -1
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/link/index.d.ts +2 -8
- package/dist/packages/link/index.js +46 -10
- package/dist/packages/link/index.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +6 -3
- package/dist/packages/link/link.react.stories.js +27 -10
- package/dist/packages/link/link.stories.d.ts +5 -2
- package/dist/packages/link/link.stories.js +27 -10
- package/dist/packages/link/react.d.ts +1 -1
- package/dist/packages/link/styles.js +39 -3
- 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/modal/react.d.ts +1 -1
- package/dist/packages/pageindicator/react.d.ts +1 -1
- package/dist/packages/pagination/index.js.map +2 -2
- package/dist/packages/pagination/react.d.ts +1 -1
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/react.d.ts +1 -1
- package/dist/packages/radio/index.d.ts +2 -0
- package/dist/packages/radio/index.js +2 -0
- package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.js.map +1 -1
- package/dist/packages/{rip-and-tear-radio → radio}/radio-group.js +7 -8
- package/dist/packages/radio/radio-group.js.map +7 -0
- package/dist/packages/{rip-and-tear-radio → radio}/radio.js +3 -4
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.stories.d.ts +15 -0
- package/dist/packages/radio/radio.stories.js +3702 -0
- package/dist/packages/radio/radio.stories.js.map +7 -0
- package/dist/packages/{rip-and-tear-radio → radio}/react.d.ts +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/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/select/select.test.js +30 -0
- package/dist/packages/slider/locales/da/messages.mjs +1 -0
- package/dist/packages/slider/locales/en/messages.mjs +1 -0
- package/dist/packages/slider/locales/fi/messages.mjs +1 -0
- package/dist/packages/slider/locales/nb/messages.mjs +1 -0
- package/dist/packages/slider/locales/sv/messages.mjs +1 -0
- package/dist/packages/slider/react.d.ts +2 -2
- package/dist/packages/slider/slider-thumb.d.ts +13 -7
- package/dist/packages/slider/slider-thumb.js +92 -49
- package/dist/packages/slider/slider-thumb.js.map +4 -4
- package/dist/packages/slider/slider.d.ts +12 -3
- package/dist/packages/slider/slider.js +109 -31
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.react.stories.d.ts +1 -0
- package/dist/packages/slider/slider.react.stories.js +22 -0
- package/dist/packages/slider/slider.stories.d.ts +3 -0
- package/dist/packages/slider/slider.stories.js +240 -33
- package/dist/packages/slider/slider.test.js +28 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +24 -16
- package/dist/packages/slider/styles/w-slider.styles.js +65 -18
- package/dist/packages/{steps → stepindicator}/index.d.ts +3 -2
- package/dist/packages/{steps → stepindicator}/index.js +8 -8
- package/dist/packages/stepindicator/index.js.map +7 -0
- package/dist/packages/stepindicator/locales/da/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/en/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/fi/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/nb/messages.d.mts +1 -0
- package/dist/packages/stepindicator/locales/sv/messages.d.mts +1 -0
- package/dist/packages/stepindicator/react.d.ts +3 -0
- package/dist/packages/{steps → stepindicator}/react.js +2 -2
- package/dist/packages/{steps/steps.react.stories.d.ts → stepindicator/stepindicator.react.stories.d.ts} +4 -4
- package/dist/packages/{steps/steps.react.stories.js → stepindicator/stepindicator.react.stories.js} +11 -11
- package/dist/packages/{steps/steps.stories.js → stepindicator/stepindicator.stories.js} +16 -16
- package/dist/packages/switch/index.d.ts +10 -2
- package/dist/packages/switch/index.js +7 -6
- package/dist/packages/switch/index.js.map +4 -4
- package/dist/packages/switch/react.d.ts +1 -1
- package/dist/packages/switch/styles.js +1 -1
- package/dist/packages/switch/switch.react.stories.js +4 -4
- package/dist/packages/switch/switch.stories.js +6 -5
- package/dist/packages/switch/switch.test.d.ts +1 -0
- package/dist/packages/switch/switch.test.js +40 -0
- package/dist/packages/tabs/tab.js +4 -3
- package/dist/packages/tabs/tab.js.map +2 -2
- package/dist/packages/tabs/tabs.js +5 -5
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.stories.d.ts +3 -0
- package/dist/packages/tabs/tabs.stories.js +16 -7
- 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 +49 -0
- package/dist/packages/{rip-and-tear-radio/radio.stories.js → textarea/textarea.js} +35 -214
- 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 +68 -0
- package/dist/packages/textfield/index.d.ts +6 -0
- package/dist/packages/textfield/index.js +21 -20
- package/dist/packages/textfield/index.js.map +3 -3
- package/dist/packages/textfield/react.d.ts +1 -1
- 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/packages/toggle-styles.js +2 -3
- package/dist/web-types.json +473 -30
- package/package.json +37 -31
- package/dist/packages/dead-toggle/index.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +0 -11
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -4
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +0 -5
- 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/radio-group.js.map +0 -7
- 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.map +0 -7
- package/dist/packages/steps/index.js.map +0 -7
- package/dist/packages/steps/react.d.ts +0 -3
- /package/dist/packages/{rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts → checkbox/checkbox.react.stories.d.ts} +0 -0
- /package/dist/packages/{rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js → checkbox/checkbox.react.stories.js} +0 -0
- /package/dist/packages/{rip-and-tear-checkbox → checkbox}/styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-checkbox → checkbox}/styles.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.react.stories.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.react.stories.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.stories.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.stories.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.test.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/dead-toggle.test.js +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/index.d.ts +0 -0
- /package/dist/packages/{dead-toggle → deadtoggle}/react.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/base-element.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/base-element.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/custom-error-validator.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/custom-error-validator.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/form-associated-element.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/form-associated-element.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/host-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/host-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/invalid.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/invalid.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/math.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/math.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-group.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio-styles.js.map +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/radio.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts → radio/radio.react.stories.d.ts} +0 -0
- /package/dist/packages/{rip-and-tear-radio/rip-and-tear-radio.react.stories.js → radio/radio.react.stories.js} +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/react.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/required-validator.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/required-validator.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/slot.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/slot.js +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/watch.d.ts +0 -0
- /package/dist/packages/{rip-and-tear-radio → radio}/watch.js +0 -0
- /package/dist/packages/{steps → slider}/locales/da/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/en/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/fi/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/nb/messages.d.mts +0 -0
- /package/dist/packages/{steps → slider}/locales/sv/messages.d.mts +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/da/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/en/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/fi/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/nb/messages.mjs +0 -0
- /package/dist/packages/{steps → stepindicator}/locales/sv/messages.mjs +0 -0
- /package/dist/packages/{steps/steps.stories.d.ts → stepindicator/stepindicator.stories.d.ts} +0 -0
- /package/dist/packages/{steps → stepindicator}/styles.d.ts +0 -0
- /package/dist/packages/{steps → stepindicator}/styles.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -18,15 +18,20 @@ import type { ModalMain } from "./packages/modal/modal-main.ts";
|
|
|
18
18
|
import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
|
|
19
19
|
import type { WarpCombobox } from "./packages/combobox/index.ts";
|
|
20
20
|
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
21
|
-
import type { WarpDeadToggle } from "./packages/
|
|
21
|
+
import type { WarpDeadToggle } from "./packages/deadtoggle/index.ts";
|
|
22
22
|
import type { WarpPageIndicator } from "./packages/pageindicator/index.ts";
|
|
23
23
|
import type { WarpPagination } from "./packages/pagination/index.ts";
|
|
24
|
+
import type { WRadio } from "./packages/radio/radio.ts";
|
|
25
|
+
import type { WRadioGroup } from "./packages/radio/radio-group.ts";
|
|
26
|
+
import type { WCheckbox } from "./packages/checkbox/checkbox.ts";
|
|
27
|
+
import type { WCheckboxGroup } from "./packages/checkbox/checkbox-group.ts";
|
|
24
28
|
import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
|
|
25
29
|
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
26
|
-
import type {
|
|
30
|
+
import type { WarpStepIndicator, WarpStep } from "./packages/stepindicator/index.ts";
|
|
27
31
|
import type { WarpSwitch } from "./packages/switch/index.ts";
|
|
28
32
|
import type { WarpTab } from "./packages/tabs/tab.ts";
|
|
29
33
|
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
34
|
+
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
30
35
|
|
|
31
36
|
/**
|
|
32
37
|
* This type can be used to create scoped tags for your components.
|
|
@@ -145,8 +150,6 @@ export type WarpLinkProps = {
|
|
|
145
150
|
/** */
|
|
146
151
|
"variant"?: WarpLink['variant'];
|
|
147
152
|
/** */
|
|
148
|
-
"quiet"?: WarpLink['quiet'];
|
|
149
|
-
/** */
|
|
150
153
|
"small"?: WarpLink['small'];
|
|
151
154
|
/** */
|
|
152
155
|
"href"?: WarpLink['href'];
|
|
@@ -160,14 +163,6 @@ export type WarpLinkProps = {
|
|
|
160
163
|
"full-width"?: WarpLink['fullWidth'];
|
|
161
164
|
/** */
|
|
162
165
|
"fullWidth"?: WarpLink['fullWidth'];
|
|
163
|
-
/** */
|
|
164
|
-
"button-class"?: WarpLink['buttonClass'];
|
|
165
|
-
/** */
|
|
166
|
-
"buttonClass"?: WarpLink['buttonClass'];
|
|
167
|
-
/** */
|
|
168
|
-
"name"?: WarpLink['name'];
|
|
169
|
-
/** */
|
|
170
|
-
"classes"?: WarpLink['classes'];
|
|
171
166
|
|
|
172
167
|
|
|
173
168
|
}
|
|
@@ -377,15 +372,21 @@ export type WarpPillProps = {
|
|
|
377
372
|
|
|
378
373
|
|
|
379
374
|
export type WarpSelectProps = {
|
|
380
|
-
/** Whether the element should receive focus on render */
|
|
375
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
381
376
|
"auto-focus"?: WarpSelect['autoFocus'];
|
|
382
|
-
/** Whether the element should receive focus on render */
|
|
377
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
383
378
|
"autoFocus"?: WarpSelect['autoFocus'];
|
|
384
|
-
/**
|
|
379
|
+
/** Whether the element should receive focus on render */
|
|
380
|
+
"autofocus"?: WarpSelect['autofocus'];
|
|
381
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
382
|
+
"help-text"?: WarpSelect['helpText'];
|
|
383
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
384
|
+
"helpText"?: WarpSelect['helpText'];
|
|
385
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
385
386
|
"invalid"?: WarpSelect['invalid'];
|
|
386
|
-
/** Whether to always show a hint */
|
|
387
|
+
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
387
388
|
"always"?: WarpSelect['always'];
|
|
388
|
-
/** The content displayed as the help text */
|
|
389
|
+
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
389
390
|
"hint"?: WarpSelect['hint'];
|
|
390
391
|
/** The content to disply as the label */
|
|
391
392
|
"label"?: WarpSelect['label'];
|
|
@@ -393,10 +394,12 @@ export type WarpSelectProps = {
|
|
|
393
394
|
"optional"?: WarpSelect['optional'];
|
|
394
395
|
/** Renders the field in a disabled state. */
|
|
395
396
|
"disabled"?: WarpSelect['disabled'];
|
|
396
|
-
/** Renders the field in a readonly state. */
|
|
397
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
397
398
|
"read-only"?: WarpSelect['readOnly'];
|
|
398
|
-
/** Renders the field in a readonly state. */
|
|
399
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
399
400
|
"readOnly"?: WarpSelect['readOnly'];
|
|
401
|
+
/** Renders the field in a readonly state. */
|
|
402
|
+
"readonly"?: WarpSelect['readonly'];
|
|
400
403
|
/** */
|
|
401
404
|
"name"?: WarpSelect['name'];
|
|
402
405
|
/** */
|
|
@@ -437,11 +440,13 @@ export type WarpTextFieldProps = {
|
|
|
437
440
|
"pattern"?: WarpTextField['pattern'];
|
|
438
441
|
/** */
|
|
439
442
|
"placeholder"?: WarpTextField['placeholder'];
|
|
440
|
-
/** */
|
|
443
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
441
444
|
"read-only"?: WarpTextField['readOnly'];
|
|
442
|
-
/** */
|
|
445
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
443
446
|
"readOnly"?: WarpTextField['readOnly'];
|
|
444
447
|
/** */
|
|
448
|
+
"readonly"?: WarpTextField['readonly'];
|
|
449
|
+
/** */
|
|
445
450
|
"required"?: WarpTextField['required'];
|
|
446
451
|
/** */
|
|
447
452
|
"type"?: WarpTextField['type'];
|
|
@@ -449,6 +454,8 @@ export type WarpTextFieldProps = {
|
|
|
449
454
|
"value"?: WarpTextField['value'];
|
|
450
455
|
/** */
|
|
451
456
|
"name"?: WarpTextField['name'];
|
|
457
|
+
/** */
|
|
458
|
+
"step"?: WarpTextField['step'];
|
|
452
459
|
/** Function to format value when the input field.
|
|
453
460
|
|
|
454
461
|
Only active when the input field does not have focus,
|
|
@@ -683,6 +690,105 @@ export type WarpPaginationProps = {
|
|
|
683
690
|
}
|
|
684
691
|
|
|
685
692
|
|
|
693
|
+
export type WRadioProps = {
|
|
694
|
+
/** The string pointing to a form's id. */
|
|
695
|
+
"form"?: WRadio['form'];
|
|
696
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
697
|
+
"value"?: WRadio['value'];
|
|
698
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
699
|
+
"appearance"?: WRadio['appearance'];
|
|
700
|
+
/** The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
701
|
+
attribute can typically be omitted. */
|
|
702
|
+
"size"?: WRadio['size'];
|
|
703
|
+
/** Disables the radio. */
|
|
704
|
+
"disabled"?: WRadio['disabled'];
|
|
705
|
+
/** */
|
|
706
|
+
"checked"?: WRadio['checked'];
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
export type WRadioGroupProps = {
|
|
713
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
714
|
+
instead. */
|
|
715
|
+
"label"?: WRadioGroup['label'];
|
|
716
|
+
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
717
|
+
"hint"?: WRadioGroup['hint'];
|
|
718
|
+
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
719
|
+
"name"?: WRadioGroup['name'];
|
|
720
|
+
/** Disables the radio group and all child radios. */
|
|
721
|
+
"disabled"?: WRadioGroup['disabled'];
|
|
722
|
+
/** The orientation in which to show radio items. */
|
|
723
|
+
"orientation"?: WRadioGroup['orientation'];
|
|
724
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
725
|
+
"value"?: WRadioGroup['defaultValue'];
|
|
726
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
727
|
+
"defaultValue"?: WRadioGroup['defaultValue'];
|
|
728
|
+
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
729
|
+
"size"?: WRadioGroup['size'];
|
|
730
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
731
|
+
"required"?: WRadioGroup['required'];
|
|
732
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
733
|
+
"with-label"?: WRadioGroup['withLabel'];
|
|
734
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
735
|
+
"withLabel"?: WRadioGroup['withLabel'];
|
|
736
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
737
|
+
"with-hint"?: WRadioGroup['withHint'];
|
|
738
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
739
|
+
"withHint"?: WRadioGroup['withHint'];
|
|
740
|
+
/** */
|
|
741
|
+
"hasRadioButtons"?: WRadioGroup['hasRadioButtons'];
|
|
742
|
+
/** */
|
|
743
|
+
"defaultSlot"?: WRadioGroup['defaultSlot'];
|
|
744
|
+
|
|
745
|
+
/** */
|
|
746
|
+
"oninput"?: (e: CustomEvent<InputEvent>) => void;
|
|
747
|
+
/** */
|
|
748
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
export type WCheckboxProps = {
|
|
753
|
+
/** */
|
|
754
|
+
"title"?: WCheckbox['title'];
|
|
755
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
756
|
+
"name"?: WCheckbox['name'];
|
|
757
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
758
|
+
"value"?: WCheckbox['value'];
|
|
759
|
+
/** The checkbox's size. */
|
|
760
|
+
"size"?: WCheckbox['size'];
|
|
761
|
+
/** Disables the checkbox. */
|
|
762
|
+
"disabled"?: WCheckbox['disabled'];
|
|
763
|
+
/** Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
764
|
+
all/none" behavior when associated checkboxes have a mix of checked and unchecked states. */
|
|
765
|
+
"indeterminate"?: WCheckbox['indeterminate'];
|
|
766
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
767
|
+
"checked"?: WCheckbox['defaultChecked'];
|
|
768
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
769
|
+
"defaultChecked"?: WCheckbox['defaultChecked'];
|
|
770
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
771
|
+
to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
772
|
+
the same document or shadow root for this to work. */
|
|
773
|
+
"form"?: WCheckbox['form'];
|
|
774
|
+
/** Makes the checkbox a required field. */
|
|
775
|
+
"required"?: WCheckbox['required'];
|
|
776
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
777
|
+
"hint"?: WCheckbox['hint'];
|
|
778
|
+
/** */
|
|
779
|
+
"input"?: WCheckbox['input'];
|
|
780
|
+
|
|
781
|
+
/** */
|
|
782
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
export type WCheckboxGroupProps = {
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
|
|
686
792
|
export type WarpSliderThumbProps = {
|
|
687
793
|
/** */
|
|
688
794
|
"aria-label"?: WarpSliderThumb['ariaLabel'];
|
|
@@ -700,6 +806,10 @@ export type WarpSliderThumbProps = {
|
|
|
700
806
|
"value"?: WarpSliderThumb['value'];
|
|
701
807
|
/** */
|
|
702
808
|
"disabled"?: WarpSliderThumb['disabled'];
|
|
809
|
+
/** */
|
|
810
|
+
"invalid"?: WarpSliderThumb['invalid'];
|
|
811
|
+
/** Set by `<w-slider>` */
|
|
812
|
+
"allowValuesOutsideRange"?: WarpSliderThumb['allowValuesOutsideRange'];
|
|
703
813
|
/** Set by `<w-slider>` */
|
|
704
814
|
"markers"?: WarpSliderThumb['markers'];
|
|
705
815
|
/** Set by `<w-slider>` */
|
|
@@ -732,6 +842,16 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
732
842
|
/** */
|
|
733
843
|
"disabled"?: WarpSlider['disabled'];
|
|
734
844
|
/** */
|
|
845
|
+
"allow-values-outside-range"?: WarpSlider['allowValuesOutsideRange'];
|
|
846
|
+
/** */
|
|
847
|
+
"allowValuesOutsideRange"?: WarpSlider['allowValuesOutsideRange'];
|
|
848
|
+
/** */
|
|
849
|
+
"error"?: WarpSlider['error'];
|
|
850
|
+
/** */
|
|
851
|
+
"help-text"?: WarpSlider['helpText'];
|
|
852
|
+
/** */
|
|
853
|
+
"helpText"?: WarpSlider['helpText'];
|
|
854
|
+
/** */
|
|
735
855
|
"invalid"?: WarpSlider['invalid'];
|
|
736
856
|
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
737
857
|
"required"?: WarpSlider['required'];
|
|
@@ -747,16 +867,20 @@ If you need to display HTML, use the `label` slot instead. */
|
|
|
747
867
|
"suffix"?: WarpSlider['suffix'];
|
|
748
868
|
/** Function to format the to- and from labels and value in the slider thumb tooltip. */
|
|
749
869
|
"formatter"?: WarpSlider['formatter'];
|
|
870
|
+
/** */
|
|
871
|
+
"_invalidMessage"?: WarpSlider['_invalidMessage'];
|
|
872
|
+
/** */
|
|
873
|
+
"_hasInternalError"?: WarpSlider['_hasInternalError'];
|
|
750
874
|
|
|
751
875
|
|
|
752
876
|
}
|
|
753
877
|
|
|
754
878
|
|
|
755
|
-
export type
|
|
879
|
+
export type WarpStepIndicatorProps = {
|
|
756
880
|
/** */
|
|
757
|
-
"horizontal"?:
|
|
881
|
+
"horizontal"?: WarpStepIndicator['horizontal'];
|
|
758
882
|
/** */
|
|
759
|
-
"right"?:
|
|
883
|
+
"right"?: WarpStepIndicator['right'];
|
|
760
884
|
|
|
761
885
|
|
|
762
886
|
}
|
|
@@ -773,9 +897,13 @@ export type WarpStepProps = {
|
|
|
773
897
|
|
|
774
898
|
|
|
775
899
|
export type WarpSwitchProps = {
|
|
900
|
+
/** */
|
|
901
|
+
"name"?: WarpSwitch['name'];
|
|
776
902
|
/** */
|
|
777
903
|
"value"?: WarpSwitch['value'];
|
|
778
904
|
/** */
|
|
905
|
+
"checked"?: WarpSwitch['checked'];
|
|
906
|
+
/** */
|
|
779
907
|
"disabled"?: WarpSwitch['disabled'];
|
|
780
908
|
|
|
781
909
|
/** */
|
|
@@ -811,6 +939,50 @@ export type WarpTabsProps = {
|
|
|
811
939
|
|
|
812
940
|
/** */
|
|
813
941
|
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
export type WarpTextareaProps = {
|
|
946
|
+
/** */
|
|
947
|
+
"disabled"?: WarpTextarea['disabled'];
|
|
948
|
+
/** */
|
|
949
|
+
"invalid"?: WarpTextarea['invalid'];
|
|
950
|
+
/** */
|
|
951
|
+
"label"?: WarpTextarea['label'];
|
|
952
|
+
/** */
|
|
953
|
+
"help-text"?: WarpTextarea['helpText'];
|
|
954
|
+
/** */
|
|
955
|
+
"helpText"?: WarpTextarea['helpText'];
|
|
956
|
+
/** */
|
|
957
|
+
"maximum-rows"?: WarpTextarea['maxRows'];
|
|
958
|
+
/** */
|
|
959
|
+
"maxRows"?: WarpTextarea['maxRows'];
|
|
960
|
+
/** */
|
|
961
|
+
"minimum-rows"?: WarpTextarea['minRows'];
|
|
962
|
+
/** */
|
|
963
|
+
"minRows"?: WarpTextarea['minRows'];
|
|
964
|
+
/** */
|
|
965
|
+
"name"?: WarpTextarea['name'];
|
|
966
|
+
/** */
|
|
967
|
+
"placeholder"?: WarpTextarea['placeholder'];
|
|
968
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
969
|
+
"read-only"?: WarpTextarea['readOnly'];
|
|
970
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
971
|
+
"readOnly"?: WarpTextarea['readOnly'];
|
|
972
|
+
/** */
|
|
973
|
+
"readonly"?: WarpTextarea['readonly'];
|
|
974
|
+
/** */
|
|
975
|
+
"required"?: WarpTextarea['required'];
|
|
976
|
+
/** */
|
|
977
|
+
"value"?: WarpTextarea['value'];
|
|
978
|
+
/** */
|
|
979
|
+
"optional"?: WarpTextarea['optional'];
|
|
980
|
+
/** */
|
|
981
|
+
"minHeight"?: WarpTextarea['minHeight'];
|
|
982
|
+
/** */
|
|
983
|
+
"maxHeight"?: WarpTextarea['maxHeight'];
|
|
984
|
+
|
|
985
|
+
|
|
814
986
|
}
|
|
815
987
|
|
|
816
988
|
export type CustomElements = {
|
|
@@ -866,16 +1038,12 @@ export type WarpTabsProps = {
|
|
|
866
1038
|
*
|
|
867
1039
|
* - `autofocus`: undefined
|
|
868
1040
|
* - `variant`: undefined
|
|
869
|
-
* - `quiet`: undefined
|
|
870
1041
|
* - `small`: undefined
|
|
871
1042
|
* - `href`: undefined
|
|
872
1043
|
* - `disabled`: undefined
|
|
873
1044
|
* - `target`: undefined
|
|
874
1045
|
* - `rel`: undefined
|
|
875
1046
|
* - `full-width`/`fullWidth`: undefined
|
|
876
|
-
* - `button-class`/`buttonClass`: undefined
|
|
877
|
-
* - `name`: undefined
|
|
878
|
-
* - `classes`: undefined (property only)
|
|
879
1047
|
*/
|
|
880
1048
|
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
881
1049
|
|
|
@@ -903,6 +1071,12 @@ export type WarpTabsProps = {
|
|
|
903
1071
|
* - `name`: undefined
|
|
904
1072
|
* - `value`: undefined
|
|
905
1073
|
* - `ariaValueTextLoading`: undefined (property only)
|
|
1074
|
+
*
|
|
1075
|
+
* ## Methods
|
|
1076
|
+
*
|
|
1077
|
+
* Methods that can be called to access component functionality.
|
|
1078
|
+
*
|
|
1079
|
+
* - `resetFormControl() => void`: undefined
|
|
906
1080
|
*/
|
|
907
1081
|
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
908
1082
|
|
|
@@ -1082,14 +1256,17 @@ export type WarpTabsProps = {
|
|
|
1082
1256
|
*
|
|
1083
1257
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1084
1258
|
*
|
|
1085
|
-
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
1086
|
-
* - `
|
|
1087
|
-
* - `
|
|
1088
|
-
* - `
|
|
1259
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
1260
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
1261
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
1262
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
1263
|
+
* - `always`: Whether to always show a hint.
|
|
1264
|
+
* - `hint`: The content displayed as the help text.
|
|
1089
1265
|
* - `label`: The content to disply as the label
|
|
1090
1266
|
* - `optional`: Whether to show optional text
|
|
1091
1267
|
* - `disabled`: Renders the field in a disabled state.
|
|
1092
1268
|
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
1269
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
1093
1270
|
* - `name`: undefined
|
|
1094
1271
|
* - `value`: undefined
|
|
1095
1272
|
*
|
|
@@ -1097,6 +1274,7 @@ export type WarpTabsProps = {
|
|
|
1097
1274
|
*
|
|
1098
1275
|
* Methods that can be called to access component functionality.
|
|
1099
1276
|
*
|
|
1277
|
+
* - `resetFormControl() => void`: undefined
|
|
1100
1278
|
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
1101
1279
|
* - `onChange({ target }) => void`: undefined
|
|
1102
1280
|
*/
|
|
@@ -1125,10 +1303,12 @@ export type WarpTabsProps = {
|
|
|
1125
1303
|
* - `pattern`: undefined
|
|
1126
1304
|
* - `placeholder`: undefined
|
|
1127
1305
|
* - `read-only`/`readOnly`: undefined
|
|
1306
|
+
* - `readonly`: undefined
|
|
1128
1307
|
* - `required`: undefined
|
|
1129
1308
|
* - `type`: undefined
|
|
1130
1309
|
* - `value`: undefined
|
|
1131
1310
|
* - `name`: undefined
|
|
1311
|
+
* - `step`: undefined
|
|
1132
1312
|
* - `formatter`: Function to format value when the input field.
|
|
1133
1313
|
*
|
|
1134
1314
|
* Only active when the input field does not have focus,
|
|
@@ -1141,6 +1321,7 @@ export type WarpTabsProps = {
|
|
|
1141
1321
|
*
|
|
1142
1322
|
* Methods that can be called to access component functionality.
|
|
1143
1323
|
*
|
|
1324
|
+
* - `resetFormControl() => void`: undefined
|
|
1144
1325
|
* - `handler(e: Event) => void`: undefined
|
|
1145
1326
|
* - `prefixSlotChange() => void`: undefined
|
|
1146
1327
|
* - `suffixSlotChange() => void`: undefined
|
|
@@ -1281,6 +1462,12 @@ export type WarpTabsProps = {
|
|
|
1281
1462
|
* - `class-name`/`containerClassName`: Additional container styling
|
|
1282
1463
|
* - `list-class-name`/`listClassName`: Additional list styling
|
|
1283
1464
|
* - `name`: Name attribute for form submission
|
|
1465
|
+
*
|
|
1466
|
+
* ## Methods
|
|
1467
|
+
*
|
|
1468
|
+
* Methods that can be called to access component functionality.
|
|
1469
|
+
*
|
|
1470
|
+
* - `resetFormControl() => void`: undefined
|
|
1284
1471
|
*/
|
|
1285
1472
|
"w-combobox": Partial<WarpComboboxProps & BaseProps<WarpCombobox> & BaseEvents>;
|
|
1286
1473
|
|
|
@@ -1328,6 +1515,12 @@ export type WarpTabsProps = {
|
|
|
1328
1515
|
* the query will point to an element that doesn't exist anymore. (property only)
|
|
1329
1516
|
* - `todayCell`: undefined (property only)
|
|
1330
1517
|
* - `selectedCell`: undefined (property only)
|
|
1518
|
+
*
|
|
1519
|
+
* ## Methods
|
|
1520
|
+
*
|
|
1521
|
+
* Methods that can be called to access component functionality.
|
|
1522
|
+
*
|
|
1523
|
+
* - `resetFormControl() => void`: undefined
|
|
1331
1524
|
*/
|
|
1332
1525
|
"w-datepicker": Partial<WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents>;
|
|
1333
1526
|
|
|
@@ -1386,6 +1579,128 @@ export type WarpTabsProps = {
|
|
|
1386
1579
|
"w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
|
|
1387
1580
|
|
|
1388
1581
|
|
|
1582
|
+
/**
|
|
1583
|
+
*
|
|
1584
|
+
*
|
|
1585
|
+
* ## Attributes & Properties
|
|
1586
|
+
*
|
|
1587
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1588
|
+
*
|
|
1589
|
+
* - `form`: The string pointing to a form's id.
|
|
1590
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
1591
|
+
* - `appearance`: The radio's value. When selected, the radio group will receive this value.
|
|
1592
|
+
* - `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
1593
|
+
* attribute can typically be omitted.
|
|
1594
|
+
* - `disabled`: Disables the radio.
|
|
1595
|
+
* - `checked`: undefined (property only)
|
|
1596
|
+
*
|
|
1597
|
+
* ## Methods
|
|
1598
|
+
*
|
|
1599
|
+
* Methods that can be called to access component functionality.
|
|
1600
|
+
*
|
|
1601
|
+
* - `setValue() => void`: undefined
|
|
1602
|
+
*/
|
|
1603
|
+
"w-radio": Partial<WRadioProps & BaseProps<WRadio> & BaseEvents>;
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
*
|
|
1609
|
+
* ## Attributes & Properties
|
|
1610
|
+
*
|
|
1611
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1612
|
+
*
|
|
1613
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1614
|
+
* instead.
|
|
1615
|
+
* - `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1616
|
+
* - `name`: The name of the radio group, submitted as a name/value pair with form data.
|
|
1617
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
1618
|
+
* - `orientation`: The orientation in which to show radio items.
|
|
1619
|
+
* - `value`/`defaultValue`: The default value of the form control. Primarily used for resetting the form control.
|
|
1620
|
+
* - `size`: The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.
|
|
1621
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
1622
|
+
* - `with-label`/`withLabel`: Used for SSR. if true, will show slotted label on initial render.
|
|
1623
|
+
* - `with-hint`/`withHint`: Used for SSR. if true, will show slotted hint on initial render.
|
|
1624
|
+
* - `hasRadioButtons`: undefined (property only)
|
|
1625
|
+
* - `defaultSlot`: undefined (property only)
|
|
1626
|
+
* - `value`: The current value of the radio group, submitted as a name/value pair with form data. (property only)
|
|
1627
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
1628
|
+
* the first radio element. (property only) (readonly)
|
|
1629
|
+
*
|
|
1630
|
+
* ## Events
|
|
1631
|
+
*
|
|
1632
|
+
* Events that will be emitted by the component.
|
|
1633
|
+
*
|
|
1634
|
+
* - `input`: undefined
|
|
1635
|
+
* - `change`: undefined
|
|
1636
|
+
*
|
|
1637
|
+
* ## Slots
|
|
1638
|
+
*
|
|
1639
|
+
* Areas where markup can be added to the component.
|
|
1640
|
+
*
|
|
1641
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
1642
|
+
*
|
|
1643
|
+
* ## Methods
|
|
1644
|
+
*
|
|
1645
|
+
* Methods that can be called to access component functionality.
|
|
1646
|
+
*
|
|
1647
|
+
* - `formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void`: undefined
|
|
1648
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
1649
|
+
*/
|
|
1650
|
+
"w-radio-group": Partial<WRadioGroupProps & BaseProps<WRadioGroup> & BaseEvents>;
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
*
|
|
1656
|
+
* ## Attributes & Properties
|
|
1657
|
+
*
|
|
1658
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1659
|
+
*
|
|
1660
|
+
* - `title`: undefined
|
|
1661
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
1662
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
1663
|
+
* - `size`: The checkbox's size.
|
|
1664
|
+
* - `disabled`: Disables the checkbox.
|
|
1665
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
1666
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
1667
|
+
* - `checked`/`defaultChecked`: The default value of the form control. Primarily used for resetting the form control.
|
|
1668
|
+
* - `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
1669
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
1670
|
+
* the same document or shadow root for this to work.
|
|
1671
|
+
* - `required`: Makes the checkbox a required field.
|
|
1672
|
+
* - `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1673
|
+
* - `input`: undefined (property only)
|
|
1674
|
+
* - `checked`: Draws the checkbox in a checked state. (property only)
|
|
1675
|
+
*
|
|
1676
|
+
* ## Events
|
|
1677
|
+
*
|
|
1678
|
+
* Events that will be emitted by the component.
|
|
1679
|
+
*
|
|
1680
|
+
* - `change`: undefined
|
|
1681
|
+
*
|
|
1682
|
+
* ## Methods
|
|
1683
|
+
*
|
|
1684
|
+
* Methods that can be called to access component functionality.
|
|
1685
|
+
*
|
|
1686
|
+
* - `handleDefaultCheckedChange() => void`: undefined
|
|
1687
|
+
* - `handleValueOrCheckedChange() => void`: undefined
|
|
1688
|
+
* - `handleStateChange() => void`: undefined
|
|
1689
|
+
* - `handleDisabledChange() => void`: undefined
|
|
1690
|
+
* - `formResetCallback() => void`: undefined
|
|
1691
|
+
* - `click() => void`: Simulates a click on the checkbox.
|
|
1692
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox.
|
|
1693
|
+
* - `blur() => void`: Removes focus from the checkbox.
|
|
1694
|
+
*/
|
|
1695
|
+
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
*/
|
|
1701
|
+
"w-checkbox-group": Partial<WCheckboxGroupProps & BaseProps<WCheckboxGroup> & BaseEvents>;
|
|
1702
|
+
|
|
1703
|
+
|
|
1389
1704
|
/**
|
|
1390
1705
|
* Component to place inside a `<w-slider>`.
|
|
1391
1706
|
*
|
|
@@ -1401,6 +1716,8 @@ export type WarpTabsProps = {
|
|
|
1401
1716
|
* - `name`: undefined
|
|
1402
1717
|
* - `value`: undefined
|
|
1403
1718
|
* - `disabled`: undefined
|
|
1719
|
+
* - `invalid`: undefined
|
|
1720
|
+
* - `allowValuesOutsideRange`: Set by `<w-slider>` (property only)
|
|
1404
1721
|
* - `markers`: Set by `<w-slider>` (property only)
|
|
1405
1722
|
* - `required`: Set by `<w-slider>` (property only)
|
|
1406
1723
|
* - `step`: Set by `<w-slider>` (property only)
|
|
@@ -1410,12 +1727,22 @@ export type WarpTabsProps = {
|
|
|
1410
1727
|
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
1411
1728
|
* - `range`: undefined (property only)
|
|
1412
1729
|
* - `textfield`: undefined (property only)
|
|
1730
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
1731
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
1732
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
1413
1733
|
*
|
|
1414
1734
|
* ## Events
|
|
1415
1735
|
*
|
|
1416
1736
|
* Events that will be emitted by the component.
|
|
1417
1737
|
*
|
|
1418
1738
|
* - `slidervalidity`: undefined
|
|
1739
|
+
*
|
|
1740
|
+
* ## Methods
|
|
1741
|
+
*
|
|
1742
|
+
* Methods that can be called to access component functionality.
|
|
1743
|
+
*
|
|
1744
|
+
* - `resetFormControl() => void`: undefined
|
|
1745
|
+
* - `updateFieldAfterValidation() => void`: undefined
|
|
1419
1746
|
*/
|
|
1420
1747
|
"w-slider-thumb": Partial<WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents>;
|
|
1421
1748
|
|
|
@@ -1433,6 +1760,9 @@ export type WarpTabsProps = {
|
|
|
1433
1760
|
*
|
|
1434
1761
|
* If you need to display HTML, use the `label` slot instead.
|
|
1435
1762
|
* - `disabled`: undefined
|
|
1763
|
+
* - `allow-values-outside-range`/`allowValuesOutsideRange`: undefined
|
|
1764
|
+
* - `error`: undefined
|
|
1765
|
+
* - `help-text`/`helpText`: undefined
|
|
1436
1766
|
* - `invalid`: undefined
|
|
1437
1767
|
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
1438
1768
|
* - `min`: undefined
|
|
@@ -1441,6 +1771,12 @@ export type WarpTabsProps = {
|
|
|
1441
1771
|
* - `step`: undefined
|
|
1442
1772
|
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
1443
1773
|
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
1774
|
+
* - `_invalidMessage`: undefined (property only)
|
|
1775
|
+
* - `_hasInternalError`: undefined (property only)
|
|
1776
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
1777
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
1778
|
+
* - `componentHasError`: undefined (property only) (readonly)
|
|
1779
|
+
* - `errorText`: undefined (property only) (readonly)
|
|
1444
1780
|
*
|
|
1445
1781
|
* ## Slots
|
|
1446
1782
|
*
|
|
@@ -1473,7 +1809,7 @@ export type WarpTabsProps = {
|
|
|
1473
1809
|
*
|
|
1474
1810
|
* - `updateStepsContext() => void`: undefined
|
|
1475
1811
|
*/
|
|
1476
|
-
"w-
|
|
1812
|
+
"w-step-indicator": Partial<WarpStepIndicatorProps & BaseProps<WarpStepIndicator> & BaseEvents>;
|
|
1477
1813
|
|
|
1478
1814
|
|
|
1479
1815
|
/**
|
|
@@ -1503,7 +1839,9 @@ export type WarpTabsProps = {
|
|
|
1503
1839
|
*
|
|
1504
1840
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1505
1841
|
*
|
|
1842
|
+
* - `name`: undefined
|
|
1506
1843
|
* - `value`: undefined
|
|
1844
|
+
* - `checked`: undefined
|
|
1507
1845
|
* - `disabled`: undefined
|
|
1508
1846
|
*
|
|
1509
1847
|
* ## Events
|
|
@@ -1511,6 +1849,12 @@ export type WarpTabsProps = {
|
|
|
1511
1849
|
* Events that will be emitted by the component.
|
|
1512
1850
|
*
|
|
1513
1851
|
* - `change`: undefined
|
|
1852
|
+
*
|
|
1853
|
+
* ## Methods
|
|
1854
|
+
*
|
|
1855
|
+
* Methods that can be called to access component functionality.
|
|
1856
|
+
*
|
|
1857
|
+
* - `resetFormControl() => void`: undefined
|
|
1514
1858
|
*/
|
|
1515
1859
|
"w-switch": Partial<WarpSwitchProps & BaseProps<WarpSwitch> & BaseEvents>;
|
|
1516
1860
|
|
|
@@ -1554,6 +1898,41 @@ export type WarpTabsProps = {
|
|
|
1554
1898
|
* - `change`: undefined
|
|
1555
1899
|
*/
|
|
1556
1900
|
"w-tabs": Partial<WarpTabsProps & BaseProps<WarpTabs> & BaseEvents>;
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* A single line text input element.
|
|
1905
|
+
*
|
|
1906
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
1907
|
+
*
|
|
1908
|
+
* ## Attributes & Properties
|
|
1909
|
+
*
|
|
1910
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1911
|
+
*
|
|
1912
|
+
* - `disabled`: undefined
|
|
1913
|
+
* - `invalid`: undefined
|
|
1914
|
+
* - `label`: undefined
|
|
1915
|
+
* - `help-text`/`helpText`: undefined
|
|
1916
|
+
* - `maximum-rows`/`maxRows`: undefined
|
|
1917
|
+
* - `minimum-rows`/`minRows`: undefined
|
|
1918
|
+
* - `name`: undefined
|
|
1919
|
+
* - `placeholder`: undefined
|
|
1920
|
+
* - `read-only`/`readOnly`: undefined
|
|
1921
|
+
* - `readonly`: undefined
|
|
1922
|
+
* - `required`: undefined
|
|
1923
|
+
* - `value`: undefined
|
|
1924
|
+
* - `optional`: undefined
|
|
1925
|
+
* - `minHeight`: undefined (property only)
|
|
1926
|
+
* - `maxHeight`: undefined (property only)
|
|
1927
|
+
*
|
|
1928
|
+
* ## Methods
|
|
1929
|
+
*
|
|
1930
|
+
* Methods that can be called to access component functionality.
|
|
1931
|
+
*
|
|
1932
|
+
* - `resetFormControl() => void`: undefined
|
|
1933
|
+
* - `handler(e: InputEvent) => void`: undefined
|
|
1934
|
+
*/
|
|
1935
|
+
"w-textarea": Partial<WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents>;
|
|
1557
1936
|
}
|
|
1558
1937
|
|
|
1559
1938
|
export type CustomCssProperties = {
|
|
@@ -1589,7 +1968,7 @@ declare module '@stencil/core' {
|
|
|
1589
1968
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1590
1969
|
}
|
|
1591
1970
|
|
|
1592
|
-
declare module 'hono' {
|
|
1971
|
+
declare module 'hono/jsx' {
|
|
1593
1972
|
namespace JSX {
|
|
1594
1973
|
interface IntrinsicElements extends CustomElements {}
|
|
1595
1974
|
}
|