@szum-tech/design-system 2.5.1 → 2.6.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 (55) hide show
  1. package/dist/{chunk-75T7KAAY.js → chunk-36YD6ICC.js} +2 -2
  2. package/dist/chunk-3WSQRFUY.cjs +11 -0
  3. package/dist/chunk-5RNHEHRL.js +996 -0
  4. package/dist/chunk-7EYMOUWG.cjs +51 -0
  5. package/dist/{chunk-MOOWZNA6.js → chunk-7V34QHYR.js} +3 -3
  6. package/dist/chunk-AIXT3Q3I.cjs +1043 -0
  7. package/dist/chunk-DFD2WUOU.js +27 -0
  8. package/dist/chunk-EW6TE3N5.cjs +38 -0
  9. package/dist/{chunk-BJ553XYM.cjs → chunk-G6VXQ7DJ.cjs} +3 -3
  10. package/dist/chunk-H5O5L6XT.js +14 -0
  11. package/dist/{chunk-3PV6NLP5.js → chunk-IAI7BIAG.js} +3 -3
  12. package/dist/{chunk-XKXP3W3H.cjs → chunk-K4TRAPRN.cjs} +3 -3
  13. package/dist/{chunk-4C7M4HBP.js → chunk-MI3CQBHC.js} +3 -3
  14. package/dist/{chunk-KXTNZ4UO.cjs → chunk-NHFHKMX2.cjs} +3 -3
  15. package/dist/{chunk-6L3QPLRR.cjs → chunk-OIWEXHFE.cjs} +3 -3
  16. package/dist/chunk-P5IUC7HJ.js +9 -0
  17. package/dist/{chunk-WMMJEZ7Y.js → chunk-YJFJLF7Y.js} +3 -3
  18. package/dist/{chunk-FPK72OV4.cjs → chunk-ZZ3EBGSD.cjs} +2 -2
  19. package/dist/components/badge/index.cjs +2 -2
  20. package/dist/components/badge/index.js +1 -1
  21. package/dist/components/button/index.cjs +2 -2
  22. package/dist/components/button/index.js +1 -1
  23. package/dist/components/form/index.cjs +20 -17
  24. package/dist/components/form/index.js +13 -10
  25. package/dist/components/index.cjs +147 -64
  26. package/dist/components/index.d.cts +3 -0
  27. package/dist/components/index.d.ts +3 -0
  28. package/dist/components/index.js +13 -10
  29. package/dist/components/input/index.cjs +2 -2
  30. package/dist/components/input/index.js +1 -1
  31. package/dist/components/select/index.cjs +3 -3
  32. package/dist/components/select/index.js +1 -1
  33. package/dist/components/spinner/index.cjs +11 -0
  34. package/dist/components/spinner/index.d.cts +7 -0
  35. package/dist/components/spinner/index.d.ts +7 -0
  36. package/dist/components/spinner/index.js +2 -0
  37. package/dist/components/stepper/index.cjs +102 -0
  38. package/dist/components/stepper/index.d.cts +162 -0
  39. package/dist/components/stepper/index.d.ts +162 -0
  40. package/dist/components/stepper/index.js +21 -0
  41. package/dist/components/textarea/index.cjs +2 -2
  42. package/dist/components/textarea/index.js +1 -1
  43. package/dist/contexts/index.cjs +18 -0
  44. package/dist/contexts/index.d.cts +11 -0
  45. package/dist/contexts/index.d.ts +11 -0
  46. package/dist/contexts/index.js +1 -0
  47. package/dist/hooks/index.cjs +18 -0
  48. package/dist/hooks/index.d.cts +14 -0
  49. package/dist/hooks/index.d.ts +14 -0
  50. package/dist/hooks/index.js +1 -0
  51. package/dist/icons/index.d.cts +3 -0
  52. package/dist/icons/index.d.ts +3 -0
  53. package/package.json +22 -1
  54. package/dist/chunk-DH5YKYXV.cjs +0 -116
  55. package/dist/chunk-SPCZ3GVM.js +0 -88
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ var React3 = 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 React3__namespace = /*#__PURE__*/_interopNamespace(React3);
24
+
25
+ // src/hooks/use-validation-log.tsx
26
+ function useValidationLog({ check, scope, message }) {
27
+ React3__namespace.useEffect(() => {
28
+ if (!check) {
29
+ console.error(
30
+ `%c[Szum Tech-Design System]%c
31
+ ${scope}%c
32
+ ${message}`,
33
+ "color: #ef4444; font-weight: bold;",
34
+ "color: #3b82f6; font-weight: bold;",
35
+ "color: #f59e0b;"
36
+ );
37
+ }
38
+ }, [check, scope, message]);
39
+ }
40
+ function useLazyRef(fn) {
41
+ const ref = React3__namespace.useRef(null);
42
+ if (ref.current === null) {
43
+ ref.current = fn();
44
+ }
45
+ return ref;
46
+ }
47
+ var useIsomorphicLayoutEffect = typeof window === "undefined" ? React3__namespace.useEffect : React3__namespace.useLayoutEffect;
48
+
49
+ exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
50
+ exports.useLazyRef = useLazyRef;
51
+ exports.useValidationLog = useValidationLog;
@@ -5,9 +5,9 @@ import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
  var badgeCva = cva(
7
7
  [
8
- "text-xs inline-flex w-fit shrink-0 items-center justify-center gap-x-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 transition-[color,box-shadow]",
9
- "[&>svg]:size-3 [&>svg]:pointer-events-none",
10
- "focus-visible:border-ring focus-visible:ring-primary-500/50 focus-visible:ring-[3px]",
8
+ "inline-flex w-fit shrink-0 items-center justify-center gap-x-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 text-xs transition-[color,box-shadow]",
9
+ "[&>svg]:pointer-events-none [&>svg]:size-3",
10
+ "focus-visible:border-ring focus-visible:ring-primary-500/50 focus-visible:ring",
11
11
  "aria-invalid:ring-error-500/20 aria-invalid:border-ring-error-500"
12
12
  ],
13
13
  {