@misael703/ui 1.16.0 → 1.17.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 (65) hide show
  1. package/dist/{chunk-BBZESXFJ.mjs → chunk-2I7NE7QR.mjs} +2 -2
  2. package/dist/chunk-2I7NE7QR.mjs.map +1 -0
  3. package/dist/{chunk-N5D6AC6M.mjs → chunk-4QHE5H36.mjs} +34 -3
  4. package/dist/chunk-4QHE5H36.mjs.map +1 -0
  5. package/dist/{chunk-BGIX6G5V.mjs → chunk-5A3MAGA3.mjs} +48 -10
  6. package/dist/chunk-5A3MAGA3.mjs.map +1 -0
  7. package/dist/{chunk-DHCJMYFD.mjs → chunk-B4I6BMNS.mjs} +7 -3
  8. package/dist/chunk-B4I6BMNS.mjs.map +1 -0
  9. package/dist/{chunk-62F5E5NQ.js → chunk-DGBVPXGW.js} +14 -14
  10. package/dist/{chunk-62F5E5NQ.js.map → chunk-DGBVPXGW.js.map} +1 -1
  11. package/dist/{chunk-TIO7MIUN.js → chunk-FS42XEU7.js} +49 -9
  12. package/dist/chunk-FS42XEU7.js.map +1 -0
  13. package/dist/{chunk-OXX5RSZQ.js → chunk-IZELILHK.js} +2 -2
  14. package/dist/chunk-IZELILHK.js.map +1 -0
  15. package/dist/{chunk-DY3DCHWD.mjs → chunk-L4ITC2U6.mjs} +3 -3
  16. package/dist/{chunk-DY3DCHWD.mjs.map → chunk-L4ITC2U6.mjs.map} +1 -1
  17. package/dist/{chunk-D7RM4AY4.js → chunk-MJ6UOTWQ.js} +13 -13
  18. package/dist/{chunk-D7RM4AY4.js.map → chunk-MJ6UOTWQ.js.map} +1 -1
  19. package/dist/{chunk-HHEYTMBY.js → chunk-MVJITG75.js} +37 -2
  20. package/dist/chunk-MVJITG75.js.map +1 -0
  21. package/dist/{chunk-YL2IWHUZ.mjs → chunk-PKCLA2FD.mjs} +3 -3
  22. package/dist/{chunk-YL2IWHUZ.mjs.map → chunk-PKCLA2FD.mjs.map} +1 -1
  23. package/dist/{chunk-AZBX7UFI.js → chunk-PRECODB3.js} +8 -2
  24. package/dist/chunk-PRECODB3.js.map +1 -0
  25. package/dist/{chunk-ZMRN4DMC.js → chunk-XCZVZVYJ.js} +9 -9
  26. package/dist/{chunk-ZMRN4DMC.js.map → chunk-XCZVZVYJ.js.map} +1 -1
  27. package/dist/{chunk-5MIN6LUP.mjs → chunk-YNU45Y5T.mjs} +3 -3
  28. package/dist/{chunk-5MIN6LUP.mjs.map → chunk-YNU45Y5T.mjs.map} +1 -1
  29. package/dist/components/AdvancedPickers.js +6 -6
  30. package/dist/components/AdvancedPickers.mjs +2 -2
  31. package/dist/components/Display.d.mts +4 -3
  32. package/dist/components/Display.d.ts +4 -3
  33. package/dist/components/Display.js +12 -12
  34. package/dist/components/Display.mjs +1 -1
  35. package/dist/components/Display3.js +8 -8
  36. package/dist/components/Display3.mjs +2 -2
  37. package/dist/components/Layout.d.mts +32 -2
  38. package/dist/components/Layout.d.ts +32 -2
  39. package/dist/components/Layout.js +26 -18
  40. package/dist/components/Layout.mjs +1 -1
  41. package/dist/components/Pickers.js +7 -7
  42. package/dist/components/Pickers.mjs +2 -2
  43. package/dist/components/Toggle.d.mts +17 -1
  44. package/dist/components/Toggle.d.ts +17 -1
  45. package/dist/components/Toggle.js +12 -4
  46. package/dist/components/Toggle.mjs +1 -1
  47. package/dist/index.d.mts +4 -4
  48. package/dist/index.d.ts +4 -4
  49. package/dist/index.js +96 -64
  50. package/dist/index.mjs +9 -9
  51. package/dist/styles.css +1 -1
  52. package/dist/tokens.css +1 -1
  53. package/dist/utils/dateFormat.d.mts +24 -1
  54. package/dist/utils/dateFormat.d.ts +24 -1
  55. package/dist/utils/dateFormat.js +26 -10
  56. package/dist/utils/dateFormat.mjs +1 -1
  57. package/package.json +1 -1
  58. package/dist/chunk-AZBX7UFI.js.map +0 -1
  59. package/dist/chunk-BBZESXFJ.mjs.map +0 -1
  60. package/dist/chunk-BGIX6G5V.mjs.map +0 -1
  61. package/dist/chunk-DHCJMYFD.mjs.map +0 -1
  62. package/dist/chunk-HHEYTMBY.js.map +0 -1
  63. package/dist/chunk-N5D6AC6M.mjs.map +0 -1
  64. package/dist/chunk-OXX5RSZQ.js.map +0 -1
  65. package/dist/chunk-TIO7MIUN.js.map +0 -1
