tembro 6.1.0 → 6.1.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 (146) hide show
  1. package/dist/components/actions/action-menu.d.ts +11 -1
  2. package/dist/components/display/index.d.ts +0 -2
  3. package/dist/components/filters/index.d.ts +0 -1
  4. package/dist/components/inputs/time-picker.d.ts +11 -3
  5. package/dist/components/modern/file-manager.d.ts +1 -1
  6. package/dist/components/modern/index.d.ts +3 -1
  7. package/dist/components/modern/map.cjs +1 -0
  8. package/dist/components/modern/map.d.ts +29 -0
  9. package/dist/components/modern/map.js +1 -0
  10. package/dist/components/modern/media-player.cjs +1 -0
  11. package/dist/components/modern/media-player.d.ts +21 -0
  12. package/dist/components/modern/media-player.js +1 -0
  13. package/dist/components/modern/spreadsheet.cjs +1 -0
  14. package/dist/components/modern/spreadsheet.d.ts +35 -0
  15. package/dist/components/modern/spreadsheet.js +1 -0
  16. package/dist/components/overlay/drawer.d.ts +3 -1
  17. package/dist/index.d.ts +0 -2
  18. package/dist/src/components/actions/action-menu.cjs +1 -1
  19. package/dist/src/components/actions/action-menu.js +47 -39
  20. package/dist/src/components/actions/copy-button.cjs +1 -1
  21. package/dist/src/components/actions/copy-button.js +4 -1
  22. package/dist/src/components/calendar/date-picker.cjs +1 -1
  23. package/dist/src/components/calendar/date-picker.js +5 -8
  24. package/dist/src/components/calendar/date-range-picker.cjs +1 -1
  25. package/dist/src/components/calendar/date-range-picker.js +12 -27
  26. package/dist/src/components/data-table/data-table.cjs +1 -1
  27. package/dist/src/components/data-table/data-table.js +172 -171
  28. package/dist/src/components/display/index.cjs +1 -1
  29. package/dist/src/components/display/index.js +9 -11
  30. package/dist/src/components/filters/index.cjs +1 -1
  31. package/dist/src/components/filters/index.js +2 -3
  32. package/dist/src/components/inputs/color-picker.cjs +1 -1
  33. package/dist/src/components/inputs/color-picker.js +63 -46
  34. package/dist/src/components/inputs/slider.cjs +1 -1
  35. package/dist/src/components/inputs/slider.js +3 -3
  36. package/dist/src/components/inputs/tag-input.cjs +1 -1
  37. package/dist/src/components/inputs/tag-input.js +7 -4
  38. package/dist/src/components/inputs/time-picker.cjs +1 -1
  39. package/dist/src/components/inputs/time-picker.js +90 -34
  40. package/dist/src/components/modern/index.cjs +1 -1
  41. package/dist/src/components/modern/index.js +6 -4
  42. package/dist/src/components/modern/map.cjs +1 -0
  43. package/dist/src/components/modern/map.js +158 -0
  44. package/dist/src/components/modern/media-player.cjs +1 -0
  45. package/dist/src/components/modern/media-player.js +176 -0
  46. package/dist/src/components/modern/resizable-panel.cjs +1 -1
  47. package/dist/src/components/modern/resizable-panel.js +39 -32
  48. package/dist/src/components/modern/spreadsheet.cjs +1 -0
  49. package/dist/src/components/modern/spreadsheet.js +97 -0
  50. package/dist/src/components/navigation/pagination.cjs +1 -1
  51. package/dist/src/components/navigation/pagination.js +5 -5
  52. package/dist/src/components/notifications/toast.cjs +1 -1
  53. package/dist/src/components/notifications/toast.js +68 -63
  54. package/dist/src/components/overlay/alert-dialog.cjs +1 -1
  55. package/dist/src/components/overlay/alert-dialog.js +8 -6
  56. package/dist/src/components/overlay/drawer.cjs +1 -1
  57. package/dist/src/components/overlay/drawer.js +38 -20
  58. package/dist/src/components/ui/checkbox/index.cjs +1 -1
  59. package/dist/src/components/ui/checkbox/index.js +2 -1
  60. package/dist/src/components/ui/dialog/index.cjs +1 -1
  61. package/dist/src/components/ui/dialog/index.js +8 -8
  62. package/dist/src/components/ui/dropdown-menu/index.cjs +1 -1
  63. package/dist/src/components/ui/dropdown-menu/index.js +21 -19
  64. package/dist/src/components/ui/popover/index.cjs +1 -1
  65. package/dist/src/components/ui/popover/index.js +10 -10
  66. package/dist/src/components/ui/tabs/index.cjs +1 -1
  67. package/dist/src/components/ui/tabs/index.js +6 -6
  68. package/dist/src/components/ui/toggle-group/index.cjs +1 -1
  69. package/dist/src/components/ui/toggle-group/index.js +2 -2
  70. package/dist/src/index.cjs +1 -1
  71. package/dist/src/index.js +80 -83
  72. package/dist/src/public-component-surface.cjs +1 -1
  73. package/dist/src/public-component-surface.js +15 -20
  74. package/package.json +1 -2
  75. package/packages/cli/dist/index.cjs +58 -178
  76. package/packages/cli/vendor/src/components/actions/action-menu.tsx +47 -19
  77. package/packages/cli/vendor/src/components/actions/copy-button.tsx +2 -2
  78. package/packages/cli/vendor/src/components/calendar/date-picker.tsx +2 -5
  79. package/packages/cli/vendor/src/components/calendar/date-range-picker.tsx +5 -12
  80. package/packages/cli/vendor/src/components/data-table/data-table.tsx +45 -34
  81. package/packages/cli/vendor/src/components/display/index.ts +3 -5
  82. package/packages/cli/vendor/src/components/filters/index.ts +0 -1
  83. package/packages/cli/vendor/src/components/inputs/color-picker.tsx +15 -1
  84. package/packages/cli/vendor/src/components/inputs/slider.tsx +3 -3
  85. package/packages/cli/vendor/src/components/inputs/tag-input.tsx +4 -4
  86. package/packages/cli/vendor/src/components/inputs/time-picker.tsx +91 -38
  87. package/packages/cli/vendor/src/components/modern/file-manager.tsx +1 -1
  88. package/packages/cli/vendor/src/components/modern/index.ts +3 -1
  89. package/packages/cli/vendor/src/components/modern/map.tsx +146 -0
  90. package/packages/cli/vendor/src/components/modern/media-player.tsx +182 -0
  91. package/packages/cli/vendor/src/components/modern/resizable-panel.tsx +15 -5
  92. package/packages/cli/vendor/src/components/modern/spreadsheet.tsx +155 -0
  93. package/packages/cli/vendor/src/components/navigation/pagination.tsx +9 -5
  94. package/packages/cli/vendor/src/components/notifications/toast.tsx +20 -10
  95. package/packages/cli/vendor/src/components/overlay/alert-dialog.tsx +3 -5
  96. package/packages/cli/vendor/src/components/overlay/drawer.tsx +22 -11
  97. package/packages/cli/vendor/src/components/ui/checkbox/index.tsx +3 -1
  98. package/packages/cli/vendor/src/components/ui/dialog/index.tsx +4 -4
  99. package/packages/cli/vendor/src/components/ui/dropdown-menu/index.tsx +18 -22
  100. package/packages/cli/vendor/src/components/ui/popover/index.tsx +4 -4
  101. package/packages/cli/vendor/src/components/ui/tabs/index.tsx +8 -3
  102. package/packages/cli/vendor/src/components/ui/toggle-group/index.tsx +6 -6
  103. package/packages/cli/vendor/src/index.ts +0 -2
  104. package/packages/cli/vendor/src/public-component-surface.ts +3 -4
  105. package/packages/cli/vendor/templates/showcase/src/showcase/data/registry.ts +6 -6
  106. package/packages/cli/vendor/templates/showcase/src/showcase/layout/HeroSection.tsx +23 -8
  107. package/packages/cli/vendor/templates/showcase/src/showcase/layout/WorkbenchSidebar.tsx +1 -1
  108. package/packages/cli/vendor/templates/showcase/src/showcase/sections/PatternsSection.tsx +1 -1
  109. package/packages/cli/vendor/templates/styles/globals.css +0 -120
  110. package/registry.json +74 -141
  111. package/dist/components/display/info-card.cjs +0 -1
  112. package/dist/components/display/info-card.d.ts +0 -51
  113. package/dist/components/display/info-card.js +0 -1
  114. package/dist/components/display/statistic.cjs +0 -1
  115. package/dist/components/display/statistic.d.ts +0 -25
  116. package/dist/components/display/statistic.js +0 -1
  117. package/dist/components/filters/filter-bar.cjs +0 -1
  118. package/dist/components/filters/filter-bar.d.ts +0 -28
  119. package/dist/components/filters/filter-bar.js +0 -1
  120. package/dist/components/modern/image-cropper.cjs +0 -1
  121. package/dist/components/modern/image-cropper.d.ts +0 -39
  122. package/dist/components/modern/image-cropper.js +0 -1
  123. package/dist/components/ui/number-field/index.cjs +0 -1
  124. package/dist/components/ui/number-field/index.d.ts +0 -18
  125. package/dist/components/ui/number-field/index.js +0 -1
  126. package/dist/components/ui/toolbar/index.cjs +0 -1
  127. package/dist/components/ui/toolbar/index.d.ts +0 -14
  128. package/dist/components/ui/toolbar/index.js +0 -1
  129. package/dist/src/components/display/info-card.cjs +0 -1
  130. package/dist/src/components/display/info-card.js +0 -124
  131. package/dist/src/components/display/statistic.cjs +0 -1
  132. package/dist/src/components/display/statistic.js +0 -104
  133. package/dist/src/components/filters/filter-bar.cjs +0 -1
  134. package/dist/src/components/filters/filter-bar.js +0 -103
  135. package/dist/src/components/modern/image-cropper.cjs +0 -1
  136. package/dist/src/components/modern/image-cropper.js +0 -143
  137. package/dist/src/components/ui/number-field/index.cjs +0 -1
  138. package/dist/src/components/ui/number-field/index.js +0 -73
  139. package/dist/src/components/ui/toolbar/index.cjs +0 -1
  140. package/dist/src/components/ui/toolbar/index.js +0 -50
  141. package/packages/cli/vendor/src/components/display/info-card.tsx +0 -195
  142. package/packages/cli/vendor/src/components/display/statistic.tsx +0 -114
  143. package/packages/cli/vendor/src/components/filters/filter-bar.tsx +0 -163
  144. package/packages/cli/vendor/src/components/modern/image-cropper.tsx +0 -226
  145. package/packages/cli/vendor/src/components/ui/number-field/index.tsx +0 -89
  146. package/packages/cli/vendor/src/components/ui/toolbar/index.tsx +0 -67
