@szum-tech/design-system 3.8.1 → 3.10.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 (110) hide show
  1. package/dist/chunk-2WQJ36RD.cjs +78 -0
  2. package/dist/{chunk-O3DHBQA5.cjs → chunk-3GNVQFCK.cjs} +1 -1
  3. package/dist/{chunk-SYKUS2RV.js → chunk-3MH6P44N.js} +2 -2
  4. package/dist/{chunk-3BLXG7ET.js → chunk-3RK5PCIC.js} +1 -1
  5. package/dist/{chunk-2Q2BIWBE.js → chunk-5MV54MWS.js} +1 -1
  6. package/dist/{chunk-YWG7TML6.cjs → chunk-6X26XC6P.cjs} +1 -1
  7. package/dist/chunk-A7SBXO2Y.cjs +40 -0
  8. package/dist/{chunk-ACJ3ES2B.js → chunk-BTSHACKG.js} +1 -1
  9. package/dist/{chunk-3DUJHGXE.cjs → chunk-CFJ44JVK.cjs} +1 -1
  10. package/dist/chunk-D4QID7AI.cjs +607 -0
  11. package/dist/chunk-DGWBE2Y3.cjs +205 -0
  12. package/dist/{chunk-Q5ONG5HB.cjs → chunk-DTYX7CYN.cjs} +2 -2
  13. package/dist/{chunk-3Z3GVXXN.cjs → chunk-EG374TED.cjs} +57 -89
  14. package/dist/chunk-EUH466AL.cjs +179 -0
  15. package/dist/chunk-F7N6WQV6.cjs +53 -0
  16. package/dist/chunk-GYXQUTWZ.cjs +59 -0
  17. package/dist/chunk-IWF52DDE.js +55 -0
  18. package/dist/{chunk-SZ3LC2VO.js → chunk-JLKQ6WKK.js} +53 -85
  19. package/dist/chunk-K5AURCK5.js +183 -0
  20. package/dist/{chunk-XV3AQ6NS.js → chunk-KGGCA634.js} +1 -1
  21. package/dist/chunk-OCOCENE6.js +42 -0
  22. package/dist/chunk-R65CJGEQ.js +48 -0
  23. package/dist/chunk-TKZOB6C3.cjs +70 -0
  24. package/dist/{chunk-FKCWRNWB.js → chunk-U3QKV7I4.js} +1 -1
  25. package/dist/chunk-U7XZJQ4O.js +36 -0
  26. package/dist/{chunk-X55H6LRX.cjs → chunk-ULEEQ723.cjs} +1 -1
  27. package/dist/{chunk-BAWVLSRF.cjs → chunk-VK5EX3OG.cjs} +1 -1
  28. package/dist/{chunk-UW6GOD7J.js → chunk-VT5GDGZJ.js} +1 -1
  29. package/dist/chunk-WMGJCB7O.js +157 -0
  30. package/dist/chunk-YEFLGE3L.cjs +47 -0
  31. package/dist/chunk-YQ6J6VOI.js +48 -0
  32. package/dist/chunk-YSYZKK24.js +575 -0
  33. package/dist/chunk-YUMKV5TH.js +56 -0
  34. package/dist/{chunk-Z6CZAPVG.cjs → chunk-ZVF7J4EI.cjs} +1 -1
  35. package/dist/components/accordion/index.cjs +23 -0
  36. package/dist/components/accordion/index.d.cts +17 -0
  37. package/dist/components/accordion/index.d.ts +17 -0
  38. package/dist/components/accordion/index.js +2 -0
  39. package/dist/components/alert/index.cjs +4 -4
  40. package/dist/components/alert/index.js +1 -1
  41. package/dist/components/badge/index.cjs +4 -4
  42. package/dist/components/badge/index.js +1 -1
  43. package/dist/components/button/index.cjs +23 -16
  44. package/dist/components/button/index.js +22 -15
  45. package/dist/components/color-swatch/index.cjs +2 -2
  46. package/dist/components/color-swatch/index.js +1 -1
  47. package/dist/components/counting-number/index.cjs +11 -0
  48. package/dist/components/counting-number/index.d.cts +18 -0
  49. package/dist/components/counting-number/index.d.ts +18 -0
  50. package/dist/components/counting-number/index.js +2 -0
  51. package/dist/components/dialog/index.cjs +9 -9
  52. package/dist/components/dialog/index.js +1 -1
  53. package/dist/components/field/index.cjs +11 -11
  54. package/dist/components/field/index.js +1 -1
  55. package/dist/components/header/index.cjs +2 -2
  56. package/dist/components/header/index.js +1 -1
  57. package/dist/components/index.cjs +251 -144
  58. package/dist/components/index.d.cts +12 -3
  59. package/dist/components/index.d.ts +12 -3
  60. package/dist/components/index.js +22 -15
  61. package/dist/components/item/index.cjs +11 -11
  62. package/dist/components/item/index.js +1 -1
  63. package/dist/components/marquee/index.cjs +11 -0
  64. package/dist/components/marquee/index.d.cts +48 -0
  65. package/dist/components/marquee/index.d.ts +48 -0
  66. package/dist/components/marquee/index.js +2 -0
  67. package/dist/components/status/index.cjs +19 -0
  68. package/dist/components/status/index.d.cts +25 -0
  69. package/dist/components/status/index.d.ts +25 -0
  70. package/dist/components/status/index.js +2 -0
  71. package/dist/components/stepper/index.cjs +41 -34
  72. package/dist/components/stepper/index.d.cts +5 -4
  73. package/dist/components/stepper/index.d.ts +5 -4
  74. package/dist/components/stepper/index.js +22 -15
  75. package/dist/components/tabs/index.cjs +23 -0
  76. package/dist/components/tabs/index.d.cts +17 -0
  77. package/dist/components/tabs/index.d.ts +17 -0
  78. package/dist/components/tabs/index.js +2 -0
  79. package/dist/components/timeline/index.cjs +44 -0
  80. package/dist/components/timeline/index.d.cts +62 -0
  81. package/dist/components/timeline/index.d.ts +62 -0
  82. package/dist/components/timeline/index.js +3 -0
  83. package/dist/components/toaster/index.cjs +24 -17
  84. package/dist/components/toaster/index.js +22 -15
  85. package/dist/components/tooltip/index.cjs +9 -4
  86. package/dist/components/tooltip/index.d.cts +8 -12
  87. package/dist/components/tooltip/index.d.ts +8 -12
  88. package/dist/components/tooltip/index.js +2 -1
  89. package/dist/components/typing-text/index.cjs +11 -0
  90. package/dist/components/typing-text/index.d.cts +40 -0
  91. package/dist/components/typing-text/index.d.ts +40 -0
  92. package/dist/components/typing-text/index.js +2 -0
  93. package/dist/components/word-rotate/index.cjs +11 -0
  94. package/dist/components/word-rotate/index.d.cts +29 -0
  95. package/dist/components/word-rotate/index.d.ts +29 -0
  96. package/dist/components/word-rotate/index.js +2 -0
  97. package/dist/direction-CUOPDLCj.d.cts +7 -0
  98. package/dist/direction-CUOPDLCj.d.ts +7 -0
  99. package/package.json +37 -49
  100. package/tailwind/animation.css +23 -1
  101. package/tailwind/global.css +5 -0
  102. package/tailwind/palette.css +2 -2
  103. package/dist/chunk-EW6TE3N5.cjs +0 -38
  104. package/dist/chunk-GR37JJQK.cjs +0 -43
  105. package/dist/chunk-H5O5L6XT.js +0 -14
  106. package/dist/chunk-HJJPEVIH.js +0 -40
  107. package/dist/contexts/index.cjs +0 -18
  108. package/dist/contexts/index.d.cts +0 -11
  109. package/dist/contexts/index.d.ts +0 -11
  110. package/dist/contexts/index.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "3.8.1",
