@szum-tech/design-system 3.12.2 → 3.13.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.
@@ -1,17 +1,18 @@
1
- export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-QTYNFISP.js';
1
+ export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-U2HEQZMY.js';
2
+ import '../../chunk-WMGJCB7O.js';
2
3
  import '../../chunk-K5AURCK5.js';
3
4
  import '../../chunk-IWF52DDE.js';
5
+ import '../../chunk-X5O7GP4S.js';
4
6
  import '../../chunk-OCOCENE6.js';
5
7
  import '../../chunk-OQCNPNPS.js';
6
8
  import '../../chunk-WXZE35FK.js';
7
9
  import '../../chunk-U7XZJQ4O.js';
8
- import '../../chunk-WMGJCB7O.js';
9
10
  import '../../chunk-DL54DIMD.js';
10
- import '../../chunk-PBEZZMAB.js';
11
11
  import '../../chunk-4TRADSTP.js';
12
+ import '../../chunk-PBEZZMAB.js';
12
13
  import '../../chunk-M7NIRB3U.js';
13
14
  import '../../chunk-E5TYGWGE.js';
14
- import '../../chunk-DTSFPOLX.js';
15
+ import '../../chunk-H5NHGMSQ.js';
15
16
  import '../../chunk-P5IUC7HJ.js';
16
17
  import '../../chunk-BTSHACKG.js';
17
18
  import '../../chunk-HNRVLRMN.js';
@@ -24,8 +25,8 @@ import '../../chunk-I3RSTJP6.js';
24
25
  import '../../chunk-YUMKV5TH.js';
25
26
  import '../../chunk-U3QKV7I4.js';
26
27
  import '../../chunk-6BSR3O2J.js';
27
- import '../../chunk-5F2Y65JH.js';
28
28
  import '../../chunk-3RK5PCIC.js';
29
+ import '../../chunk-5F2Y65JH.js';
29
30
  import '../../chunk-P4JIMFSL.js';
30
31
  import '../../chunk-SB5UG7OC.js';
31
32
  import '../../chunk-B7RHEMZH.js';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunk7OD2NBSV_cjs = require('../../chunk-7OD2NBSV.cjs');
