@datum-cloud/datum-ui 3.7.0 → 3.8.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/{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-DyNZwlSG.mjs} +14 -20
- package/dist/assistant/index.mjs +57 -63
- package/dist/autocomplete/index.mjs +1 -2
- package/dist/{autocomplete-BxtzndxZ.mjs → autocomplete-D0zAcT78.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 +181 -1
- 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-CsdF61EI.mjs → button-C57mkFkS.mjs} +2 -3
- package/dist/{button-DoMqfQLu.mjs → button-Cn4KagBO.mjs} +4 -6
- package/dist/{button-CDPui_Ov.mjs → button-IK-Lnu_9.mjs} +3 -4
- 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-CknZM6a2.mjs} +3 -4
- package/dist/card/index.mjs +1 -2
- package/dist/{card-save-bar-BZzNnKYj.mjs → card-save-bar-Te8jf-ie.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-BAo5sbHk.mjs +84 -0
- 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 -7
- package/dist/collapsible-B-KP3JZ-.mjs +104 -0
- package/dist/command/index.mjs +1 -2
- package/dist/{command-C0aGIYnQ.mjs → command-B0be-zU5.mjs} +3 -4
- package/dist/components/base/checkbox/checkbox.d.ts +11 -3
- package/dist/components/base/collapsible/collapsible.d.ts +28 -0
- package/dist/components/base/collapsible/index.d.ts +1 -1
- package/dist/components/base/radio-group/radio-group.d.ts +11 -5
- package/dist/components/base/spinner/index.d.ts +1 -1
- package/dist/components/base/spinner/spinner.d.ts +11 -0
- package/dist/components/base/switch/switch.d.ts +6 -1
- package/dist/components/base/typography/typography.d.ts +1 -1
- package/dist/components/features/_shared/copy-state-icon.d.ts +12 -0
- package/dist/components/features/_shared/index.d.ts +2 -0
- package/dist/components/features/_shared/motion-chip.d.ts +293 -0
- package/dist/components/features/assistant/components/message/plan-card.d.ts +1 -1
- package/dist/components/icons/spinner.icon.d.ts +17 -3
- package/dist/copy-state-icon-DMvXXsZm.mjs +61 -0
- package/dist/data-table/index.mjs +1 -2
- package/dist/{data-table-CJiQQ6TM.mjs → data-table-CpBwO8Ea.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-Bc41Ixrs.mjs} +3 -4
- package/dist/{date-time-range-picker-DM4AIvQ1.mjs → date-time-range-picker-yy1Acntn.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-qKYfSe7o.mjs} +6 -8
- package/dist/empty-content/index.mjs +1 -2
- package/dist/{empty-content-CmuVcU0P.mjs → empty-content-CTMHak36.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-DTaVgDSV.mjs} +64 -89
- 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-Dl6DclbV.mjs} +17 -25
- 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 +80 -80
- 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-DLUbkJtt.mjs} +26 -27
- package/dist/loader-overlay/index.mjs +1 -2
- package/dist/{loader-overlay-DD94azZX.mjs → loader-overlay-DP0pvHuG.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 +68 -87
- 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-BlSOVwa8.mjs} +6 -7
- package/dist/{motion-DvGRWdsm.mjs → motion-DOrRbLmy.mjs} +1 -2
- package/dist/motion-chip-BczV7spP.mjs +52 -0
- package/dist/multi-select/index.mjs +1 -2
- package/dist/{multi-select-CF0Yq5yf.mjs → multi-select-C2cBrqXl.mjs} +61 -57
- 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-DC3GErYg.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-Boxi2hm0.mjs +83 -0
- 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-CP1YyxMR.mjs → rich-text-editor-BUz06s-b.mjs} +14 -22
- 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-DSlDJdWl.mjs +23 -0
- package/dist/spinner.icon-BiUnMAxw.mjs +104 -0
- package/dist/stepper/index.mjs +1 -2
- package/dist/{stepper-dNvkipop.mjs → stepper-ZipxpzWY.mjs} +10 -11
- package/dist/switch/index.mjs +1 -2
- package/dist/switch-IduVwiPZ.mjs +114 -0
- package/dist/table/index.mjs +2 -3
- package/dist/tabs/index.mjs +3 -4
- package/dist/tag-input/index.mjs +1 -2
- package/dist/{tag-input-c9OvWTSe.mjs → tag-input-a3ktkGrH.mjs} +46 -43
- package/dist/task-queue/index.mjs +1 -2
- package/dist/{task-queue-dropdown-CHPP5WIm.mjs → task-queue-dropdown-DuCAAybs.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-B_am4eAK.mjs} +3 -4
- package/dist/{to-api-format-QuJ81vQ9.mjs → to-api-format-DyImCzCn.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-DGUeAQUL.mjs} +8 -14
- package/dist/{types-agDpVXBG.mjs → types-ChINrR8H.mjs} +7 -11
- package/dist/typography/index.mjs +1 -2
- package/dist/{typography-B1bpHKmV.mjs → typography-XFfN6PGD.mjs} +2 -3
- 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-DXY2SNnT.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 -23
- package/dist/badge-DOZUr5DV.mjs +0 -183
- package/dist/checkbox-C6P12fio.mjs +0 -30
- package/dist/radio-group-LduBVTnh.mjs +0 -45
- package/dist/spinner-C5Xv-i2C.mjs +0 -14
- package/dist/spinner.icon-BYUMQ8H-.mjs +0 -48
- package/dist/switch-BaR-Vna4.mjs +0 -34
|
@@ -1,31 +1,32 @@
|
|
|
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-D0zAcT78.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-Cn4KagBO.mjs";
|
|
5
|
+
import { n as useFormContext$1, t as FormProvider } from "./form-context-BRzt53M5.mjs";
|
|
6
|
+
import { t as Checkbox } from "./checkbox-BAo5sbHk.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 CopyStateIcon } from "./copy-state-icon-DMvXXsZm.mjs";
|
|
11
|
+
import { t as CalendarDatePicker } from "./calendar-date-picker-CknZM6a2.mjs";
|
|
12
|
+
import { t as DateTimePicker } from "./date-time-picker-Bc41Ixrs.mjs";
|
|
13
|
+
import { t as Dialog } from "./dialog-C8RXIQYm.mjs";
|
|
14
|
+
import { t as useControllableState } from "./use-controllable-state-DLeVgbAb.mjs";
|
|
15
|
+
import { t as Tooltip } from "./tooltip-OIySjJWW.mjs";
|
|
16
|
+
import { t as Icon } from "./icon-wrapper-CIk2th6R.mjs";
|
|
17
|
+
import { n as useAdapter } from "./adapter-context-XT749tyT.mjs";
|
|
18
|
+
import { t as Input } from "./input-DsT5qkJn.mjs";
|
|
22
19
|
import { InputWithAddons } from "./input-with-addons/index.mjs";
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
20
|
+
import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-Boxi2hm0.mjs";
|
|
21
|
+
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "./select-DemYhwnG.mjs";
|
|
22
|
+
import { t as Switch } from "./switch-IduVwiPZ.mjs";
|
|
23
|
+
import { t as Textarea } from "./textarea-CvhdK6JY.mjs";
|
|
24
|
+
import { t as TimePicker } from "./time-picker-B_am4eAK.mjs";
|
|
25
|
+
import { t as Transfer } from "./transfer-DGUeAQUL.mjs";
|
|
26
|
+
import { CircleHelp } from "lucide-react";
|
|
26
27
|
import * as React from "react";
|
|
27
28
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
-
|
|
29
|
+
// src/components/features/form/context/field-context.tsx
|
|
29
30
|
const FieldContext = React.createContext(null);
|
|
30
31
|
function FieldProvider({ children, value }) {
|
|
31
32
|
return /* @__PURE__ */ jsx(FieldContext, {
|
|
@@ -45,8 +46,7 @@ function useFieldContext$1() {
|
|
|
45
46
|
function useOptionalFieldContext() {
|
|
46
47
|
return React.use(FieldContext);
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
-
//#region src/components/features/form/components/form-autocomplete.tsx
|
|
49
|
+
// src/components/features/form/components/form-autocomplete.tsx
|
|
50
50
|
/**
|
|
51
51
|
* Form.Autocomplete - Searchable select component
|
|
52
52
|
*
|
|
@@ -105,8 +105,7 @@ function FormAutocomplete({ disabled, className, ...props }) {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
FormAutocomplete.displayName = "Form.Autocomplete";
|
|
108
|
-
|
|
109
|
-
//#region src/components/features/form/components/form-autosearch.tsx
|
|
108
|
+
// src/components/features/form/components/form-autosearch.tsx
|
|
110
109
|
/**
|
|
111
110
|
* Form.Autosearch - Search-first input with dropdown results
|
|
112
111
|
*
|
|
@@ -158,8 +157,7 @@ function FormAutosearch({ disabled, className, inputClassName, ...props }) {
|
|
|
158
157
|
});
|
|
159
158
|
}
|
|
160
159
|
FormAutosearch.displayName = "Form.Autosearch";
|
|
161
|
-
|
|
162
|
-
//#region src/components/features/form/components/form-button.tsx
|
|
160
|
+
// src/components/features/form/components/form-button.tsx
|
|
163
161
|
/**
|
|
164
162
|
* Form.Button - A button for non-submit actions within a form
|
|
165
163
|
*
|
|
@@ -191,8 +189,7 @@ function FormButton({ children, onClick, type = "quaternary", theme = "borderles
|
|
|
191
189
|
});
|
|
192
190
|
}
|
|
193
191
|
FormButton.displayName = "Form.Button";
|
|
194
|
-
|
|
195
|
-
//#region src/components/features/form/components/form-checkbox.tsx
|
|
192
|
+
// src/components/features/form/components/form-checkbox.tsx
|
|
196
193
|
/**
|
|
197
194
|
* Form.Checkbox - Checkbox input component
|
|
198
195
|
*
|
|
@@ -230,8 +227,7 @@ function FormCheckbox({ label, disabled, className }) {
|
|
|
230
227
|
});
|
|
231
228
|
}
|
|
232
229
|
FormCheckbox.displayName = "Form.Checkbox";
|
|
233
|
-
|
|
234
|
-
//#region src/components/features/form/components/form-combobox.tsx
|
|
230
|
+
// src/components/features/form/components/form-combobox.tsx
|
|
235
231
|
function FormCombobox({ options, placeholder, searchPlaceholder, emptyMessage, disabled, className, triggerClassName, contentClassName, searchable = true, "data-testid": _testId, modal }) {
|
|
236
232
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
237
233
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -257,8 +253,7 @@ function FormCombobox({ options, placeholder, searchPlaceholder, emptyMessage, d
|
|
|
257
253
|
});
|
|
258
254
|
}
|
|
259
255
|
FormCombobox.displayName = "Form.Combobox";
|
|
260
|
-
|
|
261
|
-
//#region src/components/features/form/components/form-copy-box.tsx
|
|
256
|
+
// src/components/features/form/components/form-copy-box.tsx
|
|
262
257
|
/**
|
|
263
258
|
* Form.CopyBox - Read-only field with copy-to-clipboard functionality
|
|
264
259
|
*
|
|
@@ -313,21 +308,26 @@ function FormCopyBox({ variant = "default", className, contentClassName, buttonC
|
|
|
313
308
|
title: copied ? "Copied" : "Copy",
|
|
314
309
|
className: cn("text-muted-foreground hover:text-foreground flex size-7 items-center justify-center rounded-sm transition-colors", buttonClassName),
|
|
315
310
|
onClick: copyToClipboard,
|
|
316
|
-
children:
|
|
311
|
+
children: /* @__PURE__ */ jsx(CopyStateIcon, {
|
|
312
|
+
copied,
|
|
313
|
+
className: "size-4"
|
|
314
|
+
})
|
|
317
315
|
}) : /* @__PURE__ */ jsxs(Button, {
|
|
318
316
|
type: "quaternary",
|
|
319
317
|
theme: "outline",
|
|
320
318
|
size: "small",
|
|
321
319
|
className: cn("h-7 w-fit gap-1 px-2 text-xs", buttonClassName),
|
|
322
320
|
onClick: copyToClipboard,
|
|
323
|
-
children: [/* @__PURE__ */ jsx(
|
|
321
|
+
children: [/* @__PURE__ */ jsx(CopyStateIcon, {
|
|
322
|
+
copied,
|
|
323
|
+
className: "size-3!"
|
|
324
|
+
}), copied ? "Copied" : "Copy"]
|
|
324
325
|
})
|
|
325
326
|
})]
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
329
|
FormCopyBox.displayName = "Form.CopyBox";
|
|
329
|
-
|
|
330
|
-
//#region src/components/features/form/components/form-custom.tsx
|
|
330
|
+
// src/components/features/form/components/form-custom.tsx
|
|
331
331
|
/**
|
|
332
332
|
* Form.Custom - Escape hatch for custom implementations
|
|
333
333
|
*
|
|
@@ -367,8 +367,7 @@ function FormCustom({ children }) {
|
|
|
367
367
|
return /* @__PURE__ */ jsx(Fragment$1, { children: children(renderProps) });
|
|
368
368
|
}
|
|
369
369
|
FormCustom.displayName = "Form.Custom";
|
|
370
|
-
|
|
371
|
-
//#region src/components/features/form/components/form-date-picker.tsx
|
|
370
|
+
// src/components/features/form/components/form-date-picker.tsx
|
|
372
371
|
function FormDatePicker({ placeholder, disabled, className, triggerClassName, numberOfMonths = 1, minDate: minDateProp, maxDate: maxDateProp, disableFuture, disablePast, modal }) {
|
|
373
372
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
374
373
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -437,8 +436,7 @@ function FormDatePicker({ placeholder, disabled, className, triggerClassName, nu
|
|
|
437
436
|
});
|
|
438
437
|
}
|
|
439
438
|
FormDatePicker.displayName = "Form.DatePicker";
|
|
440
|
-
|
|
441
|
-
//#region src/components/features/form/components/form-date-time-picker.tsx
|
|
439
|
+
// src/components/features/form/components/form-date-time-picker.tsx
|
|
442
440
|
function FormDateTimePicker({ minDate: minDateProp, maxDate: maxDateProp, disabledDates, timezone, showTimezoneIndicator, placeholder, disabled, className, modal }) {
|
|
443
441
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
444
442
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -471,8 +469,7 @@ function FormDateTimePicker({ minDate: minDateProp, maxDate: maxDateProp, disabl
|
|
|
471
469
|
});
|
|
472
470
|
}
|
|
473
471
|
FormDateTimePicker.displayName = "Form.DateTimePicker";
|
|
474
|
-
|
|
475
|
-
//#region src/components/features/form/components/form-description.tsx
|
|
472
|
+
// src/components/features/form/components/form-description.tsx
|
|
476
473
|
/**
|
|
477
474
|
* Form.Description - Display field description/helper text
|
|
478
475
|
*
|
|
@@ -496,8 +493,7 @@ function FormDescription({ children, className }) {
|
|
|
496
493
|
});
|
|
497
494
|
}
|
|
498
495
|
FormDescription.displayName = "Form.Description";
|
|
499
|
-
|
|
500
|
-
//#region src/components/features/form/components/form-dialog.tsx
|
|
496
|
+
// src/components/features/form/components/form-dialog.tsx
|
|
501
497
|
/**
|
|
502
498
|
* Form.Dialog - A dialog with an integrated form
|
|
503
499
|
*
|
|
@@ -622,8 +618,7 @@ function FormDialog({ open, onOpenChange, defaultOpen, title, description, trigg
|
|
|
622
618
|
});
|
|
623
619
|
}
|
|
624
620
|
FormDialog.displayName = "Form.Dialog";
|
|
625
|
-
|
|
626
|
-
//#region src/components/features/form/components/form-error.tsx
|
|
621
|
+
// src/components/features/form/components/form-error.tsx
|
|
627
622
|
/**
|
|
628
623
|
* Form.Error - Display field errors
|
|
629
624
|
*
|
|
@@ -662,8 +657,7 @@ function FormError({ children, className }) {
|
|
|
662
657
|
});
|
|
663
658
|
}
|
|
664
659
|
FormError.displayName = "Form.Error";
|
|
665
|
-
|
|
666
|
-
//#region src/components/features/form/components/form-field.tsx
|
|
660
|
+
// src/components/features/form/components/form-field.tsx
|
|
667
661
|
function FieldLabel({ htmlFor, label, hasErrors, required, tooltip, className }) {
|
|
668
662
|
const [isTooltipVisible, setIsTooltipVisible] = React.useState(false);
|
|
669
663
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -817,8 +811,7 @@ function FormField({ name, children, label, description, tooltip, required = fal
|
|
|
817
811
|
});
|
|
818
812
|
}
|
|
819
813
|
FormField.displayName = "Form.Field";
|
|
820
|
-
|
|
821
|
-
//#region src/components/features/form/components/form-field-array.tsx
|
|
814
|
+
// src/components/features/form/components/form-field-array.tsx
|
|
822
815
|
/**
|
|
823
816
|
* Form.FieldArray - Dynamic array of fields with append/remove/move helpers.
|
|
824
817
|
*
|
|
@@ -852,8 +845,7 @@ function FormFieldArray({ name, children }) {
|
|
|
852
845
|
return /* @__PURE__ */ jsx(Fragment$1, { children: children(renderProps) });
|
|
853
846
|
}
|
|
854
847
|
FormFieldArray.displayName = "Form.FieldArray";
|
|
855
|
-
|
|
856
|
-
//#region src/components/features/form/components/form-input.tsx
|
|
848
|
+
// src/components/features/form/components/form-input.tsx
|
|
857
849
|
/**
|
|
858
850
|
* Form.Input - Text input component
|
|
859
851
|
*
|
|
@@ -886,8 +878,7 @@ function FormInput({ ref, type = "text", className, disabled, ...props }) {
|
|
|
886
878
|
});
|
|
887
879
|
}
|
|
888
880
|
FormInput.displayName = "Form.Input";
|
|
889
|
-
|
|
890
|
-
//#region src/components/features/form/components/form-input-group.tsx
|
|
881
|
+
// src/components/features/form/components/form-input-group.tsx
|
|
891
882
|
/**
|
|
892
883
|
* Form.InputGroup - Input with leading/trailing addons
|
|
893
884
|
*
|
|
@@ -919,8 +910,7 @@ function FormInputGroup({ ref, className, disabled, ...props }) {
|
|
|
919
910
|
});
|
|
920
911
|
}
|
|
921
912
|
FormInputGroup.displayName = "Form.InputGroup";
|
|
922
|
-
|
|
923
|
-
//#region src/components/features/form/components/form-radio-group.tsx
|
|
913
|
+
// src/components/features/form/components/form-radio-group.tsx
|
|
924
914
|
/**
|
|
925
915
|
* Form.RadioGroup - Radio button group component
|
|
926
916
|
*
|
|
@@ -988,8 +978,7 @@ function FormRadioItem({ value, label, description, disabled }) {
|
|
|
988
978
|
});
|
|
989
979
|
}
|
|
990
980
|
FormRadioItem.displayName = "Form.RadioItem";
|
|
991
|
-
|
|
992
|
-
//#region src/components/features/form/components/form-root.tsx
|
|
981
|
+
// src/components/features/form/components/form-root.tsx
|
|
993
982
|
/**
|
|
994
983
|
* Form.Root - Root form container that integrates with the active adapter.
|
|
995
984
|
*
|
|
@@ -1146,8 +1135,7 @@ function FormRoot({ schema, children, onSubmit, action, method = "POST", formCom
|
|
|
1146
1135
|
});
|
|
1147
1136
|
}
|
|
1148
1137
|
FormRoot.displayName = "Form.Root";
|
|
1149
|
-
|
|
1150
|
-
//#region src/components/features/form/components/form-select.tsx
|
|
1138
|
+
// src/components/features/form/components/form-select.tsx
|
|
1151
1139
|
/**
|
|
1152
1140
|
* Form.Select - Select dropdown component
|
|
1153
1141
|
*
|
|
@@ -1200,8 +1188,7 @@ function FormSelectItem({ value, children, disabled }) {
|
|
|
1200
1188
|
});
|
|
1201
1189
|
}
|
|
1202
1190
|
FormSelectItem.displayName = "Form.SelectItem";
|
|
1203
|
-
|
|
1204
|
-
//#region src/components/features/form/components/form-submit.tsx
|
|
1191
|
+
// src/components/features/form/components/form-submit.tsx
|
|
1205
1192
|
/**
|
|
1206
1193
|
* Form.Submit - Submit button with automatic loading state
|
|
1207
1194
|
*
|
|
@@ -1224,8 +1211,7 @@ function FormSubmit({ children, loadingText, loading = false, ...props }) {
|
|
|
1224
1211
|
});
|
|
1225
1212
|
}
|
|
1226
1213
|
FormSubmit.displayName = "Form.Submit";
|
|
1227
|
-
|
|
1228
|
-
//#region src/components/features/form/components/form-switch.tsx
|
|
1214
|
+
// src/components/features/form/components/form-switch.tsx
|
|
1229
1215
|
/**
|
|
1230
1216
|
* Form.Switch - Toggle switch component
|
|
1231
1217
|
*
|
|
@@ -1263,8 +1249,7 @@ function FormSwitch({ label, disabled, className }) {
|
|
|
1263
1249
|
});
|
|
1264
1250
|
}
|
|
1265
1251
|
FormSwitch.displayName = "Form.Switch";
|
|
1266
|
-
|
|
1267
|
-
//#region src/components/features/form/components/form-textarea.tsx
|
|
1252
|
+
// src/components/features/form/components/form-textarea.tsx
|
|
1268
1253
|
/**
|
|
1269
1254
|
* Form.Textarea - Multi-line text input component
|
|
1270
1255
|
*
|
|
@@ -1297,8 +1282,7 @@ function FormTextarea({ ref, className, disabled, rows = 3, ...props }) {
|
|
|
1297
1282
|
});
|
|
1298
1283
|
}
|
|
1299
1284
|
FormTextarea.displayName = "Form.Textarea";
|
|
1300
|
-
|
|
1301
|
-
//#region src/components/features/form/components/form-time-picker.tsx
|
|
1285
|
+
// src/components/features/form/components/form-time-picker.tsx
|
|
1302
1286
|
function FormTimePicker({ min, max, step, placeholder, disabled, className }) {
|
|
1303
1287
|
const { id, errors, disabled: fieldDisabled, fieldState } = useFieldContext$1();
|
|
1304
1288
|
const isDisabled = disabled ?? fieldDisabled;
|
|
@@ -1323,8 +1307,7 @@ function FormTimePicker({ min, max, step, placeholder, disabled, className }) {
|
|
|
1323
1307
|
});
|
|
1324
1308
|
}
|
|
1325
1309
|
FormTimePicker.displayName = "Form.TimePicker";
|
|
1326
|
-
|
|
1327
|
-
//#region src/components/features/form/components/form-transfer.tsx
|
|
1310
|
+
// src/components/features/form/components/form-transfer.tsx
|
|
1328
1311
|
/**
|
|
1329
1312
|
* Form.Transfer - Transfer list component for selecting multiple items
|
|
1330
1313
|
*
|
|
@@ -1368,8 +1351,7 @@ function FormTransfer({ disabled, minItems, maxItems, ...props }) {
|
|
|
1368
1351
|
})] });
|
|
1369
1352
|
}
|
|
1370
1353
|
FormTransfer.displayName = "Form.Transfer";
|
|
1371
|
-
|
|
1372
|
-
//#region src/components/features/form/hooks/use-watch.ts
|
|
1354
|
+
// src/components/features/form/hooks/use-watch.ts
|
|
1373
1355
|
/**
|
|
1374
1356
|
* Hook to watch a field's value reactively.
|
|
1375
1357
|
* Delegates to the active adapter's useWatch implementation.
|
|
@@ -1403,8 +1385,7 @@ function useWatch(name) {
|
|
|
1403
1385
|
function useWatchAll(names) {
|
|
1404
1386
|
return useAdapter().useWatchAll(names);
|
|
1405
1387
|
}
|
|
1406
|
-
|
|
1407
|
-
//#region src/components/features/form/components/form-when.tsx
|
|
1388
|
+
// src/components/features/form/components/form-when.tsx
|
|
1408
1389
|
/**
|
|
1409
1390
|
* Form.When - Conditional rendering based on field values
|
|
1410
1391
|
*
|
|
@@ -1444,8 +1425,7 @@ function FormWhen({ field, is, isNot, in: inArray, notIn, children }) {
|
|
|
1444
1425
|
return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
1445
1426
|
}
|
|
1446
1427
|
FormWhen.displayName = "Form.When";
|
|
1447
|
-
|
|
1448
|
-
//#region src/components/features/form/hooks/use-field.ts
|
|
1428
|
+
// src/components/features/form/hooks/use-field.ts
|
|
1449
1429
|
/**
|
|
1450
1430
|
* Hook to access and control a specific field.
|
|
1451
1431
|
* Delegates to the active adapter's useField implementation.
|
|
@@ -1491,8 +1471,7 @@ function useField(name) {
|
|
|
1491
1471
|
errors: fieldState.errors
|
|
1492
1472
|
};
|
|
1493
1473
|
}
|
|
1494
|
-
|
|
1495
|
-
//#region src/components/features/form/hooks/use-field-context.ts
|
|
1474
|
+
// src/components/features/form/hooks/use-field-context.ts
|
|
1496
1475
|
/**
|
|
1497
1476
|
* Hook to access the current field context
|
|
1498
1477
|
* Must be used within a Form.Field component
|
|
@@ -1517,8 +1496,7 @@ function useField(name) {
|
|
|
1517
1496
|
function useFieldContext() {
|
|
1518
1497
|
return useFieldContext$1();
|
|
1519
1498
|
}
|
|
1520
|
-
|
|
1521
|
-
//#region src/components/features/form/hooks/use-form-context.ts
|
|
1499
|
+
// src/components/features/form/hooks/use-form-context.ts
|
|
1522
1500
|
/**
|
|
1523
1501
|
* Hook to access the form context
|
|
1524
1502
|
*
|
|
@@ -1538,8 +1516,7 @@ function useFieldContext() {
|
|
|
1538
1516
|
function useFormContext() {
|
|
1539
1517
|
return useFormContext$1();
|
|
1540
1518
|
}
|
|
1541
|
-
|
|
1542
|
-
//#region src/components/features/form/hooks/use-form-state.ts
|
|
1519
|
+
// src/components/features/form/hooks/use-form-state.ts
|
|
1543
1520
|
/**
|
|
1544
1521
|
* Hook to access form-level state (dirty, valid, submitted, etc.)
|
|
1545
1522
|
*
|
|
@@ -1578,8 +1555,7 @@ function useFormState() {
|
|
|
1578
1555
|
touchedFields: ctx.touchedFields
|
|
1579
1556
|
};
|
|
1580
1557
|
}
|
|
1581
|
-
|
|
1582
|
-
//#region src/components/features/form/index.ts
|
|
1558
|
+
// src/components/features/form/index.ts
|
|
1583
1559
|
/**
|
|
1584
1560
|
* Datum Form Library
|
|
1585
1561
|
*
|
|
@@ -1730,5 +1706,4 @@ const Form = {
|
|
|
1730
1706
|
useWatch,
|
|
1731
1707
|
useWatchAll
|
|
1732
1708
|
};
|
|
1733
|
-
//#endregion
|
|
1734
1709
|
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-Dl6DclbV.mjs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as Icon } from "./icon-wrapper-DKfJlJd0.mjs";
|
|
4
|
-
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";
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { r as CollapsibleTrigger, t as Collapsible } from "./collapsible-B-KP3JZ-.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-CpBwO8Ea.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-Cn4KagBO.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-BiUnMAxw.mjs";
|
|
4
4
|
export { CloseIcon, Icon, SpinnerIcon };
|