3
+ "version": "3.10.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -78,16 +78,6 @@
78
78
  "require": "./dist/hooks/index.cjs"
79
79
  }
80
80
  },
81
- "./contexts": {
82
- "import": {
83
- "types": "./dist/contexts/index.d.ts",
84
- "import": "./dist/contexts/index.js"
85
- },
86
- "require": {
87
- "types": "./dist/contexts/index.d.cts",
88
- "require": "./dist/contexts/index.cjs"
89
- }
90
- },
91
81
  "./tailwind/*.css": "./tailwind/*.css",
92
82
  "./package.json": "./package.json"
93
83
  },
@@ -122,63 +112,61 @@
122
112
  "dependencies": {
123
113
  "class-variance-authority": "^0.7.1",
124
114
  "clsx": "^2.1.1",
125
- "lucide-react": "^0.556.0",
115
+ "lucide-react": "^0.562.0",
116
+ "motion": "^12.27.1",
126
117
  "radix-ui": "^1.4.3",
127
118
  "sonner": "^2.0.7",
128
- "tailwind-merge": "^3.3.1",
119
+ "tailwind-merge": "^3.4.0",
129
120
  "tailwindcss-animate": "^1.0.7"
130
121
  },
131
122
  "devDependencies": {
132
- "@storybook-community/storybook-dark-mode": "^7.0.3",
133
- "@storybook/addon-a11y": "^10.1.4",
134
- "@storybook/addon-docs": "^10.1.4",
135
- "@storybook/addon-vitest": "^10.1.4",
136
- "@storybook/builder-vite": "^10.1.4",
137
- "@storybook/react-vite": "^10.1.4",
138
- "@szum-tech/eslint-config": "^2.1.7",
139
- "@szum-tech/prettier-config": "^1.6.2",
140
- "@szum-tech/semantic-release-config": "^2.3.1",
141
- "@tailwindcss/vite": "^4.1.11",
123
+ "@storybook-community/storybook-dark-mode": "^7.1.0",
124
+ "@storybook/addon-a11y": "^10.1.11",
125
+ "@storybook/addon-docs": "^10.1.11",
126
+ "@storybook/addon-vitest": "^10.1.11",
127
+ "@storybook/builder-vite": "^10.1.11",
128
+ "@storybook/react-vite": "^10.1.11",
129
+ "@szum-tech/eslint-config": "^2.1.15",
130
+ "@szum-tech/prettier-config": "^1.6.5",
131
+ "@szum-tech/semantic-release-config": "^2.3.7",
132
+ "@tailwindcss/vite": "^4.1.18",
142
133
  "@testing-library/dom": "^10.4.1",
143
- "@testing-library/jest-dom": "^6.6.4",
144
- "@testing-library/react": "^16.3.0",
134
+ "@testing-library/jest-dom": "^6.9.1",
135
+ "@testing-library/react": "^16.3.2",
145
136
  "@testing-library/user-event": "^14.6.1",
146
- "@types/node": "^24.10.1",
147
- "@types/react": "^19.2.7",
137
+ "@types/node": "^25.0.9",
138
+ "@types/react": "^19.2.8",
148
139
  "@types/react-dom": "^19.2.3",
149
- "@vitejs/plugin-react": "^5.1.1",
150
- "@vitest/browser": "^4.0.13",
151
- "@vitest/browser-playwright": "^4.0.15",
152
- "@vitest/coverage-v8": "^4.0.15",
153
- "@vitest/ui": "^4.0.15",
140
+ "@vitejs/plugin-react": "^5.1.2",
141
+ "@vitest/browser": "^4.0.17",
142
+ "@vitest/browser-playwright": "^4.0.17",
143
+ "@vitest/coverage-v8": "^4.0.17",
144
+ "@vitest/ui": "^4.0.17",
154
145
  "cpy-cli": "^6.0.0",
155
- "eslint": "^9.39.1",
156
- "happy-dom": "^20.0.2",
157
- "playwright": "^1.56.1",
158
- "prettier": "^3.7.4",
159
- "react": "^19.2.1",
160
- "react-docgen": "^8.0.0",
146
+ "eslint": "^9.39.2",
147
+ "happy-dom": "^20.3.3",
148
+ "playwright": "^1.57.0",
149
+ "prettier": "^3.8.0",
150
+ "react": "^19.2.3",
151
+ "react-docgen": "^8.0.2",
161
152
  "react-docgen-typescript": "^2.4.0",
162
- "react-dom": "^19.2.1",
153
+ "react-dom": "^19.2.3",
163
154
  "semantic-release": "^25.0.2",
164
- "serve": "^14.2.4",
165
- "storybook": "^10.1.4",
166
- "storybook-addon-tag-badges": "^3.0.2",
167
- "tailwindcss": "^4.1.11",
155
+ "serve": "^14.2.5",
156
+ "storybook": "^10.1.11",
157
+ "storybook-addon-tag-badges": "^3.0.4",
158
+ "tailwindcss": "^4.1.18",
168
159
  "tsup": "^8.5.1",
169
160
  "typescript": "^5.9.3",
170
- "vite": "^7.2.4",
171
- "vite-tsconfig-paths": "^5.1.4",
172
- "vitest": "^4.0.15"
161
+ "vite": "^7.3.1",
162
+ "vite-tsconfig-paths": "^6.0.4",
163
+ "vitest": "^4.0.17"
173
164
  },
