@szum-tech/design-system 2.6.0 → 3.0.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.
Files changed (126) hide show
  1. package/dist/chunk-2Y2ZCPNV.cjs +61 -0
  2. package/dist/chunk-3376ZTRC.cjs +2 -0
  3. package/dist/chunk-3KMXFN6M.cjs +141 -0
  4. package/dist/chunk-5AA4IE2T.cjs +27 -0
  5. package/dist/chunk-5F2Y65JH.js +32 -0
  6. package/dist/chunk-6BSR3O2J.js +53 -0
  7. package/dist/chunk-BYXBJQAS.js +1 -0
  8. package/dist/{chunk-5RNHEHRL.js → chunk-DP7UEOTA.js} +173 -176
  9. package/dist/chunk-HCHVDUI6.cjs +34 -0
  10. package/dist/chunk-HD7ZDQWW.js +173 -0
  11. package/dist/chunk-I3RSTJP6.js +20 -0
  12. package/dist/chunk-I7AV5IQO.cjs +33 -0
  13. package/dist/chunk-N4O2GO6V.cjs +204 -0
  14. package/dist/chunk-NGVFYKAT.js +29 -0
  15. package/dist/chunk-NU5UQPBX.cjs +25 -0
  16. package/dist/chunk-OQCNPNPS.js +23 -0
  17. package/dist/chunk-S3ANEJJ7.cjs +22 -0
  18. package/dist/chunk-U4AWAABZ.js +4901 -0
  19. package/dist/chunk-UGSNASZM.js +25 -0
  20. package/dist/{chunk-Q2IKZZ3U.cjs → chunk-UIOBJSKZ.cjs} +2 -3
  21. package/dist/chunk-WJSS32MY.js +130 -0
  22. package/dist/{chunk-RXYZURP4.js → chunk-XJIUGEPN.js} +2 -3
  23. package/dist/chunk-Y6EVJSAH.cjs +4928 -0
  24. package/dist/{chunk-AIXT3Q3I.cjs → chunk-ZV4467OW.cjs} +176 -185
  25. package/dist/components/alert-dialog/index.cjs +1 -0
  26. package/dist/components/alert-dialog/index.js +1 -0
  27. package/dist/components/avatar/index.cjs +5 -4
  28. package/dist/components/avatar/index.d.cts +5 -19
  29. package/dist/components/avatar/index.d.ts +5 -19
  30. package/dist/components/avatar/index.js +2 -1
  31. package/dist/components/badge/index.cjs +1 -0
  32. package/dist/components/badge/index.js +1 -0
  33. package/dist/components/button/index.cjs +23 -3
  34. package/dist/components/button/index.d.cts +8 -15
  35. package/dist/components/button/index.d.ts +8 -15
  36. package/dist/components/button/index.js +22 -2
  37. package/dist/components/card/index.cjs +12 -7
  38. package/dist/components/card/index.d.cts +8 -5
  39. package/dist/components/card/index.d.ts +8 -5
  40. package/dist/components/card/index.js +2 -1
  41. package/dist/components/checkbox/index.cjs +12 -0
  42. package/dist/components/checkbox/index.d.cts +8 -0
  43. package/dist/components/checkbox/index.d.ts +8 -0
  44. package/dist/components/checkbox/index.js +3 -0
  45. package/dist/components/dialog/index.cjs +1 -0
  46. package/dist/components/dialog/index.d.cts +1 -1
  47. package/dist/components/dialog/index.d.ts +1 -1
  48. package/dist/components/dialog/index.js +1 -0
  49. package/dist/components/field/index.cjs +50 -0
  50. package/dist/components/field/index.d.cts +50 -0
  51. package/dist/components/field/index.d.ts +50 -0
  52. package/dist/components/field/index.js +5 -0
  53. package/dist/components/header/index.cjs +1 -0
  54. package/dist/components/header/index.js +1 -0
  55. package/dist/components/index.cjs +155 -82
  56. package/dist/components/index.d.cts +8 -8
  57. package/dist/components/index.d.ts +8 -8
  58. package/dist/components/index.js +13 -12
  59. package/dist/components/input/index.cjs +3 -2
  60. package/dist/components/input/index.d.cts +2 -4
  61. package/dist/components/input/index.d.ts +2 -4
  62. package/dist/components/input/index.js +2 -1
  63. package/dist/components/item/index.cjs +49 -0
  64. package/dist/components/item/index.d.cts +60 -0
  65. package/dist/components/item/index.d.ts +60 -0
  66. package/dist/components/item/index.js +4 -0
  67. package/dist/components/label/index.cjs +3 -2
  68. package/dist/components/label/index.js +2 -1
  69. package/dist/components/select/index.cjs +20 -3
  70. package/dist/components/select/index.d.cts +20 -6
  71. package/dist/components/select/index.d.ts +20 -6
  72. package/dist/components/select/index.js +2 -1
  73. package/dist/components/separator/index.cjs +3 -2
  74. package/dist/components/separator/index.js +2 -1
  75. package/dist/components/sheet/index.cjs +1 -0
  76. package/dist/components/sheet/index.d.cts +1 -1
  77. package/dist/components/sheet/index.d.ts +1 -1
  78. package/dist/components/sheet/index.js +1 -0
  79. package/dist/components/spinner/index.cjs +1 -0
  80. package/dist/components/spinner/index.js +1 -0
  81. package/dist/components/stepper/index.cjs +32 -31
  82. package/dist/components/stepper/index.js +13 -12
  83. package/dist/components/textarea/index.cjs +4 -2
  84. package/dist/components/textarea/index.d.cts +2 -2
  85. package/dist/components/textarea/index.d.ts +2 -2
  86. package/dist/components/textarea/index.js +3 -1
  87. package/dist/components/tooltip/index.cjs +1 -0
  88. package/dist/components/tooltip/index.js +1 -0
  89. package/dist/contexts/index.cjs +1 -0
  90. package/dist/contexts/index.js +1 -0
  91. package/dist/hooks/index.cjs +1 -0
  92. package/dist/hooks/index.js +1 -0
  93. package/dist/icons/index.cjs +89 -18
  94. package/dist/icons/index.js +88 -1
  95. package/dist/utils/index.cjs +1 -0
  96. package/dist/utils/index.js +1 -0
  97. package/package.json +8 -9
  98. package/tailwind/global.css +5 -9
  99. package/tailwind/palette.css +149 -204
  100. package/tailwind/typography.css +33 -57
  101. package/dist/chunk-36YD6ICC.js +0 -70
  102. package/dist/chunk-3DSBDIFJ.cjs +0 -31
  103. package/dist/chunk-4NO6IM75.cjs +0 -40
  104. package/dist/chunk-5PBHBOXI.js +0 -30
  105. package/dist/chunk-EU7G37IS.js +0 -36
  106. package/dist/chunk-FVSO3RHT.cjs +0 -17
  107. package/dist/chunk-G6VXQ7DJ.cjs +0 -63
  108. package/dist/chunk-IAI7BIAG.js +0 -31
  109. package/dist/chunk-K4TRAPRN.cjs +0 -341
  110. package/dist/chunk-MI3CQBHC.js +0 -60
  111. package/dist/chunk-OIWEXHFE.cjs +0 -33
  112. package/dist/chunk-P4J2TTH7.cjs +0 -32
  113. package/dist/chunk-UKWZ5BHD.cjs +0 -93
  114. package/dist/chunk-V5OVQTDR.js +0 -24
  115. package/dist/chunk-VZKTT6CG.js +0 -15
  116. package/dist/chunk-XTO7CMIM.js +0 -88
  117. package/dist/chunk-YJFJLF7Y.js +0 -319
  118. package/dist/chunk-ZZ3EBGSD.cjs +0 -72
  119. package/dist/components/form/index.cjs +0 -54
  120. package/dist/components/form/index.d.cts +0 -32
  121. package/dist/components/form/index.d.ts +0 -32
  122. package/dist/components/form/index.js +0 -21
  123. package/dist/components/helper-text/index.cjs +0 -10
  124. package/dist/components/helper-text/index.d.cts +0 -18
  125. package/dist/components/helper-text/index.d.ts +0 -18
  126. package/dist/components/helper-text/index.js +0 -1
