@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.
Files changed (69) hide show
  1. package/dist/{chunk-3MH6P44N.js → chunk-3DP3VMPN.js} +1 -1
  2. package/dist/{chunk-XJIUGEPN.js → chunk-A72LE53B.js} +1 -1
  3. package/dist/{chunk-UIOBJSKZ.cjs → chunk-DUAM4RTP.cjs} +1 -1
  4. package/dist/{chunk-XY3ZNUWR.cjs → chunk-F7NFSDOD.cjs} +17 -4
  5. package/dist/{chunk-DTYX7CYN.cjs → chunk-HPICKLBZ.cjs} +2 -2
  6. package/dist/chunk-KTAIBRTH.cjs +10 -0
  7. package/dist/{chunk-KGGCA634.js → chunk-L2TRMQNN.js} +1 -1
  8. package/dist/{chunk-PTZVUZNQ.cjs → chunk-MFTNHVPZ.cjs} +556 -5
  9. package/dist/chunk-NXEZE7LG.js +15 -0
  10. package/dist/{chunk-OH323B3O.js → chunk-OIM2X2NK.js} +531 -5
  11. package/dist/chunk-OXZQGDTR.js +208 -0
  12. package/dist/{chunk-4IGU5SVP.js → chunk-P4IL77YC.js} +16 -4
  13. package/dist/{chunk-CAIAZGSW.cjs → chunk-RKFU4DS3.cjs} +2 -2
  14. package/dist/chunk-SHPJGB2L.cjs +19 -0
  15. package/dist/{chunk-CFJ44JVK.cjs → chunk-UNOMGKAZ.cjs} +2 -2
  16. package/dist/{chunk-Q2MJKFIE.js → chunk-WCQ5WKCQ.js} +1 -1
  17. package/dist/chunk-X7WREEFD.js +8 -0
  18. package/dist/chunk-YBFG2IRJ.cjs +225 -0
  19. package/dist/components/badge-overflow/index.cjs +2 -2
  20. package/dist/components/badge-overflow/index.js +1 -1
  21. package/dist/components/button/index.cjs +19 -16
  22. package/dist/components/button/index.js +18 -15
  23. package/dist/components/carousel/index.cjs +20 -17
  24. package/dist/components/carousel/index.js +18 -15
  25. package/dist/components/collapsible/index.cjs +18 -0
  26. package/dist/components/collapsible/index.d.cts +12 -0
  27. package/dist/components/collapsible/index.d.ts +12 -0
  28. package/dist/components/collapsible/index.js +1 -0
  29. package/dist/components/color-picker/index.cjs +29 -26
  30. package/dist/components/color-picker/index.js +18 -15
  31. package/dist/components/dropdown-menu/index.cjs +71 -0
  32. package/dist/components/dropdown-menu/index.d.cts +67 -0
  33. package/dist/components/dropdown-menu/index.d.ts +67 -0
  34. package/dist/components/dropdown-menu/index.js +2 -0
  35. package/dist/components/field/index.cjs +12 -12
  36. package/dist/components/field/index.js +2 -2
  37. package/dist/components/index.cjs +332 -149
  38. package/dist/components/index.d.cts +6 -1
  39. package/dist/components/index.d.ts +6 -1
  40. package/dist/components/index.js +18 -15
  41. package/dist/components/item/index.cjs +12 -12
  42. package/dist/components/item/index.js +2 -2
  43. package/dist/components/masonry/index.cjs +4 -4
  44. package/dist/components/masonry/index.js +2 -2
  45. package/dist/components/separator/index.cjs +2 -2
  46. package/dist/components/separator/index.js +1 -1
  47. package/dist/components/sidebar/index.cjs +148 -0
  48. package/dist/components/sidebar/index.d.cts +135 -0
  49. package/dist/components/sidebar/index.d.ts +135 -0
  50. package/dist/components/sidebar/index.js +43 -0
  51. package/dist/components/skeleton/index.cjs +11 -0
  52. package/dist/components/skeleton/index.d.cts +7 -0
  53. package/dist/components/skeleton/index.d.ts +7 -0
  54. package/dist/components/skeleton/index.js +2 -0
  55. package/dist/components/stepper/index.cjs +37 -34
  56. package/dist/components/stepper/index.js +18 -15
  57. package/dist/components/timeline/index.cjs +1 -1
  58. package/dist/components/timeline/index.js +1 -1
  59. package/dist/components/toaster/index.cjs +20 -17
  60. package/dist/components/toaster/index.js +18 -15
  61. package/dist/components/tooltip/index.d.cts +2 -4
  62. package/dist/components/tooltip/index.d.ts +2 -4
  63. package/dist/hooks/index.cjs +8 -4
  64. package/dist/hooks/index.d.cts +3 -1
  65. package/dist/hooks/index.d.ts +3 -1
  66. package/dist/hooks/index.js +1 -1
  67. package/dist/tooltip-content-DqtogPBq.d.cts +8 -0
  68. package/dist/tooltip-content-DqtogPBq.d.ts +8 -0
  69. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Separator } from './chunk-XJIUGEPN.js';
1
+ import { Separator } from './chunk-A72LE53B.js';
2
2
  import { Label } from './chunk-I3RSTJP6.js';
3
3
  import { cn } from './chunk-ZD2QRAOX.js';
4
4
  import { cva } from 'class-variance-authority';
@@ -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]:h-full data-[orientation=vertical]:w-px",
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]:h-full data-[orientation=vertical]:w-px",
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 React = require('react');
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 React__namespace = /*#__PURE__*/_interopNamespace(React);
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
- React__namespace.useEffect(() => {
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 React__namespace.useCallback(composeRefs(...refs), refs);
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 chunkUIOBJSKZ_cjs = require('./chunk-UIOBJSKZ.cjs');
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(chunkUIOBJSKZ_cjs.Separator, { className: "absolute inset-0 top-1/2" }),
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;
@@ -1,4 +1,4 @@
1
- import { Separator } from './chunk-XJIUGEPN.js';
1
+ import { Separator } from './chunk-A72LE53B.js';
2
2
  import { cn } from './chunk-ZD2QRAOX.js';
3
3
  import { Slot } from '@radix-ui/react-slot';
4
4
  import { cva } from 'class-variance-authority';