@szum-tech/design-system 3.15.0 → 3.16.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.
- package/dist/{chunk-3MH6P44N.js → chunk-3DP3VMPN.js} +1 -1
- package/dist/{chunk-XJIUGEPN.js → chunk-A72LE53B.js} +1 -1
- package/dist/{chunk-UIOBJSKZ.cjs → chunk-DUAM4RTP.cjs} +1 -1
- package/dist/{chunk-XY3ZNUWR.cjs → chunk-F7NFSDOD.cjs} +17 -4
- package/dist/{chunk-DTYX7CYN.cjs → chunk-HPICKLBZ.cjs} +2 -2
- package/dist/chunk-KTAIBRTH.cjs +10 -0
- package/dist/{chunk-KGGCA634.js → chunk-L2TRMQNN.js} +1 -1
- package/dist/{chunk-PTZVUZNQ.cjs → chunk-MFTNHVPZ.cjs} +556 -5
- package/dist/chunk-NXEZE7LG.js +15 -0
- package/dist/{chunk-OH323B3O.js → chunk-OIM2X2NK.js} +531 -5
- package/dist/chunk-OXZQGDTR.js +208 -0
- package/dist/{chunk-4IGU5SVP.js → chunk-P4IL77YC.js} +16 -4
- package/dist/{chunk-CAIAZGSW.cjs → chunk-RKFU4DS3.cjs} +2 -2
- package/dist/chunk-SHPJGB2L.cjs +19 -0
- package/dist/{chunk-CFJ44JVK.cjs → chunk-UNOMGKAZ.cjs} +2 -2
- package/dist/{chunk-Q2MJKFIE.js → chunk-WCQ5WKCQ.js} +1 -1
- package/dist/chunk-X7WREEFD.js +8 -0
- package/dist/chunk-YBFG2IRJ.cjs +225 -0
- package/dist/components/badge-overflow/index.cjs +2 -2
- package/dist/components/badge-overflow/index.js +1 -1
- package/dist/components/button/index.cjs +19 -16
- package/dist/components/button/index.js +18 -15
- package/dist/components/carousel/index.cjs +20 -17
- package/dist/components/carousel/index.js +18 -15
- package/dist/components/collapsible/index.cjs +18 -0
- package/dist/components/collapsible/index.d.cts +12 -0
- package/dist/components/collapsible/index.d.ts +12 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-picker/index.cjs +29 -26
- package/dist/components/color-picker/index.js +18 -15
- package/dist/components/dropdown-menu/index.cjs +71 -0
- package/dist/components/dropdown-menu/index.d.cts +67 -0
- package/dist/components/dropdown-menu/index.d.ts +67 -0
- package/dist/components/dropdown-menu/index.js +2 -0
- package/dist/components/field/index.cjs +12 -12
- package/dist/components/field/index.js +2 -2
- package/dist/components/index.cjs +332 -149
- package/dist/components/index.d.cts +6 -1
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.js +18 -15
- package/dist/components/item/index.cjs +12 -12
- package/dist/components/item/index.js +2 -2
- package/dist/components/masonry/index.cjs +4 -4
- package/dist/components/masonry/index.js +2 -2
- package/dist/components/separator/index.cjs +2 -2
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sidebar/index.cjs +148 -0
- package/dist/components/sidebar/index.d.cts +135 -0
- package/dist/components/sidebar/index.d.ts +135 -0
- package/dist/components/sidebar/index.js +43 -0
- package/dist/components/skeleton/index.cjs +11 -0
- package/dist/components/skeleton/index.d.cts +7 -0
- package/dist/components/skeleton/index.d.ts +7 -0
- package/dist/components/skeleton/index.js +2 -0
- package/dist/components/stepper/index.cjs +37 -34
- package/dist/components/stepper/index.js +18 -15
- package/dist/components/timeline/index.cjs +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toaster/index.cjs +20 -17
- package/dist/components/toaster/index.js +18 -15
- package/dist/components/tooltip/index.d.cts +2 -4
- package/dist/components/tooltip/index.d.ts +2 -4
- package/dist/hooks/index.cjs +8 -4
- package/dist/hooks/index.d.cts +3 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/index.js +1 -1
- package/dist/tooltip-content-DqtogPBq.d.cts +8 -0
- package/dist/tooltip-content-DqtogPBq.d.ts +8 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ function Separator({ className, orientation = "horizontal", decorative = false,
|
|
|
10
10
|
decorative,
|
|
11
11
|
orientation,
|
|
12
12
|
className: cn(
|
|
13
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:
|
|
13
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
14
14
|
className
|
|
15
15
|
),
|
|
16
16
|
...props
|
|
@@ -12,7 +12,7 @@ function Separator({ className, orientation = "horizontal", decorative = false,
|
|
|
12
12
|
decorative,
|
|
13
13
|
orientation,
|
|
14
14
|
className: chunkH2BWO3SI_cjs.cn(
|
|
15
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:
|
|
15
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React3 = require('react');
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
6
6
|
if (e && e.__esModule) return e;
|
|
@@ -20,11 +20,11 @@ function _interopNamespace(e) {
|
|
|
20
20
|
return Object.freeze(n);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
24
24
|
|
|
25
25
|
// src/hooks/use-validation-log.tsx
|
|
26
26
|
function useValidationLog({ check, scope, message }) {
|
|
27
|
-
|
|
27
|
+
React3__namespace.useEffect(() => {
|
|
28
28
|
if (!check) {
|
|
29
29
|
console.error(
|
|
30
30
|
`%c[Szum Tech-Design System]%c
|
|
@@ -70,9 +70,22 @@ function composeRefs(...refs) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function useComposedRefs(...refs) {
|
|
73
|
-
return
|
|
73
|
+
return React3__namespace.useCallback(composeRefs(...refs), refs);
|
|
74
|
+
}
|
|
75
|
+
var MOBILE_BREAKPOINT = 768;
|
|
76
|
+
function useIsMobile() {
|
|
77
|
+
const [isMobile, setIsMobile] = React3__namespace.useState(void 0);
|
|
78
|
+
React3__namespace.useEffect(() => {
|
|
79
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
80
|
+
const onChange = () => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
81
|
+
mql.addEventListener("change", onChange);
|
|
82
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
83
|
+
return () => mql.removeEventListener("change", onChange);
|
|
84
|
+
}, []);
|
|
85
|
+
return !!isMobile;
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
exports.composeRefs = composeRefs;
|
|
77
89
|
exports.useComposedRefs = useComposedRefs;
|
|
90
|
+
exports.useIsMobile = useIsMobile;
|
|
78
91
|
exports.useValidationLog = useValidationLog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDUAM4RTP_cjs = require('./chunk-DUAM4RTP.cjs');
|
|
4
4
|
var chunkS3ANEJJ7_cjs = require('./chunk-S3ANEJJ7.cjs');
|
|
5
5
|
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
@@ -151,7 +151,7 @@ function FieldSeparator({ children, className, ...props }) {
|
|
|
151
151
|
className: chunkH2BWO3SI_cjs.cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
|
|
152
152
|
...props,
|
|
153
153
|
children: [
|
|
154
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkDUAM4RTP_cjs.Separator, { className: "absolute inset-0 top-1/2" }),
|
|
155
155
|
children ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
156
|
"span",
|
|
157
157
|
{
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
function Skeleton({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "skeleton", className: chunkH2BWO3SI_cjs.cn("bg-muted animate-pulse rounded-md", className), ...props });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
exports.Skeleton = Skeleton;
|