@datum-cloud/datum-ui 0.2.1 → 0.3.0-alpha.ffa8392
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/dist/autocomplete/index.mjs +4 -4
- package/dist/{autocomplete-DZtI97HP.mjs → autocomplete-e33EmvBu.mjs} +3 -3
- package/dist/avatar-stack/index.mjs +2 -2
- package/dist/{avatar-stack-JCfBlPB9.mjs → avatar-stack-Ci0cnjxv.mjs} +1 -1
- package/dist/calendar-date-picker-BBAg78Lg.mjs +665 -0
- package/dist/checkbox/index.mjs +2 -1
- package/dist/checkbox-DB5_3E_l.mjs +22 -0
- package/dist/checkbox-DMC1Mhaw.mjs +17 -0
- package/dist/collapsible/index.mjs +1 -1
- package/dist/command/index.mjs +2 -2
- package/dist/{command-s0Yv3abE.mjs → command-DQlO6uTL.mjs} +1 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +2 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/data-table/adapters/nuqs-adapter.d.ts +46 -0
- package/dist/components/features/data-table/adapters/nuqs-adapter.d.ts.map +1 -0
- package/dist/components/features/data-table/columns/selection-column.d.ts +6 -0
- package/dist/components/features/data-table/columns/selection-column.d.ts.map +1 -0
- package/dist/components/features/data-table/components/bulk-actions.d.ts +3 -0
- package/dist/components/features/data-table/components/bulk-actions.d.ts.map +1 -0
- package/dist/components/features/data-table/components/column-header.d.ts +3 -0
- package/dist/components/features/data-table/components/column-header.d.ts.map +1 -0
- package/dist/components/features/data-table/components/content.d.ts +3 -0
- package/dist/components/features/data-table/components/content.d.ts.map +1 -0
- package/dist/components/features/data-table/components/inline-content.d.ts +3 -0
- package/dist/components/features/data-table/components/inline-content.d.ts.map +1 -0
- package/dist/components/features/data-table/components/loading.d.ts +3 -0
- package/dist/components/features/data-table/components/loading.d.ts.map +1 -0
- package/dist/components/features/data-table/components/pagination.d.ts +3 -0
- package/dist/components/features/data-table/components/pagination.d.ts.map +1 -0
- package/dist/components/features/data-table/components/row-actions.d.ts +3 -0
- package/dist/components/features/data-table/components/row-actions.d.ts.map +1 -0
- package/dist/components/features/data-table/components/search.d.ts +3 -0
- package/dist/components/features/data-table/components/search.d.ts.map +1 -0
- package/dist/components/features/data-table/constants.d.ts +5 -0
- package/dist/components/features/data-table/constants.d.ts.map +1 -0
- package/dist/components/features/data-table/core/client-provider.d.ts +11 -0
- package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -0
- package/dist/components/features/data-table/core/data-table-context.d.ts +10 -0
- package/dist/components/features/data-table/core/data-table-context.d.ts.map +1 -0
- package/dist/components/features/data-table/core/filter-engine.d.ts +16 -0
- package/dist/components/features/data-table/core/filter-engine.d.ts.map +1 -0
- package/dist/components/features/data-table/core/server-provider.d.ts +11 -0
- package/dist/components/features/data-table/core/server-provider.d.ts.map +1 -0
- package/dist/components/features/data-table/core/store.d.ts +3 -0
- package/dist/components/features/data-table/core/store.d.ts.map +1 -0
- package/dist/components/features/data-table/data-table.d.ts +29 -0
- package/dist/components/features/data-table/data-table.d.ts.map +1 -0
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts +3 -0
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts.map +1 -0
- package/dist/components/features/data-table/filters/date-picker-filter.d.ts +3 -0
- package/dist/components/features/data-table/filters/date-picker-filter.d.ts.map +1 -0
- package/dist/components/features/data-table/filters/select-filter.d.ts +3 -0
- package/dist/components/features/data-table/filters/select-filter.d.ts.map +1 -0
- package/dist/components/features/data-table/hooks/index.d.ts +4 -0
- package/dist/components/features/data-table/hooks/index.d.ts.map +1 -0
- package/dist/components/features/data-table/hooks/use-data-table-client.d.ts +20 -0
- package/dist/components/features/data-table/hooks/use-data-table-client.d.ts.map +1 -0
- package/dist/components/features/data-table/hooks/use-data-table-context.d.ts +2 -0
- package/dist/components/features/data-table/hooks/use-data-table-context.d.ts.map +1 -0
- package/dist/components/features/data-table/hooks/use-data-table-server.d.ts +30 -0
- package/dist/components/features/data-table/hooks/use-data-table-server.d.ts.map +1 -0
- package/dist/components/features/data-table/hooks/use-selectors.d.ts +81 -0
- package/dist/components/features/data-table/hooks/use-selectors.d.ts.map +1 -0
- package/dist/components/features/data-table/index.d.ts +11 -0
- package/dist/components/features/data-table/index.d.ts.map +1 -0
- package/dist/components/features/data-table/types.d.ts +305 -0
- package/dist/components/features/data-table/types.d.ts.map +1 -0
- package/dist/data-table/index.mjs +1477 -0
- package/dist/date-picker/index.mjs +5 -4
- package/dist/dialog/index.mjs +2 -2
- package/dist/{dialog-bnMMf9GD.mjs → dialog-B2EZJW-q.mjs} +2 -2
- package/dist/dropdown/index.mjs +1 -1
- package/dist/dropdown-menu-Xahj42Gr.mjs +87 -0
- package/dist/dropzone/index.mjs +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/index.mjs +12 -12
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/hover-card/index.mjs +1 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.mjs +52 -48
- package/dist/input/index.mjs +2 -2
- package/dist/{input-fzXBheCN.mjs → input-D241oNEm.mjs} +1 -1
- package/dist/input-group/index.mjs +3 -3
- package/dist/{input-group-CPaFSTEV.mjs → input-group-uobp64zr.mjs} +2 -2
- package/dist/input-number/index.mjs +2 -2
- package/dist/{input-number-9o62JHRl.mjs → input-number-CEMgBk8-.mjs} +1 -1
- package/dist/input-with-addons/index.mjs +1 -1
- package/dist/label/index.mjs +2 -1
- package/dist/label-ClzLBWRT.mjs +16 -0
- package/dist/{label-_ste_Re3.mjs → label-byipFGok.mjs} +1 -12
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/map/index.mjs +8 -7
- package/dist/{map-WL6jhkSM.mjs → map-DupFPkJT.mjs} +6 -86
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-Ch1f6Mh3.mjs → more-actions-D6OyqZQS.mjs} +2 -2
- package/dist/page-title/index.mjs +1 -1
- package/dist/popover/index.mjs +1 -1
- package/dist/radio-group/index.mjs +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/{select-DVlEzD2W.mjs → select-BznmyqBr.mjs} +1 -1
- package/dist/sheet/index.mjs +2 -2
- package/dist/{sheet-BKiCwtNO.mjs → sheet-Bmayi68h.mjs} +2 -2
- package/dist/sidebar/index.mjs +6 -6
- package/dist/{sidebar-DfqezV8t.mjs → sidebar-D2zE7rPy.mjs} +5 -5
- package/dist/skeleton/index.mjs +1 -1
- package/dist/spinner/index.mjs +1 -1
- package/dist/stepper/index.mjs +1 -1
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.mjs +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/tag-input/index.mjs +2 -2
- package/dist/{tag-input-Di7SDNbK.mjs → tag-input-BI8IRBDH.mjs} +1 -1
- package/dist/task-queue/index.mjs +4 -4
- package/dist/{task-queue-dropdown-DW72ikDH.mjs → task-queue-dropdown-D6k067_W.mjs} +4 -4
- package/dist/textarea/index.mjs +2 -2
- package/dist/{textarea-CxE3YbC7.mjs → textarea-BZ85VFsJ.mjs} +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/{to-api-format-C2xjQUcI.mjs → to-api-format-CXQ7knV4.mjs} +7 -662
- package/dist/toast/index.mjs +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/typography/index.mjs +1 -1
- package/dist/{use-copy-to-clipboard-ki-WoTml.mjs → use-copy-to-clipboard-CC2hhyYI.mjs} +1 -1
- package/dist/{use-stepper-BaToCYMs.mjs → use-stepper-CU75TdjZ.mjs} +14 -14
- package/dist/{use-toast-mdn_CqRY.mjs → use-toast-BLBGnOC3.mjs} +1 -1
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +15 -1
- package/dist/checkbox-LG1OKTpG.mjs +0 -34
- /package/dist/{close.icon-CMNMoXM_.mjs → close.icon-D2r5q3bj.mjs} +0 -0
- /package/dist/{col-lrLMZaTJ.mjs → col-Cg_2sTDA.mjs} +0 -0
- /package/dist/{collapsible-Bt9UYfv3.mjs → collapsible-Dw71o2um.mjs} +0 -0
- /package/dist/{dialog-DXBaT9gA.mjs → dialog-Bm4trnic.mjs} +0 -0
- /package/dist/{dropdown-DtSa_lqc.mjs → dropdown-DLZXinlT.mjs} +0 -0
- /package/dist/{dropzone-BkOnwrS4.mjs → dropzone-CGyjGnER.mjs} +0 -0
- /package/dist/{empty-content-BM9rzI13.mjs → empty-content-ByvwjHUs.mjs} +0 -0
- /package/dist/{hover-card-CUPfFUqE.mjs → hover-card-BNrHtWy6.mjs} +0 -0
- /package/dist/{input-DuyjEKEW.mjs → input-C-ZmsHkk.mjs} +0 -0
- /package/dist/{input-with-addons-BQn7KCTU.mjs → input-with-addons-DzuyGa6G.mjs} +0 -0
- /package/dist/{loader-overlay-DUaQSZQP.mjs → loader-overlay-CbxcjyHV.mjs} +0 -0
- /package/dist/{map-leaflet-imports-C4JYls8q.mjs → map-leaflet-imports-CgEyVRnp.mjs} +0 -0
- /package/dist/{page-title-BJuo81rT.mjs → page-title-CrYQ091u.mjs} +0 -0
- /package/dist/{popover-SQlKSz6L.mjs → popover-CYzXdp9q.mjs} +0 -0
- /package/dist/{radio-group-Oshv0b-U.mjs → radio-group-WZCIDQCH.mjs} +0 -0
- /package/dist/{sheet-CtnP6gTD.mjs → sheet-b9V9soz8.mjs} +0 -0
- /package/dist/{skeleton-vzbxA-DQ.mjs → skeleton-D3qW_KvG.mjs} +0 -0
- /package/dist/{spinner-BE7k2bAD.mjs → spinner-CKTGKv5n.mjs} +0 -0
- /package/dist/{stepper-SWB-u_nM.mjs → stepper-B07hPGG7.mjs} +0 -0
- /package/dist/{switch-Calk7Gyw.mjs → switch-CujyyOi6.mjs} +0 -0
- /package/dist/{table-CsXBcQLI.mjs → table-fZEvpdD-.mjs} +0 -0
- /package/dist/{tabs-D8n-dqnw.mjs → tabs-B7cW59gB.mjs} +0 -0
- /package/dist/{textarea-QYRcDEpK.mjs → textarea-BSkDKiej.mjs} +0 -0
- /package/dist/{theme.provider-CzCxEFFh.mjs → theme.provider-BG3cS9xe.mjs} +0 -0
- /package/dist/{tooltip-Dd3ActSS.mjs → tooltip-CbCWKEzu.mjs} +0 -0
- /package/dist/{typography-UA7ZZvgJ.mjs → typography-DdrxIJMd.mjs} +0 -0
- /package/dist/{use-debounce-B6wPrZV8.mjs → use-debounce-Dc95PFRX.mjs} +0 -0
- /package/dist/{visuallyhidden-aaTUk4Yo.mjs → visuallyhidden-CfBnXfvh.mjs} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "../typography-
|
|
1
|
+
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "../typography-DdrxIJMd.mjs";
|
|
2
2
|
|
|
3
3
|
export { Blockquote, Code, Link, List, ListItem, Paragraph, Text, Title, paragraphVariants, textVariants, titleVariants };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as cn } from "./cn-DWCc1QRE.mjs";
|
|
2
2
|
import { t as Button } from "./button-C1wRfGtT.mjs";
|
|
3
3
|
import { t as Icon } from "./icon-wrapper-9ticVbRL.mjs";
|
|
4
|
-
import { t as Checkbox } from "./checkbox-
|
|
5
|
-
import { t as Dialog } from "./dialog-
|
|
6
|
-
import { t as Input } from "./input-
|
|
7
|
-
import { t as Label } from "./label-
|
|
8
|
-
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-
|
|
9
|
-
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-
|
|
10
|
-
import { t as Switch } from "./switch-
|
|
11
|
-
import { t as Textarea } from "./textarea-
|
|
12
|
-
import { t as Tooltip } from "./tooltip-
|
|
13
|
-
import { t as Autocomplete } from "./autocomplete-
|
|
14
|
-
import { r as toast } from "./use-toast-
|
|
15
|
-
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-
|
|
16
|
-
import { t as defineStepper } from "./stepper-
|
|
17
|
-
import { t as InputWithAddons } from "./input-with-addons-
|
|
4
|
+
import { t as Checkbox } from "./checkbox-DMC1Mhaw.mjs";
|
|
5
|
+
import { t as Dialog } from "./dialog-B2EZJW-q.mjs";
|
|
6
|
+
import { t as Input } from "./input-D241oNEm.mjs";
|
|
7
|
+
import { t as Label } from "./label-byipFGok.mjs";
|
|
8
|
+
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-WZCIDQCH.mjs";
|
|
9
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-BznmyqBr.mjs";
|
|
10
|
+
import { t as Switch } from "./switch-CujyyOi6.mjs";
|
|
11
|
+
import { t as Textarea } from "./textarea-BZ85VFsJ.mjs";
|
|
12
|
+
import { t as Tooltip } from "./tooltip-CbCWKEzu.mjs";
|
|
13
|
+
import { t as Autocomplete } from "./autocomplete-e33EmvBu.mjs";
|
|
14
|
+
import { r as toast } from "./use-toast-BLBGnOC3.mjs";
|
|
15
|
+
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-CC2hhyYI.mjs";
|
|
16
|
+
import { t as defineStepper } from "./stepper-B07hPGG7.mjs";
|
|
17
|
+
import { t as InputWithAddons } from "./input-with-addons-DzuyGa6G.mjs";
|
|
18
18
|
import { Form } from "./form/index.mjs";
|
|
19
19
|
import { CheckIcon, CircleHelp, CopyIcon } from "lucide-react";
|
|
20
20
|
import * as React$1 from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cn } from "./cn-DWCc1QRE.mjs";
|
|
2
|
-
import { t as CloseIcon } from "./close.icon-
|
|
2
|
+
import { t as CloseIcon } from "./close.icon-D2r5q3bj.mjs";
|
|
3
3
|
import { createElement, useEffect } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Toaster, toast } from "sonner";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datum-cloud/datum-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0-alpha.ffa8392",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/datum-cloud/datum-ui"
|
|
@@ -235,6 +235,10 @@
|
|
|
235
235
|
"./toast": {
|
|
236
236
|
"types": "./dist/components/features/toast/index.d.ts",
|
|
237
237
|
"default": "./dist/toast/index.mjs"
|
|
238
|
+
},
|
|
239
|
+
"./data-table": {
|
|
240
|
+
"types": "./dist/components/features/data-table/index.d.ts",
|
|
241
|
+
"default": "./dist/data-table/index.mjs"
|
|
238
242
|
}
|
|
239
243
|
},
|
|
240
244
|
"main": "./dist/index.mjs",
|
|
@@ -265,6 +269,7 @@
|
|
|
265
269
|
"@radix-ui/react-tooltip": ">=1",
|
|
266
270
|
"@radix-ui/react-visually-hidden": ">=1",
|
|
267
271
|
"@stepperize/react": ">=4",
|
|
272
|
+
"@tanstack/react-table": ">=8",
|
|
268
273
|
"@tanstack/react-virtual": ">=3",
|
|
269
274
|
"cmdk": ">=1",
|
|
270
275
|
"date-fns": ">=4",
|
|
@@ -275,6 +280,7 @@
|
|
|
275
280
|
"leaflet.markercluster": ">=1.5",
|
|
276
281
|
"motion": ">=11",
|
|
277
282
|
"nprogress": ">=0.2",
|
|
283
|
+
"nuqs": ">=2",
|
|
278
284
|
"react": ">=19",
|
|
279
285
|
"react-day-picker": ">=9",
|
|
280
286
|
"react-dom": ">=19",
|
|
@@ -344,6 +350,9 @@
|
|
|
344
350
|
"@stepperize/react": {
|
|
345
351
|
"optional": true
|
|
346
352
|
},
|
|
353
|
+
"@tanstack/react-table": {
|
|
354
|
+
"optional": true
|
|
355
|
+
},
|
|
347
356
|
"@tanstack/react-virtual": {
|
|
348
357
|
"optional": true
|
|
349
358
|
},
|
|
@@ -374,6 +383,9 @@
|
|
|
374
383
|
"nprogress": {
|
|
375
384
|
"optional": true
|
|
376
385
|
},
|
|
386
|
+
"nuqs": {
|
|
387
|
+
"optional": true
|
|
388
|
+
},
|
|
377
389
|
"react-day-picker": {
|
|
378
390
|
"optional": true
|
|
379
391
|
},
|
|
@@ -414,6 +426,7 @@
|
|
|
414
426
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
415
427
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
416
428
|
"@stepperize/react": "^6.1.0",
|
|
429
|
+
"@tanstack/react-table": "^8.21.3",
|
|
417
430
|
"@tanstack/react-virtual": "^3.13.19",
|
|
418
431
|
"@testing-library/jest-dom": "^6",
|
|
419
432
|
"@testing-library/react": "^16",
|
|
@@ -435,6 +448,7 @@
|
|
|
435
448
|
"leaflet.markercluster": "^1.5.3",
|
|
436
449
|
"motion": "^12.34.4",
|
|
437
450
|
"nprogress": "^0.2.0",
|
|
451
|
+
"nuqs": "^2.8.9",
|
|
438
452
|
"react": "^19",
|
|
439
453
|
"react-day-picker": "^9.14.0",
|
|
440
454
|
"react-dom": "^19",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./cn-DWCc1QRE.mjs";
|
|
2
|
-
import { t as cn$1 } from "./utils-Bfgoe-Gm.mjs";
|
|
3
|
-
import { CheckIcon } from "lucide-react";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
7
|
-
|
|
8
|
-
//#region ../shadcn/ui/checkbox.tsx
|
|
9
|
-
function Checkbox$1({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
11
|
-
"data-slot": "checkbox",
|
|
12
|
-
className: cn$1("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
13
|
-
...props,
|
|
14
|
-
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
15
|
-
"data-slot": "checkbox-indicator",
|
|
16
|
-
className: "flex items-center justify-center text-current transition-none",
|
|
17
|
-
children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/components/base/checkbox/checkbox.tsx
|
|
24
|
-
function Checkbox({ ref, className, ...props }) {
|
|
25
|
-
return /* @__PURE__ */ jsx(Checkbox$1, {
|
|
26
|
-
ref,
|
|
27
|
-
className: cn(className),
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
Checkbox.displayName = "Checkbox";
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Checkbox as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|