@warp-ds/elements 2.3.0-next.7 → 2.3.0-next.9

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.
Files changed (29) hide show
  1. package/dist/custom-elements.json +28 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/packages/dead-toggle/index.js +2 -3
  4. package/dist/packages/dead-toggle/index.js.map +2 -2
  5. package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +10 -0
  6. package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +7 -0
  7. package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +7 -0
  8. package/dist/packages/rip-and-tear-checkbox/checkbox.js +2 -3
  9. package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +2 -2
  10. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +3 -0
  11. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +14 -0
  12. package/dist/packages/rip-and-tear-checkbox/index.js +2 -0
  13. package/dist/packages/rip-and-tear-checkbox/react.d.ts +2 -0
  14. package/dist/packages/rip-and-tear-checkbox/react.js +5 -0
  15. package/dist/packages/rip-and-tear-radio/radio-group.js +2 -3
  16. package/dist/packages/rip-and-tear-radio/radio-group.js.map +2 -2
  17. package/dist/packages/rip-and-tear-radio/radio.js +2 -3
  18. package/dist/packages/rip-and-tear-radio/radio.js.map +2 -2
  19. package/dist/packages/rip-and-tear-radio/radio.stories.js +2 -3
  20. package/dist/packages/rip-and-tear-radio/radio.stories.js.map +2 -2
  21. package/dist/packages/tabs/tab.js +4 -3
  22. package/dist/packages/tabs/tab.js.map +2 -2
  23. package/dist/packages/tabs/tabs.js +5 -5
  24. package/dist/packages/tabs/tabs.js.map +3 -3
  25. package/dist/packages/tabs/tabs.stories.d.ts +3 -0
  26. package/dist/packages/tabs/tabs.stories.js +16 -7
  27. package/dist/packages/toggle-styles.js +2 -3
  28. package/dist/web-types.json +1 -1
  29. package/package.json +1 -1
@@ -6,3 +6,6 @@ declare const _default: {
6
6
  };
7
7
  export default _default;
8
8
  export declare const Default: StoryObj;
9
+ export declare const Invalid: StoryObj;
10
+ export declare const Disabled: StoryObj;
11
+ export declare const BunchOfCheckboxes: StoryObj;
@@ -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,4 +1,6 @@
1
1
  import { WCheckbox } from './checkbox';
2
+ import { WCheckboxGroup } from './checkbox-group';
2
3
  if (!customElements.get('w-checkbox')) {
3
4
  customElements.define('w-checkbox', WCheckbox);
5
+ customElements.define('w-checkbox-group', WCheckboxGroup);
4
6
  }
@@ -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, {}>;
@@ -13,3 +13,8 @@ export const Checkbox = createComponent({
13
13
  onchange: 'change',
14
14
  },
15
15
  });
16
+ export const CheckboxGroup = createComponent({
17
+ tagName: 'w-checkbox-group',
18
+ elementClass: Component,
19
+ react: React,
20
+ });
@@ -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: 2px;
56
+ border-radius: 4px;
58
57
  }
59
58
  .checkbox:has(:checked, :indeterminate),
60
59
  :host([type='checkbox'][checked]) .control,