@reitwagen/design-components 0.1.0 → 0.2.0

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.
@@ -24,8 +24,8 @@ const buttonVariants = (0, class_variance_authority_1.cva)("ui:flex ui:items-cen
24
24
  small: "ui:text-button3 ui:rounded-[10px] ui:h-[34px] ui:px-[14px] ui:py-[8px]",
25
25
  },
26
26
  disabled: {
27
- false: "ui:cursor-pointer",
28
27
  true: "ui:pointer-events-none",
28
+ false: "ui:cursor-pointer",
29
29
  },
30
30
  full: {
31
31
  true: "ui:flex-1 ui:w-full",
@@ -15,5 +15,8 @@ type ChipOwnProps = VariantProps<typeof chipVariants> & {
15
15
  };
16
16
  type ChipProps<C extends ElementType> = PolymorphicComponentProps<C, ChipOwnProps>;
17
17
  export declare function Chip<C extends ElementType = "button">({ className, as, children, variant, size, disabled, isSelected, isActive, leftContent, rightContent, ...props }: ChipProps<C>): import("react/jsx-runtime").JSX.Element;
18
+ export declare namespace Chip {
19
+ var displayName: string;
20
+ }
18
21
  export {};
19
22
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,QAAA,MAAM,YAAY;;;;;;8EA4HjB,CAAC;AAEF,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,KAAK,SAAS,CAAC,CAAC,SAAS,WAAW,IAAI,yBAAyB,CAC/D,CAAC,EACD,YAAY,CACb,CAAC;AAEF,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAAE,EACrD,SAAS,EACT,EAAE,EACF,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,CAAC,CAAC,2CAuBd"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,QAAA,MAAM,YAAY;;;;;;8EA4HjB,CAAC;AAEF,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,KAAK,SAAS,CAAC,CAAC,SAAS,WAAW,IAAI,yBAAyB,CAC/D,CAAC,EACD,YAAY,CACb,CAAC;AAEF,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAAE,EACrD,SAAS,EACT,EAAE,EACF,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,CAAC,CAAC,2CAuBd;yBAnCe,IAAI"}
@@ -17,16 +17,16 @@ const chipVariants = (0, class_variance_authority_1.cva)("ui:flex ui:items-cente
17
17
  small: "ui:text-button3 ui:h-[26px] ui:px-[10px] ui:py-[4.5px]",
18
18
  },
19
19
  disabled: {
20
- false: "ui:cursor-pointer",
21
20
  true: "ui:pointer-events-none",
21
+ false: "ui:cursor-pointer",
22
22
  },
23
23
  isSelected: {
24
- false: "",
25
24
  true: "",
25
+ false: "",
26
26
  },
27
27
  isActive: {
28
- false: "",
29
28
  true: "",
29
+ false: "",
30
30
  },
31
31
  },
32
32
  compoundVariants: [
@@ -136,3 +136,4 @@ function Chip({ className, as, children, variant, size, disabled, isSelected, is
136
136
  className,
137
137
  })), disabled: disabled || undefined, ...props, children: [leftContent, (0, jsx_runtime_1.jsx)("span", { children: children }), rightContent] }));
138
138
  }
139
+ Chip.displayName = "Chip";
@@ -46,6 +46,7 @@ declare const meta: {
46
46
  };
47
47
  export default meta;
48
48
  type Story = StoryObj<typeof meta>;
49
+ export declare const Variants: Story;
49
50
  export declare const Fill: Story;
50
51
  export declare const Line: Story;
