@warp-ds/elements 2.5.0-next.1 → 2.5.0-next.2
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 +80 -2535
- package/dist/index.d.ts +51 -1279
- package/dist/packages/icon/icon.d.ts +0 -5
- package/dist/packages/icon/icon.js +24 -98
- package/dist/packages/icon/icon.js.map +7 -0
- package/dist/web-types.json +36 -683
- package/package.json +12 -60
- package/dist/packages/checkbox/checkbox.d.ts +0 -66
- package/dist/packages/checkbox/checkbox.js +0 -2591
- package/dist/packages/checkbox/checkbox.js.map +0 -7
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +0 -12
- package/dist/packages/checkbox/checkbox.react.stories.js +0 -10
- package/dist/packages/checkbox/checkbox.stories.d.ts +0 -12
- package/dist/packages/checkbox/checkbox.stories.js +0 -26
- package/dist/packages/checkbox/react.d.ts +0 -5
- package/dist/packages/checkbox/react.js +0 -15
- package/dist/packages/checkbox/styles.d.ts +0 -0
- package/dist/packages/checkbox/styles.js +0 -0
- package/dist/packages/checkbox-group/checkbox-group.d.ts +0 -10
- package/dist/packages/checkbox-group/checkbox-group.js +0 -7
- package/dist/packages/checkbox-group/checkbox-group.js.map +0 -7
- package/dist/packages/checkbox-group/react.d.ts +0 -2
- package/dist/packages/checkbox-group/react.js +0 -11
- package/dist/packages/dead-toggle/dead-toggle.d.ts +0 -17
- package/dist/packages/dead-toggle/dead-toggle.js +0 -2547
- package/dist/packages/dead-toggle/dead-toggle.js.map +0 -7
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +0 -15
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +0 -34
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -14
- package/dist/packages/dead-toggle/dead-toggle.stories.js +0 -45
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/dead-toggle/dead-toggle.test.js +0 -9
- package/dist/packages/dead-toggle/react.d.ts +0 -2
- package/dist/packages/dead-toggle/react.js +0 -11
- package/dist/packages/pagination/locales/da/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/da/messages.mjs +0 -1
- package/dist/packages/pagination/locales/en/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/en/messages.mjs +0 -1
- package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
- package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
- package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
- package/dist/packages/pagination/pagination.d.ts +0 -32
- package/dist/packages/pagination/pagination.js +0 -2500
- package/dist/packages/pagination/pagination.js.map +0 -7
- package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
- package/dist/packages/pagination/pagination.react.stories.js +0 -45
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.stories.js +0 -56
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/pagination.test.js +0 -76
- package/dist/packages/pagination/react.d.ts +0 -5
- package/dist/packages/pagination/react.js +0 -15
- package/dist/packages/pagination/styles.d.ts +0 -1
- package/dist/packages/pagination/styles.js +0 -2
- package/dist/packages/radio/base-element.d.ts +0 -46
- package/dist/packages/radio/base-element.js +0 -100
- package/dist/packages/radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/radio/custom-error-validator.js +0 -22
- package/dist/packages/radio/form-associated-element.d.ts +0 -103
- package/dist/packages/radio/form-associated-element.js +0 -282
- package/dist/packages/radio/host-styles.d.ts +0 -1
- package/dist/packages/radio/host-styles.js +0 -12
- package/dist/packages/radio/invalid.d.ts +0 -8
- package/dist/packages/radio/invalid.js +0 -5
- package/dist/packages/radio/math.d.ts +0 -1
- package/dist/packages/radio/math.js +0 -4
- package/dist/packages/radio/radio-styles.d.ts +0 -0
- package/dist/packages/radio/radio-styles.js +0 -0
- package/dist/packages/radio/radio.d.ts +0 -38
- package/dist/packages/radio/radio.js +0 -2562
- package/dist/packages/radio/radio.js.map +0 -7
- package/dist/packages/radio/radio.react.stories.d.ts +0 -9
- package/dist/packages/radio/radio.react.stories.js +0 -10
- package/dist/packages/radio/radio.stories.d.ts +0 -15
- package/dist/packages/radio/radio.stories.js +0 -61
- package/dist/packages/radio/react.d.ts +0 -2
- package/dist/packages/radio/react.js +0 -11
- package/dist/packages/radio/required-validator.d.ts +0 -11
- package/dist/packages/radio/required-validator.js +0 -34
- package/dist/packages/radio/slot.d.ts +0 -20
- package/dist/packages/radio/slot.js +0 -71
- package/dist/packages/radio/watch.d.ts +0 -26
- package/dist/packages/radio/watch.js +0 -39
- package/dist/packages/radio-group/radio-group-styles.d.ts +0 -1
- package/dist/packages/radio-group/radio-group-styles.js +0 -59
- package/dist/packages/radio-group/radio-group.d.ts +0 -72
- package/dist/packages/radio-group/radio-group.js +0 -2648
- package/dist/packages/radio-group/radio-group.js.map +0 -7
- package/dist/packages/radio-group/react.d.ts +0 -7
- package/dist/packages/radio-group/react.js +0 -17
- package/dist/packages/slider/Slider.d.ts +0 -2
- package/dist/packages/slider/Slider.js +0 -8
- package/dist/packages/slider/index.d.ts +0 -2
- package/dist/packages/slider/index.js +0 -2
- package/dist/packages/slider/locales/da/messages.d.mts +0 -1
- package/dist/packages/slider/locales/da/messages.mjs +0 -1
- package/dist/packages/slider/locales/en/messages.d.mts +0 -1
- package/dist/packages/slider/locales/en/messages.mjs +0 -1
- package/dist/packages/slider/locales/fi/messages.d.mts +0 -1
- package/dist/packages/slider/locales/fi/messages.mjs +0 -1
- package/dist/packages/slider/locales/nb/messages.d.mts +0 -1
- package/dist/packages/slider/locales/nb/messages.mjs +0 -1
- package/dist/packages/slider/locales/sv/messages.d.mts +0 -1
- package/dist/packages/slider/locales/sv/messages.mjs +0 -1
- package/dist/packages/slider/react.d.ts +0 -3
- package/dist/packages/slider/react.js +0 -13
- package/dist/packages/slider/slider.d.ts +0 -55
- package/dist/packages/slider/slider.js +0 -2632
- package/dist/packages/slider/slider.js.map +0 -7
- package/dist/packages/slider/slider.react.stories.d.ts +0 -19
- package/dist/packages/slider/slider.react.stories.js +0 -140
- package/dist/packages/slider/slider.stories.d.ts +0 -22
- package/dist/packages/slider/slider.stories.js +0 -405
- package/dist/packages/slider/slider.test.d.ts +0 -5
- package/dist/packages/slider/slider.test.js +0 -112
- package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider.styles.js +0 -148
- package/dist/packages/slider/styles.d.ts +0 -1
- package/dist/packages/slider/styles.js +0 -2
- package/dist/packages/slider-thumb/SliderThumb.d.ts +0 -2
- package/dist/packages/slider-thumb/SliderThumb.js +0 -8
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.d.ts +0 -2
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.js +0 -3
- package/dist/packages/slider-thumb/react.d.ts +0 -6
- package/dist/packages/slider-thumb/react.js +0 -15
- package/dist/packages/slider-thumb/slider-thumb.d.ts +0 -63
- package/dist/packages/slider-thumb/slider-thumb.js +0 -2748
- package/dist/packages/slider-thumb/slider-thumb.js.map +0 -7
- package/dist/packages/slider-thumb/styles/w-slider-thumb.styles.d.ts +0 -1
- package/dist/packages/slider-thumb/styles/w-slider-thumb.styles.js +0 -175
- package/dist/packages/step/locales/da/messages.d.mts +0 -1
- package/dist/packages/step/locales/da/messages.mjs +0 -1
- package/dist/packages/step/locales/en/messages.d.mts +0 -1
- package/dist/packages/step/locales/en/messages.mjs +0 -1
- package/dist/packages/step/locales/fi/messages.d.mts +0 -1
- package/dist/packages/step/locales/fi/messages.mjs +0 -1
- package/dist/packages/step/locales/nb/messages.d.mts +0 -1
- package/dist/packages/step/locales/nb/messages.mjs +0 -1
- package/dist/packages/step/locales/sv/messages.d.mts +0 -1
- package/dist/packages/step/locales/sv/messages.mjs +0 -1
- package/dist/packages/step/react.d.ts +0 -2
- package/dist/packages/step/react.js +0 -11
- package/dist/packages/step/step.d.ts +0 -22
- package/dist/packages/step/step.js +0 -2461
- package/dist/packages/step/step.js.map +0 -7
- package/dist/packages/step-indicator/index.d.ts +0 -2
- package/dist/packages/step-indicator/index.js +0 -2
- package/dist/packages/step-indicator/react.d.ts +0 -3
- package/dist/packages/step-indicator/react.js +0 -13
- package/dist/packages/step-indicator/step-indicator.d.ts +0 -14
- package/dist/packages/step-indicator/step-indicator.js +0 -2445
- package/dist/packages/step-indicator/step-indicator.js.map +0 -7
- package/dist/packages/step-indicator/stepindicator.react.stories.d.ts +0 -15
- package/dist/packages/step-indicator/stepindicator.react.stories.js +0 -112
- package/dist/packages/step-indicator/stepindicator.stories.d.ts +0 -13
- package/dist/packages/step-indicator/stepindicator.stories.js +0 -173
- package/dist/packages/step-indicator/styles.d.ts +0 -1
- package/dist/packages/step-indicator/styles.js +0 -2
- package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/da/messages.mjs +0 -1
- package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/en/messages.mjs +0 -1
- package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
- package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
- package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
- package/dist/packages/textarea/react.d.ts +0 -11
- package/dist/packages/textarea/react.js +0 -21
- package/dist/packages/textarea/styles.d.ts +0 -1
- package/dist/packages/textarea/styles.js +0 -2
- package/dist/packages/textarea/textarea.d.ts +0 -49
- package/dist/packages/textarea/textarea.js +0 -2475
- package/dist/packages/textarea/textarea.js.map +0 -7
- package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
- package/dist/packages/textarea/textarea.react.stories.js +0 -41
- package/dist/packages/textarea/textarea.stories.d.ts +0 -19
- package/dist/packages/textarea/textarea.stories.js +0 -85
- package/dist/packages/textarea/textarea.test.d.ts +0 -1
- package/dist/packages/textarea/textarea.test.js +0 -68
- package/dist/packages/toggle-styles.d.ts +0 -1
- package/dist/packages/toggle-styles.js +0 -108
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.5.0-next.
|
|
4
|
+
"version": "2.5.0-next.2",
|
|
5
5
|
"packageManager": "pnpm@10.20.0",
|
|
6
6
|
"description": "Custom elements for Warp",
|
|
7
7
|
"exports": {
|
|
@@ -77,6 +77,14 @@
|
|
|
77
77
|
"types": "./dist/packages/modal/react.d.ts",
|
|
78
78
|
"import": "./dist/packages/modal/react.js"
|
|
79
79
|
},
|
|
80
|
+
"./react/modal-header": {
|
|
81
|
+
"types": "./dist/packages/modal-header/react.d.ts",
|
|
82
|
+
"import": "./dist/packages/modal-header/react.js"
|
|
83
|
+
},
|
|
84
|
+
"./react/modal-footer": {
|
|
85
|
+
"types": "./dist/packages/modal-footer/react.d.ts",
|
|
86
|
+
"import": "./dist/packages/modal-footer/react.js"
|
|
87
|
+
},
|
|
80
88
|
"./react/pill": {
|
|
81
89
|
"types": "./dist/packages/pill/react.d.ts",
|
|
82
90
|
"import": "./dist/packages/pill/react.js"
|
|
@@ -97,50 +105,6 @@
|
|
|
97
105
|
"types": "./dist/packages/tabs/react.d.ts",
|
|
98
106
|
"import": "./dist/packages/tabs/react.js"
|
|
99
107
|
},
|
|
100
|
-
"./react/checkbox": {
|
|
101
|
-
"types": "./dist/packages/checkbox/react.d.ts",
|
|
102
|
-
"import": "./dist/packages/checkbox/react.js"
|
|
103
|
-
},
|
|
104
|
-
"./react/dead-toggle": {
|
|
105
|
-
"types": "./dist/packages/dead-toggle/react.d.ts",
|
|
106
|
-
"import": "./dist/packages/dead-toggle/react.js"
|
|
107
|
-
},
|
|
108
|
-
"./react/page-indicator": {
|
|
109
|
-
"types": "./dist/packages/page-indicator/react.d.ts",
|
|
110
|
-
"import": "./dist/packages/page-indicator/react.js"
|
|
111
|
-
},
|
|
112
|
-
"./react/modal-header": {
|
|
113
|
-
"types": "./dist/packages/modal-header/react.d.ts",
|
|
114
|
-
"import": "./dist/packages/modal-header/react.js"
|
|
115
|
-
},
|
|
116
|
-
"./react/modal-footer": {
|
|
117
|
-
"types": "./dist/packages/modal-footer/react.d.ts",
|
|
118
|
-
"import": "./dist/packages/modal-footer/react.js"
|
|
119
|
-
},
|
|
120
|
-
"./react/toast-container": {
|
|
121
|
-
"types": "./dist/packages/toast-container/react.d.ts",
|
|
122
|
-
"import": "./dist/packages/toast-container/react.js"
|
|
123
|
-
},
|
|
124
|
-
"./react/checkbox-group": {
|
|
125
|
-
"types": "./dist/packages/checkbox-group/react.d.ts",
|
|
126
|
-
"import": "./dist/packages/checkbox-group/react.js"
|
|
127
|
-
},
|
|
128
|
-
"./react/radio-group": {
|
|
129
|
-
"types": "./dist/packages/radio-group/react.d.ts",
|
|
130
|
-
"import": "./dist/packages/radio-group/react.js"
|
|
131
|
-
},
|
|
132
|
-
"./react/slider-thumb": {
|
|
133
|
-
"types": "./dist/packages/slider-thumb/react.d.ts",
|
|
134
|
-
"import": "./dist/packages/slider-thumb/react.js"
|
|
135
|
-
},
|
|
136
|
-
"./react/step-indicator": {
|
|
137
|
-
"types": "./dist/packages/step-indicator/react.d.ts",
|
|
138
|
-
"import": "./dist/packages/step-indicator/react.js"
|
|
139
|
-
},
|
|
140
|
-
"./react/step": {
|
|
141
|
-
"types": "./dist/packages/step/react.d.ts",
|
|
142
|
-
"import": "./dist/packages/step/react.js"
|
|
143
|
-
},
|
|
144
108
|
"./react/tab": {
|
|
145
109
|
"types": "./dist/packages/tab/react.d.ts",
|
|
146
110
|
"import": "./dist/packages/tab/react.js"
|
|
@@ -149,21 +113,9 @@
|
|
|
149
113
|
"types": "./dist/packages/tab-panel/react.d.ts",
|
|
150
114
|
"import": "./dist/packages/tab-panel/react.js"
|
|
151
115
|
},
|
|
152
|
-
"./react/
|
|
153
|
-
"types": "./dist/packages/
|
|
154
|
-
"import": "./dist/packages/
|
|
155
|
-
},
|
|
156
|
-
"./react/radio": {
|
|
157
|
-
"types": "./dist/packages/radio/react.d.ts",
|
|
158
|
-
"import": "./dist/packages/radio/react.js"
|
|
159
|
-
},
|
|
160
|
-
"./react/slider": {
|
|
161
|
-
"types": "./dist/packages/slider/react.d.ts",
|
|
162
|
-
"import": "./dist/packages/slider/react.js"
|
|
163
|
-
},
|
|
164
|
-
"./react/textarea": {
|
|
165
|
-
"types": "./dist/packages/textarea/react.d.ts",
|
|
166
|
-
"import": "./dist/packages/textarea/react.js"
|
|
116
|
+
"./react/page-indicator": {
|
|
117
|
+
"types": "./dist/packages/page-indicator/react.d.ts",
|
|
118
|
+
"import": "./dist/packages/page-indicator/react.js"
|
|
167
119
|
},
|
|
168
120
|
"./react/*": {
|
|
169
121
|
"types": "./dist/packages/*/react.d.ts",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { PropertyValues } from 'lit';
|
|
2
|
-
import { BaseFormAssociatedElement } from '../radio/form-associated-element';
|
|
3
|
-
import '@warp-ds/icons/elements/check-16';
|
|
4
|
-
export declare class WCheckbox extends BaseFormAssociatedElement {
|
|
5
|
-
static css: import("lit").CSSResult[];
|
|
6
|
-
static shadowRootOptions: {
|
|
7
|
-
delegatesFocus: boolean;
|
|
8
|
-
mode: ShadowRootMode;
|
|
9
|
-
serializable?: boolean;
|
|
10
|
-
slotAssignment?: SlotAssignmentMode;
|
|
11
|
-
};
|
|
12
|
-
static get validators(): import("../radio/form-associated-element").Validator<BaseFormAssociatedElement>[];
|
|
13
|
-
private readonly hasSlotController;
|
|
14
|
-
input: HTMLInputElement;
|
|
15
|
-
title: string;
|
|
16
|
-
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
17
|
-
name: string;
|
|
18
|
-
private _value;
|
|
19
|
-
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
20
|
-
get value(): string | null;
|
|
21
|
-
set value(val: string | null);
|
|
22
|
-
/** The checkbox's size. */
|
|
23
|
-
size: 'small' | 'medium' | 'large';
|
|
24
|
-
/** Disables the checkbox. */
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
28
|
-
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
29
|
-
*/
|
|
30
|
-
indeterminate: boolean;
|
|
31
|
-
/** Draws the checkbox in a checked state. */
|
|
32
|
-
checked: boolean;
|
|
33
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
34
|
-
defaultChecked: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
37
|
-
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
38
|
-
* the same document or shadow root for this to work.
|
|
39
|
-
*/
|
|
40
|
-
form: any;
|
|
41
|
-
/** Makes the checkbox a required field. */
|
|
42
|
-
required: boolean;
|
|
43
|
-
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
44
|
-
hint: string;
|
|
45
|
-
connectedCallback(): void;
|
|
46
|
-
private setInitialAttributes;
|
|
47
|
-
private handleClick;
|
|
48
|
-
handleDefaultCheckedChange(): void;
|
|
49
|
-
handleValueOrCheckedChange(): void;
|
|
50
|
-
handleStateChange(): void;
|
|
51
|
-
handleDisabledChange(): void;
|
|
52
|
-
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
53
|
-
formResetCallback(): void;
|
|
54
|
-
/** Simulates a click on the checkbox. */
|
|
55
|
-
click(): void;
|
|
56
|
-
/** Sets focus on the checkbox. */
|
|
57
|
-
focus(options?: FocusOptions): void;
|
|
58
|
-
/** Removes focus from the checkbox. */
|
|
59
|
-
blur(): void;
|
|
60
|
-
render(): import("lit").TemplateResult<1>;
|
|
61
|
-
}
|
|
62
|
-
declare global {
|
|
63
|
-
interface HTMLElementTagNameMap {
|
|
64
|
-
'w-checkbox': WCheckbox;
|
|
65
|
-
}
|
|
66
|
-
}
|