@szum-tech/design-system 2.7.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-S5BN23O7.cjs → chunk-3KMXFN6M.cjs} +14 -20
  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-XIPREW2R.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-EIXSMEDP.cjs → chunk-UIOBJSKZ.cjs} +1 -3
  21. package/dist/{chunk-I5P2HH5Z.js → chunk-WJSS32MY.js} +13 -19
  22. package/dist/{chunk-GEACYHTU.js → chunk-XJIUGEPN.js} +1 -3
  23. package/dist/chunk-Y6EVJSAH.cjs +4928 -0
  24. package/dist/{chunk-D3MOZUNH.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 +158 -126
  56. package/dist/components/index.d.cts +7 -8
  57. package/dist/components/index.d.ts +7 -8
  58. package/dist/components/index.js +14 -14
  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 +13 -12
  64. package/dist/components/item/index.d.cts +7 -7
  65. package/dist/components/item/index.d.ts +7 -7
  66. package/dist/components/item/index.js +3 -2
  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 +33 -33
  82. package/dist/components/stepper/index.js +14 -14
  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-4NO6IM75.cjs +0 -40
  103. package/dist/chunk-5BTQ6BQA.js +0 -24
  104. package/dist/chunk-5PBHBOXI.js +0 -30
  105. package/dist/chunk-EU7G37IS.js +0 -36
  106. package/dist/chunk-FPFRA5Q6.cjs +0 -31
  107. package/dist/chunk-FVSO3RHT.cjs +0 -17
  108. package/dist/chunk-G6VXQ7DJ.cjs +0 -63
  109. package/dist/chunk-IAI7BIAG.js +0 -31
  110. package/dist/chunk-K4TRAPRN.cjs +0 -341
  111. package/dist/chunk-MI3CQBHC.js +0 -60
  112. package/dist/chunk-OIWEXHFE.cjs +0 -33
  113. package/dist/chunk-P4J2TTH7.cjs +0 -32
  114. package/dist/chunk-UKWZ5BHD.cjs +0 -93
  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 -55
  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 -22
  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,61 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function Card({ className, ...props }) {
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ "div",
9
+ {
10
+ "data-slot": "card",
11
+ className: chunkH2BWO3SI_cjs.cn(
12
+ "bg-card text-card-foreground border-border flex flex-col gap-6 rounded border py-6 shadow-sm",
13
+ className
14
+ ),
15
+ ...props
16
+ }
17
+ );
18
+ }
19
+ function CardHeader({ className, ...props }) {
20
+ return /* @__PURE__ */ jsxRuntime.jsx(
21
+ "div",
22
+ {
23
+ "data-slot": "card-header",
24
+ className: chunkH2BWO3SI_cjs.cn(
25
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
26
+ className
27
+ ),
28
+ ...props
29
+ }
30
+ );
31
+ }
32
+ function CardTitle({ className, ...props }) {
33
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-title", className: chunkH2BWO3SI_cjs.cn("leading-none font-semibold", className), ...props });
34
+ }
35
+ function CardDescription({ className, ...props }) {
36
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-description", className: chunkH2BWO3SI_cjs.cn("text-muted-foreground text-sm", className), ...props });
37
+ }
38
+ function CardContent({ className, ...props }) {
39
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-content", className: chunkH2BWO3SI_cjs.cn("px-6", className), ...props });
40
+ }
41
+ function CardFooter({ className, ...props }) {
42
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-footer", className: chunkH2BWO3SI_cjs.cn("flex items-center px-6 [.border-t]:pt-6", className), ...props });
43
+ }
44
+ function CardAction({ className, ...props }) {
45
+ return /* @__PURE__ */ jsxRuntime.jsx(
46
+ "div",
47
+ {
48
+ "data-slot": "card-action",
49
+ className: chunkH2BWO3SI_cjs.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+
55
+ exports.Card = Card;
56
+ exports.CardAction = CardAction;
57
+ exports.CardContent = CardContent;
58
+ exports.CardDescription = CardDescription;
59
+ exports.CardFooter = CardFooter;
60
+ exports.CardHeader = CardHeader;
61
+ exports.CardTitle = CardTitle;
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -1,22 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkEIXSMEDP_cjs = require('./chunk-EIXSMEDP.cjs');
3
+ var chunkUIOBJSKZ_cjs = require('./chunk-UIOBJSKZ.cjs');
4
4
  var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
5
5
  var reactSlot = require('@radix-ui/react-slot');
6
6
  var classVarianceAuthority = require('class-variance-authority');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
- var itemCva = classVarianceAuthority.cva(
10
- [
11
- "group/item flex items-center border border-transparent text-sm rounded-md transition-colors duration-100 flex-wrap outline-none",
12
- "[a]:hover:bg-gray-900 [a]:transition-colors",
13
- "focus-visible:ring-primary-500/50 focus-visible:ring-[3px]"
14
- ],
9
+ var itemVariants = classVarianceAuthority.cva(
10
+ "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]",
15
11
  {
16
12
  variants: {
17
13
  variant: {
18
14
  default: "bg-transparent",
19
- outlined: "border-gray-800"
15
+ outline: "border-border",
16
+ muted: "bg-muted/50"
20
17
  },
21
18
  size: {
22
19
  default: "p-4 gap-4 ",
@@ -37,22 +34,19 @@ function Item({ className, variant = "default", size = "default", asChild = fals
37
34
  "data-slot": "item",
38
35
  "data-variant": variant,
39
36
  "data-size": size,
40
- className: chunkH2BWO3SI_cjs.cn(itemCva({ variant, size }), className),
37
+ className: chunkH2BWO3SI_cjs.cn(itemVariants({ variant, size, className })),
41
38
  ...props
42
39
  }
43
40
  );
44
41
  }
45
42
  var itemMediaVariants = classVarianceAuthority.cva(
46
- [
47
- "flex shrink-0 items-center justify-center gap-2 [&_svg]:pointer-events-none",
48
- "group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start"
49
- ],
43
+ "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",
50
44
  {
51
45
  variants: {
52
46
  variant: {
53
47
  default: "bg-transparent",
54
- icon: "bg-gray-800 size-8 rounded border border-gray-600 [&_svg:not([class*='size-'])]:size-4",
55
- image: "size-10 overflow-hidden rounded [&_img]:size-full [&_img]:object-cover"
48
+ icon: "size-8 border border-border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4",
49
+ image: "size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover"
56
50
  }
57
51
  },
58
52
  defaultVariants: {
@@ -66,7 +60,7 @@ function ItemMedia({ className, variant = "default", ...props }) {
66
60
  {
67
61
  "data-slot": "item-media",
68
62
  "data-variant": variant,
69
- className: chunkH2BWO3SI_cjs.cn(itemMediaVariants({ variant, className })),
63
+ className: chunkH2BWO3SI_cjs.cn(itemMediaVariants({ variant }), className),
70
64
  ...props
71
65
  }
72
66
  );
@@ -93,8 +87,8 @@ function ItemDescription({ className, ...props }) {
93
87
  {
94
88
  "data-slot": "item-description",
95
89
  className: chunkH2BWO3SI_cjs.cn(
96
- "line-clamp-2 text-sm leading-normal font-normal text-balance text-gray-400",
97
- "[&>a:hover]:text-primary-500 [&>a]:underline [&>a]:underline-offset-4",
90
+ "text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
91
+ "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
98
92
  className
99
93
  ),
100
94
  ...props
@@ -126,13 +120,13 @@ function ItemTitle({ className, ...props }) {
126
120
  "div",
127
121
  {
128
122
  "data-slot": "item-title",
129
- className: chunkH2BWO3SI_cjs.cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium text-gray-100", className),
123
+ className: chunkH2BWO3SI_cjs.cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
130
124
  ...props
131
125
  }
132
126
  );
133
127
  }
134
128
  function ItemSeparator({ className, ...props }) {
135
- return /* @__PURE__ */ jsxRuntime.jsx(chunkEIXSMEDP_cjs.Separator, { "data-slot": "item-separator", orientation: "horizontal", className: chunkH2BWO3SI_cjs.cn("my-0", className), ...props });
129
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkUIOBJSKZ_cjs.Separator, { "data-slot": "item-separator", orientation: "horizontal", className: chunkH2BWO3SI_cjs.cn("my-0", className), ...props });
136
130
  }
137
131
 
138
132
  exports.Item = Item;
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function Input({ className, type, invalid = false, ...props }) {
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ "input",
9
+ {
10
+ type,
11
+ "data-slot": "input",
12
+ "aria-invalid": props["aria-invalid"] || invalid,
13
+ className: chunkH2BWO3SI_cjs.cn(
14
+ "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",
15
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
16
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
17
+ "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
18
+ "selection:bg-primary selection:text-primary-foreground",
19
+ "file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium md:text-sm",
20
+ className
21
+ ),
22
+ ...props
23
+ }
24
+ );
25
+ }
26
+
27
+ exports.Input = Input;
@@ -0,0 +1,32 @@
1
+ import { cn } from './chunk-ZD2QRAOX.js';
2
+ import { CheckIcon } from 'lucide-react';
3
+ import { Checkbox as Checkbox$1 } from 'radix-ui';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function Checkbox({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(
8
+ Checkbox$1.Root,
9
+ {
10
+ "data-slot": "checkbox",
11
+ className: cn(
12
+ "peer border-input dark:bg-input/30 size-4 shrink-0 rounded border shadow-xs transition-shadow outline-none",
13
+ "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
14
+ "aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
15
+ "disabled:cursor-not-allowed disabled:opacity-50",
16
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
17
+ className
18
+ ),
19
+ ...props,
20
+ children: /* @__PURE__ */ jsx(
21
+ Checkbox$1.Indicator,
22
+ {
23
+ "data-slot": "checkbox-indicator",
24
+ className: "grid place-content-center text-current transition-none",
25
+ children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
26
+ }
27
+ )
28
+ }
29
+ );
30
+ }
31
+
32
+ export { Checkbox };
@@ -0,0 +1,53 @@
1
+ import { cn } from './chunk-ZD2QRAOX.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ function Card({ className, ...props }) {
5
+ return /* @__PURE__ */ jsx(
6
+ "div",
7
+ {
8
+ "data-slot": "card",
9
+ className: cn(
10
+ "bg-card text-card-foreground border-border flex flex-col gap-6 rounded border py-6 shadow-sm",
11
+ className
12
+ ),
13
+ ...props
14
+ }
15
+ );
16
+ }
17
+ function CardHeader({ className, ...props }) {
18
+ return /* @__PURE__ */ jsx(
19
+ "div",
20
+ {
21
+ "data-slot": "card-header",
22
+ className: cn(
23
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
24
+ className
25
+ ),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function CardTitle({ className, ...props }) {
31
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-title", className: cn("leading-none font-semibold", className), ...props });
32
+ }
33
+ function CardDescription({ className, ...props }) {
34
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-description", className: cn("text-muted-foreground text-sm", className), ...props });
35
+ }
36
+ function CardContent({ className, ...props }) {
37
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-content", className: cn("px-6", className), ...props });
38
+ }
39
+ function CardFooter({ className, ...props }) {
40
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-footer", className: cn("flex items-center px-6 [.border-t]:pt-6", className), ...props });
41
+ }
42
+ function CardAction({ className, ...props }) {
43
+ return /* @__PURE__ */ jsx(
44
+ "div",
45
+ {
46
+ "data-slot": "card-action",
47
+ className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
48
+ ...props
49
+ }
50
+ );
51
+ }
52
+
53
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -0,0 +1 @@
1
+