@datum-cloud/datum-ui 3.6.0 → 3.7.1
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/{action-row-DTvs91_3.mjs → action-row-BEzE9x37.mjs} +2 -3
- package/dist/{adapter-context-h0jCVqGO.mjs → adapter-context-XT749tyT.mjs} +1 -2
- package/dist/alert/index.mjs +1 -2
- package/dist/{alert-SAPwee1h.mjs → alert-CVckvox4.mjs} +2 -3
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-BB_NLEWv.mjs → app-navigation-Bcx7hr9L.mjs} +10 -16
- package/dist/assistant/index.mjs +418 -88
- package/dist/autocomplete/index.mjs +1 -2
- package/dist/{autocomplete-BxtzndxZ.mjs → autocomplete-fSSmRLYK.mjs} +6 -8
- package/dist/autosearch/index.mjs +8 -10
- package/dist/avatar/index.mjs +2 -3
- package/dist/avatar-stack/index.mjs +1 -2
- package/dist/{avatar-stack-BUcsjhA6.mjs → avatar-stack-2ow672bR.mjs} +3 -4
- package/dist/badge/index.mjs +1 -2
- package/dist/{badge-DOZUr5DV.mjs → badge-D7A6GfWn.mjs} +2 -3
- package/dist/breadcrumb/index.mjs +1 -2
- package/dist/{breadcrumb-DmdhC8bE.mjs → breadcrumb-D97jAZ2N.mjs} +2 -3
- package/dist/button/index.mjs +2 -2
- package/dist/{button-CDPui_Ov.mjs → button-BU8TEbJ5.mjs} +3 -4
- package/dist/{button-CsdF61EI.mjs → button-C57mkFkS.mjs} +2 -3
- package/dist/{button-DoMqfQLu.mjs → button-Dj6cKrWj.mjs} +4 -6
- package/dist/button-group/index.mjs +1 -2
- package/dist/{button-group-DFrTH4L8.mjs → button-group-C3GKo-0p.mjs} +3 -4
- package/dist/calendar/index.mjs +4 -5
- package/dist/{calendar-date-picker-DPvVAW2I.mjs → calendar-date-picker-BUwgVaI1.mjs} +3 -4
- package/dist/card/index.mjs +1 -2
- package/dist/{card-save-bar-BZzNnKYj.mjs → card-save-bar-0XDpAJo_.mjs} +5 -8
- package/dist/chart/index.mjs +1 -2
- package/dist/{chart-EgzTS28l.mjs → chart-BsGsx2jb.mjs} +2 -3
- package/dist/checkbox/index.mjs +1 -2
- package/dist/{checkbox-C6P12fio.mjs → checkbox-CNljVnKj.mjs} +3 -5
- package/dist/{close.icon-DdXKQ4m0.mjs → close.icon-BCPmH4nN.mjs} +2 -3
- package/dist/code-editor/index.mjs +1 -2
- package/dist/{col-BYGWTB4j.mjs → col-CYHIfPJq.mjs} +5 -9
- package/dist/collapsible/index.mjs +1 -2
- package/dist/command/index.mjs +1 -2
- package/dist/{command-C0aGIYnQ.mjs → command-B0be-zU5.mjs} +3 -4
- package/dist/components/features/assistant/components/assistant-workspace.d.ts +8 -2
- package/dist/components/features/assistant/components/composer/prompt-card.d.ts +7 -2
- package/dist/components/features/assistant/components/conversation/conversation.d.ts +19 -5
- package/dist/components/features/assistant/components/message/assistant-message.d.ts +24 -4
- package/dist/components/features/assistant/components/message/choice-chips.d.ts +17 -0
- package/dist/components/features/assistant/components/message/index.d.ts +2 -0
- package/dist/components/features/assistant/components/message/plan-card.d.ts +20 -0
- package/dist/components/features/assistant/components/message/user-message.d.ts +1 -1
- package/dist/components/features/assistant/index.d.ts +2 -1
- package/dist/components/features/assistant/types.d.ts +66 -3
- package/dist/data-table/index.mjs +1 -2
- package/dist/{data-table-CJiQQ6TM.mjs → data-table-s2YrE79S.mjs} +39 -66
- package/dist/date-picker/index.mjs +3 -3
- package/dist/date-time/index.mjs +1 -2
- package/dist/{date-time-lZdefM4H.mjs → date-time-BBRVM9qb.mjs} +4 -6
- package/dist/date-time-picker/index.mjs +1 -2
- package/dist/{date-time-picker-CricsXgF.mjs → date-time-picker-CLdaGiGC.mjs} +3 -4
- package/dist/{date-time-range-picker-DM4AIvQ1.mjs → date-time-range-picker-RZX4CS4b.mjs} +36 -59
- package/dist/dialog/index.mjs +1 -2
- package/dist/{dialog-Gu70fban.mjs → dialog-C8RXIQYm.mjs} +4 -5
- package/dist/{dialog-CmkrpaYy.mjs → dialog-D6sDXaH6.mjs} +2 -3
- package/dist/dropdown/index.mjs +1 -2
- package/dist/{dropdown-Xvduih96.mjs → dropdown-DR9j3Ni_.mjs} +3 -4
- package/dist/{dropdown-menu-b8zY5Cs6.mjs → dropdown-menu-CjgTr8Ab.mjs} +2 -3
- package/dist/dropzone/index.mjs +1 -2
- package/dist/{dropzone-ihksfjN2.mjs → dropzone-Cer9E-VH.mjs} +6 -8
- package/dist/empty-content/index.mjs +1 -2
- package/dist/{empty-content-CmuVcU0P.mjs → empty-content-B2FZ9cyt.mjs} +8 -13
- package/dist/form/adapters/conform/index.mjs +4 -6
- package/dist/form/adapters/rhf/index.mjs +6 -9
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +11 -16
- package/dist/{form-D4R6C609.mjs → form-C4XcxxjK.mjs} +54 -86
- package/dist/{form-context-DzB2a-dw.mjs → form-context-BRzt53M5.mjs} +1 -2
- package/dist/grid/index.mjs +1 -2
- package/dist/grouped-table/index.mjs +1 -2
- package/dist/{grouped-table-fHguJz9W.mjs → grouped-table-32RO2v7U.mjs} +16 -24
- package/dist/hooks/index.mjs +4 -4
- package/dist/{hooks-CwZ6hyI1.mjs → hooks-WVJbyhCz.mjs} +1 -2
- package/dist/hover-card/index.mjs +1 -2
- package/dist/{hover-card-BNOE5vT5.mjs → hover-card-DSt1lZGg.mjs} +3 -5
- package/dist/{icon-wrapper-DKfJlJd0.mjs → icon-wrapper-CIk2th6R.mjs} +1 -2
- package/dist/icons/index.mjs +3 -3
- package/dist/index.mjs +79 -79
- package/dist/input/index.mjs +1 -2
- package/dist/{input-j4tbmYYz.mjs → input-DsT5qkJn.mjs} +3 -4
- package/dist/{input-DR-XbgpD.mjs → input-Wl1K48ca.mjs} +2 -3
- package/dist/input-group/index.mjs +1 -2
- package/dist/{input-group-DieA8aBt.mjs → input-group-CCzvJIZM.mjs} +5 -6
- package/dist/input-number/index.mjs +1 -2
- package/dist/{input-number-TXmW-X9o.mjs → input-number-DF-bfIo8.mjs} +5 -6
- package/dist/input-with-addons/index.mjs +2 -3
- package/dist/label/index.mjs +1 -2
- package/dist/{label-Bk6FXsju.mjs → label-BR1V3Imy.mjs} +3 -5
- package/dist/{layers-DWYdrGmC.mjs → layers-XEND2WKv.mjs} +17 -26
- package/dist/loader-overlay/index.mjs +1 -2
- package/dist/{loader-overlay-DD94azZX.mjs → loader-overlay-JvB8IQo3.mjs} +3 -4
- package/dist/logo/index.mjs +2 -2
- package/dist/logo/themed/index.mjs +3 -4
- package/dist/{logo-C3FxD7jb.mjs → logo-CkzKra6H.mjs} +2 -3
- package/dist/{logo-text-Dpm5O6Kg.mjs → logo-text-B54YiEte.mjs} +6 -11
- package/dist/logs/fixtures/index.mjs +2 -4
- package/dist/logs/index.mjs +34 -56
- package/dist/map/index.mjs +1 -2
- package/dist/{map-leaflet-imports-S3kx8Q-S.mjs → map-leaflet-imports-Xdz9Xiaf.mjs} +1 -2
- package/dist/mobile-sheet/index.mjs +1 -2
- package/dist/{mobile-sheet-9TootJGg.mjs → mobile-sheet-1995HYY_.mjs} +6 -9
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-C3DYWO0a.mjs → more-actions-D9k1ILzT.mjs} +6 -7
- package/dist/{motion-DvGRWdsm.mjs → motion-DOrRbLmy.mjs} +1 -2
- package/dist/multi-select/index.mjs +1 -2
- package/dist/{multi-select-CF0Yq5yf.mjs → multi-select-BUgx6VZF.mjs} +11 -15
- package/dist/nprogress/index.mjs +1 -2
- package/dist/page-title/index.mjs +1 -2
- package/dist/{page-title-ipRWEOeM.mjs → page-title-Djl3LvPT.mjs} +2 -3
- package/dist/picker/index.mjs +2 -2
- package/dist/{picker-BoKXW6_s.mjs → picker-C0h30DHf.mjs} +14 -25
- package/dist/popover/index.mjs +1 -2
- package/dist/{popover-X82NwhX9.mjs → popover-7YxyP_W0.mjs} +3 -5
- package/dist/radio-group/index.mjs +1 -2
- package/dist/{radio-group-LduBVTnh.mjs → radio-group-0RxTmRnF.mjs} +3 -5
- package/dist/responsive-dropdown/index.mjs +1 -2
- package/dist/{responsive-dropdown-C_KKgLbH.mjs → responsive-dropdown-DsWgpE_i.mjs} +5 -6
- package/dist/responsive-popover/index.mjs +1 -2
- package/dist/{responsive-popover-8VcjBM2d.mjs → responsive-popover-DJYd8lOK.mjs} +5 -6
- package/dist/rich-text-content/index.mjs +1 -2
- package/dist/{rich-text-content-DNonBD39.mjs → rich-text-content-BiIIowBU.mjs} +2 -3
- package/dist/rich-text-editor/index.mjs +2 -2
- package/dist/{rich-text-editor-DP5JnAoO.mjs → rich-text-editor-ibngjhQV.mjs} +16 -24
- package/dist/select/index.mjs +1 -2
- package/dist/{select-D4pk9e2d.mjs → select-DemYhwnG.mjs} +3 -4
- package/dist/{select-daE2Nn0Z.mjs → select-jgK6wyXj.mjs} +2 -3
- package/dist/separator/index.mjs +1 -2
- package/dist/{separator-vbPD_WFQ.mjs → separator-DNiiN2BN.mjs} +2 -3
- package/dist/settings-nav/index.mjs +1 -2
- package/dist/{settings-nav-Hf3GrCGv.mjs → settings-nav-CCZdPD-x.mjs} +2 -3
- package/dist/sheet/index.mjs +2 -2
- package/dist/{sheet-DHn6C_rs.mjs → sheet-DEpEJ_Rk.mjs} +4 -5
- package/dist/{sheet-DXCZyMHI.mjs → sheet-DYPtVIb2.mjs} +2 -3
- package/dist/sidebar/index.mjs +1 -2
- package/dist/{sidebar-sbqOOFii.mjs → sidebar-DWnxQWQ8.mjs} +13 -18
- package/dist/skeleton/index.mjs +3 -4
- package/dist/{skeleton-DFExK4GX.mjs → skeleton-CDPoo7-M.mjs} +2 -3
- package/dist/spinner/index.mjs +1 -2
- package/dist/{spinner-C5Xv-i2C.mjs → spinner-DjEpx6Q3.mjs} +2 -3
- package/dist/{spinner.icon-BYUMQ8H-.mjs → spinner.icon-D0SKuGFG.mjs} +2 -3
- package/dist/stepper/index.mjs +1 -2
- package/dist/{stepper-dNvkipop.mjs → stepper-ZipxpzWY.mjs} +10 -11
- package/dist/styles/themes/alpha.css +1 -1
- package/dist/switch/index.mjs +1 -2
- package/dist/{switch-BaR-Vna4.mjs → switch-CWvVN9ea.mjs} +2 -3
- package/dist/table/index.mjs +2 -3
- package/dist/tabs/index.mjs +2 -3
- package/dist/tag-input/index.mjs +1 -2
- package/dist/{tag-input-c9OvWTSe.mjs → tag-input-DAMY703F.mjs} +8 -12
- package/dist/task-queue/index.mjs +1 -2
- package/dist/{task-queue-dropdown-CHPP5WIm.mjs → task-queue-dropdown-BgQSGDwg.mjs} +39 -59
- package/dist/textarea/index.mjs +1 -2
- package/dist/{textarea-DiSGxCBO.mjs → textarea-CvhdK6JY.mjs} +3 -4
- package/dist/{textarea-CCxpXJdh.mjs → textarea-D36SE4ki.mjs} +2 -3
- package/dist/theme/index.mjs +1 -2
- package/dist/{themes-Ba2bajuF.mjs → themes-BoxnQbbu.mjs} +8 -10
- package/dist/time-picker/index.mjs +1 -2
- package/dist/{time-picker-DQlc2gKW.mjs → time-picker-DgHjdcMZ.mjs} +3 -4
- package/dist/{to-api-format-QuJ81vQ9.mjs → to-api-format-EZInfj0_.mjs} +15 -23
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-BUPlDkN3.mjs → toast-CizxCEcK.mjs} +4 -6
- package/dist/tooltip/index.mjs +1 -2
- package/dist/{tooltip-DhbN1BDK.mjs → tooltip-OIySjJWW.mjs} +3 -5
- package/dist/transfer/index.mjs +1 -2
- package/dist/{transfer-DsshYgIk.mjs → transfer-91lwTOhX.mjs} +8 -14
- package/dist/{types-agDpVXBG.mjs → types-ChINrR8H.mjs} +7 -11
- package/dist/typography/index.mjs +1 -2
- package/dist/{typography-q71iTG72.mjs → typography-XFfN6PGD.mjs} +5 -6
- package/dist/{use-breakpoint-CwiUJSmk.mjs → use-breakpoint-zY_JYINK.mjs} +1 -2
- package/dist/{use-controllable-state-Dna7u3r9.mjs → use-controllable-state-DLeVgbAb.mjs} +1 -2
- package/dist/{use-copy-to-clipboard-DZDq_85T.mjs → use-copy-to-clipboard-CWKWHLxI.mjs} +1 -2
- package/dist/{use-debounced-search-input-yu_F0QBt.mjs → use-debounced-search-input-B4u28iLx.mjs} +1 -2
- package/dist/{use-deprecation-warning-DXrGc0jX.mjs → use-deprecation-warning-BS1V4IS5.mjs} +1 -2
- package/dist/{use-display-touched-CMEEv7aT.mjs → use-display-touched-BSq0Ninl.mjs} +3 -5
- package/dist/{use-option-picker-s2bUYwXC.mjs → use-option-picker-CBMU72LU.mjs} +6 -9
- package/dist/{use-toast-Bpq0yJIT.mjs → use-toast-CZAZeS95.mjs} +3 -5
- package/dist/utils/index.mjs +3 -3
- package/dist/{utils-CA4QEIJ8.mjs → utils-CPJ5MCfd.mjs} +1 -2
- package/dist/{utils-Bu32wN-x.mjs → utils-CTIuhCOs.mjs} +1 -2
- package/dist/visually-hidden/index.mjs +1 -2
- package/dist/{visuallyhidden-D7L_qs8b.mjs → visuallyhidden-Mg4OsZ-l.mjs} +1 -2
- package/dist/{zod-helpers-YEhVo2S-.mjs → zod-helpers-JcfFVJJd.mjs} +1 -2
- package/package.json +20 -20
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
4
|
-
import { t as Checkbox } from "./checkbox-C6P12fio.mjs";
|
|
5
|
-
import { t as Dialog } from "./dialog-Gu70fban.mjs";
|
|
6
|
-
import { t as useControllableState } from "./use-controllable-state-Dna7u3r9.mjs";
|
|
7
|
-
import { t as Input } from "./input-j4tbmYYz.mjs";
|
|
8
|
-
import { t as Label } from "./label-Bk6FXsju.mjs";
|
|
9
|
-
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-LduBVTnh.mjs";
|
|
10
|
-
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-D4pk9e2d.mjs";
|
|
11
|
-
import { t as Tooltip } from "./tooltip-DhbN1BDK.mjs";
|
|
12
|
-
import { t as Switch } from "./switch-BaR-Vna4.mjs";
|
|
13
|
-
import { t as Textarea } from "./textarea-DiSGxCBO.mjs";
|
|
14
|
-
import { t as Autocomplete } from "./autocomplete-BxtzndxZ.mjs";
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { t as Autocomplete } from "./autocomplete-fSSmRLYK.mjs";
|
|
15
3
|
import { Autosearch } from "./autosearch/index.mjs";
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
4
|
+
import { t as Button } from "./button-Dj6cKrWj.mjs";
|
|
5
|
+
import { n as useFormContext$1, t as FormProvider } from "./form-context-BRzt53M5.mjs";
|
|
6
|
+
import { t as Checkbox } from "./checkbox-CNljVnKj.mjs";
|
|
7
|
+
import { t as Label } from "./label-BR1V3Imy.mjs";
|
|
8
|
+
import { t as toast } from "./toast-CizxCEcK.mjs";
|
|
9
|
+
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-CWKWHLxI.mjs";
|
|
10
|
+
import { t as CalendarDatePicker } from "./calendar-date-picker-BUwgVaI1.mjs";
|
|
11
|
+
import { t as DateTimePicker } from "./date-time-picker-CLdaGiGC.mjs";
|
|
12
|
+
import { t as Dialog } from "./dialog-C8RXIQYm.mjs";
|
|
13
|
+
import { t as useControllableState } from "./use-controllable-state-DLeVgbAb.mjs";
|
|
14
|
+
import { t as Tooltip } from "./tooltip-OIySjJWW.mjs";
|
|
15
|
+
import { t as Icon } from "./icon-wrapper-CIk2th6R.mjs";
|
|
16
|
+
import { n as useAdapter } from "./adapter-context-XT749tyT.mjs";
|
|
17
|
+
import { t as Input } from "./input-DsT5qkJn.mjs";
|
|
22
18
|
import { InputWithAddons } from "./input-with-addons/index.mjs";
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
19
|
+
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-0RxTmRnF.mjs";
|
|
20
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-DemYhwnG.mjs";
|
|
21
|
+
import { t as Switch } from "./switch-CWvVN9ea.mjs";
|
|
22
|
+
import { t as Textarea } from "./textarea-CvhdK6JY.mjs";
|
|
23
|
+
import { t as TimePicker } from "./time-picker-DgHjdcMZ.mjs";
|
|
24
|
+
import { t as Transfer } from "./transfer-91lwTOhX.mjs";
|
|
25
25
|
import { CheckIcon, CircleHelp, CopyIcon } from "lucide-react";
|
|
26
26
|
import * as React from "react";
|
|
27
27
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
-
|
|
28
|
+
// src/components/features/form/context/field-context.tsx
|
|
29
29
|
const FieldContext = React.createContext(null);
|
|
30
30
|
function FieldProvider({ children, value }) {
|
|
31
31
|
return /* @__PURE__ */ jsx(FieldContext, {
|
|
@@ -45,8 +45,7 @@ function useFieldContext$1() {
|
|
|
45
45
|
function useOptionalFieldContext() {
|
|
46
46
|
return React.use(FieldContext);
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
//#region src/components/features/form/components/form-autocomplete.tsx
|
|
48
|
+
// src/components/features/form/components/form-autocomplete.tsx
|
|
50
49
|
/**
|
|
51
50
|
* Form.Autocomplete - Searchable select component
|
|
52
51
|
*
|
|
@@ -105,8 +104,7 @@ function FormAutocomplete({ disabled, className, ...props }) {
|
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
FormAutocomplete.displayName = "Form.Autocomplete";
|
|
108
|
-
|
|
109
|
-
//#region src/components/features/form/components/form-autosearch.tsx
|
|
107
|
+
// src/components/features/form/components/form-autosearch.tsx
|
|
110
108
|
/**
|
|
111
109
|
* Form.Autosearch - Search-first input with dropdown results
|
|
112
110
|
*
|
|
@@ -158,8 +156,7 @@ function FormAutosearch({ disabled, className, inputClassName, ...props }) {
|
|
|
158
156
|
});
|
|
159
157
|
}
|
|
160
158
|
FormAutosearch.displayName = "Form.Autosearch";
|
|
161
|
-
|
|
162
|
-
//#region src/components/features/form/components/form-button.tsx
|
|
159
|
+
// src/components/features/form/components/form-button.tsx
|
|
163
160
|
/**
|
|
164
161
|
* Form.Button - A button for non-submit actions within a form
|
|
165
162
|
*
|
|
@@ -191,8 +188,7 @@ function FormButton({ children, onClick, type = "quaternary", theme = "borderles
|
|
|
191
188
|
});
|
|
192
189
|
}
|
|
193
190
|
FormButton.displayName = "Form.Button";
|
|
194
|
-
|
|
195
|
-
//#region src/components/features/form/components/form-checkbox.tsx
|
|
191
|
+
// src/components/features/form/components/form-checkbox.tsx
|
|
196
192
|
/**
|
|
197
193
|
* Form.Checkbox - Checkbox input component
|
|
198
194
|
*
|
|
@@ -230,8 +226,7 @@ function FormCheckbox({ label, disabled, className }) {
|
|
|
230
226
|
});
|
|
231
227
|
}
|
|
232
228
|
FormCheckbox.displayName = "Form.Checkbox";
|
|
233
|
-
|
|
234
|
-
//#region src/components/features/form/components/form-combobox.tsx
|
|
229
|
+
// src/components/features/form/components/form-combobox.tsx
|
|
235
230
|
function FormCombobox({ options, placeholder, searchPlaceholder, emptyMessage, disabled, className, triggerClassName, contentClassName, searchable = true, "data-testid": _testId, modal }) {
|
|
236
231
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
237
232
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -257,8 +252,7 @@ function FormCombobox({ options, placeholder, searchPlaceholder, emptyMessage, d
|
|
|
257
252
|
});
|
|
258
253
|
}
|
|
259
254
|
FormCombobox.displayName = "Form.Combobox";
|
|
260
|
-
|
|
261
|
-
//#region src/components/features/form/components/form-copy-box.tsx
|
|
255
|
+
// src/components/features/form/components/form-copy-box.tsx
|
|
262
256
|
/**
|
|
263
257
|
* Form.CopyBox - Read-only field with copy-to-clipboard functionality
|
|
264
258
|
*
|
|
@@ -326,8 +320,7 @@ function FormCopyBox({ variant = "default", className, contentClassName, buttonC
|
|
|
326
320
|
});
|
|
327
321
|
}
|
|
328
322
|
FormCopyBox.displayName = "Form.CopyBox";
|
|
329
|
-
|
|
330
|
-
//#region src/components/features/form/components/form-custom.tsx
|
|
323
|
+
// src/components/features/form/components/form-custom.tsx
|
|
331
324
|
/**
|
|
332
325
|
* Form.Custom - Escape hatch for custom implementations
|
|
333
326
|
*
|
|
@@ -367,8 +360,7 @@ function FormCustom({ children }) {
|
|
|
367
360
|
return /* @__PURE__ */ jsx(Fragment$1, { children: children(renderProps) });
|
|
368
361
|
}
|
|
369
362
|
FormCustom.displayName = "Form.Custom";
|
|
370
|
-
|
|
371
|
-
//#region src/components/features/form/components/form-date-picker.tsx
|
|
363
|
+
// src/components/features/form/components/form-date-picker.tsx
|
|
372
364
|
function FormDatePicker({ placeholder, disabled, className, triggerClassName, numberOfMonths = 1, minDate: minDateProp, maxDate: maxDateProp, disableFuture, disablePast, modal }) {
|
|
373
365
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
374
366
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -437,8 +429,7 @@ function FormDatePicker({ placeholder, disabled, className, triggerClassName, nu
|
|
|
437
429
|
});
|
|
438
430
|
}
|
|
439
431
|
FormDatePicker.displayName = "Form.DatePicker";
|
|
440
|
-
|
|
441
|
-
//#region src/components/features/form/components/form-date-time-picker.tsx
|
|
432
|
+
// src/components/features/form/components/form-date-time-picker.tsx
|
|
442
433
|
function FormDateTimePicker({ minDate: minDateProp, maxDate: maxDateProp, disabledDates, timezone, showTimezoneIndicator, placeholder, disabled, className, modal }) {
|
|
443
434
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
444
435
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -471,8 +462,7 @@ function FormDateTimePicker({ minDate: minDateProp, maxDate: maxDateProp, disabl
|
|
|
471
462
|
});
|
|
472
463
|
}
|
|
473
464
|
FormDateTimePicker.displayName = "Form.DateTimePicker";
|
|
474
|
-
|
|
475
|
-
//#region src/components/features/form/components/form-description.tsx
|
|
465
|
+
// src/components/features/form/components/form-description.tsx
|
|
476
466
|
/**
|
|
477
467
|
* Form.Description - Display field description/helper text
|
|
478
468
|
*
|
|
@@ -496,8 +486,7 @@ function FormDescription({ children, className }) {
|
|
|
496
486
|
});
|
|
497
487
|
}
|
|
498
488
|
FormDescription.displayName = "Form.Description";
|
|
499
|
-
|
|
500
|
-
//#region src/components/features/form/components/form-dialog.tsx
|
|
489
|
+
// src/components/features/form/components/form-dialog.tsx
|
|
501
490
|
/**
|
|
502
491
|
* Form.Dialog - A dialog with an integrated form
|
|
503
492
|
*
|
|
@@ -622,8 +611,7 @@ function FormDialog({ open, onOpenChange, defaultOpen, title, description, trigg
|
|
|
622
611
|
});
|
|
623
612
|
}
|
|
624
613
|
FormDialog.displayName = "Form.Dialog";
|
|
625
|
-
|
|
626
|
-
//#region src/components/features/form/components/form-error.tsx
|
|
614
|
+
// src/components/features/form/components/form-error.tsx
|
|
627
615
|
/**
|
|
628
616
|
* Form.Error - Display field errors
|
|
629
617
|
*
|
|
@@ -662,8 +650,7 @@ function FormError({ children, className }) {
|
|
|
662
650
|
});
|
|
663
651
|
}
|
|
664
652
|
FormError.displayName = "Form.Error";
|
|
665
|
-
|
|
666
|
-
//#region src/components/features/form/components/form-field.tsx
|
|
653
|
+
// src/components/features/form/components/form-field.tsx
|
|
667
654
|
function FieldLabel({ htmlFor, label, hasErrors, required, tooltip, className }) {
|
|
668
655
|
const [isTooltipVisible, setIsTooltipVisible] = React.useState(false);
|
|
669
656
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -817,8 +804,7 @@ function FormField({ name, children, label, description, tooltip, required = fal
|
|
|
817
804
|
});
|
|
818
805
|
}
|
|
819
806
|
FormField.displayName = "Form.Field";
|
|
820
|
-
|
|
821
|
-
//#region src/components/features/form/components/form-field-array.tsx
|
|
807
|
+
// src/components/features/form/components/form-field-array.tsx
|
|
822
808
|
/**
|
|
823
809
|
* Form.FieldArray - Dynamic array of fields with append/remove/move helpers.
|
|
824
810
|
*
|
|
@@ -852,8 +838,7 @@ function FormFieldArray({ name, children }) {
|
|
|
852
838
|
return /* @__PURE__ */ jsx(Fragment$1, { children: children(renderProps) });
|
|
853
839
|
}
|
|
854
840
|
FormFieldArray.displayName = "Form.FieldArray";
|
|
855
|
-
|
|
856
|
-
//#region src/components/features/form/components/form-input.tsx
|
|
841
|
+
// src/components/features/form/components/form-input.tsx
|
|
857
842
|
/**
|
|
858
843
|
* Form.Input - Text input component
|
|
859
844
|
*
|
|
@@ -886,8 +871,7 @@ function FormInput({ ref, type = "text", className, disabled, ...props }) {
|
|
|
886
871
|
});
|
|
887
872
|
}
|
|
888
873
|
FormInput.displayName = "Form.Input";
|
|
889
|
-
|
|
890
|
-
//#region src/components/features/form/components/form-input-group.tsx
|
|
874
|
+
// src/components/features/form/components/form-input-group.tsx
|
|
891
875
|
/**
|
|
892
876
|
* Form.InputGroup - Input with leading/trailing addons
|
|
893
877
|
*
|
|
@@ -919,8 +903,7 @@ function FormInputGroup({ ref, className, disabled, ...props }) {
|
|
|
919
903
|
});
|
|
920
904
|
}
|
|
921
905
|
FormInputGroup.displayName = "Form.InputGroup";
|
|
922
|
-
|
|
923
|
-
//#region src/components/features/form/components/form-radio-group.tsx
|
|
906
|
+
// src/components/features/form/components/form-radio-group.tsx
|
|
924
907
|
/**
|
|
925
908
|
* Form.RadioGroup - Radio button group component
|
|
926
909
|
*
|
|
@@ -988,8 +971,7 @@ function FormRadioItem({ value, label, description, disabled }) {
|
|
|
988
971
|
});
|
|
989
972
|
}
|
|
990
973
|
FormRadioItem.displayName = "Form.RadioItem";
|
|
991
|
-
|
|
992
|
-
//#region src/components/features/form/components/form-root.tsx
|
|
974
|
+
// src/components/features/form/components/form-root.tsx
|
|
993
975
|
/**
|
|
994
976
|
* Form.Root - Root form container that integrates with the active adapter.
|
|
995
977
|
*
|
|
@@ -1146,8 +1128,7 @@ function FormRoot({ schema, children, onSubmit, action, method = "POST", formCom
|
|
|
1146
1128
|
});
|
|
1147
1129
|
}
|
|
1148
1130
|
FormRoot.displayName = "Form.Root";
|
|
1149
|
-
|
|
1150
|
-
//#region src/components/features/form/components/form-select.tsx
|
|
1131
|
+
// src/components/features/form/components/form-select.tsx
|
|
1151
1132
|
/**
|
|
1152
1133
|
* Form.Select - Select dropdown component
|
|
1153
1134
|
*
|
|
@@ -1200,8 +1181,7 @@ function FormSelectItem({ value, children, disabled }) {
|
|
|
1200
1181
|
});
|
|
1201
1182
|
}
|
|
1202
1183
|
FormSelectItem.displayName = "Form.SelectItem";
|
|
1203
|
-
|
|
1204
|
-
//#region src/components/features/form/components/form-submit.tsx
|
|
1184
|
+
// src/components/features/form/components/form-submit.tsx
|
|
1205
1185
|
/**
|
|
1206
1186
|
* Form.Submit - Submit button with automatic loading state
|
|
1207
1187
|
*
|
|
@@ -1224,8 +1204,7 @@ function FormSubmit({ children, loadingText, loading = false, ...props }) {
|
|
|
1224
1204
|
});
|
|
1225
1205
|
}
|
|
1226
1206
|
FormSubmit.displayName = "Form.Submit";
|
|
1227
|
-
|
|
1228
|
-
//#region src/components/features/form/components/form-switch.tsx
|
|
1207
|
+
// src/components/features/form/components/form-switch.tsx
|
|
1229
1208
|
/**
|
|
1230
1209
|
* Form.Switch - Toggle switch component
|
|
1231
1210
|
*
|
|
@@ -1263,8 +1242,7 @@ function FormSwitch({ label, disabled, className }) {
|
|
|
1263
1242
|
});
|
|
1264
1243
|
}
|
|
1265
1244
|
FormSwitch.displayName = "Form.Switch";
|
|
1266
|
-
|
|
1267
|
-
//#region src/components/features/form/components/form-textarea.tsx
|
|
1245
|
+
// src/components/features/form/components/form-textarea.tsx
|
|
1268
1246
|
/**
|
|
1269
1247
|
* Form.Textarea - Multi-line text input component
|
|
1270
1248
|
*
|
|
@@ -1297,8 +1275,7 @@ function FormTextarea({ ref, className, disabled, rows = 3, ...props }) {
|
|
|
1297
1275
|
});
|
|
1298
1276
|
}
|
|
1299
1277
|
FormTextarea.displayName = "Form.Textarea";
|
|
1300
|
-
|
|
1301
|
-
//#region src/components/features/form/components/form-time-picker.tsx
|
|
1278
|
+
// src/components/features/form/components/form-time-picker.tsx
|
|
1302
1279
|
function FormTimePicker({ min, max, step, placeholder, disabled, className }) {
|
|
1303
1280
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
1304
1281
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -1323,8 +1300,7 @@ function FormTimePicker({ min, max, step, placeholder, disabled, className }) {
|
|
|
1323
1300
|
});
|
|
1324
1301
|
}
|
|
1325
1302
|
FormTimePicker.displayName = "Form.TimePicker";
|
|
1326
|
-
|
|
1327
|
-
//#region src/components/features/form/components/form-transfer.tsx
|
|
1303
|
+
// src/components/features/form/components/form-transfer.tsx
|
|
1328
1304
|
/**
|
|
1329
1305
|
* Form.Transfer - Transfer list component for selecting multiple items
|
|
1330
1306
|
*
|
|
@@ -1368,8 +1344,7 @@ function FormTransfer({ disabled, minItems, maxItems, ...props }) {
|
|
|
1368
1344
|
})] });
|
|
1369
1345
|
}
|
|
1370
1346
|
FormTransfer.displayName = "Form.Transfer";
|
|
1371
|
-
|
|
1372
|
-
//#region src/components/features/form/hooks/use-watch.ts
|
|
1347
|
+
// src/components/features/form/hooks/use-watch.ts
|
|
1373
1348
|
/**
|
|
1374
1349
|
* Hook to watch a field's value reactively.
|
|
1375
1350
|
* Delegates to the active adapter's useWatch implementation.
|
|
@@ -1403,8 +1378,7 @@ function useWatch(name) {
|
|
|
1403
1378
|
function useWatchAll(names) {
|
|
1404
1379
|
return useAdapter().useWatchAll(names);
|
|
1405
1380
|
}
|
|
1406
|
-
|
|
1407
|
-
//#region src/components/features/form/components/form-when.tsx
|
|
1381
|
+
// src/components/features/form/components/form-when.tsx
|
|
1408
1382
|
/**
|
|
1409
1383
|
* Form.When - Conditional rendering based on field values
|
|
1410
1384
|
*
|
|
@@ -1444,8 +1418,7 @@ function FormWhen({ field, is, isNot, in: inArray, notIn, children }) {
|
|
|
1444
1418
|
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
1445
1419
|
}
|
|
1446
1420
|
FormWhen.displayName = "Form.When";
|
|
1447
|
-
|
|
1448
|
-
//#region src/components/features/form/hooks/use-field.ts
|
|
1421
|
+
// src/components/features/form/hooks/use-field.ts
|
|
1449
1422
|
/**
|
|
1450
1423
|
* Hook to access and control a specific field.
|
|
1451
1424
|
* Delegates to the active adapter's useField implementation.
|
|
@@ -1491,8 +1464,7 @@ function useField(name) {
|
|
|
1491
1464
|
errors: fieldState.errors
|
|
1492
1465
|
};
|
|
1493
1466
|
}
|
|
1494
|
-
|
|
1495
|
-
//#region src/components/features/form/hooks/use-field-context.ts
|
|
1467
|
+
// src/components/features/form/hooks/use-field-context.ts
|
|
1496
1468
|
/**
|
|
1497
1469
|
* Hook to access the current field context
|
|
1498
1470
|
* Must be used within a Form.Field component
|
|
@@ -1517,8 +1489,7 @@ function useField(name) {
|
|
|
1517
1489
|
function useFieldContext() {
|
|
1518
1490
|
return useFieldContext$1();
|
|
1519
1491
|
}
|
|
1520
|
-
|
|
1521
|
-
//#region src/components/features/form/hooks/use-form-context.ts
|
|
1492
|
+
// src/components/features/form/hooks/use-form-context.ts
|
|
1522
1493
|
/**
|
|
1523
1494
|
* Hook to access the form context
|
|
1524
1495
|
*
|
|
@@ -1538,8 +1509,7 @@ function useFieldContext() {
|
|
|
1538
1509
|
function useFormContext() {
|
|
1539
1510
|
return useFormContext$1();
|
|
1540
1511
|
}
|
|
1541
|
-
|
|
1542
|
-
//#region src/components/features/form/hooks/use-form-state.ts
|
|
1512
|
+
// src/components/features/form/hooks/use-form-state.ts
|
|
1543
1513
|
/**
|
|
1544
1514
|
* Hook to access form-level state (dirty, valid, submitted, etc.)
|
|
1545
1515
|
*
|
|
@@ -1578,8 +1548,7 @@ function useFormState() {
|
|
|
1578
1548
|
touchedFields: ctx.touchedFields
|
|
1579
1549
|
};
|
|
1580
1550
|
}
|
|
1581
|
-
|
|
1582
|
-
//#region src/components/features/form/index.ts
|
|
1551
|
+
// src/components/features/form/index.ts
|
|
1583
1552
|
/**
|
|
1584
1553
|
* Datum Form Library
|
|
1585
1554
|
*
|
|
@@ -1730,5 +1699,4 @@ const Form = {
|
|
|
1730
1699
|
useWatch,
|
|
1731
1700
|
useWatchAll
|
|
1732
1701
|
};
|
|
1733
|
-
//#endregion
|
|
1734
1702
|
export { FormCheckbox as A, FormDialog as C, FormCustom as D, FormDatePicker as E, FormAutosearch as M, FormAutocomplete as N, FormCopyBox as O, FormError as S, FormDateTimePicker as T, FormRadioGroup as _, useField as a, FormFieldArray as b, useWatchAll as c, FormTextarea as d, FormSwitch as f, FormRoot as g, FormSelectItem as h, useFieldContext as i, FormButton as j, FormCombobox as k, FormTransfer as l, FormSelect as m, useFormState as n, FormWhen as o, FormSubmit as p, useFormContext as r, useWatch as s, Form as t, FormTimePicker as u, FormRadioItem as v, FormDescription as w, FormField as x, FormInput as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/features/form/context/form-context.tsx
|
|
4
4
|
const FormContext = React.createContext(null);
|
|
5
5
|
function FormProvider({ children, value }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(FormContext, {
|
|
@@ -13,5 +13,4 @@ function useFormContext() {
|
|
|
13
13
|
if (!context) throw new Error("useFormContext must be used within a Form.Root component");
|
|
14
14
|
return context;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useFormContext as n, FormProvider as t };
|
package/dist/grid/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Col, GRID_BREAKPOINTS, GRID_COLUMNS, GRID_PREFIX, RESPONSIVE_ARRAY, RESPONSIVE_MAP, Row, RowContext, getGutter, getResponsiveValue, registerMediaQuery };
|
|
1
|
+
export { t as Col, s as GRID_BREAKPOINTS, c as GRID_COLUMNS, l as GRID_PREFIX, u as RESPONSIVE_ARRAY, d as RESPONSIVE_MAP, n as Row, r as RowContext, i as getGutter, a as getResponsiveValue, o as registerMediaQuery } from "../col-CYHIfPJq.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { GroupedTable };
|
|
1
|
+
export { t as GroupedTable } from "../grouped-table-32RO2v7U.mjs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as Button } from "./button-DoMqfQLu.mjs";
|
|
3
|
-
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
4
2
|
import { Collapsible, CollapsibleTrigger } from "./collapsible/index.mjs";
|
|
5
|
-
import { t as useControllableState } from "./use-controllable-state-Dna7u3r9.mjs";
|
|
6
|
-
import { Skeleton } from "./skeleton/index.mjs";
|
|
7
3
|
import { TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table/index.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { f as rowMatchesSearch, g as createSelectionColumn, h as DataTableColumnHeader, m as DataTableRowActions, p as dataTableFeatures } from "./data-table-
|
|
10
|
-
import { n as
|
|
4
|
+
import { t as Icon } from "./icon-wrapper-CIk2th6R.mjs";
|
|
5
|
+
import { f as rowMatchesSearch, g as createSelectionColumn, h as DataTableColumnHeader, m as DataTableRowActions, p as dataTableFeatures } from "./data-table-s2YrE79S.mjs";
|
|
6
|
+
import { n as EASE } from "./motion-DOrRbLmy.mjs";
|
|
7
|
+
import { Skeleton } from "./skeleton/index.mjs";
|
|
8
|
+
import { n as useDebouncedSearchInput } from "./use-debounced-search-input-B4u28iLx.mjs";
|
|
9
|
+
import { t as Button } from "./button-Dj6cKrWj.mjs";
|
|
11
10
|
import { InputWithAddons } from "./input-with-addons/index.mjs";
|
|
11
|
+
import { t as useControllableState } from "./use-controllable-state-DLeVgbAb.mjs";
|
|
12
12
|
import { ChevronRight, Search, X } from "lucide-react";
|
|
13
13
|
import { useCallback, useMemo, useState } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { motion, useReducedMotion } from "motion/react";
|
|
16
16
|
import { flexRender, useTable } from "@tanstack/react-table";
|
|
17
|
-
|
|
17
|
+
// src/components/features/grouped-table/components/grouped-collapsible-body.tsx
|
|
18
18
|
const OPEN_TRANSITION = {
|
|
19
19
|
duration: .18,
|
|
20
20
|
ease: EASE.out
|
|
@@ -46,8 +46,7 @@ function GroupedCollapsibleBody({ open, reduceMotion, children }) {
|
|
|
46
46
|
}), children]
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
//#region src/components/features/grouped-table/components/grouped-skeleton.tsx
|
|
49
|
+
// src/components/features/grouped-table/components/grouped-skeleton.tsx
|
|
51
50
|
function GroupedSkeleton({ columns = 4, groups = 2, rowsPerGroup = 3 }) {
|
|
52
51
|
return /* @__PURE__ */ jsx("div", {
|
|
53
52
|
"data-slot": "gt-skeleton",
|
|
@@ -62,8 +61,7 @@ function GroupedSkeleton({ columns = 4, groups = 2, rowsPerGroup = 3 }) {
|
|
|
62
61
|
}, r))] }, g))
|
|
63
62
|
});
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
//#region src/components/features/grouped-table/components/grouped-toolbar.tsx
|
|
64
|
+
// src/components/features/grouped-table/components/grouped-toolbar.tsx
|
|
67
65
|
function GroupedToolbar({ search, onSearchChange, placeholder = "Search...", debounceMs = 300, className }) {
|
|
68
66
|
const [value, setValue] = useDebouncedSearchInput(search, onSearchChange, debounceMs);
|
|
69
67
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -103,8 +101,7 @@ function GroupedToolbar({ search, onSearchChange, placeholder = "Search...", deb
|
|
|
103
101
|
})
|
|
104
102
|
});
|
|
105
103
|
}
|
|
106
|
-
|
|
107
|
-
//#region src/components/features/grouped-table/lib/bucket-rows.ts
|
|
104
|
+
// src/components/features/grouped-table/lib/bucket-rows.ts
|
|
108
105
|
/**
|
|
109
106
|
* Build per-group buckets of `filteredRows`, preserving the filtered order.
|
|
110
107
|
* `coreRows` are the unfiltered rows in group-concatenated order; we use their
|
|
@@ -128,8 +125,7 @@ function bucketRows(groups, coreRows, filteredRows) {
|
|
|
128
125
|
}
|
|
129
126
|
return buckets;
|
|
130
127
|
}
|
|
131
|
-
|
|
132
|
-
//#region src/components/features/grouped-table/lib/compose-columns.tsx
|
|
128
|
+
// src/components/features/grouped-table/lib/compose-columns.tsx
|
|
133
129
|
/** Wrap plain string headers in the sortable header; leave all other columns untouched. */
|
|
134
130
|
function withSortableHeaders(columns) {
|
|
135
131
|
return columns.map((col) => {
|
|
@@ -162,8 +158,7 @@ function composeColumns(columns, options) {
|
|
|
162
158
|
}];
|
|
163
159
|
return cols;
|
|
164
160
|
}
|
|
165
|
-
|
|
166
|
-
//#region src/components/features/grouped-table/lib/sort-rows.ts
|
|
161
|
+
// src/components/features/grouped-table/lib/sort-rows.ts
|
|
167
162
|
function compare(a, b) {
|
|
168
163
|
if (a == null && b == null) return 0;
|
|
169
164
|
if (a == null) return -1;
|
|
@@ -181,8 +176,7 @@ function sortRows(rows, sorting) {
|
|
|
181
176
|
const direction = desc ? -1 : 1;
|
|
182
177
|
return [...rows].sort((ra, rb) => direction * compare(ra.getValue(id), rb.getValue(id)));
|
|
183
178
|
}
|
|
184
|
-
|
|
185
|
-
//#region src/components/features/grouped-table/use-grouped-expansion.ts
|
|
179
|
+
// src/components/features/grouped-table/use-grouped-expansion.ts
|
|
186
180
|
function defaultFor(group, def) {
|
|
187
181
|
const fallback = def === "all" ? true : def === "none" ? false : Array.isArray(def) ? def.includes(group.id) : true;
|
|
188
182
|
return group.defaultOpen ?? fallback;
|
|
@@ -221,8 +215,7 @@ function useGroupedExpansion(groups, opts) {
|
|
|
221
215
|
])
|
|
222
216
|
};
|
|
223
217
|
}
|
|
224
|
-
|
|
225
|
-
//#region src/components/features/grouped-table/grouped-table.tsx
|
|
218
|
+
// src/components/features/grouped-table/grouped-table.tsx
|
|
226
219
|
/** Floor width for unsized (flex) columns so they keep their share instead of collapsing on narrow viewports. */
|
|
227
220
|
const MIN_FLEX_COLUMN_WIDTH = 120;
|
|
228
221
|
function columnWidth(col) {
|
|
@@ -406,5 +399,4 @@ function GroupedTable(props) {
|
|
|
406
399
|
}, slice.id);
|
|
407
400
|
})] }), true);
|
|
408
401
|
}
|
|
409
|
-
//#endregion
|
|
410
402
|
export { GroupedTable as t };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useBreakpoint } from "../use-breakpoint-
|
|
2
|
-
import { n as useDebouncedSearchInput, t as DEFAULT_SEARCH_DEBOUNCE_MS } from "../use-debounced-search-input-
|
|
3
|
-
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-
|
|
4
|
-
import { t as useDebounce } from "../hooks-
|
|
1
|
+
import { t as useBreakpoint } from "../use-breakpoint-zY_JYINK.mjs";
|
|
2
|
+
import { n as useDebouncedSearchInput, t as DEFAULT_SEARCH_DEBOUNCE_MS } from "../use-debounced-search-input-B4u28iLx.mjs";
|
|
3
|
+
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-CWKWHLxI.mjs";
|
|
4
|
+
import { t as useDebounce } from "../hooks-WVJbyhCz.mjs";
|
|
5
5
|
export { DEFAULT_SEARCH_DEBOUNCE_MS, useBreakpoint, useCopyToClipboard, useDebounce, useDebouncedSearchInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/hooks/use-debounce.ts
|
|
3
3
|
/**
|
|
4
4
|
* Custom hook that debounces a value
|
|
5
5
|
* @param value - The value to debounce
|
|
@@ -18,5 +18,4 @@ function useDebounce(value, delay) {
|
|
|
18
18
|
}, [value, delay]);
|
|
19
19
|
return debouncedValue;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { useDebounce as t };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
1
|
+
export { t as HoverCard, n as HoverCardContent, r as HoverCardTrigger } from "../hover-card-DSt1lZGg.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
5
|
-
|
|
5
|
+
// ../shadcn/ui/hover-card.tsx
|
|
6
6
|
function HoverCard$1({ ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(HoverCardPrimitive.Root, {
|
|
8
8
|
"data-slot": "hover-card",
|
|
@@ -27,8 +27,7 @@ function HoverCardContent$1({ className, align = "center", sideOffset = 4, ...pr
|
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
//#region src/components/base/hover-card/hover-card.tsx
|
|
30
|
+
// src/components/base/hover-card/hover-card.tsx
|
|
32
31
|
/**
|
|
33
32
|
* Datum HoverCard
|
|
34
33
|
*
|
|
@@ -44,5 +43,4 @@ function HoverCardContent({ className, ...props }) {
|
|
|
44
43
|
...props
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
//#endregion
|
|
48
46
|
export { HoverCardContent as n, HoverCardTrigger as r, HoverCard as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
// src/components/icons/icon-wrapper.tsx
|
|
3
3
|
function Icon({ icon: IconComponent, strokeWidth = 1, absoluteStrokeWidth = true, size = 16, ...props }) {
|
|
4
4
|
return /* @__PURE__ */ jsx(IconComponent, {
|
|
5
5
|
...props,
|
|
@@ -8,5 +8,4 @@ function Icon({ icon: IconComponent, strokeWidth = 1, absoluteStrokeWidth = true
|
|
|
8
8
|
size
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Icon as t };
|
package/dist/icons/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as Icon } from "../icon-wrapper-
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as CloseIcon } from "../close.icon-BCPmH4nN.mjs";
|
|
2
|
+
import { t as Icon } from "../icon-wrapper-CIk2th6R.mjs";
|
|
3
|
+
import { t as SpinnerIcon } from "../spinner.icon-D0SKuGFG.mjs";
|
|
4
4
|
export { CloseIcon, Icon, SpinnerIcon };
|