@szum-tech/design-system 2.5.1 → 2.7.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-75T7KAAY.js → chunk-36YD6ICC.js} +2 -2
  2. package/dist/chunk-3WSQRFUY.cjs +11 -0
  3. package/dist/{chunk-V5OVQTDR.js → chunk-5BTQ6BQA.js} +2 -2
  4. package/dist/chunk-7EYMOUWG.cjs +51 -0
  5. package/dist/{chunk-MOOWZNA6.js → chunk-7V34QHYR.js} +3 -3
  6. package/dist/chunk-D3MOZUNH.cjs +1043 -0
  7. package/dist/chunk-DFD2WUOU.js +27 -0
  8. package/dist/{chunk-Q2IKZZ3U.cjs → chunk-EIXSMEDP.cjs} +1 -0
  9. package/dist/chunk-EW6TE3N5.cjs +38 -0
  10. package/dist/{chunk-3DSBDIFJ.cjs → chunk-FPFRA5Q6.cjs} +2 -2
  11. package/dist/{chunk-BJ553XYM.cjs → chunk-G6VXQ7DJ.cjs} +3 -3
  12. package/dist/{chunk-RXYZURP4.js → chunk-GEACYHTU.js} +1 -0
  13. package/dist/chunk-H5O5L6XT.js +14 -0
  14. package/dist/chunk-I5P2HH5Z.js +136 -0
  15. package/dist/{chunk-3PV6NLP5.js → chunk-IAI7BIAG.js} +3 -3
  16. package/dist/{chunk-XKXP3W3H.cjs → chunk-K4TRAPRN.cjs} +3 -3
  17. package/dist/{chunk-4C7M4HBP.js → chunk-MI3CQBHC.js} +3 -3
  18. package/dist/{chunk-KXTNZ4UO.cjs → chunk-NHFHKMX2.cjs} +3 -3
  19. package/dist/{chunk-6L3QPLRR.cjs → chunk-OIWEXHFE.cjs} +3 -3
  20. package/dist/chunk-P5IUC7HJ.js +9 -0
  21. package/dist/chunk-S5BN23O7.cjs +147 -0
  22. package/dist/chunk-XIPREW2R.js +996 -0
  23. package/dist/{chunk-WMMJEZ7Y.js → chunk-YJFJLF7Y.js} +3 -3
  24. package/dist/{chunk-FPK72OV4.cjs → chunk-ZZ3EBGSD.cjs} +2 -2
  25. package/dist/components/badge/index.cjs +2 -2
  26. package/dist/components/badge/index.js +1 -1
  27. package/dist/components/button/index.cjs +2 -2
  28. package/dist/components/button/index.js +1 -1
  29. package/dist/components/card/index.cjs +7 -7
  30. package/dist/components/card/index.js +1 -1
  31. package/dist/components/form/index.cjs +21 -17
  32. package/dist/components/form/index.js +14 -10
  33. package/dist/components/index.cjs +194 -70
  34. package/dist/components/index.d.cts +4 -0
  35. package/dist/components/index.d.ts +4 -0
  36. package/dist/components/index.js +14 -10
  37. package/dist/components/input/index.cjs +2 -2
  38. package/dist/components/input/index.js +1 -1
  39. package/dist/components/item/index.cjs +48 -0
  40. package/dist/components/item/index.d.cts +60 -0
  41. package/dist/components/item/index.d.ts +60 -0
  42. package/dist/components/item/index.js +3 -0
  43. package/dist/components/select/index.cjs +3 -3
  44. package/dist/components/select/index.js +1 -1
  45. package/dist/components/separator/index.cjs +2 -2
  46. package/dist/components/separator/index.js +1 -1
  47. package/dist/components/spinner/index.cjs +11 -0
  48. package/dist/components/spinner/index.d.cts +7 -0
  49. package/dist/components/spinner/index.d.ts +7 -0
  50. package/dist/components/spinner/index.js +2 -0
  51. package/dist/components/stepper/index.cjs +103 -0
  52. package/dist/components/stepper/index.d.cts +162 -0
  53. package/dist/components/stepper/index.d.ts +162 -0
  54. package/dist/components/stepper/index.js +22 -0
  55. package/dist/components/textarea/index.cjs +2 -2
  56. package/dist/components/textarea/index.js +1 -1
  57. package/dist/contexts/index.cjs +18 -0
  58. package/dist/contexts/index.d.cts +11 -0
  59. package/dist/contexts/index.d.ts +11 -0
  60. package/dist/contexts/index.js +1 -0
  61. package/dist/hooks/index.cjs +18 -0
  62. package/dist/hooks/index.d.cts +14 -0
  63. package/dist/hooks/index.d.ts +14 -0
  64. package/dist/hooks/index.js +1 -0
  65. package/dist/icons/index.d.cts +3 -0
  66. package/dist/icons/index.d.ts +3 -0
  67. package/package.json +22 -1
  68. package/dist/chunk-DH5YKYXV.cjs +0 -116
  69. package/dist/chunk-SPCZ3GVM.js +0 -88
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkFPK72OV4_cjs = require('../../chunk-FPK72OV4.cjs');
3
+ var chunkZZ3EBGSD_cjs = require('../../chunk-ZZ3EBGSD.cjs');
4
4
  require('../../chunk-H2BWO3SI.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Input", {
9
9
  enumerable: true,
10
- get: function () { return chunkFPK72OV4_cjs.Input; }
10
+ get: function () { return chunkZZ3EBGSD_cjs.Input; }
11
11
  });