4
+ require('../../chunk-H2BWO3SI.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Switch", {
9
+ enumerable: true,
10
+ get: function () { return chunk7OD2NBSV_cjs.Switch; }
11
+ });
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Switch as Switch$1 } from 'radix-ui';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ declare const switchVariants: (props?: {
8
+ size?: "default" | "sm";
9
+ } & class_variance_authority_types.ClassProp) => string;
10
+
11
+ type SwitchCvaProps = VariantProps<typeof switchVariants>;
12
+ type SwitchSizeType = NonNullable<SwitchCvaProps["size"]>;
13
+
14
+ type SwitchProps = React.ComponentProps<typeof Switch$1.Root> & {
15
+ size?: SwitchSizeType;
16
+ };
17
+ declare function Switch({ className, size, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
18
+
19
+ export { Switch, type SwitchProps, type SwitchSizeType };
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Switch as Switch$1 } from 'radix-ui';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ declare const switchVariants: (props?: {
8
+ size?: "default" | "sm";
9
+ } & class_variance_authority_types.ClassProp) => string;
10
+
11
+ type SwitchCvaProps = VariantProps<typeof switchVariants>;
12
+ type SwitchSizeType = NonNullable<SwitchCvaProps["size"]>;
13
+
14
+ type SwitchProps = React.ComponentProps<typeof Switch$1.Root> & {
15
+ size?: SwitchSizeType;
16
+ };
17
+ declare function Switch({ className, size, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
18
+
19
+ export { Switch, type SwitchProps, type SwitchSizeType };
@@ -0,0 +1,2 @@
1
+ export { Switch } from '../../chunk-X5O7GP4S.js';
2
+ import '../../chunk-ZD2QRAOX.js';
@@ -1,19 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkCP43WJCN_cjs = require('../../chunk-CP43WJCN.cjs');
3
+ var chunkIDOJLUDL_cjs = require('../../chunk-IDOJLUDL.cjs');
4
+ require('../../chunk-EUH466AL.cjs');
4
5
  require('../../chunk-DGWBE2Y3.cjs');
5
6
  require('../../chunk-GYXQUTWZ.cjs');
7
+ require('../../chunk-7OD2NBSV.cjs');
6
8
  require('../../chunk-YEFLGE3L.cjs');
7
9
  require('../../chunk-NU5UQPBX.cjs');
8
10
  require('../../chunk-KQ6QE7BT.cjs');
9
11
  require('../../chunk-A7SBXO2Y.cjs');
10
- require('../../chunk-EUH466AL.cjs');
11
12
  require('../../chunk-S2BCU6WG.cjs');
12
- require('../../chunk-TH44JYXB.cjs');
13
13
  require('../../chunk-XENOUBSI.cjs');
14
+ require('../../chunk-TH44JYXB.cjs');
14
15
  require('../../chunk-UJX74PFK.cjs');
15
16
  require('../../chunk-XJZOANXX.cjs');
16
- require('../../chunk-GHV2TURY.cjs');
17
+ require('../../chunk-375QAB65.cjs');
17
18
  require('../../chunk-3WSQRFUY.cjs');
18
19
  require('../../chunk-VK5EX3OG.cjs');
19
20
  require('../../chunk-CXHDWIGF.cjs');
@@ -26,8 +27,8 @@ require('../../chunk-S3ANEJJ7.cjs');
26
27
  require('../../chunk-2WQJ36RD.cjs');
27
28
  require('../../chunk-ZVF7J4EI.cjs');
28
29
  require('../../chunk-2Y2ZCPNV.cjs');
29
- require('../../chunk-HCHVDUI6.cjs');
30
30
  require('../../chunk-ULEEQ723.cjs');
31
+ require('../../chunk-HCHVDUI6.cjs');
31
32
  require('../../chunk-USIW3VT5.cjs');
32
33
  require('../../chunk-XIQUR62A.cjs');
33
34
  require('../../chunk-X3ZT3KGX.cjs');
@@ -40,9 +41,9 @@ require('../../chunk-H2BWO3SI.cjs');
40
41
 
41
42
  Object.defineProperty(exports, "Toaster", {
42
43
  enumerable: true,
43
- get: function () { return chunkCP43WJCN_cjs.Toaster; }
44
+ get: function () { return chunkIDOJLUDL_cjs.Toaster; }
44
45
  });
45
46
  Object.defineProperty(exports, "toast", {
46
47
  enumerable: true,
47
- get: function () { return chunkCP43WJCN_cjs.toast; }
48
+ get: function () { return chunkIDOJLUDL_cjs.toast; }
48
49
  });
@@ -1,17 +1,18 @@
1
- export { Toaster, toast } from '../../chunk-QTYNFISP.js';
1
+ export { Toaster, toast } from '../../chunk-U2HEQZMY.js';
2
+ import '../../chunk-WMGJCB7O.js';
2
3
  import '../../chunk-K5AURCK5.js';
3
4
  import '../../chunk-IWF52DDE.js';
5
+ import '../../chunk-X5O7GP4S.js';
4
6
  import '../../chunk-OCOCENE6.js';
5
7
  import '../../chunk-OQCNPNPS.js';
6
8
  import '../../chunk-WXZE35FK.js';
7
9
  import '../../chunk-U7XZJQ4O.js';
8
- import '../../chunk-WMGJCB7O.js';
9
10
  import '../../chunk-DL54DIMD.js';
10
- import '../../chunk-PBEZZMAB.js';
11
11
  import '../../chunk-4TRADSTP.js';
12
+ import '../../chunk-PBEZZMAB.js';
12
13
  import '../../chunk-M7NIRB3U.js';
13
14
  import '../../chunk-E5TYGWGE.js';
14
- import '../../chunk-DTSFPOLX.js';
15
+ import '../../chunk-H5NHGMSQ.js';
15
16
  import '../../chunk-P5IUC7HJ.js';
16
17
  import '../../chunk-BTSHACKG.js';
17
18
  import '../../chunk-HNRVLRMN.js';
@@ -24,8 +25,8 @@ import '../../chunk-I3RSTJP6.js';
24
25
  import '../../chunk-YUMKV5TH.js';
25
26
  import '../../chunk-U3QKV7I4.js';
26
27
  import '../../chunk-6BSR3O2J.js';
27
- import '../../chunk-5F2Y65JH.js';
28
28
  import '../../chunk-3RK5PCIC.js';
29
+ import '../../chunk-5F2Y65JH.js';
29
30
  import '../../chunk-P4JIMFSL.js';
30
31
  import '../../chunk-SB5UG7OC.js';
31
32
  import '../../chunk-B7RHEMZH.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "3.12.2",
3
+ "version": "3.13.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -113,39 +113,39 @@
113
113
  "class-variance-authority": "^0.7.1",
114
114
  "clsx": "^2.1.1",
115
115
  "embla-carousel-react": "^8.6.0",
116
- "lucide-react": "^0.575.0",
117
- "motion": "^12.34.3",
116
+ "lucide-react": "^0.577.0",
117
+ "motion": "^12.36.0",
118
118
  "radix-ui": "^1.4.3",
119
119
  "sonner": "^2.0.7",
120
120
  "tailwind-merge": "^3.5.0",
121
121
  "tailwindcss-animate": "^1.0.7"
122
122
  },
123
123
  "devDependencies": {
124
- "@storybook-community/storybook-dark-mode": "^7.1.0",
125
- "@storybook/addon-a11y": "^10.2.10",
126
- "@storybook/addon-docs": "^10.2.10",
127
- "@storybook/addon-vitest": "^10.2.10",
128
- "@storybook/builder-vite": "^10.2.10",
129
- "@storybook/react-vite": "^10.2.10",
124
+ "@storybook-community/storybook-dark-mode": "^7.1.1",
125
+ "@storybook/addon-a11y": "^10.2.17",
126
+ "@storybook/addon-docs": "^10.2.17",
127
+ "@storybook/addon-vitest": "^10.2.17",
128
+ "@storybook/builder-vite": "^10.2.17",
129
+ "@storybook/react-vite": "^10.2.17",
130
130
  "@szum-tech/eslint-config": "^2.2.2",
131
131
  "@szum-tech/prettier-config": "^1.6.5",
132
132
  "@szum-tech/semantic-release-config": "^2.3.7",
133
- "@tailwindcss/vite": "^4.2.0",
133
+ "@tailwindcss/vite": "^4.2.1",
134
134
  "@testing-library/dom": "^10.4.1",
135
135
  "@testing-library/jest-dom": "^6.9.1",
136
136
  "@testing-library/react": "^16.3.2",
137
137
  "@testing-library/user-event": "^14.6.1",
138
- "@types/node": "^25.3.0",
138
+ "@types/node": "^25.4.0",
139
139
  "@types/react": "^19.2.14",
140
140
  "@types/react-dom": "^19.2.3",
141
- "@vitejs/plugin-react": "^5.1.4",
142
- "@vitest/browser": "^4.0.18",
143
- "@vitest/browser-playwright": "^4.0.18",
144
- "@vitest/coverage-v8": "^4.0.18",
145
- "@vitest/ui": "^4.0.18",
141
+ "@vitejs/plugin-react": "^5.2.0",
142
+ "@vitest/browser": "^4.1.0",
143
+ "@vitest/browser-playwright": "^4.1.0",
144
+ "@vitest/coverage-v8": "^4.1.0",
145
+ "@vitest/ui": "^4.1.0",
146
146
  "cpy-cli": "^7.0.0",
147
- "eslint": "^9.39.2",
148
- "happy-dom": "^20.7.0",
147
+ "eslint": "9.39.4",
148
+ "happy-dom": "^20.8.3",
149
149
  "playwright": "^1.58.2",
150
150
  "prettier": "^3.8.1",
151
151
  "react": "^19.2.4",
@@ -153,15 +153,15 @@
153
153
  "react-docgen-typescript": "^2.4.0",
154
154
  "react-dom": "^19.2.4",
155
155
  "semantic-release": "^25.0.3",
156
- "serve": "^14.2.5",
157
- "storybook": "^10.2.10",
156
+ "serve": "^14.2.6",
157
+ "storybook": "^10.2.17",
158
158
  "storybook-addon-tag-badges": "^3.0.6",
159
- "tailwindcss": "^4.2.0",
159
+ "tailwindcss": "^4.2.1",
160
160
  "tsup": "^8.5.1",
161
161
  "typescript": "^5.9.3",
162
162
  "vite": "^7.3.1",
163
163
  "vite-tsconfig-paths": "^6.1.1",
164
- "vitest": "^4.0.18"
164
+ "vitest": "^4.1.0"
165
165
  },
166
166
  "peerDependencies": {
167
167
  "react": ">=19",
@@ -1,51 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Dialog } from 'radix-ui';
3
- import { X } from 'lucide-react';
4
- import { cva } from 'class-variance-authority';
5
- import { jsxs, jsx } from 'react/jsx-runtime';
6
-
7
- var Sheet = Dialog.Root;
8
- var SheetTrigger = Dialog.Trigger;
9
- var SheetClose = Dialog.Close;
10
- var sheetContentStyles = cva(
11
- "bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-800 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
12
- {
13
- variants: {
14
- side: {
15
- top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
16
- bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
17
- left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
18
- right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"
19
- }
20
- },
21
- defaultVariants: {
22
- side: "right"
23
- }
24
- }
25
- );
26
- function SheetContent({ side = "right", className, children, ...props }) {
27
- return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
28
- /* @__PURE__ */ jsx(Dialog.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm" }),
29
- /* @__PURE__ */ jsxs(Dialog.Content, { className: cn(sheetContentStyles({ side }), className), ...props, children: [
30
- children,
31
- /* @__PURE__ */ jsxs(Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-app-foreground data-[state=open]:bg-app-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
32
- /* @__PURE__ */ jsx(X, { className: "size-4" }),
33
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
34
- ] })
35
- ] })
36
- ] });
37
- }
38
- function SheetHeader({ className, ...props }) {
39
- return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
40
- }
41
- function SheetFooter({ className, ...props }) {
42
- return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
43
- }
44
- function SheetTitle({ className, ...props }) {
45
- return /* @__PURE__ */ jsx(Dialog.Title, { className: cn("typography-heading-6", className), ...props });
46
- }
47
- function SheetDescription({ className, ...props }) {
48
- return /* @__PURE__ */ jsx(Dialog.Description, { className: cn("typography-body-2 text-gray-300", className), ...props });
49
- }
50
-
51
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var radixUi = require('radix-ui');
5
- var lucideReact = require('lucide-react');
6
- var classVarianceAuthority = require('class-variance-authority');
7
- var jsxRuntime = require('react/jsx-runtime');
8
-
9
- var Sheet = radixUi.Dialog.Root;
10
- var SheetTrigger = radixUi.Dialog.Trigger;
11
- var SheetClose = radixUi.Dialog.Close;
12
- var sheetContentStyles = classVarianceAuthority.cva(
13
- "bg-app-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-800 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
14
- {
15
- variants: {
16
- side: {
17
- top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
18
- bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
19
- left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
20
- right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"
21
- }
22
- },
23
- defaultVariants: {
24
- side: "right"
25
- }
26
- }
27
- );
28
- function SheetContent({ side = "right", className, children, ...props }) {
29
- return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Portal, { children: [
30
- /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Overlay, { className: "bg-app-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm" }),
31
- /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Content, { className: chunkH2BWO3SI_cjs.cn(sheetContentStyles({ side }), className), ...props, children: [
32
- children,
33
- /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-app-foreground data-[state=open]:bg-app-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
34
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4" }),
35
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
36
- ] })
37
- ] })
38
- ] });
39
- }
40
- function SheetHeader({ className, ...props }) {
41
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
42
- }
43
- function SheetFooter({ className, ...props }) {
44
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
45
- }
46
- function SheetTitle({ className, ...props }) {
47
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className: chunkH2BWO3SI_cjs.cn("typography-heading-6", className), ...props });
48
- }
49
- function SheetDescription({ className, ...props }) {
50
- return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className: chunkH2BWO3SI_cjs.cn("typography-body-2 text-gray-300", className), ...props });
51
- }
52
-
53
- exports.Sheet = Sheet;
54
- exports.SheetClose = SheetClose;
55
- exports.SheetContent = SheetContent;
56
- exports.SheetDescription = SheetDescription;
57
- exports.SheetFooter = SheetFooter;
58
- exports.SheetHeader = SheetHeader;
59
- exports.SheetTitle = SheetTitle;
60
- exports.SheetTrigger = SheetTrigger;
File without changes
File without changes