@szum-tech/design-system 3.13.0 → 3.14.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-4IGU5SVP.js +54 -0
- package/dist/{chunk-XJZOANXX.cjs → chunk-6HX7ETL3.cjs} +1 -1
- package/dist/chunk-B4M7Q5KX.cjs +25 -0
- package/dist/{chunk-S2BCU6WG.cjs → chunk-CAIAZGSW.cjs} +5 -4
- package/dist/chunk-EOTQVIA5.js +993 -0
- package/dist/chunk-EZCWHR56.cjs +2355 -0
- package/dist/chunk-G24PWQKG.js +20 -0
- package/dist/chunk-GEDBA3JU.cjs +49 -0
- package/dist/chunk-IZU3KULT.js +41 -0
- package/dist/{chunk-KQ6QE7BT.cjs → chunk-MNDQXDV4.cjs} +4 -4
- package/dist/chunk-N4TYSZSU.cjs +44 -0
- package/dist/chunk-OZSNSRLV.cjs +1027 -0
- package/dist/{chunk-DL54DIMD.js → chunk-Q2MJKFIE.js} +2 -1
- package/dist/chunk-S3ZUFD6U.js +23 -0
- package/dist/{chunk-WXZE35FK.js → chunk-VK2FJ65F.js} +1 -1
- package/dist/chunk-VL3TPVSB.js +2299 -0
- package/dist/{chunk-E5TYGWGE.js → chunk-XKCLVPUC.js} +1 -1
- package/dist/{chunk-XIQUR62A.cjs → chunk-XY3ZNUWR.cjs} +32 -20
- package/dist/color-picker.types-GI7dq2Ig.d.cts +42 -0
- package/dist/color-picker.types-GI7dq2Ig.d.ts +42 -0
- package/dist/components/badge-overflow/index.cjs +3 -2
- package/dist/components/badge-overflow/index.js +2 -1
- package/dist/components/button/index.cjs +17 -14
- package/dist/components/button/index.d.cts +1 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +16 -13
- package/dist/components/carousel/index.cjs +18 -15
- package/dist/components/carousel/index.d.cts +1 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/index.js +16 -13
- package/dist/components/color-picker/index.cjs +88 -0
- package/dist/components/color-picker/index.d.cts +71 -0
- package/dist/components/color-picker/index.d.ts +71 -0
- package/dist/components/color-picker/index.js +39 -0
- package/dist/components/dialog/index.d.cts +1 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/field/index.cjs +12 -12
- package/dist/components/field/index.js +2 -2
- package/dist/components/file-upload/index.cjs +60 -0
- package/dist/components/file-upload/index.d.cts +131 -0
- package/dist/components/file-upload/index.d.ts +131 -0
- package/dist/components/file-upload/index.js +3 -0
- package/dist/components/index.cjs +221 -94
- package/dist/components/index.d.cts +7 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/components/index.js +16 -13
- package/dist/components/input/index.cjs +2 -2
- package/dist/components/input/index.js +1 -1
- package/dist/components/item/index.d.cts +1 -0
- package/dist/components/item/index.d.ts +1 -0
- package/dist/components/masonry/index.cjs +5 -4
- package/dist/components/masonry/index.js +3 -2
- package/dist/components/popover/index.cjs +35 -0
- package/dist/components/popover/index.d.cts +18 -0
- package/dist/components/popover/index.d.ts +18 -0
- package/dist/components/popover/index.js +2 -0
- package/dist/components/select/index.cjs +7 -7
- package/dist/components/select/index.d.cts +8 -14
- package/dist/components/select/index.d.ts +8 -14
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.d.cts +2 -1
- package/dist/components/sheet/index.d.ts +2 -1
- package/dist/components/stepper/index.cjs +35 -32
- package/dist/components/stepper/index.d.cts +1 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/stepper/index.js +16 -13
- package/dist/components/timeline/index.cjs +12 -11
- package/dist/components/timeline/index.d.cts +1 -0
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/toaster/index.cjs +18 -15
- package/dist/components/toaster/index.js +16 -13
- package/dist/components/typing-text/index.d.cts +1 -0
- package/dist/components/typing-text/index.d.ts +1 -0
- package/dist/components/word-rotate/index.d.cts +1 -0
- package/dist/components/word-rotate/index.d.ts +1 -0
- package/dist/hooks/index.cjs +17 -8
- package/dist/hooks/index.d.cts +15 -4
- package/dist/hooks/index.d.ts +15 -4
- package/dist/hooks/index.js +2 -1
- package/dist/popover-trigger-Cf4PPj0z.d.cts +14 -0
- package/dist/popover-trigger-Cf4PPj0z.d.ts +14 -0
- package/dist/select-Bf6XQtt-.d.cts +12 -0
- package/dist/select-Bf6XQtt-.d.ts +12 -0
- package/package.json +1 -1
- package/dist/chunk-5AA4IE2T.cjs +0 -27
- package/dist/chunk-IDOJLUDL.cjs +0 -1065
- package/dist/chunk-SB5UG7OC.js +0 -41
- package/dist/chunk-U2HEQZMY.js +0 -1020
- package/dist/chunk-UGSNASZM.js +0 -25
- package/dist/{chunk-DTYX7CYN.cjs → chunk-GAZLMZBH.cjs} +1 -1
- package/dist/{chunk-3MH6P44N.js → chunk-K5QSMTKJ.js} +1 -1
package/dist/chunk-SB5UG7OC.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React3 from 'react';
|
|
2
|
-
|
|
3
|
-
// src/hooks/use-validation-log.tsx
|
|
4
|
-
function useValidationLog({ check, scope, message }) {
|
|
5
|
-
React3.useEffect(() => {
|
|
6
|
-
if (!check) {
|
|
7
|
-
console.error(
|
|
8
|
-
`%c[Szum Tech-Design System]%c
|
|
9
|
-
${scope}%c
|
|
10
|
-
${message}`,
|
|
11
|
-
"color: #ef4444; font-weight: bold;",
|
|
12
|
-
"color: #3b82f6; font-weight: bold;",
|
|
13
|
-
"color: #f59e0b;"
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
}, [check, scope, message]);
|
|
17
|
-
}
|
|
18
|
-
function useLazyRef(fn) {
|
|
19
|
-
const ref = React3.useRef(null);
|
|
20
|
-
if (ref.current === null) {
|
|
21
|
-
ref.current = fn();
|
|
22
|
-
}
|
|
23
|
-
return ref;
|
|
24
|
-
}
|
|
25
|
-
var useIsomorphicLayoutEffect = typeof window === "undefined" ? React3.useEffect : React3.useLayoutEffect;
|
|
26
|
-
|
|
27
|
-
// src/hooks/use-composed-refs.tsx
|
|
28
|
-
function useComposedRefs(...refs) {
|
|
29
|
-
return (node) => {
|
|
30
|
-
refs.forEach((ref) => {
|
|
31
|
-
if (!ref) return;
|
|
32
|
-
if (typeof ref === "function") {
|
|
33
|
-
ref(node);
|
|
34
|
-
} else {
|
|
35
|
-
ref.current = node;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { useComposedRefs, useIsomorphicLayoutEffect, useLazyRef, useValidationLog };
|