@warp-ds/elements 2.3.0-next.7 → 2.3.0-next.8
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 +28 -0
- package/dist/index.d.ts +3 -0
- package/dist/packages/dead-toggle/index.js +2 -3
- package/dist/packages/dead-toggle/index.js.map +2 -2
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +10 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +2 -3
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +2 -2
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +3 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +14 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +2 -0
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +2 -0
- package/dist/packages/rip-and-tear-checkbox/react.js +5 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js +2 -3
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +2 -2
- package/dist/packages/rip-and-tear-radio/radio.js +2 -3
- package/dist/packages/rip-and-tear-radio/radio.js.map +2 -2
- package/dist/packages/rip-and-tear-radio/radio.stories.js +2 -3
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +2 -2
- package/dist/packages/toggle-styles.js +2 -3
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -9,3 +9,17 @@ export default {
|
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
11
|
export const Default = {};
|
|
12
|
+
export const Invalid = {
|
|
13
|
+
render: () => html `<w-checkbox name="invalidfoo" value="bar" invalid>Invalid checkbox</w-checkbox>`,
|
|
14
|
+
};
|
|
15
|
+
export const Disabled = {
|
|
16
|
+
render: () => html `<w-checkbox name="disabledfoo" value="bar" disabled>Disabled checkbox</w-checkbox>`,
|
|
17
|
+
};
|
|
18
|
+
export const BunchOfCheckboxes = {
|
|
19
|
+
render: () => html `
|
|
20
|
+
<w-checkbox-group>
|
|
21
|
+
<w-checkbox name="group" value="foo">Foo</w-checkbox>
|
|
22
|
+
<w-checkbox name="group" value="bar">Bar</w-checkbox>
|
|
23
|
+
</w-checkbox-group>
|
|
24
|
+
`,
|
|
25
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { WCheckbox } from './checkbox.js';
|
|
2
|
+
import { WCheckboxGroup } from './checkbox-group.js';
|
|
2
3
|
export declare const Checkbox: import("@lit/react").ReactWebComponent<WCheckbox, {
|
|
3
4
|
onChange: string;
|
|
4
5
|
onchange: string;
|
|
5
6
|
}>;
|
|
7
|
+
export declare const CheckboxGroup: import("@lit/react").ReactWebComponent<WCheckboxGroup, {}>;
|
|
@@ -20,7 +20,6 @@ var X=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var V=i=>{thro
|
|
|
20
20
|
display: grid;
|
|
21
21
|
grid-template-columns: 2rem max-content;
|
|
22
22
|
gap: 8px;
|
|
23
|
-
padding: 0.2rem 0;
|
|
24
23
|
}
|
|
25
24
|
.hide-toggle {
|
|
26
25
|
position: absolute;
|
|
@@ -43,7 +42,7 @@ var X=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var V=i=>{thro
|
|
|
43
42
|
height: 2rem;
|
|
44
43
|
width: 2rem;
|
|
45
44
|
background-color: var(--w-s-color-background);
|
|
46
|
-
border-color: var(--w-s-color-border);
|
|
45
|
+
border-color: var(--w-s-color-border-strong);
|
|
47
46
|
color: var(--w-s-color-icon-inverted);
|
|
48
47
|
font-weight: 700;
|
|
49
48
|
text-align: center;
|
|
@@ -54,7 +53,7 @@ var X=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var V=i=>{thro
|
|
|
54
53
|
position: relative;
|
|
55
54
|
}
|
|
56
55
|
:host([type='checkbox']) .control {
|
|
57
|
-
border-radius:
|
|
56
|
+
border-radius: 4px;
|
|
58
57
|
}
|
|
59
58
|
.checkbox:has(:checked, :indeterminate),
|
|
60
59
|
:host([type='checkbox'][checked]) .control,
|