@@ -1,2 +1,2 @@
1
- export { Input } from '../../chunk-75T7KAAY.js';
1
+ export { Input } from '../../chunk-36YD6ICC.js';
2
2
  import '../../chunk-ZD2QRAOX.js';
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ var chunkS5BN23O7_cjs = require('../../chunk-S5BN23O7.cjs');
4
+ require('../../chunk-EIXSMEDP.cjs');
5
+ require('../../chunk-H2BWO3SI.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Item", {
10
+ enumerable: true,
11
+ get: function () { return chunkS5BN23O7_cjs.Item; }
12
+ });
13
+ Object.defineProperty(exports, "ItemActions", {
14
+ enumerable: true,
15
+ get: function () { return chunkS5BN23O7_cjs.ItemActions; }
16
+ });
17
+ Object.defineProperty(exports, "ItemContent", {
18
+ enumerable: true,
19
+ get: function () { return chunkS5BN23O7_cjs.ItemContent; }
20
+ });
21
+ Object.defineProperty(exports, "ItemDescription", {
22
+ enumerable: true,
23
+ get: function () { return chunkS5BN23O7_cjs.ItemDescription; }
24
+ });
25
+ Object.defineProperty(exports, "ItemFooter", {
26
+ enumerable: true,
27
+ get: function () { return chunkS5BN23O7_cjs.ItemFooter; }
28
+ });
29
+ Object.defineProperty(exports, "ItemGroup", {
30
+ enumerable: true,
31
+ get: function () { return chunkS5BN23O7_cjs.ItemGroup; }
32
+ });
33
+ Object.defineProperty(exports, "ItemHeader", {
34
+ enumerable: true,
35
+ get: function () { return chunkS5BN23O7_cjs.ItemHeader; }
36
+ });
37
+ Object.defineProperty(exports, "ItemMedia", {
38
+ enumerable: true,
39
+ get: function () { return chunkS5BN23O7_cjs.ItemMedia; }
40
+ });
41
+ Object.defineProperty(exports, "ItemSeparator", {
42
+ enumerable: true,
43
+ get: function () { return chunkS5BN23O7_cjs.ItemSeparator; }
44
+ });
45
+ Object.defineProperty(exports, "ItemTitle", {
46
+ enumerable: true,
47
+ get: function () { return chunkS5BN23O7_cjs.ItemTitle; }
48
+ });
@@ -0,0 +1,60 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { Separator } from '../separator/index.cjs';
6
+ import 'radix-ui';
7
+
8
+ type ItemProps = React.ComponentProps<"div"> & {
9
+ asChild?: boolean;
10
+ variant?: ItemVariantType;
11
+ size?: ItemSizeType;
12
+ };
13
+ declare function Item({ className, variant, size, asChild, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
14
+
15
+ declare const itemCva: (props?: ({
16
+ variant?: "outlined" | "default" | null | undefined;
17
+ size?: "sm" | "default" | null | undefined;
18
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
19
+
20
+ type ItemCvaProps = VariantProps<typeof itemCva>;
21
+ type ItemVariantType = NonNullable<ItemCvaProps["variant"]>;
22
+ type ItemSizeType = NonNullable<ItemCvaProps["size"]>;
23
+
24
+ declare const itemMediaVariants: (props?: ({
25
+ variant?: "image" | "default" | "icon" | null | undefined;
26
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
27
+
28
+ type ItemMediaVariantsProps = VariantProps<typeof itemMediaVariants>;
29
+ type ItemMediaVariantType = NonNullable<ItemMediaVariantsProps["variant"]>;
30
+
31
+ type ItemMediaProps = React.ComponentProps<"div"> & {
32
+ variant?: ItemMediaVariantType;
33
+ };
34
+ declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): react_jsx_runtime.JSX.Element;
35
+
36
+ type ItemGroupProps = React.ComponentProps<"div">;
37
+ declare function ItemGroup({ className, ...props }: ItemGroupProps): react_jsx_runtime.JSX.Element;
38
+
39
+ type ItemActionsProps = React.ComponentProps<"div">;
40
+ declare function ItemActions({ className, ...props }: ItemActionsProps): react_jsx_runtime.JSX.Element;
41
+
42
+ type ItemContentProps = React.ComponentProps<"div">;
43
+ declare function ItemContent({ className, ...props }: ItemContentProps): react_jsx_runtime.JSX.Element;
44
+
45
+ type ItemDescriptionProps = React.ComponentProps<"p">;
46
+ declare function ItemDescription({ className, ...props }: ItemDescriptionProps): react_jsx_runtime.JSX.Element;
47
+
48
+ type ItemFooterProps = React.ComponentProps<"div">;
49
+ declare function ItemFooter({ className, ...props }: ItemFooterProps): react_jsx_runtime.JSX.Element;
50
+
51
+ type ItemHeaderProps = React.ComponentProps<"div">;
52
+ declare function ItemHeader({ className, ...props }: ItemHeaderProps): react_jsx_runtime.JSX.Element;
53
+
54
+ type ItemTitleProps = React.ComponentProps<"div">;
55
+ declare function ItemTitle({ className, ...props }: ItemTitleProps): react_jsx_runtime.JSX.Element;
56
+
57
+ type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
58
+ declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): react_jsx_runtime.JSX.Element;
59
+
60
+ export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemMediaVariantType, type ItemProps, ItemSeparator, type ItemSeparatorProps, type ItemSizeType, ItemTitle, type ItemTitleProps, type ItemVariantType };
@@ -0,0 +1,60 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { Separator } from '../separator/index.js';
6
+ import 'radix-ui';
7
+
8
+ type ItemProps = React.ComponentProps<"div"> & {
9
+ asChild?: boolean;
10
+ variant?: ItemVariantType;
11
+ size?: ItemSizeType;
12
+ };
13
+ declare function Item({ className, variant, size, asChild, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
14
+
15
+ declare const itemCva: (props?: ({
16
+ variant?: "outlined" | "default" | null | undefined;
17
+ size?: "sm" | "default" | null | undefined;
18
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
19
+
20
+ type ItemCvaProps = VariantProps<typeof itemCva>;
21
+ type ItemVariantType = NonNullable<ItemCvaProps["variant"]>;
22
+ type ItemSizeType = NonNullable<ItemCvaProps["size"]>;
23
+
24
+ declare const itemMediaVariants: (props?: ({
25
+ variant?: "image" | "default" | "icon" | null | undefined;
26
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
27
+
28
+ type ItemMediaVariantsProps = VariantProps<typeof itemMediaVariants>;
29
+ type ItemMediaVariantType = NonNullable<ItemMediaVariantsProps["variant"]>;
30
+
31
+ type ItemMediaProps = React.ComponentProps<"div"> & {
32
+ variant?: ItemMediaVariantType;
33
+ };
34
+ declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): react_jsx_runtime.JSX.Element;
35
+
36
+ type ItemGroupProps = React.ComponentProps<"div">;
37
+ declare function ItemGroup({ className, ...props }: ItemGroupProps): react_jsx_runtime.JSX.Element;
38
+
39
+ type ItemActionsProps = React.ComponentProps<"div">;
40
+ declare function ItemActions({ className, ...props }: ItemActionsProps): react_jsx_runtime.JSX.Element;
41
+
42
+ type ItemContentProps = React.ComponentProps<"div">;
43
+ declare function ItemContent({ className, ...props }: ItemContentProps): react_jsx_runtime.JSX.Element;
44
+
45
+ type ItemDescriptionProps = React.ComponentProps<"p">;
46
+ declare function ItemDescription({ className, ...props }: ItemDescriptionProps): react_jsx_runtime.JSX.Element;
47
+
48
+ type ItemFooterProps = React.ComponentProps<"div">;
49
+ declare function ItemFooter({ className, ...props }: ItemFooterProps): react_jsx_runtime.JSX.Element;
50
+
51
+ type ItemHeaderProps = React.ComponentProps<"div">;
52
+ declare function ItemHeader({ className, ...props }: ItemHeaderProps): react_jsx_runtime.JSX.Element;
53
+
54
+ type ItemTitleProps = React.ComponentProps<"div">;
55
+ declare function ItemTitle({ className, ...props }: ItemTitleProps): react_jsx_runtime.JSX.Element;
56
+
57
+ type ItemSeparatorProps = React.ComponentProps<typeof Separator>;
58
+ declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): react_jsx_runtime.JSX.Element;
59
+
60
+ export { Item, ItemActions, type ItemActionsProps, ItemContent, type ItemContentProps, ItemDescription, type ItemDescriptionProps, ItemFooter, type ItemFooterProps, ItemGroup, type ItemGroupProps, ItemHeader, type ItemHeaderProps, ItemMedia, type ItemMediaProps, type ItemMediaVariantType, type ItemProps, ItemSeparator, type ItemSeparatorProps, type ItemSizeType, ItemTitle, type ItemTitleProps, type ItemVariantType };
@@ -0,0 +1,3 @@
1
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle } from '../../chunk-I5P2HH5Z.js';
2
+ import '../../chunk-GEACYHTU.js';
3
+ import '../../chunk-ZD2QRAOX.js';
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkBJ553XYM_cjs = require('../../chunk-BJ553XYM.cjs');
3
+ var chunkG6VXQ7DJ_cjs = require('../../chunk-G6VXQ7DJ.cjs');
4
4
  require('../../chunk-H2BWO3SI.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Select", {
9
9
  enumerable: true,
10
- get: function () { return chunkBJ553XYM_cjs.Select; }
10
+ get: function () { return chunkG6VXQ7DJ_cjs.Select; }
11
11
  });
12
12
  Object.defineProperty(exports, "SelectItem", {
13
13
  enumerable: true,
14
- get: function () { return chunkBJ553XYM_cjs.SelectItem; }
14
+ get: function () { return chunkG6VXQ7DJ_cjs.SelectItem; }
15
15
  });
@@ -1,2 +1,2 @@
1
- export { Select, SelectItem } from '../../chunk-4C7M4HBP.js';
1
+ export { Select, SelectItem } from '../../chunk-MI3CQBHC.js';
2
2
  import '../../chunk-ZD2QRAOX.js';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkQ2IKZZ3U_cjs = require('../../chunk-Q2IKZZ3U.cjs');
3
+ var chunkEIXSMEDP_cjs = require('../../chunk-EIXSMEDP.cjs');
4
4
  require('../../chunk-H2BWO3SI.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Separator", {
9
9
  enumerable: true,
10
- get: function () { return chunkQ2IKZZ3U_cjs.Separator; }
10
+ get: function () { return chunkEIXSMEDP_cjs.Separator; }
11
11
  });
@@ -1,2 +1,2 @@
1
- export { Separator } from '../../chunk-RXYZURP4.js';
1
+ export { Separator } from '../../chunk-GEACYHTU.js';
2
2
  import '../../chunk-ZD2QRAOX.js';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunk3WSQRFUY_cjs = require('../../chunk-3WSQRFUY.cjs');
4
+ require('../../chunk-H2BWO3SI.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Spinner", {
9
+ enumerable: true,
10
+ get: function () { return chunk3WSQRFUY_cjs.Spinner; }
11
+ });
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+
4
+ type SpinnerProps = React__default.ComponentProps<"svg">;
5
+ declare function Spinner({ className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
6
+
7
+ export { Spinner, type SpinnerProps };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+
4
+ type SpinnerProps = React__default.ComponentProps<"svg">;
5
+ declare function Spinner({ className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
6
+
7
+ export { Spinner, type SpinnerProps };
@@ -0,0 +1,2 @@
1
+ export { Spinner } from '../../chunk-P5IUC7HJ.js';
2
+ import '../../chunk-ZD2QRAOX.js';
@@ -0,0 +1,103 @@
1
+ 'use strict';
2
+
3
+ var chunkD3MOZUNH_cjs = require('../../chunk-D3MOZUNH.cjs');
4
+ require('../../chunk-G6VXQ7DJ.cjs');
5
+ require('../../chunk-S5BN23O7.cjs');
6
+ require('../../chunk-EIXSMEDP.cjs');
7
+ require('../../chunk-3WSQRFUY.cjs');
8
+ require('../../chunk-GHV2TURY.cjs');
9
+ require('../../chunk-OIWEXHFE.cjs');
10
+ require('../../chunk-GR37JJQK.cjs');
11
+ require('../../chunk-K4TRAPRN.cjs');
12
+ require('../../chunk-FPFRA5Q6.cjs');
13
+ require('../../chunk-PH4LO5TE.cjs');
14
+ require('../../chunk-YWG7TML6.cjs');
15
+ require('../../chunk-P4J2TTH7.cjs');
16
+ require('../../chunk-ZZ3EBGSD.cjs');
17
+ require('../../chunk-FVSO3RHT.cjs');
18
+ require('../../chunk-EW6TE3N5.cjs');
19
+ require('../../chunk-7EYMOUWG.cjs');
20
+ require('../../chunk-UKWZ5BHD.cjs');
21
+ require('../../chunk-4NO6IM75.cjs');
22
+ require('../../chunk-NHFHKMX2.cjs');
23
+ require('../../chunk-TMXVL5CV.cjs');
24
+ require('../../chunk-H2BWO3SI.cjs');
25
+
26
+
27
+
28
+ Object.defineProperty(exports, "Stepper", {
29
+ enumerable: true,
30
+ get: function () { return chunkD3MOZUNH_cjs.Stepper; }
31
+ });
32
+ Object.defineProperty(exports, "StepperActivationMode", {
33
+ enumerable: true,
34
+ get: function () { return chunkD3MOZUNH_cjs.StepperActivationMode; }
35
+ });
36
+ Object.defineProperty(exports, "StepperContent", {
37
+ enumerable: true,
38
+ get: function () { return chunkD3MOZUNH_cjs.StepperContent; }
39
+ });
40
+ Object.defineProperty(exports, "StepperDataState", {
41
+ enumerable: true,
42
+ get: function () { return chunkD3MOZUNH_cjs.StepperDataState; }
43
+ });
44
+ Object.defineProperty(exports, "StepperDescription", {
45
+ enumerable: true,
46
+ get: function () { return chunkD3MOZUNH_cjs.StepperDescription; }
47
+ });
48
+ Object.defineProperty(exports, "StepperFocusIntent", {
49
+ enumerable: true,
50
+ get: function () { return chunkD3MOZUNH_cjs.StepperFocusIntent; }
51
+ });
52
+ Object.defineProperty(exports, "StepperIndicator", {
53
+ enumerable: true,
54
+ get: function () { return chunkD3MOZUNH_cjs.StepperIndicator; }
55
+ });
56
+ Object.defineProperty(exports, "StepperItem", {
57
+ enumerable: true,
58
+ get: function () { return chunkD3MOZUNH_cjs.StepperItem; }
59
+ });
60
+ Object.defineProperty(exports, "StepperNav", {
61
+ enumerable: true,
62
+ get: function () { return chunkD3MOZUNH_cjs.StepperNav; }
63
+ });
64
+ Object.defineProperty(exports, "StepperNavigationDirection", {
65
+ enumerable: true,
66
+ get: function () { return chunkD3MOZUNH_cjs.StepperNavigationDirection; }
67
+ });
68
+ Object.defineProperty(exports, "StepperNextTrigger", {
69
+ enumerable: true,
70
+ get: function () { return chunkD3MOZUNH_cjs.StepperNextTrigger; }
71
+ });
72
+ Object.defineProperty(exports, "StepperOrientation", {
73
+ enumerable: true,
74
+ get: function () { return chunkD3MOZUNH_cjs.StepperOrientation; }
75
+ });
76
+ Object.defineProperty(exports, "StepperPanel", {
77
+ enumerable: true,
78
+ get: function () { return chunkD3MOZUNH_cjs.StepperPanel; }
79
+ });
80
+ Object.defineProperty(exports, "StepperPrevTrigger", {
81
+ enumerable: true,
82
+ get: function () { return chunkD3MOZUNH_cjs.StepperPrevTrigger; }
83
+ });
84
+ Object.defineProperty(exports, "StepperTitle", {
85
+ enumerable: true,
86
+ get: function () { return chunkD3MOZUNH_cjs.StepperTitle; }
87
+ });
88
+ Object.defineProperty(exports, "StepperTrigger", {
89
+ enumerable: true,
90
+ get: function () { return chunkD3MOZUNH_cjs.StepperTrigger; }
91
+ });
92
+ Object.defineProperty(exports, "useStepperContext", {
93
+ enumerable: true,
94
+ get: function () { return chunkD3MOZUNH_cjs.useStepperContext; }
95
+ });
96
+ Object.defineProperty(exports, "useStepperFocusContext", {
97
+ enumerable: true,
98
+ get: function () { return chunkD3MOZUNH_cjs.useStepperFocusContext; }
99
+ });
100
+ Object.defineProperty(exports, "useStepperItemContext", {
101
+ enumerable: true,
102
+ get: function () { return chunkD3MOZUNH_cjs.useStepperItemContext; }
103
+ });
@@ -0,0 +1,162 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import React__default from 'react';
4
+ import { Direction } from '../../contexts/index.cjs';
5
+
6
+ type StepperProps = React.ComponentProps<"div"> & {
7
+ asChild?: boolean;
8
+ value?: string;
9
+ defaultValue?: string;
10
+ onValueChange?: (value: string) => void;
11
+ onValueComplete?: (value: string, completed: boolean) => void;
12
+ onValueAdd?: (value: string) => void;
13
+ onValueRemove?: (value: string) => void;
14
+ onValidate?: (value: string, direction: StepperNavigationDirection) => boolean | Promise<boolean>;
15
+ activationMode?: StepperActivationMode;
16
+ dir?: Direction;
17
+ orientation?: StepperOrientation;
18
+ disabled?: boolean;
19
+ loop?: boolean;
20
+ nonInteractive?: boolean;
21
+ indicators?: StepIndicators;
22
+ };
23
+ declare function Stepper({ value, defaultValue, onValueChange, onValueComplete, onValueAdd, onValueRemove, onValidate, id: idProp, dir: dirProp, orientation, activationMode, asChild, disabled, nonInteractive, loop, className, indicators, ...rootProps }: StepperProps): react_jsx_runtime.JSX.Element;
24
+
25
+ declare const StepperFocusIntent: {
26
+ readonly FIRST: "first";
27
+ readonly LAST: "last";
28
+ readonly PREV: "prev";
29
+ readonly NEXT: "next";
30
+ };
31
+ type StepperFocusIntent = (typeof StepperFocusIntent)[keyof typeof StepperFocusIntent];
32
+ declare const StepperOrientation: {
33
+ readonly HORIZONTAL: "horizontal";
34
+ readonly VERTICAL: "vertical";
35
+ };
36
+ type StepperOrientation = (typeof StepperOrientation)[keyof typeof StepperOrientation];
37
+ declare const StepperNavigationDirection: {
38
+ readonly NEXT: "next";
39
+ readonly PREV: "prev";
40
+ };
41
+ type StepperNavigationDirection = (typeof StepperNavigationDirection)[keyof typeof StepperNavigationDirection];
42
+ declare const StepperActivationMode: {
43
+ readonly AUTOMATIC: "automatic";
44
+ readonly MANUAL: "manual";
45
+ };
46
+ type StepperActivationMode = (typeof StepperActivationMode)[keyof typeof StepperActivationMode];
47
+ declare const StepperDataState: {
48
+ readonly INACTIVE: "inactive";
49
+ readonly ACTIVE: "active";
50
+ readonly COMPLETED: "completed";
51
+ };
52
+ type StepperDataState = (typeof StepperDataState)[keyof typeof StepperDataState];
53
+ type StepIndicators = {
54
+ active?: React.ReactNode;
55
+ completed?: React.ReactNode;
56
+ inactive?: React.ReactNode;
57
+ loading?: React.ReactNode;
58
+ };
59
+
60
+ interface StepperContextValue {
61
+ id: string;
62
+ dir: Direction;
63
+ orientation: StepperOrientation;
64
+ activationMode: StepperActivationMode;
65
+ disabled: boolean;
66
+ nonInteractive: boolean;
67
+ loop: boolean;
68
+ indicators: StepIndicators;
69
+ }
70
+ declare function useStepperContext(consumerName: string): StepperContextValue;
71
+
72
+ type StepperTriggerElement = React.ComponentRef<typeof StepperTrigger>;
73
+ type StepperTriggerProps = React.ComponentProps<"button"> & {
74
+ asChild?: boolean;
75
+ };
76
+ declare function StepperTrigger({ asChild, disabled, className, ref, ...triggerProps }: StepperTriggerProps): react_jsx_runtime.JSX.Element;
77
+
78
+ type StepperItemData = {
79
+ id: string;
80
+ ref: React.RefObject<StepperTriggerElement | null>;
81
+ value: string;
82
+ active: boolean;
83
+ disabled: boolean;
84
+ };
85
+ type StepperFocusContextValue = {
86
+ tabStopId: string | null;
87
+ onItemFocus: (tabStopId: string) => void;
88
+ onItemShiftTab: () => void;
89
+ onFocusableItemAdd: () => void;
90
+ onFocusableItemRemove: () => void;
91
+ onItemRegister: (item: StepperItemData) => void;
92
+ onItemUnregister: (id: string) => void;
93
+ getItems: () => StepperItemData[];
94
+ };
95
+ declare function useStepperFocusContext(consumerName: string): StepperFocusContextValue;
96
+
97
+ type StepperNavProps = React.ComponentProps<"nav"> & {
98
+ asChild?: boolean;
99
+ };
100
+ declare function StepperNav({ className, children, asChild, ref, ...listProps }: StepperNavProps): react_jsx_runtime.JSX.Element;
101
+
102
+ type StepperItemProps = React.ComponentProps<"div"> & {
103
+ asChild?: boolean;
104
+ value: string;
105
+ completed?: boolean;
106
+ disabled?: boolean;
107
+ loading?: boolean;
108
+ };
109
+ declare function StepperItem({ value: itemValue, completed, disabled, loading, asChild, className, children, ...props }: StepperItemProps): react_jsx_runtime.JSX.Element;
110
+
111
+ type StepperStepState = {
112
+ value: string;
113
+ completed: boolean;
114
+ disabled: boolean;
115
+ loading: boolean;
116
+ };
117
+
118
+ type StepperItemContextValue = {
119
+ value: string;
120
+ stepState: StepperStepState | undefined;
121
+ };
122
+ declare function useStepperItemContext(consumerName: string): StepperItemContextValue;
123
+
124
+ type StepperIndicatorProps = Omit<React.ComponentProps<"div">, "children"> & {
125
+ asChild?: boolean;
126
+ children?: React.ReactNode | ((dataState: StepperDataState) => React.ReactNode);
127
+ };
128
+ declare function StepperIndicator({ className, children, asChild, ref, ...props }: StepperIndicatorProps): react_jsx_runtime.JSX.Element;
129
+
130
+ type StepperTitleProps = React.ComponentProps<"h3"> & {
131
+ asChild?: boolean;
132
+ };
133
+ declare function StepperTitle({ className, asChild, ...props }: StepperTitleProps): react_jsx_runtime.JSX.Element;
134
+
135
+ type StepperDescriptionProps = React.ComponentProps<"span"> & {
136
+ asChild?: boolean;
137
+ };
138
+ declare function StepperDescription({ className, asChild, ...props }: StepperDescriptionProps): react_jsx_runtime.JSX.Element;
139
+
140
+ type StepperPanelProps = React__default.ComponentProps<"div"> & {
141
+ asChild?: boolean;
142
+ };
143
+ declare function StepperPanel({ children, asChild, className, ...props }: StepperPanelProps): react_jsx_runtime.JSX.Element;
144
+
145
+ type StepperContentProps = React.ComponentProps<"div"> & {
146
+ asChild?: boolean;
147
+ value: string;
148
+ forceMount?: boolean;
149
+ };
150
+ declare function StepperContent({ value: valueProp, asChild, forceMount, className, ...props }: StepperContentProps): react_jsx_runtime.JSX.Element | null;
151
+
152
+ type StepperNextTriggerProps = React.ComponentProps<"button"> & {
153
+ asChild?: boolean;
154
+ };
155
+ declare function StepperNextTrigger({ asChild, onClick, disabled, ...props }: StepperNextTriggerProps): react_jsx_runtime.JSX.Element;
156
+
157
+ type StepperPrevTriggerProps = React.ComponentProps<"button"> & {
158
+ asChild?: boolean;
159
+ };
160
+ declare function StepperPrevTrigger({ asChild, disabled, onClick, ...props }: StepperPrevTriggerProps): react_jsx_runtime.JSX.Element;
161
+
162
+ export { type StepIndicators, Stepper, StepperActivationMode, StepperContent, type StepperContentProps, StepperDataState, StepperDescription, type StepperDescriptionProps, StepperFocusIntent, StepperIndicator, type StepperIndicatorProps, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, StepperNavigationDirection, StepperNextTrigger, type StepperNextTriggerProps, StepperOrientation, StepperPanel, type StepperPanelProps, StepperPrevTrigger, type StepperPrevTriggerProps, type StepperProps, StepperTitle, type StepperTitleProps, StepperTrigger, type StepperTriggerElement, type StepperTriggerProps, useStepperContext, useStepperFocusContext, useStepperItemContext };