@warp-ds/elements 2.9.0-next.2 → 2.9.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +101 -173
- package/dist/docs/affix/accessibility.md +1 -0
- package/dist/docs/affix/affix.md +58 -0
- package/dist/docs/affix/api.md +44 -0
- package/dist/docs/affix/examples.md +1 -0
- package/dist/docs/affix/usage.md +1 -0
- package/dist/docs/alert/accessibility.md +30 -0
- package/dist/docs/alert/alert.md +208 -0
- package/dist/docs/alert/api.md +39 -0
- package/dist/docs/alert/examples.md +84 -0
- package/dist/docs/alert/usage.md +42 -0
- package/dist/docs/attention/accessibility.md +1 -0
- package/dist/docs/attention/api.md +132 -0
- package/dist/docs/attention/attention.md +144 -0
- package/dist/docs/attention/examples.md +1 -0
- package/dist/docs/attention/usage.md +1 -0
- package/dist/docs/badge/accessibility.md +1 -0
- package/dist/docs/badge/api.md +28 -0
- package/dist/docs/badge/badge.md +42 -0
- package/dist/docs/badge/examples.md +1 -0
- package/dist/docs/badge/usage.md +1 -0
- package/dist/docs/box/accessibility.md +1 -0
- package/dist/docs/box/api.md +52 -0
- package/dist/docs/box/box.md +66 -0
- package/dist/docs/box/examples.md +1 -0
- package/dist/docs/box/usage.md +1 -0
- package/dist/docs/breadcrumbs/accessibility.md +1 -0
- package/dist/docs/breadcrumbs/api.md +20 -0
- package/dist/docs/breadcrumbs/breadcrumbs.md +34 -0
- package/dist/docs/breadcrumbs/examples.md +1 -0
- package/dist/docs/breadcrumbs/usage.md +1 -0
- package/dist/docs/button/accessibility.md +1 -0
- package/dist/docs/button/api.md +155 -0
- package/dist/docs/button/button.md +169 -0
- package/dist/docs/button/examples.md +1 -0
- package/dist/docs/button/usage.md +1 -0
- package/dist/docs/card/accessibility.md +1 -0
- package/dist/docs/card/api.md +44 -0
- package/dist/docs/card/card.md +58 -0
- package/dist/docs/card/examples.md +1 -0
- package/dist/docs/card/usage.md +1 -0
- package/dist/docs/combobox/accessibility.md +1 -0
- package/dist/docs/combobox/api.md +132 -0
- package/dist/docs/combobox/combobox.md +146 -0
- package/dist/docs/combobox/examples.md +1 -0
- package/dist/docs/combobox/usage.md +1 -0
- package/dist/docs/datepicker/accessibility.md +1 -0
- package/dist/docs/datepicker/api.md +184 -0
- package/dist/docs/datepicker/datepicker.md +200 -0
- package/dist/docs/datepicker/examples.md +1 -0
- package/dist/docs/datepicker/usage.md +1 -0
- package/dist/docs/expandable/accessibility.md +1 -0
- package/dist/docs/expandable/api.md +100 -0
- package/dist/docs/expandable/examples.md +1 -0
- package/dist/docs/expandable/expandable.md +114 -0
- package/dist/docs/expandable/usage.md +1 -0
- package/dist/docs/link/accessibility.md +1 -0
- package/dist/docs/link/api.md +87 -0
- package/dist/docs/link/examples.md +1 -0
- package/dist/docs/link/link.md +101 -0
- package/dist/docs/link/usage.md +1 -0
- package/dist/docs/page-indicator/accessibility.md +1 -0
- package/dist/docs/page-indicator/api.md +28 -0
- package/dist/docs/page-indicator/examples.md +1 -0
- package/dist/docs/page-indicator/page-indicator.md +41 -0
- package/dist/docs/page-indicator/usage.md +1 -0
- package/dist/docs/pagination/accessibility.md +1 -0
- package/dist/docs/pagination/api.md +44 -0
- package/dist/docs/pagination/examples.md +1 -0
- package/dist/docs/pagination/pagination.md +58 -0
- package/dist/docs/pagination/usage.md +1 -0
- package/dist/docs/pill/accessibility.md +1 -0
- package/dist/docs/pill/api.md +76 -0
- package/dist/docs/pill/examples.md +1 -0
- package/dist/docs/pill/pill.md +90 -0
- package/dist/docs/pill/usage.md +1 -0
- package/dist/docs/select/accessibility.md +1 -0
- package/dist/docs/select/api.md +124 -0
- package/dist/docs/select/examples.md +1 -0
- package/dist/docs/select/select.md +138 -0
- package/dist/docs/select/usage.md +1 -0
- package/dist/docs/slider/accessibility.md +1 -0
- package/dist/docs/slider/api.md +220 -0
- package/dist/docs/slider/examples.md +1 -0
- package/dist/docs/slider/slider.md +234 -0
- package/dist/docs/slider/usage.md +1 -0
- package/dist/docs/slider-thumb/accessibility.md +1 -0
- package/dist/docs/slider-thumb/api.md +164 -0
- package/dist/docs/slider-thumb/examples.md +1 -0
- package/dist/docs/slider-thumb/slider-thumb.md +178 -0
- package/dist/docs/slider-thumb/usage.md +1 -0
- package/dist/docs/step/accessibility.md +1 -0
- package/dist/docs/step/api.md +28 -0
- package/dist/docs/step/examples.md +1 -0
- package/dist/docs/step/step.md +40 -0
- package/dist/docs/step/usage.md +1 -0
- package/dist/docs/step-indicator/accessibility.md +1 -0
- package/dist/docs/step-indicator/api.md +28 -0
- package/dist/docs/step-indicator/examples.md +1 -0
- package/dist/docs/step-indicator/step-indicator.md +42 -0
- package/dist/docs/step-indicator/usage.md +1 -0
- package/dist/docs/switch/accessibility.md +1 -0
- package/dist/docs/switch/api.md +52 -0
- package/dist/docs/switch/examples.md +1 -0
- package/dist/docs/switch/switch.md +64 -0
- package/dist/docs/switch/usage.md +1 -0
- package/dist/docs/tab/accessibility.md +1 -0
- package/dist/docs/tab/api.md +92 -0
- package/dist/docs/tab/examples.md +1 -0
- package/dist/docs/tab/tab.md +106 -0
- package/dist/docs/tab/usage.md +1 -0
- package/dist/docs/tab-panel/accessibility.md +1 -0
- package/dist/docs/tab-panel/api.md +37 -0
- package/dist/docs/tab-panel/examples.md +1 -0
- package/dist/docs/tab-panel/tab-panel.md +52 -0
- package/dist/docs/tab-panel/usage.md +1 -0
- package/dist/docs/tabs/accessibility.md +1 -0
- package/dist/docs/tabs/api.md +36 -0
- package/dist/docs/tabs/examples.md +1 -0
- package/dist/docs/tabs/tabs.md +50 -0
- package/dist/docs/tabs/usage.md +1 -0
- package/dist/docs/textarea/accessibility.md +1 -0
- package/dist/docs/textarea/api.md +156 -0
- package/dist/docs/textarea/examples.md +1 -0
- package/dist/docs/textarea/textarea.md +170 -0
- package/dist/docs/textarea/usage.md +1 -0
- package/dist/docs/textfield/accessibility.md +1 -0
- package/dist/docs/textfield/api.md +204 -0
- package/dist/docs/textfield/examples.md +1 -0
- package/dist/docs/textfield/textfield.md +218 -0
- package/dist/docs/textfield/usage.md +1 -0
- package/dist/docs/toast/accessibility.md +9 -0
- package/dist/docs/toast/api.md +71 -0
- package/dist/docs/toast/examples.md +29 -0
- package/dist/docs/toast/toast.md +150 -0
- package/dist/docs/toast/usage.md +31 -0
- package/dist/index.d.ts +104 -97
- package/dist/packages/affix/affix.d.ts +16 -2
- package/dist/packages/affix/affix.js +5 -5
- package/dist/packages/affix/affix.js.map +2 -2
- package/dist/packages/alert/alert.d.ts +15 -0
- package/dist/packages/alert/alert.js +6 -6
- package/dist/packages/alert/alert.js.map +2 -2
- package/dist/packages/attention/attention.d.ts +52 -0
- package/dist/packages/attention/attention.js +5 -5
- package/dist/packages/attention/attention.js.map +2 -2
- package/dist/packages/badge/badge.d.ts +8 -0
- package/dist/packages/badge/badge.js.map +2 -2
- package/dist/packages/box/box.d.ts +20 -0
- package/dist/packages/box/box.js.map +2 -2
- package/dist/packages/button/button.d.ts +60 -2
- package/dist/packages/button/button.js.map +2 -2
- package/dist/packages/card/card.d.ts +12 -0
- package/dist/packages/card/card.js.map +2 -2
- package/dist/packages/combobox/combobox.d.ts +60 -15
- package/dist/packages/combobox/combobox.js.map +2 -2
- package/dist/packages/datepicker/datepicker.d.ts +32 -5
- package/dist/packages/datepicker/datepicker.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +2 -2
- package/dist/packages/expandable/expandable.d.ts +44 -0
- package/dist/packages/expandable/expandable.js +7 -7
- package/dist/packages/expandable/expandable.js.map +2 -2
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +2 -2
- package/dist/packages/icon/icon.test.js +14 -0
- package/dist/packages/link/link.d.ts +32 -0
- package/dist/packages/link/link.js.map +2 -2
- package/dist/packages/modal-header/modal-header.js +6 -6
- package/dist/packages/modal-header/modal-header.js.map +2 -2
- package/dist/packages/page-indicator/page-indicator.d.ts +8 -2
- package/dist/packages/page-indicator/page-indicator.js.map +2 -2
- package/dist/packages/pagination/pagination.d.ts +16 -0
- package/dist/packages/pagination/pagination.js +3 -3
- package/dist/packages/pagination/pagination.js.map +2 -2
- package/dist/packages/pill/pill.d.ts +24 -2
- package/dist/packages/pill/pill.js +3 -3
- package/dist/packages/pill/pill.js.map +2 -2
- package/dist/packages/select/select.d.ts +56 -12
- package/dist/packages/select/select.js +4 -4
- package/dist/packages/select/select.js.map +2 -2
- package/dist/packages/slider/slider.d.ts +65 -8
- package/dist/packages/slider/slider.js +7 -7
- package/dist/packages/slider/slider.js.map +3 -3
- package/dist/packages/slider/slider.test.js +68 -0
- package/dist/packages/slider-thumb/slider-thumb.d.ts +44 -6
- package/dist/packages/slider-thumb/slider-thumb.js +24 -23
- package/dist/packages/slider-thumb/slider-thumb.js.map +3 -3
- package/dist/packages/step/step.d.ts +8 -0
- package/dist/packages/step/step.js +4 -4
- package/dist/packages/step/step.js.map +2 -2
- package/dist/packages/step-indicator/step-indicator.d.ts +8 -0
- package/dist/packages/step-indicator/step-indicator.js.map +2 -2
- package/dist/packages/switch/switch.d.ts +16 -0
- package/dist/packages/switch/switch.js.map +2 -2
- package/dist/packages/tab/tab.d.ts +28 -3
- package/dist/packages/tab/tab.js.map +2 -2
- package/dist/packages/tab-panel/tab-panel.d.ts +8 -2
- package/dist/packages/tab-panel/tab-panel.js.map +2 -2
- package/dist/packages/tabs/tabs.d.ts +4 -0
- package/dist/packages/tabs/tabs.js.map +2 -2
- package/dist/packages/textarea/textarea.d.ts +52 -1
- package/dist/packages/textarea/textarea.js.map +2 -2
- package/dist/packages/textfield/textfield.d.ts +92 -4
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/toast/toast.js +4 -4
- package/dist/packages/toast/toast.js.map +2 -2
- package/dist/packages/toast-container/toast-container.d.ts +14 -0
- package/dist/packages/toast-container/toast-container.js.map +2 -2
- package/dist/web-types.json +77 -225
- package/package.json +8 -3
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Toast
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
Toasts are brief user feedback messages that overlay content.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
You should not use the toast components directly. Instead use the JavaScript API exported from Warp Elements to create, update and remove toasts
|
|
10
|
+
|
|
11
|
+
<style-isolate id="toast-usage">
|
|
12
|
+
<w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show toast</w-button>
|
|
13
|
+
</style-isolate>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
import { toast } from '@warp-ds/elements/toast';
|
|
18
|
+
|
|
19
|
+
const showBtn = document.getElementById("toast-btn");
|
|
20
|
+
showBtn.onclick = () => {
|
|
21
|
+
toast("Toasts are somewhat of an anti-pattern");
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Dismissable toast
|
|
26
|
+
|
|
27
|
+
The toast automatically closes by default, so you don't need to have a close button.
|
|
28
|
+
|
|
29
|
+
From an accessibility perspective, toasts should never contain interactive elements such as close buttons, as interactive elements should always appear in the same location as the action that triggered them.
|
|
30
|
+
|
|
31
|
+
It might be tempting to use this option and a high duration if you have a warning or error toast to "solve" the WCAG 2 success criteria 2.2.1, but please consider showing warnings and errors as a persistent [Alert](/docs/components/alert/overview) instead.
|
|
32
|
+
|
|
33
|
+
If the toast absolutely must be dismissible by the user, set the `canclose` property to `true`.
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
toast('message goes here', { type: 'success', canclose: true });
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Accessibility
|
|
40
|
+
|
|
41
|
+
From an accessibility perspective, toasts should never contain interactive elements, as these should always appear in the same location as the action that triggered them.
|
|
42
|
+
|
|
43
|
+
Auto-clearing toasts based on a timeout violate WCAG 2 success criteria 2.2.1, unless the information they contain is either redundant (i.e. also available elsewhere in a persistent manner) or insignificant to all people.
|
|
44
|
+
|
|
45
|
+
You are also advised to avoid putting information in a toast that cannot be re-accessed in any other way due to the impermanent nature of the current toast implementation.
|
|
46
|
+
|
|
47
|
+
Because of these points we consider the use of toasts to be somewhat of an anti-pattern, and recommend exploring alternative approaches wherever possible. That said, you may still use toasts, as long as you avoid interactive elements like links or close buttons.
|
|
48
|
+
|
|
49
|
+
## Examples
|
|
50
|
+
|
|
51
|
+
### Success / positive
|
|
52
|
+
|
|
53
|
+
This is the default.
|
|
54
|
+
|
|
55
|
+
<style-isolate id="toast-usage">
|
|
56
|
+
<w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show a success toast</w-button>
|
|
57
|
+
</style-isolate>
|
|
58
|
+
|
|
59
|
+
### Warning
|
|
60
|
+
|
|
61
|
+
If the user should be warned about something, a toast is probably not the right way to do so. Consider an [Alert](/docs/components/alert/overview) instead.
|
|
62
|
+
|
|
63
|
+
A toast is easy to miss, especially on larger screens. Toasts that automatically close are also an accessibility problem if the information is not available elsewhere, or is insignificant (which shouldn't be the case for warnings).
|
|
64
|
+
|
|
65
|
+
<style-isolate id="toast-usage">
|
|
66
|
+
<w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern', { type: 'warning' })">Show a warning toast</w-button>
|
|
67
|
+
</style-isolate>
|
|
68
|
+
|
|
69
|
+
### Error / negative
|
|
70
|
+
|
|
71
|
+
If the user should be told about an error, a toast is probably not the right way to do so. Consider an [Alert](/docs/components/alert/overview) instead.
|
|
72
|
+
|
|
73
|
+
A toast is easy to miss, especially on larger screens. Toasts that automatically close are also an accessibility problem if the information is not available elsewhere, or is insignificant (which shouldn't be the case for errors).
|
|
74
|
+
|
|
75
|
+
<style-isolate id="toast-usage">
|
|
76
|
+
<w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern', { type: 'error' })">Show an error toast</w-button>
|
|
77
|
+
</style-isolate>
|
|
78
|
+
|
|
79
|
+
## API Documentation
|
|
80
|
+
|
|
81
|
+
### toast
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
import { toast } from '@warp-ds/elements/toast';
|
|
85
|
+
|
|
86
|
+
const theToast = toast('Toasts are somewhat of an anti-pattern');
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Returns [ToastOptions](#toastoptions), which includes the ID you need for [updateToast](#updatetoast) and [removeToast](#removetoast).
|
|
90
|
+
|
|
91
|
+
If you can't pass the result from `toast` to where you call `updateToast` or `removeToast` you can set a known ID manually.
|
|
92
|
+
|
|
93
|
+
```js
|
|
94
|
+
toast('Toasts are somewhat of an anti-pattern', {
|
|
95
|
+
id: 'something-unique-but-stable',
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
| Parameter | Type | Summary |
|
|
100
|
+
| --- | --- | --- |
|
|
101
|
+
| message | `string` | The text content |
|
|
102
|
+
| options | [ToastOptions](#toastoptions) (optional) | |
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### updateToast
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
import { toast, updateToast } from '@warp-ds/elements/toast';
|
|
109
|
+
|
|
110
|
+
const theToast = toast('The toast function returns an ID');
|
|
111
|
+
|
|
112
|
+
updateToast(theToast.id, 'Use it to update the text');
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Returns [ToastOptions](#toastoptions).
|
|
116
|
+
|
|
117
|
+
| Parameter | Type | Summary |
|
|
118
|
+
| --- | --- | --- |
|
|
119
|
+
| id | `string` | The ID of the toast you want to update |
|
|
120
|
+
| message | `string` | The new text content |
|
|
121
|
+
| options | [ToastOptions](#toastoptions) (optional) | |
|
|
122
|
+
|
|
123
|
+
### removeToast
|
|
124
|
+
|
|
125
|
+
Toasts disappear after a set time, but if you need to remove one before that happens you can do so.
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
import { toast, removeToast } from '@warp-ds/elements/toast';
|
|
129
|
+
|
|
130
|
+
const theToast = toast('The toast function returns an ID');
|
|
131
|
+
|
|
132
|
+
removeToast(theToast.id);
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Types
|
|
136
|
+
|
|
137
|
+
#### ToastOptions
|
|
138
|
+
|
|
139
|
+
| Name | Type | Default | Summary |
|
|
140
|
+
| --- | --- | --- | --- |
|
|
141
|
+
| id | `string` | Random | Random generated unique ID for the toast element |
|
|
142
|
+
| type | [`ToastVariants`](#toastvariants) | `'success'` | Visual style of the toast |
|
|
143
|
+
| text | `string` | `-` | The given toast message |
|
|
144
|
+
| duration | `number` | `5000` | Duration of toast in milliseconds |
|
|
145
|
+
| canclose | `boolean` | `false` | See [Dismissable toast](#dismissable-toast) |
|
|
146
|
+
|
|
147
|
+
#### ToastVariants
|
|
148
|
+
|
|
149
|
+
`'success' | 'warning' | 'error'`
|
|
150
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
## Usage
|
|
2
|
+
|
|
3
|
+
You should not use the toast components directly. Instead use the JavaScript API exported from Warp Elements to create, update and remove toasts
|
|
4
|
+
|
|
5
|
+
<style-isolate id="toast-usage">
|
|
6
|
+
<w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show toast</w-button>
|
|
7
|
+
</style-isolate>
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
import { toast } from '@warp-ds/elements/toast';
|
|
12
|
+
|
|
13
|
+
const showBtn = document.getElementById("toast-btn");
|
|
14
|
+
showBtn.onclick = () => {
|
|
15
|
+
toast("Toasts are somewhat of an anti-pattern");
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Dismissable toast
|
|
20
|
+
|
|
21
|
+
The toast automatically closes by default, so you don't need to have a close button.
|
|
22
|
+
|
|
23
|
+
From an accessibility perspective, toasts should never contain interactive elements such as close buttons, as interactive elements should always appear in the same location as the action that triggered them.
|
|
24
|
+
|
|
25
|
+
It might be tempting to use this option and a high duration if you have a warning or error toast to "solve" the WCAG 2 success criteria 2.2.1, but please consider showing warnings and errors as a persistent [Alert](/docs/components/alert/overview) instead.
|
|
26
|
+
|
|
27
|
+
If the toast absolutely must be dismissible by the user, set the `canclose` property to `true`.
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
toast('message goes here', { type: 'success', canclose: true });
|
|
31
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ import type { WarpTab } from "./packages/tab/tab.ts";
|
|
|
32
32
|
import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
|
|
33
33
|
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
34
34
|
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
35
|
-
import type { WarpToastContainer } from "./packages/toast-container/toast-container.ts";
|
|
36
35
|
|
|
37
36
|
/**
|
|
38
37
|
* This type can be used to create scoped tags for your components.
|
|
@@ -715,9 +714,7 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
|
|
|
715
714
|
|
|
716
715
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
717
716
|
dayFormat?: WarpDatepicker["dayFormat"];
|
|
718
|
-
/**
|
|
719
|
-
|
|
720
|
-
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
717
|
+
/** */
|
|
721
718
|
isDayDisabled?: WarpDatepicker["isDayDisabled"];
|
|
722
719
|
/** */
|
|
723
720
|
isCalendarOpen?: WarpDatepicker["isCalendarOpen"];
|
|
@@ -776,9 +773,7 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
|
|
|
776
773
|
|
|
777
774
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
778
775
|
"prop:dayFormat"?: WarpDatepicker["dayFormat"];
|
|
779
|
-
/**
|
|
780
|
-
|
|
781
|
-
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
776
|
+
/** */
|
|
782
777
|
"prop:isDayDisabled"?: WarpDatepicker["isDayDisabled"];
|
|
783
778
|
/** */
|
|
784
779
|
"prop:isCalendarOpen"?: WarpDatepicker["isCalendarOpen"];
|
|
@@ -1247,6 +1242,8 @@ export type WarpSelectProps = {
|
|
|
1247
1242
|
name?: WarpSelect["name"];
|
|
1248
1243
|
/** */
|
|
1249
1244
|
value?: WarpSelect["value"];
|
|
1245
|
+
/** */
|
|
1246
|
+
_options?: WarpSelect["_options"];
|
|
1250
1247
|
|
|
1251
1248
|
/** */
|
|
1252
1249
|
onchange?: (e: CustomEvent) => void;
|
|
@@ -1286,6 +1283,8 @@ export type WarpSelectSolidJsProps = {
|
|
|
1286
1283
|
/** */
|
|
1287
1284
|
"prop:value"?: WarpSelect["value"];
|
|
1288
1285
|
/** */
|
|
1286
|
+
"prop:_options"?: WarpSelect["_options"];
|
|
1287
|
+
/** */
|
|
1289
1288
|
"on:change"?: (e: CustomEvent) => void;
|
|
1290
1289
|
|
|
1291
1290
|
/** Set the innerHTML of the element */
|
|
@@ -1343,14 +1342,12 @@ export type WarpTextFieldProps = {
|
|
|
1343
1342
|
step?: WarpTextField["step"];
|
|
1344
1343
|
/** */
|
|
1345
1344
|
autocomplete?: WarpTextField["autocomplete"];
|
|
1346
|
-
/**
|
|
1347
|
-
|
|
1348
|
-
Only active when the input field does not have focus,
|
|
1349
|
-
similar to the accessible input masking example from Filament Group
|
|
1350
|
-
|
|
1351
|
-
https://css-tricks.com/input-masking/
|
|
1352
|
-
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
1345
|
+
/** */
|
|
1353
1346
|
formatter?: WarpTextField["formatter"];
|
|
1347
|
+
/** */
|
|
1348
|
+
_hasPrefix?: WarpTextField["_hasPrefix"];
|
|
1349
|
+
/** */
|
|
1350
|
+
_hasSuffix?: WarpTextField["_hasSuffix"];
|
|
1354
1351
|
};
|
|
1355
1352
|
|
|
1356
1353
|
export type WarpTextFieldSolidJsProps = {
|
|
@@ -1402,14 +1399,12 @@ export type WarpTextFieldSolidJsProps = {
|
|
|
1402
1399
|
"prop:step"?: WarpTextField["step"];
|
|
1403
1400
|
/** */
|
|
1404
1401
|
"prop:autocomplete"?: WarpTextField["autocomplete"];
|
|
1405
|
-
/**
|
|
1406
|
-
|
|
1407
|
-
Only active when the input field does not have focus,
|
|
1408
|
-
similar to the accessible input masking example from Filament Group
|
|
1409
|
-
|
|
1410
|
-
https://css-tricks.com/input-masking/
|
|
1411
|
-
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
1402
|
+
/** */
|
|
1412
1403
|
"prop:formatter"?: WarpTextField["formatter"];
|
|
1404
|
+
/** */
|
|
1405
|
+
"prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
|
|
1406
|
+
/** */
|
|
1407
|
+
"prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
|
|
1413
1408
|
|
|
1414
1409
|
/** Set the innerHTML of the element */
|
|
1415
1410
|
innerHTML?: string;
|
|
@@ -1438,6 +1433,18 @@ export type WarpSliderThumbProps = {
|
|
|
1438
1433
|
tooltipTarget?: WarpSliderThumb["tooltipTarget"];
|
|
1439
1434
|
/** */
|
|
1440
1435
|
textfield?: WarpSliderThumb["textfield"];
|
|
1436
|
+
/** */
|
|
1437
|
+
disabled?: WarpSliderThumb["disabled"];
|
|
1438
|
+
/** */
|
|
1439
|
+
invalid?: WarpSliderThumb["invalid"];
|
|
1440
|
+
/** */
|
|
1441
|
+
openEnded?: WarpSliderThumb["openEnded"];
|
|
1442
|
+
/** */
|
|
1443
|
+
valueFormatter?: WarpSliderThumb["valueFormatter"];
|
|
1444
|
+
/** */
|
|
1445
|
+
tooltipFormatter?: WarpSliderThumb["tooltipFormatter"];
|
|
1446
|
+
/** */
|
|
1447
|
+
labelFormatter?: WarpSliderThumb["labelFormatter"];
|
|
1441
1448
|
|
|
1442
1449
|
/** */
|
|
1443
1450
|
onthumbreset?: (e: CustomEvent) => void;
|
|
@@ -1467,6 +1474,18 @@ export type WarpSliderThumbSolidJsProps = {
|
|
|
1467
1474
|
/** */
|
|
1468
1475
|
"prop:textfield"?: WarpSliderThumb["textfield"];
|
|
1469
1476
|
/** */
|
|
1477
|
+
"prop:disabled"?: WarpSliderThumb["disabled"];
|
|
1478
|
+
/** */
|
|
1479
|
+
"prop:invalid"?: WarpSliderThumb["invalid"];
|
|
1480
|
+
/** */
|
|
1481
|
+
"prop:openEnded"?: WarpSliderThumb["openEnded"];
|
|
1482
|
+
/** */
|
|
1483
|
+
"prop:valueFormatter"?: WarpSliderThumb["valueFormatter"];
|
|
1484
|
+
/** */
|
|
1485
|
+
"prop:tooltipFormatter"?: WarpSliderThumb["tooltipFormatter"];
|
|
1486
|
+
/** */
|
|
1487
|
+
"prop:labelFormatter"?: WarpSliderThumb["labelFormatter"];
|
|
1488
|
+
/** */
|
|
1470
1489
|
"on:thumbreset"?: (e: CustomEvent) => void;
|
|
1471
1490
|
/** */
|
|
1472
1491
|
"on:slidervalidity"?: (e: CustomEvent) => void;
|
|
@@ -1512,13 +1531,15 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
|
|
|
1512
1531
|
"hidden-textfield"?: WarpSlider["hiddenTextfield"];
|
|
1513
1532
|
/** */
|
|
1514
1533
|
hiddenTextfield?: WarpSlider["hiddenTextfield"];
|
|
1515
|
-
/**
|
|
1534
|
+
/** */
|
|
1516
1535
|
valueFormatter?: WarpSlider["valueFormatter"];
|
|
1517
|
-
/**
|
|
1536
|
+
/** */
|
|
1518
1537
|
tooltipFormatter?: WarpSlider["tooltipFormatter"];
|
|
1519
|
-
/**
|
|
1538
|
+
/** */
|
|
1520
1539
|
labelFormatter?: WarpSlider["labelFormatter"];
|
|
1521
1540
|
/** */
|
|
1541
|
+
fieldset?: WarpSlider["fieldset"];
|
|
1542
|
+
/** */
|
|
1522
1543
|
_invalidMessage?: WarpSlider["_invalidMessage"];
|
|
1523
1544
|
/** */
|
|
1524
1545
|
_hasInternalError?: WarpSlider["_hasInternalError"];
|
|
@@ -1563,13 +1584,15 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
|
|
|
1563
1584
|
"bool:hidden-textfield"?: WarpSlider["hiddenTextfield"];
|
|
1564
1585
|
/** */
|
|
1565
1586
|
"prop:hiddenTextfield"?: WarpSlider["hiddenTextfield"];
|
|
1566
|
-
/**
|
|
1587
|
+
/** */
|
|
1567
1588
|
"prop:valueFormatter"?: WarpSlider["valueFormatter"];
|
|
1568
|
-
/**
|
|
1589
|
+
/** */
|
|
1569
1590
|
"prop:tooltipFormatter"?: WarpSlider["tooltipFormatter"];
|
|
1570
|
-
/**
|
|
1591
|
+
/** */
|
|
1571
1592
|
"prop:labelFormatter"?: WarpSlider["labelFormatter"];
|
|
1572
1593
|
/** */
|
|
1594
|
+
"prop:fieldset"?: WarpSlider["fieldset"];
|
|
1595
|
+
/** */
|
|
1573
1596
|
"prop:_invalidMessage"?: WarpSlider["_invalidMessage"];
|
|
1574
1597
|
/** */
|
|
1575
1598
|
"prop:_hasInternalError"?: WarpSlider["_hasInternalError"];
|
|
@@ -1673,6 +1696,10 @@ export type WarpTabProps = {
|
|
|
1673
1696
|
over?: WarpTab["over"];
|
|
1674
1697
|
/** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
|
|
1675
1698
|
tabIndex?: WarpTab["tabIndex"];
|
|
1699
|
+
/** */
|
|
1700
|
+
_parentTabIndex?: WarpTab["_parentTabIndex"];
|
|
1701
|
+
/** */
|
|
1702
|
+
_parentAriaSelected?: WarpTab["_parentAriaSelected"];
|
|
1676
1703
|
};
|
|
1677
1704
|
|
|
1678
1705
|
export type WarpTabSolidJsProps = {
|
|
@@ -1694,6 +1721,10 @@ export type WarpTabSolidJsProps = {
|
|
|
1694
1721
|
"prop:over"?: WarpTab["over"];
|
|
1695
1722
|
/** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
|
|
1696
1723
|
"prop:tabIndex"?: WarpTab["tabIndex"];
|
|
1724
|
+
/** */
|
|
1725
|
+
"prop:_parentTabIndex"?: WarpTab["_parentTabIndex"];
|
|
1726
|
+
/** */
|
|
1727
|
+
"prop:_parentAriaSelected"?: WarpTab["_parentAriaSelected"];
|
|
1697
1728
|
|
|
1698
1729
|
/** Set the innerHTML of the element */
|
|
1699
1730
|
innerHTML?: string;
|
|
@@ -1705,12 +1736,20 @@ export type WarpTabPanelProps = {
|
|
|
1705
1736
|
/** Whether this panel is active (visible).
|
|
1706
1737
|
Set by parent w-tabs via the _parentActive property. */
|
|
1707
1738
|
active?: WarpTabPanel["active"];
|
|
1739
|
+
/** */
|
|
1740
|
+
_parentActive?: WarpTabPanel["_parentActive"];
|
|
1741
|
+
/** */
|
|
1742
|
+
_parentAriaLabelledBy?: WarpTabPanel["_parentAriaLabelledBy"];
|
|
1708
1743
|
};
|
|
1709
1744
|
|
|
1710
1745
|
export type WarpTabPanelSolidJsProps = {
|
|
1711
1746
|
/** Whether this panel is active (visible).
|
|
1712
1747
|
Set by parent w-tabs via the _parentActive property. */
|
|
1713
1748
|
"prop:active"?: WarpTabPanel["active"];
|
|
1749
|
+
/** */
|
|
1750
|
+
"prop:_parentActive"?: WarpTabPanel["_parentActive"];
|
|
1751
|
+
/** */
|
|
1752
|
+
"prop:_parentAriaLabelledBy"?: WarpTabPanel["_parentAriaLabelledBy"];
|
|
1714
1753
|
|
|
1715
1754
|
/** Set the innerHTML of the element */
|
|
1716
1755
|
innerHTML?: string;
|
|
@@ -1825,15 +1864,6 @@ export type WarpTextareaSolidJsProps = {
|
|
|
1825
1864
|
textContent?: string | number;
|
|
1826
1865
|
};
|
|
1827
1866
|
|
|
1828
|
-
export type WarpToastContainerProps = {};
|
|
1829
|
-
|
|
1830
|
-
export type WarpToastContainerSolidJsProps = {
|
|
1831
|
-
/** Set the innerHTML of the element */
|
|
1832
|
-
innerHTML?: string;
|
|
1833
|
-
/** Set the textContent of the element */
|
|
1834
|
-
textContent?: string | number;
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
1867
|
export type CustomElements = {
|
|
1838
1868
|
/**
|
|
1839
1869
|
*
|
|
@@ -2168,9 +2198,7 @@ export type CustomElements = {
|
|
|
2168
2198
|
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
2169
2199
|
*
|
|
2170
2200
|
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
2171
|
-
* - `isDayDisabled`:
|
|
2172
|
-
*
|
|
2173
|
-
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
2201
|
+
* - `isDayDisabled`: undefined (property only)
|
|
2174
2202
|
* - `isCalendarOpen`: undefined (property only)
|
|
2175
2203
|
* - `navigationDate`: undefined (property only)
|
|
2176
2204
|
* - `selectedDate`: undefined (property only) (readonly)
|
|
@@ -2478,6 +2506,7 @@ export type CustomElements = {
|
|
|
2478
2506
|
* - `readonly`: Renders the field in a readonly state.
|
|
2479
2507
|
* - `name`: undefined
|
|
2480
2508
|
* - `value`: undefined
|
|
2509
|
+
* - `_options`: undefined (property only)
|
|
2481
2510
|
*
|
|
2482
2511
|
* ## Events
|
|
2483
2512
|
*
|
|
@@ -2525,13 +2554,9 @@ export type CustomElements = {
|
|
|
2525
2554
|
* - `name`: undefined
|
|
2526
2555
|
* - `step`: undefined
|
|
2527
2556
|
* - `autocomplete`: undefined
|
|
2528
|
-
* - `formatter`:
|
|
2529
|
-
*
|
|
2530
|
-
*
|
|
2531
|
-
* similar to the accessible input masking example from Filament Group
|
|
2532
|
-
*
|
|
2533
|
-
* https://css-tricks.com/input-masking/
|
|
2534
|
-
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
2557
|
+
* - `formatter`: undefined (property only)
|
|
2558
|
+
* - `_hasPrefix`: undefined (property only)
|
|
2559
|
+
* - `_hasSuffix`: undefined (property only)
|
|
2535
2560
|
*
|
|
2536
2561
|
* ## Methods
|
|
2537
2562
|
*
|
|
@@ -2567,6 +2592,12 @@ export type CustomElements = {
|
|
|
2567
2592
|
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
2568
2593
|
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
2569
2594
|
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
2595
|
+
* - `disabled`: undefined (property only)
|
|
2596
|
+
* - `invalid`: undefined (property only)
|
|
2597
|
+
* - `openEnded`: undefined (property only)
|
|
2598
|
+
* - `valueFormatter`: undefined (property only)
|
|
2599
|
+
* - `tooltipFormatter`: undefined (property only)
|
|
2600
|
+
* - `labelFormatter`: undefined (property only)
|
|
2570
2601
|
*
|
|
2571
2602
|
* ## Events
|
|
2572
2603
|
*
|
|
@@ -2610,9 +2641,10 @@ export type CustomElements = {
|
|
|
2610
2641
|
* - `step`: undefined
|
|
2611
2642
|
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
2612
2643
|
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
2613
|
-
* - `valueFormatter`:
|
|
2614
|
-
* - `tooltipFormatter`:
|
|
2615
|
-
* - `labelFormatter`:
|
|
2644
|
+
* - `valueFormatter`: undefined (property only)
|
|
2645
|
+
* - `tooltipFormatter`: undefined (property only)
|
|
2646
|
+
* - `labelFormatter`: undefined (property only)
|
|
2647
|
+
* - `fieldset`: undefined (property only)
|
|
2616
2648
|
* - `_invalidMessage`: undefined (property only)
|
|
2617
2649
|
* - `_hasInternalError`: undefined (property only)
|
|
2618
2650
|
* - `_showError`: undefined (property only)
|
|
@@ -2718,6 +2750,8 @@ export type CustomElements = {
|
|
|
2718
2750
|
* - `over`: undefined
|
|
2719
2751
|
* - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
|
|
2720
2752
|
* - `_computedAriaSelected`: Computed aria-selected: prefers parent-managed, falls back to own property (property only) (readonly)
|
|
2753
|
+
* - `_parentTabIndex`: undefined (property only)
|
|
2754
|
+
* - `_parentAriaSelected`: undefined (property only)
|
|
2721
2755
|
*/
|
|
2722
2756
|
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
2723
2757
|
|
|
@@ -2733,6 +2767,8 @@ export type CustomElements = {
|
|
|
2733
2767
|
*
|
|
2734
2768
|
* - `active`: Whether this panel is active (visible).
|
|
2735
2769
|
* Set by parent w-tabs via the _parentActive property.
|
|
2770
|
+
* - `_parentActive`: undefined (property only)
|
|
2771
|
+
* - `_parentAriaLabelledBy`: undefined (property only)
|
|
2736
2772
|
*/
|
|
2737
2773
|
"w-tab-panel": Partial<
|
|
2738
2774
|
WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
|
|
@@ -2799,22 +2835,6 @@ export type CustomElements = {
|
|
|
2799
2835
|
"w-textarea": Partial<
|
|
2800
2836
|
WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents
|
|
2801
2837
|
>;
|
|
2802
|
-
|
|
2803
|
-
/**
|
|
2804
|
-
*
|
|
2805
|
-
*
|
|
2806
|
-
* ## Methods
|
|
2807
|
-
*
|
|
2808
|
-
* Methods that can be called to access component functionality.
|
|
2809
|
-
*
|
|
2810
|
-
* - `init() => void`: undefined
|
|
2811
|
-
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
2812
|
-
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
2813
|
-
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
2814
|
-
*/
|
|
2815
|
-
"w-toast-container": Partial<
|
|
2816
|
-
WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents
|
|
2817
|
-
>;
|
|
2818
2838
|
};
|
|
2819
2839
|
|
|
2820
2840
|
export type CustomElementsSolidJs = {
|
|
@@ -3184,9 +3204,7 @@ export type CustomElementsSolidJs = {
|
|
|
3184
3204
|
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
3185
3205
|
*
|
|
3186
3206
|
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
3187
|
-
* - `isDayDisabled`:
|
|
3188
|
-
*
|
|
3189
|
-
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
3207
|
+
* - `isDayDisabled`: undefined (property only)
|
|
3190
3208
|
* - `isCalendarOpen`: undefined (property only)
|
|
3191
3209
|
* - `navigationDate`: undefined (property only)
|
|
3192
3210
|
* - `selectedDate`: undefined (property only) (readonly)
|
|
@@ -3521,6 +3539,7 @@ export type CustomElementsSolidJs = {
|
|
|
3521
3539
|
* - `readonly`: Renders the field in a readonly state.
|
|
3522
3540
|
* - `name`: undefined
|
|
3523
3541
|
* - `value`: undefined
|
|
3542
|
+
* - `_options`: undefined (property only)
|
|
3524
3543
|
*
|
|
3525
3544
|
* ## Events
|
|
3526
3545
|
*
|
|
@@ -3573,13 +3592,9 @@ export type CustomElementsSolidJs = {
|
|
|
3573
3592
|
* - `name`: undefined
|
|
3574
3593
|
* - `step`: undefined
|
|
3575
3594
|
* - `autocomplete`: undefined
|
|
3576
|
-
* - `formatter`:
|
|
3577
|
-
*
|
|
3578
|
-
*
|
|
3579
|
-
* similar to the accessible input masking example from Filament Group
|
|
3580
|
-
*
|
|
3581
|
-
* https://css-tricks.com/input-masking/
|
|
3582
|
-
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
3595
|
+
* - `formatter`: undefined (property only)
|
|
3596
|
+
* - `_hasPrefix`: undefined (property only)
|
|
3597
|
+
* - `_hasSuffix`: undefined (property only)
|
|
3583
3598
|
*
|
|
3584
3599
|
* ## Methods
|
|
3585
3600
|
*
|
|
@@ -3618,6 +3633,12 @@ export type CustomElementsSolidJs = {
|
|
|
3618
3633
|
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
3619
3634
|
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
3620
3635
|
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
3636
|
+
* - `disabled`: undefined (property only)
|
|
3637
|
+
* - `invalid`: undefined (property only)
|
|
3638
|
+
* - `openEnded`: undefined (property only)
|
|
3639
|
+
* - `valueFormatter`: undefined (property only)
|
|
3640
|
+
* - `tooltipFormatter`: undefined (property only)
|
|
3641
|
+
* - `labelFormatter`: undefined (property only)
|
|
3621
3642
|
*
|
|
3622
3643
|
* ## Events
|
|
3623
3644
|
*
|
|
@@ -3664,9 +3685,10 @@ export type CustomElementsSolidJs = {
|
|
|
3664
3685
|
* - `step`: undefined
|
|
3665
3686
|
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
3666
3687
|
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
3667
|
-
* - `valueFormatter`:
|
|
3668
|
-
* - `tooltipFormatter`:
|
|
3669
|
-
* - `labelFormatter`:
|
|
3688
|
+
* - `valueFormatter`: undefined (property only)
|
|
3689
|
+
* - `tooltipFormatter`: undefined (property only)
|
|
3690
|
+
* - `labelFormatter`: undefined (property only)
|
|
3691
|
+
* - `fieldset`: undefined (property only)
|
|
3670
3692
|
* - `_invalidMessage`: undefined (property only)
|
|
3671
3693
|
* - `_hasInternalError`: undefined (property only)
|
|
3672
3694
|
* - `_showError`: undefined (property only)
|
|
@@ -3787,6 +3809,8 @@ export type CustomElementsSolidJs = {
|
|
|
3787
3809
|
* - `over`: undefined
|
|
3788
3810
|
* - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
|
|
3789
3811
|
* - `_computedAriaSelected`: Computed aria-selected: prefers parent-managed, falls back to own property (property only) (readonly)
|
|
3812
|
+
* - `_parentTabIndex`: undefined (property only)
|
|
3813
|
+
* - `_parentAriaSelected`: undefined (property only)
|
|
3790
3814
|
*/
|
|
3791
3815
|
"w-tab": Partial<
|
|
3792
3816
|
WarpTabProps & WarpTabSolidJsProps & BaseProps<WarpTab> & BaseEvents
|
|
@@ -3804,6 +3828,8 @@ export type CustomElementsSolidJs = {
|
|
|
3804
3828
|
*
|
|
3805
3829
|
* - `active`: Whether this panel is active (visible).
|
|
3806
3830
|
* Set by parent w-tabs via the _parentActive property.
|
|
3831
|
+
* - `_parentActive`: undefined (property only)
|
|
3832
|
+
* - `_parentAriaLabelledBy`: undefined (property only)
|
|
3807
3833
|
*/
|
|
3808
3834
|
"w-tab-panel": Partial<
|
|
3809
3835
|
WarpTabPanelProps &
|
|
@@ -3878,25 +3904,6 @@ export type CustomElementsSolidJs = {
|
|
|
3878
3904
|
BaseProps<WarpTextarea> &
|
|
3879
3905
|
BaseEvents
|
|
3880
3906
|
>;
|
|
3881
|
-
|
|
3882
|
-
/**
|
|
3883
|
-
*
|
|
3884
|
-
*
|
|
3885
|
-
* ## Methods
|
|
3886
|
-
*
|
|
3887
|
-
* Methods that can be called to access component functionality.
|
|
3888
|
-
*
|
|
3889
|
-
* - `init() => void`: undefined
|
|
3890
|
-
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
3891
|
-
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
3892
|
-
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
3893
|
-
*/
|
|
3894
|
-
"w-toast-container": Partial<
|
|
3895
|
-
WarpToastContainerProps &
|
|
3896
|
-
WarpToastContainerSolidJsProps &
|
|
3897
|
-
BaseProps<WarpToastContainer> &
|
|
3898
|
-
BaseEvents
|
|
3899
|
-
>;
|
|
3900
3907
|
};
|
|
3901
3908
|
|
|
3902
3909
|
export type CustomCssProperties = {};
|
|
@@ -6,19 +6,33 @@ import '../icon/icon.js';
|
|
|
6
6
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
7
7
|
*/
|
|
8
8
|
declare class WarpAffix extends LitElement {
|
|
9
|
+
/**
|
|
10
|
+
* @summary
|
|
11
|
+
* @description
|
|
12
|
+
*/
|
|
9
13
|
ariaLabel: string;
|
|
10
14
|
/**
|
|
11
15
|
* Add this property to render a clickable Warp close icon.
|
|
12
16
|
*
|
|
13
17
|
* Set an `aria-label` that explains the action when using this.
|
|
14
|
-
|
|
18
|
+
|
|
19
|
+
* @summary
|
|
20
|
+
* @description
|
|
21
|
+
*/
|
|
15
22
|
clear: boolean;
|
|
16
23
|
/**
|
|
17
24
|
* Add this property to render a clickable Warp search icon.
|
|
18
25
|
*
|
|
19
26
|
* Set an `aria-label` that explains the action when using this.
|
|
20
|
-
|
|
27
|
+
|
|
28
|
+
* @summary
|
|
29
|
+
* @description
|
|
30
|
+
*/
|
|
21
31
|
search: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @summary
|
|
34
|
+
* @description
|
|
35
|
+
*/
|
|
22
36
|
label: string;
|
|
23
37
|
static styles: import("lit").CSSResult[];
|
|
24
38
|
/** @internal */
|