@lglab/compose-ui 0.35.0 → 0.37.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 (86) hide show
  1. package/dist/accordion.d.ts +6 -6
  2. package/dist/accordion.d.ts.map +1 -1
  3. package/dist/alert-dialog.d.ts +10 -10
  4. package/dist/alert-dialog.d.ts.map +1 -1
  5. package/dist/alert.d.ts +8 -8
  6. package/dist/alert.d.ts.map +1 -1
  7. package/dist/autocomplete.d.ts +13 -13
  8. package/dist/autocomplete.d.ts.map +1 -1
  9. package/dist/avatar.d.ts +5 -5
  10. package/dist/badge.d.ts +4 -4
  11. package/dist/badge.d.ts.map +1 -1
  12. package/dist/breadcrumb.d.ts +6 -6
  13. package/dist/breadcrumb.d.ts.map +1 -1
  14. package/dist/button.d.ts +2 -2
  15. package/dist/button.d.ts.map +1 -1
  16. package/dist/calendar.d.ts +2 -2
  17. package/dist/card.d.ts +8 -8
  18. package/dist/card.d.ts.map +1 -1
  19. package/dist/checkbox-group.d.ts +2 -2
  20. package/dist/checkbox-group.d.ts.map +1 -1
  21. package/dist/checkbox.d.ts +3 -3
  22. package/dist/checkbox.d.ts.map +1 -1
  23. package/dist/collapsible.d.ts +4 -4
  24. package/dist/collapsible.d.ts.map +1 -1
  25. package/dist/combobox.d.ts +25 -25
  26. package/dist/components/chart/context.d.ts +2 -2
  27. package/dist/components/chart/legend.d.ts +2 -2
  28. package/dist/components/chart/tooltip.d.ts +2 -2
  29. package/dist/components/table/primitives.d.ts +11 -11
  30. package/dist/components/table/primitives.d.ts.map +1 -1
  31. package/dist/components/table/primitives.js +3 -3
  32. package/dist/components/table/primitives.js.map +1 -1
  33. package/dist/context-menu.d.ts +20 -20
  34. package/dist/context-menu.d.ts.map +1 -1
  35. package/dist/dialog.d.ts +11 -11
  36. package/dist/dialog.d.ts.map +1 -1
  37. package/dist/drawer.d.ts +12 -12
  38. package/dist/empty.d.ts +70 -0
  39. package/dist/empty.d.ts.map +1 -0
  40. package/dist/empty.js +77 -0
  41. package/dist/empty.js.map +1 -0
  42. package/dist/field.d.ts +8 -8
  43. package/dist/fieldset.d.ts +3 -3
  44. package/dist/form.d.ts +2 -2
  45. package/dist/form.d.ts.map +1 -1
  46. package/dist/group.d.ts +3 -3
  47. package/dist/group.d.ts.map +1 -1
  48. package/dist/index.d.ts +3 -1
  49. package/dist/index.js +3 -1
  50. package/dist/input.d.ts +2 -2
  51. package/dist/input.d.ts.map +1 -1
  52. package/dist/menu.d.ts +20 -20
  53. package/dist/menu.d.ts.map +1 -1
  54. package/dist/menubar.d.ts +21 -21
  55. package/dist/menubar.d.ts.map +1 -1
  56. package/dist/meter.d.ts +6 -6
  57. package/dist/navigation-menu.d.ts +14 -14
  58. package/dist/number-field.d.ts +8 -8
  59. package/dist/pagination.d.ts +10 -10
  60. package/dist/popover.d.ts +12 -12
  61. package/dist/preview-card.d.ts +8 -8
  62. package/dist/preview-card.d.ts.map +1 -1
  63. package/dist/progress.d.ts +6 -6
  64. package/dist/progress.d.ts.map +1 -1
  65. package/dist/radio-group.d.ts +2 -2
  66. package/dist/radio-group.d.ts.map +1 -1
  67. package/dist/radio.d.ts +3 -3
  68. package/dist/scroll-area.d.ts +7 -7
  69. package/dist/scroll-area.d.ts.map +1 -1
  70. package/dist/select.d.ts +19 -19
  71. package/dist/separator.d.ts +2 -2
  72. package/dist/skeleton.d.ts +2 -2
  73. package/dist/slider.d.ts +7 -7
  74. package/dist/switch.d.ts +3 -3
  75. package/dist/tabs.d.ts +6 -6
  76. package/dist/textarea.d.ts +2 -2
  77. package/dist/timeline.d.ts +81 -0
  78. package/dist/timeline.d.ts.map +1 -0
  79. package/dist/timeline.js +165 -0
  80. package/dist/timeline.js.map +1 -0
  81. package/dist/toast.d.ts +10 -10
  82. package/dist/toggle-group.d.ts +3 -3
  83. package/dist/toggle.d.ts +2 -2
  84. package/dist/toolbar.d.ts +7 -7
  85. package/dist/tooltip.d.ts +8 -8
  86. package/package.json +9 -1
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime70 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
3
3
  import { Checkbox } from "@base-ui/react/checkbox";
4
4
 
5
5
  //#region src/components/checkbox.d.ts
@@ -8,7 +8,7 @@ declare const CheckboxRoot: {
8
8
  ({
9
9
  className,
10
10
  ...props
11
- }: CheckboxRootProps): react_jsx_runtime70.JSX.Element;
11
+ }: CheckboxRootProps): react_jsx_runtime6.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  type CheckboxIndicatorProps = React.ComponentProps<typeof Checkbox.Indicator>;
@@ -17,7 +17,7 @@ declare const CheckboxIndicator: {
17
17
  className,
18
18
  children,
19
19
  ...props
20
- }: CheckboxIndicatorProps): react_jsx_runtime70.JSX.Element;
20
+ }: CheckboxIndicatorProps): react_jsx_runtime6.JSX.Element;
21
21
  displayName: string;
22
22
  };
