@noxickon/onyx 6.6.0 → 6.7.1

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 (153) hide show
  1. package/dist/code-block/CodeBlock.styles.d.ts +2 -2
  2. package/dist/code-block/CodeBlock2.js +1 -1
  3. package/dist/components/Accordion/Accordion.js +1 -1
  4. package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
  5. package/dist/components/Alert/Alert.js +16 -14
  6. package/dist/components/Alert/Alert.styles.d.ts +2 -2
  7. package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
  8. package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
  9. package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
  10. package/dist/components/AppLayout/AppLayout.js +1 -1
  11. package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
  12. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  13. package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
  14. package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
  15. package/dist/components/Badge/Badge.js +1 -1
  16. package/dist/components/Badge/Badge.styles.d.ts +2 -2
  17. package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
  18. package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  20. package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
  21. package/dist/components/Button/Button.js +2 -2
  22. package/dist/components/Button/Button.styles.d.ts +2 -2
  23. package/dist/components/Card/Card.styles.d.ts +2 -2
  24. package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
  25. package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
  27. package/dist/components/Chip/Chip.js +1 -1
  28. package/dist/components/Chip/Chip.styles.d.ts +2 -2
  29. package/dist/components/Collapsible/Collapsible.js +2 -2
  30. package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
  31. package/dist/components/Combobox/Combobox.js +4 -4
  32. package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
  33. package/dist/components/Command/Command.js +2 -2
  34. package/dist/components/Command/Command.styles.d.ts +2 -2
  35. package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
  36. package/dist/components/CopyButton/CopyButton.js +1 -1
  37. package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
  38. package/dist/components/CopyInput/CopyInput.js +1 -1
  39. package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
  40. package/dist/components/DataTable/DataTable.d.ts +1 -1
  41. package/dist/components/DataTable/DataTable.js +737 -531
  42. package/dist/components/DataTable/DataTable.styles.d.ts +53 -5
  43. package/dist/components/DataTable/DataTable.styles.js +24 -7
  44. package/dist/components/DataTable/DataTable.types.d.ts +13 -1
  45. package/dist/components/DataTable/DataTable.utils.js +1 -1
  46. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  47. package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
  48. package/dist/components/Dialog/Dialog.js +1 -1
  49. package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
  50. package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
  51. package/dist/components/Drawer/Drawer.styles.js +2 -2
  52. package/dist/components/Drawer/Drawer2.js +4 -4
  53. package/dist/components/Dropdown/Dropdown.js +1 -1
  54. package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
  55. package/dist/components/Field/Field.styles.d.ts +29 -29
  56. package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
  57. package/dist/components/Footer/Footer.js +1 -1
  58. package/dist/components/Footer/Footer.styles.d.ts +2 -2
  59. package/dist/components/Header/Header.js +1 -1
  60. package/dist/components/Header/Header.styles.d.ts +2 -2
  61. package/dist/components/Header/Header.styles.js +1 -1
  62. package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
  63. package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
  64. package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
  65. package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
  66. package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
  67. package/dist/components/Input/Input.js +1 -1
  68. package/dist/components/Input/Input.styles.d.ts +26 -26
  69. package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
  70. package/dist/components/Main/Main.styles.d.ts +1 -1
  71. package/dist/components/Meter/Meter.styles.d.ts +20 -20
  72. package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
  73. package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
  74. package/dist/components/NumberInput/NumberInput.js +1 -1
  75. package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
  76. package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
  77. package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
  78. package/dist/components/PageProgress/PageProgress.styles.js +1 -1
  79. package/dist/components/Pagination/Pagination.js +1 -1
  80. package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
  81. package/dist/components/Popover/Popover.js +1 -1
  82. package/dist/components/Popover/Popover.styles.d.ts +26 -26
  83. package/dist/components/Popover/Popover.styles.js +1 -1
  84. package/dist/components/Progress/Progress.styles.d.ts +20 -20
  85. package/dist/components/Radio/Radio.styles.d.ts +19 -19
  86. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
  87. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
  88. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
  89. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
  90. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
  91. package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
  92. package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
  93. package/dist/components/ScrollArea/ScrollArea2.js +2 -2
  94. package/dist/components/Select/Select.js +1 -1
  95. package/dist/components/Select/Select.styles.d.ts +38 -38
  96. package/dist/components/Separator/Separator.styles.d.ts +1 -1
  97. package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
  98. package/dist/components/Sidebar/Sidebar2.js +19 -19
  99. package/dist/components/SidebarRail/SidebarRail.js +1 -1
  100. package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
  101. package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
  102. package/dist/components/Slider/Slider.styles.d.ts +20 -20
  103. package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
  104. package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
  105. package/dist/components/Switch/Switch.styles.d.ts +11 -11
  106. package/dist/components/TabBar/TabBar.js +1 -1
  107. package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
  108. package/dist/components/Table/Table.d.ts +1 -1
  109. package/dist/components/Table/Table.js +69 -63
  110. package/dist/components/Table/Table.styles.d.ts +8 -8
  111. package/dist/components/Table/Table.styles.js +11 -11
  112. package/dist/components/Table/Table.types.d.ts +7 -1
  113. package/dist/components/Tabs/Tabs.js +4 -4
  114. package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
  115. package/dist/components/Textarea/Textarea.js +2 -2
  116. package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
  117. package/dist/components/Toast/Toast.css +1 -1
  118. package/dist/components/Toast/Toast.styles.d.ts +2 -2
  119. package/dist/components/Toast/Toast.styles.js +1 -1
  120. package/dist/components/Toast/Toast2.js +16 -14
  121. package/dist/components/Toggle/Toggle.js +2 -2
  122. package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
  123. package/dist/components/Tooltip/Tooltip.js +1 -1
  124. package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
  125. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  126. package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
  127. package/dist/components/Typewriter/Typewriter2.js +4 -4
  128. package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
  129. package/dist/context/Auth/Auth.types.d.ts +3 -1
  130. package/dist/context/Theme/Theme.js +1 -1
  131. package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
  132. package/dist/hooks/useFilter/useFilter.js +1 -1
  133. package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
  134. package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
  135. package/dist/hooks.js +3 -3
  136. package/dist/index.js +24 -24
  137. package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
  138. package/dist/internal/hooks/useFormState/useFormState.js +81 -81
  139. package/dist/internal/styles/addonStyles.d.ts +28 -28
  140. package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
  141. package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
  142. package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
  143. package/dist/internal/styles/menuSurfaceStyles.js +1 -1
  144. package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
  145. package/dist/internal/styles/stackedLayerStyles.js +4 -0
  146. package/dist/internal/styles/tableCellStyles.d.ts +5 -0
  147. package/dist/internal/styles/tableCellStyles.js +7 -0
  148. package/dist/rest/executors/restExecutor.js +1 -1
  149. package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
  150. package/dist/rich-editor/RichEditor2.js +3 -3
  151. package/dist/rich-editor/useOxRichEditor.js +1 -1
  152. package/dist/tokens/shared.css +5 -0
  153. package/package.json +17 -11