@@ -10,191 +10,192 @@ import { DataTableColumnVisibilityMenu as ae } from "./data-table-column-visibil
10
10
  import { DataTablePagination as oe } from "./data-table-pagination.js";
11
11
  import { DataTableToolbar as se } from "./data-table-toolbar.js";
12
12
  import { useVirtualizer as ce } from "../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
13
- import { DataState as s } from "../display/data-state.js";
14
- import { useIsMobile as le } from "../../hooks/use-is-mobile.js";
15
- import * as c from "react";
16
- import { Fragment as ue, jsx as l, jsxs as u } from "react/jsx-runtime";
17
- import { flexRender as d, getCoreRowModel as de, getExpandedRowModel as fe, getPaginationRowModel as pe, useReactTable as me } from "@tanstack/react-table";
13
+ import { DataState as le } from "../display/data-state.js";
14
+ import { useIsMobile as ue } from "../../hooks/use-is-mobile.js";
15
+ import * as s from "react";
16
+ import { Fragment as de, jsx as c, jsxs as l } from "react/jsx-runtime";
17
+ import { flexRender as u, getCoreRowModel as fe, getExpandedRowModel as pe, getPaginationRowModel as me, getSortedRowModel as he, useReactTable as ge } from "@tanstack/react-table";
18
18
  //#region src/components/data-table/data-table.tsx
