@datum-cloud/datum-ui 0.8.0 → 0.9.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/{adapter-context-NyGTDZYq.mjs → adapter-context-DemTWhel.mjs} +3 -3
- package/dist/alert/index.mjs +1 -1
- package/dist/{alert-BDj6od5I.mjs → alert-Cz56SqdN.mjs} +2 -2
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-rSOfo1KV.mjs → app-navigation-CnGkJvwF.mjs} +1 -1
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-DdbTQe6u.mjs → autocomplete-ChuPNldi.mjs} +6 -6
- package/dist/autosearch/index.mjs +12 -12
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-CDhlA1Nm.mjs → avatar-stack-WqoQ3l06.mjs} +1 -1
- package/dist/{button-D3RrsMfQ.mjs → button-Rw1xI-k9.mjs} +2 -2
- package/dist/calendar/index.mjs +1 -1
- package/dist/calendar-D_DriVHT.mjs +77 -0
- package/dist/{calendar-C-Hbf74r.mjs → calendar-Dwvq3Vu_.mjs} +6 -6
- package/dist/calendar-date-picker-CchHKodM.mjs +52 -0
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-CUa21ynK.mjs → chart-DgcOwkOh.mjs} +5 -5
- package/dist/code-editor/index.mjs +1 -1
- package/dist/{col-DISdGlqY.mjs → col-Q6yazFwL.mjs} +2 -1
- package/dist/components/base/button/button.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +6 -5
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/types.d.ts +19 -0
- package/dist/components/features/calendar-date-picker/types.d.ts.map +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/features/code-editor/index.d.ts +1 -1
- package/dist/components/features/code-editor/index.d.ts.map +1 -1
- package/dist/components/features/code-editor/types.d.ts +25 -2
- package/dist/components/features/code-editor/types.d.ts.map +1 -1
- package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/date-time-picker.d.ts +12 -4
- package/dist/components/features/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/types.d.ts +9 -0
- package/dist/components/features/date-time-picker/types.d.ts.map +1 -1
- package/dist/components/features/grid/components/col.d.ts +1 -1
- package/dist/components/features/grid/components/col.d.ts.map +1 -1
- package/dist/components/features/grid/components/row.d.ts +1 -1
- package/dist/components/features/grid/components/row.d.ts.map +1 -1
- package/dist/components/features/picker/components/calendar.d.ts +14 -0
- package/dist/components/features/picker/components/calendar.d.ts.map +1 -0
- package/dist/components/features/picker/components/content.d.ts +18 -0
- package/dist/components/features/picker/components/content.d.ts.map +1 -0
- package/dist/components/features/picker/components/context.d.ts +57 -0
- package/dist/components/features/picker/components/context.d.ts.map +1 -0
- package/dist/components/features/picker/components/footer.d.ts +35 -0
- package/dist/components/features/picker/components/footer.d.ts.map +1 -0
- package/dist/components/features/picker/components/index.d.ts +36 -0
- package/dist/components/features/picker/components/index.d.ts.map +1 -0
- package/dist/components/features/picker/components/presets.d.ts +9 -0
- package/dist/components/features/picker/components/presets.d.ts.map +1 -0
- package/dist/components/features/picker/components/root.d.ts +40 -0
- package/dist/components/features/picker/components/root.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input-field.d.ts +13 -0
- package/dist/components/features/picker/components/time-input-field.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input.d.ts +13 -0
- package/dist/components/features/picker/components/time-input.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts +14 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-select.d.ts +16 -0
- package/dist/components/features/picker/components/timezone-select.d.ts.map +1 -0
- package/dist/components/features/picker/components/trigger.d.ts +23 -0
- package/dist/components/features/picker/components/trigger.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/index.d.ts +5 -0
- package/dist/components/features/picker/hooks/index.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts +25 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts +51 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts +24 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts +21 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts.map +1 -0
- package/dist/components/features/picker/index.d.ts +8 -0
- package/dist/components/features/picker/index.d.ts.map +1 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts +9 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts.map +1 -0
- package/dist/components/features/picker/presets/defaults.d.ts +16 -0
- package/dist/components/features/picker/presets/defaults.d.ts.map +1 -0
- package/dist/components/features/picker/presets/index.d.ts +2 -0
- package/dist/components/features/picker/presets/index.d.ts.map +1 -0
- package/dist/components/features/picker/types.d.ts +70 -0
- package/dist/components/features/picker/types.d.ts.map +1 -0
- package/dist/components/features/picker/utils/commit.d.ts +16 -0
- package/dist/components/features/picker/utils/commit.d.ts.map +1 -0
- package/dist/components/features/picker/utils/compare.d.ts +12 -0
- package/dist/components/features/picker/utils/compare.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format-value.d.ts +25 -0
- package/dist/components/features/picker/utils/format-value.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format.d.ts +38 -0
- package/dist/components/features/picker/utils/format.d.ts.map +1 -0
- package/dist/components/features/picker/utils/index.d.ts +7 -0
- package/dist/components/features/picker/utils/index.d.ts.map +1 -0
- package/dist/components/features/picker/utils/range.d.ts +26 -0
- package/dist/components/features/picker/utils/range.d.ts.map +1 -0
- package/dist/components/features/picker/utils/timezone.d.ts +38 -0
- package/dist/components/features/picker/utils/timezone.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts +10 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts +20 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/index.d.ts +16 -0
- package/dist/components/features/picker/wrappers/index.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts +7 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts +14 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/types.d.ts +118 -0
- package/dist/components/features/picker/wrappers/types.d.ts.map +1 -0
- package/dist/components/features/tag-input/tag-input.d.ts +1 -1
- package/dist/components/features/tag-input/tag-input.d.ts.map +1 -1
- package/dist/components/features/time-picker/time-picker.d.ts +5 -0
- package/dist/components/features/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/features/time-picker/types.d.ts +5 -0
- package/dist/components/features/time-picker/types.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/index.d.ts +5 -0
- package/dist/components/features/time-range-picker/index.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/time-range-picker.d.ts +19 -14
- package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/types.d.ts +20 -0
- package/dist/components/features/time-range-picker/types.d.ts.map +1 -1
- package/dist/data-table/index.mjs +22 -15
- package/dist/date-picker/index.mjs +2 -2
- package/dist/date-range-picker-DNZh06zo.mjs +77 -0
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/date-time-picker-BiobghTJ.mjs +43 -0
- package/dist/date-time-picker-C0fF7s_e.mjs +109 -0
- package/dist/date-time-range-picker-cW4rbuFn.mjs +82 -0
- package/dist/default-footer-DbpemJVl.mjs +1037 -0
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-Bt0plEuw.mjs → dropzone-DXH0xHso.mjs} +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/adapters/conform/index.mjs +19 -19
- package/dist/form/adapters/rhf/index.mjs +18 -18
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +23 -23
- package/dist/{form-CCNN9VtJ.mjs → form-DvgKb4s4.mjs} +49 -42
- package/dist/{form-context-CeKyvO-A.mjs → form-context-0usxTumz.mjs} +3 -3
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.mjs +41 -41
- package/dist/input-group/index.mjs +1 -1
- package/dist/{input-group-DDtz-RT7.mjs → input-group-CeMsDhOk.mjs} +1 -1
- package/dist/input-number/index.mjs +1 -1
- package/dist/{input-number-Diu-C6d5.mjs → input-number-BU4nno8J.mjs} +1 -1
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/{map-qo7bY_g_.mjs → map-l7iwhEwM.mjs} +24 -27
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-Ca5qqd0H.mjs → more-actions-Baqor0yr.mjs} +2 -2
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DM_dxnSV.mjs → multi-select-BHmtkQIi.mjs} +6 -6
- package/dist/nprogress/nprogress.css +59 -11
- package/dist/page-title/index.mjs +1 -1
- package/dist/picker/index.mjs +273 -0
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-CQH_U4T5.mjs → rich-text-editor-aWuLRaj9.mjs} +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select-By1ZqPgr.mjs +94 -0
- package/dist/select-Ck0szhAH.mjs +73 -0
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-B8LQJiNI.mjs → sidebar-CUnFkH7o.mjs} +32 -32
- package/dist/skeleton/index.mjs +1 -1
- package/dist/{skeleton-D4HOEiOZ.mjs → skeleton-CxAhQT6T.mjs} +1 -1
- package/dist/stepper/index.mjs +1 -1
- package/dist/{stepper-Beb-zbdL.mjs → stepper-adDdiJMx.mjs} +7 -7
- package/dist/styles/root.css +4 -2
- package/dist/styles/shadcn/shadcn.css +212 -213
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.mjs +1 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/{tag-input-Bf4GMptp.mjs → tag-input-D3NYy9-_.mjs} +1 -1
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-D-LncEWm.mjs → task-queue-dropdown-t9KKIL6j.mjs} +3 -3
- package/dist/textarea/index.mjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/{themes-CAiN4b6G.mjs → themes-08-znmBI.mjs} +16 -16
- package/dist/time-input-9LdNL0Us.mjs +196 -0
- package/dist/time-picker/index.mjs +1 -1
- package/dist/time-picker-B-vpUClR.mjs +45 -0
- package/dist/time-picker-C840fLl6.mjs +49 -0
- package/dist/timezone-indicator-COoeMKKs.mjs +27 -0
- package/dist/{to-api-format-CgKcC9SK.mjs → to-api-format-CNqrcrz7.mjs} +58 -243
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-DDdLgY53.mjs → toast-Bd5Kk7BB.mjs} +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/transfer/index.mjs +1 -1
- package/dist/{transfer-CoGPwOc6.mjs → transfer-CuJGL420.mjs} +6 -6
- package/dist/{types-CKIe2WlV.mjs → types-DvMIxilw.mjs} +9 -3
- package/dist/typography/index.mjs +1 -1
- package/dist/{typography-TRKP_CLT.mjs → typography-CBwfg-vz.mjs} +5 -5
- package/dist/{use-copy-to-clipboard-D7KyLIAt.mjs → use-copy-to-clipboard-ZHDvfV3W.mjs} +1 -1
- package/dist/use-deprecation-warning-Dy_DOyLu.mjs +20 -0
- package/dist/{use-display-touched-C-afz17j.mjs → use-display-touched-DpX3fsOl.mjs} +5 -5
- package/dist/{use-option-picker-BXQOfyrK.mjs → use-option-picker-DV5O68eV.mjs} +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +30 -25
- package/dist/calendar-date-picker-BaykEs6j.mjs +0 -749
- package/dist/date-time-picker-DKOxrhmc.mjs +0 -193
- package/dist/select-zxwykvQn.mjs +0 -163
- package/dist/time-picker-BZF5jbF6.mjs +0 -99
- package/dist/use-date-constraints-R3H4lIoT.mjs +0 -41
- /package/dist/{action-row-DnhBhMtt.mjs → action-row-ZaMsJ8cP.mjs} +0 -0
- /package/dist/{empty-content-CBh5bbtJ.mjs → empty-content-DTk_lwnh.mjs} +0 -0
- /package/dist/{hooks-DQXVwbrs.mjs → hooks-CnphNpwz.mjs} +0 -0
- /package/dist/{loader-overlay-C2WDla6V.mjs → loader-overlay-B3YEoOFJ.mjs} +0 -0
- /package/dist/{map-leaflet-imports-yWwH4CHB.mjs → map-leaflet-imports-Ix8F7E8j.mjs} +0 -0
- /package/dist/{page-title-ChLiv6gB.mjs → page-title-D5JhOpxV.mjs} +0 -0
- /package/dist/{skeleton-D2xuJdE1.mjs → skeleton-B1NOdZGM.mjs} +0 -0
- /package/dist/{switch-DcSF42Kc.mjs → switch-BcQaR1Bp.mjs} +0 -0
- /package/dist/{table-DWGT4cqh.mjs → table-ouGk4Vxe.mjs} +0 -0
- /package/dist/{textarea-BoChBcFz.mjs → textarea-q-k7DYwi.mjs} +0 -0
- /package/dist/{toast-D5XD7goD.mjs → toast-BWol1pyV.mjs} +0 -0
- /package/dist/{tooltip-a7NTDCWw.mjs → tooltip-CHuzXR_O.mjs} +0 -0
- /package/dist/{utils-BwB1mIdZ.mjs → utils-bUueJ2r9.mjs} +0 -0
- /package/dist/{visuallyhidden-BHOPczmW.mjs → visuallyhidden-CoIJOJ9z.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/features/form/adapter-context.tsx
|
|
4
|
-
const AdapterContext = React
|
|
4
|
+
const AdapterContext = React.createContext(null);
|
|
5
5
|
/**
|
|
6
6
|
* Read the current form adapter from context.
|
|
7
7
|
* Throws with a helpful error if no adapter is found.
|
|
8
8
|
*/
|
|
9
9
|
function useAdapter() {
|
|
10
|
-
const adapter = React
|
|
10
|
+
const adapter = React.use(AdapterContext);
|
|
11
11
|
if (!adapter) throw new Error("No form adapter found. Wrap your application with an adapter provider:\n\n import { ConformAdapter } from '@datum-cloud/datum-ui/form/adapters/conform'\n // or\n import { RHFAdapter } from '@datum-cloud/datum-ui/form/adapters/rhf'\n\n <ConformAdapter>\n <App />\n </ConformAdapter>");
|
|
12
12
|
return adapter;
|
|
13
13
|
}
|
package/dist/alert/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as AlertDescription, r as AlertTitle, t as Alert } from "../alert-
|
|
1
|
+
import { n as AlertDescription, r as AlertTitle, t as Alert } from "../alert-Cz56SqdN.mjs";
|
|
2
2
|
export { Alert, AlertDescription, AlertTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { CircleXIcon } from "lucide-react";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/base/alert/alert.tsx
|
|
7
7
|
/**
|
|
@@ -51,7 +51,7 @@ const alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7
|
|
|
51
51
|
defaultVariants: { variant: "default" }
|
|
52
52
|
});
|
|
53
53
|
function Alert({ className, variant, closable = false, onClose, ...props }) {
|
|
54
|
-
const [isVisible, setIsVisible] = React
|
|
54
|
+
const [isVisible, setIsVisible] = React.useState(true);
|
|
55
55
|
const handleClose = () => {
|
|
56
56
|
if (onClose) onClose();
|
|
57
57
|
else setIsVisible(false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-
|
|
1
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-CUnFkH7o.mjs";
|
|
2
2
|
import "../sidebar/index.mjs";
|
|
3
|
-
import { n as NavMenu, t as AppNavigation } from "../app-navigation-
|
|
3
|
+
import { n as NavMenu, t as AppNavigation } from "../app-navigation-CnGkJvwF.mjs";
|
|
4
4
|
export { AppNavigation, NavMenu, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
3
3
|
import { n as CollapsibleContent, r as CollapsibleTrigger, t as Collapsible } from "./collapsible-CUphkSBt.mjs";
|
|
4
|
-
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, c as SidebarHeader, d as SidebarMenu, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, w as useSidebar } from "./sidebar-
|
|
4
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, c as SidebarHeader, d as SidebarMenu, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, w as useSidebar } from "./sidebar-CUnFkH7o.mjs";
|
|
5
5
|
import { ChevronRight, ExternalLinkIcon } from "lucide-react";
|
|
6
6
|
import { Fragment, useCallback, useEffect, useRef, useState } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Autocomplete } from "../autocomplete-
|
|
1
|
+
import { t as Autocomplete } from "../autocomplete-ChuPNldi.mjs";
|
|
2
2
|
export { Autocomplete };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { t as ResponsivePopover } from "./responsive-popover-D-t9bxSN.mjs";
|
|
3
|
-
import { t as LoaderOverlay } from "./loader-overlay-
|
|
4
|
-
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-
|
|
3
|
+
import { t as LoaderOverlay } from "./loader-overlay-B3YEoOFJ.mjs";
|
|
4
|
+
import { n as OptionList, t as useOptionPicker } from "./use-option-picker-DV5O68eV.mjs";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
|
-
import * as React
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/features/autocomplete/trigger.tsx
|
|
9
9
|
function Trigger({ ref, selectedOption, renderValue, placeholder, loading, disabled, open, id, className, ...rest }) {
|
|
@@ -68,7 +68,7 @@ Trigger.displayName = "AutocompleteTrigger";
|
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
function Autocomplete({ options, value, onValueChange, onSearchChange, searchPlaceholder = "Search...", disableSearch = false, renderOption, renderValue, placeholder = "Select...", emptyContent = "No results found", footer, creatable = false, creatableLabel, virtualize = false, itemSize = 36, loading = false, modal = false, responsive = true, sheetTitle, disabled = false, name, id, className, triggerClassName, contentClassName, listClassName }) {
|
|
71
|
-
const [open, setOpen] = React
|
|
71
|
+
const [open, setOpen] = React.useState(false);
|
|
72
72
|
const picker = useOptionPicker({
|
|
73
73
|
multiple: false,
|
|
74
74
|
options,
|
|
@@ -81,11 +81,11 @@ function Autocomplete({ options, value, onValueChange, onSearchChange, searchPla
|
|
|
81
81
|
open,
|
|
82
82
|
onOpenChange: setOpen
|
|
83
83
|
});
|
|
84
|
-
const flatOptions = React
|
|
84
|
+
const flatOptions = React.useMemo(() => {
|
|
85
85
|
if (Array.isArray(options) && options.length > 0 && "options" in options[0]) return options.flatMap((g) => g.options);
|
|
86
86
|
return options;
|
|
87
87
|
}, [options]);
|
|
88
|
-
const displayOption = React
|
|
88
|
+
const displayOption = React.useMemo(() => {
|
|
89
89
|
const found = flatOptions.find((o) => o.value === value);
|
|
90
90
|
if (found) return found;
|
|
91
91
|
if (creatable && value) return {
|
|
@@ -2,10 +2,10 @@ import { t as cn } from "../cn-D2KYQ917.mjs";
|
|
|
2
2
|
import { t as Button } from "../button-BllvE9Lm.mjs";
|
|
3
3
|
import { t as Input } from "../input-FKGqZypx.mjs";
|
|
4
4
|
import { t as ResponsivePopover } from "../responsive-popover-D-t9bxSN.mjs";
|
|
5
|
-
import { t as Tooltip } from "../tooltip-
|
|
6
|
-
import { n as OptionList, t as useOptionPicker } from "../use-option-picker-
|
|
5
|
+
import { t as Tooltip } from "../tooltip-CHuzXR_O.mjs";
|
|
6
|
+
import { n as OptionList, t as useOptionPicker } from "../use-option-picker-DV5O68eV.mjs";
|
|
7
7
|
import { AlertCircle, Loader2, X } from "lucide-react";
|
|
8
|
-
import * as React
|
|
8
|
+
import * as React from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/features/autosearch/autosearch.tsx
|
|
11
11
|
/**
|
|
@@ -38,11 +38,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
function Autosearch({ options = [], value, onValueChange, onSearch, searchDebounceMs = 300, placeholder = "Search for an option", emptyMessage = "No results found.", emptyContent, loading = false, modal = false, responsive = true, sheetTitle, disabled = false, name, id, className, inputClassName, contentClassName, selectedClassName }) {
|
|
41
|
-
const [open, setOpen] = React
|
|
42
|
-
const [persistedOption, setPersistedOption] = React
|
|
43
|
-
const [searchExecuted, setSearchExecuted] = React
|
|
44
|
-
const searchDebounceRef = React
|
|
45
|
-
const onSearchChangeForEngine = React
|
|
41
|
+
const [open, setOpen] = React.useState(false);
|
|
42
|
+
const [persistedOption, setPersistedOption] = React.useState(null);
|
|
43
|
+
const [searchExecuted, setSearchExecuted] = React.useState(false);
|
|
44
|
+
const searchDebounceRef = React.useRef(null);
|
|
45
|
+
const onSearchChangeForEngine = React.useCallback((query) => {
|
|
46
46
|
const normalized = query.trim();
|
|
47
47
|
if (searchDebounceRef.current) {
|
|
48
48
|
clearTimeout(searchDebounceRef.current);
|
|
@@ -59,7 +59,7 @@ function Autosearch({ options = [], value, onValueChange, onSearch, searchDeboun
|
|
|
59
59
|
searchDebounceRef.current = null;
|
|
60
60
|
}, searchDebounceMs);
|
|
61
61
|
}, [onSearch, searchDebounceMs]);
|
|
62
|
-
React
|
|
62
|
+
React.useEffect(() => {
|
|
63
63
|
return () => {
|
|
64
64
|
if (searchDebounceRef.current) {
|
|
65
65
|
clearTimeout(searchDebounceRef.current);
|
|
@@ -86,11 +86,11 @@ function Autosearch({ options = [], value, onValueChange, onSearch, searchDeboun
|
|
|
86
86
|
const hasSearch = Boolean(picker.search.trim());
|
|
87
87
|
const showResults = hasSearch && !value && options.length > 1;
|
|
88
88
|
const showNoResults = hasSearch && !loading && options.length === 0 && searchExecuted;
|
|
89
|
-
React
|
|
89
|
+
React.useEffect(() => {
|
|
90
90
|
if (hasSearch && !value) setOpen(true);
|
|
91
91
|
else if (!hasSearch) setOpen(false);
|
|
92
92
|
}, [hasSearch, value]);
|
|
93
|
-
React
|
|
93
|
+
React.useEffect(() => {
|
|
94
94
|
if (value || !hasSearch) return;
|
|
95
95
|
if (options.length === 1 && !options[0].disabled) {
|
|
96
96
|
const option = options[0];
|
|
@@ -106,7 +106,7 @@ function Autosearch({ options = [], value, onValueChange, onSearch, searchDeboun
|
|
|
106
106
|
value,
|
|
107
107
|
hasSearch
|
|
108
108
|
]);
|
|
109
|
-
const handleClear = React
|
|
109
|
+
const handleClear = React.useCallback(() => {
|
|
110
110
|
setPersistedOption(null);
|
|
111
111
|
picker.setSearch("");
|
|
112
112
|
onSearch?.("");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as avatarStackVariants, t as AvatarStack } from "../avatar-stack-
|
|
1
|
+
import { n as avatarStackVariants, t as AvatarStack } from "../avatar-stack-WqoQ3l06.mjs";
|
|
2
2
|
export { AvatarStack, avatarStackVariants };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { n as AvatarFallback, r as AvatarImage, t as Avatar } from "./avatar-BtKVcvO4.mjs";
|
|
3
|
-
import { t as Tooltip } from "./tooltip-
|
|
3
|
+
import { t as Tooltip } from "./tooltip-CHuzXR_O.mjs";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cn } from "./utils-C8KwMfT_.mjs";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
6
|
//#region ../shadcn/ui/button.tsx
|
|
@@ -31,7 +31,7 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
|
|
|
31
31
|
size: "default"
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const Button = React
|
|
34
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
35
35
|
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
36
36
|
className: cn(buttonVariants({
|
|
37
37
|
variant,
|
package/dist/calendar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CalendarDayButton, t as Calendar } from "../calendar-
|
|
1
|
+
import { n as CalendarDayButton, t as Calendar } from "../calendar-Dwvq3Vu_.mjs";
|
|
2
2
|
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { t as Calendar } from "./calendar-Dwvq3Vu_.mjs";
|
|
2
|
+
import { A as zonedDateToIso, F as isDateBearingMode, R as useDateConstraints, k as isoToZonedDate, w as usePickerContext } from "./default-footer-DbpemJVl.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/features/picker/components/calendar.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Override the base Calendar's default `w-fit` root so the calendar fills the
|
|
7
|
+
* mobile sheet width (cells flex via the underlying day-picker) and reverts to
|
|
8
|
+
* intrinsic width on `md` and above.
|
|
9
|
+
*/
|
|
10
|
+
const CALENDAR_RESPONSIVE_CLASSNAMES = { root: "w-full md:w-fit" };
|
|
11
|
+
function PickerCalendar({ numberOfMonths = 1, className, minDate, maxDate, disablePast, disableFuture }) {
|
|
12
|
+
const { mode, timezone, state, actions } = usePickerContext();
|
|
13
|
+
const { effectiveMinDate, effectiveMaxDate, isDateDisabled } = useDateConstraints({
|
|
14
|
+
minDate,
|
|
15
|
+
maxDate,
|
|
16
|
+
disablePast,
|
|
17
|
+
disableFuture
|
|
18
|
+
});
|
|
19
|
+
if (!isDateBearingMode(mode)) return null;
|
|
20
|
+
const month = state.monthFrom ?? (() => {
|
|
21
|
+
if (mode === "date" && state.pendingValue instanceof Date) return state.pendingValue;
|
|
22
|
+
if (mode === "datetime" && typeof state.pendingValue === "string") return isoToZonedDate(state.pendingValue, timezone);
|
|
23
|
+
})();
|
|
24
|
+
if (mode === "date-range" || mode === "date-range-time" || mode === "datetime-range") {
|
|
25
|
+
const v = state.pendingValue;
|
|
26
|
+
return /* @__PURE__ */ jsx(Calendar, {
|
|
27
|
+
mode: "range",
|
|
28
|
+
selected: v ? mode === "date-range" ? {
|
|
29
|
+
from: v.from,
|
|
30
|
+
to: v.to
|
|
31
|
+
} : {
|
|
32
|
+
from: isoToZonedDate(v.from, timezone),
|
|
33
|
+
to: isoToZonedDate(v.to, timezone)
|
|
34
|
+
} : void 0,
|
|
35
|
+
onSelect: (range) => {
|
|
36
|
+
if (!range?.from || !range?.to) return;
|
|
37
|
+
if (mode === "date-range") actions.setRange({
|
|
38
|
+
from: range.from,
|
|
39
|
+
to: range.to
|
|
40
|
+
});
|
|
41
|
+
else actions.setDatetimeRange({
|
|
42
|
+
from: zonedDateToIso(range.from, timezone),
|
|
43
|
+
to: zonedDateToIso(range.to, timezone)
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
defaultMonth: month,
|
|
47
|
+
month,
|
|
48
|
+
onMonthChange: actions.setMonthFrom,
|
|
49
|
+
numberOfMonths,
|
|
50
|
+
disabled: isDateDisabled,
|
|
51
|
+
fromDate: effectiveMinDate,
|
|
52
|
+
toDate: effectiveMaxDate,
|
|
53
|
+
className,
|
|
54
|
+
classNames: CALENDAR_RESPONSIVE_CLASSNAMES
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return /* @__PURE__ */ jsx(Calendar, {
|
|
58
|
+
mode: "single",
|
|
59
|
+
selected: state.pendingValue instanceof Date ? state.pendingValue : mode === "datetime" && typeof state.pendingValue === "string" ? isoToZonedDate(state.pendingValue, timezone) : void 0,
|
|
60
|
+
onSelect: (d) => {
|
|
61
|
+
if (!d) return;
|
|
62
|
+
if (mode === "date") actions.setSingleDate(d);
|
|
63
|
+
else if (mode === "datetime") actions.setSingleDatetime(zonedDateToIso(d, timezone));
|
|
64
|
+
},
|
|
65
|
+
defaultMonth: month,
|
|
66
|
+
month,
|
|
67
|
+
onMonthChange: actions.setMonthFrom,
|
|
68
|
+
disabled: isDateDisabled,
|
|
69
|
+
fromDate: effectiveMinDate,
|
|
70
|
+
toDate: effectiveMaxDate,
|
|
71
|
+
className,
|
|
72
|
+
classNames: CALENDAR_RESPONSIVE_CLASSNAMES
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
PickerCalendar.displayName = "Picker.Calendar";
|
|
76
|
+
//#endregion
|
|
77
|
+
export { PickerCalendar as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
|
-
import { n as buttonVariants, t as Button } from "./button-
|
|
2
|
+
import { n as buttonVariants, t as Button } from "./button-Rw1xI-k9.mjs";
|
|
3
3
|
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
4
4
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
5
|
-
import * as React
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
8
8
|
//#region src/components/base/calendar/calendar.tsx
|
|
@@ -40,7 +40,7 @@ function CalendarWeekNumber({ children, ...props }) {
|
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
function Calendar
|
|
43
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
44
44
|
const defaultClassNames = getDefaultClassNames();
|
|
45
45
|
return /* @__PURE__ */ jsx(DayPicker, {
|
|
46
46
|
showOutsideDays,
|
|
@@ -90,8 +90,8 @@ function Calendar$1({ className, classNames, showOutsideDays = true, captionLayo
|
|
|
90
90
|
}
|
|
91
91
|
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
92
92
|
const defaultClassNames = getDefaultClassNames();
|
|
93
|
-
const ref = React
|
|
94
|
-
React
|
|
93
|
+
const ref = React.useRef(null);
|
|
94
|
+
React.useEffect(() => {
|
|
95
95
|
if (modifiers.focused) ref.current?.focus();
|
|
96
96
|
}, [modifiers.focused]);
|
|
97
97
|
return /* @__PURE__ */ jsx(Button, {
|
|
@@ -108,4 +108,4 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
-
export { CalendarDayButton as n, Calendar
|
|
111
|
+
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as useDeprecationWarning } from "./use-deprecation-warning-Dy_DOyLu.mjs";
|
|
2
|
+
import { t as DateRangePicker } from "./date-range-picker-DNZh06zo.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/features/calendar-date-picker/calendar-date-picker.tsx
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `DateRangePicker` (or `DatePicker`) from
|
|
7
|
+
* `@datum-cloud/datum-ui/picker` instead. This adapter shim ships through
|
|
8
|
+
* 0.10.x and is removed in 1.0.0. See `picker-migration.mdx`.
|
|
9
|
+
*/
|
|
10
|
+
function CalendarDatePicker({ date, onDateSelect, closeOnSelect, numberOfMonths = 2, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture, disablePast, className, triggerClassName, popoverClassName, disabled, modal, responsive = true, sheetTitle, id }) {
|
|
11
|
+
useDeprecationWarning("CalendarDatePicker", "DateRangePicker");
|
|
12
|
+
return /* @__PURE__ */ jsx(DateRangePicker, {
|
|
13
|
+
value: date && date.from && date.to ? {
|
|
14
|
+
from: date.from,
|
|
15
|
+
to: date.to
|
|
16
|
+
} : null,
|
|
17
|
+
onChange: (next) => {
|
|
18
|
+
if (next === null) onDateSelect(void 0);
|
|
19
|
+
else onDateSelect({
|
|
20
|
+
from: next.from,
|
|
21
|
+
to: next.to
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
placeholder: placeholder ?? "Pick a date",
|
|
25
|
+
sheetTitle: sheetTitle ?? placeholder ?? "Pick a date",
|
|
26
|
+
responsive,
|
|
27
|
+
modal,
|
|
28
|
+
disabled,
|
|
29
|
+
className,
|
|
30
|
+
triggerClassName,
|
|
31
|
+
popoverClassName,
|
|
32
|
+
id,
|
|
33
|
+
numberOfMonths,
|
|
34
|
+
excludePresets,
|
|
35
|
+
presets: customPresets?.map((p) => ({
|
|
36
|
+
key: p.key,
|
|
37
|
+
label: p.label,
|
|
38
|
+
getRange: () => ({
|
|
39
|
+
from: p.start,
|
|
40
|
+
to: p.end
|
|
41
|
+
})
|
|
42
|
+
})),
|
|
43
|
+
minDate,
|
|
44
|
+
maxDate,
|
|
45
|
+
disableFuture,
|
|
46
|
+
disablePast,
|
|
47
|
+
commit: closeOnSelect ? "immediate" : void 0
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
CalendarDatePicker.displayName = "CalendarDatePicker";
|
|
51
|
+
//#endregion
|
|
52
|
+
export { CalendarDatePicker as t };
|
package/dist/chart/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChartTooltip, i as ChartStyle, n as ChartLegend, o as ChartTooltipContent, r as ChartLegendContent, t as ChartContainer } from "../chart-
|
|
1
|
+
import { a as ChartTooltip, i as ChartStyle, n as ChartLegend, o as ChartTooltipContent, r as ChartLegendContent, t as ChartContainer } from "../chart-DgcOwkOh.mjs";
|
|
2
2
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cn } from "./utils-C8KwMfT_.mjs";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as RechartsPrimitive from "recharts";
|
|
5
5
|
//#region ../shadcn/ui/chart.tsx
|
|
@@ -7,14 +7,14 @@ const THEMES = {
|
|
|
7
7
|
light: "",
|
|
8
8
|
dark: ".dark"
|
|
9
9
|
};
|
|
10
|
-
const ChartContext = React
|
|
10
|
+
const ChartContext = React.createContext(null);
|
|
11
11
|
function useChart() {
|
|
12
|
-
const context = React
|
|
12
|
+
const context = React.useContext(ChartContext);
|
|
13
13
|
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
14
14
|
return context;
|
|
15
15
|
}
|
|
16
16
|
function ChartContainer({ id, className, children, config, ...props }) {
|
|
17
|
-
const uniqueId = React
|
|
17
|
+
const uniqueId = React.useId();
|
|
18
18
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
19
19
|
return /* @__PURE__ */ jsx(ChartContext.Provider, {
|
|
20
20
|
value: { config },
|
|
@@ -45,7 +45,7 @@ const ChartStyle = ({ id, config }) => {
|
|
|
45
45
|
const ChartTooltip = RechartsPrimitive.Tooltip;
|
|
46
46
|
function ChartTooltipContent({ active, payload, label, className, indicator = "dot", hideLabel = false, hideIndicator = false, labelFormatter, formatter, labelClassName, color, nameKey, labelKey }) {
|
|
47
47
|
const { config } = useChart();
|
|
48
|
-
const tooltipLabel = React
|
|
48
|
+
const tooltipLabel = React.useMemo(() => {
|
|
49
49
|
if (hideLabel || !payload?.length) return null;
|
|
50
50
|
const [item] = payload;
|
|
51
51
|
const itemConfig = getPayloadConfigFromPayload(config, item, `${labelKey || item?.dataKey || item?.name || "value"}`);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as formatJson, c as isValidYaml, d as CodeEditor, i as CodeEditorTabs, l as jsonToYaml, n as jsonSchema, o as formatYaml, r as yamlSchema, s as isValidJson, t as createCodeEditorSchema, u as yamlToJson } from "../types-
|
|
1
|
+
import { a as formatJson, c as isValidYaml, d as CodeEditor, i as CodeEditorTabs, l as jsonToYaml, n as jsonSchema, o as formatYaml, r as yamlSchema, s as isValidJson, t as createCodeEditorSchema, u as yamlToJson } from "../types-DvMIxilw.mjs";
|
|
2
2
|
export { CodeEditor, CodeEditorTabs, createCodeEditorSchema, formatJson, formatYaml, isValidJson, isValidYaml, jsonSchema, jsonToYaml, yamlSchema, yamlToJson };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
|
-
import
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { use, useEffect, useState } from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/features/grid/constants/grid.constants.ts
|
|
5
6
|
const GRID_BREAKPOINTS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/base/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,cAAc;;;;;8EAuPnB,CAAA;AAED,MAAM,WAAW,WACf,SACA,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,EAC3D,YAAY,CAAC,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;CACzC;AAED,iBAAS,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/base/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,cAAc;;;;;8EAuPnB,CAAA;AAED,MAAM,WAAW,WACf,SACA,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,EAC3D,YAAY,CAAC,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;CACzC;AAED,iBAAS,MAAM,CAAC,EACd,GAAG,EACH,SAAS,EACT,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,OAAe,EACf,QAAQ,EACR,IAAI,EACJ,YAAqB,EACrB,WAAW,EACX,QAAmB,EACnB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAuEnE;kBAtFQ,MAAM;;;AA0Ff,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { CalendarDatePickerProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `DateRangePicker` (or `DatePicker`) from
|
|
4
|
+
* `@datum-cloud/datum-ui/picker` instead. This adapter shim ships through
|
|
5
|
+
* 0.10.x and is removed in 1.0.0. See `picker-migration.mdx`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function CalendarDatePicker({ date, onDateSelect, closeOnSelect, numberOfMonths, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture, disablePast, className, triggerClassName, popoverClassName, disabled, modal, responsive, sheetTitle, id, }: CalendarDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export declare namespace CalendarDatePicker {
|
|
8
9
|
var displayName: string;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"calendar-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAItD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,cAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,OAAO,EACP,aAAa,EACb,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,KAAK,EACL,UAAiB,EACjB,UAAU,EACV,EAAE,GACH,EAAE,uBAAuB,2CAyCzB;yBA7De,kBAAkB"}
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import type { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type * as React from 'react';
|
|
3
3
|
import type { DateRange } from 'react-day-picker';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Internal constant for the legacy CalendarDatePicker shim.
|
|
6
|
+
* Removed in 1.0.0 alongside `@datum-cloud/datum-ui/calendar-date-picker`.
|
|
7
|
+
*/
|
|
4
8
|
export declare const months: string[];
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Internal cva for the legacy CalendarDatePicker trigger.
|
|
11
|
+
* Removed in 1.0.0 alongside `@datum-cloud/datum-ui/calendar-date-picker`.
|
|
12
|
+
*/
|
|
5
13
|
export declare const multiSelectVariants: (props?: ({
|
|
6
14
|
variant?: "default" | "secondary" | "outline" | "destructive" | "link" | "ghost" | null | undefined;
|
|
7
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `PickerPreset` (with `getRange`) from
|
|
18
|
+
* `@datum-cloud/datum-ui/picker` instead. Kept for the legacy
|
|
19
|
+
* `customPresets` prop on CalendarDatePicker, removed in 1.0.0.
|
|
20
|
+
*/
|
|
8
21
|
export interface DateRangePreset {
|
|
9
22
|
key: string;
|
|
10
23
|
label: string;
|
|
11
24
|
start: Date;
|
|
12
25
|
end: Date;
|
|
13
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Use `DateRangePickerProps` (or `DatePickerProps`) from
|
|
29
|
+
* `@datum-cloud/datum-ui/picker` instead. Kept for the legacy
|
|
30
|
+
* `@datum-cloud/datum-ui/calendar-date-picker` shim, which ships through
|
|
31
|
+
* 0.10.x and is removed in 1.0.0. See `picker-migration.mdx`.
|
|
32
|
+
*/
|
|
14
33
|
export interface CalendarDatePickerProps extends React.HTMLAttributes<HTMLButtonElement>, VariantProps<typeof multiSelectVariants> {
|
|
15
34
|
id?: string;
|
|
16
35
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD,eAAO,MAAM,MAAM,UAalB,CAAA;AAED,eAAO,MAAM,mBAAmB;;8EAiB/B,CAAA;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;CACV;AAED,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzF,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,SAAS,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,SAAS,KAAK,IAAI,CAAA;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAA;IAEjC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD;;;GAGG;AACH,eAAO,MAAM,MAAM,UAalB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;8EAiB/B,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,IAAI,CAAA;CACV;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzF,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,SAAS,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,SAAS,KAAK,IAAI,CAAA;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,aAAa,CAAC,EAAE,eAAe,EAAE,CAAA;IAEjC,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -54,5 +54,5 @@ import type { CodeEditorProps } from './types';
|
|
|
54
54
|
* @param props.minHeight - Minimum editor height (default: '200px')
|
|
55
55
|
* @returns Rendered Monaco editor with form integration
|
|
56
56
|
*/
|
|
57
|
-
export declare function CodeEditor({ value, onChange, language, id, name, error, className, readOnly, minHeight, }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare function CodeEditor({ value, onChange, language, placeholder, id, name, error, className, readOnly, minHeight, }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
//# sourceMappingURL=code-editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/code-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,IAAoB,EACpB,KAAK,EACL,SAAS,EACT,QAAgB,EAChB,SAAmB,GACpB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/code-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,EAAE,EACF,IAAoB,EACpB,KAAK,EACL,SAAS,EACT,QAAgB,EAChB,SAAmB,GACpB,EAAE,eAAe,2CA0DjB"}
|
|
@@ -2,5 +2,5 @@ export { CodeEditor } from './code-editor';
|
|
|
2
2
|
export { CodeEditorTabs } from './code-editor-tabs';
|
|
3
3
|
export { formatJson, formatYaml, isValidJson, isValidYaml, jsonToYaml, yamlToJson } from './lib/editor';
|
|
4
4
|
export { createCodeEditorSchema, jsonSchema, yamlSchema } from './types';
|
|
5
|
-
export type { CodeEditorProps, CodeEditorTabsProps, EditorLanguage } from './types';
|
|
5
|
+
export type { CodeEditorProps, CodeEditorTabsProps, EditorLanguage, MonacoLanguage } from './types';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACvG,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACxE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACvG,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACxE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type EditorLanguage = 'json' | 'yaml' | 'typescript' | 'javascript' | 'python' | 'sql' | 'html' | 'css' | 'markdown';
|
|
3
|
+
/**
|
|
4
|
+
* Monaco Editor language identifier.
|
|
5
|
+
*
|
|
6
|
+
* Provides autocomplete for languages that ship in Monaco's default ESM bundle
|
|
7
|
+
* while still accepting any string — useful for custom languages registered via
|
|
8
|
+
* `monaco.languages.register({ id })`.
|
|
9
|
+
*
|
|
10
|
+
* The `(string & {})` intersection is a TypeScript idiom that prevents the
|
|
11
|
+
* literal union from collapsing into `string`, preserving autocomplete.
|
|
12
|
+
*
|
|
13
|
+
* Reference: https://github.com/microsoft/monaco-editor/tree/main/src/basic-languages
|
|
14
|
+
*/
|
|
15
|
+
export type MonacoLanguage = 'abap' | 'apex' | 'azcli' | 'bat' | 'bicep' | 'c' | 'clojure' | 'coffee' | 'cpp' | 'csharp' | 'css' | 'cypher' | 'dart' | 'dockerfile' | 'elixir' | 'fsharp' | 'go' | 'graphql' | 'handlebars' | 'hcl' | 'html' | 'ini' | 'java' | 'javascript' | 'json' | 'julia' | 'kotlin' | 'less' | 'lua' | 'markdown' | 'mdx' | 'mips' | 'mysql' | 'objective-c' | 'pascal' | 'perl' | 'pgsql' | 'php' | 'plaintext' | 'powerquery' | 'powershell' | 'protobuf' | 'pug' | 'python' | 'r' | 'razor' | 'redis' | 'redshift' | 'restructuredtext' | 'ruby' | 'rust' | 'sb' | 'scala' | 'scheme' | 'scss' | 'shell' | 'solidity' | 'sparql' | 'sql' | 'st' | 'swift' | 'systemverilog' | 'tcl' | 'twig' | 'typescript' | 'vb' | 'verilog' | 'xml' | 'yaml' | (string & {});
|
|
3
16
|
/**
|
|
4
17
|
* Props for the CodeEditor component.
|
|
5
18
|
*
|
|
@@ -23,8 +36,18 @@ export interface CodeEditorProps {
|
|
|
23
36
|
value: string;
|
|
24
37
|
/** Content change callback */
|
|
25
38
|
onChange?: (value: string) => void;
|
|
26
|
-
/**
|
|
27
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Syntax highlighting language. Accepts any Monaco built-in language ID
|
|
41
|
+
* (autocomplete provided) plus any custom language registered via
|
|
42
|
+
* `monaco.languages.register()`.
|
|
43
|
+
*/
|
|
44
|
+
language: MonacoLanguage;
|
|
45
|
+
/**
|
|
46
|
+
* Placeholder text shown when the editor is empty. Mirrors HTML input
|
|
47
|
+
* semantics — visible while `value === ''`, hidden as soon as content
|
|
48
|
+
* is entered.
|
|
49
|
+
*/
|
|
50
|
+
placeholder?: string;
|
|
28
51
|
/** Input element ID for form integration */
|
|
29
52
|
id?: string;
|
|
30
53
|
/** Input element name for form submission (default: 'code-editor') */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAA;AAE3H;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/code-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAA;AAE3H;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,cAAc,GACpB,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,GAAG,GAAG,SAAS,GAAG,QAAQ,GACxE,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,GACtE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GACnE,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GACpE,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,GAChE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GACpE,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,GAAG,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GACpE,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAChE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,GACjE,eAAe,GAAG,KAAK,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,GAAG,SAAS,GAClE,KAAK,GAAG,MAAM,GACd,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEnB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC;;;;OAIG;IACH,QAAQ,EAAE,cAAc,CAAA;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,yCAAyC;IACzC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IAC1D,wDAAwD;IACxD,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB,6BAA6B;IAC7B,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IACjD,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU;;iBAKrB,CAAA;AAEF,eAAO,MAAM,UAAU;;iBAKrB,CAAA;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,SAAgB;;;;;;;;;kBAuB1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/data-table/core/client-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAsC,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAM7F,MAAM,MAAM,4BAA4B,CAAC,KAAK,IAAI,yBAAyB,CAAC,KAAK,CAAC,GAAG;IACnF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AA2BD,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"client-provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/data-table/core/client-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAsC,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAM7F,MAAM,MAAM,4BAA4B,CAAC,KAAK,IAAI,yBAAyB,CAAC,KAAK,CAAC,GAAG;IACnF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AA2BD,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC,2CAiG/E"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { DateTimePickerProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `DateTimePicker` from `@datum-cloud/datum-ui/picker`
|
|
4
|
+
* instead. This adapter shim ships through 0.10.x and is removed in 1.0.0.
|
|
5
|
+
* See `picker-migration.mdx`.
|
|
6
|
+
*
|
|
7
|
+
* Notable diff: legacy `showTimezoneIndicator` (default `false`) is the
|
|
8
|
+
* inverse of the new `hideTimezone` prop. The shim handles the inversion
|
|
9
|
+
* and pins the trigger label / time-input UX to the legacy semantics
|
|
10
|
+
* (typeable input via `timeInputMode='input'`, bare TZ name via
|
|
11
|
+
* `timezoneIndicatorVariant='compact'`).
|
|
12
|
+
*/
|
|
13
|
+
export declare function DateTimePicker({ value, onChange, minDate, maxDate, disabledDates: _disabledDates, disablePast, disableFuture, timezone, showTimezoneIndicator, placeholder, disabled, className, modal, sheetTitle, sheetDescription, responsive, }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
14
|
export declare namespace DateTimePicker {
|
|
7
15
|
var displayName: string;
|
|
8
16
|
}
|