@@ -56,12 +56,42 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
56
56
  size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
57
57
  }
58
58
  declare function Container({ size, className, style, ...rest }: ContainerProps): react_jsx_runtime.JSX.Element;
59
+ /**
60
+ * Column count. A number/string is fixed; an object is responsive per
61
+ * breakpoint (each breakpoint inherits the previous one if omitted).
62
+ * Breakpoints match the kit tokens: sm 480 · md 768 · lg 1024 · xl 1280.
63
+ */
64
+ type ResponsiveColumns = number | string | {
65
+ base?: number;
66
+ sm?: number;
67
+ md?: number;
68
+ lg?: number;
69
+ xl?: number;
70
+ };
59
71
  interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
60
- columns?: number | string;
72
+ columns?: ResponsiveColumns;
61
73
  gap?: SpaceToken;
74
+ /** Intrinsically responsive auto-fit columns; takes precedence over `columns`. */
62
75
  minColWidth?: number | string;
63
76
  }
64
77
  declare function Grid({ columns, gap, minColWidth, className, style, ...rest }: GridProps): react_jsx_runtime.JSX.Element;
78
+ /**
79
+ * Horizontal group that wraps — the "cluster" layout primitive (Braid /
80
+ * Every Layout). Sugar for `<Stack direction="row" wrap>`. Use for tag
81
+ * lists, button rows, filter chips: items flow and wrap, gap stays even.
82
+ */
83
+ declare const Cluster: React.ForwardRefExoticComponent<Omit<StackProps, "wrap" | "direction"> & React.RefAttributes<HTMLDivElement>>;
84
+ interface SpacerProps extends React.HTMLAttributes<HTMLDivElement> {
85
+ /** Fixed size on a space token. Omit for a flexible spacer (`flex: 1`). */
86
+ size?: SpaceToken;
87
+ }
88
+ /**
89
+ * Spacing element. With `size`, a fixed gap on the space scale. Without it,
90
+ * a flexible spacer that eats remaining space in a flex container (pushes
91
+ * siblings apart) — e.g. a toolbar with left items + `<Spacer />` + right
92
+ * items.
93
+ */
94
+ declare function Spacer({ size, style, ...rest }: SpacerProps): react_jsx_runtime.JSX.Element;
65
95
  interface KeyValueProps extends React.HTMLAttributes<HTMLDListElement> {
66
96
  /** Override del ancho de la columna de keys (default 200px) */
67
97
  keyWidth?: number | string;
@@ -87,4 +117,4 @@ interface StepperProps {
87
117
  }
88
118
  declare function Stepper({ steps, current, className }: StepperProps): react_jsx_runtime.JSX.Element;
89
119
 
90
- export { Container, type ContainerProps, Divider, type DividerProps, Grid, type GridProps, HStack, KeyValue, type KeyValueProps, KeyValueRow, type KeyValueRowProps, ListGroup, ListGroupItem, type ListGroupItemProps, Stack, type StackProps, Stepper, type StepperProps, Tab, TabList, TabPanel, type TabProps, Table, Tabs, type TabsProps, Tooltip, type TooltipProps, VStack };
120
+ export { Cluster, Container, type ContainerProps, Divider, type DividerProps, Grid, type GridProps, HStack, KeyValue, type KeyValueProps, KeyValueRow, type KeyValueRowProps, ListGroup, ListGroupItem, type ListGroupItemProps, type ResponsiveColumns, Spacer, type SpacerProps, Stack, type StackProps, Stepper, type StepperProps, Tab, TabList, TabPanel, type TabProps, Table, Tabs, type TabsProps, Tooltip, type TooltipProps, VStack };
@@ -56,12 +56,42 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
56
56
  size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
57
57
  }