23
23
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","names":[],"sources":["../src/components/checkbox.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,iBAAA,GAAoB,KAAA,CAAM,sBAAsB,QAAA,CAAa;cAE5D;;;;KAAyC,oBAAiB,mBAAA,CAAA,GAAA,CAAA;EAF3D,WAAA,EAAA,MAAA;CAAiB;KAyBjB,sBAAA,GAAyB,KAAA,CAAM,cAzB8B,CAAA,OAyBR,QAAA,CAAa,SAzBL,CAAA;cA2B5D,iBA3ByB,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EA2BiB,sBA3BjB,CAAA,EA2BuC,mBAAA,CAAA,GAAA,CAAA,OA3BvC;EAEvC,WAAA,EAAA,MAeL;CAAA"}
1
+ {"version":3,"file":"checkbox.d.ts","names":[],"sources":["../src/components/checkbox.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,iBAAA,GAAoB,KAAA,CAAM,sBAAsB,QAAA,CAAa;cAE5D;;;;KAAyC,oBAAiB,kBAAA,CAAA,GAAA,CAAA;EAF3D,WAAA,EAAA,MAAA;CAAiB;KAyBjB,sBAAA,GAAyB,KAAA,CAAM,cAzB8B,CAAA,OAyBR,QAAA,CAAa,SAzBL,CAAA;cA2B5D,iBA3ByB,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EA2BiB,sBA3BjB,CAAA,EA2BuC,kBAAA,CAAA,GAAA,CAAA,OA3BvC;EAEvC,WAAA,EAAA,MAeL;CAAA"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
3
3
  import { Collapsible } from "@base-ui/react/collapsible";
4
4
 
5
5
  //#region src/components/collapsible.d.ts
@@ -8,7 +8,7 @@ declare const CollapsibleRoot: {
8
8
  ({
9
9
  className,
10
10
  ...props
11
- }: CollapsibleRootProps): react_jsx_runtime0.JSX.Element;
11
+ }: CollapsibleRootProps): react_jsx_runtime18.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  type CollapsibleTriggerProps = React.ComponentProps<typeof Collapsible.Trigger>;
@@ -16,7 +16,7 @@ declare const CollapsibleTrigger: {
16
16
  ({
17
17
  className,
18
18
  ...props
19
- }: CollapsibleTriggerProps): react_jsx_runtime0.JSX.Element;
19
+ }: CollapsibleTriggerProps): react_jsx_runtime18.JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  type CollapsiblePanelProps = React.ComponentProps<typeof Collapsible.Panel>;
@@ -24,7 +24,7 @@ declare const CollapsiblePanel: {
24
24
  ({
25
25
  className,
26
26
  ...props
27
- }: CollapsiblePanelProps): react_jsx_runtime0.JSX.Element;
27
+ }: CollapsiblePanelProps): react_jsx_runtime18.JSX.Element;
28
28
  displayName: string;
29
29
  };
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","names":[],"sources":["../src/components/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,oBAAA,GAAuB,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAElE;;;;KAA4C,uBAAoB,kBAAA,CAAA,GAAA,CAAA;EAFjE,WAAA,EAAA,MAAA;CAAoB;KAYpB,uBAAA,GAA0B,KAAA,CAAM,cAZmC,CAAA,OAYb,WAAA,CAAgB,OAZH,CAAA;cAclE,kBAd4B,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAcK,uBAdL,CAAA,EAc4B,kBAAA,CAAA,GAAA,CAAA,OAd5B;EAE1C,WAAA,EAAA,MAEL;CAAA;KAyBI,qBAAA,GAAwB,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAEnE,gBA7B4C,EAAA;;IAAoB,SAAA;IAAA,GAAA;EAAA,CAAA,EA6BnB,qBA7BmB,CAAA,EA6BE,kBAAA,CAAA,GAAA,CAAA,OA7BF;EAAA,WAAA,EAAA,MAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"collapsible.d.ts","names":[],"sources":["../src/components/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;KAWK,oBAAA,GAAuB,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAElE;;;;KAA4C,uBAAoB,mBAAA,CAAA,GAAA,CAAA;EAFjE,WAAA,EAAA,MAAA;CAAoB;KAYpB,uBAAA,GAA0B,KAAA,CAAM,cAZmC,CAAA,OAYb,WAAA,CAAgB,OAZH,CAAA;cAclE,kBAd4B,EAAA;EAAc,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EAcK,uBAdL,CAAA,EAc4B,mBAAA,CAAA,GAAA,CAAA,OAd5B;EAE1C,WAAA,EAAA,MAEL;CAAA;KAyBI,qBAAA,GAAwB,KAAA,CAAM,sBAAsB,WAAA,CAAgB;cAEnE,gBA7B4C,EAAA;;IAAoB,SAAA;IAAA,GAAA;EAAA,CAAA,EA6BnB,qBA7BmB,CAAA,EA6BE,mBAAA,CAAA,GAAA,CAAA,OA7BF;EAAA,WAAA,EAAA,MAAA;AAAA,CAAA"}
@@ -1,17 +1,17 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime73 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
  import { Combobox as BaseCombobox, ComboboxRootProps as ComboboxRootProps$1 } from "@base-ui/react/combobox";
4
4
  import * as _base_ui_react0 from "@base-ui/react";
5
5
 
6
6
  //#region src/components/combobox.d.ts
7
- declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>(props: ComboboxRootProps$1<Value, Multiple>): react_jsx_runtime73.JSX.Element;
7
+ declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>(props: ComboboxRootProps$1<Value, Multiple>): react_jsx_runtime21.JSX.Element;
8
8
  declare namespace ComboboxRoot {
9
9
  var displayName: string;
10
10
  }
11
11
  type ComboboxRootProps<Value, Multiple extends boolean | undefined = false> = ComboboxRootProps$1<Value, Multiple>;
12
12
  type ComboboxValueProps = React.ComponentProps<typeof BaseCombobox.Value>;
13
13
  declare const ComboboxValue: {
14
- (props: ComboboxValueProps): react_jsx_runtime73.JSX.Element;
14
+ (props: ComboboxValueProps): react_jsx_runtime21.JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  type ComboboxIconProps = React.ComponentProps<typeof BaseCombobox.Icon>;
@@ -19,7 +19,7 @@ declare const ComboboxIcon: {
19
19
  ({
20
20
  className,
21
21
  ...props
22
- }: ComboboxIconProps): react_jsx_runtime73.JSX.Element;
22
+ }: ComboboxIconProps): react_jsx_runtime21.JSX.Element;
23
23
  displayName: string;