174
165
  "peerDependencies": {
175
166
  "react": ">=19",
176
167
  "react-dom": ">=19",
177
168
  "tailwindcss": ">=4"
178
169
  },
179
- "engines": {
180
- "node": ">=24"
181
- },
182
170
  "publishConfig": {
183
171
  "access": "public"
184
172
  }
@@ -1,6 +1,6 @@
1
1
  @import "tailwindcss";
2
2
 
3
- @theme {
3
+ @theme inline {
4
4
  /* Components */
5
5
  /* Tooltip */
6
6
  --animate-slideDownAndFade: slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1);
@@ -50,4 +50,26 @@
50
50
  transform: translateX(0);
51
51
  }
52
52
  }
53
+
54
+ /* Marquee */
55
+ --animate-marquee: marquee var(--duration) infinite linear;
56
+ --animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
57
+
58
+ @keyframes marquee {
59
+ from {
60
+ transform: translateX(0);
61
+ }
62
+ to {
63
+ transform: translateX(calc(-100% - var(--gap)));
64
+ }
65
+ }
66
+
67
+ @keyframes marquee-vertical {
68
+ from {
69
+ transform: translateY(0);
70
+ }
71
+ to {
72
+ transform: translateY(calc(-100% - var(--gap)));
73
+ }
74
+ }
53
75
  }