58
58
  declare function Container({ size, className, style, ...rest }: ContainerProps): react_jsx_runtime.JSX.Element;
59
+ /**
60
+ * Column count. A number/string is fixed; an object is responsive per
61
+ * breakpoint (each breakpoint inherits the previous one if omitted).
62
+ * Breakpoints match the kit tokens: sm 480 · md 768 · lg 1024 · xl 1280.
63
+ */
64
+ type ResponsiveColumns = number | string | {
65
+ base?: number;
66
+ sm?: number;
67
+ md?: number;
68
+ lg?: number;
69
+ xl?: number;
70
+ };
59
71
  interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
60
- columns?: number | string;
72
+ columns?: ResponsiveColumns;
61
73
  gap?: SpaceToken;
74
+ /** Intrinsically responsive auto-fit columns; takes precedence over `columns`. */
62
75
  minColWidth?: number | string;
63
76
  }
64
77
  declare function Grid({ columns, gap, minColWidth, className, style, ...rest }: GridProps): react_jsx_runtime.JSX.Element;
78
+ /**
79
+ * Horizontal group that wraps — the "cluster" layout primitive (Braid /
80
+ * Every Layout). Sugar for `<Stack direction="row" wrap>`. Use for tag
81
+ * lists, button rows, filter chips: items flow and wrap, gap stays even.
82
+ */
83
+ declare const Cluster: React.ForwardRefExoticComponent<Omit<StackProps, "wrap" | "direction"> & React.RefAttributes<HTMLDivElement>>;
84
+ interface SpacerProps extends React.HTMLAttributes<HTMLDivElement> {
85
+ /** Fixed size on a space token. Omit for a flexible spacer (`flex: 1`). */
86
+ size?: SpaceToken;
87
+ }
88
+ /**
89
+ * Spacing element. With `size`, a fixed gap on the space scale. Without it,
90
+ * a flexible spacer that eats remaining space in a flex container (pushes
91
+ * siblings apart) — e.g. a toolbar with left items + `<Spacer />` + right
92
+ * items.
93
+ */
94
+ declare function Spacer({ size, style, ...rest }: SpacerProps): react_jsx_runtime.JSX.Element;
65
95
  interface KeyValueProps extends React.HTMLAttributes<HTMLDListElement> {
66
96
  /** Override del ancho de la columna de keys (default 200px) */
67
97
  keyWidth?: number | string;
@@ -87,4 +117,4 @@ interface StepperProps {
87
117
  }
88
118
  declare function Stepper({ steps, current, className }: StepperProps): react_jsx_runtime.JSX.Element;
89
119
 
90
- export { Container, type ContainerProps, Divider, type DividerProps, Grid, type GridProps, HStack, KeyValue, type KeyValueProps, KeyValueRow, type KeyValueRowProps, ListGroup, ListGroupItem, type ListGroupItemProps, Stack, type StackProps, Stepper, type StepperProps, Tab, TabList, TabPanel, type TabProps, Table, Tabs, type TabsProps, Tooltip, type TooltipProps, VStack };
120
+ export { Cluster, Container, type ContainerProps, Divider, type DividerProps, Grid, type GridProps, HStack, KeyValue, type KeyValueProps, KeyValueRow, type KeyValueRowProps, ListGroup, ListGroupItem, type ListGroupItemProps, type ResponsiveColumns, Spacer, type SpacerProps, Stack, type StackProps, Stepper, type StepperProps, Tab, TabList, TabPanel, type TabProps, Table, Tabs, type TabsProps, Tooltip, type TooltipProps, VStack };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkTIO7MIUN_js = require('../chunk-TIO7MIUN.js');
4
+ var chunkFS42XEU7_js = require('../chunk-FS42XEU7.js');
5
5
  require('../chunk-7I5LFBQR.js');
6
6
  require('../chunk-WAGWB35Q.js');
7
7
  require('../chunk-EUB4PHPI.js');
@@ -10,73 +10,81 @@ require('../chunk-PASF6T4H.js');
10
10
 
11
11
 
12
12
 
13
+ Object.defineProperty(exports, "Cluster", {
14
+ enumerable: true,
15
+ get: function () { return chunkFS42XEU7_js.Cluster; }
16
+ });
13
17
  Object.defineProperty(exports, "Container", {
14
18
  enumerable: true,
15
- get: function () { return chunkTIO7MIUN_js.Container; }
19
+ get: function () { return chunkFS42XEU7_js.Container; }
16
20
  });
17
21
  Object.defineProperty(exports, "Divider", {
18
22
  enumerable: true,
19
- get: function () { return chunkTIO7MIUN_js.Divider; }
23
+ get: function () { return chunkFS42XEU7_js.Divider; }
20
24
  });
21
25
  Object.defineProperty(exports, "Grid", {
22
26
  enumerable: true,
23
- get: function () { return chunkTIO7MIUN_js.Grid; }
27
+ get: function () { return chunkFS42XEU7_js.Grid; }
24
28
  });
25
29
  Object.defineProperty(exports, "HStack", {
26
30
  enumerable: true,
27
- get: function () { return chunkTIO7MIUN_js.HStack; }
31
+ get: function () { return chunkFS42XEU7_js.HStack; }
28
32
  });
29
33
  Object.defineProperty(exports, "KeyValue", {
30
34
  enumerable: true,
31
- get: function () { return chunkTIO7MIUN_js.KeyValue; }
35
+ get: function () { return chunkFS42XEU7_js.KeyValue; }
32
36
  });
33
37
  Object.defineProperty(exports, "KeyValueRow", {
34
38
  enumerable: true,
35
- get: function () { return chunkTIO7MIUN_js.KeyValueRow; }
39
+ get: function () { return chunkFS42XEU7_js.KeyValueRow; }
36
40
  });
37
41
  Object.defineProperty(exports, "ListGroup", {
38
42
  enumerable: true,
39
- get: function () { return chunkTIO7MIUN_js.ListGroup; }
43
+ get: function () { return chunkFS42XEU7_js.ListGroup; }
40
44
  });
41
45
  Object.defineProperty(exports, "ListGroupItem", {
42
46
  enumerable: true,
43
- get: function () { return chunkTIO7MIUN_js.ListGroupItem; }
47
+ get: function () { return chunkFS42XEU7_js.ListGroupItem; }
48
+ });
49
+ Object.defineProperty(exports, "Spacer", {
50
+ enumerable: true,
51
+ get: function () { return chunkFS42XEU7_js.Spacer; }
44
52
  });
45
53
  Object.defineProperty(exports, "Stack", {
46
54
  enumerable: true,
47
- get: function () { return chunkTIO7MIUN_js.Stack; }
55
+ get: function () { return chunkFS42XEU7_js.Stack; }
48
56
  });
49
57
  Object.defineProperty(exports, "Stepper", {
50
58
  enumerable: true,
51
- get: function () { return chunkTIO7MIUN_js.Stepper; }
59
+ get: function () { return chunkFS42XEU7_js.Stepper; }
52
60
  });
53
61
  Object.defineProperty(exports, "Tab", {
54
62
  enumerable: true,
55
- get: function () { return chunkTIO7MIUN_js.Tab; }
63
+ get: function () { return chunkFS42XEU7_js.Tab; }
56
64
  });
57
65
  Object.defineProperty(exports, "TabList", {
58
66
  enumerable: true,
59
- get: function () { return chunkTIO7MIUN_js.TabList; }
67
+ get: function () { return chunkFS42XEU7_js.TabList; }
60
68
  });
61
69
  Object.defineProperty(exports, "TabPanel", {
62
70
  enumerable: true,
63
- get: function () { return chunkTIO7MIUN_js.TabPanel; }
71
+ get: function () { return chunkFS42XEU7_js.TabPanel; }
64
72
  });
65
73
  Object.defineProperty(exports, "Table", {
66
74
  enumerable: true,
67
- get: function () { return chunkTIO7MIUN_js.Table; }
75
+ get: function () { return chunkFS42XEU7_js.Table; }
68
76
  });
69
77
  Object.defineProperty(exports, "Tabs", {
70
78
  enumerable: true,
71
- get: function () { return chunkTIO7MIUN_js.Tabs; }
79
+ get: function () { return chunkFS42XEU7_js.Tabs; }
72
80
  });
73
81
  Object.defineProperty(exports, "Tooltip", {
74
82
  enumerable: true,
75
- get: function () { return chunkTIO7MIUN_js.Tooltip; }
83
+ get: function () { return chunkFS42XEU7_js.Tooltip; }
76
84
  });
77
85
  Object.defineProperty(exports, "VStack", {
78
86
  enumerable: true,
79
- get: function () { return chunkTIO7MIUN_js.VStack; }
87
+ get: function () { return chunkFS42XEU7_js.VStack; }
80
88
  });
81
89
  //# sourceMappingURL=Layout.js.map
82
90
  //# sourceMappingURL=Layout.js.map
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { Container, Divider, Grid, HStack, KeyValue, KeyValueRow, ListGroup, ListGroupItem, Stack, Stepper, Tab, TabList, TabPanel, Table, Tabs, Tooltip, VStack } from '../chunk-BGIX6G5V.mjs';
2
+ export { Cluster, Container, Divider, Grid, HStack, KeyValue, KeyValueRow, ListGroup, ListGroupItem, Spacer, Stack, Stepper, Tab, TabList, TabPanel, Table, Tabs, Tooltip, VStack } from '../chunk-5A3MAGA3.mjs';
3
3
  import '../chunk-PRML6VEF.mjs';
4
4
  import '../chunk-FKBQYQQD.mjs';
5
5
  import '../chunk-IEPKSPBX.mjs';
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunk62F5E5NQ_js = require('../chunk-62F5E5NQ.js');
5
- require('../chunk-HHEYTMBY.js');
4
+ var chunkDGBVPXGW_js = require('../chunk-DGBVPXGW.js');
5
+ require('../chunk-MVJITG75.js');
6
6
  require('../chunk-XMLBKK7X.js');
7
7
  require('../chunk-7I5LFBQR.js');
8
8
  require('../chunk-WAGWB35Q.js');
@@ -15,23 +15,23 @@ require('../chunk-PASF6T4H.js');
15
15
 
16
16
  Object.defineProperty(exports, "Combobox", {
17
17
  enumerable: true,
18
- get: function () { return chunk62F5E5NQ_js.Combobox; }
18
+ get: function () { return chunkDGBVPXGW_js.Combobox; }
19
19
  });
20
20
  Object.defineProperty(exports, "DatePicker", {
21
21
  enumerable: true,
22
- get: function () { return chunk62F5E5NQ_js.DatePicker; }
22
+ get: function () { return chunkDGBVPXGW_js.DatePicker; }
23
23
  });
24
24
  Object.defineProperty(exports, "FileUpload", {
25
25
  enumerable: true,
26
- get: function () { return chunk62F5E5NQ_js.FileUpload; }
26
+ get: function () { return chunkDGBVPXGW_js.FileUpload; }
27
27
  });
28
28
  Object.defineProperty(exports, "MonthPicker", {
29
29
  enumerable: true,
30
- get: function () { return chunk62F5E5NQ_js.MonthPicker; }
30
+ get: function () { return chunkDGBVPXGW_js.MonthPicker; }
31
31
  });
32
32
  Object.defineProperty(exports, "YearPicker", {
33
33
  enumerable: true,
34
- get: function () { return chunk62F5E5NQ_js.YearPicker; }
34
+ get: function () { return chunkDGBVPXGW_js.YearPicker; }
35
35
  });
36
36
  //# sourceMappingURL=Pickers.js.map
37
37
  //# sourceMappingURL=Pickers.js.map
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- export { Combobox, DatePicker, FileUpload, MonthPicker, YearPicker } from '../chunk-5MIN6LUP.mjs';
3
- import '../chunk-N5D6AC6M.mjs';
2
+ export { Combobox, DatePicker, FileUpload, MonthPicker, YearPicker } from '../chunk-YNU45Y5T.mjs';
3
+ import '../chunk-4QHE5H36.mjs';
4
4
  import '../chunk-6P2TKRTL.mjs';
5
5
  import '../chunk-PRML6VEF.mjs';
6
6
  import '../chunk-FKBQYQQD.mjs';
@@ -34,9 +34,25 @@ interface ToggleGroupMultipleProps extends ToggleGroupBaseProps {
34
34
  }
35
35
  type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
36
36
  declare function ToggleGroup(props: ToggleGroupProps): react_jsx_runtime.JSX.Element;
37
+ /**
38
+ * `SegmentedControl` — a single-select `ToggleGroup` with equal-width
39
+ * segments. The common case (view switcher, filter mode, on/off pair) is
40
+ * `type="single"`; this drops the discriminant so you can't trip the
41
+ * cryptic union error from forgetting `type`. Use `SegmentedControlItem`
42
+ * (alias of `ToggleGroupItem`) for the options.
43
+ *
44
+ * <SegmentedControl value={view} onChange={setView} ariaLabel="Vista">
45
+ * <SegmentedControlItem value="list">Lista</SegmentedControlItem>
46
+ * <SegmentedControlItem value="grid">Tarjetas</SegmentedControlItem>
47
+ * </SegmentedControl>
48
+ */
49
+ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'>;
50
+ declare function SegmentedControl({ className, ...rest }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
37
51
  interface ToggleGroupItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
38
52
  value: string;
39
53
  }
40
54
  declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
55
+ /** Alias of `ToggleGroupItem` for use inside `SegmentedControl`. */
56
+ declare const SegmentedControlItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
41
57
 
42
- export { Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleProps, type ToggleSize, type ToggleVariant };
58
+ export { SegmentedControl, SegmentedControlItem, type SegmentedControlProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleProps, type ToggleSize, type ToggleVariant };
@@ -34,9 +34,25 @@ interface ToggleGroupMultipleProps extends ToggleGroupBaseProps {
34
34
  }
35
35
  type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
36
36
  declare function ToggleGroup(props: ToggleGroupProps): react_jsx_runtime.JSX.Element;
37
+ /**
38
+ * `SegmentedControl` — a single-select `ToggleGroup` with equal-width
39
+ * segments. The common case (view switcher, filter mode, on/off pair) is
40
+ * `type="single"`; this drops the discriminant so you can't trip the
41
+ * cryptic union error from forgetting `type`. Use `SegmentedControlItem`
42
+ * (alias of `ToggleGroupItem`) for the options.
43
+ *
44
+ * <SegmentedControl value={view} onChange={setView} ariaLabel="Vista">
45
+ * <SegmentedControlItem value="list">Lista</SegmentedControlItem>
46
+ * <SegmentedControlItem value="grid">Tarjetas</SegmentedControlItem>
47
+ * </SegmentedControl>
48
+ */
49
+ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'>;
50
+ declare function SegmentedControl({ className, ...rest }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
37
51
  interface ToggleGroupItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
38
52
  value: string;
39
53
  }
40
54
  declare const ToggleGroupItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
55
+ /** Alias of `ToggleGroupItem` for use inside `SegmentedControl`. */
56
+ declare const SegmentedControlItem: React.ForwardRefExoticComponent<ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
41
57
 
42
- export { Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleProps, type ToggleSize, type ToggleVariant };
58
+ export { SegmentedControl, SegmentedControlItem, type SegmentedControlProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, type ToggleProps, type ToggleSize, type ToggleVariant };
@@ -1,22 +1,30 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkAZBX7UFI_js = require('../chunk-AZBX7UFI.js');
4
+ var chunkPRECODB3_js = require('../chunk-PRECODB3.js');
5
5
  require('../chunk-PASF6T4H.js');
6
6
 
7
7
 
8
8
 
9
+ Object.defineProperty(exports, "SegmentedControl", {
10
+ enumerable: true,
11
+ get: function () { return chunkPRECODB3_js.SegmentedControl; }
12
+ });
13
+ Object.defineProperty(exports, "SegmentedControlItem", {
14
+ enumerable: true,
15
+ get: function () { return chunkPRECODB3_js.SegmentedControlItem; }
16
+ });
9
17
  Object.defineProperty(exports, "Toggle", {
10
18
  enumerable: true,
11
- get: function () { return chunkAZBX7UFI_js.Toggle; }
19
+ get: function () { return chunkPRECODB3_js.Toggle; }
12
20
  });
13
21
  Object.defineProperty(exports, "ToggleGroup", {
14
22
  enumerable: true,
15
- get: function () { return chunkAZBX7UFI_js.ToggleGroup; }
23
+ get: function () { return chunkPRECODB3_js.ToggleGroup; }
16
24
  });
17
25
  Object.defineProperty(exports, "ToggleGroupItem", {
18
26
  enumerable: true,
19
- get: function () { return chunkAZBX7UFI_js.ToggleGroupItem; }
27
+ get: function () { return chunkPRECODB3_js.ToggleGroupItem; }
20
28
  });
21
29
  //# sourceMappingURL=Toggle.js.map
22
30
  //# sourceMappingURL=Toggle.js.map
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { Toggle, ToggleGroup, ToggleGroupItem } from '../chunk-DHCJMYFD.mjs';
2
+ export { SegmentedControl, SegmentedControlItem, Toggle, ToggleGroup, ToggleGroupItem } from '../chunk-B4I6BMNS.mjs';
3
3
  import '../chunk-IEPCH3JB.mjs';
4
4
  //# sourceMappingURL=Toggle.mjs.map
5
5
  //# sourceMappingURL=Toggle.mjs.map
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { BRAND_DEFAULTS, BrandDefaults, configureBrand, getBrand, resetBrand } from './brand.mjs';
2
2
  export { cx } from './utils/cx.mjs';
3
- export { DateFormat, ResolvedDateFormat, addMonths, buildMonthGrid, dateFormatPlaceholder, detectFormatFromLocale, formatDate, isSameDay, parseDate, resolveDateFormat, startOfMonth } from './utils/dateFormat.mjs';
3
+ export { DateFormat, RelativeDayOptions, ResolvedDateFormat, addMonths, buildMonthGrid, dateFormatPlaceholder, detectFormatFromLocale, formatDate, formatRelativeDay, isSameDay, isToday, isTomorrow, isYesterday, parseDate, resolveDateFormat, startOfMonth } from './utils/dateFormat.mjs';
4
4
  export { Extensible } from './utils/types.mjs';
5
5
  export { LocaleProvider, LocaleProviderProps, UiKitMessages, esMessages, format, useLocale } from './locale/index.mjs';
6
6
  export { Button, ButtonGroup, ButtonProps, ButtonSize, ButtonVariant } from './components/Button.mjs';
7
7
  export { Checkbox, CheckboxProps, FormField, FormFieldProps, Input, InputGroup, InputGroupAddon, InputProps, Label, LabelProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Textarea, TextareaProps } from './components/Form.mjs';
8
- export { Alert, AlertProps, AlertVariant, Badge, BadgeProps, BadgeVariant, Card, CardAccent, CardBody, CardFooter, CardHeader, CardProps, Chip, ChipGroup, ChipProps, ProductCard, ProductCardProps, Skeleton, SkeletonProps, Spinner, SpinnerProps } from './components/Display.mjs';
8
+ export { Alert, AlertProps, AlertVariant, Badge, BadgeProps, BadgeVariant, Card, CardAccent, CardBody, CardFooter, CardHeader, CardProps, CategoryAccent, Chip, ChipGroup, ChipProps, ProductCard, ProductCardProps, Skeleton, SkeletonProps, Spinner, SpinnerProps } from './components/Display.mjs';
9
9
  export { Drawer, DrawerProps, Modal, OverlayProps } from './components/Overlay.mjs';
10
- export { Container, ContainerProps, Divider, DividerProps, Grid, GridProps, HStack, KeyValue, KeyValueProps, KeyValueRow, KeyValueRowProps, ListGroup, ListGroupItem, ListGroupItemProps, Stack, StackProps, Stepper, StepperProps, Tab, TabList, TabPanel, TabProps, Table, Tabs, TabsProps, Tooltip, TooltipProps, VStack } from './components/Layout.mjs';
10
+ export { Cluster, Container, ContainerProps, Divider, DividerProps, Grid, GridProps, HStack, KeyValue, KeyValueProps, KeyValueRow, KeyValueRowProps, ListGroup, ListGroupItem, ListGroupItemProps, ResponsiveColumns, Spacer, SpacerProps, Stack, StackProps, Stepper, StepperProps, Tab, TabList, TabPanel, TabProps, Table, Tabs, TabsProps, Tooltip, TooltipProps, VStack } from './components/Layout.mjs';
11
11
  export { ToastItem, ToastProvider, useToast } from './components/Toast.mjs';
12
12
  export { EmptyState, EmptyStateProps, Kpi, KpiProps, NumberInput, NumberInputProps, Pagination, PaginationProps } from './components/Inputs.mjs';
13
13
  export { Combobox, ComboboxOption, ComboboxProps, DatePicker, DatePickerProps, FileUpload, FileUploadProps, MonthPicker, MonthPickerProps, YearPicker, YearPickerProps } from './components/Pickers.mjs';
@@ -32,7 +32,7 @@ export { CategoryItem, CategoryNav, CategoryNavProps, Hero, HeroProps, Testimoni
32
32
  export { Popover, PopoverPlacement, PopoverProps } from './components/Popover.mjs';
33
33
  export { HoverCard, HoverCardPlacement, HoverCardProps } from './components/HoverCard.mjs';
34
34
  export { ContextMenu, ContextMenuItem, ContextMenuProps } from './components/ContextMenu.mjs';
35
- export { Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle.mjs';
35
+ export { SegmentedControl, SegmentedControlItem, SegmentedControlProps, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle.mjs';
36
36
  export { InputOTP, InputOTPProps } from './components/InputOTP.mjs';
37
37
  export { AspectRatio, AspectRatioProps, ScrollArea, ScrollAreaProps, Separator, SeparatorProps, Slot, SlotProps, Slottable } from './components/Primitives.mjs';
38
38
  export { Carousel, CarouselProps } from './components/Carousel.mjs';
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { BRAND_DEFAULTS, BrandDefaults, configureBrand, getBrand, resetBrand } from './brand.js';
2
2
  export { cx } from './utils/cx.js';
3
- export { DateFormat, ResolvedDateFormat, addMonths, buildMonthGrid, dateFormatPlaceholder, detectFormatFromLocale, formatDate, isSameDay, parseDate, resolveDateFormat, startOfMonth } from './utils/dateFormat.js';
3
+ export { DateFormat, RelativeDayOptions, ResolvedDateFormat, addMonths, buildMonthGrid, dateFormatPlaceholder, detectFormatFromLocale, formatDate, formatRelativeDay, isSameDay, isToday, isTomorrow, isYesterday, parseDate, resolveDateFormat, startOfMonth } from './utils/dateFormat.js';
4
4
  export { Extensible } from './utils/types.js';
5
5
  export { LocaleProvider, LocaleProviderProps, UiKitMessages, esMessages, format, useLocale } from './locale/index.js';
6
6
  export { Button, ButtonGroup, ButtonProps, ButtonSize, ButtonVariant } from './components/Button.js';
7
7
  export { Checkbox, CheckboxProps, FormField, FormFieldProps, Input, InputGroup, InputGroupAddon, InputProps, Label, LabelProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Textarea, TextareaProps } from './components/Form.js';
8
- export { Alert, AlertProps, AlertVariant, Badge, BadgeProps, BadgeVariant, Card, CardAccent, CardBody, CardFooter, CardHeader, CardProps, Chip, ChipGroup, ChipProps, ProductCard, ProductCardProps, Skeleton, SkeletonProps, Spinner, SpinnerProps } from './components/Display.js';
8
+ export { Alert, AlertProps, AlertVariant, Badge, BadgeProps, BadgeVariant, Card, CardAccent, CardBody, CardFooter, CardHeader, CardProps, CategoryAccent, Chip, ChipGroup, ChipProps, ProductCard, ProductCardProps, Skeleton, SkeletonProps, Spinner, SpinnerProps } from './components/Display.js';
9
9
  export { Drawer, DrawerProps, Modal, OverlayProps } from './components/Overlay.js';
10
- export { Container, ContainerProps, Divider, DividerProps, Grid, GridProps, HStack, KeyValue, KeyValueProps, KeyValueRow, KeyValueRowProps, ListGroup, ListGroupItem, ListGroupItemProps, Stack, StackProps, Stepper, StepperProps, Tab, TabList, TabPanel, TabProps, Table, Tabs, TabsProps, Tooltip, TooltipProps, VStack } from './components/Layout.js';
10
+ export { Cluster, Container, ContainerProps, Divider, DividerProps, Grid, GridProps, HStack, KeyValue, KeyValueProps, KeyValueRow, KeyValueRowProps, ListGroup, ListGroupItem, ListGroupItemProps, ResponsiveColumns, Spacer, SpacerProps, Stack, StackProps, Stepper, StepperProps, Tab, TabList, TabPanel, TabProps, Table, Tabs, TabsProps, Tooltip, TooltipProps, VStack } from './components/Layout.js';
11
11
  export { ToastItem, ToastProvider, useToast } from './components/Toast.js';
12
12
  export { EmptyState, EmptyStateProps, Kpi, KpiProps, NumberInput, NumberInputProps, Pagination, PaginationProps } from './components/Inputs.js';
13
13
  export { Combobox, ComboboxOption, ComboboxProps, DatePicker, DatePickerProps, FileUpload, FileUploadProps, MonthPicker, MonthPickerProps, YearPicker, YearPickerProps } from './components/Pickers.js';
@@ -32,7 +32,7 @@ export { CategoryItem, CategoryNav, CategoryNavProps, Hero, HeroProps, Testimoni
32
32
  export { Popover, PopoverPlacement, PopoverProps } from './components/Popover.js';
33
33
  export { HoverCard, HoverCardPlacement, HoverCardProps } from './components/HoverCard.js';
34
34
  export { ContextMenu, ContextMenuItem, ContextMenuProps } from './components/ContextMenu.js';
35
- export { Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle.js';
35
+ export { SegmentedControl, SegmentedControlItem, SegmentedControlProps, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, ToggleProps, ToggleSize, ToggleVariant } from './components/Toggle.js';
36
36
  export { InputOTP, InputOTPProps } from './components/InputOTP.js';
37
37
  export { AspectRatio, AspectRatioProps, ScrollArea, ScrollAreaProps, Separator, SeparatorProps, Slot, SlotProps, Slottable } from './components/Primitives.js';
38
38
  export { Carousel, CarouselProps } from './components/Carousel.js';