24
24
  };
25
25
  type ComboboxInputProps = React.ComponentProps<typeof BaseCombobox.Input>;
@@ -27,7 +27,7 @@ declare const ComboboxInput: {
27
27
  ({
28
28
  className,
29
29
  ...props
30
- }: ComboboxInputProps): react_jsx_runtime73.JSX.Element;
30
+ }: ComboboxInputProps): react_jsx_runtime21.JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  type ComboboxControlProps = React.ComponentProps<'div'>;
@@ -35,7 +35,7 @@ declare const ComboboxControl: {
35
35
  ({
36
36
  className,
37
37
  ...props
38
- }: ComboboxControlProps): react_jsx_runtime73.JSX.Element;
38
+ }: ComboboxControlProps): react_jsx_runtime21.JSX.Element;
39
39
  displayName: string;
40
40
  };
41
41
  type ComboboxClearProps = React.ComponentProps<typeof BaseCombobox.Clear>;
@@ -43,7 +43,7 @@ declare const ComboboxClear: {
43
43
  ({
44
44
  className,
45
45
  ...props
46
- }: ComboboxClearProps): react_jsx_runtime73.JSX.Element;
46
+ }: ComboboxClearProps): react_jsx_runtime21.JSX.Element;
47
47
  displayName: string;
48
48
  };
49
49
  type ComboboxTriggerProps = React.ComponentProps<typeof BaseCombobox.Trigger>;
@@ -51,7 +51,7 @@ declare const ComboboxTrigger: {
51
51
  ({
52
52
  className,
53
53
  ...props
54
- }: ComboboxTriggerProps): react_jsx_runtime73.JSX.Element;
54
+ }: ComboboxTriggerProps): react_jsx_runtime21.JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  type ComboboxBackdropProps = React.ComponentProps<typeof BaseCombobox.Backdrop>;
@@ -59,12 +59,12 @@ declare const ComboboxBackdrop: {
59
59
  ({
60
60
  className,
61
61
  ...props
62
- }: ComboboxBackdropProps): react_jsx_runtime73.JSX.Element;
62
+ }: ComboboxBackdropProps): react_jsx_runtime21.JSX.Element;
63
63
  displayName: string;
64
64
  };
65
65
  type ComboboxPortalProps = React.ComponentProps<typeof BaseCombobox.Portal>;
66
66
  declare const ComboboxPortal: {
67
- (props: ComboboxPortalProps): react_jsx_runtime73.JSX.Element;
67
+ (props: ComboboxPortalProps): react_jsx_runtime21.JSX.Element;
68
68
  displayName: string;
69
69
  };
70
70
  type ComboboxPositionerProps = React.ComponentProps<typeof BaseCombobox.Positioner>;
@@ -72,7 +72,7 @@ declare const ComboboxPositioner: {
72
72
  ({
73
73
  className,
74
74
  ...props
75
- }: ComboboxPositionerProps): react_jsx_runtime73.JSX.Element;
75
+ }: ComboboxPositionerProps): react_jsx_runtime21.JSX.Element;
76
76
  displayName: string;
77
77
  };
78
78
  type ComboboxPopupProps = React.ComponentProps<typeof BaseCombobox.Popup>;
@@ -80,7 +80,7 @@ declare const ComboboxPopup: {
80
80
  ({
81
81
  className,
82
82
  ...props
83
- }: ComboboxPopupProps): react_jsx_runtime73.JSX.Element;
83
+ }: ComboboxPopupProps): react_jsx_runtime21.JSX.Element;
84
84
  displayName: string;
85
85
  };
86
86
  type ComboboxListProps = React.ComponentProps<typeof BaseCombobox.List>;
@@ -88,7 +88,7 @@ declare const ComboboxList: {
88
88
  ({
89
89
  className,
90
90
  ...props
91
- }: ComboboxListProps): react_jsx_runtime73.JSX.Element;
91
+ }: ComboboxListProps): react_jsx_runtime21.JSX.Element;
92
92
  displayName: string;
93
93
  };
94
94
  type ComboboxEmptyProps = React.ComponentProps<typeof BaseCombobox.Empty>;
@@ -96,7 +96,7 @@ declare const ComboboxEmpty: {
96
96
  ({
97
97
  className,
98
98
  ...props
99
- }: ComboboxEmptyProps): react_jsx_runtime73.JSX.Element;
99
+ }: ComboboxEmptyProps): react_jsx_runtime21.JSX.Element;
100
100
  displayName: string;
101
101
  };
102
102
  type ComboboxItemProps = React.ComponentProps<typeof BaseCombobox.Item>;
@@ -104,7 +104,7 @@ declare const ComboboxItem: {
104
104
  ({
105
105
  className,
106
106
  ...props
107
- }: ComboboxItemProps): react_jsx_runtime73.JSX.Element;
107
+ }: ComboboxItemProps): react_jsx_runtime21.JSX.Element;
108
108
  displayName: string;
109
109
  };
110
110
  type ComboboxItemTextProps = React.ComponentProps<'span'>;
@@ -112,7 +112,7 @@ declare const ComboboxItemText: {
112
112
  ({
113
113
  className,
114
114
  ...props
115
- }: ComboboxItemTextProps): react_jsx_runtime73.JSX.Element;
115
+ }: ComboboxItemTextProps): react_jsx_runtime21.JSX.Element;
116
116
  displayName: string;
117
117
  };
118
118
  type ComboboxItemIndicatorProps = React.ComponentProps<typeof BaseCombobox.ItemIndicator>;
@@ -120,7 +120,7 @@ declare const ComboboxItemIndicator: {
120
120
  ({
121
121
  className,
122
122
  ...props
123
- }: ComboboxItemIndicatorProps): react_jsx_runtime73.JSX.Element;
123
+ }: ComboboxItemIndicatorProps): react_jsx_runtime21.JSX.Element;
124
124
  displayName: string;
