@datum-cloud/datum-ui 0.3.2-dev.5bd364b → 0.5.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.
- package/README.md +118 -49
- package/dist/alert/index.mjs +2 -3
- package/dist/{alert-BC2Mccfo.mjs → alert-BDj6od5I.mjs} +2 -4
- package/dist/app-navigation/index.mjs +4 -12
- package/dist/{app-navigation-CCvjPijd.mjs → app-navigation-84ro28PU.mjs} +5 -8
- package/dist/autocomplete/index.mjs +2 -7
- package/dist/{autocomplete-DcKO7pj5.mjs → autocomplete-V5-qslzS.mjs} +5 -7
- package/dist/avatar/index.mjs +2 -0
- package/dist/avatar-BtKVcvO4.mjs +28 -0
- package/dist/avatar-stack/index.mjs +2 -5
- package/dist/{avatar-stack-B21McFeb.mjs → avatar-stack-oVr8tsU7.mjs} +4 -31
- package/dist/badge/index.mjs +2 -3
- package/dist/{badge-bFgeYceE.mjs → badge-DJR33ftJ.mjs} +2 -4
- package/dist/breadcrumb/index.mjs +2 -4
- package/dist/{breadcrumb-BGYJgom_.mjs → breadcrumb-B-9G347O.mjs} +2 -4
- package/dist/button/index.mjs +3 -4
- package/dist/{button-C1wRfGtT.mjs → button-BllvE9Lm.mjs} +3 -5
- package/dist/{button-AzpnV-WB.mjs → button-D3RrsMfQ.mjs} +2 -4
- package/dist/{link-button-TIF2Zdrk.mjs → button-fO8nazJE.mjs} +3 -5
- package/dist/button-group/index.mjs +2 -5
- package/dist/{button-group-C1IB2K5s.mjs → button-group-CYPka2zz.mjs} +3 -5
- package/dist/calendar/index.mjs +2 -5
- package/dist/{calendar-DlIHeWb0.mjs → calendar-DEkCw7I1.mjs} +4 -6
- package/dist/{calendar-date-picker-Bw6Mrr-P.mjs → calendar-date-picker-DWK94_DC.mjs} +6 -8
- package/dist/card/index.mjs +2 -4
- package/dist/{card-3Kd0VdNf.mjs → card-DKG1Cwlj.mjs} +3 -6
- package/dist/chart/index.mjs +2 -4
- package/dist/{chart-BZqUKpkh.mjs → chart-CUa21ynK.mjs} +2 -4
- package/dist/checkbox/index.mjs +2 -4
- package/dist/{checkbox-LG1OKTpG.mjs → checkbox-I5BvrMPe.mjs} +3 -6
- package/dist/{close.icon-CMNMoXM_.mjs → close.icon-HCfS4Y-N.mjs} +2 -4
- package/dist/{cn-DWCc1QRE.mjs → cn-D2KYQ917.mjs} +1 -3
- package/dist/code-editor/index.mjs +2 -0
- package/dist/{col-DCneNxQj.mjs → col-q-J99UHe.mjs} +2 -7
- package/dist/collapsible/index.mjs +2 -3
- package/dist/{collapsible-Bt9UYfv3.mjs → collapsible-CUphkSBt.mjs} +1 -3
- package/dist/command/index.mjs +2 -5
- package/dist/{command-s0Yv3abE.mjs → command-DqHWukGK.mjs} +3 -5
- package/dist/components/base/avatar/index.d.ts +2 -0
- package/dist/components/base/avatar/index.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/features/code-editor/code-editor-tabs.d.ts +63 -0
- package/dist/components/features/code-editor/code-editor-tabs.d.ts.map +1 -0
- package/dist/components/features/code-editor/code-editor.d.ts +58 -0
- package/dist/components/features/code-editor/code-editor.d.ts.map +1 -0
- package/dist/components/features/code-editor/index.d.ts +6 -0
- package/dist/components/features/code-editor/index.d.ts.map +1 -0
- package/dist/components/features/code-editor/lib/editor.d.ts +7 -0
- package/dist/components/features/code-editor/lib/editor.d.ts.map +1 -0
- package/dist/components/features/code-editor/types.d.ts +98 -0
- package/dist/components/features/code-editor/types.d.ts.map +1 -0
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/data-table/index.mjs +21 -51
- package/dist/date-picker/index.mjs +3 -10
- package/dist/dialog/index.mjs +2 -5
- package/dist/{dialog-bnMMf9GD.mjs → dialog-Bm2H9lrx.mjs} +4 -6
- package/dist/{dialog-DXBaT9gA.mjs → dialog-DASRaFxD.mjs} +2 -4
- package/dist/dropdown/index.mjs +2 -3
- package/dist/{dropdown-Dgm_b6Mm.mjs → dropdown-DZiAt-jS.mjs} +3 -5
- package/dist/{dropdown-menu-DAFyO-qD.mjs → dropdown-menu-lALvDnab.mjs} +5 -7
- package/dist/dropzone/index.mjs +2 -5
- package/dist/{dropzone-DR6O9OdU.mjs → dropzone-ogtpQ4fy.mjs} +5 -8
- package/dist/empty-content/index.mjs +2 -3
- package/dist/{empty-content-Dm7_5jO9.mjs → empty-content-C63GPJ5d.mjs} +3 -9
- package/dist/form/index.mjs +2 -146
- package/dist/{use-stepper-DJd8o9dV.mjs → form-Co3fM4B7.mjs} +148 -51
- package/dist/grid/index.mjs +2 -3
- package/dist/hooks/index.mjs +3 -4
- package/dist/{use-debounce-Dc95PFRX.mjs → hooks-Cb7YlxN4.mjs} +1 -3
- package/dist/hover-card/index.mjs +2 -4
- package/dist/{hover-card-CUPfFUqE.mjs → hover-card-DDWWD5Hx.mjs} +2 -4
- package/dist/{icon-wrapper-9ticVbRL.mjs → icon-wrapper-DuLp3RM1.mjs} +1 -3
- package/dist/icons/index.mjs +4 -5
- package/dist/index.mjs +65 -70
- package/dist/input/index.mjs +2 -5
- package/dist/{input-DuyjEKEW.mjs → input-DOmNpcQJ.mjs} +2 -4
- package/dist/{input-fzXBheCN.mjs → input-FKGqZypx.mjs} +3 -5
- package/dist/input-group/index.mjs +2 -7
- package/dist/{input-group-CPaFSTEV.mjs → input-group-DDtz-RT7.mjs} +5 -7
- package/dist/input-number/index.mjs +2 -6
- package/dist/{input-number-D1HCcTXO.mjs → input-number-mDB-5M5C.mjs} +4 -6
- package/dist/input-with-addons/index.mjs +28 -3
- package/dist/label/index.mjs +2 -4
- package/dist/{label-_ste_Re3.mjs → label-cnAhY-ej.mjs} +3 -6
- package/dist/loader-overlay/index.mjs +2 -3
- package/dist/{loader-overlay-CpA0zV8D.mjs → loader-overlay-BTFdkp7W.mjs} +3 -5
- package/dist/map/index.mjs +2 -14
- package/dist/{map-2RG9pYZR.mjs → map-ClxB41Hg.mjs} +10 -14
- package/dist/{map-leaflet-imports-CgEyVRnp.mjs → map-leaflet-imports-CaMm_rdF.mjs} +1 -2
- package/dist/more-actions/index.mjs +2 -5
- package/dist/{more-actions-BODYgG1C.mjs → more-actions-CGagbIDT.mjs} +5 -7
- package/dist/nprogress/index.mjs +1 -3
- package/dist/page-title/index.mjs +2 -3
- package/dist/{page-title-D62FV6vD.mjs → page-title-R7QbfbWp.mjs} +2 -4
- package/dist/popover/index.mjs +2 -4
- package/dist/{popover-Ds9624qY.mjs → popover-FJAcbYoH.mjs} +2 -4
- package/dist/radio-group/index.mjs +2 -4
- package/dist/{radio-group-B9Hm77LQ.mjs → radio-group-CiITR0LO.mjs} +3 -6
- package/dist/select/index.mjs +2 -4
- package/dist/{select-CwVIFWFO.mjs → select-CiLR_DiQ.mjs} +3 -6
- package/dist/separator/index.mjs +2 -4
- package/dist/{separator-T2ppyD-8.mjs → separator-DXVTncCK.mjs} +2 -4
- package/dist/sheet/index.mjs +3 -5
- package/dist/{sheet-mx5XjyEY.mjs → sheet-BzXksqYY.mjs} +4 -6
- package/dist/{sheet-Cemwh78x.mjs → sheet-Di3b-oPu.mjs} +2 -4
- package/dist/sidebar/index.mjs +2 -10
- package/dist/{sidebar-BW76ss_f.mjs → sidebar-BnhnjvfO.mjs} +10 -14
- package/dist/skeleton/index.mjs +2 -5
- package/dist/{skeleton-CkE23wsL.mjs → skeleton-BKl4mfJt.mjs} +2 -4
- package/dist/{skeleton-DZ31pU4B.mjs → skeleton-D1MUhAVo.mjs} +3 -5
- package/dist/spinner/index.mjs +2 -4
- package/dist/{spinner-earfjpJs.mjs → spinner-OyOf9-Yu.mjs} +2 -4
- package/dist/{spinner.icon-Bg8zgGh0.mjs → spinner.icon-C-vjSM6o.mjs} +2 -4
- package/dist/stepper/index.mjs +321 -5
- package/dist/switch/index.mjs +2 -4
- package/dist/{switch-Cn9IM2gC.mjs → switch-DQJQhPIQ.mjs} +3 -6
- package/dist/table/index.mjs +2 -4
- package/dist/{table-Dpzh0VPK.mjs → table-Cdsh-39-.mjs} +2 -4
- package/dist/tabs/index.mjs +50 -3
- package/dist/tag-input/index.mjs +2 -5
- package/dist/{tag-input-DorFQ9bA.mjs → tag-input-BVSwNcRd.mjs} +5 -7
- package/dist/task-queue/index.mjs +2 -7
- package/dist/{task-queue-dropdown-DtS0IKci.mjs → task-queue-dropdown-DyM5R8KF.mjs} +10 -30
- package/dist/textarea/index.mjs +2 -5
- package/dist/{textarea-QYRcDEpK.mjs → textarea-94vq_G_S.mjs} +2 -4
- package/dist/{textarea-KZUKGHlO.mjs → textarea-BwD-MmTV.mjs} +3 -5
- package/dist/theme/index.mjs +2 -3
- package/dist/{theme.provider-BG3cS9xe.mjs → themes-DG1md8FI.mjs} +1 -6
- package/dist/{to-api-format-CzPt5UAX.mjs → to-api-format-BnbRFYQI.mjs} +9 -18
- package/dist/toast/index.mjs +3 -3
- package/dist/{use-toast-DBmysDS6.mjs → toast-BWnN5fax.mjs} +5 -42
- package/dist/toast-DpxlFNNx.mjs +37 -0
- package/dist/tooltip/index.mjs +2 -4
- package/dist/{tooltip-U3XxlW4l.mjs → tooltip-Cruvl5F6.mjs} +3 -6
- package/dist/types-BZNk3q65.mjs +357 -0
- package/dist/typography/index.mjs +2 -3
- package/dist/{typography-DdrxIJMd.mjs → typography-ClB8k55E.mjs} +2 -4
- package/dist/{use-copy-to-clipboard-C9cT2Qb-.mjs → use-copy-to-clipboard-BGdTmkFV.mjs} +2 -4
- package/dist/utils/index.mjs +2 -3
- package/dist/{utils-Bfgoe-Gm.mjs → utils-C8KwMfT_.mjs} +1 -3
- package/dist/visually-hidden/index.mjs +2 -3
- package/dist/{visuallyhidden-CfBnXfvh.mjs → visuallyhidden-BLUsJpYH.mjs} +1 -3
- package/package.json +30 -4
- package/dist/input-with-addons-DN9LGwUU.mjs +0 -30
- package/dist/stepper-CZeks9Ex.mjs +0 -323
- package/dist/tabs-OYVCDOif.mjs +0 -52
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import { t as cn } from "../cn-
|
|
2
|
-
import { t as Badge } from "../badge-
|
|
3
|
-
import "../
|
|
4
|
-
import { t as
|
|
5
|
-
import "../
|
|
6
|
-
import { t as
|
|
7
|
-
import "../
|
|
8
|
-
import {
|
|
9
|
-
import "../
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { i as
|
|
13
|
-
import {
|
|
14
|
-
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "../select-CwVIFWFO.mjs";
|
|
15
|
-
import "../skeleton-CkE23wsL.mjs";
|
|
16
|
-
import { t as Skeleton } from "../skeleton-DZ31pU4B.mjs";
|
|
17
|
-
import { c as TableRow, i as TableCell, n as TableBody, o as TableHead, s as TableHeader, t as Table } from "../table-Dpzh0VPK.mjs";
|
|
18
|
-
import { t as CalendarDatePicker } from "../calendar-date-picker-Bw6Mrr-P.mjs";
|
|
1
|
+
import { t as cn } from "../cn-D2KYQ917.mjs";
|
|
2
|
+
import { t as Badge } from "../badge-DJR33ftJ.mjs";
|
|
3
|
+
import { t as Button } from "../button-BllvE9Lm.mjs";
|
|
4
|
+
import { t as Checkbox } from "../checkbox-I5BvrMPe.mjs";
|
|
5
|
+
import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "../command-DqHWukGK.mjs";
|
|
6
|
+
import { t as Input } from "../input-FKGqZypx.mjs";
|
|
7
|
+
import { t as Label } from "../label-cnAhY-ej.mjs";
|
|
8
|
+
import { i as DropdownMenuItem, l as DropdownMenuTrigger, r as DropdownMenuContent, t as DropdownMenu } from "../dropdown-menu-lALvDnab.mjs";
|
|
9
|
+
import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "../popover-FJAcbYoH.mjs";
|
|
10
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "../select-CiLR_DiQ.mjs";
|
|
11
|
+
import { t as Skeleton } from "../skeleton-D1MUhAVo.mjs";
|
|
12
|
+
import { c as TableRow, i as TableCell, n as TableBody, o as TableHead, s as TableHeader, t as Table } from "../table-Cdsh-39-.mjs";
|
|
13
|
+
import { t as CalendarDatePicker } from "../calendar-date-picker-DWK94_DC.mjs";
|
|
19
14
|
import { ArrowDown, ArrowUp, ArrowUpDown, Check, ChevronDown, ChevronLeft, ChevronRight, MoreHorizontal, X } from "lucide-react";
|
|
20
15
|
import { createContext, memo, use, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
21
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
17
|
import { parseAsInteger, parseAsString, useQueryStates } from "nuqs";
|
|
23
18
|
import { flexRender, getCoreRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
24
|
-
|
|
25
19
|
//#region src/components/features/data-table/constants.ts
|
|
26
20
|
const DEFAULT_PAGE_SIZE = 20;
|
|
27
21
|
const DEFAULT_PAGE_SIZES = [
|
|
@@ -32,7 +26,6 @@ const DEFAULT_PAGE_SIZES = [
|
|
|
32
26
|
];
|
|
33
27
|
const DEFAULT_DEBOUNCE_MS = 300;
|
|
34
28
|
const DEFAULT_LOADING_ROWS = 5;
|
|
35
|
-
|
|
36
29
|
//#endregion
|
|
37
30
|
//#region src/components/features/data-table/adapters/nuqs-adapter.ts
|
|
38
31
|
/**
|
|
@@ -64,7 +57,7 @@ const coreSearchParams = {
|
|
|
64
57
|
sort: parseAsString.withDefault(""),
|
|
65
58
|
q: parseAsString.withDefault(""),
|
|
66
59
|
page: parseAsInteger.withDefault(0),
|
|
67
|
-
size: parseAsInteger.withDefault(
|
|
60
|
+
size: parseAsInteger.withDefault(20)
|
|
68
61
|
};
|
|
69
62
|
/**
|
|
70
63
|
* Hook that creates a StateAdapter backed by nuqs URL query state.
|
|
@@ -106,7 +99,7 @@ function useNuqsAdapter(options = {}) {
|
|
|
106
99
|
sort: serializeSorting(state.sorting),
|
|
107
100
|
q: state.search,
|
|
108
101
|
page: state.pageIndex ?? 0,
|
|
109
|
-
size: state.pageSize ??
|
|
102
|
+
size: state.pageSize ?? 20
|
|
110
103
|
});
|
|
111
104
|
if (hasFilters && filterParsers) {
|
|
112
105
|
const update = {};
|
|
@@ -123,7 +116,6 @@ function useNuqsAdapter(options = {}) {
|
|
|
123
116
|
filterParsers
|
|
124
117
|
]);
|
|
125
118
|
}
|
|
126
|
-
|
|
127
119
|
//#endregion
|
|
128
120
|
//#region src/components/features/data-table/columns/selection-column.tsx
|
|
129
121
|
const SELECTION_COLUMN_ID = "select";
|
|
@@ -155,7 +147,6 @@ function withSelectionColumn(columns, options = {}) {
|
|
|
155
147
|
if (hasSelectionColumn(columns)) return columns;
|
|
156
148
|
return [createSelectionColumn(options), ...columns];
|
|
157
149
|
}
|
|
158
|
-
|
|
159
150
|
//#endregion
|
|
160
151
|
//#region src/components/features/data-table/core/filter-engine.ts
|
|
161
152
|
/**
|
|
@@ -228,7 +219,6 @@ function applyFilters(data, filters, search, registeredFilters, customFilterFns,
|
|
|
228
219
|
return true;
|
|
229
220
|
});
|
|
230
221
|
}
|
|
231
|
-
|
|
232
222
|
//#endregion
|
|
233
223
|
//#region src/components/features/data-table/core/store.ts
|
|
234
224
|
function createDataTableStore(options) {
|
|
@@ -249,7 +239,7 @@ function createDataTableStore(options) {
|
|
|
249
239
|
search: "",
|
|
250
240
|
rowSelection: {},
|
|
251
241
|
pageIndex: 0,
|
|
252
|
-
pageSize: options.pageSize ??
|
|
242
|
+
pageSize: options.pageSize ?? 20,
|
|
253
243
|
columnCount: options.columnCount ?? 0,
|
|
254
244
|
mode: options.mode,
|
|
255
245
|
isLoading: options.isLoading ?? false,
|
|
@@ -451,7 +441,6 @@ function createDataTableStore(options) {
|
|
|
451
441
|
}
|
|
452
442
|
};
|
|
453
443
|
}
|
|
454
|
-
|
|
455
444
|
//#endregion
|
|
456
445
|
//#region src/components/features/data-table/core/data-table-context.tsx
|
|
457
446
|
const DataTableStoreContext = createContext(null);
|
|
@@ -472,7 +461,7 @@ const DataTableRenderKeyContext = createContext(0);
|
|
|
472
461
|
function useRenderKey() {
|
|
473
462
|
return useContext(DataTableRenderKeyContext);
|
|
474
463
|
}
|
|
475
|
-
|
|
464
|
+
createContext(null);
|
|
476
465
|
function useDataTableStore() {
|
|
477
466
|
const store = use(DataTableStoreContext);
|
|
478
467
|
if (!store) throw new Error("useDataTableStore must be used within a <DataTable.Client> or <DataTable.Server> provider");
|
|
@@ -485,7 +474,6 @@ function useDataTableStore() {
|
|
|
485
474
|
function useTableInstanceOrNull() {
|
|
486
475
|
return use(TableInstanceContext);
|
|
487
476
|
}
|
|
488
|
-
|
|
489
477
|
//#endregion
|
|
490
478
|
//#region src/components/features/data-table/hooks/use-selectors.ts
|
|
491
479
|
function shallowEqual(a, b) {
|
|
@@ -611,7 +599,6 @@ function useDataTableInlineContents() {
|
|
|
611
599
|
unregisterInlineContent: store.unregisterInlineContent
|
|
612
600
|
}), [store]));
|
|
613
601
|
}
|
|
614
|
-
|
|
615
602
|
//#endregion
|
|
616
603
|
//#region src/components/features/data-table/components/active-filters.tsx
|
|
617
604
|
function formatValue(column, value, formatters) {
|
|
@@ -758,7 +745,6 @@ function ActiveFiltersInner({ label = "Selected Filters", excludeFilters, filter
|
|
|
758
745
|
});
|
|
759
746
|
}
|
|
760
747
|
const DataTableActiveFilters = memo(ActiveFiltersInner);
|
|
761
|
-
|
|
762
748
|
//#endregion
|
|
763
749
|
//#region src/components/features/data-table/components/bulk-actions.tsx
|
|
764
750
|
function DataTableBulkActions({ children, className }) {
|
|
@@ -770,7 +756,6 @@ function DataTableBulkActions({ children, className }) {
|
|
|
770
756
|
children: children(selectedRows)
|
|
771
757
|
});
|
|
772
758
|
}
|
|
773
|
-
|
|
774
759
|
//#endregion
|
|
775
760
|
//#region src/components/features/data-table/components/column-header.tsx
|
|
776
761
|
function DataTableColumnHeader({ column, title, className }) {
|
|
@@ -792,7 +777,6 @@ function DataTableColumnHeader({ column, title, className }) {
|
|
|
792
777
|
})
|
|
793
778
|
});
|
|
794
779
|
}
|
|
795
|
-
|
|
796
780
|
//#endregion
|
|
797
781
|
//#region src/components/features/data-table/components/content.tsx
|
|
798
782
|
function resolveClassName(value, item) {
|
|
@@ -820,7 +804,7 @@ function DataTableContent({ emptyMessage, className, tableClassName, headerClass
|
|
|
820
804
|
const { inlineContents } = useDataTableInlineContents();
|
|
821
805
|
const openInlineContents = useMemo(() => inlineContents.filter((e) => e.open), [inlineContents]);
|
|
822
806
|
const colSpan = totalColumns;
|
|
823
|
-
const skeletonColumns = totalColumns || columnCount ||
|
|
807
|
+
const skeletonColumns = totalColumns || columnCount || 5;
|
|
824
808
|
return /* @__PURE__ */ jsx("div", {
|
|
825
809
|
className: cn("datum-ui-data-table", className),
|
|
826
810
|
"data-slot": "dt",
|
|
@@ -876,7 +860,6 @@ function DataTableContent({ emptyMessage, className, tableClassName, headerClass
|
|
|
876
860
|
})
|
|
877
861
|
});
|
|
878
862
|
}
|
|
879
|
-
|
|
880
863
|
//#endregion
|
|
881
864
|
//#region src/components/features/data-table/components/inline-content.tsx
|
|
882
865
|
function DataTableInlineContent({ position, rowId, open, onClose, className, children }) {
|
|
@@ -927,10 +910,9 @@ function DataTableInlineContent({ position, rowId, open, onClose, className, chi
|
|
|
927
910
|
]);
|
|
928
911
|
return null;
|
|
929
912
|
}
|
|
930
|
-
|
|
931
913
|
//#endregion
|
|
932
914
|
//#region src/components/features/data-table/components/loading.tsx
|
|
933
|
-
function DataTableLoading({ rows =
|
|
915
|
+
function DataTableLoading({ rows = 5, columns = 4, className }) {
|
|
934
916
|
return /* @__PURE__ */ jsx("div", {
|
|
935
917
|
className,
|
|
936
918
|
"data-slot": "dt-loading",
|
|
@@ -938,7 +920,6 @@ function DataTableLoading({ rows = DEFAULT_LOADING_ROWS, columns = 4, className
|
|
|
938
920
|
children: /* @__PURE__ */ jsxs(Table, { children: [/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsx(TableRow, { children: Array.from({ length: columns }, (_, i) => /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }) }, i)) }) }), /* @__PURE__ */ jsx(TableBody, { children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx(TableRow, { children: Array.from({ length: columns }, (_, colIndex) => /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }) }, colIndex)) }, rowIndex)) })] })
|
|
939
921
|
});
|
|
940
922
|
}
|
|
941
|
-
|
|
942
923
|
//#endregion
|
|
943
924
|
//#region src/components/features/data-table/components/pagination.tsx
|
|
944
925
|
/**
|
|
@@ -1062,7 +1043,6 @@ function DataTablePagination({ pageSizes = DEFAULT_PAGE_SIZES, className }) {
|
|
|
1062
1043
|
})]
|
|
1063
1044
|
});
|
|
1064
1045
|
}
|
|
1065
|
-
|
|
1066
1046
|
//#endregion
|
|
1067
1047
|
//#region src/components/features/data-table/components/row-actions.tsx
|
|
1068
1048
|
function DataTableRowActions({ row, actions, isLoading = false, className }) {
|
|
@@ -1097,10 +1077,9 @@ function DataTableRowActions({ row, actions, isLoading = false, className }) {
|
|
|
1097
1077
|
})
|
|
1098
1078
|
})] });
|
|
1099
1079
|
}
|
|
1100
|
-
|
|
1101
1080
|
//#endregion
|
|
1102
1081
|
//#region src/components/features/data-table/components/search.tsx
|
|
1103
|
-
function DataTableSearch({ placeholder = "Search...", debounceMs =
|
|
1082
|
+
function DataTableSearch({ placeholder = "Search...", debounceMs = 300, className, disabled }) {
|
|
1104
1083
|
const { search, setSearch } = useDataTableSearch();
|
|
1105
1084
|
const [inputValue, setInputValue] = useState(search);
|
|
1106
1085
|
useEffect(() => {
|
|
@@ -1127,7 +1106,6 @@ function DataTableSearch({ placeholder = "Search...", debounceMs = DEFAULT_DEBOU
|
|
|
1127
1106
|
"data-slot": "dt-search"
|
|
1128
1107
|
});
|
|
1129
1108
|
}
|
|
1130
|
-
|
|
1131
1109
|
//#endregion
|
|
1132
1110
|
//#region src/components/features/data-table/hooks/use-data-table-client.ts
|
|
1133
1111
|
/**
|
|
@@ -1208,7 +1186,6 @@ function useClientTable(store, options) {
|
|
|
1208
1186
|
]);
|
|
1209
1187
|
return { table };
|
|
1210
1188
|
}
|
|
1211
|
-
|
|
1212
1189
|
//#endregion
|
|
1213
1190
|
//#region src/components/features/data-table/core/client-provider.tsx
|
|
1214
1191
|
/**
|
|
@@ -1282,7 +1259,6 @@ function ClientProvider(props) {
|
|
|
1282
1259
|
})
|
|
1283
1260
|
});
|
|
1284
1261
|
}
|
|
1285
|
-
|
|
1286
1262
|
//#endregion
|
|
1287
1263
|
//#region src/components/features/data-table/hooks/use-data-table-server.ts
|
|
1288
1264
|
/**
|
|
@@ -1417,7 +1393,6 @@ function useServerTable(store, options) {
|
|
|
1417
1393
|
]);
|
|
1418
1394
|
return { table };
|
|
1419
1395
|
}
|
|
1420
|
-
|
|
1421
1396
|
//#endregion
|
|
1422
1397
|
//#region src/components/features/data-table/core/server-provider.tsx
|
|
1423
1398
|
/**
|
|
@@ -1475,7 +1450,6 @@ function ServerProvider(props) {
|
|
|
1475
1450
|
})
|
|
1476
1451
|
});
|
|
1477
1452
|
}
|
|
1478
|
-
|
|
1479
1453
|
//#endregion
|
|
1480
1454
|
//#region src/components/features/data-table/filters/checkbox-filter.tsx
|
|
1481
1455
|
const MAX_VISIBLE_BADGES = 2;
|
|
@@ -1587,7 +1561,6 @@ function CheckboxFilter({ column, label, options, className, checkboxPopoverClas
|
|
|
1587
1561
|
})]
|
|
1588
1562
|
});
|
|
1589
1563
|
}
|
|
1590
|
-
|
|
1591
1564
|
//#endregion
|
|
1592
1565
|
//#region src/components/features/data-table/filters/date-picker-filter.tsx
|
|
1593
1566
|
function DatePickerFilter({ column, label, className, datePickerPopoverClassName, disableFuture, disablePast, minDate, maxDate, disabled }) {
|
|
@@ -1630,7 +1603,6 @@ function DatePickerFilter({ column, label, className, datePickerPopoverClassName
|
|
|
1630
1603
|
})
|
|
1631
1604
|
});
|
|
1632
1605
|
}
|
|
1633
|
-
|
|
1634
1606
|
//#endregion
|
|
1635
1607
|
//#region src/components/features/data-table/filters/select-filter.tsx
|
|
1636
1608
|
function SelectFilter({ column, label, options, placeholder, searchable = true, className, selectPopoverClassName, disabled }) {
|
|
@@ -1698,7 +1670,6 @@ function SelectFilter({ column, label, options, placeholder, searchable = true,
|
|
|
1698
1670
|
})]
|
|
1699
1671
|
});
|
|
1700
1672
|
}
|
|
1701
|
-
|
|
1702
1673
|
//#endregion
|
|
1703
1674
|
//#region src/components/features/data-table/data-table.tsx
|
|
1704
1675
|
const DataTable = {
|
|
@@ -1717,6 +1688,5 @@ const DataTable = {
|
|
|
1717
1688
|
CheckboxFilter,
|
|
1718
1689
|
DatePickerFilter
|
|
1719
1690
|
};
|
|
1720
|
-
|
|
1721
1691
|
//#endregion
|
|
1722
|
-
export { DEFAULT_DEBOUNCE_MS, DEFAULT_LOADING_ROWS, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DataTable, createDataTableStore, createSelectionColumn, useDataTableFilters, useDataTableInlineContents, useDataTableLoading, useDataTablePagination, useDataTableRows, useDataTableSearch, useDataTableSelection, useDataTableSorting, useNuqsAdapter };
|
|
1692
|
+
export { DEFAULT_DEBOUNCE_MS, DEFAULT_LOADING_ROWS, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZES, DataTable, createDataTableStore, createSelectionColumn, useDataTableFilters, useDataTableInlineContents, useDataTableLoading, useDataTablePagination, useDataTableRows, useDataTableSearch, useDataTableSelection, useDataTableSorting, useNuqsAdapter };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
|
|
4
|
-
import "../input-DuyjEKEW.mjs";
|
|
5
|
-
import "../popover-Ds9624qY.mjs";
|
|
6
|
-
import "../select-CwVIFWFO.mjs";
|
|
7
|
-
import { t as CalendarDatePicker } from "../calendar-date-picker-Bw6Mrr-P.mjs";
|
|
8
|
-
import { C as utcToLocalInputString, S as utcStringToZonedDate, _ as getBrowserTimezone, a as formatTimeRangeDisplay, b as getTimezoneOffset, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as formatUtcForDisplay, h as formatTimezoneLabel, i as formatSingleTimeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as TimeRangePicker, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatDateForInput, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as getDefaultTimezoneOptions, w as zonedDateToUtcString, x as localInputStringToUtc, y as getShortTimezoneDisplay } from "../to-api-format-CzPt5UAX.mjs";
|
|
9
|
-
|
|
10
|
-
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, CalendarDatePicker, DEFAULT_PRESETS, QuickRangesPanel, TimeRangePicker, TimezoneSelector, createTimezoneOption, formatDateForInput, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, getBrowserTimezone, getDefaultPreset, getDefaultTimezoneOptions, getPresetByKey, getPresetByShortcut, getPresetRange, getShortTimezoneDisplay, getTimezoneOffset, localInputStringToUtc, toApiTimeRange, utcStringToZonedDate, utcToLocalInputString, zonedDateToUtcString };
|
|
1
|
+
import { t as CalendarDatePicker } from "../calendar-date-picker-DWK94_DC.mjs";
|
|
2
|
+
import { C as utcToLocalInputString, S as utcStringToZonedDate, _ as getBrowserTimezone, a as formatTimeRangeDisplay, b as getTimezoneOffset, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as formatUtcForDisplay, h as formatTimezoneLabel, i as formatSingleTimeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as TimeRangePicker, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatDateForInput, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as getDefaultTimezoneOptions, w as zonedDateToUtcString, x as localInputStringToUtc, y as getShortTimezoneDisplay } from "../to-api-format-BnbRFYQI.mjs";
|
|
3
|
+
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, CalendarDatePicker, DEFAULT_PRESETS, QuickRangesPanel, TimeRangePicker, TimezoneSelector, createTimezoneOption, formatDateForInput, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, getBrowserTimezone, getDefaultPreset, getDefaultTimezoneOptions, getPresetByKey, getPresetByShortcut, getPresetRange, getShortTimezoneDisplay, getTimezoneOffset, localInputStringToUtc, toApiTimeRange, utcStringToZonedDate, utcToLocalInputString, zonedDateToUtcString };
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./cn-
|
|
2
|
-
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, s as DialogOverlay$1, t as Dialog$1, u as DialogTrigger } from "./dialog-
|
|
3
|
-
import { t as CloseIcon } from "./close.icon-
|
|
1
|
+
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
|
+
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, s as DialogOverlay$1, t as Dialog$1, u as DialogTrigger } from "./dialog-DASRaFxD.mjs";
|
|
3
|
+
import { t as CloseIcon } from "./close.icon-HCfS4Y-N.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
7
|
-
|
|
8
7
|
//#region src/components/base/dialog/dialog.tsx
|
|
9
8
|
function Dialog({ children, ...props }) {
|
|
10
9
|
return /* @__PURE__ */ jsx(Dialog$1, {
|
|
@@ -68,6 +67,5 @@ Dialog.Header = Header;
|
|
|
68
67
|
Dialog.Body = Body;
|
|
69
68
|
Dialog.Footer = Footer;
|
|
70
69
|
Dialog.Overlay = DialogOverlay;
|
|
71
|
-
|
|
72
70
|
//#endregion
|
|
73
|
-
export { Dialog as t };
|
|
71
|
+
export { Dialog as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-C8KwMfT_.mjs";
|
|
2
2
|
import { XIcon } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
6
|
-
|
|
7
6
|
//#region ../shadcn/ui/dialog.tsx
|
|
8
7
|
const Dialog = ({ ...props }) => {
|
|
9
8
|
return /* @__PURE__ */ jsx(DialogPrimitive.Root, {
|
|
@@ -81,6 +80,5 @@ const DialogDescription = ({ className, ...props }) => {
|
|
|
81
80
|
...props
|
|
82
81
|
});
|
|
83
82
|
};
|
|
84
|
-
|
|
85
83
|
//#endregion
|
|
86
|
-
export { DialogFooter as a, DialogPortal as c, DialogDescription as i, DialogTitle as l, DialogClose as n, DialogHeader as o, DialogContent as r, DialogOverlay as s, Dialog as t, DialogTrigger as u };
|
|
84
|
+
export { DialogFooter as a, DialogPortal as c, DialogDescription as i, DialogTitle as l, DialogClose as n, DialogHeader as o, DialogContent as r, DialogOverlay as s, Dialog as t, DialogTrigger as u };
|
package/dist/dropdown/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-
|
|
2
|
-
|
|
3
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
1
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-DZiAt-jS.mjs";
|
|
2
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./cn-
|
|
2
|
-
import { t as Icon } from "./icon-wrapper-
|
|
1
|
+
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
|
+
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
3
3
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
7
|
-
|
|
8
7
|
//#region src/components/features/dropdown/dropdown.tsx
|
|
9
8
|
/**
|
|
10
9
|
* Datum Dropdown Menu Component
|
|
@@ -107,6 +106,5 @@ function DropdownMenuSubContent({ className, ...props }) {
|
|
|
107
106
|
...props
|
|
108
107
|
});
|
|
109
108
|
}
|
|
110
|
-
|
|
111
109
|
//#endregion
|
|
112
|
-
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu as t, DropdownMenuSeparator as u };
|
|
110
|
+
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu as t, DropdownMenuSeparator as u };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-C8KwMfT_.mjs";
|
|
2
2
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
6
|
-
|
|
7
6
|
//#region ../shadcn/ui/dropdown-menu.tsx
|
|
8
7
|
/**
|
|
9
8
|
* Vanilla shadcn/ui DropdownMenu Component
|
|
@@ -12,9 +11,9 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
12
11
|
*/
|
|
13
12
|
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
14
13
|
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
DropdownMenuPrimitive.Group;
|
|
15
|
+
DropdownMenuPrimitive.Portal;
|
|
16
|
+
DropdownMenuPrimitive.Sub;
|
|
18
17
|
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
19
18
|
const DropdownMenuSubTrigger = React$1.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, {
|
|
20
19
|
ref,
|
|
@@ -82,6 +81,5 @@ const DropdownMenuShortcut = ({ className, ...props }) => {
|
|
|
82
81
|
});
|
|
83
82
|
};
|
|
84
83
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
85
|
-
|
|
86
84
|
//#endregion
|
|
87
|
-
export { DropdownMenuLabel as a, DropdownMenuSeparator as c, DropdownMenuItem as i, DropdownMenuTrigger as l, DropdownMenuCheckboxItem as n, DropdownMenuRadioGroup as o, DropdownMenuContent as r, DropdownMenuRadioItem as s, DropdownMenu as t };
|
|
85
|
+
export { DropdownMenuLabel as a, DropdownMenuSeparator as c, DropdownMenuItem as i, DropdownMenuTrigger as l, DropdownMenuCheckboxItem as n, DropdownMenuRadioGroup as o, DropdownMenuContent as r, DropdownMenuRadioItem as s, DropdownMenu as t };
|
package/dist/dropzone/index.mjs
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
|
|
3
|
-
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "../dropzone-DR6O9OdU.mjs";
|
|
4
|
-
|
|
5
|
-
export { Dropzone, DropzoneContent, DropzoneEmptyState, FileInputButton };
|
|
1
|
+
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "../dropzone-ogtpQ4fy.mjs";
|
|
2
|
+
export { Dropzone, DropzoneContent, DropzoneEmptyState, FileInputButton };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { t as cn } from "./cn-
|
|
2
|
-
import { t as Button } from "./button-
|
|
3
|
-
import { t as Button$1 } from "./button-
|
|
4
|
-
import { t as Icon } from "./icon-wrapper-
|
|
1
|
+
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
|
+
import { t as Button } from "./button-BllvE9Lm.mjs";
|
|
3
|
+
import { t as Button$1 } from "./button-D3RrsMfQ.mjs";
|
|
4
|
+
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
5
5
|
import { UploadIcon } from "lucide-react";
|
|
6
6
|
import { createContext, use, useRef } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useDropzone } from "react-dropzone";
|
|
9
|
-
|
|
10
9
|
//#region src/components/features/file-input-button/file-input-button.tsx
|
|
11
10
|
/**
|
|
12
11
|
* A simple button that triggers a file input dialog.
|
|
@@ -85,7 +84,6 @@ function FileInputButton({ accept, maxSize, minSize, multiple = false, onFileSel
|
|
|
85
84
|
children
|
|
86
85
|
})] });
|
|
87
86
|
}
|
|
88
|
-
|
|
89
87
|
//#endregion
|
|
90
88
|
//#region src/components/features/dropzone/dropzone.tsx
|
|
91
89
|
function renderBytes(bytes) {
|
|
@@ -216,6 +214,5 @@ function DropzoneEmptyState({ children, className, icon, label, description, sho
|
|
|
216
214
|
]
|
|
217
215
|
});
|
|
218
216
|
}
|
|
219
|
-
|
|
220
217
|
//#endregion
|
|
221
|
-
export { FileInputButton as i, DropzoneContent as n, DropzoneEmptyState as r, Dropzone as t };
|
|
218
|
+
export { FileInputButton as i, DropzoneContent as n, DropzoneEmptyState as r, Dropzone as t };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as EmptyContent } from "../empty-content-
|
|
2
|
-
|
|
3
|
-
export { EmptyContent };
|
|
1
|
+
import { t as EmptyContent } from "../empty-content-C63GPJ5d.mjs";
|
|
2
|
+
export { EmptyContent };
|