@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,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { t as Button } from "./button-BllvE9Lm.mjs";
|
|
3
3
|
import { Search, X } from "lucide-react";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/features/transfer/components/transfer-group.tsx
|
|
@@ -63,7 +63,7 @@ const TransferSearch = ({ value, onChange, placeholder = "Search...", disabled =
|
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/features/transfer/components/transfer-panel.tsx
|
|
65
65
|
const TransferPanel = ({ title, items, groups, searchable, searchValue, onSearchChange, searchPlaceholder, onItemClick, onSelectAll, enableSelectAll, disabled = false, panelType }) => {
|
|
66
|
-
const groupedItems = React
|
|
66
|
+
const groupedItems = React.useMemo(() => {
|
|
67
67
|
if (groups.length === 0) return { "": items };
|
|
68
68
|
const grouped = {};
|
|
69
69
|
groups.forEach((group) => {
|
|
@@ -203,14 +203,14 @@ function Transfer({ items, value, onChange, itemKey, itemLabel, itemGroup, searc
|
|
|
203
203
|
itemLabel,
|
|
204
204
|
itemGroup
|
|
205
205
|
});
|
|
206
|
-
const handleSelect = React
|
|
206
|
+
const handleSelect = React.useCallback((key) => {
|
|
207
207
|
if (value.includes(key)) return;
|
|
208
208
|
onChange([...value, key]);
|
|
209
209
|
}, [value, onChange]);
|
|
210
|
-
const handleDeselect = React
|
|
210
|
+
const handleDeselect = React.useCallback((key) => {
|
|
211
211
|
onChange(value.filter((k) => k !== key));
|
|
212
212
|
}, [value, onChange]);
|
|
213
|
-
const handleSelectAll = React
|
|
213
|
+
const handleSelectAll = React.useCallback(() => {
|
|
214
214
|
const sourceKeys = state.filteredSourceItems.map((item) => item.key);
|
|
215
215
|
const existing = new Set(value);
|
|
216
216
|
const newKeys = sourceKeys.filter((k) => !existing.has(k));
|
|
@@ -220,7 +220,7 @@ function Transfer({ items, value, onChange, itemKey, itemLabel, itemGroup, searc
|
|
|
220
220
|
value,
|
|
221
221
|
onChange
|
|
222
222
|
]);
|
|
223
|
-
const handleClearAll = React
|
|
223
|
+
const handleClearAll = React.useCallback(() => {
|
|
224
224
|
onChange([]);
|
|
225
225
|
}, [onChange]);
|
|
226
226
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./cn-D2KYQ917.mjs";
|
|
2
2
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs/index.mjs";
|
|
3
|
-
import { n as useTheme } from "./themes-
|
|
4
|
-
import { t as toast } from "./toast-
|
|
3
|
+
import { n as useTheme } from "./themes-08-znmBI.mjs";
|
|
4
|
+
import { t as toast } from "./toast-BWol1pyV.mjs";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import Editor from "@monaco-editor/react";
|
|
@@ -63,11 +63,12 @@ import { z } from "zod";
|
|
|
63
63
|
* @param props.minHeight - Minimum editor height (default: '200px')
|
|
64
64
|
* @returns Rendered Monaco editor with form integration
|
|
65
65
|
*/
|
|
66
|
-
function CodeEditor({ value, onChange, language, id, name = "code-editor", error, className, readOnly = false, minHeight = "200px" }) {
|
|
66
|
+
function CodeEditor({ value, onChange, language, placeholder, id, name = "code-editor", error, className, readOnly = false, minHeight = "200px" }) {
|
|
67
67
|
const { theme } = useTheme();
|
|
68
68
|
const editorRef = useRef(null);
|
|
69
69
|
const [mounted, setMounted] = useState(false);
|
|
70
70
|
const monacoTheme = theme === "dark" ? "vs-dark" : "light";
|
|
71
|
+
const showPlaceholder = !!placeholder && value.length === 0;
|
|
71
72
|
useEffect(() => {
|
|
72
73
|
if (editorRef.current && !mounted) {
|
|
73
74
|
setTimeout(() => {
|
|
@@ -104,6 +105,11 @@ function CodeEditor({ value, onChange, language, id, name = "code-editor", error
|
|
|
104
105
|
},
|
|
105
106
|
className: cn(error && "border border-destructive rounded-md")
|
|
106
107
|
}),
|
|
108
|
+
showPlaceholder && /* @__PURE__ */ jsx("div", {
|
|
109
|
+
"aria-hidden": "true",
|
|
110
|
+
className: "text-input-placeholder pointer-events-none absolute top-0 left-14 z-10 py-0.5 text-sm whitespace-pre-wrap",
|
|
111
|
+
children: placeholder
|
|
112
|
+
}),
|
|
107
113
|
/* @__PURE__ */ jsx("input", {
|
|
108
114
|
type: "hidden",
|
|
109
115
|
id,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "../typography-
|
|
1
|
+
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "../typography-CBwfg-vz.mjs";
|
|
2
2
|
export { Blockquote, Code, Link, List, ListItem, Paragraph, Text, Title, paragraphVariants, textVariants, titleVariants };
|
|
@@ -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 { CopyIcon } from "lucide-react";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/base/typography/typography.tsx
|
|
7
7
|
const titleVariants = cva("font-semibold leading-tight tracking-tight", {
|
|
@@ -106,7 +106,7 @@ const paragraphVariants = cva("leading-relaxed", {
|
|
|
106
106
|
});
|
|
107
107
|
function Title({ className, level, weight, textColor, as, children, ...props }) {
|
|
108
108
|
const Component = as ?? `h${level ?? 4}`;
|
|
109
|
-
return React
|
|
109
|
+
return React.createElement(Component, {
|
|
110
110
|
className: cn(titleVariants({
|
|
111
111
|
level,
|
|
112
112
|
weight,
|
|
@@ -131,7 +131,7 @@ function Text({ className, size, weight, textColor, type, as = "span", copyable,
|
|
|
131
131
|
"aria-hidden": "true"
|
|
132
132
|
})
|
|
133
133
|
})] });
|
|
134
|
-
return React
|
|
134
|
+
return React.createElement(as, {
|
|
135
135
|
className: cn(textVariants({
|
|
136
136
|
size,
|
|
137
137
|
weight,
|
|
@@ -142,7 +142,7 @@ function Text({ className, size, weight, textColor, type, as = "span", copyable,
|
|
|
142
142
|
}, content);
|
|
143
143
|
}
|
|
144
144
|
function Paragraph({ className, size, spacing, as = "p", children, ...props }) {
|
|
145
|
-
return React
|
|
145
|
+
return React.createElement(as, {
|
|
146
146
|
className: cn(paragraphVariants({
|
|
147
147
|
size,
|
|
148
148
|
spacing,
|
|
@@ -163,7 +163,7 @@ function Link({ className, children, href, target = "_self", rel, ...props }) {
|
|
|
163
163
|
}
|
|
164
164
|
function List({ className, as, listType = "unordered", children, ...props }) {
|
|
165
165
|
const Component = as ?? (listType === "ordered" ? "ol" : "ul");
|
|
166
|
-
return React
|
|
166
|
+
return React.createElement(Component, {
|
|
167
167
|
className: cn("space-y-2", listType === "ordered" ? "list-decimal list-inside" : "list-disc list-inside", className),
|
|
168
168
|
...props
|
|
169
169
|
}, children);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
//#region src/components/features/picker/internal/use-deprecation-warning.ts
|
|
3
|
+
const warned = /* @__PURE__ */ new Set();
|
|
4
|
+
/**
|
|
5
|
+
* Logs a one-time `console.warn` in development warning that the legacy
|
|
6
|
+
* component is deprecated and pointing the consumer at the replacement.
|
|
7
|
+
*
|
|
8
|
+
* No-op in `test` and `production` builds. Deduplicated by `legacyName`
|
|
9
|
+
* across the entire session.
|
|
10
|
+
*/
|
|
11
|
+
function useDeprecationWarning(legacyName, replacement) {
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (process.env.NODE_ENV !== "development") return;
|
|
14
|
+
if (warned.has(legacyName)) return;
|
|
15
|
+
warned.add(legacyName);
|
|
16
|
+
console.warn(`[datum-ui] ${legacyName} is deprecated. Use ${replacement} from '@datum-cloud/datum-ui/picker' instead. See picker-migration.mdx.`);
|
|
17
|
+
}, [legacyName, replacement]);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { useDeprecationWarning as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import "zod";
|
|
3
3
|
//#region src/components/features/form/utils/zod-helpers.ts
|
|
4
4
|
/**
|
|
@@ -60,8 +60,8 @@ function isRequired(schema) {
|
|
|
60
60
|
* behaviour across validation modes (onChange, onBlur, onSubmit).
|
|
61
61
|
*/
|
|
62
62
|
function useDisplayTouched(schema) {
|
|
63
|
-
const [touchedSet, setTouchedSet] = React
|
|
64
|
-
const markFieldTouched = React
|
|
63
|
+
const [touchedSet, setTouchedSet] = React.useState(/* @__PURE__ */ new Set());
|
|
64
|
+
const markFieldTouched = React.useCallback((fieldName) => {
|
|
65
65
|
setTouchedSet((prev) => {
|
|
66
66
|
if (prev.has(fieldName)) return prev;
|
|
67
67
|
const next = new Set(prev);
|
|
@@ -69,12 +69,12 @@ function useDisplayTouched(schema) {
|
|
|
69
69
|
return next;
|
|
70
70
|
});
|
|
71
71
|
}, []);
|
|
72
|
-
const markAllFieldsTouched = React
|
|
72
|
+
const markAllFieldsTouched = React.useCallback(() => {
|
|
73
73
|
const allFieldNames = Object.keys(getFieldConstraints(schema));
|
|
74
74
|
setTouchedSet(new Set(allFieldNames));
|
|
75
75
|
}, [schema]);
|
|
76
76
|
return {
|
|
77
|
-
displayTouchedFields: React
|
|
77
|
+
displayTouchedFields: React.useMemo(() => Array.from(touchedSet), [touchedSet]),
|
|
78
78
|
markFieldTouched,
|
|
79
79
|
markAllFieldsTouched
|
|
80
80
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-DqHWukGK.mjs";
|
|
2
|
-
import { t as LoaderOverlay } from "./loader-overlay-
|
|
2
|
+
import { t as LoaderOverlay } from "./loader-overlay-B3YEoOFJ.mjs";
|
|
3
3
|
import { CheckIcon } from "lucide-react";
|
|
4
4
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as cn } from "../cn-D2KYQ917.mjs";
|
|
2
|
-
import { n as toUTCTimestampStartOfDay, t as toUTCTimestampEndOfDay } from "../utils-
|
|
2
|
+
import { n as toUTCTimestampStartOfDay, t as toUTCTimestampEndOfDay } from "../utils-C07H7h7q.mjs";
|
|
3
3
|
export { cn, toUTCTimestampEndOfDay, toUTCTimestampStartOfDay };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as VisuallyHidden } from "../visuallyhidden-
|
|
1
|
+
import { t as VisuallyHidden } from "../visuallyhidden-CoIJOJ9z.mjs";
|
|
2
2
|
export { VisuallyHidden };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datum-cloud/datum-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/datum-cloud/datum-ui"
|
|
@@ -328,6 +328,16 @@
|
|
|
328
328
|
"types": "./dist/components/features/app-navigation/index.d.ts",
|
|
329
329
|
"default": "./dist/app-navigation/index.mjs"
|
|
330
330
|
},
|
|
331
|
+
"./logo": {
|
|
332
|
+
"source": "./src/components/features/logo/index.ts",
|
|
333
|
+
"types": "./dist/components/features/logo/index.d.ts",
|
|
334
|
+
"default": "./dist/logo/index.mjs"
|
|
335
|
+
},
|
|
336
|
+
"./logo/themed": {
|
|
337
|
+
"source": "./src/components/features/logo/themed/index.ts",
|
|
338
|
+
"types": "./dist/components/features/logo/themed/index.d.ts",
|
|
339
|
+
"default": "./dist/logo/themed/index.mjs"
|
|
340
|
+
},
|
|
331
341
|
"./stepper": {
|
|
332
342
|
"source": "./src/components/features/stepper/index.ts",
|
|
333
343
|
"types": "./dist/components/features/stepper/index.d.ts",
|
|
@@ -358,6 +368,11 @@
|
|
|
358
368
|
"types": "./dist/components/features/date-time-picker/index.d.ts",
|
|
359
369
|
"default": "./dist/date-time-picker/index.mjs"
|
|
360
370
|
},
|
|
371
|
+
"./picker": {
|
|
372
|
+
"source": "./src/components/features/picker/index.ts",
|
|
373
|
+
"types": "./dist/components/features/picker/index.d.ts",
|
|
374
|
+
"default": "./dist/picker/index.mjs"
|
|
375
|
+
},
|
|
361
376
|
"./time-picker": {
|
|
362
377
|
"source": "./src/components/features/time-picker/index.ts",
|
|
363
378
|
"types": "./dist/components/features/time-picker/index.d.ts",
|
|
@@ -400,7 +415,7 @@
|
|
|
400
415
|
"@tiptap/starter-kit": ">=3",
|
|
401
416
|
"date-fns": ">=4.1.0",
|
|
402
417
|
"date-fns-tz": ">=3",
|
|
403
|
-
"js-yaml": "^4.1.
|
|
418
|
+
"js-yaml": "^4.1.1",
|
|
404
419
|
"leaflet": ">=1.9",
|
|
405
420
|
"leaflet-draw": ">=1",
|
|
406
421
|
"leaflet.fullscreen": ">=5",
|
|
@@ -551,29 +566,29 @@
|
|
|
551
566
|
"class-variance-authority": "^0.7.1",
|
|
552
567
|
"clsx": "^2.1.1",
|
|
553
568
|
"cmdk": "^1.1.1",
|
|
554
|
-
"isomorphic-dompurify": "^3.
|
|
555
|
-
"tailwind-merge": "^3.
|
|
569
|
+
"isomorphic-dompurify": "^3.12.0",
|
|
570
|
+
"tailwind-merge": "^3.6.0",
|
|
556
571
|
"tw-animate-css": "^1"
|
|
557
572
|
},
|
|
558
573
|
"devDependencies": {
|
|
559
|
-
"@conform-to/react": "^1.
|
|
560
|
-
"@conform-to/zod": "^1.
|
|
574
|
+
"@conform-to/react": "^1.19.2",
|
|
575
|
+
"@conform-to/zod": "^1.19.2",
|
|
561
576
|
"@dnd-kit/core": "^6.3.1",
|
|
562
577
|
"@dnd-kit/sortable": "^10.0.0",
|
|
563
578
|
"@hookform/resolvers": "^5.2.2",
|
|
564
579
|
"@monaco-editor/react": "^4.7.0",
|
|
565
580
|
"@stepperize/react": "^6.1.0",
|
|
566
581
|
"@tanstack/react-table": "^8.21.3",
|
|
567
|
-
"@tanstack/react-virtual": "^3.13.
|
|
582
|
+
"@tanstack/react-virtual": "^3.13.24",
|
|
568
583
|
"@testing-library/jest-dom": "^6",
|
|
569
584
|
"@testing-library/react": "^16",
|
|
570
585
|
"@testing-library/user-event": "^14",
|
|
571
|
-
"@tiptap/extension-character-count": "^3.
|
|
572
|
-
"@tiptap/extension-link": "^3.
|
|
573
|
-
"@tiptap/extension-placeholder": "^3.
|
|
574
|
-
"@tiptap/extension-underline": "^3.
|
|
575
|
-
"@tiptap/react": "^3.
|
|
576
|
-
"@tiptap/starter-kit": "^3.
|
|
586
|
+
"@tiptap/extension-character-count": "^3.23.1",
|
|
587
|
+
"@tiptap/extension-link": "^3.23.1",
|
|
588
|
+
"@tiptap/extension-placeholder": "^3.23.1",
|
|
589
|
+
"@tiptap/extension-underline": "^3.23.1",
|
|
590
|
+
"@tiptap/react": "^3.23.1",
|
|
591
|
+
"@tiptap/starter-kit": "^3.23.1",
|
|
577
592
|
"@types/js-yaml": "^4.0.9",
|
|
578
593
|
"@types/leaflet": "^1.9.21",
|
|
579
594
|
"@types/leaflet-draw": "^1.0.13",
|
|
@@ -584,32 +599,32 @@
|
|
|
584
599
|
"@types/react-dom": "^19",
|
|
585
600
|
"date-fns": "^4.1.0",
|
|
586
601
|
"date-fns-tz": "^3.2.0",
|
|
587
|
-
"eslint": "^
|
|
602
|
+
"eslint": "^10.3.0",
|
|
588
603
|
"js-yaml": "^4.1.1",
|
|
589
|
-
"jsdom": "^
|
|
604
|
+
"jsdom": "^29",
|
|
590
605
|
"leaflet": "^1.9.4",
|
|
591
606
|
"leaflet-draw": "^1.0.4",
|
|
592
|
-
"leaflet.fullscreen": "^5.3.
|
|
607
|
+
"leaflet.fullscreen": "^5.3.1",
|
|
593
608
|
"leaflet.markercluster": "^1.5.3",
|
|
594
|
-
"lucide-react": "^
|
|
609
|
+
"lucide-react": "^1.14",
|
|
595
610
|
"monaco-editor": "^0.55.1",
|
|
596
|
-
"motion": "^12.
|
|
611
|
+
"motion": "^12.38.0",
|
|
597
612
|
"nprogress": "^0.2.0",
|
|
598
613
|
"nuqs": "^2.8.9",
|
|
599
614
|
"react": "^19",
|
|
600
615
|
"react-day-picker": "^9.14.0",
|
|
601
616
|
"react-dom": "^19",
|
|
602
617
|
"react-dropzone": "^15.0.0",
|
|
603
|
-
"react-hook-form": "^7.
|
|
618
|
+
"react-hook-form": "^7.75.0",
|
|
604
619
|
"react-leaflet": "^5.0.0",
|
|
605
620
|
"react-leaflet-markercluster": "5.0.0-rc.0",
|
|
606
|
-
"react-number-format": "^5.4.
|
|
621
|
+
"react-number-format": "^5.4.5",
|
|
607
622
|
"sonner": "^2.0.7",
|
|
608
|
-
"tailwindcss": "^4.
|
|
609
|
-
"tsdown": "^0.
|
|
610
|
-
"typescript": "^
|
|
611
|
-
"vitest": "^
|
|
612
|
-
"zod": "^4.3
|
|
623
|
+
"tailwindcss": "^4.3.0",
|
|
624
|
+
"tsdown": "^0.22.0",
|
|
625
|
+
"typescript": "^6.0",
|
|
626
|
+
"vitest": "^4",
|
|
627
|
+
"zod": "^4.4.3",
|
|
613
628
|
"@repo/config": "0.0.0",
|
|
614
629
|
"@repo/shadcn": "0.0.0"
|
|
615
630
|
},
|