@datum-cloud/datum-ui 0.8.1 → 0.10.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-CG0A8Qjz.mjs} +12 -6
- 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/app-navigation/app-navigation.d.ts +5 -1
- package/dist/components/features/app-navigation/app-navigation.d.ts.map +1 -1
- package/dist/components/features/app-navigation/nav-menu.d.ts +4 -1
- package/dist/components/features/app-navigation/nav-menu.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/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/logo/index.d.ts +7 -0
- package/dist/components/features/logo/index.d.ts.map +1 -0
- package/dist/components/features/logo/logo-flat.d.ts +28 -0
- package/dist/components/features/logo/logo-flat.d.ts.map +1 -0
- package/dist/components/features/logo/logo-icon.d.ts +27 -0
- package/dist/components/features/logo/logo-icon.d.ts.map +1 -0
- package/dist/components/features/logo/logo-stacked.d.ts +24 -0
- package/dist/components/features/logo/logo-stacked.d.ts.map +1 -0
- package/dist/components/features/logo/logo-text.d.ts +27 -0
- package/dist/components/features/logo/logo-text.d.ts.map +1 -0
- package/dist/components/features/logo/logo.d.ts +24 -0
- package/dist/components/features/logo/logo.d.ts.map +1 -0
- package/dist/components/features/logo/logo.styles.d.ts +28 -0
- package/dist/components/features/logo/logo.styles.d.ts.map +1 -0
- package/dist/components/features/logo/themed/index.d.ts +2 -0
- package/dist/components/features/logo/themed/index.d.ts.map +1 -0
- package/dist/components/features/logo/themed/logo-themed.d.ts +54 -0
- package/dist/components/features/logo/themed/logo-themed.d.ts.map +1 -0
- 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-BAsH_Wv9.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 +25 -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 +44 -42
- 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/logo/index.mjs +3 -0
- package/dist/logo/themed/index.mjs +106 -0
- package/dist/logo-BQVyMDDx.mjs +23 -0
- package/dist/logo-text-BW31T2dS.mjs +227 -0
- package/dist/map/index.mjs +1 -1
- package/dist/{map-qo7bY_g_.mjs → map-t6n7VaX1.mjs} +24 -27
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-Ca5qqd0H.mjs → more-actions-Bp0b_jek.mjs} +2 -2
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DM_dxnSV.mjs → multi-select-7jly2Hcd.mjs} +6 -6
- 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-Ddqx_EiO.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-BMC_QbJK.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-CV1JbKTm.mjs} +1 -1
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-D-LncEWm.mjs → task-queue-dropdown-J1FuQOSr.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-CmXTvYka.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-CiY6ajpy.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 +40 -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-DXw4UnHU.mjs} +0 -0
- /package/dist/{empty-content-CBh5bbtJ.mjs → empty-content-DTk_lwnh.mjs} +0 -0
- /package/dist/{hooks-DQXVwbrs.mjs → hooks-BPxgIHKV.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-C8l0RTTP.mjs} +0 -0
- /package/dist/{page-title-ChLiv6gB.mjs → page-title-CGW3f4qH.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-C07H7h7q.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-CG0A8Qjz.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";
|
|
@@ -21,20 +21,20 @@ function NavIcon({ icon: IconComponent, className, size = "default" }) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
NavIcon.displayName = "NavIcon";
|
|
24
|
-
function NavSidebarMenuButton({ ref, item, isActive, disableTooltip, className, children, asChild, ...props }) {
|
|
24
|
+
function NavSidebarMenuButton({ ref, item, isActive, disableTooltip, className, activeClassName, children, asChild, ...props }) {
|
|
25
25
|
return /* @__PURE__ */ jsx(SidebarMenuButton, {
|
|
26
26
|
ref,
|
|
27
27
|
tooltip: disableTooltip ? void 0 : item.title,
|
|
28
28
|
isActive,
|
|
29
29
|
disabled: item.disabled,
|
|
30
30
|
asChild,
|
|
31
|
-
className: cn(NAV_STYLES.menuButton, item.disabled && NAV_STYLES.disabled, className),
|
|
31
|
+
className: cn(NAV_STYLES.menuButton, item.disabled && NAV_STYLES.disabled, className, isActive && activeClassName),
|
|
32
32
|
...props,
|
|
33
33
|
children: asChild ? children : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(NavIcon, { icon: item.icon }), children] })
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
NavSidebarMenuButton.displayName = "NavSidebarMenuButton";
|
|
37
|
-
function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp = "a", overrideState, itemClassName, disableTooltip, closeOnNavigation, ...props }) {
|
|
37
|
+
function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp = "a", overrideState, itemClassName, activeItemClassName, disableTooltip, closeOnNavigation, ...props }) {
|
|
38
38
|
const pathname = currentPath;
|
|
39
39
|
const { state: sidebarState, isMobile, closeForNavigation, setOpen } = useSidebar();
|
|
40
40
|
const [openItems, setOpenItems] = useState({});
|
|
@@ -155,6 +155,7 @@ function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp =
|
|
|
155
155
|
isActive,
|
|
156
156
|
disableTooltip,
|
|
157
157
|
className: itemClassName,
|
|
158
|
+
activeClassName: activeItemClassName,
|
|
158
159
|
onClick: () => {
|
|
159
160
|
setOpen(true);
|
|
160
161
|
if (item.href) setOpenItems((prev) => ({
|
|
@@ -233,6 +234,7 @@ function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp =
|
|
|
233
234
|
isActive,
|
|
234
235
|
disableTooltip,
|
|
235
236
|
className: itemClassName,
|
|
237
|
+
activeClassName: activeItemClassName,
|
|
236
238
|
children: [/* @__PURE__ */ jsx("span", { children: item.title }), /* @__PURE__ */ jsx(Icon, {
|
|
237
239
|
icon: ChevronRight,
|
|
238
240
|
className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
|
|
@@ -305,6 +307,7 @@ function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp =
|
|
|
305
307
|
isActive: currentItemIsActive,
|
|
306
308
|
disableTooltip,
|
|
307
309
|
className: itemClassName,
|
|
310
|
+
activeClassName: activeItemClassName,
|
|
308
311
|
children: [/* @__PURE__ */ jsx("span", { children: currentItem.title }), /* @__PURE__ */ jsx(Icon, {
|
|
309
312
|
icon: ChevronRight,
|
|
310
313
|
className: "ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
|
|
@@ -347,6 +350,7 @@ function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp =
|
|
|
347
350
|
disableTooltip,
|
|
348
351
|
onClick: () => hasChildren && toggleItem(item.href),
|
|
349
352
|
className: cn(level >= 1 && "h-6", itemClassName),
|
|
353
|
+
activeClassName: activeItemClassName,
|
|
350
354
|
children: item.type === "externalLink" ? /* @__PURE__ */ jsxs("a", {
|
|
351
355
|
href: item.href || "",
|
|
352
356
|
target: "_blank",
|
|
@@ -436,7 +440,7 @@ function NavSkeleton() {
|
|
|
436
440
|
]
|
|
437
441
|
});
|
|
438
442
|
}
|
|
439
|
-
function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, loading = false, ...props }) {
|
|
443
|
+
function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, loading = false, itemClassName, activeItemClassName, ...props }) {
|
|
440
444
|
const { setOpen } = useSidebar();
|
|
441
445
|
useEffect(() => {
|
|
442
446
|
if (defaultOpen === false) setOpen(false);
|
|
@@ -462,7 +466,9 @@ function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, curren
|
|
|
462
466
|
items: navItems,
|
|
463
467
|
currentPath,
|
|
464
468
|
linkComponent,
|
|
465
|
-
closeOnNavigation
|
|
469
|
+
closeOnNavigation,
|
|
470
|
+
itemClassName,
|
|
471
|
+
activeItemClassName
|
|
466
472
|
}),
|
|
467
473
|
props.collapsible !== "none" && /* @__PURE__ */ jsx(SidebarFooter, {
|
|
468
474
|
className: "mt-auto p-2",
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import type { NavItem } from './nav-menu';
|
|
2
2
|
import { Sidebar } from '../../base/sidebar/sidebar';
|
|
3
|
-
export declare function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, loading, ...props }: React.ComponentProps<typeof Sidebar> & {
|
|
3
|
+
export declare function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, loading, itemClassName, activeItemClassName, ...props }: React.ComponentProps<typeof Sidebar> & {
|
|
4
4
|
navItems: NavItem[];
|
|
5
5
|
title?: string | React.ReactNode;
|
|
6
6
|
closeOnNavigation?: boolean;
|
|
@@ -12,5 +12,9 @@ export declare function AppNavigation({ navItems, title, closeOnNavigation, defa
|
|
|
12
12
|
linkComponent?: React.ElementType;
|
|
13
13
|
/** Show skeleton instead of nav items while loading */
|
|
14
14
|
loading?: boolean;
|
|
15
|
+
/** Class applied to every nav item button. */
|
|
16
|
+
itemClassName?: string;
|
|
17
|
+
/** Class applied only to the active nav item button (e.g. `'font-bold text-primary'`). */
|
|
18
|
+
activeItemClassName?: string;
|
|
15
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
//# sourceMappingURL=app-navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-navigation.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/app-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EACL,OAAO,EAYR,MAAM,4BAA4B,CAAA;AA2CnC,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,aAAa,EACb,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,GAAG;IACxC,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAA;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"app-navigation.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/app-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EACL,OAAO,EAYR,MAAM,4BAA4B,CAAA;AA2CnC,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,aAAa,EACb,OAAe,EACf,aAAa,EACb,mBAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,GAAG;IACxC,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAA;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,0FAA0F;IAC1F,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B,2CA4CA"}
|
|
@@ -17,14 +17,17 @@ export interface NavItem {
|
|
|
17
17
|
/** Called when the user hovers over the link (e.g. to prefetch route data). */
|
|
18
18
|
onPrefetch?: () => void;
|
|
19
19
|
}
|
|
20
|
-
export declare function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp, overrideState, itemClassName, disableTooltip, closeOnNavigation, ...props }: ComponentProps<'ul'> & {
|
|
20
|
+
export declare function NavMenu({ ref, className, items, currentPath, linkComponent: LinkComp, overrideState, itemClassName, activeItemClassName, disableTooltip, closeOnNavigation, ...props }: ComponentProps<'ul'> & {
|
|
21
21
|
items: NavItem[];
|
|
22
22
|
/** Current URL pathname — replaces internal useLocation() */
|
|
23
23
|
currentPath: string;
|
|
24
24
|
/** Link component to render navigation links (defaults to native `<a>`) */
|
|
25
25
|
linkComponent?: ElementType;
|
|
26
26
|
overrideState?: 'expanded' | 'collapsed';
|
|
27
|
+
/** Class applied to every nav item button. */
|
|
27
28
|
itemClassName?: string;
|
|
29
|
+
/** Class applied only to the active nav item button. Use to bold the label, change colour, etc. */
|
|
30
|
+
activeItemClassName?: string;
|
|
28
31
|
disableTooltip?: boolean;
|
|
29
32
|
closeOnNavigation?: boolean;
|
|
30
33
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nav-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/nav-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,OAAO,CAAA;AAyBd,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,CAAA;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAM5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IAOvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IAExB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB;
|
|
1
|
+
{"version":3,"file":"nav-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/nav-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,OAAO,CAAA;AAyBd,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,CAAA;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAM5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IAOvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IAExB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB;AA0ED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,QAAc,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,iBAAiB,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IACpN,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAA;IACnB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,WAAW,CAAA;IAC3B,aAAa,CAAC,EAAE,UAAU,GAAG,WAAW,CAAA;IACxC,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,mGAAmG;IACnG,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAwhBrD;yBAriBe,OAAO"}
|
|
@@ -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;
|