125
125
  };
126
126
  type ComboboxGroupProps = React.ComponentProps<typeof BaseCombobox.Group>;
@@ -128,7 +128,7 @@ declare const ComboboxGroup: {
128
128
  ({
129
129
  className,
130
130
  ...props
131
- }: ComboboxGroupProps): react_jsx_runtime73.JSX.Element;
131
+ }: ComboboxGroupProps): react_jsx_runtime21.JSX.Element;
132
132
  displayName: string;
133
133
  };
134
134
  type ComboboxGroupLabelProps = React.ComponentProps<typeof BaseCombobox.GroupLabel>;
@@ -136,12 +136,12 @@ declare const ComboboxGroupLabel: {
136
136
  ({
137
137
  className,
138
138
  ...props
139
- }: ComboboxGroupLabelProps): react_jsx_runtime73.JSX.Element;
139
+ }: ComboboxGroupLabelProps): react_jsx_runtime21.JSX.Element;
140
140
  displayName: string;
141
141
  };
142
142
  type ComboboxCollectionProps = React.ComponentProps<typeof BaseCombobox.Collection>;
143
143
  declare const ComboboxCollection: {
144
- (props: ComboboxCollectionProps): react_jsx_runtime73.JSX.Element;
144
+ (props: ComboboxCollectionProps): react_jsx_runtime21.JSX.Element;
145
145
  displayName: string;
146
146
  };
147
147
  type ComboboxSeparatorProps = React.ComponentProps<typeof BaseCombobox.Separator>;
@@ -149,7 +149,7 @@ declare const ComboboxSeparator: {
149
149
  ({
150
150
  className,
151
151
  ...props
152
- }: ComboboxSeparatorProps): react_jsx_runtime73.JSX.Element;
152
+ }: ComboboxSeparatorProps): react_jsx_runtime21.JSX.Element;
153
153
  displayName: string;
154
154
  };
155
155
  type ComboboxStatusProps = React.ComponentProps<typeof BaseCombobox.Status>;
@@ -157,7 +157,7 @@ declare const ComboboxStatus: {
157
157
  ({
158
158
  className,
159
159
  ...props
160
- }: ComboboxStatusProps): react_jsx_runtime73.JSX.Element;
160
+ }: ComboboxStatusProps): react_jsx_runtime21.JSX.Element;
161
161
  displayName: string;
162
162
  };
163
163
  type ComboboxChipsProps = React.ComponentProps<typeof BaseCombobox.Chips>;
@@ -167,7 +167,7 @@ declare const ComboboxChip: {
167
167
  ({
168
168
  className,
169
169
  ...props
170
- }: ComboboxChipProps): react_jsx_runtime73.JSX.Element;
170
+ }: ComboboxChipProps): react_jsx_runtime21.JSX.Element;
171
171
  displayName: string;
172
172
  };
173
173
  type ComboboxChipRemoveProps = React.ComponentProps<typeof BaseCombobox.ChipRemove>;
@@ -175,7 +175,7 @@ declare const ComboboxChipRemove: {
175
175
  ({
176
176
  className,
177
177
  ...props
178
- }: ComboboxChipRemoveProps): react_jsx_runtime73.JSX.Element;
178
+ }: ComboboxChipRemoveProps): react_jsx_runtime21.JSX.Element;
179
179
  displayName: string;
180
180
  };
181
181
  type ComboboxArrowProps = React.ComponentProps<typeof BaseCombobox.Arrow>;
@@ -183,7 +183,7 @@ declare const ComboboxArrow: {
183
183
  ({
184
184
  className,
185
185
  ...props
186
- }: ComboboxArrowProps): react_jsx_runtime73.JSX.Element;
186
+ }: ComboboxArrowProps): react_jsx_runtime21.JSX.Element;
187
187
  displayName: string;
188
188
  };
189
189
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { ChartConfig } from "./types.js";
2
2
  import * as React from "react";
3
- import * as react_jsx_runtime301 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime316 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/chart/context.d.ts
6
6
  type ChartRootProps = React.ComponentProps<'div'> & {
@@ -12,7 +12,7 @@ declare function ChartRoot({
12
12
  children,
13
13
  style,
14
14
  ...props
15
- }: ChartRootProps): react_jsx_runtime301.JSX.Element;
15
+ }: ChartRootProps): react_jsx_runtime316.JSX.Element;
16
16
  declare namespace ChartRoot {
17
17
  var displayName: string;
18
18
  }
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime300 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime314 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/chart/legend.d.ts
4
4
  type ChartLegendContentProps = {
@@ -16,7 +16,7 @@ declare function ChartLegendContent({
16
16
  className,
17
17
  nameKey,
18
18
  verticalAlign
19
- }: ChartLegendContentProps): react_jsx_runtime300.JSX.Element | null;
19
+ }: ChartLegendContentProps): react_jsx_runtime314.JSX.Element | null;
20
20
  declare namespace ChartLegendContent {
21
21
  var displayName: string;
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime302 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime315 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/chart/tooltip.d.ts
5
5
  type IndicatorType = 'dot' | 'line' | 'dashed';
@@ -49,7 +49,7 @@ declare function ChartTooltipContent({
49
49
  className,
50
50
  labelClassName,
51
51
  formatter
52
- }: ChartTooltipContentProps): react_jsx_runtime302.JSX.Element | null;
52
+ }: ChartTooltipContentProps): react_jsx_runtime315.JSX.Element | null;
53
53
  declare namespace ChartTooltipContent {
54
54
  var displayName: string;
55
55
  }
@@ -1,14 +1,14 @@
1
1
  import { SortDirection } from "./types.js";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import * as React from "react";
4
- import * as react_jsx_runtime303 from "react/jsx-runtime";
5
- import * as class_variance_authority_types3 from "class-variance-authority/types";
4
+ import * as react_jsx_runtime317 from "react/jsx-runtime";
5
+ import * as class_variance_authority_types5 from "class-variance-authority/types";
6
6
 
7
7
  //#region src/components/table/primitives.d.ts
