@warp-ds/elements 2.10.0-next.2 → 2.10.0-next.3
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 +140 -69
- package/dist/docs/combobox/accessibility.md +71 -0
- package/dist/docs/combobox/api.md +60 -30
- package/dist/docs/combobox/combobox.md +203 -30
- package/dist/docs/combobox/examples.md +44 -0
- package/dist/docs/combobox/usage.md +28 -0
- package/dist/docs/icon/accessibility.md +5 -0
- package/dist/docs/icon/api.md +37 -0
- package/dist/docs/icon/examples.md +45 -0
- package/dist/docs/icon/icon.md +107 -0
- package/dist/docs/icon/usage.md +11 -0
- package/dist/docs/link/api.md +18 -22
- package/dist/docs/link/examples.md +75 -0
- package/dist/docs/link/link.md +111 -22
- package/dist/docs/link/usage.md +18 -0
- package/dist/index.d.ts +443 -171
- package/dist/packages/affix/affix.js +3 -3
- package/dist/packages/affix/affix.js.map +3 -3
- package/dist/packages/alert/alert.js +1 -1
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/attention/attention.js.map +3 -3
- package/dist/packages/button/button.js.map +2 -2
- package/dist/packages/checkbox/checkbox.d.ts +40 -11
- package/dist/packages/checkbox/checkbox.js.map +2 -2
- package/dist/packages/checkbox-group/checkbox-group.d.ts +30 -5
- package/dist/packages/checkbox-group/checkbox-group.js.map +2 -2
- package/dist/packages/combobox/combobox.a11y.test.js +24 -0
- package/dist/packages/combobox/combobox.d.ts +65 -45
- package/dist/packages/combobox/combobox.hydration.test.js +39 -1
- package/dist/packages/combobox/combobox.js +13 -13
- package/dist/packages/combobox/combobox.js.map +3 -3
- package/dist/packages/combobox/combobox.stories.js +28 -15
- package/dist/packages/combobox/combobox.test.js +110 -0
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/expandable/expandable.js +2 -2
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/icon/icon.d.ts +13 -3
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/react.d.ts +2 -2
- package/dist/packages/link/link.d.ts +15 -16
- package/dist/packages/link/link.js.map +2 -2
- package/dist/packages/modal-header/modal-header.js +1 -1
- package/dist/packages/modal-header/modal-header.js.map +3 -3
- package/dist/packages/pagination/pagination.js.map +3 -3
- package/dist/packages/pill/pill.js.map +3 -3
- package/dist/packages/select/select.js.map +3 -3
- package/dist/packages/step/step.js +1 -1
- package/dist/packages/step/step.js.map +3 -3
- package/dist/packages/toast/toast.js +3 -3
- package/dist/packages/toast/toast.js.map +3 -3
- package/dist/packages/toast/toast.stories.d.ts +1 -5
- package/dist/packages/toast/toast.stories.js +0 -17
- package/dist/web-types.json +129 -72
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
declare const WCheckbox_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* @parent w-checkbox-group
|
|
5
|
+
*/
|
|
3
6
|
export declare class WCheckbox extends WCheckbox_base {
|
|
4
7
|
#private;
|
|
5
8
|
static styles: import("lit").CSSResult[];
|
|
@@ -12,34 +15,60 @@ export declare class WCheckbox extends WCheckbox_base {
|
|
|
12
15
|
slotAssignment?: SlotAssignmentMode;
|
|
13
16
|
};
|
|
14
17
|
input: HTMLInputElement | null;
|
|
15
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The name of the checkbox.
|
|
20
|
+
*
|
|
21
|
+
* When the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name.
|
|
22
|
+
*/
|
|
16
23
|
set name(value: string | undefined);
|
|
17
24
|
get name(): string | undefined;
|
|
18
25
|
private _ownName;
|
|
19
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* The value submitted when the checkbox is checked.
|
|
28
|
+
*
|
|
29
|
+
* If no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value.
|
|
30
|
+
*/
|
|
20
31
|
value: string | null;
|
|
21
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Whether the checkbox is visually indeterminate.
|
|
34
|
+
*
|
|
35
|
+
* Use this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked.
|
|
36
|
+
*/
|
|
22
37
|
indeterminate: boolean;
|
|
23
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Whether the checkbox is checked.
|
|
40
|
+
*
|
|
41
|
+
* Checked checkboxes submit their value with form data. The property is reflected to the `checked` attribute.
|
|
42
|
+
*/
|
|
24
43
|
checked: boolean;
|
|
25
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Whether the checkbox is disabled.
|
|
46
|
+
*
|
|
47
|
+
* Disabled checkboxes cannot be focused, changed, or submitted with form data.
|
|
48
|
+
*/
|
|
26
49
|
disabled: boolean;
|
|
27
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Whether the checkbox must be checked before form submission.
|
|
52
|
+
*
|
|
53
|
+
* A required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`.
|
|
54
|
+
*/
|
|
28
55
|
required: boolean;
|
|
29
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Whether the checkbox is visually invalid.
|
|
58
|
+
*
|
|
59
|
+
* Use this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form.
|
|
60
|
+
*/
|
|
30
61
|
invalid: boolean;
|
|
31
62
|
/**
|
|
32
63
|
* Internal invalid state managed by parent checkbox-group.
|
|
33
64
|
* Non-reflecting to avoid DOM changes during hydration.
|
|
34
|
-
* @internal
|
|
35
65
|
*/
|
|
36
|
-
_groupInvalid
|
|
66
|
+
private _groupInvalid;
|
|
37
67
|
/**
|
|
38
68
|
* Internal name managed by parent checkbox-group.
|
|
39
69
|
* Non-reflecting to avoid DOM changes during hydration.
|
|
40
|
-
* @internal
|
|
41
70
|
*/
|
|
42
|
-
_groupName
|
|
71
|
+
private _groupName;
|
|
43
72
|
/** Computed invalid state: combines own invalid with group invalid */
|
|
44
73
|
get _computedInvalid(): boolean;
|
|
45
74
|
connectedCallback(): void;
|