@datum-cloud/datum-ui 1.6.0 → 1.7.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/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation--mry98XV.mjs → app-navigation-CNig4Maj.mjs} +32 -31
- package/dist/assistant/index.mjs +18 -13
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-G24AgvxU.mjs → autocomplete-DM6JYV4W.mjs} +1 -1
- package/dist/autosearch/index.mjs +4 -3
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-D1-BA7hA.mjs → avatar-stack-BZK6zUJr.mjs} +1 -1
- package/dist/{calendar-date-picker-C52Y05ZN.mjs → calendar-date-picker-AzvSqjeS.mjs} +6 -5
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DeCrbcpY.mjs → chart-EgzTS28l.mjs} +6 -3
- package/dist/code-editor/index.mjs +1 -1
- package/dist/data-table/index.mjs +1 -1
- package/dist/{data-table-CfeovSJV.mjs → data-table-mByk373T.mjs} +11 -10
- package/dist/date-picker/index.mjs +3 -3
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/{date-time-picker-BbtA6JJJ.mjs → date-time-picker-D3-DeNo8.mjs} +1 -1
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-C_vA4q0u.mjs → dropzone-DrWVd7OI.mjs} +5 -3
- package/dist/empty-content/index.mjs +1 -1
- package/dist/{empty-content-BpS0PONb.mjs → empty-content-DvaelFpJ.mjs} +3 -2
- package/dist/form/adapters/rhf/index.mjs +6 -3
- package/dist/form/index.mjs +1 -1
- package/dist/form/stepper/index.mjs +23 -19
- package/dist/{form-2pTdgtYr.mjs → form-BUUNQfC9.mjs} +43 -34
- package/dist/grouped-table/index.mjs +1 -1
- package/dist/{grouped-table-CPF8Jijv.mjs → grouped-table-b2jDEPR6.mjs} +1 -1
- package/dist/index.mjs +26 -26
- package/dist/{layers-DJYz6fyE.mjs → layers-DWYdrGmC.mjs} +7 -3
- package/dist/logo/themed/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/more-actions/index.mjs +1 -1
- package/dist/{more-actions-G9hs0rpJ.mjs → more-actions-Bx443Ccx.mjs} +13 -12
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DIWTdi0i.mjs → multi-select-PHaMEbY-.mjs} +1 -1
- package/dist/picker/index.mjs +1 -1
- package/dist/{picker-CRUSdzpo.mjs → picker-b5-x-EHs.mjs} +27 -22
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-DRIwcleW.mjs → rich-text-editor-CGuSn8xi.mjs} +1 -1
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-Df6Po0K8.mjs → sidebar-BRUNOqXi.mjs} +37 -36
- package/dist/stepper/index.mjs +1 -1
- package/dist/{stepper-DJkYcilu.mjs → stepper-dNvkipop.mjs} +2 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/{tag-input-CSav22U5.mjs → tag-input-Ctxtcpwy.mjs} +37 -33
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-DfdGiyfA.mjs → task-queue-dropdown-pqFd4rSf.mjs} +76 -75
- package/dist/theme/index.mjs +1 -1
- package/dist/{themes-BK5atywZ.mjs → themes-Ba2bajuF.mjs} +19 -17
- package/dist/time-picker/index.mjs +1 -1
- package/dist/{time-picker-Bgt6R1fU.mjs → time-picker-B_fN5vhO.mjs} +1 -1
- package/dist/{to-api-format-CgKtSuWO.mjs → to-api-format-43Boq7OR.mjs} +12 -8
- package/dist/tooltip/index.mjs +1 -1
- package/dist/{tooltip-BhatUaar.mjs → tooltip-C_SL1imw.mjs} +27 -23
- package/dist/{types-DrN0rei5.mjs → types-agDpVXBG.mjs} +5 -3
- package/dist/{use-option-picker-CV-9CyBV.mjs → use-option-picker-s2bUYwXC.mjs} +3 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/{utils-U06Eu2KT.mjs → utils-CA4QEIJ8.mjs} +6 -2
- package/package.json +52 -52
|
@@ -16,7 +16,9 @@ import { endOfDay, startOfDay } from "date-fns";
|
|
|
16
16
|
* @returns Unix timestamp in seconds (UTC).
|
|
17
17
|
*/
|
|
18
18
|
function toUTCTimestampStartOfDay(date, timezone) {
|
|
19
|
-
const
|
|
19
|
+
const zonedDate = toZonedTime(date, timezone);
|
|
20
|
+
const startOfDayInTz = startOfDay(zonedDate);
|
|
21
|
+
const utcDate = fromZonedTime(startOfDayInTz, timezone);
|
|
20
22
|
return Math.floor(utcDate.getTime() / 1e3);
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
@@ -28,7 +30,9 @@ function toUTCTimestampStartOfDay(date, timezone) {
|
|
|
28
30
|
* @returns Unix timestamp in seconds (UTC).
|
|
29
31
|
*/
|
|
30
32
|
function toUTCTimestampEndOfDay(date, timezone) {
|
|
31
|
-
const
|
|
33
|
+
const zonedDate = toZonedTime(date, timezone);
|
|
34
|
+
const endOfDayInTz = endOfDay(zonedDate);
|
|
35
|
+
const utcDate = fromZonedTime(endOfDayInTz, timezone);
|
|
32
36
|
return Math.floor(utcDate.getTime() / 1e3);
|
|
33
37
|
}
|
|
34
38
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datum-cloud/datum-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/datum-cloud/datum-ui"
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"ai": ">=7 <8",
|
|
430
430
|
"date-fns": ">=4.1.0 <5",
|
|
431
431
|
"date-fns-tz": ">=3 <4",
|
|
432
|
-
"js-yaml": ">=5 <6",
|
|
432
|
+
"js-yaml": ">=5.2.2 <6",
|
|
433
433
|
"leaflet": ">=1.9 <2",
|
|
434
434
|
"leaflet-draw": ">=1 <2",
|
|
435
435
|
"leaflet.fullscreen": ">=5 <6",
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"react": ">=19.2.7 <20",
|
|
443
443
|
"react-day-picker": ">=10 <11",
|
|
444
444
|
"react-dom": ">=19.2.7 <20",
|
|
445
|
-
"react-dropzone": ">=15 <
|
|
445
|
+
"react-dropzone": ">=15 <21",
|
|
446
446
|
"react-hook-form": ">=7.80.0 <8",
|
|
447
447
|
"react-leaflet": ">=5 <6",
|
|
448
448
|
"react-leaflet-markercluster": ">=5.0.0-rc.0 <6",
|
|
@@ -572,87 +572,87 @@
|
|
|
572
572
|
}
|
|
573
573
|
},
|
|
574
574
|
"dependencies": {
|
|
575
|
-
"@radix-ui/react-avatar": "^1.2.
|
|
576
|
-
"@radix-ui/react-checkbox": "^1.3.
|
|
577
|
-
"@radix-ui/react-collapsible": "^1.1.
|
|
578
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
579
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
580
|
-
"@radix-ui/react-hover-card": "^1.1.
|
|
581
|
-
"@radix-ui/react-label": "^2.1.
|
|
582
|
-
"@radix-ui/react-popover": "^1.1.
|
|
583
|
-
"@radix-ui/react-radio-group": "^1.4.
|
|
584
|
-
"@radix-ui/react-select": "^2.3.
|
|
585
|
-
"@radix-ui/react-separator": "^1.1.
|
|
586
|
-
"@radix-ui/react-slot": "^1.3.
|
|
587
|
-
"@radix-ui/react-switch": "^1.3.
|
|
588
|
-
"@radix-ui/react-tabs": "^1.1.
|
|
589
|
-
"@radix-ui/react-tooltip": "^1.2.
|
|
590
|
-
"@radix-ui/react-visually-hidden": "^1.2.
|
|
575
|
+
"@radix-ui/react-avatar": "^1.2.6",
|
|
576
|
+
"@radix-ui/react-checkbox": "^1.3.11",
|
|
577
|
+
"@radix-ui/react-collapsible": "^1.1.20",
|
|
578
|
+
"@radix-ui/react-dialog": "^1.1.23",
|
|
579
|
+
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
580
|
+
"@radix-ui/react-hover-card": "^1.1.23",
|
|
581
|
+
"@radix-ui/react-label": "^2.1.15",
|
|
582
|
+
"@radix-ui/react-popover": "^1.1.23",
|
|
583
|
+
"@radix-ui/react-radio-group": "^1.4.7",
|
|
584
|
+
"@radix-ui/react-select": "^2.3.7",
|
|
585
|
+
"@radix-ui/react-separator": "^1.1.15",
|
|
586
|
+
"@radix-ui/react-slot": "^1.3.3",
|
|
587
|
+
"@radix-ui/react-switch": "^1.3.7",
|
|
588
|
+
"@radix-ui/react-tabs": "^1.1.21",
|
|
589
|
+
"@radix-ui/react-tooltip": "^1.2.16",
|
|
590
|
+
"@radix-ui/react-visually-hidden": "^1.2.11",
|
|
591
591
|
"class-variance-authority": "^0.7.1",
|
|
592
592
|
"clsx": "^2.1.1",
|
|
593
593
|
"cmdk": "^1.1.1",
|
|
594
|
-
"isomorphic-dompurify": "^3.
|
|
594
|
+
"isomorphic-dompurify": "^3.21.0",
|
|
595
595
|
"tailwind-merge": "^3.6.0",
|
|
596
596
|
"tw-animate-css": "^1.4.0"
|
|
597
597
|
},
|
|
598
598
|
"devDependencies": {
|
|
599
|
-
"@conform-to/react": "^1.
|
|
600
|
-
"@conform-to/zod": "^1.
|
|
599
|
+
"@conform-to/react": "^1.20.2",
|
|
600
|
+
"@conform-to/zod": "^1.20.2",
|
|
601
601
|
"@dnd-kit/core": "^6.3.1",
|
|
602
602
|
"@dnd-kit/sortable": "^10.0.0",
|
|
603
|
-
"@hookform/resolvers": "^5.
|
|
603
|
+
"@hookform/resolvers": "^5.7.1",
|
|
604
604
|
"@monaco-editor/react": "^4.7.0",
|
|
605
605
|
"@stepperize/react": "^7.0.0",
|
|
606
606
|
"@streamdown/code": "^1.1.1",
|
|
607
607
|
"@tanstack/react-table": "^8.21.3",
|
|
608
|
-
"@tanstack/react-virtual": "^3.14.
|
|
609
|
-
"@testing-library/jest-dom": "^
|
|
608
|
+
"@tanstack/react-virtual": "^3.14.9",
|
|
609
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
610
610
|
"@testing-library/react": "^16.3.2",
|
|
611
611
|
"@testing-library/user-event": "^14.6.1",
|
|
612
|
-
"@tiptap/extension-character-count": "^3.
|
|
613
|
-
"@tiptap/extension-link": "^3.
|
|
614
|
-
"@tiptap/extension-placeholder": "^3.
|
|
615
|
-
"@tiptap/extension-underline": "^3.
|
|
616
|
-
"@tiptap/react": "^3.
|
|
617
|
-
"@tiptap/starter-kit": "^3.
|
|
618
|
-
"@types/leaflet": "^1.9.
|
|
612
|
+
"@tiptap/extension-character-count": "^3.29.2",
|
|
613
|
+
"@tiptap/extension-link": "^3.29.2",
|
|
614
|
+
"@tiptap/extension-placeholder": "^3.29.2",
|
|
615
|
+
"@tiptap/extension-underline": "^3.29.2",
|
|
616
|
+
"@tiptap/react": "^3.29.2",
|
|
617
|
+
"@tiptap/starter-kit": "^3.29.2",
|
|
618
|
+
"@types/leaflet": "^1.9.22",
|
|
619
619
|
"@types/leaflet-draw": "^1.0.13",
|
|
620
620
|
"@types/leaflet.fullscreen": "^5.2.0",
|
|
621
621
|
"@types/leaflet.markercluster": "^1.5.6",
|
|
622
622
|
"@types/nprogress": "^0.2.3",
|
|
623
|
-
"@types/react": "^19.2.
|
|
624
|
-
"@types/react-dom": "^19.2.
|
|
625
|
-
"@vitest/coverage-v8": "^4.1.
|
|
626
|
-
"ai": "^7.0.
|
|
623
|
+
"@types/react": "^19.2.18",
|
|
624
|
+
"@types/react-dom": "^19.2.4",
|
|
625
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
626
|
+
"ai": "^7.0.48",
|
|
627
627
|
"date-fns": "^4.4.0",
|
|
628
628
|
"date-fns-tz": "^3.2.0",
|
|
629
|
-
"eslint": "^10.
|
|
630
|
-
"js-yaml": "^5.
|
|
631
|
-
"jsdom": "^
|
|
629
|
+
"eslint": "^10.8.0",
|
|
630
|
+
"js-yaml": "^5.2.3",
|
|
631
|
+
"jsdom": "^30.0.1",
|
|
632
632
|
"leaflet": "^1.9.4",
|
|
633
633
|
"leaflet-draw": "^1.0.4",
|
|
634
|
-
"leaflet.fullscreen": "^5.3.
|
|
634
|
+
"leaflet.fullscreen": "^5.3.3",
|
|
635
635
|
"leaflet.markercluster": "^1.5.3",
|
|
636
|
-
"lucide-react": "^1.
|
|
637
|
-
"monaco-editor": "^0.
|
|
638
|
-
"motion": "^12.
|
|
636
|
+
"lucide-react": "^1.28.0",
|
|
637
|
+
"monaco-editor": "^0.56.0",
|
|
638
|
+
"motion": "^12.43.0",
|
|
639
639
|
"nprogress": "^0.2.0",
|
|
640
|
-
"nuqs": "^2.
|
|
641
|
-
"react": "^19.2.
|
|
640
|
+
"nuqs": "^2.9.4",
|
|
641
|
+
"react": "^19.2.8",
|
|
642
642
|
"react-day-picker": "^10.0.1",
|
|
643
|
-
"react-dom": "^19.2.
|
|
644
|
-
"react-dropzone": "^
|
|
645
|
-
"react-hook-form": "^7.
|
|
643
|
+
"react-dom": "^19.2.8",
|
|
644
|
+
"react-dropzone": "^20.0.0",
|
|
645
|
+
"react-hook-form": "^7.84.0",
|
|
646
646
|
"react-leaflet": "^5.0.0",
|
|
647
647
|
"react-leaflet-markercluster": "5.0.0-rc.0",
|
|
648
648
|
"react-number-format": "^5.4.5",
|
|
649
|
-
"recharts": "^3.
|
|
649
|
+
"recharts": "^3.10.1",
|
|
650
650
|
"sonner": "^2.0.7",
|
|
651
651
|
"streamdown": "^2.5.0",
|
|
652
|
-
"tailwindcss": "^4.3.
|
|
653
|
-
"tsdown": "^0.22.
|
|
652
|
+
"tailwindcss": "^4.3.3",
|
|
653
|
+
"tsdown": "^0.22.14",
|
|
654
654
|
"typescript": "^6.0.3",
|
|
655
|
-
"vitest": "^4.1.
|
|
655
|
+
"vitest": "^4.1.10",
|
|
656
656
|
"zod": "^4.4.3"
|
|
657
657
|
},
|
|
658
658
|
"publishConfig": {
|