8
8
  declare const tableVariants: (props?: ({
9
9
  variant?: "default" | "striped" | "bordered" | null | undefined;
10
10
  size?: "default" | "compact" | null | undefined;
11
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
11
+ } & class_variance_authority_types5.ClassProp) | undefined) => string;
12
12
  type TableVariant = VariantProps<typeof tableVariants>['variant'];
13
13
  type TableSize = VariantProps<typeof tableVariants>['size'];
14
14
  type TableRootProps = React.ComponentProps<'table'> & VariantProps<typeof tableVariants>;
@@ -18,7 +18,7 @@ declare const TableRoot: {
18
18
  variant,
19
19
  size,
20
20
  ...props
21
- }: TableRootProps): react_jsx_runtime303.JSX.Element;
21
+ }: TableRootProps): react_jsx_runtime317.JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  type TableHeaderProps = React.ComponentProps<'thead'>;
@@ -26,7 +26,7 @@ declare const TableHeader: {
26
26
  ({
27
27
  className,
28
28
  ...props
29
- }: TableHeaderProps): react_jsx_runtime303.JSX.Element;
29
+ }: TableHeaderProps): react_jsx_runtime317.JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  type TableBodyProps = React.ComponentProps<'tbody'>;
@@ -34,7 +34,7 @@ declare const TableBody: {
34
34
  ({
35
35
  className,
36
36
  ...props
37
- }: TableBodyProps): react_jsx_runtime303.JSX.Element;
37
+ }: TableBodyProps): react_jsx_runtime317.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  type TableFooterProps = React.ComponentProps<'tfoot'>;
@@ -42,7 +42,7 @@ declare const TableFooter: {
42
42
  ({
43
43
  className,
44
44
  ...props
45
- }: TableFooterProps): react_jsx_runtime303.JSX.Element;
45
+ }: TableFooterProps): react_jsx_runtime317.JSX.Element;
46
46
  displayName: string;
47
47
  };
48
48
  type TableRowProps = React.ComponentProps<'tr'>;
@@ -50,7 +50,7 @@ declare const TableRow: {
50
50
  ({
51
51
  className,
52
52
  ...props
53
- }: TableRowProps): react_jsx_runtime303.JSX.Element;
53
+ }: TableRowProps): react_jsx_runtime317.JSX.Element;
54
54
  displayName: string;
55
55
  };
56
56
  type TableHeadProps = React.ComponentProps<'th'> & {
@@ -66,7 +66,7 @@ declare const TableHead: {
66
66
  onSort,
67
67
  children,
68
68
  ...props
69
- }: TableHeadProps): react_jsx_runtime303.JSX.Element;
69
+ }: TableHeadProps): react_jsx_runtime317.JSX.Element;
70
70
  displayName: string;
71
71
  };
72
72
  type TableCellProps = React.ComponentProps<'td'>;
@@ -74,7 +74,7 @@ declare const TableCell: {
74
74
  ({
75
75
  className,
76
76
  ...props
77
- }: TableCellProps): react_jsx_runtime303.JSX.Element;
77
+ }: TableCellProps): react_jsx_runtime317.JSX.Element;
78
78
  displayName: string;
79
79
  };
80
80
  type TableCaptionProps = React.ComponentProps<'caption'> & {
@@ -85,7 +85,7 @@ declare const TableCaption: {
85
85
  className,
86
86
  position,
87
87
  ...props
88
- }: TableCaptionProps): react_jsx_runtime303.JSX.Element;
88
+ }: TableCaptionProps): react_jsx_runtime317.JSX.Element;
89
89
  displayName: string;
90
90
  };
91
91
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","names":[],"sources":["../../../src/components/table/primitives.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAYM;;;IAcJ,+BAAA,CAAA;AAdI,KAgBM,YAAA,GAAe,YAFzB,CAAA,OAE6C,aAF7C,CAAA,CAAA,SAAA,CAAA;AAEU,KACA,SAAA,GAAY,YADA,CAAA,OACoB,aADpB,CAAA,CAAA,MAAA,CAAA;KAOnB,cAAA,GAAiB,KAAA,CAAM,cAPJ,CAAA,OAAA,CAAA,GAO8B,YAP9B,CAAA,OAOkD,aAPlD,CAAA;cASlB,SATyC,EAAA;;IAApB,SAAA;IAAA,OAAA;IAAA,IAAA;IAAA,GAAA;EAAA,CAAA,EASgC,cAThC,CAAA,EAS8C,oBAAA,CAAA,GAAA,CAAA,OAT9C;EAAY,WAAA,EAAA,MAAA;AACvC,CAAA;KAsBK,gBAAA,GAAmB,KAAA,CAAM,cAtBT,CAAA,OAAA,CAAA;cAwBf,WAxBsC,EAAA;;IAApB,SAAA;IAAA,GAAA;EAAA,CAAA,EAwBsB,gBAxBtB,CAAA,EAwBsC,oBAAA,CAAA,GAAA,CAAA,OAxBtC;EAAY,WAAA,EAAA,MAAA;AAA8B,CAAA;KAoC7D,cAAA,GAAiB,KAAA,CAAM,cA9BT,CAAA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,CAAA;;;KAkBzD,aAAA,GAAgB,KAAA,CAAM,cA5DgC,CAAA,IAAA,CAAA;cA8DrD,QA9DmE,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA8D9B,aA9D8B,CAAA,EA8DjB,oBAAA,CAAA,GAAA,CAAA,OA9DiB;EAcpE,WAAA,EAAA,MAAgB;AAAuB,CAAA;KAuEvC,cAAA,GAAiB,KAAA,CAAM,cAjE3B,CAAA,IAAA,CAAA,GAAA;;eAJ6C,CAAA,EAuE5B,aAvE4B;QAAgB,CAAA,EAAA,GAAA,GAAA,IAAA;CAAA;AAAA,cAwGxD,SA5Fa,EAAA;EAEb,CAAA;IAAA,SAEL;IAAA,QAAA;IAAA,aAAA;IAAA,MAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EA+FE,cA/FF,CAAA,EA+FgB,oBAAA,CAAA,GAAA,CAAA,OA/FhB;EAAA,WAAA,EAAA,MAAA;;KAyII,cAAA,GAAiB,KAAA,CAAM,cA3IgB,CAAA,IAAA,CAAA;cA6ItC,SA7IoD,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,GAAA;EAAA,CAAA,EA6Id,cA7Ic,CAAA,EA6IA,oBAAA,CAAA,GAAA,CAAA,OA7IA;EAUrD,WAAA,EAAA,MAAgB;AAAuB,CAAA;KAkJvC,iBAAA,GAAoB,KAAA,CAAM,cAtI9B,CAAA,SAAA,CAAA,GAAA;;;cA0IK,YApJwD,EAAA;EAAA,CAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EAwJ3D,iBAxJ2D,CAAA,EAwJ1C,oBAAA,CAAA,GAAA,CAAA,OAxJ0C;EAkBzD,WAAA,EAAA,MAAa;AAAuB,CAAA"}
@@ -96,14 +96,14 @@ const TableHead = ({ className, sortable, sortDirection, onSort, children, ...pr
96
96
  }
97
97
  };