@@ -7,12 +7,17 @@
7
7
 
8
8
  @plugin "tailwindcss-animate";
9
9
 
10
+ @custom-variant dark (&:is(.dark *));
11
+
10
12
  @layer base {
11
13
  button:not(:disabled),
12
14
  [role="button"]:not(:disabled) {
13
15
  cursor: pointer;
14
16
  }
15
17
 
18
+ * {
19
+ @apply border-border outline-ring/50;
20
+ }
16
21
  body {
17
22
  @apply bg-background font-poppins text-foreground text-body-default antialiased;
18
23
  }
@@ -6,7 +6,7 @@
6
6
  --background: oklch(1 0 0);
7
7
  --foreground: oklch(0.145 0 0);
8
8
 
9
- --primary: var(--color-blue-700);
9
+ --primary: var(--color-blue-600);
10
10
  --primary-foreground: var(--color-blue-50);
11
11
 
12
12
  --secondary: oklch(0.97 0 0);
@@ -59,7 +59,7 @@
59
59
  --background: oklch(0.145 0 0);
60
60
  --foreground: oklch(0.985 0 0);
61
61
 
62
- --primary: var(--color-blue-700);
62
+ --primary: var(--color-blue-600);
63
63
  --primary-foreground: var(--color-blue-50);
64
64
 
65
65
  --secondary: oklch(0.269 0 0);
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
-
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n.default = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
24
-
25
- // src/contexts/directon.tsx
26
- var Direction = {
27
- LTR: "ltr",
28
- RTL: "rtl"
29
- };
30
- var DirectionContext = React__namespace.createContext(void 0);
31
- function useDirection(dirProp) {
32
- const contextDir = React__namespace.useContext(DirectionContext);
33
- return dirProp ?? contextDir ?? Direction.LTR;
34
- }
35
-
36
- exports.Direction = Direction;
37
- exports.DirectionContext = DirectionContext;
38
- exports.useDirection = useDirection;
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- var radixUi = require('radix-ui');
4
- var jsxRuntime = require('react/jsx-runtime');
5
-
6
- // src/components/tooltip/tooltip.tsx
7
- function Tooltip({
8
- defaultOpen,
9
- content,
10
- open,
11
- onOpenChange,
12
- children,
13
- side,
14
- align,
15
- collisionPadding = 8,
16
- sideOffset = 8,
17
- ...props
18
- }) {
19
- return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Tooltip.Root, { delayDuration: 0, open, defaultOpen, onOpenChange, children: [
20
- /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Trigger, { asChild: true, children }),
21
- content ? /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
22
- radixUi.Tooltip.Content,
23
- {
24
- className: "text-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade rounded bg-white p-2 text-gray-100 will-change-[transform,opacity] select-none",
25
- sideOffset,
26
- side,
27
- align,
28
- collisionPadding,
29
- ...props,
30
- children: [
31
- content,
32
- /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Arrow, { width: 8, height: 4, className: "fill-white" })
33
- ]
34
- }
35
- ) }) : null
36
- ] });
37
- }
38
- function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
39
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Provider, { skipDelayDuration, ...props, children });
40
- }
41
-
42
- exports.Tooltip = Tooltip;
43
- exports.TooltipProvider = TooltipProvider;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
-
3
- // src/contexts/directon.tsx
4
- var Direction = {
5
- LTR: "ltr",
6
- RTL: "rtl"
7
- };
8
- var DirectionContext = React.createContext(void 0);
9
- function useDirection(dirProp) {
10
- const contextDir = React.useContext(DirectionContext);
11
- return dirProp ?? contextDir ?? Direction.LTR;
12
- }
13
-
14
- export { Direction, DirectionContext, useDirection };
@@ -1,40 +0,0 @@
1
- import { Tooltip as Tooltip$1 } from 'radix-ui';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
-
4
- // src/components/tooltip/tooltip.tsx
5
- function Tooltip({
6
- defaultOpen,
7
- content,
8
- open,
9
- onOpenChange,
10
- children,
11
- side,
12
- align,
13
- collisionPadding = 8,
14
- sideOffset = 8,
15
- ...props
16
- }) {
17
- return /* @__PURE__ */ jsxs(Tooltip$1.Root, { delayDuration: 0, open, defaultOpen, onOpenChange, children: [
18
- /* @__PURE__ */ jsx(Tooltip$1.Trigger, { asChild: true, children }),
19
- content ? /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsxs(
20
- Tooltip$1.Content,
21
- {
22
- className: "text-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade rounded bg-white p-2 text-gray-100 will-change-[transform,opacity] select-none",
23
- sideOffset,
24
- side,
25
- align,
26
- collisionPadding,
27
- ...props,
28
- children: [
29
- content,
30
- /* @__PURE__ */ jsx(Tooltip$1.Arrow, { width: 8, height: 4, className: "fill-white" })
31
- ]
32
- }
33
- ) }) : null
34
- ] });
35
- }
36
- function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
37
- return /* @__PURE__ */ jsx(Tooltip$1.Provider, { skipDelayDuration, ...props, children });
38
- }
39
-
40
- export { Tooltip, TooltipProvider };
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkEW6TE3N5_cjs = require('../chunk-EW6TE3N5.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Direction", {
8
- enumerable: true,
9
- get: function () { return chunkEW6TE3N5_cjs.Direction; }
10
- });
11
- Object.defineProperty(exports, "DirectionContext", {
12
- enumerable: true,
13
- get: function () { return chunkEW6TE3N5_cjs.DirectionContext; }
14
- });
15
- Object.defineProperty(exports, "useDirection", {
16
- enumerable: true,
17
- get: function () { return chunkEW6TE3N5_cjs.useDirection; }
18
- });
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare const Direction: {
4
- readonly LTR: "ltr";
5
- readonly RTL: "rtl";
6
- };
7
- type Direction = (typeof Direction)[keyof typeof Direction];
8
- declare const DirectionContext: React.Context<Direction | undefined>;
9
- declare function useDirection(dirProp?: Direction): Direction;
10
-
11
- export { Direction, DirectionContext, useDirection };
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare const Direction: {
4
- readonly LTR: "ltr";
5
- readonly RTL: "rtl";
6
- };
7
- type Direction = (typeof Direction)[keyof typeof Direction];
8
- declare const DirectionContext: React.Context<Direction | undefined>;
9
- declare function useDirection(dirProp?: Direction): Direction;
10
-
11
- export { Direction, DirectionContext, useDirection };
@@ -1 +0,0 @@
1
- export { Direction, DirectionContext, useDirection } from '../chunk-H5O5L6XT.js';