@warp-ds/elements 2.2.0-next.3 → 2.2.0-next.30
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 +217 -28
- package/dist/.storybook/utilities.d.ts +28 -0
- package/dist/.storybook/utilities.js +52 -0
- package/dist/api.js +1 -49
- package/dist/api.js.map +4 -4
- package/dist/custom-elements.json +3059 -0
- package/dist/index.d.ts +942 -18
- 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.d.ts +10 -0
- package/dist/packages/affix/affix.stories.js +25 -0
- package/dist/packages/affix/affix.test.d.ts +1 -0
- package/dist/packages/affix/affix.test.js +9 -0
- package/dist/packages/affix/index.d.ts +47 -24
- package/dist/packages/affix/index.js +2448 -2240
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +2 -0
- package/dist/packages/affix/react.js +15 -0
- package/dist/packages/affix/styles.d.ts +1 -0
- 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.d.ts +15 -0
- package/dist/packages/alert/alert.stories.js +68 -0
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/alert.test.js +18 -0
- package/dist/packages/alert/index.d.ts +23 -17
- package/dist/packages/alert/index.js +2452 -2446
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +2 -0
- package/dist/packages/alert/react.js +11 -0
- package/dist/packages/alert/styles.d.ts +1 -0
- 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 +16 -0
- package/dist/packages/attention/attention.stories.js +180 -0
- package/dist/packages/attention/attention.test.d.ts +1 -0
- package/dist/packages/attention/attention.test.js +11 -0
- package/dist/packages/attention/index.d.ts +61 -89
- package/dist/packages/attention/index.js +3530 -3924
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.d.ts +1 -0
- 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 -0
- package/dist/packages/attention/react.js +17 -0
- package/dist/packages/attention/styles.d.ts +1 -0
- 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.d.ts +17 -0
- package/dist/packages/badge/badge.stories.js +68 -0
- package/dist/packages/badge/badge.test.d.ts +1 -0
- package/dist/packages/badge/badge.test.js +9 -0
- package/dist/packages/badge/index.d.ts +12 -12
- package/dist/packages/badge/index.js +2441 -300
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +2 -0
- package/dist/packages/badge/react.js +11 -0
- package/dist/packages/badge/styles.d.ts +1 -0
- 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.d.ts +14 -0
- package/dist/packages/box/box.stories.js +59 -0
- package/dist/packages/box/box.test.d.ts +1 -0
- package/dist/packages/box/box.test.js +9 -0
- package/dist/packages/box/index.d.ts +16 -21
- package/dist/packages/box/index.js +2443 -299
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +2 -0
- package/dist/packages/box/react.js +11 -0
- package/dist/packages/box/slot.test.d.ts +1 -0
- package/dist/packages/box/slot.test.js +9 -0
- package/dist/packages/box/styles.d.ts +1 -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.d.ts +12 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
- package/dist/packages/breadcrumbs/index.d.ts +19 -16
- package/dist/packages/breadcrumbs/index.js +2402 -2051
- 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 +2 -0
- package/dist/packages/breadcrumbs/react.js +11 -0
- package/dist/packages/breadcrumbs/styles.d.ts +1 -0
- 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 +25 -0
- package/dist/packages/button/button.stories.js +151 -0
- package/dist/packages/button/button.test.d.ts +1 -1
- package/dist/packages/button/button.test.js +25 -0
- package/dist/packages/button/index.d.ts +83 -9
- package/dist/packages/button/index.js +2614 -2422
- 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 +2 -0
- package/dist/packages/button/react.js +11 -0
- package/dist/packages/button/styles.d.ts +1 -0
- 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.d.ts +15 -0
- package/dist/packages/card/card.stories.js +82 -0
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/card.test.js +9 -0
- package/dist/packages/card/index.d.ts +27 -16
- package/dist/packages/card/index.js +2403 -2067
- 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 +2 -0
- package/dist/packages/card/react.js +11 -0
- package/dist/packages/card/styles.d.ts +1 -0
- 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.d.ts +19 -0
- package/dist/packages/expandable/expandable.stories.js +132 -0
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/expandable.test.js +24 -0
- package/dist/packages/expandable/index.d.ts +52 -50
- package/dist/packages/expandable/index.js +2424 -2286
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +2 -0
- package/dist/packages/expandable/react.js +11 -0
- package/dist/packages/expandable/styles.d.ts +1 -0
- package/dist/packages/expandable/styles.js +2 -0
- package/dist/packages/i18n.js +45 -0
- package/dist/packages/link/index.d.ts +34 -0
- package/dist/packages/link/index.js +99 -0
- package/dist/packages/link/styles.d.ts +1 -0
- package/dist/packages/link/styles.js +200 -0
- package/dist/packages/modal/index.d.ts +5 -6
- package/dist/packages/modal/index.js +5 -2611
- 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 +12 -10
- package/dist/packages/modal/modal-footer.js +2460 -0
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +15 -13
- package/dist/packages/modal/modal-header.js +2567 -0
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +14 -8
- package/dist/packages/modal/modal-main.js +2572 -0
- package/dist/packages/modal/modal-main.js.map +7 -0
- 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 +19 -0
- package/dist/packages/modal/modal.stories.js +254 -0
- package/dist/packages/modal/react.d.ts +12 -0
- package/dist/packages/modal/react.js +31 -0
- package/dist/packages/modal/util.d.ts +7 -17
- package/dist/packages/modal/util.js +21 -0
- package/dist/packages/pill/index.d.ts +39 -23
- package/dist/packages/pill/index.js +2408 -2175
- package/dist/packages/pill/index.js.map +4 -4
- 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.d.ts +12 -0
- package/dist/packages/pill/pill.stories.js +33 -0
- package/dist/packages/pill/pill.test.d.ts +1 -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.d.ts +1 -0
- package/dist/packages/pill/styles.js +2 -0
- package/dist/packages/select/index.d.ts +56 -60
- package/dist/packages/select/index.js +2428 -2533
- package/dist/packages/select/index.js.map +4 -4
- 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 -0
- package/dist/packages/select/react.js +20 -0
- 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 +17 -0
- package/dist/packages/select/select.stories.js +100 -0
- package/dist/packages/select/select.test.d.ts +1 -0
- package/dist/packages/select/select.test.js +31 -0
- package/dist/packages/select/styles.d.ts +1 -0
- package/dist/packages/select/styles.js +2 -0
- package/dist/packages/styles.js +2442 -0
- package/dist/packages/textfield/index.d.ts +78 -74
- package/dist/packages/textfield/index.js +2522 -707
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +11 -0
- package/dist/packages/textfield/react.js +21 -0
- 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.d.ts +1 -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 +18 -0
- package/dist/packages/textfield/textfield.stories.js +105 -0
- package/dist/packages/textfield/textfield.test.d.ts +2 -0
- package/dist/packages/textfield/textfield.test.js +68 -0
- package/dist/packages/toast/api.d.ts +4 -45
- package/dist/packages/toast/api.js +41 -0
- package/dist/packages/toast/index.d.ts +3 -3
- package/dist/packages/toast/index.js +3 -2804
- 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.d.ts +1 -0
- package/dist/packages/toast/styles.js +2 -0
- package/dist/packages/toast/toast-container.d.ts +13 -63
- package/dist/packages/toast/toast-container.js +2458 -0
- package/dist/packages/toast/toast-container.js.map +7 -0
- package/dist/packages/toast/toast.d.ts +36 -29
- package/dist/packages/toast/toast.js +2466 -0
- package/dist/packages/toast/toast.js.map +7 -0
- package/dist/packages/toast/toast.stories.d.ts +12 -0
- package/dist/packages/toast/toast.stories.js +50 -0
- package/dist/packages/toast/types.d.ts +15 -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.d.ts +1 -1
- package/dist/packages/utils/index.js +37 -0
- package/dist/packages/utils/unstyled-heading.d.ts +3 -4
- package/dist/packages/utils/unstyled-heading.js +22 -0
- package/dist/packages/utils/window-exists.js +1 -0
- package/dist/setup-tests.d.ts +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +296 -0
- package/dist/web-types.json +661 -0
- package/package.json +89 -36
- package/dist/index.js +0 -9820
- package/dist/index.js.map +0 -7
- package/dist/packages/modal/index.js.map +0 -7
- package/dist/packages/toast/index.js.map +0 -7
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
|
+
"name": "@warp-ds/elements",
|
|
4
|
+
"version": "2.2.0-next.29",
|
|
5
|
+
"description-markup": "markdown",
|
|
6
|
+
"contributions": {
|
|
7
|
+
"html": {
|
|
8
|
+
"elements": [
|
|
9
|
+
{
|
|
10
|
+
"name": "w-affix",
|
|
11
|
+
"description": "This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n---\n",
|
|
12
|
+
"doc-url": "",
|
|
13
|
+
"attributes": [
|
|
14
|
+
{ "name": "aria-label", "value": { "type": "string" } },
|
|
15
|
+
{
|
|
16
|
+
"name": "clear",
|
|
17
|
+
"description": "Add this property to render a clickable Warp close icon.\n\nSet an `aria-label` that explains the action when using this.",
|
|
18
|
+
"value": { "type": "boolean", "default": "false" }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "search",
|
|
22
|
+
"description": "Add this property to render a clickable Warp search icon.\n\nSet an `aria-label` that explains the action when using this.",
|
|
23
|
+
"value": { "type": "boolean", "default": "false" }
|
|
24
|
+
},
|
|
25
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
26
|
+
],
|
|
27
|
+
"events": [],
|
|
28
|
+
"js": {
|
|
29
|
+
"properties": [
|
|
30
|
+
{ "name": "ariaLabel", "type": "string" },
|
|
31
|
+
{
|
|
32
|
+
"name": "clear",
|
|
33
|
+
"description": "Add this property to render a clickable Warp close icon.\n\nSet an `aria-label` that explains the action when using this.",
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "search",
|
|
38
|
+
"description": "Add this property to render a clickable Warp search icon.\n\nSet an `aria-label` that explains the action when using this.",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
{ "name": "label", "type": "string" }
|
|
42
|
+
],
|
|
43
|
+
"events": []
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "w-alert",
|
|
48
|
+
"description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n---\n",
|
|
49
|
+
"doc-url": "",
|
|
50
|
+
"attributes": [
|
|
51
|
+
{
|
|
52
|
+
"name": "variant",
|
|
53
|
+
"value": {
|
|
54
|
+
"type": "'negative' | 'positive' | 'warning' | 'info'",
|
|
55
|
+
"default": "'info'"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "show",
|
|
60
|
+
"value": { "type": "boolean", "default": "false" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "role",
|
|
64
|
+
"value": { "type": "string", "default": "'alert'" }
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"events": [],
|
|
68
|
+
"js": {
|
|
69
|
+
"properties": [
|
|
70
|
+
{
|
|
71
|
+
"name": "variant",
|
|
72
|
+
"type": "'negative' | 'positive' | 'warning' | 'info'"
|
|
73
|
+
},
|
|
74
|
+
{ "name": "show", "type": "boolean" },
|
|
75
|
+
{ "name": "role", "type": "string" }
|
|
76
|
+
],
|
|
77
|
+
"events": []
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "w-button",
|
|
82
|
+
"description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n---\n",
|
|
83
|
+
"doc-url": "",
|
|
84
|
+
"attributes": [
|
|
85
|
+
{
|
|
86
|
+
"name": "type",
|
|
87
|
+
"value": {
|
|
88
|
+
"type": "'button' | 'submit' | 'reset'",
|
|
89
|
+
"default": "'button'"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{ "name": "autofocus", "value": { "type": "boolean" } },
|
|
93
|
+
{
|
|
94
|
+
"name": "variant",
|
|
95
|
+
"value": {
|
|
96
|
+
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'",
|
|
97
|
+
"default": "'secondary'"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{ "name": "quiet", "value": { "type": "boolean" } },
|
|
101
|
+
{ "name": "small", "value": { "type": "boolean" } },
|
|
102
|
+
{ "name": "loading", "value": { "type": "boolean" } },
|
|
103
|
+
{ "name": "href", "value": { "type": "string" } },
|
|
104
|
+
{ "name": "target", "value": { "type": "string" } },
|
|
105
|
+
{ "name": "rel", "value": { "type": "string" } },
|
|
106
|
+
{ "name": "full-width", "value": { "type": "boolean" } },
|
|
107
|
+
{ "name": "button-class", "value": { "type": "string" } },
|
|
108
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
109
|
+
{ "name": "value", "value": { "type": "string" } }
|
|
110
|
+
],
|
|
111
|
+
"events": [],
|
|
112
|
+
"js": {
|
|
113
|
+
"properties": [
|
|
114
|
+
{ "name": "type", "type": "'button' | 'submit' | 'reset'" },
|
|
115
|
+
{ "name": "autofocus", "type": "boolean" },
|
|
116
|
+
{
|
|
117
|
+
"name": "variant",
|
|
118
|
+
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
|
|
119
|
+
},
|
|
120
|
+
{ "name": "quiet", "type": "boolean" },
|
|
121
|
+
{ "name": "small", "type": "boolean" },
|
|
122
|
+
{ "name": "loading", "type": "boolean" },
|
|
123
|
+
{ "name": "href", "type": "string" },
|
|
124
|
+
{ "name": "target", "type": "string" },
|
|
125
|
+
{ "name": "rel", "type": "string" },
|
|
126
|
+
{ "name": "fullWidth", "type": "boolean" },
|
|
127
|
+
{ "name": "buttonClass", "type": "string" },
|
|
128
|
+
{ "name": "name", "type": "string" },
|
|
129
|
+
{ "name": "value", "type": "string" },
|
|
130
|
+
{ "name": "ariaValueTextLoading" }
|
|
131
|
+
],
|
|
132
|
+
"events": []
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "w-attention",
|
|
137
|
+
"description": "\n---\n",
|
|
138
|
+
"doc-url": "",
|
|
139
|
+
"attributes": [
|
|
140
|
+
{
|
|
141
|
+
"name": "show",
|
|
142
|
+
"value": { "type": "boolean", "default": "false" }
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "placement",
|
|
146
|
+
"value": { "type": "Directions", "default": "'bottom'" }
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "tooltip",
|
|
150
|
+
"value": { "type": "boolean", "default": "false" }
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "callout",
|
|
154
|
+
"value": { "type": "boolean", "default": "false" }
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "popover",
|
|
158
|
+
"value": { "type": "boolean", "default": "false" }
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "highlight",
|
|
162
|
+
"value": { "type": "boolean", "default": "false" }
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "can-close",
|
|
166
|
+
"value": { "type": "boolean", "default": "false" }
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "no-arrow",
|
|
170
|
+
"value": { "type": "boolean", "default": "false" }
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "distance",
|
|
174
|
+
"value": { "type": "number", "default": "8" }
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "skidding",
|
|
178
|
+
"value": { "type": "number", "default": "0" }
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "flip",
|
|
182
|
+
"value": { "type": "boolean", "default": "false" }
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "cross-axis",
|
|
186
|
+
"value": { "type": "boolean", "default": "false" }
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "fallback-placements",
|
|
190
|
+
"value": { "type": "Directions[]" }
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"events": [],
|
|
194
|
+
"js": {
|
|
195
|
+
"properties": [
|
|
196
|
+
{ "name": "show", "type": "boolean" },
|
|
197
|
+
{ "name": "placement", "type": "Directions" },
|
|
198
|
+
{ "name": "tooltip", "type": "boolean" },
|
|
199
|
+
{ "name": "callout", "type": "boolean" },
|
|
200
|
+
{ "name": "popover", "type": "boolean" },
|
|
201
|
+
{ "name": "highlight", "type": "boolean" },
|
|
202
|
+
{ "name": "canClose", "type": "boolean" },
|
|
203
|
+
{ "name": "noArrow", "type": "boolean" },
|
|
204
|
+
{ "name": "distance", "type": "number" },
|
|
205
|
+
{ "name": "skidding", "type": "number" },
|
|
206
|
+
{ "name": "flip", "type": "boolean" },
|
|
207
|
+
{ "name": "crossAxis", "type": "boolean" },
|
|
208
|
+
{ "name": "fallbackPlacements", "type": "Directions[]" },
|
|
209
|
+
{ "name": "_initialPlacement" },
|
|
210
|
+
{ "name": "_actualDirection" }
|
|
211
|
+
],
|
|
212
|
+
"events": []
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "w-badge",
|
|
217
|
+
"description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)\n---\n",
|
|
218
|
+
"doc-url": "",
|
|
219
|
+
"attributes": [
|
|
220
|
+
{
|
|
221
|
+
"name": "variant",
|
|
222
|
+
"value": {
|
|
223
|
+
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'",
|
|
224
|
+
"default": "'neutral'"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "position",
|
|
229
|
+
"value": {
|
|
230
|
+
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"events": [],
|
|
235
|
+
"js": {
|
|
236
|
+
"properties": [
|
|
237
|
+
{
|
|
238
|
+
"name": "variant",
|
|
239
|
+
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "position",
|
|
243
|
+
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"events": []
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "w-box",
|
|
251
|
+
"description": "Box is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)\n---\n",
|
|
252
|
+
"doc-url": "",
|
|
253
|
+
"attributes": [
|
|
254
|
+
{ "name": "bleed", "value": { "type": "boolean" } },
|
|
255
|
+
{ "name": "bordered", "value": { "type": "boolean" } },
|
|
256
|
+
{ "name": "info", "value": { "type": "boolean" } },
|
|
257
|
+
{ "name": "neutral", "value": { "type": "boolean" } },
|
|
258
|
+
{ "name": "role", "value": { "type": "string" } }
|
|
259
|
+
],
|
|
260
|
+
"events": [],
|
|
261
|
+
"js": {
|
|
262
|
+
"properties": [
|
|
263
|
+
{ "name": "bleed", "type": "boolean" },
|
|
264
|
+
{ "name": "bordered", "type": "boolean" },
|
|
265
|
+
{ "name": "info", "type": "boolean" },
|
|
266
|
+
{ "name": "neutral", "type": "boolean" },
|
|
267
|
+
{ "name": "role", "type": "string" }
|
|
268
|
+
],
|
|
269
|
+
"events": []
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "w-breadcrumbs",
|
|
274
|
+
"description": "Breadcrumbs show the navigation structure for the current location.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)\n---\n",
|
|
275
|
+
"doc-url": "",
|
|
276
|
+
"attributes": [
|
|
277
|
+
{ "name": "aria-label", "value": { "type": "string" } }
|
|
278
|
+
],
|
|
279
|
+
"events": [],
|
|
280
|
+
"js": {
|
|
281
|
+
"properties": [{ "name": "ariaLabel", "type": "string" }],
|
|
282
|
+
"events": []
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "w-card",
|
|
287
|
+
"description": "Card is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n---\n",
|
|
288
|
+
"doc-url": "",
|
|
289
|
+
"attributes": [
|
|
290
|
+
{
|
|
291
|
+
"name": "selected",
|
|
292
|
+
"value": { "type": "boolean", "default": "false" }
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "flat",
|
|
296
|
+
"value": { "type": "boolean", "default": "false" }
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "clickable",
|
|
300
|
+
"value": { "type": "boolean", "default": "false" }
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"events": [],
|
|
304
|
+
"js": {
|
|
305
|
+
"properties": [
|
|
306
|
+
{ "name": "selected", "type": "boolean" },
|
|
307
|
+
{ "name": "flat", "type": "boolean" },
|
|
308
|
+
{ "name": "clickable", "type": "boolean" },
|
|
309
|
+
{ "name": "buttonText" }
|
|
310
|
+
],
|
|
311
|
+
"events": []
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "w-expandable",
|
|
316
|
+
"description": "Expandable is a layout component used for creating expandable content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
|
|
317
|
+
"doc-url": "",
|
|
318
|
+
"attributes": [
|
|
319
|
+
{
|
|
320
|
+
"name": "expanded",
|
|
321
|
+
"value": { "type": "boolean", "default": "false" }
|
|
322
|
+
},
|
|
323
|
+
{ "name": "title", "value": { "type": "string" } },
|
|
324
|
+
{
|
|
325
|
+
"name": "box",
|
|
326
|
+
"value": { "type": "boolean", "default": "false" }
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "bleed",
|
|
330
|
+
"value": { "type": "boolean", "default": "false" }
|
|
331
|
+
},
|
|
332
|
+
{ "name": "button-class", "value": { "type": "string" } },
|
|
333
|
+
{ "name": "content-class", "value": { "type": "string" } },
|
|
334
|
+
{
|
|
335
|
+
"name": "no-chevron",
|
|
336
|
+
"value": { "type": "boolean", "default": "false" }
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "animated",
|
|
340
|
+
"value": { "type": "boolean", "default": "false" }
|
|
341
|
+
},
|
|
342
|
+
{ "name": "heading-level", "value": { "type": "number" } },
|
|
343
|
+
{
|
|
344
|
+
"name": "_hasTitle",
|
|
345
|
+
"value": { "type": "boolean", "default": "true" }
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "_showChevronUp",
|
|
349
|
+
"value": { "type": "boolean", "default": "false" }
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"slots": [
|
|
353
|
+
{
|
|
354
|
+
"name": "title",
|
|
355
|
+
"description": "Alternative to the `title` attribute should you need to provide some additional markup."
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"events": [],
|
|
359
|
+
"js": {
|
|
360
|
+
"properties": [
|
|
361
|
+
{ "name": "expanded", "type": "boolean" },
|
|
362
|
+
{ "name": "title", "type": "string" },
|
|
363
|
+
{ "name": "box", "type": "boolean" },
|
|
364
|
+
{ "name": "bleed", "type": "boolean" },
|
|
365
|
+
{ "name": "buttonClass", "type": "string" },
|
|
366
|
+
{ "name": "contentClass", "type": "string" },
|
|
367
|
+
{ "name": "noChevron", "type": "boolean" },
|
|
368
|
+
{ "name": "animated", "type": "boolean" },
|
|
369
|
+
{ "name": "headingLevel", "type": "number" },
|
|
370
|
+
{ "name": "_hasTitle", "type": "boolean" },
|
|
371
|
+
{ "name": "_showChevronUp", "type": "boolean" }
|
|
372
|
+
],
|
|
373
|
+
"events": []
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "w-pill",
|
|
378
|
+
"description": "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.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n---\n\n\n### **Events:**\n - **w-pill-click**\n- **w-pill-close**",
|
|
379
|
+
"doc-url": "",
|
|
380
|
+
"attributes": [
|
|
381
|
+
{
|
|
382
|
+
"name": "can-close",
|
|
383
|
+
"value": { "type": "boolean", "default": "false" }
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "suggestion",
|
|
387
|
+
"value": { "type": "boolean", "default": "false" }
|
|
388
|
+
},
|
|
389
|
+
{ "name": "open-sr-label", "value": { "type": "string" } },
|
|
390
|
+
{ "name": "open-aria-label", "value": { "type": "string" } },
|
|
391
|
+
{ "name": "close-sr-label", "value": { "type": "string" } },
|
|
392
|
+
{ "name": "close-aria-label", "value": { "type": "string" } }
|
|
393
|
+
],
|
|
394
|
+
"events": [
|
|
395
|
+
{ "name": "w-pill-click", "type": "CustomEvent" },
|
|
396
|
+
{ "name": "w-pill-close", "type": "CustomEvent" }
|
|
397
|
+
],
|
|
398
|
+
"js": {
|
|
399
|
+
"properties": [
|
|
400
|
+
{ "name": "canClose", "type": "boolean" },
|
|
401
|
+
{ "name": "suggestion", "type": "boolean" },
|
|
402
|
+
{ "name": "openSrLabel", "type": "string" },
|
|
403
|
+
{ "name": "openAriaLabel", "type": "string" },
|
|
404
|
+
{ "name": "closeSrLabel", "type": "string" },
|
|
405
|
+
{ "name": "closeAriaLabel", "type": "string" },
|
|
406
|
+
{ "name": "openFilterSrText" },
|
|
407
|
+
{ "name": "removeFilterSrText" }
|
|
408
|
+
],
|
|
409
|
+
"events": [
|
|
410
|
+
{ "name": "w-pill-click", "type": "CustomEvent" },
|
|
411
|
+
{ "name": "w-pill-close", "type": "CustomEvent" }
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "w-select",
|
|
417
|
+
"description": "A dropdown component for selecting a single value.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)\n---\n",
|
|
418
|
+
"doc-url": "",
|
|
419
|
+
"attributes": [
|
|
420
|
+
{
|
|
421
|
+
"name": "auto-focus",
|
|
422
|
+
"description": "Whether the element should receive focus on render",
|
|
423
|
+
"value": { "type": "boolean" }
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "invalid",
|
|
427
|
+
"description": "Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error",
|
|
428
|
+
"value": { "type": "boolean" }
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "always",
|
|
432
|
+
"description": "Whether to always show a hint",
|
|
433
|
+
"value": { "type": "boolean" }
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "hint",
|
|
437
|
+
"description": "The content displayed as the help text",
|
|
438
|
+
"value": { "type": "string" }
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "label",
|
|
442
|
+
"description": "The content to disply as the label",
|
|
443
|
+
"value": { "type": "string" }
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "optional",
|
|
447
|
+
"description": "Whether to show optional text",
|
|
448
|
+
"value": { "type": "boolean" }
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "disabled",
|
|
452
|
+
"description": "Renders the field in a disabled state.",
|
|
453
|
+
"value": { "type": "boolean" }
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "read-only",
|
|
457
|
+
"description": "Renders the field in a readonly state.",
|
|
458
|
+
"value": { "type": "boolean" }
|
|
459
|
+
},
|
|
460
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
461
|
+
{ "name": "value", "value": { "type": "string" } }
|
|
462
|
+
],
|
|
463
|
+
"events": [],
|
|
464
|
+
"js": {
|
|
465
|
+
"properties": [
|
|
466
|
+
{
|
|
467
|
+
"name": "autoFocus",
|
|
468
|
+
"description": "Whether the element should receive focus on render",
|
|
469
|
+
"type": "boolean"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "invalid",
|
|
473
|
+
"description": "Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error",
|
|
474
|
+
"type": "boolean"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "always",
|
|
478
|
+
"description": "Whether to always show a hint",
|
|
479
|
+
"type": "boolean"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "hint",
|
|
483
|
+
"description": "The content displayed as the help text",
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "label",
|
|
488
|
+
"description": "The content to disply as the label",
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "optional",
|
|
493
|
+
"description": "Whether to show optional text",
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "disabled",
|
|
498
|
+
"description": "Renders the field in a disabled state.",
|
|
499
|
+
"type": "boolean"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "readOnly",
|
|
503
|
+
"description": "Renders the field in a readonly state.",
|
|
504
|
+
"type": "boolean"
|
|
505
|
+
},
|
|
506
|
+
{ "name": "name", "type": "string" },
|
|
507
|
+
{ "name": "value", "type": "string" }
|
|
508
|
+
],
|
|
509
|
+
"events": []
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "w-textfield",
|
|
514
|
+
"description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n",
|
|
515
|
+
"doc-url": "",
|
|
516
|
+
"attributes": [
|
|
517
|
+
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
518
|
+
{ "name": "invalid", "value": { "type": "boolean" } },
|
|
519
|
+
{ "name": "id", "value": { "type": "string" } },
|
|
520
|
+
{ "name": "label", "value": { "type": "string" } },
|
|
521
|
+
{ "name": "help-text", "value": { "type": "string" } },
|
|
522
|
+
{ "name": "size", "value": { "type": "string" } },
|
|
523
|
+
{ "name": "max", "value": { "type": "number" } },
|
|
524
|
+
{ "name": "min", "value": { "type": "number" } },
|
|
525
|
+
{ "name": "min-length", "value": { "type": "number" } },
|
|
526
|
+
{ "name": "max-length", "value": { "type": "number" } },
|
|
527
|
+
{ "name": "pattern", "value": { "type": "string" } },
|
|
528
|
+
{ "name": "placeholder", "value": { "type": "string" } },
|
|
529
|
+
{ "name": "read-only", "value": { "type": "boolean" } },
|
|
530
|
+
{ "name": "required", "value": { "type": "boolean" } },
|
|
531
|
+
{
|
|
532
|
+
"name": "type",
|
|
533
|
+
"value": { "type": "string", "default": "'text'" }
|
|
534
|
+
},
|
|
535
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
536
|
+
{ "name": "name", "value": { "type": "string" } }
|
|
537
|
+
],
|
|
538
|
+
"events": [],
|
|
539
|
+
"js": {
|
|
540
|
+
"properties": [
|
|
541
|
+
{ "name": "disabled", "type": "boolean" },
|
|
542
|
+
{ "name": "invalid", "type": "boolean" },
|
|
543
|
+
{ "name": "id", "type": "string" },
|
|
544
|
+
{ "name": "label", "type": "string" },
|
|
545
|
+
{ "name": "helpText", "type": "string" },
|
|
546
|
+
{ "name": "size", "type": "string" },
|
|
547
|
+
{ "name": "max", "type": "number" },
|
|
548
|
+
{ "name": "min", "type": "number" },
|
|
549
|
+
{ "name": "minLength", "type": "number" },
|
|
550
|
+
{ "name": "maxLength", "type": "number" },
|
|
551
|
+
{ "name": "pattern", "type": "string" },
|
|
552
|
+
{ "name": "placeholder", "type": "string" },
|
|
553
|
+
{ "name": "readOnly", "type": "boolean" },
|
|
554
|
+
{ "name": "required", "type": "boolean" },
|
|
555
|
+
{ "name": "type", "type": "string" },
|
|
556
|
+
{ "name": "value", "type": "string" },
|
|
557
|
+
{ "name": "name", "type": "string" },
|
|
558
|
+
{
|
|
559
|
+
"name": "formatter",
|
|
560
|
+
"description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input masking example from Filament Group\n\nhttps://css-tricks.com/input-masking/\nhttps://filamentgroup.github.io/politespace/demo/demo.html",
|
|
561
|
+
"type": "(value: string) => string"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"events": []
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "w-modal-footer",
|
|
569
|
+
"description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n",
|
|
570
|
+
"doc-url": "",
|
|
571
|
+
"attributes": [],
|
|
572
|
+
"events": [],
|
|
573
|
+
"js": { "properties": [], "events": [] }
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "w-modal-header",
|
|
577
|
+
"description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **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.",
|
|
578
|
+
"doc-url": "",
|
|
579
|
+
"attributes": [
|
|
580
|
+
{ "name": "title", "value": { "type": "string" } },
|
|
581
|
+
{ "name": "back", "value": { "type": "boolean" } },
|
|
582
|
+
{ "name": "no-close", "value": { "type": "boolean" } }
|
|
583
|
+
],
|
|
584
|
+
"slots": [
|
|
585
|
+
{
|
|
586
|
+
"name": "top",
|
|
587
|
+
"description": "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."
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"events": [{ "name": "backClicked", "type": "CustomEvent" }],
|
|
591
|
+
"js": {
|
|
592
|
+
"properties": [
|
|
593
|
+
{ "name": "title", "type": "string" },
|
|
594
|
+
{ "name": "back", "type": "boolean" },
|
|
595
|
+
{ "name": "noClose", "type": "boolean" },
|
|
596
|
+
{ "name": "titleEl", "type": "HTMLElement" },
|
|
597
|
+
{ "name": "titleClasses" },
|
|
598
|
+
{ "name": "backButton" },
|
|
599
|
+
{ "name": "closeButton" }
|
|
600
|
+
],
|
|
601
|
+
"events": [{ "name": "backClicked", "type": "CustomEvent" }]
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "w-modal",
|
|
606
|
+
"description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
|
|
607
|
+
"doc-url": "",
|
|
608
|
+
"attributes": [
|
|
609
|
+
{ "name": "show", "value": { "type": "boolean" } },
|
|
610
|
+
{ "name": "content-id", "value": { "type": "string" } },
|
|
611
|
+
{ "name": "ignore-backdrop-clicks", "value": { "type": "boolean" } }
|
|
612
|
+
],
|
|
613
|
+
"slots": [
|
|
614
|
+
{
|
|
615
|
+
"name": "header",
|
|
616
|
+
"description": "Typically where you would use the `w-modal-header` component."
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "content",
|
|
620
|
+
"description": "The main content of the modal."
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "footer",
|
|
624
|
+
"description": "Typically where you would use the `w-modal-footer` component, for things like actions."
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"events": [
|
|
628
|
+
{ "name": "shown", "type": "CustomEvent" },
|
|
629
|
+
{ "name": "hidden", "type": "CustomEvent" }
|
|
630
|
+
],
|
|
631
|
+
"js": {
|
|
632
|
+
"properties": [
|
|
633
|
+
{ "name": "show", "type": "boolean" },
|
|
634
|
+
{ "name": "contentId", "type": "string" },
|
|
635
|
+
{ "name": "ignoreBackdropClicks", "type": "boolean" },
|
|
636
|
+
{ "name": "dialogEl", "type": "HTMLDialogElement" },
|
|
637
|
+
{ "name": "dialogInnerEl", "type": "HTMLElement" },
|
|
638
|
+
{ "name": "contentEl", "type": "HTMLElement" }
|
|
639
|
+
],
|
|
640
|
+
"events": [
|
|
641
|
+
{ "name": "shown", "type": "CustomEvent" },
|
|
642
|
+
{ "name": "hidden", "type": "CustomEvent" }
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "w-toast-container",
|
|
648
|
+
"description": "\n---\n",
|
|
649
|
+
"doc-url": "",
|
|
650
|
+
"attributes": [],
|
|
651
|
+
"events": [],
|
|
652
|
+
"js": { "properties": [], "events": [] }
|
|
653
|
+
}
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"css": {
|
|
657
|
+
"properties": [],
|
|
658
|
+
"pseudo-elements": []
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|