51
52
  export declare const Text: Story;
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCmB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAmBlB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAkBlB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAmBlB,CAAC"}
1
+ {"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCmB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,KAqCtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAmBlB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAkBlB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAmBlB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Text = exports.Line = exports.Fill = void 0;
3
+ exports.Text = exports.Line = exports.Fill = exports.Variants = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Chip_1 = require("./Chip");
6
6
  const meta = {
@@ -44,6 +44,32 @@ const meta = {
44
44
  },
45
45
  };
46
46
  exports.default = meta;
47
+ exports.Variants = {
48
+ parameters: {
49
+ docs: {
50
+ description: {
51
+ story: `
52
+ - Chip의 variant 스타일을 변경하려면 <code>variant</code> 속성을 사용하세요. 사용할 수 있는 값에는 <code>fill</code>, <code>line</code>, <code>text</code> 가 있어요. 기본값은 <code>fill</code> 입니다.
53
+ `,
54
+ },
55
+ },
56
+ },
57
+ render: (props) => ((0, jsx_runtime_1.jsxs)("div", { className: "ui:flex ui:gap-2", children: [(0, jsx_runtime_1.jsx)(Chip_1.Chip, { variant: "fill", size: "large", ...props, children: props.children }), (0, jsx_runtime_1.jsx)(Chip_1.Chip, { variant: "line", size: "large", ...props, children: props.children }), (0, jsx_runtime_1.jsx)(Chip_1.Chip, { variant: "text", size: "small", ...props, children: props.children })] })),
58
+ args: {
59
+ children: "Button text",
60
+ disabled: false,
61
+ },
62
+ argTypes: {
63
+ isSelected: {
64
+ control: { type: "boolean" },
65
+ options: ["true", "false"],
66
+ },
67
+ isActive: {
68
+ control: { type: "boolean" },
69
+ options: ["true", "false"],
70
+ },
71
+ },
72
+ };
47
73
  exports.Fill = {
48
74
  render: (props) => ((0, jsx_runtime_1.jsx)(Chip_1.Chip, { variant: "fill", ...props, children: props.children })),
49
75
  args: {
@@ -0,0 +1,15 @@
1
+ import { ButtonHTMLAttributes } from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const toggleVariants: (props?: ({
4
+ disabled?: boolean | null | undefined;
5
+ checked?: boolean | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ interface ToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "disabled">, VariantProps<typeof toggleVariants> {
8
+ onCheckedChange?: (checked: boolean) => void;
9
+ }
10
+ export declare function Toggle({ checked, disabled, onCheckedChange, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare namespace Toggle {
12
+ var displayName: string;
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=Toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc;;;8EAmCnB,CAAC;AA6BF,UAAU,WACR,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,EAC/D,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,QAAQ,EACR,eAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,2CAkBb;yBAvBe,MAAM"}
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Toggle = Toggle;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const class_variance_authority_1 = require("class-variance-authority");
7
+ const style_1 = require("../../utils/style");
8
+ const toggleVariants = (0, class_variance_authority_1.cva)("ui:ring-0 ui:h-[31px] ui:w-[51px] ui:rounded-full ui:inline-flex ui:items-center ui:rounded-full ui:transition-colors ui:duration-100", {
9
+ variants: {
10
+ disabled: {
11
+ true: "ui:pointer-events-none",
12
+ false: "ui:cursor-pointer",
13
+ },
14
+ checked: {
15
+ true: "ui:bg-blue-700",
16
+ false: "ui:bg-gray-100",
17
+ },
18
+ },
19
+ compoundVariants: [
20
+ {
21
+ disabled: false,
22
+ checked: false,
23
+ className: "ui:active:bg-gray-200",
24
+ },
25
+ {
26
+ disabled: true,
27
+ checked: false,
28
+ className: "ui:bg-gray-50",
29
+ },
30
+ {
31
+ disabled: true,
32
+ checked: true,
33
+ className: "ui:bg-blue-300",
34
+ },
35
+ ],
36
+ defaultVariants: {
37
+ disabled: false,
38
+ checked: false,
39
+ },
40
+ });
41
+ const thumbVariants = (0, class_variance_authority_1.cva)("ui:bg-white ui:rounded-full ui:transition-transform", {
42
+ variants: {
43
+ disabled: {
44
+ true: "",
45
+ false: "",
46
+ },
47
+ checked: {
48
+ true: "ui:w-[25px] ui:h-[25px] ui:translate-x-6",
49
+ false: "ui:w-[21px] ui:h-[21px] ui:translate-x-1",
50
+ },
51
+ },
52
+ compoundVariants: [
53
+ {
54
+ disabled: false,
55
+ checked: false,
56
+ className: "ui:active:bg-gray-100",
57
+ },
58
+ ],
59
+ defaultVariants: {
60
+ disabled: false,
61
+ checked: false,
62
+ },
63
+ });
64
+ function Toggle({ checked, disabled, onCheckedChange, ...props }) {
65
+ return ((0, jsx_runtime_1.jsx)("button", { role: "switch", onClick: () => onCheckedChange?.(!checked), "aria-checked": Boolean(checked), className: (0, style_1.cn)(toggleVariants({
66
+ checked,
67
+ disabled,
68
+ })), disabled: disabled || undefined, ...props, children: (0, jsx_runtime_1.jsx)("span", { className: thumbVariants({ checked, disabled }) }) }));
69
+ }
70
+ Toggle.displayName = "Toggle";
@@ -0,0 +1,32 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import { Toggle } from "./Toggle";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Toggle;
6
+ tags: string[];
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ argTypes: {
15
+ disabled: {
16
+ control: {
17
+ type: "boolean";
18
+ };
19
+ options: string[];
20
+ };
21
+ checked: {
22
+ control: {
23
+ type: "boolean";
24
+ };
25
+ options: string[];
26
+ };
27
+ };
28
+ };
29
+ export default meta;
30
+ type Story = StoryObj<typeof meta>;
31
+ export declare const Controlled: Story;
32
+ //# sourceMappingURL=Toggle.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAwBqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAanC,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Controlled = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const test_1 = require("@storybook/test");
7
+ const Toggle_1 = require("./Toggle");
8
+ const meta = {
9
+ title: "Components/Toggle",
10
+ component: Toggle_1.Toggle,
11
+ tags: ["autodocs"],
12
+ parameters: {
13
+ docs: {
14
+ description: {
15
+ component: `
16
+ 즉각적인 상태 전환(켜기/끄기)을 위한 요소로, 활성화/비활성화 기능을 나타냅니다.
17
+
18
+ `,
19
+ },
20
+ },
21
+ },
22
+ argTypes: {
23
+ disabled: {
24
+ control: { type: "boolean" },
25
+ options: ["true", "false"],
26
+ },
27
+ checked: {
28
+ control: { type: "boolean" },
29
+ options: ["true", "false"],
30
+ },
31
+ },
32
+ };
33
+ exports.default = meta;
34
+ function ToggleWithControlled(props) {
35
+ const [checked, setChecked] = (0, react_1.useState)(props.checked);
36
+ return ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { ...props, checked: checked, onCheckedChange: () => setChecked(!checked) }));
37
+ }
38
+ exports.Controlled = {
39
+ render: (props) => (0, jsx_runtime_1.jsx)(ToggleWithControlled, { ...props }),
40
+ args: {
41
+ checked: false,
42
+ disabled: false,
43
+ },
44
+ play: async ({ canvasElement }) => {
45
+ const canvas = (0, test_1.within)(canvasElement);
46
+ const toggle = canvas.getByRole("switch");
47
+ await test_1.userEvent.click(toggle);
48
+ },
49
+ };
@@ -0,0 +1,2 @@
1
+ export { Toggle } from "./Toggle";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Toggle = void 0;
4
+ var Toggle_1 = require("./Toggle");
5
+ Object.defineProperty(exports, "Toggle", { enumerable: true, get: function () { return Toggle_1.Toggle; } });
package/dist/index.css CHANGED
@@ -277,9 +277,21 @@
277
277
  .ui\:grid {
278
278
  display: grid;
279
279
  }
280
+ .ui\:inline-flex {
281
+ display: inline-flex;
282
+ }
283
+ .ui\:h-\[21px\] {
284
+ height: 21px;
285
+ }
286
+ .ui\:h-\[25px\] {
287
+ height: 25px;
288
+ }
280
289
  .ui\:h-\[26px\] {
281
290
  height: 26px;
282
291
  }
292
+ .ui\:h-\[31px\] {
293
+ height: 31px;
294
+ }
283
295
  .ui\:h-\[32px\] {
284
296
  height: 32px;
285
297
  }
@@ -298,6 +310,15 @@
298
310
  .ui\:h-px {
299
311
  height: 1px;
300
312
  }
313
+ .ui\:w-\[21px\] {
314
+ width: 21px;
315
+ }
316
+ .ui\:w-\[25px\] {
317
+ width: 25px;
318
+ }
319
+ .ui\:w-\[51px\] {
320
+ width: 51px;
321
+ }
301
322
  .ui\:w-full {
302
323
  width: 100%;
303
324
  }
@@ -307,6 +328,14 @@
307
328
  .ui\:flex-1 {
308
329
  flex: 1;
309
330
  }
331
+ .ui\:translate-x-1 {
332
+ --tw-translate-x: calc(var(--ui-spacing) * 1);
333
+ translate: var(--tw-translate-x) var(--tw-translate-y);
334
+ }
335
+ .ui\:translate-x-6 {
336
+ --tw-translate-x: calc(var(--ui-spacing) * 6);
337
+ translate: var(--tw-translate-x) var(--tw-translate-y);
338
+ }
310
339
  .ui\:cursor-pointer {
311
340
  cursor: pointer;
312
341
  }
@@ -383,6 +412,9 @@
383
412
  .ui\:bg-blue-600 {
384
413
  background-color: var(--ui-color-blue-600);
385
414
  }
415
+ .ui\:bg-blue-700 {
416
+ background-color: var(--ui-color-blue-700);
417
+ }
386
418
  .ui\:bg-gray-50 {
387
419
  background-color: var(--ui-color-gray-50);
388
420
  }
@@ -599,11 +631,20 @@
599
631
  .ui\:text-white {
600
632
  color: var(--ui-color-white);
601
633
  }
634
+ .ui\:ring-0 {
635
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
636
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
637
+ }
602
638
  .ui\:transition-colors {
603
639
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
604
640
  transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
605
641
  transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
606
642
  }
643
+ .ui\:transition-transform {
644
+ transition-property: transform, translate, scale, rotate;
645
+ transition-timing-function: var(--tw-ease, var(--ui-default-transition-timing-function));
646
+ transition-duration: var(--tw-duration, var(--ui-default-transition-duration));
647
+ }
607
648
  .ui\:duration-100 {
608
649
  --tw-duration: 100ms;
609
650
  transition-duration: 100ms;
@@ -823,11 +864,91 @@
823
864
  }
824
865
  }
825
866
  @layer utilities;
867
+ @property --tw-translate-x {
868
+ syntax: "*";
869
+ inherits: false;
870
+ initial-value: 0;
871
+ }
872
+ @property --tw-translate-y {
873
+ syntax: "*";
874
+ inherits: false;
875
+ initial-value: 0;
876
+ }
877
+ @property --tw-translate-z {
878
+ syntax: "*";
879
+ inherits: false;
880
+ initial-value: 0;
881
+ }
826
882
  @property --tw-border-style {
827
883
  syntax: "*";
828
884
  inherits: false;
829
885
  initial-value: solid;
830
886
  }
887
+ @property --tw-shadow {
888
+ syntax: "*";
889
+ inherits: false;
890
+ initial-value: 0 0 #0000;
891
+ }
892
+ @property --tw-shadow-color {
893
+ syntax: "*";
894
+ inherits: false;
895
+ }
896
+ @property --tw-shadow-alpha {
897
+ syntax: "<percentage>";
898
+ inherits: false;
899
+ initial-value: 100%;
900
+ }
901
+ @property --tw-inset-shadow {
902
+ syntax: "*";
903
+ inherits: false;
904
+ initial-value: 0 0 #0000;
905
+ }
906
+ @property --tw-inset-shadow-color {
907
+ syntax: "*";
908
+ inherits: false;
909
+ }
910
+ @property --tw-inset-shadow-alpha {
911
+ syntax: "<percentage>";
912
+ inherits: false;
913
+ initial-value: 100%;
914
+ }
915
+ @property --tw-ring-color {
916
+ syntax: "*";
917
+ inherits: false;
918
+ }
919
+ @property --tw-ring-shadow {
920
+ syntax: "*";
921
+ inherits: false;
922
+ initial-value: 0 0 #0000;
923
+ }
924
+ @property --tw-inset-ring-color {
925
+ syntax: "*";
926
+ inherits: false;
927
+ }
928
+ @property --tw-inset-ring-shadow {
929
+ syntax: "*";
930
+ inherits: false;
931
+ initial-value: 0 0 #0000;
932
+ }
933
+ @property --tw-ring-inset {
934
+ syntax: "*";
935
+ inherits: false;
936
+ }
937
+ @property --tw-ring-offset-width {
938
+ syntax: "<length>";
939
+ inherits: false;
940
+ initial-value: 0px;
941
+ }
942
+ @property --tw-ring-offset-color {
943
+ syntax: "*";
944
+ inherits: false;
945
+ initial-value: #fff;
946
+ }
947
+ @property --tw-ring-offset-shadow {
948
+ syntax: "*";
949
+ inherits: false;
950
+ initial-value: 0 0 #0000;
951
+ }
831
952
  @property --tw-duration {
832
953
  syntax: "*";
833
954
  inherits: false;
@@ -835,7 +956,24 @@
835
956
  @layer properties {
836
957
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
837
958
  *, ::before, ::after, ::backdrop {
959
+ --tw-translate-x: 0;
960
+ --tw-translate-y: 0;
961
+ --tw-translate-z: 0;
838
962
  --tw-border-style: solid;
963
+ --tw-shadow: 0 0 #0000;
964
+ --tw-shadow-color: initial;
965
+ --tw-shadow-alpha: 100%;
966
+ --tw-inset-shadow: 0 0 #0000;
967
+ --tw-inset-shadow-color: initial;
968
+ --tw-inset-shadow-alpha: 100%;
969
+ --tw-ring-color: initial;
970
+ --tw-ring-shadow: 0 0 #0000;
971
+ --tw-inset-ring-color: initial;
972
+ --tw-inset-ring-shadow: 0 0 #0000;
973
+ --tw-ring-inset: initial;
974
+ --tw-ring-offset-width: 0px;
975
+ --tw-ring-offset-color: #fff;
976
+ --tw-ring-offset-shadow: 0 0 #0000;
839
977
  --tw-duration: initial;
840
978
  }
841
979
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./components/Button";
2
2
  export * from "./components/Chip";
3
+ export * from "./components/Toggle";
3
4
  export * from "./components/Icons";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* ------------------------------- COMPONENTS ------------------------------- */
18
18
  __exportStar(require("./components/Button"), exports);
19
19
  __exportStar(require("./components/Chip"), exports);
20
+ __exportStar(require("./components/Toggle"), exports);
20
21
  /* --------------------------------- ICONS ---------------------------------- */
21
22
  __exportStar(require("./components/Icons"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reitwagen/design-components",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
@@ -32,6 +32,7 @@
32
32
  "devDependencies": {
33
33
  "@storybook/addon-docs": "^10.0.7",
34
34
  "@storybook/react": "^10.0.7",
35
+ "@storybook/test": "^8.6.14",
35
36
  "@svgr/core": "^8.1.0",
36
37
  "@svgr/plugin-jsx": "^8.1.0",
37
38
  "@svgr/plugin-prettier": "^8.1.0",