98
98
  return /* @__PURE__ */ jsx("th", {
99
- className: cn("h-10 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", isInteractive && "cursor-pointer select-none hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", className),
99
+ className: cn("h-10 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 bg-muted", isInteractive && "cursor-pointer select-none hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset", className),
100
100
  tabIndex: isInteractive ? 0 : void 0,
101
101
  "aria-sort": sortDirection ? ariaSortValues[sortDirection] : void 0,
102
102
  onClick: handleClick,
103
103
  onKeyDown: handleKeyDown,
104
104
  ...props,
105
105
  children: /* @__PURE__ */ jsxs("span", {
106
- className: "inline-flex items-center",
106
+ className: "inline-flex items-center h-full",
107
107
  children: [children, sortable && /* @__PURE__ */ jsx(SortIcon, { direction: sortDirection })]
108
108
  })
109
109
  });
@@ -111,7 +111,7 @@ const TableHead = ({ className, sortable, sortDirection, onSort, children, ...pr
111
111
  TableHead.displayName = "TableHead";
112
112
  const TableCell = ({ className, ...props }) => {
113
113
  return /* @__PURE__ */ jsx("td", {
114
- className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]", className),
114
+ className: cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className),
115
115
  ...props
116
116
  });
117
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.js","names":[],"sources":["../../../src/components/table/primitives.tsx"],"sourcesContent":["'use client'\n\nimport { type VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../lib/utils'\nimport type { SortDirection } from './types'\n\n// ============================================================================\n// Table Variants\n// ============================================================================\n\nconst tableVariants = cva('w-full caption-bottom text-sm', {\n variants: {\n variant: {\n default: '',\n striped: '[&_tbody_tr:nth-child(even)]:bg-muted/50',\n bordered:\n '[&_th:not(:last-child)]:border-r [&_td:not(:last-child)]:border-r [&_th]:border-border [&_td]:border-border',\n },\n size: {\n default: '',\n compact: '[&_th]:h-8 [&_th]:px-2 [&_td]:p-2.5',\n },\n },\n defaultVariants: { variant: 'default', size: 'default' },\n})\n\nexport type TableVariant = VariantProps<typeof tableVariants>['variant']\nexport type TableSize = VariantProps<typeof tableVariants>['size']\n\n// ============================================================================\n// TableRoot\n// ============================================================================\n\ntype TableRootProps = React.ComponentProps<'table'> & VariantProps<typeof tableVariants>\n\nconst TableRoot = ({ className, variant, size, ...props }: TableRootProps) => {\n return (\n <div className='relative w-full overflow-x-auto'>\n <table className={cn(tableVariants({ variant, size }), className)} {...props} />\n </div>\n )\n}\n\nTableRoot.displayName = 'TableRoot'\n\n// ============================================================================\n// TableHeader\n// ============================================================================\n\ntype TableHeaderProps = React.ComponentProps<'thead'>\n\nconst TableHeader = ({ className, ...props }: TableHeaderProps) => {\n return (\n <thead className={cn('[&_tr]:border-b [&_tr]:border-border', className)} {...props} />\n )\n}\n\nTableHeader.displayName = 'TableHeader'\n\n// ============================================================================\n// TableBody\n// ============================================================================\n\ntype TableBodyProps = React.ComponentProps<'tbody'>\n\nconst TableBody = ({ className, ...props }: TableBodyProps) => {\n return <tbody className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n}\n\nTableBody.displayName = 'TableBody'\n\n// ============================================================================\n// TableFooter\n// ============================================================================\n\ntype TableFooterProps = React.ComponentProps<'tfoot'>\n\nconst TableFooter = ({ className, ...props }: TableFooterProps) => {\n return (\n <tfoot\n className={cn(\n 'border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableFooter.displayName = 'TableFooter'\n\n// ============================================================================\n// TableRow\n// ============================================================================\n\ntype TableRowProps = React.ComponentProps<'tr'>\n\nconst TableRow = ({ className, ...props }: TableRowProps) => {\n return (\n <tr\n className={cn(\n 'border-b border-border transition-colors hover:bg-muted/50',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableRow.displayName = 'TableRow'\n\n// ============================================================================\n// TableHead\n// ============================================================================\n\nconst ariaSortValues: Record<SortDirection, 'ascending' | 'descending'> = {\n asc: 'ascending',\n desc: 'descending',\n}\n\ntype TableHeadProps = React.ComponentProps<'th'> & {\n sortable?: boolean\n sortDirection?: SortDirection\n onSort?: () => void\n}\n\nconst SortIcon = ({ direction }: { direction?: SortDirection }) => {\n return (\n <svg\n xmlns='http://www.w3.org/2000/svg'\n width='16'\n height='16'\n viewBox='0 0 24 24'\n fill='none'\n stroke='currentColor'\n strokeWidth='2'\n strokeLinecap='round'\n strokeLinejoin='round'\n className='ml-1 inline-block'\n aria-hidden='true'\n >\n {direction === 'asc' ? (\n <path d='m18 15-6-6-6 6' />\n ) : direction === 'desc' ? (\n <path d='m6 9 6 6 6-6' />\n ) : (\n <>\n <path d='m7 15 5 5 5-5' />\n <path d='m7 9 5-5 5 5' />\n </>\n )}\n </svg>\n )\n}\n\nconst TableHead = ({\n className,\n sortable,\n sortDirection,\n onSort,\n children,\n ...props\n}: TableHeadProps) => {\n const isInteractive = sortable && onSort\n\n const handleClick = () => {\n if (isInteractive) onSort()\n }\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTableCellElement>) => {\n if (isInteractive && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault()\n onSort()\n }\n }\n\n return (\n <th\n className={cn(\n 'h-10 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]',\n isInteractive &&\n 'cursor-pointer select-none hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset',\n className,\n )}\n tabIndex={isInteractive ? 0 : undefined}\n aria-sort={sortDirection ? ariaSortValues[sortDirection] : undefined}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n {...props}\n >\n <span className='inline-flex items-center'>\n {children}\n {sortable && <SortIcon direction={sortDirection} />}\n </span>\n </th>\n )\n}\n\nTableHead.displayName = 'TableHead'\n\n// ============================================================================\n// TableCell\n// ============================================================================\n\ntype TableCellProps = React.ComponentProps<'td'>\n\nconst TableCell = ({ className, ...props }: TableCellProps) => {\n return (\n <td\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableCell.displayName = 'TableCell'\n\n// ============================================================================\n// TableCaption\n// ============================================================================\n\ntype TableCaptionProps = React.ComponentProps<'caption'> & {\n position?: 'top' | 'bottom'\n}\n\nconst TableCaption = ({\n className,\n position = 'bottom',\n ...props\n}: TableCaptionProps) => {\n return (\n <caption\n className={cn(\n 'mt-4 text-sm text-muted-foreground',\n position === 'top' && 'caption-top mb-4 mt-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableCaption.displayName = 'TableCaption'\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nexport {\n TableRoot,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n}\n\nexport type {\n TableRootProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableHeadProps,\n TableCellProps,\n TableCaptionProps,\n}\n"],"mappings":";;;;;;;;AAYA,MAAM,gBAAgB,IAAI,iCAAiC;CACzD,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;GACT,UACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,SAAS;GACV;EACF;CACD,iBAAiB;EAAE,SAAS;EAAW,MAAM;EAAW;CACzD,CAAC;AAWF,MAAM,aAAa,EAAE,WAAW,SAAS,MAAM,GAAG,YAA4B;AAC5E,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC;GAAM,WAAW,GAAG,cAAc;IAAE;IAAS;IAAM,CAAC,EAAE,UAAU;GAAE,GAAI;IAAS;GAC5E;;AAIV,UAAU,cAAc;AAQxB,MAAM,eAAe,EAAE,WAAW,GAAG,YAA8B;AACjE,QACE,oBAAC;EAAM,WAAW,GAAG,wCAAwC,UAAU;E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,GAAI;YAEJ,qBAAC;GAAK,WAAU;cACb,UACA,YAAY,oBAAC,YAAS,WAAW,gBAAiB;IAC9C;GACJ;;AAIT,UAAU,cAAc;AAQxB,MAAM,aAAa,EAAE,WAAW,GAAG,YAA4B;AAC7D,QACE,oBAAC;EACC,WAAW,GACT,wFACA,UACD;EACD,GAAI;GACJ;;AAIN,UAAU,cAAc;AAUxB,MAAM,gBAAgB,EACpB,WACA,WAAW,UACX,GAAG,YACoB;AACvB,QACE,oBAAC;EACC,WAAW,GACT,sCACA,aAAa,SAAS,yBACtB,UACD;EACD,GAAI;GACJ;;AAIN,aAAa,cAAc"}
1
+ {"version":3,"file":"primitives.js","names":[],"sources":["../../../src/components/table/primitives.tsx"],"sourcesContent":["'use client'\n\nimport { type VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../lib/utils'\nimport type { SortDirection } from './types'\n\n// ============================================================================\n// Table Variants\n// ============================================================================\n\nconst tableVariants = cva('w-full caption-bottom text-sm', {\n variants: {\n variant: {\n default: '',\n striped: '[&_tbody_tr:nth-child(even)]:bg-muted/50',\n bordered:\n '[&_th:not(:last-child)]:border-r [&_td:not(:last-child)]:border-r [&_th]:border-border [&_td]:border-border',\n },\n size: {\n default: '',\n compact: '[&_th]:h-8 [&_th]:px-2 [&_td]:p-2.5',\n },\n },\n defaultVariants: { variant: 'default', size: 'default' },\n})\n\nexport type TableVariant = VariantProps<typeof tableVariants>['variant']\nexport type TableSize = VariantProps<typeof tableVariants>['size']\n\n// ============================================================================\n// TableRoot\n// ============================================================================\n\ntype TableRootProps = React.ComponentProps<'table'> & VariantProps<typeof tableVariants>\n\nconst TableRoot = ({ className, variant, size, ...props }: TableRootProps) => {\n return (\n <div className='relative w-full overflow-x-auto'>\n <table className={cn(tableVariants({ variant, size }), className)} {...props} />\n </div>\n )\n}\n\nTableRoot.displayName = 'TableRoot'\n\n// ============================================================================\n// TableHeader\n// ============================================================================\n\ntype TableHeaderProps = React.ComponentProps<'thead'>\n\nconst TableHeader = ({ className, ...props }: TableHeaderProps) => {\n return (\n <thead className={cn('[&_tr]:border-b [&_tr]:border-border', className)} {...props} />\n )\n}\n\nTableHeader.displayName = 'TableHeader'\n\n// ============================================================================\n// TableBody\n// ============================================================================\n\ntype TableBodyProps = React.ComponentProps<'tbody'>\n\nconst TableBody = ({ className, ...props }: TableBodyProps) => {\n return <tbody className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n}\n\nTableBody.displayName = 'TableBody'\n\n// ============================================================================\n// TableFooter\n// ============================================================================\n\ntype TableFooterProps = React.ComponentProps<'tfoot'>\n\nconst TableFooter = ({ className, ...props }: TableFooterProps) => {\n return (\n <tfoot\n className={cn(\n 'border-t border-border bg-muted/50 font-medium [&>tr]:last:border-b-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableFooter.displayName = 'TableFooter'\n\n// ============================================================================\n// TableRow\n// ============================================================================\n\ntype TableRowProps = React.ComponentProps<'tr'>\n\nconst TableRow = ({ className, ...props }: TableRowProps) => {\n return (\n <tr\n className={cn(\n 'border-b border-border transition-colors hover:bg-muted/50',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableRow.displayName = 'TableRow'\n\n// ============================================================================\n// TableHead\n// ============================================================================\n\nconst ariaSortValues: Record<SortDirection, 'ascending' | 'descending'> = {\n asc: 'ascending',\n desc: 'descending',\n}\n\ntype TableHeadProps = React.ComponentProps<'th'> & {\n sortable?: boolean\n sortDirection?: SortDirection\n onSort?: () => void\n}\n\nconst SortIcon = ({ direction }: { direction?: SortDirection }) => {\n return (\n <svg\n xmlns='http://www.w3.org/2000/svg'\n width='16'\n height='16'\n viewBox='0 0 24 24'\n fill='none'\n stroke='currentColor'\n strokeWidth='2'\n strokeLinecap='round'\n strokeLinejoin='round'\n className='ml-1 inline-block'\n aria-hidden='true'\n >\n {direction === 'asc' ? (\n <path d='m18 15-6-6-6 6' />\n ) : direction === 'desc' ? (\n <path d='m6 9 6 6 6-6' />\n ) : (\n <>\n <path d='m7 15 5 5 5-5' />\n <path d='m7 9 5-5 5 5' />\n </>\n )}\n </svg>\n )\n}\n\nconst TableHead = ({\n className,\n sortable,\n sortDirection,\n onSort,\n children,\n ...props\n}: TableHeadProps) => {\n const isInteractive = sortable && onSort\n\n const handleClick = () => {\n if (isInteractive) onSort()\n }\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTableCellElement>) => {\n if (isInteractive && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault()\n onSort()\n }\n }\n\n return (\n <th\n className={cn(\n 'h-10 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 bg-muted',\n isInteractive &&\n 'cursor-pointer select-none hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset',\n className,\n )}\n tabIndex={isInteractive ? 0 : undefined}\n aria-sort={sortDirection ? ariaSortValues[sortDirection] : undefined}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n {...props}\n >\n <span className='inline-flex items-center h-full'>\n {children}\n {sortable && <SortIcon direction={sortDirection} />}\n </span>\n </th>\n )\n}\n\nTableHead.displayName = 'TableHead'\n\n// ============================================================================\n// TableCell\n// ============================================================================\n\ntype TableCellProps = React.ComponentProps<'td'>\n\nconst TableCell = ({ className, ...props }: TableCellProps) => {\n return (\n <td\n className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)}\n {...props}\n />\n )\n}\n\nTableCell.displayName = 'TableCell'\n\n// ============================================================================\n// TableCaption\n// ============================================================================\n\ntype TableCaptionProps = React.ComponentProps<'caption'> & {\n position?: 'top' | 'bottom'\n}\n\nconst TableCaption = ({\n className,\n position = 'bottom',\n ...props\n}: TableCaptionProps) => {\n return (\n <caption\n className={cn(\n 'mt-4 text-sm text-muted-foreground',\n position === 'top' && 'caption-top mb-4 mt-0',\n className,\n )}\n {...props}\n />\n )\n}\n\nTableCaption.displayName = 'TableCaption'\n\n// ============================================================================\n// Exports\n// ============================================================================\n\nexport {\n TableRoot,\n TableHeader,\n TableBody,\n TableFooter,\n TableRow,\n TableHead,\n TableCell,\n TableCaption,\n}\n\nexport type {\n TableRootProps,\n TableHeaderProps,\n TableBodyProps,\n TableFooterProps,\n TableRowProps,\n TableHeadProps,\n TableCellProps,\n TableCaptionProps,\n}\n"],"mappings":";;;;;;;;AAYA,MAAM,gBAAgB,IAAI,iCAAiC;CACzD,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;GACT,UACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,SAAS;GACV;EACF;CACD,iBAAiB;EAAE,SAAS;EAAW,MAAM;EAAW;CACzD,CAAC;AAWF,MAAM,aAAa,EAAE,WAAW,SAAS,MAAM,GAAG,YAA4B;AAC5E,QACE,oBAAC;EAAI,WAAU;YACb,oBAAC;GAAM,WAAW,GAAG,cAAc;IAAE;IAAS;IAAM,CAAC,EAAE,UAAU;GAAE,GAAI;IAAS;GAC5E;;AAIV,UAAU,cAAc;AAQxB,MAAM,eAAe,EAAE,WAAW,GAAG,YAA8B;AACjE,QACE,oBAAC;EAAM,WAAW,GAAG,wCAAwC,UAAU;EAAE,GAAI;GAAS;;AAI1F,YAAY,cAAc;AAQ1B,MAAM,aAAa,EAAE,WAAW,GAAG,YAA4B;AAC7D,QAAO,oBAAC;EAAM,WAAW,GAAG,8BAA8B,UAAU;EAAE,GAAI;GAAS;;AAGrF,UAAU,cAAc;AAQxB,MAAM,eAAe,EAAE,WAAW,GAAG,YAA8B;AACjE,QACE,oBAAC;EACC,WAAW,GACT,yEACA,UACD;EACD,GAAI;GACJ;;AAIN,YAAY,cAAc;AAQ1B,MAAM,YAAY,EAAE,WAAW,GAAG,YAA2B;AAC3D,QACE,oBAAC;EACC,WAAW,GACT,8DACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,cAAc;AAMvB,MAAM,iBAAoE;CACxE,KAAK;CACL,MAAM;CACP;AAQD,MAAM,YAAY,EAAE,gBAA+C;AACjE,QACE,oBAAC;EACC,OAAM;EACN,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