@warp-ds/elements 2.2.0-next.9 → 2.2.0
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/README.md +188 -26
- package/dist/.storybook/utilities.js +52 -0
- package/dist/api.js.map +1 -1
- package/dist/custom-elements.json +1381 -2711
- package/dist/index.d.ts +942 -25
- package/dist/packages/affix/affix.react.stories.d.ts +9 -0
- package/dist/packages/affix/affix.react.stories.js +10 -0
- package/dist/packages/affix/affix.stories.js +25 -0
- package/dist/packages/affix/affix.test.js +9 -0
- package/dist/packages/affix/index.d.ts +0 -17
- package/dist/packages/affix/index.js +5 -5
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/affix/react.js +15 -2482
- package/dist/packages/affix/styles.js +2 -0
- package/dist/packages/alert/alert.react.stories.d.ts +13 -0
- package/dist/packages/alert/alert.react.stories.js +44 -0
- package/dist/packages/alert/alert.stories.js +68 -0
- package/dist/packages/alert/alert.test.js +18 -0
- package/dist/packages/alert/index.d.ts +1 -6
- package/dist/packages/alert/index.js +4 -4
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/alert/react.js +11 -2492
- package/dist/packages/alert/styles.js +2 -0
- package/dist/packages/attention/attention.react.stories.d.ts +15 -0
- package/dist/packages/attention/attention.react.stories.js +92 -0
- package/dist/packages/attention/attention.stories.d.ts +1 -0
- package/dist/packages/attention/attention.stories.js +180 -0
- package/dist/packages/attention/attention.test.js +11 -0
- package/dist/packages/attention/index.d.ts +3 -29
- package/dist/packages/attention/index.js +249 -19
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.js +905 -0
- package/dist/packages/attention/locales/da/messages.mjs +1 -0
- package/dist/packages/attention/locales/en/messages.mjs +1 -0
- package/dist/packages/attention/locales/fi/messages.mjs +1 -0
- package/dist/packages/attention/locales/nb/messages.mjs +1 -0
- package/dist/packages/attention/locales/sv/messages.mjs +1 -0
- package/dist/packages/attention/react.d.ts +15 -1
- package/dist/packages/attention/react.js +17 -3405
- package/dist/packages/attention/styles.js +2 -0
- package/dist/packages/badge/badge.react.stories.d.ts +18 -0
- package/dist/packages/badge/badge.react.stories.js +60 -0
- package/dist/packages/badge/badge.stories.js +68 -0
- package/dist/packages/badge/badge.test.js +9 -0
- package/dist/packages/badge/index.d.ts +0 -5
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/badge/react.js +11 -2465
- package/dist/packages/badge/styles.js +2 -0
- package/dist/packages/box/box.react.stories.d.ts +15 -0
- package/dist/packages/box/box.react.stories.js +45 -0
- package/dist/packages/box/box.stories.js +59 -0
- package/dist/packages/box/box.test.js +9 -0
- package/dist/packages/box/index.d.ts +0 -5
- package/dist/packages/box/index.js +11 -4
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/box/react.js +11 -2465
- package/dist/packages/box/slot.test.js +9 -0
- package/dist/packages/box/styles.js +2 -0
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +13 -0
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +40 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
- package/dist/packages/breadcrumbs/index.d.ts +0 -12
- package/dist/packages/breadcrumbs/index.js +6 -6
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/locales/da/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/en/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/fi/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/nb/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/sv/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +11 -2475
- package/dist/packages/breadcrumbs/styles.js +2 -0
- package/dist/packages/button/button.react.stories.d.ts +22 -0
- package/dist/packages/button/button.react.stories.js +102 -0
- package/dist/packages/button/button.stories.d.ts +4 -0
- package/dist/packages/button/button.stories.js +151 -0
- package/dist/packages/button/button.test.js +25 -0
- package/dist/packages/button/index.d.ts +0 -66
- package/dist/packages/button/index.js +17 -11
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/locales/da/messages.mjs +1 -0
- package/dist/packages/button/locales/en/messages.mjs +1 -0
- package/dist/packages/button/locales/fi/messages.mjs +1 -0
- package/dist/packages/button/locales/nb/messages.mjs +1 -0
- package/dist/packages/button/locales/sv/messages.mjs +1 -0
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/button/react.js +10 -2684
- package/dist/packages/button/styles.js +2 -0
- package/dist/packages/card/card.react.stories.d.ts +16 -0
- package/dist/packages/card/card.react.stories.js +63 -0
- package/dist/packages/card/card.stories.js +82 -0
- package/dist/packages/card/card.test.js +9 -0
- package/dist/packages/card/index.d.ts +1 -18
- package/dist/packages/card/index.js +4 -4
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/card/locales/da/messages.mjs +1 -0
- package/dist/packages/card/locales/en/messages.mjs +1 -0
- package/dist/packages/card/locales/fi/messages.mjs +1 -0
- package/dist/packages/card/locales/nb/messages.mjs +1 -0
- package/dist/packages/card/locales/sv/messages.mjs +1 -0
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/card/react.js +11 -2487
- package/dist/packages/card/styles.js +2 -0
- package/dist/packages/expandable/expandable.react.stories.d.ts +18 -0
- package/dist/packages/expandable/expandable.react.stories.js +103 -0
- package/dist/packages/expandable/expandable.stories.js +132 -0
- package/dist/packages/expandable/expandable.test.js +24 -0
- package/dist/packages/expandable/index.d.ts +2 -33
- package/dist/packages/expandable/index.js +20 -11
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/expandable/react.js +11 -2495
- package/dist/packages/expandable/styles.js +2 -0
- package/dist/packages/i18n.js +45 -0
- package/dist/packages/link/index.d.ts +0 -5
- package/dist/packages/link/index.js +93 -2640
- package/dist/packages/link/styles.js +200 -0
- package/dist/packages/modal/index.js +24 -41
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/locales/da/messages.mjs +1 -0
- package/dist/packages/modal/locales/en/messages.mjs +1 -0
- package/dist/packages/modal/locales/fi/messages.mjs +1 -0
- package/dist/packages/modal/locales/nb/messages.mjs +1 -0
- package/dist/packages/modal/locales/sv/messages.mjs +1 -0
- package/dist/packages/modal/modal-footer.d.ts +0 -5
- package/dist/packages/{dead-toggle/index.js → modal/modal-footer.js} +20 -47
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +0 -5
- package/dist/packages/{steps/index.js → modal/modal-header.js} +122 -20
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +0 -5
- package/dist/packages/{dead-toggle/react.js → modal/modal-main.js} +124 -59
- package/dist/packages/{box/react.js.map → modal/modal-main.js.map} +4 -4
- package/dist/packages/modal/modal.react.stories.d.ts +14 -0
- package/dist/packages/modal/modal.react.stories.js +27 -0
- package/dist/packages/modal/modal.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.js +254 -0
- package/dist/packages/modal/react.d.ts +11 -3
- package/dist/packages/modal/react.js +31 -2754
- package/dist/packages/modal/util.js +21 -0
- package/dist/packages/pill/index.d.ts +0 -17
- package/dist/packages/pill/index.js +5 -5
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/locales/da/messages.mjs +1 -0
- package/dist/packages/pill/locales/en/messages.mjs +1 -0
- package/dist/packages/pill/locales/fi/messages.mjs +1 -0
- package/dist/packages/pill/locales/nb/messages.mjs +1 -0
- package/dist/packages/pill/locales/sv/messages.mjs +1 -0
- package/dist/packages/pill/pill.react.stories.d.ts +23 -0
- package/dist/packages/pill/pill.react.stories.js +22 -0
- package/dist/packages/pill/pill.stories.js +33 -0
- package/dist/packages/pill/pill.test.js +25 -0
- package/dist/packages/pill/react.d.ts +7 -0
- package/dist/packages/pill/react.js +17 -0
- package/dist/packages/pill/styles.js +2 -0
- package/dist/packages/select/index.d.ts +4 -29
- package/dist/packages/select/index.js +25 -18
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/select/locales/da/messages.mjs +1 -0
- package/dist/packages/select/locales/en/messages.mjs +1 -0
- package/dist/packages/select/locales/fi/messages.mjs +1 -0
- package/dist/packages/select/locales/nb/messages.mjs +1 -0
- package/dist/packages/select/locales/sv/messages.mjs +1 -0
- package/dist/packages/select/react.d.ts +6 -2
- package/dist/packages/select/react.js +20 -2494
- package/dist/packages/select/select.react.stories.d.ts +18 -0
- package/dist/packages/select/select.react.stories.js +28 -0
- package/dist/packages/select/select.stories.d.ts +7 -0
- package/dist/packages/select/select.stories.js +100 -0
- package/dist/packages/select/select.test.js +31 -0
- package/dist/packages/select/styles.js +2 -0
- package/dist/packages/{switch/index.js → styles.js} +5 -18
- package/dist/packages/textfield/index.d.ts +12 -26
- package/dist/packages/textfield/index.js +86 -28
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +11 -2
- package/dist/packages/textfield/react.js +21 -2490
- package/dist/packages/textfield/styles/w-textfield.styles.d.ts +1 -0
- package/dist/packages/textfield/styles/w-textfield.styles.js +55 -0
- package/dist/packages/textfield/styles.js +2 -0
- package/dist/packages/textfield/textfield.react.stories.d.ts +37 -0
- package/dist/packages/textfield/textfield.react.stories.js +88 -0
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +105 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/textfield/textfield.test.js +68 -0
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/api.js +41 -0
- package/dist/packages/toast/index.d.ts +1 -1
- package/dist/packages/toast/index.js +17 -17
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/locales/da/messages.mjs +1 -0
- package/dist/packages/toast/locales/en/messages.mjs +1 -0
- package/dist/packages/toast/locales/fi/messages.mjs +1 -0
- package/dist/packages/toast/locales/nb/messages.mjs +1 -0
- package/dist/packages/toast/locales/sv/messages.mjs +1 -0
- package/dist/packages/toast/styles.js +2 -0
- package/dist/packages/toast/toast-container.d.ts +1 -1
- package/dist/packages/{switch/react.js → toast/toast-container.js} +21 -38
- package/dist/packages/toast/toast-container.js.map +7 -0
- package/dist/packages/{pagination/index.js → toast/toast.js} +21 -49
- package/dist/packages/toast/toast.js.map +7 -0
- package/dist/packages/toast/toast.stories.js +50 -0
- package/dist/packages/toast/types.js +1 -0
- package/dist/packages/utils/expand-transition.d.ts +3 -3
- package/dist/packages/utils/expand-transition.js +59 -0
- package/dist/packages/utils/index.js +37 -0
- package/dist/packages/utils/unstyled-heading.d.ts +2 -3
- package/dist/packages/utils/unstyled-heading.js +22 -0
- package/dist/packages/utils/window-exists.js +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/web-types.json +150 -438
- package/package.json +39 -32
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -7
- package/dist/index.js +0 -4285
- package/dist/index.js.map +0 -7
- package/dist/packages/affix/react.js.map +0 -7
- package/dist/packages/alert/react.js.map +0 -7
- package/dist/packages/attention/react.js.map +0 -7
- package/dist/packages/badge/react.js.map +0 -7
- package/dist/packages/breadcrumbs/react.js.map +0 -7
- package/dist/packages/button/react.js.map +0 -7
- package/dist/packages/card/react.js.map +0 -7
- package/dist/packages/datepicker/DatePicker.test.d.ts +0 -1
- package/dist/packages/datepicker/datepicker.d.ts +0 -107
- package/dist/packages/datepicker/datepicker.stories.d.ts +0 -11
- package/dist/packages/datepicker/datepicker.test.d.ts +0 -2
- package/dist/packages/datepicker/index.d.ts +0 -1
- package/dist/packages/datepicker/index.js +0 -2785
- package/dist/packages/datepicker/index.js.map +0 -7
- package/dist/packages/datepicker/locales/da/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/en/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/fi/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/nb/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/sv/messages.d.mts +0 -1
- package/dist/packages/datepicker/react.d.ts +0 -2
- package/dist/packages/datepicker/react.js +0 -2805
- package/dist/packages/datepicker/react.js.map +0 -7
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +0 -1
- package/dist/packages/datepicker/utils.d.ts +0 -13
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -10
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/dead-toggle/index.d.ts +0 -21
- 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.map +0 -7
- package/dist/packages/expandable/react.js.map +0 -7
- package/dist/packages/link/index.js.map +0 -7
- package/dist/packages/link/link.stories.d.ts +0 -20
- package/dist/packages/link/link.test.d.ts +0 -1
- package/dist/packages/link/react.d.ts +0 -2
- package/dist/packages/link/react.js +0 -2666
- package/dist/packages/link/react.js.map +0 -7
- package/dist/packages/modal/react.js.map +0 -7
- package/dist/packages/pageindicator/index.d.ts +0 -14
- package/dist/packages/pageindicator/index.js +0 -32
- package/dist/packages/pageindicator/index.js.map +0 -7
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
- package/dist/packages/pageindicator/react.d.ts +0 -2
- package/dist/packages/pageindicator/react.js +0 -52
- package/dist/packages/pageindicator/react.js.map +0 -7
- package/dist/packages/pageindicator/style.d.ts +0 -1
- package/dist/packages/pagination/index.d.ts +0 -37
- 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/en/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/react.d.ts +0 -2
- package/dist/packages/pagination/react.js +0 -2514
- package/dist/packages/pagination/react.js.map +0 -7
- package/dist/packages/pagination/styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -64
- package/dist/packages/rip-and-tear-checkbox/index.css +0 -2
- package/dist/packages/rip-and-tear-checkbox/index.css.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -6
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -36
- package/dist/packages/rip-and-tear-checkbox/index.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +0 -46
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
- package/dist/packages/rip-and-tear-radio/index.css +0 -2
- package/dist/packages/rip-and-tear-radio/index.css.map +0 -7
- package/dist/packages/rip-and-tear-radio/index.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/index.js +0 -34
- package/dist/packages/rip-and-tear-radio/index.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
- package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
- package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
- package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
- package/dist/packages/select/react.js.map +0 -7
- package/dist/packages/steps/index.d.ts +0 -43
- 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/en/messages.d.mts +0 -1
- package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
- package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
- package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
- package/dist/packages/steps/react.d.ts +0 -3
- package/dist/packages/steps/react.js +0 -2485
- package/dist/packages/steps/react.js.map +0 -7
- package/dist/packages/steps/steps.stories.d.ts +0 -12
- package/dist/packages/steps/styles.d.ts +0 -1
- package/dist/packages/switch/index.d.ts +0 -20
- package/dist/packages/switch/index.js.map +0 -7
- package/dist/packages/switch/react.d.ts +0 -2
- package/dist/packages/switch/react.js.map +0 -7
- package/dist/packages/switch/styles.d.ts +0 -1
- package/dist/packages/switch/switch.stories.d.ts +0 -9
- package/dist/packages/textfield/react.js.map +0 -7
- package/dist/vscode.css-custom-data.json +0 -6
- package/dist/vscode.html-custom-data.json +0 -421
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,942 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
|
|
2
|
+
import type { WarpAffix } from "./packages/affix/index.ts";
|
|
3
|
+
import type { WarpAlert } from "./packages/alert/index.ts";
|
|
4
|
+
import type { WarpButton } from "./packages/button/index.ts";
|
|
5
|
+
import type { WarpAttention } from "./packages/attention/index.ts";
|
|
6
|
+
import type { WarpBadge } from "./packages/badge/index.ts";
|
|
7
|
+
import type { WarpBox } from "./packages/box/index.ts";
|
|
8
|
+
import type { WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
|
|
9
|
+
import type { WarpCard } from "./packages/card/index.ts";
|
|
10
|
+
import type { WarpExpandable } from "./packages/expandable/index.ts";
|
|
11
|
+
import type { WarpPill } from "./packages/pill/index.ts";
|
|
12
|
+
import type { WarpSelect } from "./packages/select/index.ts";
|
|
13
|
+
import type { WarpTextField } from "./packages/textfield/index.ts";
|
|
14
|
+
import type { ModalFooter } from "./packages/modal/modal-footer.ts";
|
|
15
|
+
import type { ModalHeader } from "./packages/modal/modal-header.ts";
|
|
16
|
+
import type { ModalMain } from "./packages/modal/modal-main.ts";
|
|
17
|
+
import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This type can be used to create scoped tags for your components.
|
|
21
|
+
*
|
|
22
|
+
* Usage:
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* import type { ScopedElements } from "path/to/library/jsx-integration";
|
|
26
|
+
*
|
|
27
|
+
* declare module "my-library" {
|
|
28
|
+
* namespace JSX {
|
|
29
|
+
* interface IntrinsicElements
|
|
30
|
+
* extends ScopedElements<'test-', ''> {}
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
|
|
36
|
+
*/
|
|
37
|
+
export type ScopedElements<
|
|
38
|
+
Prefix extends string = "",
|
|
39
|
+
Suffix extends string = ""
|
|
40
|
+
> = {
|
|
41
|
+
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
type BaseProps<T extends HTMLElement> = {
|
|
45
|
+
|
|
46
|
+
/** Content added between the opening and closing tags of the element */
|
|
47
|
+
children?: any;
|
|
48
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
49
|
+
class?: string;
|
|
50
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
51
|
+
className?: string;
|
|
52
|
+
/** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
|
|
53
|
+
classList?: Record<string, boolean | undefined>;
|
|
54
|
+
/** Specifies the text direction of the element. */
|
|
55
|
+
dir?: "ltr" | "rtl";
|
|
56
|
+
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
57
|
+
exportparts?: string;
|
|
58
|
+
/** For <label> and <output>, lets you associate the label with some control. */
|
|
59
|
+
htmlFor?: string;
|
|
60
|
+
/** Specifies whether the element should be hidden. */
|
|
61
|
+
hidden?: boolean | string;
|
|
62
|
+
/** A unique identifier for the element. */
|
|
63
|
+
id?: string;
|
|
64
|
+
/** Keys tell React which array item each component corresponds to */
|
|
65
|
+
key?: string | number;
|
|
66
|
+
/** Specifies the language of the element. */
|
|
67
|
+
lang?: string;
|
|
68
|
+
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
69
|
+
part?: string;
|
|
70
|
+
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
71
|
+
ref?: T | ((e: T) => void);
|
|
72
|
+
/** Adds a reference for a custom element slot */
|
|
73
|
+
slot?: string;
|
|
74
|
+
/** Prop for setting inline styles */
|
|
75
|
+
style?: Record<string, string | number>;
|
|
76
|
+
/** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
|
|
77
|
+
tabIndex?: number;
|
|
78
|
+
/** Specifies the tooltip text for the element. */
|
|
79
|
+
title?: string;
|
|
80
|
+
/** Passing 'no' excludes the element content from being translated. */
|
|
81
|
+
translate?: "yes" | "no";
|
|
82
|
+
/** The popover global attribute is used to designate an element as a popover element. */
|
|
83
|
+
popover?: "auto" | "hint" | "manual";
|
|
84
|
+
/** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
|
|
85
|
+
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
86
|
+
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
87
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
88
|
+
|
|
89
|
+
} ;
|
|
90
|
+
|
|
91
|
+
type BaseEvents = {
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
export type WarpAffixProps = {
|
|
99
|
+
/** */
|
|
100
|
+
"aria-label"?: WarpAffix['ariaLabel'];
|
|
101
|
+
/** */
|
|
102
|
+
"ariaLabel"?: WarpAffix['ariaLabel'];
|
|
103
|
+
/** Add this property to render a clickable Warp close icon.
|
|
104
|
+
|
|
105
|
+
Set an `aria-label` that explains the action when using this. */
|
|
106
|
+
"clear"?: WarpAffix['clear'];
|
|
107
|
+
/** Add this property to render a clickable Warp search icon.
|
|
108
|
+
|
|
109
|
+
Set an `aria-label` that explains the action when using this. */
|
|
110
|
+
"search"?: WarpAffix['search'];
|
|
111
|
+
/** */
|
|
112
|
+
"label"?: WarpAffix['label'];
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
export type WarpAlertProps = {
|
|
119
|
+
/** */
|
|
120
|
+
"variant"?: WarpAlert['variant'];
|
|
121
|
+
/** */
|
|
122
|
+
"show"?: WarpAlert['show'];
|
|
123
|
+
/** */
|
|
124
|
+
"role"?: WarpAlert['role'];
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
export type WarpButtonProps = {
|
|
131
|
+
/** */
|
|
132
|
+
"type"?: WarpButton['type'];
|
|
133
|
+
/** */
|
|
134
|
+
"autofocus"?: WarpButton['autofocus'];
|
|
135
|
+
/** */
|
|
136
|
+
"variant"?: WarpButton['variant'];
|
|
137
|
+
/** */
|
|
138
|
+
"quiet"?: WarpButton['quiet'];
|
|
139
|
+
/** */
|
|
140
|
+
"small"?: WarpButton['small'];
|
|
141
|
+
/** */
|
|
142
|
+
"loading"?: WarpButton['loading'];
|
|
143
|
+
/** */
|
|
144
|
+
"href"?: WarpButton['href'];
|
|
145
|
+
/** */
|
|
146
|
+
"target"?: WarpButton['target'];
|
|
147
|
+
/** */
|
|
148
|
+
"rel"?: WarpButton['rel'];
|
|
149
|
+
/** */
|
|
150
|
+
"full-width"?: WarpButton['fullWidth'];
|
|
151
|
+
/** */
|
|
152
|
+
"fullWidth"?: WarpButton['fullWidth'];
|
|
153
|
+
/** */
|
|
154
|
+
"button-class"?: WarpButton['buttonClass'];
|
|
155
|
+
/** */
|
|
156
|
+
"buttonClass"?: WarpButton['buttonClass'];
|
|
157
|
+
/** */
|
|
158
|
+
"name"?: WarpButton['name'];
|
|
159
|
+
/** */
|
|
160
|
+
"value"?: WarpButton['value'];
|
|
161
|
+
/** */
|
|
162
|
+
"ariaValueTextLoading"?: WarpButton['ariaValueTextLoading'];
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
export type WarpAttentionProps = {
|
|
169
|
+
/** */
|
|
170
|
+
"show"?: WarpAttention['show'];
|
|
171
|
+
/** */
|
|
172
|
+
"placement"?: WarpAttention['placement'];
|
|
173
|
+
/** */
|
|
174
|
+
"tooltip"?: WarpAttention['tooltip'];
|
|
175
|
+
/** */
|
|
176
|
+
"callout"?: WarpAttention['callout'];
|
|
177
|
+
/** */
|
|
178
|
+
"popover"?: WarpAttention['popover'];
|
|
179
|
+
/** */
|
|
180
|
+
"highlight"?: WarpAttention['highlight'];
|
|
181
|
+
/** */
|
|
182
|
+
"can-close"?: WarpAttention['canClose'];
|
|
183
|
+
/** */
|
|
184
|
+
"canClose"?: WarpAttention['canClose'];
|
|
185
|
+
/** */
|
|
186
|
+
"no-arrow"?: WarpAttention['noArrow'];
|
|
187
|
+
/** */
|
|
188
|
+
"noArrow"?: WarpAttention['noArrow'];
|
|
189
|
+
/** */
|
|
190
|
+
"distance"?: WarpAttention['distance'];
|
|
191
|
+
/** */
|
|
192
|
+
"skidding"?: WarpAttention['skidding'];
|
|
193
|
+
/** */
|
|
194
|
+
"flip"?: WarpAttention['flip'];
|
|
195
|
+
/** */
|
|
196
|
+
"cross-axis"?: WarpAttention['crossAxis'];
|
|
197
|
+
/** */
|
|
198
|
+
"crossAxis"?: WarpAttention['crossAxis'];
|
|
199
|
+
/** */
|
|
200
|
+
"fallback-placements"?: WarpAttention['fallbackPlacements'];
|
|
201
|
+
/** */
|
|
202
|
+
"fallbackPlacements"?: WarpAttention['fallbackPlacements'];
|
|
203
|
+
/** */
|
|
204
|
+
"_initialPlacement"?: WarpAttention['_initialPlacement'];
|
|
205
|
+
/** */
|
|
206
|
+
"_actualDirection"?: WarpAttention['_actualDirection'];
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
export type WarpBadgeProps = {
|
|
213
|
+
/** */
|
|
214
|
+
"variant"?: WarpBadge['variant'];
|
|
215
|
+
/** */
|
|
216
|
+
"position"?: WarpBadge['position'];
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
export type WarpBoxProps = {
|
|
223
|
+
/** */
|
|
224
|
+
"bleed"?: WarpBox['bleed'];
|
|
225
|
+
/** */
|
|
226
|
+
"bordered"?: WarpBox['bordered'];
|
|
227
|
+
/** */
|
|
228
|
+
"info"?: WarpBox['info'];
|
|
229
|
+
/** */
|
|
230
|
+
"neutral"?: WarpBox['neutral'];
|
|
231
|
+
/** */
|
|
232
|
+
"role"?: WarpBox['role'];
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
export type WarpBreadcrumbsProps = {
|
|
239
|
+
/** */
|
|
240
|
+
"aria-label"?: WarpBreadcrumbs['ariaLabel'];
|
|
241
|
+
/** */
|
|
242
|
+
"ariaLabel"?: WarpBreadcrumbs['ariaLabel'];
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
export type WarpCardProps = {
|
|
249
|
+
/** */
|
|
250
|
+
"selected"?: WarpCard['selected'];
|
|
251
|
+
/** */
|
|
252
|
+
"flat"?: WarpCard['flat'];
|
|
253
|
+
/** */
|
|
254
|
+
"clickable"?: WarpCard['clickable'];
|
|
255
|
+
/** */
|
|
256
|
+
"buttonText"?: WarpCard['buttonText'];
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
export type WarpExpandableProps = {
|
|
263
|
+
/** */
|
|
264
|
+
"expanded"?: WarpExpandable['expanded'];
|
|
265
|
+
/** */
|
|
266
|
+
"title"?: WarpExpandable['title'];
|
|
267
|
+
/** */
|
|
268
|
+
"box"?: WarpExpandable['box'];
|
|
269
|
+
/** */
|
|
270
|
+
"bleed"?: WarpExpandable['bleed'];
|
|
271
|
+
/** */
|
|
272
|
+
"button-class"?: WarpExpandable['buttonClass'];
|
|
273
|
+
/** */
|
|
274
|
+
"buttonClass"?: WarpExpandable['buttonClass'];
|
|
275
|
+
/** */
|
|
276
|
+
"content-class"?: WarpExpandable['contentClass'];
|
|
277
|
+
/** */
|
|
278
|
+
"contentClass"?: WarpExpandable['contentClass'];
|
|
279
|
+
/** */
|
|
280
|
+
"no-chevron"?: WarpExpandable['noChevron'];
|
|
281
|
+
/** */
|
|
282
|
+
"noChevron"?: WarpExpandable['noChevron'];
|
|
283
|
+
/** */
|
|
284
|
+
"animated"?: WarpExpandable['animated'];
|
|
285
|
+
/** */
|
|
286
|
+
"heading-level"?: WarpExpandable['headingLevel'];
|
|
287
|
+
/** */
|
|
288
|
+
"headingLevel"?: WarpExpandable['headingLevel'];
|
|
289
|
+
/** */
|
|
290
|
+
"_hasTitle"?: WarpExpandable['_hasTitle'];
|
|
291
|
+
/** */
|
|
292
|
+
"_showChevronUp"?: WarpExpandable['_showChevronUp'];
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
export type WarpPillProps = {
|
|
299
|
+
/** */
|
|
300
|
+
"can-close"?: WarpPill['canClose'];
|
|
301
|
+
/** */
|
|
302
|
+
"canClose"?: WarpPill['canClose'];
|
|
303
|
+
/** */
|
|
304
|
+
"suggestion"?: WarpPill['suggestion'];
|
|
305
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
306
|
+
"open-sr-label"?: WarpPill['openSrLabel'];
|
|
307
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
308
|
+
"openSrLabel"?: WarpPill['openSrLabel'];
|
|
309
|
+
/** */
|
|
310
|
+
"open-aria-label"?: WarpPill['openAriaLabel'];
|
|
311
|
+
/** */
|
|
312
|
+
"openAriaLabel"?: WarpPill['openAriaLabel'];
|
|
313
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
314
|
+
"close-sr-label"?: WarpPill['closeSrLabel'];
|
|
315
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
316
|
+
"closeSrLabel"?: WarpPill['closeSrLabel'];
|
|
317
|
+
/** */
|
|
318
|
+
"close-aria-label"?: WarpPill['closeAriaLabel'];
|
|
319
|
+
/** */
|
|
320
|
+
"closeAriaLabel"?: WarpPill['closeAriaLabel'];
|
|
321
|
+
/** */
|
|
322
|
+
"openFilterSrText"?: WarpPill['openFilterSrText'];
|
|
323
|
+
/** */
|
|
324
|
+
"removeFilterSrText"?: WarpPill['removeFilterSrText'];
|
|
325
|
+
|
|
326
|
+
/** */
|
|
327
|
+
"onw-pill-click"?: (e: CustomEvent<CustomEvent>) => void;
|
|
328
|
+
/** */
|
|
329
|
+
"onw-pill-close"?: (e: CustomEvent<CustomEvent>) => void;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
export type WarpSelectProps = {
|
|
334
|
+
/** Whether the element should receive focus on render */
|
|
335
|
+
"auto-focus"?: WarpSelect['autoFocus'];
|
|
336
|
+
/** Whether the element should receive focus on render */
|
|
337
|
+
"autoFocus"?: WarpSelect['autoFocus'];
|
|
338
|
+
/** Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error */
|
|
339
|
+
"invalid"?: WarpSelect['invalid'];
|
|
340
|
+
/** Whether to always show a hint */
|
|
341
|
+
"always"?: WarpSelect['always'];
|
|
342
|
+
/** The content displayed as the help text */
|
|
343
|
+
"hint"?: WarpSelect['hint'];
|
|
344
|
+
/** The content to disply as the label */
|
|
345
|
+
"label"?: WarpSelect['label'];
|
|
346
|
+
/** Whether to show optional text */
|
|
347
|
+
"optional"?: WarpSelect['optional'];
|
|
348
|
+
/** Renders the field in a disabled state. */
|
|
349
|
+
"disabled"?: WarpSelect['disabled'];
|
|
350
|
+
/** Renders the field in a readonly state. */
|
|
351
|
+
"read-only"?: WarpSelect['readOnly'];
|
|
352
|
+
/** Renders the field in a readonly state. */
|
|
353
|
+
"readOnly"?: WarpSelect['readOnly'];
|
|
354
|
+
/** */
|
|
355
|
+
"name"?: WarpSelect['name'];
|
|
356
|
+
/** */
|
|
357
|
+
"value"?: WarpSelect['value'];
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
export type WarpTextFieldProps = {
|
|
364
|
+
/** */
|
|
365
|
+
"disabled"?: WarpTextField['disabled'];
|
|
366
|
+
/** */
|
|
367
|
+
"invalid"?: WarpTextField['invalid'];
|
|
368
|
+
/** */
|
|
369
|
+
"id"?: WarpTextField['id'];
|
|
370
|
+
/** */
|
|
371
|
+
"label"?: WarpTextField['label'];
|
|
372
|
+
/** */
|
|
373
|
+
"help-text"?: WarpTextField['helpText'];
|
|
374
|
+
/** */
|
|
375
|
+
"helpText"?: WarpTextField['helpText'];
|
|
376
|
+
/** */
|
|
377
|
+
"size"?: WarpTextField['size'];
|
|
378
|
+
/** */
|
|
379
|
+
"max"?: WarpTextField['max'];
|
|
380
|
+
/** */
|
|
381
|
+
"min"?: WarpTextField['min'];
|
|
382
|
+
/** */
|
|
383
|
+
"min-length"?: WarpTextField['minLength'];
|
|
384
|
+
/** */
|
|
385
|
+
"minLength"?: WarpTextField['minLength'];
|
|
386
|
+
/** */
|
|
387
|
+
"max-length"?: WarpTextField['maxLength'];
|
|
388
|
+
/** */
|
|
389
|
+
"maxLength"?: WarpTextField['maxLength'];
|
|
390
|
+
/** */
|
|
391
|
+
"pattern"?: WarpTextField['pattern'];
|
|
392
|
+
/** */
|
|
393
|
+
"placeholder"?: WarpTextField['placeholder'];
|
|
394
|
+
/** */
|
|
395
|
+
"read-only"?: WarpTextField['readOnly'];
|
|
396
|
+
/** */
|
|
397
|
+
"readOnly"?: WarpTextField['readOnly'];
|
|
398
|
+
/** */
|
|
399
|
+
"required"?: WarpTextField['required'];
|
|
400
|
+
/** */
|
|
401
|
+
"type"?: WarpTextField['type'];
|
|
402
|
+
/** */
|
|
403
|
+
"value"?: WarpTextField['value'];
|
|
404
|
+
/** */
|
|
405
|
+
"name"?: WarpTextField['name'];
|
|
406
|
+
/** Function to format value when the input field.
|
|
407
|
+
|
|
408
|
+
Only active when the input field does not have focus,
|
|
409
|
+
similar to the accessible input masking example from Filament Group
|
|
410
|
+
|
|
411
|
+
https://css-tricks.com/input-masking/
|
|
412
|
+
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
413
|
+
"formatter"?: WarpTextField['formatter'];
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
export type ModalFooterProps = {
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
export type ModalHeaderProps = {
|
|
426
|
+
/** */
|
|
427
|
+
"title"?: ModalHeader['title'];
|
|
428
|
+
/** */
|
|
429
|
+
"back"?: ModalHeader['back'];
|
|
430
|
+
/** */
|
|
431
|
+
"no-close"?: ModalHeader['noClose'];
|
|
432
|
+
/** */
|
|
433
|
+
"noClose"?: ModalHeader['noClose'];
|
|
434
|
+
/** */
|
|
435
|
+
"titleEl"?: ModalHeader['titleEl'];
|
|
436
|
+
|
|
437
|
+
/** */
|
|
438
|
+
"onbackClicked"?: (e: CustomEvent<CustomEvent>) => void;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
export type ModalMainProps = {
|
|
443
|
+
/** */
|
|
444
|
+
"show"?: ModalMain['show'];
|
|
445
|
+
/** */
|
|
446
|
+
"content-id"?: ModalMain['contentId'];
|
|
447
|
+
/** */
|
|
448
|
+
"contentId"?: ModalMain['contentId'];
|
|
449
|
+
/** */
|
|
450
|
+
"ignore-backdrop-clicks"?: ModalMain['ignoreBackdropClicks'];
|
|
451
|
+
/** */
|
|
452
|
+
"ignoreBackdropClicks"?: ModalMain['ignoreBackdropClicks'];
|
|
453
|
+
/** */
|
|
454
|
+
"dialogEl"?: ModalMain['dialogEl'];
|
|
455
|
+
/** */
|
|
456
|
+
"dialogInnerEl"?: ModalMain['dialogInnerEl'];
|
|
457
|
+
/** */
|
|
458
|
+
"contentEl"?: ModalMain['contentEl'];
|
|
459
|
+
|
|
460
|
+
/** */
|
|
461
|
+
"onshown"?: (e: CustomEvent<CustomEvent>) => void;
|
|
462
|
+
/** */
|
|
463
|
+
"onhidden"?: (e: CustomEvent<CustomEvent>) => void;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
export type WarpToastContainerProps = {
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export type CustomElements = {
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
477
|
+
*
|
|
478
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
479
|
+
*
|
|
480
|
+
* ## Attributes & Properties
|
|
481
|
+
*
|
|
482
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
483
|
+
*
|
|
484
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
485
|
+
* - `clear`: Add this property to render a clickable Warp close icon.
|
|
486
|
+
*
|
|
487
|
+
* Set an `aria-label` that explains the action when using this.
|
|
488
|
+
* - `search`: Add this property to render a clickable Warp search icon.
|
|
489
|
+
*
|
|
490
|
+
* Set an `aria-label` that explains the action when using this.
|
|
491
|
+
* - `label`: undefined
|
|
492
|
+
*/
|
|
493
|
+
"w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Alert is an inline component used for displaying different types of messages.
|
|
498
|
+
*
|
|
499
|
+
* For accessibility reasons, alert should appear close to the element that triggered it.
|
|
500
|
+
*
|
|
501
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
|
|
502
|
+
*
|
|
503
|
+
* ## Attributes & Properties
|
|
504
|
+
*
|
|
505
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
506
|
+
*
|
|
507
|
+
* - `variant`: undefined
|
|
508
|
+
* - `show`: undefined
|
|
509
|
+
* - `role`: undefined
|
|
510
|
+
*/
|
|
511
|
+
"w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
516
|
+
*
|
|
517
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
518
|
+
*
|
|
519
|
+
* ## Attributes & Properties
|
|
520
|
+
*
|
|
521
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
522
|
+
*
|
|
523
|
+
* - `type`: undefined
|
|
524
|
+
* - `autofocus`: undefined
|
|
525
|
+
* - `variant`: undefined
|
|
526
|
+
* - `quiet`: undefined
|
|
527
|
+
* - `small`: undefined
|
|
528
|
+
* - `loading`: undefined
|
|
529
|
+
* - `href`: undefined
|
|
530
|
+
* - `target`: undefined
|
|
531
|
+
* - `rel`: undefined
|
|
532
|
+
* - `full-width`/`fullWidth`: undefined
|
|
533
|
+
* - `button-class`/`buttonClass`: undefined
|
|
534
|
+
* - `name`: undefined
|
|
535
|
+
* - `value`: undefined
|
|
536
|
+
* - `ariaValueTextLoading`: undefined (property only)
|
|
537
|
+
*/
|
|
538
|
+
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
*
|
|
543
|
+
*
|
|
544
|
+
* ## Attributes & Properties
|
|
545
|
+
*
|
|
546
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
547
|
+
*
|
|
548
|
+
* - `show`: undefined
|
|
549
|
+
* - `placement`: undefined
|
|
550
|
+
* - `tooltip`: undefined
|
|
551
|
+
* - `callout`: undefined
|
|
552
|
+
* - `popover`: undefined
|
|
553
|
+
* - `highlight`: undefined
|
|
554
|
+
* - `can-close`/`canClose`: undefined
|
|
555
|
+
* - `no-arrow`/`noArrow`: undefined
|
|
556
|
+
* - `distance`: undefined
|
|
557
|
+
* - `skidding`: undefined
|
|
558
|
+
* - `flip`: undefined
|
|
559
|
+
* - `cross-axis`/`crossAxis`: undefined
|
|
560
|
+
* - `fallback-placements`/`fallbackPlacements`: undefined
|
|
561
|
+
* - `_initialPlacement`: undefined (property only)
|
|
562
|
+
* - `_actualDirection`: undefined (property only)
|
|
563
|
+
*
|
|
564
|
+
* ## Methods
|
|
565
|
+
*
|
|
566
|
+
* Methods that can be called to access component functionality.
|
|
567
|
+
*
|
|
568
|
+
* - `handleDone() => void`: undefined
|
|
569
|
+
* - `pointingAtDirection() => void`: undefined
|
|
570
|
+
* - `activeAttentionType() => void`: undefined
|
|
571
|
+
* - `defaultAriaLabel() => void`: undefined
|
|
572
|
+
* - `setAriaLabels() => void`: undefined
|
|
573
|
+
* - `close() => void`: undefined
|
|
574
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
575
|
+
*/
|
|
576
|
+
"w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
|
|
581
|
+
*
|
|
582
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
|
|
583
|
+
*
|
|
584
|
+
* ## Attributes & Properties
|
|
585
|
+
*
|
|
586
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
587
|
+
*
|
|
588
|
+
* - `variant`: undefined
|
|
589
|
+
* - `position`: undefined
|
|
590
|
+
*/
|
|
591
|
+
"w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Box is a layout component used for separating content areas on a page.
|
|
596
|
+
*
|
|
597
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
|
|
598
|
+
*
|
|
599
|
+
* ## Attributes & Properties
|
|
600
|
+
*
|
|
601
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
602
|
+
*
|
|
603
|
+
* - `bleed`: undefined
|
|
604
|
+
* - `bordered`: undefined
|
|
605
|
+
* - `info`: undefined
|
|
606
|
+
* - `neutral`: undefined
|
|
607
|
+
* - `role`: undefined
|
|
608
|
+
*/
|
|
609
|
+
"w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Breadcrumbs show the navigation structure for the current location.
|
|
614
|
+
*
|
|
615
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
|
|
616
|
+
*
|
|
617
|
+
* ## Attributes & Properties
|
|
618
|
+
*
|
|
619
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
620
|
+
*
|
|
621
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
622
|
+
*/
|
|
623
|
+
"w-breadcrumbs": Partial<WarpBreadcrumbsProps & BaseProps<WarpBreadcrumbs> & BaseEvents>;
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Card is a layout component used for separating content areas on a page.
|
|
628
|
+
*
|
|
629
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
|
|
630
|
+
*
|
|
631
|
+
* ## Attributes & Properties
|
|
632
|
+
*
|
|
633
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
634
|
+
*
|
|
635
|
+
* - `selected`: undefined
|
|
636
|
+
* - `flat`: undefined
|
|
637
|
+
* - `clickable`: undefined
|
|
638
|
+
* - `buttonText`: undefined (property only)
|
|
639
|
+
*
|
|
640
|
+
* ## Methods
|
|
641
|
+
*
|
|
642
|
+
* Methods that can be called to access component functionality.
|
|
643
|
+
*
|
|
644
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
645
|
+
*/
|
|
646
|
+
"w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Expandable is a layout component used for creating expandable content areas on a page.
|
|
651
|
+
*
|
|
652
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
|
|
653
|
+
*
|
|
654
|
+
* ## Attributes & Properties
|
|
655
|
+
*
|
|
656
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
657
|
+
*
|
|
658
|
+
* - `expanded`: undefined
|
|
659
|
+
* - `title`: undefined
|
|
660
|
+
* - `box`: undefined
|
|
661
|
+
* - `bleed`: undefined
|
|
662
|
+
* - `button-class`/`buttonClass`: undefined
|
|
663
|
+
* - `content-class`/`contentClass`: undefined
|
|
664
|
+
* - `no-chevron`/`noChevron`: undefined
|
|
665
|
+
* - `animated`: undefined
|
|
666
|
+
* - `heading-level`/`headingLevel`: undefined
|
|
667
|
+
* - `_hasTitle`: undefined
|
|
668
|
+
* - `_showChevronUp`: undefined
|
|
669
|
+
*
|
|
670
|
+
* ## Slots
|
|
671
|
+
*
|
|
672
|
+
* Areas where markup can be added to the component.
|
|
673
|
+
*
|
|
674
|
+
* - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
|
|
675
|
+
*/
|
|
676
|
+
"w-expandable": Partial<WarpExpandableProps & BaseProps<WarpExpandable> & BaseEvents>;
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.
|
|
681
|
+
*
|
|
682
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
683
|
+
*
|
|
684
|
+
* ## Attributes & Properties
|
|
685
|
+
*
|
|
686
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
687
|
+
*
|
|
688
|
+
* - `can-close`/`canClose`: undefined
|
|
689
|
+
* - `suggestion`: undefined
|
|
690
|
+
* - `open-sr-label`/`openSrLabel`: undefined
|
|
691
|
+
* - `open-aria-label`/`openAriaLabel`: undefined
|
|
692
|
+
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
693
|
+
* - `close-aria-label`/`closeAriaLabel`: undefined
|
|
694
|
+
* - `openFilterSrText`: undefined (property only)
|
|
695
|
+
* - `removeFilterSrText`: undefined (property only)
|
|
696
|
+
*
|
|
697
|
+
* ## Events
|
|
698
|
+
*
|
|
699
|
+
* Events that will be emitted by the component.
|
|
700
|
+
*
|
|
701
|
+
* - `w-pill-click`: undefined
|
|
702
|
+
* - `w-pill-close`: undefined
|
|
703
|
+
*/
|
|
704
|
+
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* A dropdown component for selecting a single value.
|
|
709
|
+
*
|
|
710
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
|
|
711
|
+
*
|
|
712
|
+
* ## Attributes & Properties
|
|
713
|
+
*
|
|
714
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
715
|
+
*
|
|
716
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
717
|
+
* - `invalid`: Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
718
|
+
* - `always`: Whether to always show a hint
|
|
719
|
+
* - `hint`: The content displayed as the help text
|
|
720
|
+
* - `label`: The content to disply as the label
|
|
721
|
+
* - `optional`: Whether to show optional text
|
|
722
|
+
* - `disabled`: Renders the field in a disabled state.
|
|
723
|
+
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
724
|
+
* - `name`: undefined
|
|
725
|
+
* - `value`: undefined
|
|
726
|
+
*
|
|
727
|
+
* ## Methods
|
|
728
|
+
*
|
|
729
|
+
* Methods that can be called to access component functionality.
|
|
730
|
+
*
|
|
731
|
+
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
732
|
+
* - `onChange({ target }) => void`: undefined
|
|
733
|
+
*/
|
|
734
|
+
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* A single line text input element.
|
|
739
|
+
*
|
|
740
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
741
|
+
*
|
|
742
|
+
* ## Attributes & Properties
|
|
743
|
+
*
|
|
744
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
745
|
+
*
|
|
746
|
+
* - `disabled`: undefined
|
|
747
|
+
* - `invalid`: undefined
|
|
748
|
+
* - `id`: undefined
|
|
749
|
+
* - `label`: undefined
|
|
750
|
+
* - `help-text`/`helpText`: undefined
|
|
751
|
+
* - `size`: undefined
|
|
752
|
+
* - `max`: undefined
|
|
753
|
+
* - `min`: undefined
|
|
754
|
+
* - `min-length`/`minLength`: undefined
|
|
755
|
+
* - `max-length`/`maxLength`: undefined
|
|
756
|
+
* - `pattern`: undefined
|
|
757
|
+
* - `placeholder`: undefined
|
|
758
|
+
* - `read-only`/`readOnly`: undefined
|
|
759
|
+
* - `required`: undefined
|
|
760
|
+
* - `type`: undefined
|
|
761
|
+
* - `value`: undefined
|
|
762
|
+
* - `name`: undefined
|
|
763
|
+
* - `formatter`: Function to format value when the input field.
|
|
764
|
+
*
|
|
765
|
+
* Only active when the input field does not have focus,
|
|
766
|
+
* similar to the accessible input masking example from Filament Group
|
|
767
|
+
*
|
|
768
|
+
* https://css-tricks.com/input-masking/
|
|
769
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
770
|
+
*
|
|
771
|
+
* ## Methods
|
|
772
|
+
*
|
|
773
|
+
* Methods that can be called to access component functionality.
|
|
774
|
+
*
|
|
775
|
+
* - `handler(e: Event) => void`: undefined
|
|
776
|
+
* - `prefixSlotChange() => void`: undefined
|
|
777
|
+
* - `suffixSlotChange() => void`: undefined
|
|
778
|
+
*/
|
|
779
|
+
"w-textfield": Partial<WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents>;
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* The footer section of a modal, typically where you place actions.
|
|
784
|
+
*
|
|
785
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
786
|
+
*/
|
|
787
|
+
"w-modal-footer": Partial<ModalFooterProps & BaseProps<ModalFooter> & BaseEvents>;
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* The header section of a modal, typically where you place the title and a close button.
|
|
792
|
+
*
|
|
793
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
794
|
+
*
|
|
795
|
+
* ## Attributes & Properties
|
|
796
|
+
*
|
|
797
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
798
|
+
*
|
|
799
|
+
* - `title`: undefined
|
|
800
|
+
* - `back`: undefined
|
|
801
|
+
* - `no-close`/`noClose`: undefined
|
|
802
|
+
* - `titleEl`: undefined (property only)
|
|
803
|
+
* - `titleClasses`: undefined (property only) (readonly)
|
|
804
|
+
* - `backButton`: undefined (property only) (readonly)
|
|
805
|
+
* - `closeButton`: undefined (property only) (readonly)
|
|
806
|
+
*
|
|
807
|
+
* ## Events
|
|
808
|
+
*
|
|
809
|
+
* Events that will be emitted by the component.
|
|
810
|
+
*
|
|
811
|
+
* - `backClicked`: undefined
|
|
812
|
+
*
|
|
813
|
+
* ## Slots
|
|
814
|
+
*
|
|
815
|
+
* Areas where markup can be added to the component.
|
|
816
|
+
*
|
|
817
|
+
* - `top`: Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.
|
|
818
|
+
*
|
|
819
|
+
* ## Methods
|
|
820
|
+
*
|
|
821
|
+
* Methods that can be called to access component functionality.
|
|
822
|
+
*
|
|
823
|
+
* - `emitBack() => void`: undefined
|
|
824
|
+
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
825
|
+
*/
|
|
826
|
+
"w-modal-header": Partial<ModalHeaderProps & BaseProps<ModalHeader> & BaseEvents>;
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
831
|
+
*
|
|
832
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
833
|
+
*
|
|
834
|
+
* ## Attributes & Properties
|
|
835
|
+
*
|
|
836
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
837
|
+
*
|
|
838
|
+
* - `show`: undefined
|
|
839
|
+
* - `content-id`/`contentId`: undefined
|
|
840
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
|
|
841
|
+
* - `dialogEl`: undefined (property only)
|
|
842
|
+
* - `dialogInnerEl`: undefined (property only)
|
|
843
|
+
* - `contentEl`: undefined (property only)
|
|
844
|
+
*
|
|
845
|
+
* ## Events
|
|
846
|
+
*
|
|
847
|
+
* Events that will be emitted by the component.
|
|
848
|
+
*
|
|
849
|
+
* - `shown`: undefined
|
|
850
|
+
* - `hidden`: undefined
|
|
851
|
+
*
|
|
852
|
+
* ## Slots
|
|
853
|
+
*
|
|
854
|
+
* Areas where markup can be added to the component.
|
|
855
|
+
*
|
|
856
|
+
* - `header`: Typically where you would use the `w-modal-header` component.
|
|
857
|
+
* - `content`: The main content of the modal.
|
|
858
|
+
* - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
859
|
+
*
|
|
860
|
+
* ## Methods
|
|
861
|
+
*
|
|
862
|
+
* Methods that can be called to access component functionality.
|
|
863
|
+
*
|
|
864
|
+
* - `open() => void`: undefined
|
|
865
|
+
* - `close() => void`: undefined
|
|
866
|
+
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
867
|
+
* - `eventPreventer(evt: Event) => void`: undefined
|
|
868
|
+
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
869
|
+
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
870
|
+
* - `modifyBorderRadius() => void`: undefined
|
|
871
|
+
*/
|
|
872
|
+
"w-modal": Partial<ModalMainProps & BaseProps<ModalMain> & BaseEvents>;
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
*
|
|
878
|
+
* ## Methods
|
|
879
|
+
*
|
|
880
|
+
* Methods that can be called to access component functionality.
|
|
881
|
+
*
|
|
882
|
+
* - `init() => void`: undefined
|
|
883
|
+
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
884
|
+
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
885
|
+
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
886
|
+
*/
|
|
887
|
+
"w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export type CustomCssProperties = {
|
|
891
|
+
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
declare module 'react' {
|
|
896
|
+
namespace JSX {
|
|
897
|
+
interface IntrinsicElements extends CustomElements {}
|
|
898
|
+
}
|
|
899
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
declare module 'preact' {
|
|
903
|
+
namespace JSX {
|
|
904
|
+
interface IntrinsicElements extends CustomElements {}
|
|
905
|
+
}
|
|
906
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
declare module '@builder.io/qwik' {
|
|
910
|
+
namespace JSX {
|
|
911
|
+
interface IntrinsicElements extends CustomElements {}
|
|
912
|
+
}
|
|
913
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
declare module '@stencil/core' {
|
|
917
|
+
namespace JSX {
|
|
918
|
+
interface IntrinsicElements extends CustomElements {}
|
|
919
|
+
}
|
|
920
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
declare module 'hono' {
|
|
924
|
+
namespace JSX {
|
|
925
|
+
interface IntrinsicElements extends CustomElements {}
|
|
926
|
+
}
|
|
927
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
declare module 'react-native' {
|
|
931
|
+
namespace JSX {
|
|
932
|
+
interface IntrinsicElements extends CustomElements {}
|
|
933
|
+
}
|
|
934
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
declare global {
|
|
938
|
+
namespace JSX {
|
|
939
|
+
interface IntrinsicElements extends CustomElements {}
|
|
940
|
+
}
|
|
941
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
942
|
+
}
|