@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
package/dist/badge/index.mjs
CHANGED
|
@@ -1,2 +1,182 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as cn } from "../utils-CTIuhCOs.mjs";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/base/badge/badge.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Datum Badge Component
|
|
8
|
+
* Similar to Button component but with badge-specific styling
|
|
9
|
+
* Supports types: primary, secondary, tertiary, quaternary, warning, danger, success
|
|
10
|
+
* Supports themes: solid, outline, light
|
|
11
|
+
*/
|
|
12
|
+
const badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-all focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
13
|
+
variants: {
|
|
14
|
+
type: {
|
|
15
|
+
primary: "",
|
|
16
|
+
secondary: "",
|
|
17
|
+
tertiary: "",
|
|
18
|
+
quaternary: "",
|
|
19
|
+
info: "",
|
|
20
|
+
warning: "",
|
|
21
|
+
danger: "",
|
|
22
|
+
success: "",
|
|
23
|
+
muted: ""
|
|
24
|
+
},
|
|
25
|
+
theme: {
|
|
26
|
+
solid: "",
|
|
27
|
+
outline: "border",
|
|
28
|
+
light: "border-transparent"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
compoundVariants: [
|
|
32
|
+
{
|
|
33
|
+
type: "primary",
|
|
34
|
+
theme: "solid",
|
|
35
|
+
className: "border-transparent bg-[var(--color-badge-primary)] text-[var(--color-badge-primary-foreground)]"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "primary",
|
|
39
|
+
theme: "outline",
|
|
40
|
+
className: "border-[var(--color-badge-primary)] text-[var(--color-badge-primary)] dark:border-[var(--color-badge-primary)] dark:text-[var(--color-badge-primary)]"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "primary",
|
|
44
|
+
theme: "light",
|
|
45
|
+
className: "text-[var(--color-badge-primary)] bg-[var(--color-badge-primary)]/10 dark:text-[var(--color-badge-primary)] dark:bg-[var(--color-badge-primary)]/20"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "secondary",
|
|
49
|
+
theme: "solid",
|
|
50
|
+
className: "border-transparent bg-[var(--color-badge-secondary)] text-[var(--color-badge-secondary-foreground)]"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: "secondary",
|
|
54
|
+
theme: "outline",
|
|
55
|
+
className: "border-[var(--color-badge-secondary)] text-[var(--color-badge-secondary)] dark:border-[var(--color-badge-secondary)] dark:text-[var(--color-badge-secondary)]"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "secondary",
|
|
59
|
+
theme: "light",
|
|
60
|
+
className: "text-[var(--color-badge-secondary)] bg-[var(--color-badge-secondary)]/20 dark:text-[var(--color-badge-secondary)] dark:bg-[var(--color-badge-secondary)]/20"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: "tertiary",
|
|
64
|
+
theme: "solid",
|
|
65
|
+
className: "border-transparent bg-[var(--color-badge-tertiary)] text-[var(--color-badge-tertiary-foreground)]"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "tertiary",
|
|
69
|
+
theme: "outline",
|
|
70
|
+
className: "border-[var(--color-badge-tertiary)] text-[var(--color-badge-tertiary)] dark:border-[var(--color-badge-tertiary)] dark:text-[var(--color-badge-tertiary)]"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "tertiary",
|
|
74
|
+
theme: "light",
|
|
75
|
+
className: "text-[var(--color-badge-tertiary)] bg-[var(--color-badge-tertiary)]/20 dark:text-[var(--color-badge-tertiary)] dark:bg-[var(--color-badge-tertiary)]/20"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "quaternary",
|
|
79
|
+
theme: "solid",
|
|
80
|
+
className: "border-transparent bg-[var(--color-badge-quaternary)] text-[var(--color-badge-quaternary-foreground)]"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: "quaternary",
|
|
84
|
+
theme: "outline",
|
|
85
|
+
className: "border-[var(--color-badge-quaternary)] text-[var(--color-badge-quaternary-foreground)] dark:border-[var(--color-badge-quaternary)] dark:text-[var(--color-badge-quaternary-foreground)]"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: "quaternary",
|
|
89
|
+
theme: "light",
|
|
90
|
+
className: "text-[var(--color-badge-quaternary-foreground)] bg-[var(--color-badge-quaternary)]/20 dark:text-[var(--color-badge-quaternary-foreground)] dark:bg-[var(--color-badge-quaternary)]/20"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "info",
|
|
94
|
+
theme: "solid",
|
|
95
|
+
className: "border-transparent bg-[var(--color-badge-info)] text-[var(--color-badge-info-foreground)]"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "info",
|
|
99
|
+
theme: "outline",
|
|
100
|
+
className: "border-[var(--color-badge-info)] text-[var(--color-badge-info)] dark:border-[var(--color-badge-info)] dark:text-[var(--color-badge-info)]"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: "info",
|
|
104
|
+
theme: "light",
|
|
105
|
+
className: "text-[var(--color-badge-info)] bg-[var(--color-badge-info)]/20 dark:text-[var(--color-badge-info)] dark:bg-[var(--color-badge-info)]/20"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: "warning",
|
|
109
|
+
theme: "solid",
|
|
110
|
+
className: "border-transparent bg-[var(--color-badge-warning)] text-[var(--color-badge-warning-foreground)]"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "warning",
|
|
114
|
+
theme: "outline",
|
|
115
|
+
className: "border-[var(--color-badge-warning)] text-[var(--color-badge-warning)] dark:border-[var(--color-badge-warning)] dark:text-[var(--color-badge-warning)]"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "warning",
|
|
119
|
+
theme: "light",
|
|
120
|
+
className: "text-[var(--color-badge-warning)] bg-[var(--color-badge-warning)]/20 dark:text-[var(--color-badge-warning)] dark:bg-[var(--color-badge-warning)]/20"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: "danger",
|
|
124
|
+
theme: "solid",
|
|
125
|
+
className: "border-transparent bg-[var(--color-badge-danger)] text-[var(--color-badge-danger-foreground)]"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "danger",
|
|
129
|
+
theme: "outline",
|
|
130
|
+
className: "border-[var(--color-badge-danger)] text-[var(--color-badge-danger)] dark:border-[var(--color-badge-danger)] dark:text-[var(--color-badge-danger)]"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
type: "danger",
|
|
134
|
+
theme: "light",
|
|
135
|
+
className: "text-[var(--color-badge-danger)] bg-[var(--color-badge-danger)]/20 dark:text-[var(--color-badge-danger)] dark:bg-[var(--color-badge-danger)]/20"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: "success",
|
|
139
|
+
theme: "solid",
|
|
140
|
+
className: "border-transparent bg-[var(--color-badge-success)] text-[var(--color-badge-success-foreground)]"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "success",
|
|
144
|
+
theme: "outline",
|
|
145
|
+
className: "border-[var(--color-badge-success)] text-[var(--color-badge-success)] dark:border-[var(--color-badge-success)] dark:text-[var(--color-badge-success)]"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
type: "success",
|
|
149
|
+
theme: "light",
|
|
150
|
+
className: "text-[var(--color-badge-success)] bg-[var(--color-badge-success)]/20 dark:text-[var(--color-badge-success)] dark:bg-[var(--color-badge-success)]/20"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: "muted",
|
|
154
|
+
theme: "solid",
|
|
155
|
+
className: "border-transparent text-[var(--color-badge-muted-foreground)] bg-[var(--color-badge-muted)] dark:border-[var(--color-badge-muted)]/20 dark:text-[var(--color-badge-muted)] dark:bg-[var(--color-badge-muted)]/20"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: "muted",
|
|
159
|
+
theme: "outline",
|
|
160
|
+
className: "border-[var(--color-badge-muted)] text-[var(--color-badge-muted)] dark:border-[var(--color-badge-muted)] dark:text-[var(--color-badge-muted)]"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "muted",
|
|
164
|
+
theme: "light",
|
|
165
|
+
className: "text-[var(--muted-foreground)] bg-[var(--muted-foreground)]/15 dark:text-[var(--color-badge-muted)] dark:bg-[var(--color-badge-muted)]/20"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
defaultVariants: {
|
|
169
|
+
type: "muted",
|
|
170
|
+
theme: "solid"
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
function Badge({ className, type, theme, ...props }) {
|
|
174
|
+
return /* @__PURE__ */ jsx("div", {
|
|
175
|
+
className: cn(badgeVariants({
|
|
176
|
+
type,
|
|
177
|
+
theme
|
|
178
|
+
}), className),
|
|
179
|
+
...props
|
|
180
|
+
});
|
|
181
|
+
}
|
|
2
182
|
export { Badge, badgeVariants };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
1
|
+
export { t as Breadcrumb, n as BreadcrumbEllipsis, r as BreadcrumbItem, i as BreadcrumbLink, a as BreadcrumbList, o as BreadcrumbPage, s as BreadcrumbSeparator } from "../breadcrumb-D97jAZ2N.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
-
|
|
6
|
+
// ../shadcn/ui/breadcrumb.tsx
|
|
7
7
|
function Breadcrumb({ ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx("nav", {
|
|
9
9
|
"aria-label": "breadcrumb",
|
|
@@ -65,5 +65,4 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
65
65
|
})]
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { BreadcrumbList as a, BreadcrumbLink as i, BreadcrumbEllipsis as n, BreadcrumbPage as o, BreadcrumbItem as r, BreadcrumbSeparator as s, Breadcrumb as t };
|
package/dist/button/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as buttonVariants, t as Button } from "../button-
|
|
2
|
-
import { t as LinkButton } from "../button-
|
|
1
|
+
import { n as buttonVariants, t as Button } from "../button-Cn4KagBO.mjs";
|
|
2
|
+
import { t as LinkButton } from "../button-IK-Lnu_9.mjs";
|
|
3
3
|
export { Button, LinkButton, buttonVariants };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
-
|
|
6
|
+
// ../shadcn/ui/button.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Vanilla shadcn/ui Button Component
|
|
9
9
|
* Pure shadcn button without Datum customizations
|
|
@@ -43,5 +43,4 @@ const Button = React.forwardRef(({ className, variant, size, asChild = false, ..
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
Button.displayName = "Button";
|
|
46
|
-
//#endregion
|
|
47
46
|
export { buttonVariants as n, Button as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as SpinnerIcon } from "./spinner.icon-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { t as SpinnerIcon } from "./spinner.icon-BiUnMAxw.mjs";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/base/button/icon-only.ts
|
|
7
7
|
/**
|
|
8
8
|
* Returns the width/padding class that squares off an icon-only button for a
|
|
9
9
|
* given size. Shared by Button and LinkButton to keep their icon-only sizing
|
|
@@ -22,8 +22,7 @@ function getIconOnlyClass(size, isIconOnly) {
|
|
|
22
22
|
default: return "w-9 px-0";
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
//#region src/components/base/button/button.tsx
|
|
25
|
+
// src/components/base/button/button.tsx
|
|
27
26
|
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-[color,background-color,border-color,opacity,transform] duration-[var(--duration-fast)] ease-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 active:scale-[0.98] disabled:active:scale-100", {
|
|
28
27
|
variants: {
|
|
29
28
|
type: {
|
|
@@ -238,5 +237,4 @@ function Button({ ref, className, type, theme, size, block, loading = false, dis
|
|
|
238
237
|
});
|
|
239
238
|
}
|
|
240
239
|
Button.displayName = "Button";
|
|
241
|
-
//#endregion
|
|
242
240
|
export { buttonVariants as n, getIconOnlyClass as r, Button as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as buttonVariants, r as getIconOnlyClass } from "./button-Cn4KagBO.mjs";
|
|
2
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/base/button/link-button.tsx
|
|
6
6
|
function LinkButton({ ref, className, type, theme, size, block, icon, iconPosition = "left", children, as: Component = "a", href, ...props }) {
|
|
7
7
|
const isIconOnly = icon && !children;
|
|
8
8
|
const linkProps = Component === "a" ? { href } : { to: href };
|
|
@@ -24,5 +24,4 @@ function LinkButton({ ref, className, type, theme, size, block, icon, iconPositi
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
LinkButton.displayName = "LinkButton";
|
|
27
|
-
//#endregion
|
|
28
27
|
export { LinkButton as t };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
1
|
+
export { t as ButtonGroup, n as ButtonGroupSeparator, r as ButtonGroupText, i as buttonGroupVariants } from "../button-group-C3GKo-0p.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as Separator } from "./separator-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { t as Separator } from "./separator-DNiiN2BN.mjs";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
-
|
|
6
|
+
// ../shadcn/ui/button-group.tsx
|
|
7
7
|
const buttonGroupVariants = cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
8
8
|
variants: { orientation: {
|
|
9
9
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
@@ -34,5 +34,4 @@ function ButtonGroupSeparator({ className, orientation = "vertical", ...props })
|
|
|
34
34
|
...props
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { buttonGroupVariants as i, ButtonGroupSeparator as n, ButtonGroupText as r, ButtonGroup as t };
|
package/dist/calendar/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { t as Icon } from "../icon-wrapper-
|
|
1
|
+
import { n as buttonVariants, t as Button } from "../button-C57mkFkS.mjs";
|
|
2
|
+
import { t as cn } from "../utils-CTIuhCOs.mjs";
|
|
3
|
+
import { t as Icon } from "../icon-wrapper-CIk2th6R.mjs";
|
|
4
4
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
8
|
-
|
|
8
|
+
// src/components/base/calendar/calendar.tsx
|
|
9
9
|
function CalendarRoot({ className, rootRef, ...props }) {
|
|
10
10
|
return /* @__PURE__ */ jsx("div", {
|
|
11
11
|
"data-slot": "calendar",
|
|
@@ -107,5 +107,4 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
107
107
|
...props
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
//#endregion
|
|
111
110
|
export { Calendar, CalendarDayButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as useDeprecationWarning } from "./use-deprecation-warning-
|
|
2
|
-
import { a as DateRangePicker } from "./picker-
|
|
1
|
+
import { t as useDeprecationWarning } from "./use-deprecation-warning-BS1V4IS5.mjs";
|
|
2
|
+
import { a as DateRangePicker } from "./picker-DC3GErYg.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/features/calendar-date-picker/calendar-date-picker.tsx
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `DateRangePicker` (or `DatePicker`) from
|
|
7
7
|
* `@datum-cloud/datum-ui/picker` instead. This adapter shim ships through
|
|
@@ -49,5 +49,4 @@ function CalendarDatePicker({ date, onDateSelect, closeOnSelect, numberOfMonths
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
CalendarDatePicker.displayName = "CalendarDatePicker";
|
|
52
|
-
//#endregion
|
|
53
52
|
export { CalendarDatePicker as t };
|
package/dist/card/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Card, CardAction, CardContent, CardDescription, CardField, CardFieldLabel, CardFieldValue, CardFooter, CardHeader, CardSaveBar, CardTitle };
|
|
1
|
+
export { n as Card, r as CardAction, i as CardContent, u as CardDescription, a as CardField, o as CardFieldLabel, s as CardFieldValue, c as CardFooter, l as CardHeader, t as CardSaveBar, d as CardTitle } from "../card-save-bar-Te8jf-ie.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { t as Button } from "./button-Cn4KagBO.mjs";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// ../shadcn/ui/card.tsx
|
|
7
7
|
function CardTitle({ className, ...props }) {
|
|
8
8
|
return /* @__PURE__ */ jsx("div", {
|
|
9
9
|
"data-slot": "card-title",
|
|
@@ -18,8 +18,7 @@ function CardDescription({ className, ...props }) {
|
|
|
18
18
|
...props
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
//#region src/components/base/card/card.tsx
|
|
21
|
+
// src/components/base/card/card.tsx
|
|
23
22
|
/**
|
|
24
23
|
* Datum Card
|
|
25
24
|
*
|
|
@@ -216,8 +215,7 @@ function CardFieldValue({ className, ...props }) {
|
|
|
216
215
|
...props
|
|
217
216
|
});
|
|
218
217
|
}
|
|
219
|
-
|
|
220
|
-
//#region src/components/base/card/card-save-bar.tsx
|
|
218
|
+
// src/components/base/card/card-save-bar.tsx
|
|
221
219
|
function pluralize(count, noun) {
|
|
222
220
|
return `${count} ${noun}${count === 1 ? "" : "s"}`;
|
|
223
221
|
}
|
|
@@ -277,5 +275,4 @@ function CardSaveBar({ changeCount, errorCount = 0, saving = false, onCancel, on
|
|
|
277
275
|
})]
|
|
278
276
|
});
|
|
279
277
|
}
|
|
280
|
-
//#endregion
|
|
281
278
|
export { CardField as a, CardFooter as c, CardTitle as d, CardContent as i, CardHeader as l, Card as n, CardFieldLabel as o, CardAction as r, CardFieldValue as s, CardSaveBar as t, CardDescription as u };
|
package/dist/chart/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
|
|
1
|
+
export { t as ChartContainer, n as ChartLegend, r as ChartLegendContent, i as ChartStyle, a as ChartTooltip, o as ChartTooltipContent } from "../chart-BsGsx2jb.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as RechartsPrimitive from "recharts";
|
|
5
|
-
|
|
5
|
+
// ../shadcn/ui/chart.tsx
|
|
6
6
|
const THEMES = {
|
|
7
7
|
light: "",
|
|
8
8
|
dark: ".dark"
|
|
@@ -140,5 +140,4 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
140
140
|
else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") configLabelKey = payloadPayload[key];
|
|
141
141
|
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
142
142
|
}
|
|
143
|
-
//#endregion
|
|
144
143
|
export { ChartTooltip as a, ChartStyle as i, ChartLegend as n, ChartTooltipContent as o, ChartLegendContent as r, ChartContainer as t };
|
package/dist/checkbox/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Checkbox };
|
|
1
|
+
export { t as Checkbox } from "../checkbox-BAo5sbHk.mjs";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
|
+
import { n as EASE, t as DURATION } from "./motion-DOrRbLmy.mjs";
|
|
3
|
+
import { t as useControllableState } from "./use-controllable-state-DLeVgbAb.mjs";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { motion, useReducedMotion } from "motion/react";
|
|
7
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
8
|
+
// src/components/base/checkbox/checkbox.tsx
|
|
9
|
+
const CHECK_PATH = "M20 6 9 17l-5-5";
|
|
10
|
+
const DASH_PATH = "M5 12h14";
|
|
11
|
+
/**
|
|
12
|
+
* One stroke of the indicator. Drawn on with `pathLength` when it appears and
|
|
13
|
+
* faded out (faster) when it leaves. Under reduced motion the stroke is not
|
|
14
|
+
* drawn, only faded, since the draw reads as movement.
|
|
15
|
+
*/
|
|
16
|
+
function IndicatorMark({ d, visible, reduceMotion }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(motion.path, {
|
|
18
|
+
d,
|
|
19
|
+
initial: false,
|
|
20
|
+
animate: visible ? {
|
|
21
|
+
pathLength: 1,
|
|
22
|
+
opacity: 1
|
|
23
|
+
} : {
|
|
24
|
+
pathLength: reduceMotion ? 1 : 0,
|
|
25
|
+
opacity: 0
|
|
26
|
+
},
|
|
27
|
+
transition: visible ? {
|
|
28
|
+
pathLength: {
|
|
29
|
+
duration: reduceMotion ? 0 : .2,
|
|
30
|
+
ease: EASE.out
|
|
31
|
+
},
|
|
32
|
+
opacity: { duration: reduceMotion ? DURATION.fast : .05 }
|
|
33
|
+
} : {
|
|
34
|
+
duration: .1,
|
|
35
|
+
ease: EASE.out
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Checkbox renders the Radix primitive directly rather than wrapping the
|
|
41
|
+
* shadcn one, so the indicator can stay mounted and animate out as well as in.
|
|
42
|
+
* The shadcn base stays untouched and can be regenerated from upstream.
|
|
43
|
+
*
|
|
44
|
+
* The checked state is mirrored here (controlled or not) because Motion needs
|
|
45
|
+
* it in JS to drive the check mark.
|
|
46
|
+
*/
|
|
47
|
+
function Checkbox({ ref, className, checked: checkedProp, defaultChecked, onCheckedChange, ...props }) {
|
|
48
|
+
const [checked, setChecked] = useControllableState(checkedProp, defaultChecked ?? false, onCheckedChange);
|
|
49
|
+
const reduceMotion = Boolean(useReducedMotion());
|
|
50
|
+
return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
51
|
+
ref,
|
|
52
|
+
"data-slot": "checkbox",
|
|
53
|
+
checked,
|
|
54
|
+
onCheckedChange: setChecked,
|
|
55
|
+
className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground data-[state=indeterminate]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", "transition-[background-color,border-color,box-shadow,transform] duration-[var(--duration-fast)] ease-out active:scale-[0.92] disabled:active:scale-100", className),
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
58
|
+
forceMount: true,
|
|
59
|
+
"data-slot": "checkbox-indicator",
|
|
60
|
+
className: "flex items-center justify-center text-current",
|
|
61
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
62
|
+
"aria-hidden": true,
|
|
63
|
+
viewBox: "0 0 24 24",
|
|
64
|
+
fill: "none",
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
strokeWidth: 3,
|
|
67
|
+
strokeLinecap: "round",
|
|
68
|
+
strokeLinejoin: "round",
|
|
69
|
+
className: "size-3.5",
|
|
70
|
+
children: [/* @__PURE__ */ jsx(IndicatorMark, {
|
|
71
|
+
d: CHECK_PATH,
|
|
72
|
+
visible: checked === true,
|
|
73
|
+
reduceMotion
|
|
74
|
+
}), /* @__PURE__ */ jsx(IndicatorMark, {
|
|
75
|
+
d: DASH_PATH,
|
|
76
|
+
visible: checked === "indeterminate",
|
|
77
|
+
reduceMotion
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
Checkbox.displayName = "Checkbox";
|
|
84
|
+
export { Checkbox as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/icons/close.icon.tsx
|
|
4
4
|
function CloseIcon({ className, fill = "fill-foreground" }) {
|
|
5
5
|
return /* @__PURE__ */ jsx("svg", {
|
|
6
6
|
width: "17",
|
|
@@ -16,5 +16,4 @@ function CloseIcon({ className, fill = "fill-foreground" }) {
|
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { CloseIcon as t };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { CodeEditor, CodeEditorTabs, createCodeEditorSchema, formatJson, formatYaml, isValidJson, isValidYaml, jsonSchema, jsonToYaml, yamlSchema, yamlToJson };
|
|
1
|
+
export { d as CodeEditor, i as CodeEditorTabs, t as createCodeEditorSchema, a as formatJson, o as formatYaml, s as isValidJson, c as isValidYaml, n as jsonSchema, l as jsonToYaml, r as yamlSchema, u as yamlToJson } from "../types-ChINrR8H.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-CTIuhCOs.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { use, useEffect, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/features/grid/constants/grid.constants.ts
|
|
6
6
|
const GRID_BREAKPOINTS = {
|
|
7
7
|
xs: 480,
|
|
8
8
|
sm: 576,
|
|
@@ -29,8 +29,7 @@ const RESPONSIVE_MAP = {
|
|
|
29
29
|
xl: "(min-width: 1200px)",
|
|
30
30
|
xxl: "(min-width: 1600px)"
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
//#region src/components/features/grid/utils/responsive.ts
|
|
32
|
+
// src/components/features/grid/utils/responsive.ts
|
|
34
33
|
function registerMediaQuery(query, callback) {
|
|
35
34
|
const mediaQuery = window.matchMedia(query);
|
|
36
35
|
const handleChange = (event) => {
|
|
@@ -80,8 +79,7 @@ function getResponsiveValue(value, screens) {
|
|
|
80
79
|
}
|
|
81
80
|
return value;
|
|
82
81
|
}
|
|
83
|
-
|
|
84
|
-
//#region src/components/features/grid/components/row.tsx
|
|
82
|
+
// src/components/features/grid/components/row.tsx
|
|
85
83
|
const RowContext = React.createContext(null);
|
|
86
84
|
const Row = ({ type, align, justify, className, style, children, gutter = 0, prefixCls = GRID_PREFIX, ...rest }) => {
|
|
87
85
|
const [screens, setScreens] = useState({
|
|
@@ -141,8 +139,7 @@ const Row = ({ type, align, justify, className, style, children, gutter = 0, pre
|
|
|
141
139
|
})
|
|
142
140
|
});
|
|
143
141
|
};
|
|
144
|
-
|
|
145
|
-
//#region src/components/features/grid/components/col.tsx
|
|
142
|
+
// src/components/features/grid/components/col.tsx
|
|
146
143
|
const Col = ({ span, order, offset, push, pull, className, prefixCls = GRID_PREFIX, style, children, ...rest }) => {
|
|
147
144
|
const context = use(RowContext);
|
|
148
145
|
const prefix = `${prefixCls}-col`;
|
|
@@ -189,5 +186,4 @@ const Col = ({ span, order, offset, push, pull, className, prefixCls = GRID_PREF
|
|
|
189
186
|
children
|
|
190
187
|
});
|
|
191
188
|
};
|
|
192
|
-
//#endregion
|
|
193
189
|
export { getResponsiveValue as a, GRID_COLUMNS as c, RESPONSIVE_MAP as d, getGutter as i, GRID_PREFIX as l, Row as n, registerMediaQuery as o, RowContext as r, GRID_BREAKPOINTS as s, Col as t, RESPONSIVE_ARRAY as u };
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../shadcn/ui/collapsible.tsx
|
|
3
|
-
const Collapsible = CollapsiblePrimitive.Root;
|
|
4
|
-
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
5
|
-
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
1
|
+
export { t as Collapsible, n as CollapsibleContent, r as CollapsibleTrigger } from "../collapsible-B-KP3JZ-.mjs";
|