@@ -0,0 +1,25 @@
1
+ import { cn } from './chunk-ZD2QRAOX.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ function Input({ className, type, invalid = false, ...props }) {
5
+ return /* @__PURE__ */ jsx(
6
+ "input",
7
+ {
8
+ type,
9
+ "data-slot": "input",
10
+ "aria-invalid": props["aria-invalid"] || invalid,
11
+ className: cn(
12
+ "placeholder:text-muted-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none",
13
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
14
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
15
+ "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
16
+ "selection:bg-primary selection:text-primary-foreground",
17
+ "file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium md:text-sm",
18
+ className
19
+ ),
20
+ ...props
21
+ }
22
+ );
23
+ }
24
+
25
+ export { Input };
@@ -8,12 +8,11 @@ function Separator({ className, orientation = "horizontal", decorative = false,
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(
9
9
  radixUi.Separator.Root,
10
10
  {
11
+ "data-slot": "separator",
11
12
  decorative,
12
13
  orientation,
13
- "aria-orientation": orientation,
14
14
  className: chunkH2BWO3SI_cjs.cn(
15
- "shrink-0 bg-gray-800",
16
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
15
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
17
16
  className
18
17
  ),
19
18
  ...props
@@ -0,0 +1,130 @@
1
+ import { Separator } from './chunk-XJIUGEPN.js';
2
+ import { cn } from './chunk-ZD2QRAOX.js';
3
+ import { Slot } from '@radix-ui/react-slot';
4
+ import { cva } from 'class-variance-authority';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var itemVariants = cva(
8
+ "group/item flex items-center border border-transparent text-sm rounded transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: "bg-transparent",
13
+ outline: "border-border",
14
+ muted: "bg-muted/50"
15
+ },
16
+ size: {
17
+ default: "p-4 gap-4 ",
18
+ sm: "py-3 px-4 gap-2.5"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ variant: "default",
23
+ size: "default"
24
+ }
25
+ }
26
+ );
27
+ function Item({ className, variant = "default", size = "default", asChild = false, ...props }) {
28
+ const Comp = asChild ? Slot : "div";
29
+ return /* @__PURE__ */ jsx(
30
+ Comp,
31
+ {
32
+ "data-slot": "item",
33
+ "data-variant": variant,
34
+ "data-size": size,
35
+ className: cn(itemVariants({ variant, size, className })),
36
+ ...props
37
+ }
38
+ );
39
+ }
40
+ var itemMediaVariants = cva(
41
+ "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5",
42
+ {
43
+ variants: {
44
+ variant: {
45
+ default: "bg-transparent",
46
+ icon: "size-8 border border-border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4",
47
+ image: "size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover"
48
+ }
49
+ },
50
+ defaultVariants: {
51
+ variant: "default"
52
+ }
53
+ }
54
+ );
55
+ function ItemMedia({ className, variant = "default", ...props }) {
56
+ return /* @__PURE__ */ jsx(
57
+ "div",
58
+ {
59
+ "data-slot": "item-media",
60
+ "data-variant": variant,
61
+ className: cn(itemMediaVariants({ variant }), className),
62
+ ...props
63
+ }
64
+ );
65
+ }
66
+ function ItemGroup({ className, ...props }) {
67
+ return /* @__PURE__ */ jsx("div", { role: "list", "data-slot": "item-group", className: cn("group/item-group flex flex-col", className), ...props });
68
+ }
69
+ function ItemActions({ className, ...props }) {
70
+ return /* @__PURE__ */ jsx("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
71
+ }
72
+ function ItemContent({ className, ...props }) {
73
+ return /* @__PURE__ */ jsx(
74
+ "div",
75
+ {
76
+ "data-slot": "item-content",
77
+ className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
78
+ ...props
79
+ }
80
+ );
81
+ }
82
+ function ItemDescription({ className, ...props }) {
83
+ return /* @__PURE__ */ jsx(
84
+ "p",
85
+ {
86
+ "data-slot": "item-description",
87
+ className: cn(
88
+ "text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
89
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
90
+ className
91
+ ),
92
+ ...props
93
+ }
94
+ );
95
+ }
96
+ function ItemFooter({ className, ...props }) {
97
+ return /* @__PURE__ */ jsx(
98
+ "div",
99
+ {
100
+ "data-slot": "item-footer",
101
+ className: cn("flex basis-full items-center justify-between gap-2", className),
102
+ ...props
103
+ }
104
+ );
105
+ }
106
+ function ItemHeader({ className, ...props }) {
107
+ return /* @__PURE__ */ jsx(
108
+ "div",
109
+ {
110
+ "data-slot": "item-header",
111
+ className: cn("flex basis-full items-center justify-between gap-2", className),
112
+ ...props
113
+ }
114
+ );
115
+ }
116
+ function ItemTitle({ className, ...props }) {
117
+ return /* @__PURE__ */ jsx(
118
+ "div",
119
+ {
120
+ "data-slot": "item-title",
121
+ className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
122
+ ...props
123
+ }
124
+ );
125
+ }
126
+ function ItemSeparator({ className, ...props }) {
127
+ return /* @__PURE__ */ jsx(Separator, { "data-slot": "item-separator", orientation: "horizontal", className: cn("my-0", className), ...props });
128
+ }
129
+
130
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
@@ -6,12 +6,11 @@ function Separator({ className, orientation = "horizontal", decorative = false,
6
6
  return /* @__PURE__ */ jsx(
7
7
  Separator$1.Root,
8
8
  {
9
+ "data-slot": "separator",
9
10
  decorative,
10
11
  orientation,
11
- "aria-orientation": orientation,
12
12
  className: cn(
13
- "shrink-0 bg-gray-800",
14
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
13
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
15
14
  className
16
15
  ),
17
16
  ...props