19
- var he = {
19
+ var _e = {
20
20
  compact: "h-8 px-2 py-1.5",
21
21
  default: "h-10 px-2 py-2",
22
22
  comfortable: "h-12 px-3 py-3"
23
- }, f = {
23
+ }, ve = {
24
24
  compact: "px-2 py-1.5",
25
25
  default: "p-2",
26
26
  comfortable: "px-3 py-3"
27
27
  };
28
- function ge(e, t) {
28
+ function ye(e, t) {
29
29
  return typeof t == "function" ? t(e) : t;
30
30
  }
31
- function _e(e, t) {
31
+ function be(e, t) {
32
32
  return typeof t == "function" ? t(e) : t;
33
33
  }
34
- function ve(e, t) {
34
+ function xe(e, t) {
35
35
  return typeof t == "function" ? t(e) : t;
36
36
  }
37
- function ye(e) {
37
+ function Se(e) {
38
38
  return e == null || e === "";
39
39
  }
40
- function be(e) {
40
+ function Ce(e) {
41
41
  let t = e.column.columnDef.header;
42
42
  return typeof t == "string" ? t : typeof t == "number" ? String(t) : e.column.id === "actions" ? "Actions" : e.column.id;
43
43
  }
44
- function xe({ className: xe, columns: p, data: m, title: h, description: g, features: _, search: v, filters: y, summary: b, toolbarActions: x, rowActions: S, bulkActions: Se, onRefresh: C, onExport: w, refreshLabel: Ce = "Refresh", exportLabel: we = "Export", getRowId: Te, isLoading: T = !1, isError: Ee = !1, emptyState: De, errorState: Oe, loadingState: ke, loadingVariant: Ae = "skeleton", toolbar: E, toolbarProps: D, pagination: O, sorting: je, onSortingChange: Me, columnVisibility: Ne, onColumnVisibilityChange: Pe, rowSelection: Fe, onRowSelectionChange: Ie, enableRowSelection: Le, renderMobileCard: k, mobileLayout: Re = "auto", onRowClick: A, onRowDoubleClick: ze, getRowDisabled: Be, density: j = "default", striped: Ve = !1, bordered: M = !1, stickyHeader: N = !1, skeletonRows: He = 6, skeletonCellClassName: Ue, cellFallback: We = "-", tableClassName: Ge, tableWrapperClassName: Ke, headerCellClassName: qe, cellClassName: Je, rowClassName: Ye, renderExpandedRow: Xe, expanded: Ze, onExpandedChange: Qe, getRowCanExpand: $e, columnPinning: et, onColumnPinningChange: tt, virtualization: P, ...nt }) {
45
- let rt = c.useMemo(() => {
46
- let e = p;
47
- return !S || _?.rowActions === !1 ? e : [...e, re({ getActions: S })];
44
+ function we({ className: we, columns: Te, data: d, title: f, description: p, features: m, search: h, filters: g, summary: _, toolbarActions: v, rowActions: y, bulkActions: b, onRefresh: x, onExport: S, refreshLabel: Ee = "Refresh", exportLabel: De = "Export", getRowId: Oe, isLoading: C = !1, isError: ke = !1, emptyState: Ae, errorState: je, loadingState: w, loadingVariant: Me = "skeleton", toolbar: T, toolbarProps: E, pagination: D, sorting: Ne, onSortingChange: Pe, columnVisibility: Fe, onColumnVisibilityChange: Ie, rowSelection: Le, onRowSelectionChange: Re, enableRowSelection: ze, renderMobileCard: O, mobileLayout: Be = "auto", onRowClick: k, onRowDoubleClick: Ve, getRowDisabled: A, density: j = "default", striped: M = !1, bordered: N = !1, stickyHeader: P = !1, skeletonRows: He = 6, skeletonCellClassName: Ue, cellFallback: F = "-", tableClassName: We, tableWrapperClassName: Ge, headerCellClassName: Ke, cellClassName: qe, rowClassName: I, renderExpandedRow: Je, expanded: Ye, onExpandedChange: Xe, getRowCanExpand: Ze, columnPinning: Qe, onColumnPinningChange: $e, virtualization: et, ...tt }) {
45
+ let nt = s.useMemo(() => {
46
+ let e = Te;
47
+ return !y || m?.rowActions === !1 ? e : [...e, re({ getActions: y })];
48
48
  }, [
49
- p,
50
- _?.rowActions,
51
- S
52
- ]), F = O === !1 ? void 0 : O, it = F ? {
53
- pageIndex: F.pageIndex,
54
- pageSize: F.pageSize
55
- } : void 0, I = !!(F && F.manual !== !1), at = Fe ?? {}, L = me({
56
- data: m,
57
- columns: rt,
58
- getRowId: Te,
59
- getCoreRowModel: de(),
60
- getPaginationRowModel: F && !I ? pe() : void 0,
61
- manualPagination: I,
62
- pageCount: F?.pageCount,
49
+ Te,
50
+ m?.rowActions,
51
+ y
52
+ ]), L = D === !1 ? void 0 : D, [rt, it] = s.useState([]), [at, ot] = s.useState({}), [st, ct] = s.useState({}), [lt, ut] = s.useState({}), [dt, ft] = s.useState({}), pt = Ne ?? rt, mt = Fe ?? at, ht = Le ?? st, gt = Ye ?? lt, _t = Qe ?? dt, vt = L ? {
53
+ pageIndex: L.pageIndex,
54
+ pageSize: L.pageSize
55
+ } : void 0, yt = !!(L && L.manual !== !1), R = ge({
56
+ data: d,
57
+ columns: nt,
58
+ getRowId: Oe,
59
+ getCoreRowModel: fe(),
60
+ getSortedRowModel: he(),
61
+ getPaginationRowModel: L && !yt ? me() : void 0,
62
+ manualPagination: yt,
63
+ pageCount: L?.pageCount,
63
64
  state: {
64
- sorting: je,
65
- columnVisibility: Ne,
66
- rowSelection: at,
67
- pagination: it,
68
- expanded: Ze,
69
- ...et ? { columnPinning: et } : {}
65
+ sorting: pt,
66
+ columnVisibility: mt,
67
+ rowSelection: ht,
68
+ pagination: vt,
69
+ expanded: gt,
70
+ columnPinning: _t
70
71
  },
71
- onSortingChange: Me,
72
- onColumnVisibilityChange: Pe,
73
- onRowSelectionChange: Ie,
74
- onExpandedChange: Qe,
75
- onColumnPinningChange: tt,
76
- enableRowSelection: Le,
77
- getRowCanExpand: $e,
78
- getExpandedRowModel: fe()
79
- }), R = L.getRowModel().rows, z = c.useRef(null), B = P === !1 ? void 0 : P, V = !!(B && B.enabled !== !1 && R.length > 0), H = B?.height ?? 480, ot = B?.onRangeChange, U = ce({
80
- count: V ? R.length : 0,
81
- getScrollElement: () => z.current,
72
+ onSortingChange: Pe ?? it,
73
+ onColumnVisibilityChange: Ie ?? ot,
74
+ onRowSelectionChange: Re ?? ct,
75
+ onExpandedChange: Xe ?? ut,
76
+ onColumnPinningChange: $e ?? ft,
77
+ enableRowSelection: ze,
78
+ getRowCanExpand: Ze,
79
+ getExpandedRowModel: pe()
80
+ }), z = R.getRowModel().rows, bt = s.useRef(null), B = et === !1 ? void 0 : et, V = !!(B && B.enabled !== !1 && z.length > 0), H = B?.height ?? 480, xt = B?.onRangeChange, U = ce({
81
+ count: V ? z.length : 0,
82
+ getScrollElement: () => bt.current,
82
83
  estimateSize: () => B?.estimateRowHeight ?? 48,
83
- getItemKey: (e) => R[e]?.id ?? e,
84
+ getItemKey: (e) => z[e]?.id ?? e,
84
85
  overscan: B?.overscan ?? 8,
85
86
  initialRect: {
86
87
  width: 0,
87
88
  height: typeof H == "number" ? H : 480
88
89
  },
89
90
  onChange(e) {
90
- if (!ot) return;
91
+ if (!xt) return;
91
92
  let t = e.getVirtualItems();
92
- ot({
93
+ xt({
93
94
  startIndex: t[0]?.index ?? -1,
94
95
  endIndex: t.at(-1)?.index ?? -1
95
96
  });
96
97
  }
97
- }), st = V ? U.getVirtualItems() : [], W = B?.estimateRowHeight ?? 48, ct = V ? Math.min(R.length, Math.ceil((typeof H == "number" ? H : 480) / W) + (B?.overscan ?? 8)) : 0, G = st.length > 0 ? st : Array.from({ length: ct }, (e, t) => ({
98
- key: R[t]?.id ?? t,
98
+ }), St = V ? U.getVirtualItems() : [], W = B?.estimateRowHeight ?? 48, Ct = V ? Math.min(z.length, Math.ceil((typeof H == "number" ? H : 480) / W) + (B?.overscan ?? 8)) : 0, G = St.length > 0 ? St : Array.from({ length: Ct }, (e, t) => ({
99
+ key: z[t]?.id ?? t,
99
100
  index: t,
100
101
  start: t * W,
101
102
  end: (t + 1) * W,
102
103
  size: W,
103
104
  lane: 0
104
- })), lt = G[0]?.start ?? 0, ut = G.length ? Math.max(U.getTotalSize() - G[G.length - 1].end, 0) : 0, K = L.getSelectedRowModel().rows.map((e) => e.original), dt = K.length, q = c.useMemo(() => ({
105
- table: L,
106
- data: m,
105
+ })), wt = G[0]?.start ?? 0, Tt = G.length ? Math.max(U.getTotalSize() - G[G.length - 1].end, 0) : 0, K = R.getSelectedRowModel().rows.map((e) => e.original), Et = K.length, q = s.useMemo(() => ({
106
+ table: R,
107
+ data: d,
107
108
  selectedRows: K
108
109
  }), [
109
- m,
110
+ d,
110
111
  K,
111
- L
112
- ]), ft = L.getVisibleLeafColumns(), pt = Math.max(ft.length, 1), mt = typeof E == "function" ? E(L) : E, ht = typeof D == "function" ? D(L) : D, J = typeof y == "function" ? y(q) : y, Y = typeof b == "function" ? b(q) : b, gt = !!(v && _?.search !== !1), _t = !!(_?.columnVisibility && L.getAllLeafColumns().some((e) => e.getCanHide())), X = !!(_?.refresh && C), Z = !!(_?.export && w), vt = !!(_?.bulkActions !== !1 && Se?.length), yt = _t && !!(h || g || v || J || Y || x || X || Z), bt = gt && v ? /* @__PURE__ */ l(r, {
112
+ R
113
+ ]), Dt = R.getVisibleLeafColumns(), Ot = Math.max(Dt.length, 1), kt = typeof T == "function" ? T(R) : T, At = typeof E == "function" ? E(R) : E, J = typeof g == "function" ? g(q) : g, Y = typeof _ == "function" ? _(q) : _, jt = !!(h && m?.search !== !1), Mt = !!(m?.columnVisibility && R.getAllLeafColumns().some((e) => e.getCanHide())), X = !!(m?.refresh && x), Z = !!(m?.export && S), Nt = !!(m?.bulkActions !== !1 && b?.length), Pt = Mt && !!(f || p || h || J || Y || v || X || Z), Ft = jt && h ? /* @__PURE__ */ c(r, {
113
114
  type: "search",
114
- value: v.value,
115
- onValueChange: v.onValueChange,
116
- placeholder: v.placeholder ?? "Search...",
117
- wrapperClassName: v.wrapperClassName ?? v.className,
118
- inputClassName: v.inputClassName,
119
- disabled: v.disabled,
120
- clearable: v.clearable,
121
- clearLabel: v.clearLabel,
122
- searchIcon: v.searchIcon
123
- }) : void 0, xt = /* @__PURE__ */ u(ue, { children: [
124
- typeof x == "function" ? x(q) : x,
125
- yt && /* @__PURE__ */ l(ae, { table: L }),
126
- X && /* @__PURE__ */ l(t, {
115
+ value: h.value,
116
+ onValueChange: h.onValueChange,
117
+ placeholder: h.placeholder ?? "Search...",
118
+ wrapperClassName: h.wrapperClassName ?? h.className,
119
+ inputClassName: h.inputClassName,
120
+ disabled: h.disabled,
121
+ clearable: h.clearable,
122
+ clearLabel: h.clearLabel,
123
+ searchIcon: h.searchIcon
124
+ }) : void 0, It = /* @__PURE__ */ l(de, { children: [
125
+ typeof v == "function" ? v(q) : v,
126
+ Pt && /* @__PURE__ */ c(ae, { table: R }),
127
+ X && /* @__PURE__ */ c(t, {
127
128
  type: "button",
128
129
  variant: "outline",
129
130
  size: "sm",
130
- disabled: T,
131
- onClick: () => C?.(q),
132
- children: Ce
131
+ disabled: C,
132
+ onClick: () => x?.(q),
133
+ children: Ee
133
134
  }),
134
- Z && /* @__PURE__ */ l(t, {
135
+ Z && /* @__PURE__ */ c(t, {
135
136
  type: "button",
136
137
  variant: "outline",
137
138
  size: "sm",
138
- onClick: () => w?.(q),
139
- children: we
139
+ onClick: () => S?.(q),
140
+ children: De
140
141
  })
141
- ] }), St = vt ? /* @__PURE__ */ l(ie, {
142
+ ] }), Lt = Nt ? /* @__PURE__ */ c(ie, {
142
143
  rows: K,
143
- actions: Se ?? [],
144
+ actions: b ?? [],
144
145
  selectedLabel: () => "Actions",
145
146
  clearLabel: null,
146
- onClearSelection: () => L.resetRowSelection(),
147
+ onClearSelection: () => R.resetRowSelection(),
147
148
  hideWhenEmpty: !1
148
- }) : void 0, Ct = !!(mt || ht || h || g || bt || J || Y || x || yt || X || Z || St), wt = !!(F && !F.hidden), Q = T && Ae === "skeleton", Tt = le(), Et = Re !== "scroll" && Tt, Dt = (e, t) => t > 0 ? /* @__PURE__ */ l(o, {
149
+ }) : void 0, Rt = !!(kt || At || f || p || Ft || J || Y || v || Pt || X || Z || Lt), zt = !!(L && !L.hidden), Q = C && Me === "skeleton", Bt = ue(), Vt = Be !== "scroll" && Bt, Ht = (e, t) => t > 0 ? /* @__PURE__ */ c(o, {
149
150
  "aria-hidden": "true",
150
151
  className: "pointer-events-none border-0 hover:bg-transparent",
151
- children: /* @__PURE__ */ l(a, {
152
- colSpan: pt,
152
+ children: /* @__PURE__ */ c(a, {
153
+ colSpan: Ot,
153
154
  className: "border-0 p-0",
154
155
  style: { height: t }
155
156
  })
156
- }, e) : null, Ot = (e) => /* @__PURE__ */ l(o, { children: /* @__PURE__ */ l(a, {
157
- colSpan: pt,
157
+ }, e) : null, Ut = (e) => /* @__PURE__ */ c(o, { children: /* @__PURE__ */ c(a, {
158
+ colSpan: Ot,
158
159
  className: "p-0",
159
160
  children: e
160
- }) }), kt = () => Array.from({ length: Math.max(He, 1) }, (t, n) => /* @__PURE__ */ l(o, {
161
+ }) }), Wt = () => Array.from({ length: Math.max(He, 1) }, (t, n) => /* @__PURE__ */ c(o, {
161
162
  "aria-hidden": "true",
162
- children: ft.map((t) => /* @__PURE__ */ l(a, {
163
- className: e(f[j], M && "border-r last:border-r-0"),
164
- children: /* @__PURE__ */ l("div", { className: e("h-4 w-full max-w-40 animate-pulse rounded-md bg-muted", n % 3 == 1 && "max-w-24", n % 3 == 2 && "max-w-32", Ue) })
163
+ children: Dt.map((t) => /* @__PURE__ */ c(a, {
164
+ className: e(ve[j], N && "border-r last:border-r-0"),
165
+ children: /* @__PURE__ */ c("div", { className: e("h-4 w-full max-w-40 animate-pulse rounded-md bg-muted", n % 3 == 1 && "max-w-24", n % 3 == 2 && "max-w-32", Ue) })
165
166
  }, `${t.id}-${n}`))
166
- }, `skeleton-${n}`)), $ = Q ? null : T ? /* @__PURE__ */ l(n, {
167
+ }, `skeleton-${n}`)), $ = Q ? null : C ? /* @__PURE__ */ c(n, {
167
168
  status: "loading",
168
169
  title: "Loading data...",
169
- ...ke
170
- }) : Ee ? /* @__PURE__ */ l(s, {
170
+ ...w
171
+ }) : ke ? /* @__PURE__ */ c(le, {
171
172
  status: "error",
172
173
  title: "Could not load data",
173
174
  description: "Please try again.",
174
175
  variant: "plain",
175
- ...Oe
176
- }) : R.length === 0 ? /* @__PURE__ */ l(s, {
176
+ ...je
177
+ }) : z.length === 0 ? /* @__PURE__ */ c(le, {
177
178
  status: "empty",
178
179
  variant: "plain",
179
- ...De
180
- }) : null, At = (t, n, r) => {
181
- let i = Be?.(t) ?? !1;
182
- return /* @__PURE__ */ u(c.Fragment, { children: [/* @__PURE__ */ l(o, {
180
+ ...Ae
181
+ }) : null, Gt = (t, n, r) => {
182
+ let i = A?.(t) ?? !1;
183
+ return /* @__PURE__ */ l(s.Fragment, { children: [/* @__PURE__ */ c(o, {
183
184
  ref: r && B?.measureRows !== !1 ? U.measureElement : void 0,
184
185
  "data-index": r?.index,
185
186
  "data-state": t.getIsSelected() ? "selected" : void 0,
186
- "data-striped": Ve && n % 2 == 1 ? "true" : void 0,
187
+ "data-striped": M && n % 2 == 1 ? "true" : void 0,
187
188
  "data-disabled": i || void 0,
188
- className: e(A && !i && "cursor-pointer", !i && "transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)] data-[state=selected]:bg-[color:color-mix(in_oklch,var(--primary),transparent_90%)]", i && "pointer-events-none opacity-55", ge(t, Ye)),
189
+ className: e(k && !i && "cursor-pointer", !i && "transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)] data-[state=selected]:bg-[color:color-mix(in_oklch,var(--primary),transparent_90%)]", i && "pointer-events-none opacity-55", ye(t, I)),
189
190
  onClick: () => {
190
- i || A?.(t);
191
+ i || k?.(t);
191
192
  },
192
193
  onDoubleClick: () => {
193
- i || ze?.(t);
194
+ i || Ve?.(t);
194
195
  },
195
196
  children: t.getVisibleCells().map((t) => {
196
- let n = d(t.column.columnDef.cell, t.getContext());
197
- return /* @__PURE__ */ l(a, {
197
+ let n = u(t.column.columnDef.cell, t.getContext());
198
+ return /* @__PURE__ */ c(a, {
198
199
  style: {
199
200
  ...t.column.getIsPinned() === "left" ? {
200
201
  left: `${t.column.getStart("left")}px`,
@@ -207,129 +208,129 @@ function xe({ className: xe, columns: p, data: m, title: h, description: g, feat
207
208
  zIndex: 10
208
209
  } : {}
209
210
  },
210
- className: e(f[j], t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", M && "border-r last:border-r-0", ve(t, Je)),
211
- children: ye(n) ? We : n
211
+ className: e(ve[j], t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", N && "border-r last:border-r-0", xe(t, qe)),
212
+ children: Se(n) ? F : n
212
213
  }, t.id);
213
214
  })
214
- }), t.getIsExpanded() && Xe ? /* @__PURE__ */ l(o, {
215
+ }), t.getIsExpanded() && Je ? /* @__PURE__ */ c(o, {
215
216
  className: "bg-muted/50 hover:bg-muted/50",
216
- children: /* @__PURE__ */ l(a, {
217
+ children: /* @__PURE__ */ c(a, {
217
218
  colSpan: t.getVisibleCells().length,
218
- children: Xe(t)
219
+ children: Je(t)
219
220
  })
220
221
  }) : null] }, t.id);
221
- }, jt = (t) => {
222
- let n = Be?.(t) ?? !1, r = t.getVisibleCells();
223
- return /* @__PURE__ */ l("article", {
222
+ }, Kt = (t) => {
223
+ let n = A?.(t) ?? !1, r = t.getVisibleCells();
224
+ return /* @__PURE__ */ c("article", {
224
225
  "data-slot": "data-table-mobile-card",
225
226
  "data-state": t.getIsSelected() ? "selected" : void 0,
226
227
  "data-disabled": n || void 0,
227
- className: e("grid gap-3 rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card p-3 shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))]", A && !n && "cursor-pointer transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)]", n && "pointer-events-none opacity-55", ge(t, Ye)),
228
- role: A && !n ? "button" : void 0,
229
- tabIndex: A && !n ? 0 : void 0,
228
+ className: e("grid gap-3 rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card p-3 shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))]", k && !n && "cursor-pointer transition-colors hover:bg-[color:color-mix(in_oklch,var(--primary),transparent_96%)]", n && "pointer-events-none opacity-55", ye(t, I)),
229
+ role: k && !n ? "button" : void 0,
230
+ tabIndex: k && !n ? 0 : void 0,
230
231
  onClick: () => {
231
- n || A?.(t);
232
+ n || k?.(t);
232
233
  },
233
234
  onKeyDown: (e) => {
234
- e.target !== e.currentTarget || n || !A || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), A(t));
235
+ e.target !== e.currentTarget || n || !k || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(t));
235
236
  },
236
237
  children: r.map((e) => {
237
- let t = d(e.column.columnDef.cell, e.getContext());
238
- return /* @__PURE__ */ u("div", {
238
+ let t = u(e.column.columnDef.cell, e.getContext());
239
+ return /* @__PURE__ */ l("div", {
239
240
  "data-slot": "data-table-mobile-cell",
240
241
  className: "grid grid-cols-[minmax(7rem,0.42fr)_minmax(0,1fr)] items-start gap-3 text-sm",
241
- children: [/* @__PURE__ */ l("span", {
242
+ children: [/* @__PURE__ */ c("span", {
242
243
  className: "min-w-0 text-xs font-semibold uppercase tracking-wide text-muted-foreground",
243
- children: be(e)
244
- }), /* @__PURE__ */ l("div", {
244
+ children: Ce(e)
245
+ }), /* @__PURE__ */ c("div", {
245
246
  className: "min-w-0 text-right text-foreground/92 [&>*]:ml-auto",
246
- children: ye(t) ? We : t
247
+ children: Se(t) ? F : t
247
248
  })]
248
249
  }, e.id);
249
250
  })
250
251
  }, t.id);
251
252
  };
252
- return /* @__PURE__ */ u("div", {
253
+ return /* @__PURE__ */ l("div", {
253
254
  "data-slot": "data-table",
254
- className: e("grid gap-3", xe),
255
- ...nt,
255
+ className: e("grid gap-3", we),
256
+ ...tt,
256
257
  children: [
257
- Ct && (mt ?? /* @__PURE__ */ l(se, {
258
- title: h,
259
- description: g,
260
- search: bt,
258
+ Rt && (kt ?? /* @__PURE__ */ c(se, {
259
+ title: f,
260
+ description: p,
261
+ search: Ft,
261
262
  filters: J,
262
263
  summary: Y,
263
- actions: xt,
264
- selectionActions: St,
265
- selectedCount: dt,
266
- totalCount: F ? F.rowCount ?? m.length : m.length,
264
+ actions: It,
265
+ selectionActions: Lt,
266
+ selectedCount: Et,
267
+ totalCount: L ? L.rowCount ?? d.length : d.length,
267
268
  variant: "plain",
268
- ...ht
269
+ ...At
269
270
  })),
270
- Et && /* @__PURE__ */ l("div", {
271
+ Vt && /* @__PURE__ */ c("div", {
271
272
  className: "grid gap-3",
272
- children: $ ?? (Q ? /* @__PURE__ */ l(n, {
273
+ children: $ ?? (Q ? /* @__PURE__ */ c(n, {
273
274
  status: "loading",
274
275
  title: "Loading data...",
275
- ...ke
276
- }) : R.map((e) => /* @__PURE__ */ l(c.Fragment, { children: k ? k(e) : jt(e) }, e.id)))
276
+ ...w
277
+ }) : z.map((e) => /* @__PURE__ */ c(s.Fragment, { children: O ? O(e) : Kt(e) }, e.id)))
277
278
  }),
278
- !Et && /* @__PURE__ */ u("div", {
279
+ !Vt && /* @__PURE__ */ l("div", {
279
280
  "data-slot": "data-table-wrapper",
280
281
  "data-density": j,
281
- "data-striped": Ve || void 0,
282
- "data-bordered": M || void 0,
282
+ "data-striped": M || void 0,
283
+ "data-bordered": N || void 0,
283
284
  "data-virtualized": V || void 0,
284
- className: e("overflow-hidden rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))] backdrop-blur", Ke),
285
- children: [/* @__PURE__ */ u(i, {
286
- containerRef: z,
285
+ className: e("overflow-hidden rounded-[var(--aui-card-radius,var(--radius-lg))] border border-[color:var(--aui-card-border,var(--border))] bg-card shadow-[var(--aui-card-shadow,0_10px_24px_rgba(15,23,42,0.07))] backdrop-blur", Ge),
286
+ children: [/* @__PURE__ */ l(i, {
287
+ containerRef: bt,
287
288
  containerStyle: V ? {
288
289
  height: H,
289
290
  overscrollBehavior: "contain"
290
291
  } : void 0,
291
292
  containerClassName: e("rounded-none border-0 bg-transparent shadow-none ring-0", V && "overflow-auto"),
292
- className: e("text-[0.95rem]", Ge),
293
- "aria-rowcount": R.length,
294
- children: [/* @__PURE__ */ l(ne, {
295
- className: e((N || V) && "sticky top-0 z-10 shadow-sm backdrop-blur"),
296
- children: L.getHeaderGroups().map((t) => /* @__PURE__ */ l(o, { children: t.headers.map((t) => /* @__PURE__ */ l(te, {
293
+ className: e("text-[0.95rem]", We),
294
+ "aria-rowcount": z.length,
295
+ children: [/* @__PURE__ */ c(ne, {
296
+ className: e((P || V) && "sticky top-0 z-10 shadow-sm backdrop-blur"),
297
+ children: R.getHeaderGroups().map((t) => /* @__PURE__ */ c(o, { children: t.headers.map((t) => /* @__PURE__ */ c(te, {
297
298
  style: {
298
299
  width: t.getSize(),
299
300
  ...t.column.getIsPinned() === "left" ? {
300
301
  left: `${t.column.getStart("left")}px`,
301
302
  position: "sticky",
302
- zIndex: N ? 20 : 11
303
+ zIndex: P ? 20 : 11
303
304
  } : {},
304
305
  ...t.column.getIsPinned() === "right" ? {
305
306
  right: `${t.column.getAfter("right")}px`,
306
307
  position: "sticky",
307
- zIndex: N ? 20 : 11
308
+ zIndex: P ? 20 : 11
308
309
  } : {}
309
310
  },
310
- className: e(he[j], "bg-[color:color-mix(in_oklch,var(--card),var(--background)_10%)] text-muted-foreground", (N || V) && "bg-[color:color-mix(in_oklch,var(--card),transparent_12%)] backdrop-blur", t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", M && "border-r last:border-r-0", _e(t, qe)),
311
- children: t.isPlaceholder ? null : d(t.column.columnDef.header, t.getContext())
311
+ className: e(_e[j], "bg-[color:color-mix(in_oklch,var(--card),var(--background)_10%)] text-muted-foreground", (P || V) && "bg-[color:color-mix(in_oklch,var(--card),transparent_12%)] backdrop-blur", t.column.getIsPinned() && "bg-card shadow-[1px_0_0_var(--border)]", N && "border-r last:border-r-0", be(t, Ke)),
312
+ children: t.isPlaceholder ? null : u(t.column.columnDef.header, t.getContext())
312
313
  }, t.id)) }, t.id))
313
- }), /* @__PURE__ */ l(ee, { children: $ ? Ot($) : Q ? kt() : V ? [
314
- Dt("virtual-top", lt),
315
- ...G.map((e) => At(R[e.index], e.index, e)),
316
- Dt("virtual-bottom", ut)
317
- ] : R.map((e, t) => At(e, t)) })]
318
- }), wt && F && /* @__PURE__ */ l(oe, {
319
- pageIndex: F.pageIndex,
320
- pageSize: F.pageSize,
321
- pageCount: F.pageCount,
322
- rowCount: F.rowCount,
323
- pageSizeOptions: F.pageSizeOptions,
324
- showPageSize: F.showPageSize,
325
- labels: F.labels,
326
- disabled: T,
327
- onPageChange: F.onPageChange,
328
- onPageSizeChange: F.onPageSizeChange
314
+ }), /* @__PURE__ */ c(ee, { children: $ ? Ut($) : Q ? Wt() : V ? [
315
+ Ht("virtual-top", wt),
316
+ ...G.map((e) => Gt(z[e.index], e.index, e)),
317
+ Ht("virtual-bottom", Tt)
318
+ ] : z.map((e, t) => Gt(e, t)) })]
319
+ }), zt && L && /* @__PURE__ */ c(oe, {
320
+ pageIndex: L.pageIndex,
321
+ pageSize: L.pageSize,
322
+ pageCount: L.pageCount,
323
+ rowCount: L.rowCount,
324
+ pageSizeOptions: L.pageSizeOptions,
325
+ showPageSize: L.showPageSize,
326
+ labels: L.labels,
327
+ disabled: C,
328
+ onPageChange: L.onPageChange,
329
+ onPageSizeChange: L.onPageSizeChange
329
330
  })]
330
331
  })
331
332
  ]
332
333
  });
333
334
  }
334
335
  //#endregion
335
- export { xe as DataTable };
336
+ export { we as DataTable };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-state.cjs"),t=require("./activity-feed.cjs"),n=require("./avatar.cjs"),r=require("./carousel.cjs"),i=require("./chat.cjs"),a=require("./code-block.cjs"),o=require("./description-list.cjs"),s=require("./kanban.cjs"),c=require("./list.cjs"),l=require("./progress.cjs"),u=require("./statistic.cjs"),d=require("./status-dot.cjs"),f=require("./status-legend.cjs"),p=require("./timeline.cjs"),m=require("./tree-view.cjs"),h=require("./info-card.cjs"),g=require("./virtual-list.cjs"),_=require("./qr-code.cjs"),v=require("./tag.cjs"),y=require("./typography.cjs");exports.ActivityFeed=t.ActivityFeed,exports.Avatar=n.Avatar,exports.AvatarGroup=n.AvatarGroup,exports.Blockquote=y.Blockquote,exports.Carousel=r.Carousel,exports.CarouselItem=r.CarouselItem,exports.ChatAttachment=i.ChatAttachment,exports.ChatComposer=i.ChatComposer,exports.ChatHeader=i.ChatHeader,exports.ChatHeaderActions=i.ChatHeaderActions,exports.ChatMessage=i.ChatMessage,exports.ChatMessageList=i.ChatMessageList,exports.ChatShell=i.ChatShell,exports.ChatTypingIndicator=i.ChatTypingIndicator,exports.Chip=v.Chip,exports.CodeBlock=a.CodeBlock,exports.ConversationList=i.ConversationList,exports.DataState=e.DataState,exports.DescriptionList=o.DescriptionList,exports.Heading=y.Heading,exports.InfoCard=h.InfoCard,exports.KanbanBoard=s.KanbanBoard,exports.List=c.List,exports.ListRow=c.ListRow,exports.Mark=y.Mark,exports.Progress=l.Progress,exports.ProgressCard=l.ProgressCard,exports.QRCode=_.QRCode,exports.QRCodeSvg=_.QRCodeSvg,exports.Spoiler=y.Spoiler,exports.SpoilerSummary=y.SpoilerSummary,exports.Statistic=u.Statistic,exports.StatisticCard=u.StatisticCard,exports.StatisticGrid=u.StatisticGrid,exports.StatusDot=d.StatusDot,exports.StatusLegend=f.StatusLegend,exports.Tag=v.Tag,exports.TagGroup=v.TagGroup,exports.Text=y.Text,exports.Timeline=p.Timeline,exports.TreeView=m.TreeView,exports.VirtualList=g.VirtualList,exports.getProgressPercent=l.getProgressPercent;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./data-state.cjs"),t=require("./activity-feed.cjs"),n=require("./avatar.cjs"),r=require("./carousel.cjs"),i=require("./chat.cjs"),a=require("./code-block.cjs"),o=require("./description-list.cjs"),s=require("./kanban.cjs"),c=require("./list.cjs"),l=require("./progress.cjs"),u=require("./status-dot.cjs"),d=require("./status-legend.cjs"),f=require("./timeline.cjs"),p=require("./tree-view.cjs"),m=require("./virtual-list.cjs"),h=require("./qr-code.cjs"),g=require("./tag.cjs"),_=require("./typography.cjs");exports.ActivityFeed=t.ActivityFeed,exports.Avatar=n.Avatar,exports.AvatarGroup=n.AvatarGroup,exports.Blockquote=_.Blockquote,exports.Carousel=r.Carousel,exports.CarouselItem=r.CarouselItem,exports.ChatAttachment=i.ChatAttachment,exports.ChatComposer=i.ChatComposer,exports.ChatHeader=i.ChatHeader,exports.ChatHeaderActions=i.ChatHeaderActions,exports.ChatMessage=i.ChatMessage,exports.ChatMessageList=i.ChatMessageList,exports.ChatShell=i.ChatShell,exports.ChatTypingIndicator=i.ChatTypingIndicator,exports.Chip=g.Chip,exports.CodeBlock=a.CodeBlock,exports.ConversationList=i.ConversationList,exports.DataState=e.DataState,exports.DescriptionList=o.DescriptionList,exports.Heading=_.Heading,exports.KanbanBoard=s.KanbanBoard,exports.List=c.List,exports.ListRow=c.ListRow,exports.Mark=_.Mark,exports.Progress=l.Progress,exports.ProgressCard=l.ProgressCard,exports.QRCode=h.QRCode,exports.QRCodeSvg=h.QRCodeSvg,exports.Spoiler=_.Spoiler,exports.SpoilerSummary=_.SpoilerSummary,exports.StatusDot=u.StatusDot,exports.StatusLegend=d.StatusLegend,exports.Tag=g.Tag,exports.TagGroup=g.TagGroup,exports.Text=_.Text,exports.Timeline=f.Timeline,exports.TreeView=p.TreeView,exports.VirtualList=m.VirtualList,exports.getProgressPercent=l.getProgressPercent;
@@ -8,14 +8,12 @@ import { DescriptionList as g } from "./description-list.js";
8
8
  import { KanbanBoard as _ } from "./kanban.js";
9
9
  import { List as v, ListRow as y } from "./list.js";
10
10
  import { Progress as b, ProgressCard as x, getProgressPercent as S } from "./progress.js";
11
- import { Statistic as C, StatisticCard as w, StatisticGrid as T } from "./statistic.js";
12
- import { StatusDot as E } from "./status-dot.js";
13
- import { StatusLegend as D } from "./status-legend.js";
14
- import { Timeline as O } from "./timeline.js";
15
- import { TreeView as k } from "./tree-view.js";
16
- import { InfoCard as A } from "./info-card.js";
17
- import { VirtualList as j } from "./virtual-list.js";
18
- import { QRCode as M, QRCodeSvg as N } from "./qr-code.js";
19
- import { Chip as P, Tag as F, TagGroup as I } from "./tag.js";
20
- import { Blockquote as L, Heading as R, Mark as z, Spoiler as B, SpoilerSummary as V, Text as H } from "./typography.js";
21
- export { t as ActivityFeed, n as Avatar, r as AvatarGroup, L as Blockquote, i as Carousel, a as CarouselItem, o as ChatAttachment, s as ChatComposer, c as ChatHeader, l as ChatHeaderActions, u as ChatMessage, d as ChatMessageList, f as ChatShell, p as ChatTypingIndicator, P as Chip, h as CodeBlock, m as ConversationList, e as DataState, g as DescriptionList, R as Heading, A as InfoCard, _ as KanbanBoard, v as List, y as ListRow, z as Mark, b as Progress, x as ProgressCard, M as QRCode, N as QRCodeSvg, B as Spoiler, V as SpoilerSummary, C as Statistic, w as StatisticCard, T as StatisticGrid, E as StatusDot, D as StatusLegend, F as Tag, I as TagGroup, H as Text, O as Timeline, k as TreeView, j as VirtualList, S as getProgressPercent };
11
+ import { StatusDot as C } from "./status-dot.js";
12
+ import { StatusLegend as w } from "./status-legend.js";
13
+ import { Timeline as T } from "./timeline.js";
14
+ import { TreeView as E } from "./tree-view.js";
15
+ import { VirtualList as D } from "./virtual-list.js";
16
+ import { QRCode as O, QRCodeSvg as k } from "./qr-code.js";
17
+ import { Chip as A, Tag as j, TagGroup as M } from "./tag.js";
18
+ import { Blockquote as N, Heading as P, Mark as F, Spoiler as I, SpoilerSummary as L, Text as R } from "./typography.js";
19
+ export { t as ActivityFeed, n as Avatar, r as AvatarGroup, N as Blockquote, i as Carousel, a as CarouselItem, o as ChatAttachment, s as ChatComposer, c as ChatHeader, l as ChatHeaderActions, u as ChatMessage, d as ChatMessageList, f as ChatShell, p as ChatTypingIndicator, A as Chip, h as CodeBlock, m as ConversationList, e as DataState, g as DescriptionList, P as Heading, _ as KanbanBoard, v as List, y as ListRow, F as Mark, b as Progress, x as ProgressCard, O as QRCode, k as QRCodeSvg, I as Spoiler, L as SpoilerSummary, C as StatusDot, w as StatusLegend, j as Tag, M as TagGroup, R as Text, T as Timeline, E as TreeView, D as VirtualList, S as getProgressPercent };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./filter-bar.cjs"),t=require("./saved-filter-select.cjs");exports.FilterBar=e.FilterBar,exports.SavedFilterSelect=t.SavedFilterSelect;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./saved-filter-select.cjs");exports.SavedFilterSelect=e.SavedFilterSelect;
@@ -1,3 +1,2 @@
1
- import { FilterBar as e } from "./filter-bar.js";
2
- import { SavedFilterSelect as t } from "./saved-filter-select.js";
3
- export { e as FilterBar, t as SavedFilterSelect };
1
+ import { SavedFilterSelect as e } from "./saved-filter-select.js";
2
+ export { e as SavedFilterSelect };
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../lib/utils.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=/^#?([0-9a-f]{6})([0-9a-f]{2})?$/i;function a(e,t=`#000000`){let n=e.trim().match(i);return n?`#${n[1].toLowerCase()}${n[2]?.toLowerCase()??``}`:t}function o(e){return a(e).slice(0,7)}function s(e){let t=a(e);return t.length===9?Math.round(Number.parseInt(t.slice(7,9),16)/255*100):100}function c(e,t,n){let r=o(e);return n?`${r}${Math.round(Math.min(100,Math.max(0,t))/100*255).toString(16).padStart(2,`0`)}`:r}function l({value:e,defaultValue:a=`#2563eb`,onValueChange:l,swatches:u=[`#0f172a`,`#2563eb`,`#059669`,`#d97706`,`#dc2626`,`#7c3aed`],showAlpha:d=!1,disabled:f=!1,label:p,labels:m,className:h,...g}){let[_,v]=n.useState(()=>c(a,s(a),d)),y=c(e??_,s(e??_),d),[b,x]=n.useState(y);n.useEffect(()=>x(y),[y]);let S=t=>{let n=c(t,s(t),d);e===void 0&&v(n),l?.(n)},C=()=>{if(!i.test(b.trim())){x(y);return}S(b)};return(0,r.jsxs)(`div`,{"data-slot":`color-picker`,className:t.cn(`grid gap-3`,h),...g,children:[p?(0,r.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:p}):null,(0,r.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,r.jsxs)(`label`,{className:`relative size-10 shrink-0 overflow-hidden rounded-md border bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring`,children:[(0,r.jsx)(`span`,{className:`sr-only`,children:m?.color??`Choose color`}),(0,r.jsx)(`input`,{type:`color`,"aria-label":m?.color??`Choose color`,value:o(y),disabled:f,className:`absolute -inset-2 size-14 cursor-pointer border-0 bg-transparent p-0 disabled:cursor-not-allowed`,onChange:e=>S(c(e.target.value,s(y),d))})]}),(0,r.jsx)(`input`,{"aria-label":m?.hex??`Hex color`,value:b,disabled:f,spellCheck:!1,className:`h-10 min-w-0 flex-1 rounded-md border bg-background px-3 font-mono text-sm uppercase outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,onChange:e=>x(e.target.value),onBlur:C,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),C()),e.key===`Escape`&&x(y)}})]}),d?(0,r.jsxs)(`label`,{className:`grid grid-cols-[1fr_auto] items-center gap-3 text-xs text-muted-foreground`,children:[(0,r.jsx)(`span`,{className:`sr-only`,children:m?.alpha??`Opacity`}),(0,r.jsx)(`input`,{type:`range`,min:`0`,max:`100`,value:s(y),disabled:f,"aria-label":m?.alpha??`Opacity`,className:`w-full accent-foreground disabled:cursor-not-allowed`,onChange:e=>S(c(y,Number(e.target.value),!0))}),(0,r.jsxs)(`span`,{className:`w-10 text-right tabular-nums`,children:[s(y),`%`]})]}):null,u.length>0?(0,r.jsx)(`div`,{role:`list`,"aria-label":`Color swatches`,className:`flex flex-wrap gap-2`,children:u.map(e=>{let t=c(e,s(y),d),n=o(t)===o(y);return(0,r.jsx)(`button`,{type:`button`,role:`listitem`,"aria-label":`Use ${e}`,"aria-pressed":n,disabled:f,className:`size-7 rounded-md border border-black/10 shadow-sm outline-none ring-offset-2 focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,style:{backgroundColor:o(t)},onClick:()=>S(t)},e)})}):null]})}exports.ColorPicker=l,exports.getAlphaPercent=s,exports.normalizeHexColor=a,exports.withAlpha=c;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../lib/utils.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");var i=/^#?([0-9a-f]{6})([0-9a-f]{2})?$/i;function a(e,t=`#000000`){let n=e.trim().match(i);return n?`#${n[1].toLowerCase()}${n[2]?.toLowerCase()??``}`:t}function o(e){return a(e).slice(0,7)}function s(e){let t=a(e);return t.length===9?Math.round(Number.parseInt(t.slice(7,9),16)/255*100):100}function c(e,t,n){let r=o(e);return n?`${r}${Math.round(Math.min(100,Math.max(0,t))/100*255).toString(16).padStart(2,`0`)}`:r}function l(e){let t=o(e);return{background:`linear-gradient(90deg, ${t}00 0%, ${t}ff 100%)`}}function u({value:e,defaultValue:a=`#2563eb`,onValueChange:u,swatches:d=[`#0f172a`,`#2563eb`,`#059669`,`#d97706`,`#dc2626`,`#7c3aed`],showAlpha:f=!1,disabled:p=!1,label:m,labels:h,className:g,..._}){let[v,y]=n.useState(()=>c(a,s(a),f)),b=c(e??v,s(e??v),f),[x,S]=n.useState(b);n.useEffect(()=>S(b),[b]);let C=t=>{let n=c(t,s(t),f);e===void 0&&y(n),u?.(n)},w=()=>{if(!i.test(x.trim())){S(b);return}C(x)};return(0,r.jsxs)(`div`,{"data-slot":`color-picker`,className:t.cn(`grid gap-3`,g),..._,children:[m?(0,r.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:m}):null,(0,r.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,r.jsxs)(`label`,{className:`relative size-10 shrink-0 overflow-hidden rounded-md border bg-background shadow-sm focus-within:ring-2 focus-within:ring-ring`,children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`absolute inset-0 bg-[linear-gradient(45deg,#e2e8f0_25%,transparent_25%),linear-gradient(-45deg,#e2e8f0_25%,transparent_25%),linear-gradient(45deg,transparent_75%,#e2e8f0_75%),linear-gradient(-45deg,transparent_75%,#e2e8f0_75%)] bg-[length:10px_10px] bg-[position:0_0,0_5px,5px_-5px,-5px_0]`}),(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`absolute inset-0`,style:{backgroundColor:b}}),(0,r.jsx)(`span`,{className:`sr-only`,children:h?.color??`Choose color`}),(0,r.jsx)(`input`,{type:`color`,"aria-label":h?.color??`Choose color`,value:o(b),disabled:p,className:`absolute -inset-2 size-14 cursor-pointer border-0 bg-transparent p-0 disabled:cursor-not-allowed`,onChange:e=>C(c(e.target.value,s(b),f))})]}),(0,r.jsx)(`input`,{"aria-label":h?.hex??`Hex color`,value:x,disabled:p,spellCheck:!1,className:`h-10 min-w-0 flex-1 rounded-md border bg-background px-3 font-mono text-sm uppercase outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,onChange:e=>S(e.target.value),onBlur:w,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),w()),e.key===`Escape`&&S(b)}})]}),f?(0,r.jsxs)(`label`,{className:`grid grid-cols-[1fr_auto] items-center gap-3 text-xs text-muted-foreground`,children:[(0,r.jsx)(`span`,{className:`sr-only`,children:h?.alpha??`Opacity`}),(0,r.jsx)(`input`,{type:`range`,min:`0`,max:`100`,value:s(b),disabled:p,"aria-label":h?.alpha??`Opacity`,style:l(b),className:`h-2 w-full cursor-pointer appearance-none rounded-full border border-border/70 outline-none focus-visible:ring-4 focus-visible:ring-ring/20 disabled:cursor-not-allowed [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-background [&::-webkit-slider-thumb]:bg-foreground [&::-webkit-slider-thumb]:shadow-sm`,onChange:e=>C(c(b,Number(e.target.value),!0))}),(0,r.jsxs)(`span`,{className:`w-10 text-right tabular-nums`,children:[s(b),`%`]})]}):null,d.length>0?(0,r.jsx)(`div`,{role:`list`,"aria-label":`Color swatches`,className:`flex flex-wrap gap-2`,children:d.map(e=>{let t=c(e,s(b),f),n=o(t)===o(b);return(0,r.jsx)(`button`,{type:`button`,role:`listitem`,"aria-label":`Use ${e}`,"aria-pressed":n,disabled:p,className:`size-7 rounded-md border border-black/10 shadow-sm outline-none ring-offset-2 focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,style:{backgroundColor:o(t)},onClick:()=>C(t)},e)})}):null]})}exports.ColorPicker=u,exports.getAlphaPercent=s,exports.normalizeHexColor=a,exports.withAlpha=c;