@datum-cloud/datum-ui 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation--tEBCrfl.mjs → app-navigation-DhPaPFnN.mjs} +3 -7
- package/dist/assistant/index.mjs +15 -6
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-DZ_HSBak.mjs → autocomplete-BxtzndxZ.mjs} +1 -1
- package/dist/autosearch/index.mjs +3 -3
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-BZK6zUJr.mjs → avatar-stack-BUcsjhA6.mjs} +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/{button-H_8dI-Ib.mjs → button-CDPui_Ov.mjs} +1 -1
- package/dist/{button-A1qTjZ8U.mjs → button-DoMqfQLu.mjs} +1 -1
- package/dist/{calendar-date-picker-ynSGADfR.mjs → calendar-date-picker-Cl4lIDl5.mjs} +1 -1
- package/dist/components/base/hover-card/hover-card.d.ts +13 -0
- package/dist/components/base/hover-card/index.d.ts +1 -1
- package/dist/components/base/popover/index.d.ts +1 -1
- package/dist/components/base/popover/popover.d.ts +15 -0
- package/dist/data-table/index.mjs +1 -1
- package/dist/{data-table-ClfRpyHq.mjs → data-table-C37OD6_4.mjs} +6 -6
- package/dist/date-picker/index.mjs +3 -3
- package/dist/date-time/index.mjs +1 -1
- package/dist/{date-time-CA-09lnw.mjs → date-time-BmYjT5vd.mjs} +1 -1
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/{date-time-picker-BzcHrf-A.mjs → date-time-picker-DlaSizpS.mjs} +1 -1
- package/dist/{date-time-range-picker-Dog33Ry0.mjs → date-time-range-picker-CQQLACgN.mjs} +2 -2
- package/dist/dialog/index.mjs +1 -1
- package/dist/{dialog-N2pkQIc4.mjs → dialog-Gu70fban.mjs} +1 -1
- package/dist/dropdown/index.mjs +1 -1
- package/dist/{dropdown-B0znsOlu.mjs → dropdown-Xvduih96.mjs} +6 -6
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-DrWVd7OI.mjs → dropzone-ihksfjN2.mjs} +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/{empty-content-DvaelFpJ.mjs → empty-content-CmuVcU0P.mjs} +2 -2
- package/dist/form/index.mjs +1 -1
- package/dist/form/stepper/index.mjs +1 -1
- package/dist/{form-BhBsoMFA.mjs → form-DDtBJ3Dj.mjs} +10 -10
- package/dist/grouped-table/index.mjs +1 -1
- package/dist/{grouped-table-Bb9KoI1e.mjs → grouped-table-DImzzehJ.mjs} +4 -8
- package/dist/hover-card/index.mjs +1 -1
- package/dist/{hover-card-08jU9cD8.mjs → hover-card-BNOE5vT5.mjs} +20 -3
- package/dist/index.mjs +35 -34
- package/dist/logs/index.mjs +4 -4
- package/dist/mobile-sheet/index.mjs +1 -1
- package/dist/{mobile-sheet-BYp-QQmn.mjs → mobile-sheet-9TootJGg.mjs} +1 -1
- package/dist/more-actions/index.mjs +1 -1
- package/dist/{more-actions-B1FUf2rm.mjs → more-actions-C3DYWO0a.mjs} +3 -3
- package/dist/motion-DvGRWdsm.mjs +46 -0
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-PtdMChPF.mjs → multi-select-CH8KERkt.mjs} +1 -1
- package/dist/picker/index.mjs +2 -2
- package/dist/{picker-raVuDxsh.mjs → picker-Bbjl9FOq.mjs} +1 -1
- package/dist/popover/index.mjs +1 -33
- package/dist/popover-X82NwhX9.mjs +53 -0
- package/dist/responsive-dropdown/index.mjs +1 -1
- package/dist/{responsive-dropdown-n0Txkax5.mjs → responsive-dropdown-C_KKgLbH.mjs} +2 -2
- package/dist/responsive-popover/index.mjs +1 -1
- package/dist/{responsive-popover-C_1nzIvm.mjs → responsive-popover-8VcjBM2d.mjs} +2 -2
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-Dohp-pbf.mjs → rich-text-editor-DVga5upM.mjs} +3 -3
- package/dist/select/index.mjs +1 -1
- package/dist/{select-DCU44UO6.mjs → select-CQsG8Kju.mjs} +1 -1
- package/dist/sheet/index.mjs +1 -1
- package/dist/{sheet-C2i2k5i2.mjs → sheet-DHn6C_rs.mjs} +1 -1
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-D6BoAr6C.mjs → sidebar-BeWEEu7P.mjs} +1 -1
- package/dist/styles/motion.css +61 -0
- package/dist/styles/root.css +6 -0
- package/dist/switch/index.mjs +1 -1
- package/dist/{switch-DPHr3TcN.mjs → switch-Z2pJMckf.mjs} +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-ClLLTMxU.mjs → task-queue-dropdown-BJS3snfZ.mjs} +4 -4
- package/dist/time-picker/index.mjs +1 -1
- package/dist/{time-picker-CFhaHTtI.mjs → time-picker-CoUqZCb7.mjs} +1 -1
- package/dist/{to-api-format-WC7b9Mcv.mjs → to-api-format-BzKfX7yo.mjs} +4 -4
- package/dist/tooltip/index.mjs +1 -1
- package/dist/{tooltip-C_SL1imw.mjs → tooltip-DhbN1BDK.mjs} +1 -1
- package/dist/transfer/index.mjs +1 -1
- package/dist/{transfer-CEq9AhL7.mjs → transfer-DsshYgIk.mjs} +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.mjs +2 -1
- package/dist/utils/motion.d.ts +30 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cn } from "./utils-Bu32wN-x.mjs";
|
|
2
2
|
import { t as Badge } from "./badge-BTNW_FEU.mjs";
|
|
3
3
|
import { t as SpinnerIcon } from "./spinner.icon-BYUMQ8H-.mjs";
|
|
4
|
-
import { t as Button } from "./button-
|
|
4
|
+
import { t as Button } from "./button-DoMqfQLu.mjs";
|
|
5
5
|
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
6
|
-
import { t as Dialog } from "./dialog-
|
|
7
|
-
import { t as ResponsiveDropdown } from "./responsive-dropdown-
|
|
8
|
-
import { a as TooltipTrigger, n as Tooltip, r as TooltipContent, t as Tooltip$1 } from "./tooltip-
|
|
6
|
+
import { t as Dialog } from "./dialog-Gu70fban.mjs";
|
|
7
|
+
import { t as ResponsiveDropdown } from "./responsive-dropdown-C_KKgLbH.mjs";
|
|
8
|
+
import { a as TooltipTrigger, n as Tooltip, r as TooltipContent, t as Tooltip$1 } from "./tooltip-DhbN1BDK.mjs";
|
|
9
9
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table/index.mjs";
|
|
10
10
|
import { Ban, CheckCircle2, CircleAlert, CircleCheck, CornerDownRightIcon, FileIcon, ListTodo, X, XCircle } from "lucide-react";
|
|
11
11
|
import { createContext, use, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../time-picker-
|
|
1
|
+
import { t as TimePicker } from "../time-picker-CoUqZCb7.mjs";
|
|
2
2
|
export { TimePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useDeprecationWarning } from "./use-deprecation-warning-DXrGc0jX.mjs";
|
|
2
|
-
import { n as TimePicker$1 } from "./picker-
|
|
2
|
+
import { n as TimePicker$1 } from "./picker-Bbjl9FOq.mjs";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/features/time-picker/time-picker.tsx
|
|
5
5
|
const STEP_VALUES = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cn } from "./utils-Bu32wN-x.mjs";
|
|
2
|
-
import { t as Button } from "./button-
|
|
2
|
+
import { t as Button } from "./button-DoMqfQLu.mjs";
|
|
3
3
|
import { Calendar } from "./calendar/index.mjs";
|
|
4
4
|
import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
5
|
-
import { t as ResponsivePopover } from "./responsive-popover-
|
|
6
|
-
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-
|
|
7
|
-
import { F as zonedDateToIso, M as getBrowserTimezone, N as getTimezoneOffset, P as isoToZonedDate, U as endOfDayInTz, W as startOfDayInTz, j as formatTimezoneLabel, t as DateTimeRangePicker } from "./date-time-range-picker-
|
|
5
|
+
import { t as ResponsivePopover } from "./responsive-popover-8VcjBM2d.mjs";
|
|
6
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-CQsG8Kju.mjs";
|
|
7
|
+
import { F as zonedDateToIso, M as getBrowserTimezone, N as getTimezoneOffset, P as isoToZonedDate, U as endOfDayInTz, W as startOfDayInTz, j as formatTimezoneLabel, t as DateTimeRangePicker } from "./date-time-range-picker-CQQLACgN.mjs";
|
|
8
8
|
import { t as useDeprecationWarning } from "./use-deprecation-warning-DXrGc0jX.mjs";
|
|
9
9
|
import { CalendarIcon, Globe } from "lucide-react";
|
|
10
10
|
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
package/dist/tooltip/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Tooltip } from "../tooltip-
|
|
1
|
+
import { t as Tooltip } from "../tooltip-DhbN1BDK.mjs";
|
|
2
2
|
export { Tooltip };
|
|
@@ -39,7 +39,7 @@ function TooltipContent({ className, arrowClassName, sideOffset = 0, children, .
|
|
|
39
39
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
|
|
40
40
|
"data-slot": "tooltip-content",
|
|
41
41
|
sideOffset,
|
|
42
|
-
className: cn("
|
|
42
|
+
className: cn("bg-secondary text-secondary-foreground origin-(--radix-tooltip-content-transform-origin) duration-[var(--duration-fast)] ease-out animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance max-w-[calc(100vw-2rem)]", className),
|
|
43
43
|
...props,
|
|
44
44
|
children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, {
|
|
45
45
|
className: cn("fill-secondary -my-px border-none drop-shadow-[0_1px_0_secondary]", arrowClassName),
|
package/dist/transfer/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Transfer } from "../transfer-
|
|
1
|
+
import { t as Transfer } from "../transfer-DsshYgIk.mjs";
|
|
2
2
|
export { Transfer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cn } from "./utils-Bu32wN-x.mjs";
|
|
2
|
-
import { t as Button } from "./button-
|
|
2
|
+
import { t as Button } from "./button-DoMqfQLu.mjs";
|
|
3
3
|
import { Search, X } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { t as cn } from "../utils-Bu32wN-x.mjs";
|
|
2
|
+
import { n as EASE, t as DURATION } from "../motion-DvGRWdsm.mjs";
|
|
2
3
|
import { n as toUTCTimestampStartOfDay, t as toUTCTimestampEndOfDay } from "../utils-CA4QEIJ8.mjs";
|
|
3
|
-
export { cn, toUTCTimestampEndOfDay, toUTCTimestampStartOfDay };
|
|
4
|
+
export { DURATION, EASE, cn, toUTCTimestampEndOfDay, toUTCTimestampStartOfDay };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Motion tokens — the single source of truth for JS-driven animation
|
|
3
|
+
* (Motion / `motion/react`). Mirrors the CSS motion tokens defined in
|
|
4
|
+
* `../_shadcn/styles/shadcn.css` so component motion stays cohesive
|
|
5
|
+
* whether it runs through CSS or Motion.
|
|
6
|
+
*
|
|
7
|
+
* Curves match the CSS `--ease-*` custom properties exactly.
|
|
8
|
+
*/
|
|
9
|
+
/** Cubic-bezier easing curves as Motion-compatible tuples. */
|
|
10
|
+
export declare const EASE: {
|
|
11
|
+
/** Strong ease-out for entrances/exits. Mirrors `--ease-out`. */
|
|
12
|
+
readonly out: readonly [0.23, 1, 0.32, 1];
|
|
13
|
+
/** Strong ease-in-out for on-screen movement. Mirrors `--ease-in-out`. */
|
|
14
|
+
readonly inOut: readonly [0.77, 0, 0.175, 1];
|
|
15
|
+
/** iOS-style drawer curve. Mirrors `--ease-drawer`. */
|
|
16
|
+
readonly drawer: readonly [0.32, 0.72, 0, 1];
|
|
17
|
+
};
|
|
18
|
+
/** Durations in seconds (Motion expects seconds, not ms). */
|
|
19
|
+
export declare const DURATION: {
|
|
20
|
+
/** 150ms — button press, tooltips, small popovers. */
|
|
21
|
+
readonly fast: 0.15;
|
|
22
|
+
/** 250ms — dropdowns, selects, standard UI. */
|
|
23
|
+
readonly medium: 0.25;
|
|
24
|
+
/** 350ms — drawer/sheet enter. */
|
|
25
|
+
readonly drawerIn: 0.35;
|
|
26
|
+
/** 200ms — drawer/sheet exit (faster than enter). */
|
|
27
|
+
readonly drawerOut: 0.2;
|
|
28
|
+
};
|
|
29
|
+
export type Ease = keyof typeof EASE;
|
|
30
|
+
export type Duration = keyof typeof DURATION;
|