@@ -1,10 +1,21 @@
1
1
  import { VariantProps } from '../../internal/tv';
2
2
  export declare const dataTableVariants: import('tailwind-variants').TVReturnType<{
3
3
  density: {
4
- comfortable: {};
4
+ comfortable: {
5
+ groupCell: "py-2.75";
6
+ };
5
7
  compact: {
6
8
  toolbar: string;
9
+ groupCell: "py-1.5";
10
+ };
11
+ };
12
+ stickyHeader: {
13
+ true: {
14
+ frozenHead: string;
15
+ scrollScrollbar: string;
16
+ groupCell: string;
7
17
  };
18
+ false: {};
8
19
  };
9
20
  sortActive: {
10
21
  true: {
@@ -36,6 +47,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
36
47
  filterChipsRow: string;
37
48
  selectionActions: string;
38
49
  scroll: string;
50
+ scrollViewport: string;
51
+ scrollScrollbar: string;
39
52
  selectCol: string;
40
53
  frozenHead: string;
41
54
  frozenCell: string[];
@@ -52,6 +65,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
52
65
  footer: string;
53
66
  spinner: string;
54
67
  empty: string;
68
+ groupRow: string;
69
+ groupCell: string[];
70
+ virtualSpacerCell: string;
55
71
  configPanel: string;
56
72
  configTitle: string;
57
73
  configList: string;
@@ -67,10 +83,21 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
67
83
  skeletonBody: string;
68
84
  }, undefined, {
69
85
  density: {
70
- comfortable: {};
86
+ comfortable: {
87
+ groupCell: "py-2.75";
88
+ };
71
89
  compact: {
72
90
  toolbar: string;
91
+ groupCell: "py-1.5";
92
+ };
93
+ };
94
+ stickyHeader: {
95
+ true: {
96
+ frozenHead: string;
97
+ scrollScrollbar: string;
98
+ groupCell: string;
73
99
  };
100
+ false: {};
74
101
  };
75
102
  sortActive: {
76
103
  true: {
@@ -102,6 +129,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
102
129
  filterChipsRow: string;
103
130
  selectionActions: string;
104
131
  scroll: string;
132
+ scrollViewport: string;
133
+ scrollScrollbar: string;
105
134
  selectCol: string;
106
135
  frozenHead: string;
107
136
  frozenCell: string[];
@@ -118,6 +147,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
118
147
  footer: string;
119
148
  spinner: string;
120
149
  empty: string;
150
+ groupRow: string;
151
+ groupCell: string[];
152
+ virtualSpacerCell: string;
121
153
  configPanel: string;
122
154
  configTitle: string;
123
155
  configList: string;
@@ -131,12 +163,23 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
131
163
  skeleton: string;
132
164
  skeletonToolbar: string;
133
165
  skeletonBody: string;
134
- }, import('tailwind-variants').TVReturnType<{
166
+ }, import('tailwind-variants').TVReturnTypeLike<{
135
167
  density: {
136
- comfortable: {};
168
+ comfortable: {
169
+ groupCell: "py-2.75";
170
+ };
137
171
  compact: {
138
172
  toolbar: string;
173
+ groupCell: "py-1.5";
174
+ };
175
+ };
176
+ stickyHeader: {
177
+ true: {
178
+ frozenHead: string;
179
+ scrollScrollbar: string;
180
+ groupCell: string;
139
181
  };
182
+ false: {};
140
183
  };
141
184
  sortActive: {
142
185
  true: {
@@ -168,6 +211,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
168
211
  filterChipsRow: string;
169
212
  selectionActions: string;
170
213
  scroll: string;
214
+ scrollViewport: string;
215
+ scrollScrollbar: string;
171
216
  selectCol: string;
172
217
  frozenHead: string;
173
218
  frozenCell: string[];
@@ -184,6 +229,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
184
229
  footer: string;
185
230
  spinner: string;
186
231
  empty: string;
232
+ groupRow: string;
233
+ groupCell: string[];
234
+ virtualSpacerCell: string;
187
235
  configPanel: string;
188
236
  configTitle: string;
189
237
  configList: string;
@@ -197,5 +245,5 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
197
245
  skeleton: string;
198
246
  skeletonToolbar: string;
199
247
  skeletonBody: string;
200
- }, undefined, unknown, unknown, undefined>>;
248
+ }>>;
201
249
  export type DataTableVariants = VariantProps<typeof dataTableVariants>;
@@ -1,6 +1,7 @@
1
1
  import { tv as e } from "../../internal/tv.js";
2
+ import { tableCellBase as t, tableCellPadding as n } from "../../internal/styles/tableCellStyles.js";
2
3
  //#region src/components/DataTable/DataTable.styles.ts
3
- var t = e({
4
+ var r = e({
4
5
  slots: {
5
6
  root: "relative flex w-full flex-col overflow-hidden rounded-card border border-line bg-card shadow-[var(--shadow-card)]",
6
7
  toolbar: "flex min-h-13 items-center justify-between gap-3 border-b border-line px-3 py-2.25 pointer-coarse:flex-col pointer-coarse:items-stretch pointer-coarse:gap-2.5",
@@ -15,11 +16,13 @@ var t = e({
15
16
  collapseClip: "overflow-hidden",
16
17
  filterChipsRow: "flex min-h-[calc(var(--control-h-md)+1.25rem+1px)] flex-wrap items-center gap-2 border-b border-line px-3.5 py-2.5",
17
18
  selectionActions: "flex min-w-0 items-center gap-3",
18
- scroll: "relative w-full overflow-auto [-webkit-overflow-scrolling:touch]",
19
+ scroll: "relative w-full",
20
+ scrollViewport: "max-h-(--ox-data-table-max-h) [-webkit-overflow-scrolling:touch]",
21
+ scrollScrollbar: "",
19
22
  selectCol: "pointer-coarse:w-11",
20
- frozenHead: "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-30 pointer-coarse:bg-card",
23
+ frozenHead: "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-(--z-table-frozen-header) pointer-coarse:bg-card",
21
24
  frozenCell: [
22
- "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-10 pointer-coarse:bg-card",
25
+ "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-(--z-table-frozen-cell) pointer-coarse:bg-card",
23
26
  "pointer-coarse:group-hover/row:bg-surface-raised",
24
27
  "pointer-coarse:group-data-selected/row:bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]"
25
28
  ],
@@ -45,6 +48,9 @@ var t = e({
45
48
  footer: "flex items-center justify-center gap-2 border-t border-line py-2.5 text-xs text-fg-subtle",
46
49
  spinner: "size-3.5 animate-spin rounded-full border-2 border-line border-t-primary",
47
50
  empty: "px-6 py-12 text-center text-body text-fg-subtle pointer-coarse:px-6 pointer-coarse:py-12",
51
+ groupRow: "[&>th]:border-t [&>th]:border-line first:[&>th]:border-t-0",
52
+ groupCell: [t, "bg-sunken text-left text-xs font-semibold tracking-[0.01em] whitespace-nowrap text-fg-muted"],
53
+ virtualSpacerCell: "border-0 p-0",
48
54
  configPanel: "flex w-64 flex-col",
49
55
  configTitle: "px-2 pt-1.5 pb-2 text-body font-semibold text-fg",
50
56
  configList: "flex flex-col gap-0.5 py-1",
@@ -61,8 +67,19 @@ var t = e({
61
67
  },
62
68
  variants: {
63
69
  density: {
64
- comfortable: {},
65
- compact: { toolbar: "min-h-12 py-2" }
70
+ comfortable: { groupCell: n.comfortable },
71
+ compact: {
72
+ toolbar: "min-h-12 py-2",
73
+ groupCell: n.compact
74
+ }
75
+ },
76
+ stickyHeader: {
77
+ true: {
78
+ frozenHead: "pointer-coarse:z-(--z-table-frozen-corner)",
79
+ scrollScrollbar: "data-[orientation=vertical]:pt-[calc(var(--ox-data-table-head-h,0px)+2px)]",
80
+ groupCell: "sticky top-[var(--ox-data-table-head-h,0px)] z-(--z-table-group-header)"
81
+ },
82
+ false: {}
66
83
  },
67
84
  sortActive: {
68
85
  true: {
@@ -84,4 +101,4 @@ var t = e({
84
101
  }
85
102
  });
86
103
  //#endregion
87
- export { t as dataTableVariants };
104
+ export { r as dataTableVariants };
@@ -3,7 +3,7 @@ import { DataTableVariants } from './DataTable.styles';
3
3
  type DataTableDensity = NonNullable<DataTableVariants['density']>;
4
4
  type DataTableAlign = 'start' | 'center' | 'end';
5
5
  type SortDirection = 'asc' | 'desc';
6
- type DataTablePaginationMode = 'pages' | 'infinite';
6
+ type DataTablePaginationMode = 'pages' | 'infinite' | 'virtual';
7
7
  type DataTablePaginationLayout = 'end' | 'center' | 'split';
8
8
  type ColumnAccessor<TRow> = keyof TRow | ((row: TRow) => unknown);
9
9
  interface OxDataTableColumn<TRow> {
@@ -39,6 +39,12 @@ interface OxDataTableProps<TRow> {
39
39
  data: TRow[];
40
40
  defaultColumnOrder?: string[];
41
41
  defaultColumnVisibility?: Record<string, boolean>;
42
+ /**
43
+ * Uncontrolled initial value — read on the first render only. Later changes to
44
+ * this prop are ignored, so passing a value that updates over time silently
45
+ * does nothing. Use `expandedRows` together with `onExpandedChange` to drive
46
+ * the expanded set from outside.
47
+ */
42
48
  defaultExpandedRows?: Set<string>;
43
49
  defaultFrozenColumns?: string[];
44
50
  defaultPage?: number;
@@ -47,8 +53,11 @@ interface OxDataTableProps<TRow> {
47
53
  density?: DataTableDensity;
48
54
  emptyState?: ReactNode;
49
55
  endReachedThreshold?: number;
56
+ estimateSize?: (index: number) => number;
57
+ expandedRows?: Set<string>;
50
58
  frozenColumns?: string[];
51
59
  getRowCanExpand?: (row: TRow) => boolean;
60
+ getRowGroupId?: (row: TRow) => string;
52
61
  getRowId: (row: TRow) => string;
53
62
  hover?: boolean;
54
63
  loading?: boolean;
@@ -56,14 +65,17 @@ interface OxDataTableProps<TRow> {
56
65
  onColumnOrderChange?: (ids: string[]) => void;
57
66
  onColumnVisibilityChange?: (visibility: Record<string, boolean>) => void;
58
67
  onEndReached?: () => void;
68
+ onExpandedChange?: (ids: Set<string>) => void;
59
69
  onFrozenColumnsChange?: (ids: string[]) => void;
60
70
  onPageChange?: (page: number) => void;
61
71
  onSelectionChange?: (ids: Set<string>) => void;
62
72
  onSortChange?: (columnId: string, direction: SortDirection | null) => void;
73
+ overscan?: number;
63
74
  page?: number;
64
75
  pageSize?: number;
65
76
  paginationMode?: DataTablePaginationMode;
66
77
  renderExpandedRow?: (row: TRow) => ReactNode;
78
+ renderGroupHeader?: (groupId: string, rows: TRow[]) => ReactNode;
67
79
  rowCount?: number;
68
80
  selectable?: boolean;
69
81
  selectedRows?: Set<string>;
@@ -2,7 +2,7 @@ import { arrayMove as e } from "@dnd-kit/sortable";
2
2
  //#region src/components/DataTable/DataTable.utils.ts
3
3
  var t = (e, t) => {
4
4
  let n = new Set(e.map((e) => e.id)), r = /* @__PURE__ */ new Set(), i = [];
5
- for (let e of t) n.has(e) && !r.has(e) && (i.push(e), r.add(e));
5
+ for (let e of t) !n.has(e) || r.has(e) || (i.push(e), r.add(e));
6
6
  for (let t of e) r.has(t.id) || i.push(t.id);
7
7
  return i;
8
8
  }, n = (t, n, r) => {
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxDescriptionList");
8
8
  function s(e) {
9
9
  let o = n(30), s, c, l, u, d, f;
10
10
  o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6]) : ({className: s, density: u, layout: d, render: l, striped: f, ...c} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f);
11
- let p = u === void 0 ? "comfortable" : u, m = d === void 0 ? "rows" : d, h = f === void 0 ? !1 : f, g;
11
+ let p = u === void 0 ? "comfortable" : u, m = d === void 0 ? "rows" : d, h = f !== void 0 && f, g;
12
12
  o[7] === l ? g = o[8] : (g = l ?? /* @__PURE__ */ r("dl", {}), o[7] = l, o[8] = g);
13
13
  let _;
14
14
  o[9] !== s || o[10] !== p || o[11] !== m || o[12] !== h ? (_ = t({
@@ -21,12 +21,12 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
21
21
  };
22
22
  };
23
23
  density: {
24
- comfortable: string;
25
- compact: string;
24
+ comfortable: "";
25
+ compact: "";
26
26
  };
27
27
  striped: {
28
- true: string;
29
- false: string;
28
+ true: "";
29
+ false: "";
30
30
  };
31
31
  }, {
32
32
  root: string;
@@ -55,19 +55,19 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
55
55
  };
56
56
  };
57
57
  density: {
58
- comfortable: string;
59
- compact: string;
58
+ comfortable: "";
59
+ compact: "";
60
60
  };
61
61
  striped: {
62
- true: string;
63
- false: string;
62
+ true: "";
63
+ false: "";
64
64
  };
65
65
  }, {
66
66
  root: string;
67
67
  item: string;
68
68
  term: string;
69
69
  description: string;
70
- }, import('tailwind-variants').TVReturnType<{
70
+ }, import('tailwind-variants').TVReturnTypeLike<{
71
71
  layout: {
72
72
  rows: {
73
73
  root: string;
@@ -89,17 +89,17 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
89
89
  };
90
90
  };
91
91
  density: {
92
- comfortable: string;
93
- compact: string;
92
+ comfortable: "";
93
+ compact: "";
94
94
  };
95
95
  striped: {
96
- true: string;
97
- false: string;
96
+ true: "";
97
+ false: "";
98
98
  };
99
99
  }, {
100
100
  root: string;
101
101
  item: string;
102
102
  term: string;
103
103
  description: string;
104
- }, undefined, unknown, unknown, undefined>>;
104
+ }>>;
105
105
  export type DescriptionListVariants = VariantProps<typeof descriptionListVariants>;
@@ -9,7 +9,7 @@ var c = t();
9
9
  function l(e) {
10
10
  let t = n(6), r, i;
11
11
  t[0] === e ? (r = t[1], i = t[2]) : ({modal: i, ...r} = e, t[0] = e, t[1] = r, t[2] = i);
12
- let o = i === void 0 ? !0 : i, c;
12
+ let o = i === void 0 || i, c;
13
13
  return t[3] !== o || t[4] !== r ? (c = /* @__PURE__ */ a(s.Root, {
14
14
  modal: o,
15
15
  ...r
@@ -37,7 +37,7 @@ export declare const dialogVariants: import('tailwind-variants').TVReturnType<{
37
37
  title: string;
38
38
  description: string;
39
39
  close: string;
40
- }, import('tailwind-variants').TVReturnType<{
40
+ }, import('tailwind-variants').TVReturnTypeLike<{
41
41
  scroll: {
42
42
  readonly outside: {
43
43
  readonly viewport: "items-start overflow-y-auto p-4";
@@ -56,5 +56,5 @@ export declare const dialogVariants: import('tailwind-variants').TVReturnType<{
56
56
  title: string;
57
57
  description: string;
58
58
  close: string;
59
- }, undefined, unknown, unknown, undefined>>;
59
+ }>>;
60
60
  export type DialogVariants = VariantProps<typeof dialogVariants>;
@@ -97,7 +97,7 @@ export declare const drawerVariants: import('tailwind-variants').TVReturnType<{
97
97
  title: string;
98
98
  description: string;
99
99
  close: string;
100
- }, import('tailwind-variants').TVReturnType<{
100
+ }, import('tailwind-variants').TVReturnTypeLike<{
101
101
  side: {
102
102
  left: {
103
103
  popup: string;
@@ -146,5 +146,5 @@ export declare const drawerVariants: import('tailwind-variants').TVReturnType<{
146
146
  title: string;
147
147
  description: string;
148
148
  close: string;
149
- }, undefined, unknown, unknown, undefined>>;
149
+ }>>;
150
150
  export type DrawerVariants = VariantProps<typeof drawerVariants>;
@@ -4,12 +4,12 @@ var t = e({
4
4
  slots: {
5
5
  trigger: "",
6
6
  backdrop: [
7
- "fixed inset-0 z-[var(--z-drawer)] bg-scrim backdrop-blur-xs",
7
+ "fixed inset-0 z-(--z-drawer) bg-scrim backdrop-blur-xs",
8
8
  "transition-[opacity,backdrop-filter] duration-500 ease-ios motion-reduce:transition-[opacity]",
9
9
  "ox-starting:opacity-0 ox-starting:backdrop-blur-[0px]",
10
10
  "ox-ending:opacity-0 ox-ending:backdrop-blur-[0px]"
11
11
  ],
12
- viewport: "pointer-events-none fixed inset-0 z-[var(--z-drawer)]",
12
+ viewport: "pointer-events-none fixed inset-0 z-(--z-drawer)",
13
13
  popup: [
14
14
  "group/drawer pointer-events-auto absolute flex flex-col overflow-hidden",
15
15
  "touch-none select-none",
@@ -17,7 +17,7 @@ var { Provider: d, useRequiredContext: f } = e("OxDrawer"), p = {
17
17
  function h(e) {
18
18
  let t = r(14), n, i, a;
19
19
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({modal: i, side: a, ...n} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
20
- let o = i === void 0 ? !0 : i, c = a === void 0 ? "right" : a, l;
20
+ let o = i === void 0 || i, c = a === void 0 ? "right" : a, l;
21
21
  t[4] !== o || t[5] !== c ? (l = {
22
22
  modal: o,
23
23
  side: c
@@ -51,7 +51,7 @@ function g(e) {
51
51
  function _(e) {
52
52
  let i = r(28), a, l, d, p, m, h, g, _;
53
53
  i[0] === e ? (a = i[1], l = i[2], d = i[3], p = i[4], m = i[5], h = i[6], g = i[7], _ = i[8]) : ({backdropClassName: a, children: l, className: d, contained: h, container: p, forceBackdrop: g, viewportClassName: _, ...m} = e, i[0] = e, i[1] = a, i[2] = l, i[3] = d, i[4] = p, i[5] = m, i[6] = h, i[7] = g, i[8] = _);
54
- let v = h === void 0 ? !1 : h, y = g === void 0 ? !1 : g, { modal: b, side: x } = f(), S = n({
54
+ let v = h !== void 0 && h, y = g !== void 0 && g, { modal: b, side: x } = f(), S = n({
55
55
  side: x,
56
56
  contained: v
57
57
  }), [C, w] = o(null), T = u, E = p ?? void 0, D = (b === !0 || y) && /* @__PURE__ */ s(u.Backdrop, {
@@ -171,7 +171,7 @@ function S(e) {
171
171
  function C(e) {
172
172
  let t = r(26), i, a, o, c, u;
173
173
  t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, render: c, sticky: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
174
- let d = u === void 0 ? !1 : u, { side: p } = f(), m, h, g, _, v;
174
+ let d = u !== void 0 && u, { side: p } = f(), m, h, g, _, v;
175
175
  if (t[6] !== a || t[7] !== o || t[8] !== c || t[9] !== p || t[10] !== d) {
176
176
  let e = n({
177
177
  side: p,
@@ -209,7 +209,7 @@ function w(e) {
209
209
  function T(e) {
210
210
  let t = r(26), i, a, o, c, u;
211
211
  t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, render: c, sticky: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
212
- let d = u === void 0 ? !1 : u, { side: p } = f(), m, h, g, _, v;
212
+ let d = u !== void 0 && u, { side: p } = f(), m, h, g, _, v;
213
213
  if (t[6] !== a || t[7] !== o || t[8] !== c || t[9] !== p || t[10] !== d) {
214
214
  let e = n({
215
215
  side: p,
@@ -235,7 +235,7 @@ function M(e) {
235
235
  let u = l === void 0 ? "default" : l, d = y(), h, g, _, v, b, x, S, C;
236
236
  if (t[6] !== n || t[7] !== a || t[8] !== d || t[9] !== o || t[10] !== c || t[11] !== u) {
237
237
  let e = r({ variant: u });
238
- g = m.SubmenuTrigger, v = c, b = e.item({ class: a }), x = "dropdown-sub-trigger", S = o ?? (d ? !1 : void 0), C = n, h = s, _ = e.subTriggerChevron(), t[6] = n, t[7] = a, t[8] = d, t[9] = o, t[10] = c, t[11] = u, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = b, t[17] = x, t[18] = S, t[19] = C;
238
+ g = m.SubmenuTrigger, v = c, b = e.item({ class: a }), x = "dropdown-sub-trigger", S = o ?? (!d && void 0), C = n, h = s, _ = e.subTriggerChevron(), t[6] = n, t[7] = a, t[8] = d, t[9] = o, t[10] = c, t[11] = u, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = b, t[17] = x, t[18] = S, t[19] = C;
239
239
  } else h = t[12], g = t[13], _ = t[14], v = t[15], b = t[16], x = t[17], S = t[18], C = t[19];
240
240
  let w;
241
241
  t[20] !== h || t[21] !== _ ? (w = /* @__PURE__ */ f(h, {
@@ -57,7 +57,7 @@ export declare const dropdownVariants: import('tailwind-variants').TVReturnType<
57
57
  groupLabel: string[];
58
58
  separator: string;
59
59
  bar: string[];
60
- }, import('tailwind-variants').TVReturnType<{
60
+ }, import('tailwind-variants').TVReturnTypeLike<{
61
61
  variant: {
62
62
  default: {};
63
63
  danger: {
@@ -86,5 +86,5 @@ export declare const dropdownVariants: import('tailwind-variants').TVReturnType<
86
86
  groupLabel: string[];
87
87
  separator: string;
88
88
  bar: string[];
89
- }, undefined, unknown, unknown, undefined>>;
89
+ }>>;
90
90
  export type DropdownVariants = VariantProps<typeof dropdownVariants>;
@@ -1,27 +1,27 @@
1
1
  export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
2
2
  [key: string]: {
3
- [key: string]: import('tailwind-merge').ClassNameValue | {
4
- root?: import('tailwind-merge').ClassNameValue;
5
- item?: import('tailwind-merge').ClassNameValue;
6
- label?: import('tailwind-merge').ClassNameValue;
7
- description?: import('tailwind-merge').ClassNameValue;
8
- required?: import('tailwind-merge').ClassNameValue;
9
- errorIcon?: import('tailwind-merge').ClassNameValue;
10
- error?: import('tailwind-merge').ClassNameValue;
11
- counter?: import('tailwind-merge').ClassNameValue;
3
+ [key: string]: import('tailwind-variants').ClassValue | {
4
+ root?: import('tailwind-variants').ClassValue;
5
+ item?: import('tailwind-variants').ClassValue;
6
+ label?: import('tailwind-variants').ClassValue;
7
+ description?: import('tailwind-variants').ClassValue;
8
+ required?: import('tailwind-variants').ClassValue;
9
+ errorIcon?: import('tailwind-variants').ClassValue;
10
+ error?: import('tailwind-variants').ClassValue;
11
+ counter?: import('tailwind-variants').ClassValue;
12
12
  };
13
13
  };
14
14
  } | {
15
15
  [x: string]: {
16
- [x: string]: import('tailwind-merge').ClassNameValue | {
17
- root?: import('tailwind-merge').ClassNameValue;
18
- item?: import('tailwind-merge').ClassNameValue;
19
- label?: import('tailwind-merge').ClassNameValue;
20
- description?: import('tailwind-merge').ClassNameValue;
21
- required?: import('tailwind-merge').ClassNameValue;
22
- errorIcon?: import('tailwind-merge').ClassNameValue;
23
- error?: import('tailwind-merge').ClassNameValue;
24
- counter?: import('tailwind-merge').ClassNameValue;
16
+ [x: string]: import('tailwind-variants').ClassValue | {
17
+ root?: import('tailwind-variants').ClassValue;
18
+ item?: import('tailwind-variants').ClassValue;
19
+ label?: import('tailwind-variants').ClassValue;
20
+ description?: import('tailwind-variants').ClassValue;
21
+ required?: import('tailwind-variants').ClassValue;
22
+ errorIcon?: import('tailwind-variants').ClassValue;
23
+ error?: import('tailwind-variants').ClassValue;
24
+ counter?: import('tailwind-variants').ClassValue;
25
25
  };
26
26
  };
27
27
  } | {}, {
@@ -35,15 +35,15 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
35
35
  counter: string[];
36
36
  }, undefined, {
37
37
  [key: string]: {
38
- [key: string]: import('tailwind-merge').ClassNameValue | {
39
- root?: import('tailwind-merge').ClassNameValue;
40
- item?: import('tailwind-merge').ClassNameValue;
41
- label?: import('tailwind-merge').ClassNameValue;
42
- description?: import('tailwind-merge').ClassNameValue;
43
- required?: import('tailwind-merge').ClassNameValue;
44
- errorIcon?: import('tailwind-merge').ClassNameValue;
45
- error?: import('tailwind-merge').ClassNameValue;
46
- counter?: import('tailwind-merge').ClassNameValue;
38
+ [key: string]: import('tailwind-variants').ClassValue | {
39
+ root?: import('tailwind-variants').ClassValue;
40
+ item?: import('tailwind-variants').ClassValue;
41
+ label?: import('tailwind-variants').ClassValue;
42
+ description?: import('tailwind-variants').ClassValue;
43
+ required?: import('tailwind-variants').ClassValue;
44
+ errorIcon?: import('tailwind-variants').ClassValue;
45
+ error?: import('tailwind-variants').ClassValue;
46
+ counter?: import('tailwind-variants').ClassValue;
47
47
  };
48
48
  };
49
49
  } | {}, {
@@ -55,7 +55,7 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
55
55
  errorIcon: string;
56
56
  required: string;
57
57
  counter: string[];
58
- }, import('tailwind-variants').TVReturnType<unknown, {
58
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
59
59
  root: string[];
60
60
  item: string[];
61
61
  label: string[];
@@ -64,4 +64,4 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
64
64
  errorIcon: string;
65
65
  required: string;
66
66
  counter: string[];
67
- }, undefined, unknown, unknown, undefined>>;
67
+ }>>;
@@ -1,15 +1,15 @@
1
1
  export declare const fieldsetVariants: import('tailwind-variants').TVReturnType<{
2
2
  [key: string]: {
3
- [key: string]: import('tailwind-merge').ClassNameValue | {
4
- root?: import('tailwind-merge').ClassNameValue;
5
- legend?: import('tailwind-merge').ClassNameValue;
3
+ [key: string]: import('tailwind-variants').ClassValue | {
4
+ root?: import('tailwind-variants').ClassValue;
5
+ legend?: import('tailwind-variants').ClassValue;
6
6
  };
7
7
  };
8
8
  } | {
9
9
  [x: string]: {
10
- [x: string]: import('tailwind-merge').ClassNameValue | {
11
- root?: import('tailwind-merge').ClassNameValue;
12
- legend?: import('tailwind-merge').ClassNameValue;
10
+ [x: string]: import('tailwind-variants').ClassValue | {
11
+ root?: import('tailwind-variants').ClassValue;
12
+ legend?: import('tailwind-variants').ClassValue;
13
13
  };
14
14
  };
15
15
  } | {}, {
@@ -17,15 +17,15 @@ export declare const fieldsetVariants: import('tailwind-variants').TVReturnType<
17
17
  legend: string[];
18
18
  }, undefined, {
19
19
  [key: string]: {
20
- [key: string]: import('tailwind-merge').ClassNameValue | {
21
- root?: import('tailwind-merge').ClassNameValue;
22
- legend?: import('tailwind-merge').ClassNameValue;
20
+ [key: string]: import('tailwind-variants').ClassValue | {
21
+ root?: import('tailwind-variants').ClassValue;
22
+ legend?: import('tailwind-variants').ClassValue;
23
23
  };
24
24
  };
25
25
  } | {}, {
26
26
  root: string[];
27
27
  legend: string[];
28
- }, import('tailwind-variants').TVReturnType<unknown, {
28
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
29
29
  root: string[];
30
30
  legend: string[];
31
- }, undefined, unknown, unknown, undefined>>;
31
+ }>>;
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxFooter");
8
8
  function s(e) {
9
9
  let o = n(29), s, c, l, u, d;
10
10
  o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5]) : ({bordered: d, children: s, className: c, render: u, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d);
11
- let f = d === void 0 ? !0 : d, p, m, h, g, _;
11
+ let f = d === void 0 || d, p, m, h, g, _;
12
12
  o[6] !== f || o[7] !== c || o[8] !== l || o[9] !== u ? (p = t({ bordered: f }), _ = i, o[15] === u ? g = o[16] : (g = u ?? /* @__PURE__ */ r("footer", {}), o[15] = u, o[16] = g), m = l, h = p.root({ class: c }), o[6] = f, o[7] = c, o[8] = l, o[9] = u, o[10] = p, o[11] = m, o[12] = h, o[13] = g, o[14] = _) : (p = o[10], m = o[11], h = o[12], g = o[13], _ = o[14]);
13
13
  let v;
14
14
  o[17] !== s || o[18] !== m || o[19] !== h ? (v = {
@@ -43,7 +43,7 @@ export declare const footerVariants: import('tailwind-variants').TVReturnType<{
43
43
  bottom: string[];
44
44
  copyright: string;
45
45
  legal: string[];
46
- }, import('tailwind-variants').TVReturnType<{
46
+ }, import('tailwind-variants').TVReturnTypeLike<{
47
47
  bordered: {
48
48
  true: {
49
49
  root: string;
@@ -65,5 +65,5 @@ export declare const footerVariants: import('tailwind-variants').TVReturnType<{
65
65
  bottom: string[];
66
66
  copyright: string;
67
67
  legal: string[];
68
- }, undefined, unknown, unknown, undefined>>;
68
+ }>>;
69
69
  export type FooterVariants = VariantProps<typeof footerVariants>;
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxHeader");
8
8
  function s(e) {
9
9
  let o = n(36), s, c, l, u, d, f, p;
10
10
  o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6], p = o[7]) : ({bordered: d, children: s, className: c, render: u, sticky: f, variant: p, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f, o[7] = p);
11
- let m = d === void 0 ? !0 : d, h = f === void 0 ? !1 : f, g = p === void 0 ? "solid" : p, _, v, y, b, x;
11
+ let m = d === void 0 || d, h = f !== void 0 && f, g = p === void 0 ? "solid" : p, _, v, y, b, x;
12
12
  o[8] !== m || o[9] !== c || o[10] !== l || o[11] !== u || o[12] !== g ? (_ = t({
13
13
  variant: g,
14
14
  bordered: m
@@ -49,7 +49,7 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
49
49
  brandSubtitle: string;
50
50
  content: string;
51
51
  actions: string;
52
- }, import('tailwind-variants').TVReturnType<{
52
+ }, import('tailwind-variants').TVReturnTypeLike<{
53
53
  variant: {
54
54
  solid: {
55
55
  root: string;
@@ -74,5 +74,5 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
74
74
  brandSubtitle: string;
75
75
  content: string;
76
76
  actions: string;
77
- }, undefined, unknown, unknown, undefined>>;
77
+ }>>;
78
78
  export type HeaderVariants = VariantProps<typeof headerVariants>;
@@ -6,7 +6,7 @@ var t = e({
6
6
  "flex items-center justify-between gap-3.5 w-full",
7
7
  "h-14 px-6 ox-console:h-13 ox-console:px-5",
8
8
  "transition-colors",
9
- "data-[sticky]:sticky data-[sticky]:top-0 data-[sticky]:z-[var(--z-sticky)]"
9
+ "data-[sticky]:sticky data-[sticky]:top-0 data-[sticky]:z-(--z-sticky)"
10
10
  ],
11
11
  brand: "flex items-center gap-2.5 text-base font-semibold tracking-tight text-fg",
12
12
  brandMark: [