@datum-cloud/datum-ui 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-context-NyGTDZYq.mjs → adapter-context-DemTWhel.mjs} +3 -3
- package/dist/alert/index.mjs +1 -1
- package/dist/{alert-BDj6od5I.mjs → alert-Cz56SqdN.mjs} +2 -2
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-rSOfo1KV.mjs → app-navigation-CG0A8Qjz.mjs} +12 -6
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-DdbTQe6u.mjs → autocomplete-ChuPNldi.mjs} +6 -6
- package/dist/autosearch/index.mjs +12 -12
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-CDhlA1Nm.mjs → avatar-stack-WqoQ3l06.mjs} +1 -1
- package/dist/{button-D3RrsMfQ.mjs → button-Rw1xI-k9.mjs} +2 -2
- package/dist/calendar/index.mjs +1 -1
- package/dist/calendar-D_DriVHT.mjs +77 -0
- package/dist/{calendar-C-Hbf74r.mjs → calendar-Dwvq3Vu_.mjs} +6 -6
- package/dist/calendar-date-picker-CchHKodM.mjs +52 -0
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-CUa21ynK.mjs → chart-DgcOwkOh.mjs} +5 -5
- package/dist/code-editor/index.mjs +1 -1
- package/dist/{col-DISdGlqY.mjs → col-Q6yazFwL.mjs} +2 -1
- package/dist/components/base/button/button.d.ts.map +1 -1
- package/dist/components/features/app-navigation/app-navigation.d.ts +5 -1
- package/dist/components/features/app-navigation/app-navigation.d.ts.map +1 -1
- package/dist/components/features/app-navigation/nav-menu.d.ts +4 -1
- package/dist/components/features/app-navigation/nav-menu.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +6 -5
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/types.d.ts +19 -0
- package/dist/components/features/calendar-date-picker/types.d.ts.map +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/features/code-editor/index.d.ts +1 -1
- package/dist/components/features/code-editor/index.d.ts.map +1 -1
- package/dist/components/features/code-editor/types.d.ts +25 -2
- package/dist/components/features/code-editor/types.d.ts.map +1 -1
- package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/date-time-picker.d.ts +12 -4
- package/dist/components/features/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/types.d.ts +9 -0
- package/dist/components/features/date-time-picker/types.d.ts.map +1 -1
- package/dist/components/features/grid/components/col.d.ts +1 -1
- package/dist/components/features/grid/components/col.d.ts.map +1 -1
- package/dist/components/features/grid/components/row.d.ts +1 -1
- package/dist/components/features/grid/components/row.d.ts.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/logo/index.d.ts +7 -0
- package/dist/components/features/logo/index.d.ts.map +1 -0
- package/dist/components/features/logo/logo-flat.d.ts +28 -0
- package/dist/components/features/logo/logo-flat.d.ts.map +1 -0
- package/dist/components/features/logo/logo-icon.d.ts +27 -0
- package/dist/components/features/logo/logo-icon.d.ts.map +1 -0
- package/dist/components/features/logo/logo-stacked.d.ts +24 -0
- package/dist/components/features/logo/logo-stacked.d.ts.map +1 -0
- package/dist/components/features/logo/logo-text.d.ts +27 -0
- package/dist/components/features/logo/logo-text.d.ts.map +1 -0
- package/dist/components/features/logo/logo.d.ts +24 -0
- package/dist/components/features/logo/logo.d.ts.map +1 -0
- package/dist/components/features/logo/logo.styles.d.ts +28 -0
- package/dist/components/features/logo/logo.styles.d.ts.map +1 -0
- package/dist/components/features/logo/themed/index.d.ts +2 -0
- package/dist/components/features/logo/themed/index.d.ts.map +1 -0
- package/dist/components/features/logo/themed/logo-themed.d.ts +54 -0
- package/dist/components/features/logo/themed/logo-themed.d.ts.map +1 -0
- package/dist/components/features/picker/components/calendar.d.ts +14 -0
- package/dist/components/features/picker/components/calendar.d.ts.map +1 -0
- package/dist/components/features/picker/components/content.d.ts +18 -0
- package/dist/components/features/picker/components/content.d.ts.map +1 -0
- package/dist/components/features/picker/components/context.d.ts +57 -0
- package/dist/components/features/picker/components/context.d.ts.map +1 -0
- package/dist/components/features/picker/components/footer.d.ts +35 -0
- package/dist/components/features/picker/components/footer.d.ts.map +1 -0
- package/dist/components/features/picker/components/index.d.ts +36 -0
- package/dist/components/features/picker/components/index.d.ts.map +1 -0
- package/dist/components/features/picker/components/presets.d.ts +9 -0
- package/dist/components/features/picker/components/presets.d.ts.map +1 -0
- package/dist/components/features/picker/components/root.d.ts +40 -0
- package/dist/components/features/picker/components/root.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input-field.d.ts +13 -0
- package/dist/components/features/picker/components/time-input-field.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input.d.ts +13 -0
- package/dist/components/features/picker/components/time-input.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts +14 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-select.d.ts +16 -0
- package/dist/components/features/picker/components/timezone-select.d.ts.map +1 -0
- package/dist/components/features/picker/components/trigger.d.ts +23 -0
- package/dist/components/features/picker/components/trigger.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/index.d.ts +5 -0
- package/dist/components/features/picker/hooks/index.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts +25 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts +51 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts +24 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts +21 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts.map +1 -0
- package/dist/components/features/picker/index.d.ts +8 -0
- package/dist/components/features/picker/index.d.ts.map +1 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts +9 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts.map +1 -0
- package/dist/components/features/picker/presets/defaults.d.ts +16 -0
- package/dist/components/features/picker/presets/defaults.d.ts.map +1 -0
- package/dist/components/features/picker/presets/index.d.ts +2 -0
- package/dist/components/features/picker/presets/index.d.ts.map +1 -0
- package/dist/components/features/picker/types.d.ts +70 -0
- package/dist/components/features/picker/types.d.ts.map +1 -0
- package/dist/components/features/picker/utils/commit.d.ts +16 -0
- package/dist/components/features/picker/utils/commit.d.ts.map +1 -0
- package/dist/components/features/picker/utils/compare.d.ts +12 -0
- package/dist/components/features/picker/utils/compare.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format-value.d.ts +25 -0
- package/dist/components/features/picker/utils/format-value.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format.d.ts +38 -0
- package/dist/components/features/picker/utils/format.d.ts.map +1 -0
- package/dist/components/features/picker/utils/index.d.ts +7 -0
- package/dist/components/features/picker/utils/index.d.ts.map +1 -0
- package/dist/components/features/picker/utils/range.d.ts +26 -0
- package/dist/components/features/picker/utils/range.d.ts.map +1 -0
- package/dist/components/features/picker/utils/timezone.d.ts +38 -0
- package/dist/components/features/picker/utils/timezone.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts +10 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts +20 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/index.d.ts +16 -0
- package/dist/components/features/picker/wrappers/index.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts +7 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts +14 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/types.d.ts +118 -0
- package/dist/components/features/picker/wrappers/types.d.ts.map +1 -0
- package/dist/components/features/tag-input/tag-input.d.ts +1 -1
- package/dist/components/features/tag-input/tag-input.d.ts.map +1 -1
- package/dist/components/features/time-picker/time-picker.d.ts +5 -0
- package/dist/components/features/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/features/time-picker/types.d.ts +5 -0
- package/dist/components/features/time-picker/types.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/index.d.ts +5 -0
- package/dist/components/features/time-range-picker/index.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/time-range-picker.d.ts +19 -14
- package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/types.d.ts +20 -0
- package/dist/components/features/time-range-picker/types.d.ts.map +1 -1
- package/dist/data-table/index.mjs +22 -15
- package/dist/date-picker/index.mjs +2 -2
- package/dist/date-range-picker-DNZh06zo.mjs +77 -0
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/date-time-picker-BiobghTJ.mjs +43 -0
- package/dist/date-time-picker-C0fF7s_e.mjs +109 -0
- package/dist/date-time-range-picker-BAsH_Wv9.mjs +82 -0
- package/dist/default-footer-DbpemJVl.mjs +1037 -0
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-Bt0plEuw.mjs → dropzone-DXH0xHso.mjs} +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/adapters/conform/index.mjs +19 -19
- package/dist/form/adapters/rhf/index.mjs +18 -18
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +25 -23
- package/dist/{form-CCNN9VtJ.mjs → form-DvgKb4s4.mjs} +49 -42
- package/dist/{form-context-CeKyvO-A.mjs → form-context-0usxTumz.mjs} +3 -3
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.mjs +44 -42
- package/dist/input-group/index.mjs +1 -1
- package/dist/{input-group-DDtz-RT7.mjs → input-group-CeMsDhOk.mjs} +1 -1
- package/dist/input-number/index.mjs +1 -1
- package/dist/{input-number-Diu-C6d5.mjs → input-number-BU4nno8J.mjs} +1 -1
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/logo/index.mjs +3 -0
- package/dist/logo/themed/index.mjs +106 -0
- package/dist/logo-BQVyMDDx.mjs +23 -0
- package/dist/logo-text-BW31T2dS.mjs +227 -0
- package/dist/map/index.mjs +1 -1
- package/dist/{map-qo7bY_g_.mjs → map-t6n7VaX1.mjs} +24 -27
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-Ca5qqd0H.mjs → more-actions-Bp0b_jek.mjs} +2 -2
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DM_dxnSV.mjs → multi-select-7jly2Hcd.mjs} +6 -6
- package/dist/page-title/index.mjs +1 -1
- package/dist/picker/index.mjs +273 -0
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-CQH_U4T5.mjs → rich-text-editor-Ddqx_EiO.mjs} +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select-By1ZqPgr.mjs +94 -0
- package/dist/select-Ck0szhAH.mjs +73 -0
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-B8LQJiNI.mjs → sidebar-CUnFkH7o.mjs} +32 -32
- package/dist/skeleton/index.mjs +1 -1
- package/dist/{skeleton-D4HOEiOZ.mjs → skeleton-CxAhQT6T.mjs} +1 -1
- package/dist/stepper/index.mjs +1 -1
- package/dist/{stepper-Beb-zbdL.mjs → stepper-BMC_QbJK.mjs} +7 -7
- package/dist/styles/root.css +4 -2
- package/dist/styles/shadcn/shadcn.css +212 -213
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.mjs +1 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/{tag-input-Bf4GMptp.mjs → tag-input-CV1JbKTm.mjs} +1 -1
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-D-LncEWm.mjs → task-queue-dropdown-J1FuQOSr.mjs} +3 -3
- package/dist/textarea/index.mjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/{themes-CAiN4b6G.mjs → themes-08-znmBI.mjs} +16 -16
- package/dist/time-input-9LdNL0Us.mjs +196 -0
- package/dist/time-picker/index.mjs +1 -1
- package/dist/time-picker-B-vpUClR.mjs +45 -0
- package/dist/time-picker-C840fLl6.mjs +49 -0
- package/dist/timezone-indicator-COoeMKKs.mjs +27 -0
- package/dist/{to-api-format-CgKcC9SK.mjs → to-api-format-CmXTvYka.mjs} +58 -243
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-DDdLgY53.mjs → toast-Bd5Kk7BB.mjs} +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/transfer/index.mjs +1 -1
- package/dist/{transfer-CoGPwOc6.mjs → transfer-CuJGL420.mjs} +6 -6
- package/dist/{types-CKIe2WlV.mjs → types-DvMIxilw.mjs} +9 -3
- package/dist/typography/index.mjs +1 -1
- package/dist/{typography-TRKP_CLT.mjs → typography-CBwfg-vz.mjs} +5 -5
- package/dist/{use-copy-to-clipboard-D7KyLIAt.mjs → use-copy-to-clipboard-ZHDvfV3W.mjs} +1 -1
- package/dist/use-deprecation-warning-Dy_DOyLu.mjs +20 -0
- package/dist/{use-display-touched-C-afz17j.mjs → use-display-touched-CiY6ajpy.mjs} +5 -5
- package/dist/{use-option-picker-BXQOfyrK.mjs → use-option-picker-DV5O68eV.mjs} +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +40 -25
- package/dist/calendar-date-picker-BaykEs6j.mjs +0 -749
- package/dist/date-time-picker-DKOxrhmc.mjs +0 -193
- package/dist/select-zxwykvQn.mjs +0 -163
- package/dist/time-picker-BZF5jbF6.mjs +0 -99
- package/dist/use-date-constraints-R3H4lIoT.mjs +0 -41
- /package/dist/{action-row-DnhBhMtt.mjs → action-row-DXw4UnHU.mjs} +0 -0
- /package/dist/{empty-content-CBh5bbtJ.mjs → empty-content-DTk_lwnh.mjs} +0 -0
- /package/dist/{hooks-DQXVwbrs.mjs → hooks-BPxgIHKV.mjs} +0 -0
- /package/dist/{loader-overlay-C2WDla6V.mjs → loader-overlay-B3YEoOFJ.mjs} +0 -0
- /package/dist/{map-leaflet-imports-yWwH4CHB.mjs → map-leaflet-imports-C8l0RTTP.mjs} +0 -0
- /package/dist/{page-title-ChLiv6gB.mjs → page-title-CGW3f4qH.mjs} +0 -0
- /package/dist/{skeleton-D2xuJdE1.mjs → skeleton-B1NOdZGM.mjs} +0 -0
- /package/dist/{switch-DcSF42Kc.mjs → switch-BcQaR1Bp.mjs} +0 -0
- /package/dist/{table-DWGT4cqh.mjs → table-ouGk4Vxe.mjs} +0 -0
- /package/dist/{textarea-BoChBcFz.mjs → textarea-q-k7DYwi.mjs} +0 -0
- /package/dist/{toast-D5XD7goD.mjs → toast-BWol1pyV.mjs} +0 -0
- /package/dist/{tooltip-a7NTDCWw.mjs → tooltip-CHuzXR_O.mjs} +0 -0
- /package/dist/{utils-BwB1mIdZ.mjs → utils-C07H7h7q.mjs} +0 -0
- /package/dist/{visuallyhidden-BHOPczmW.mjs → visuallyhidden-CoIJOJ9z.mjs} +0 -0
|
@@ -5,131 +5,131 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
@layer shadcn-base {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
8
|
+
:root {
|
|
9
|
+
/* Sidebar sizing */
|
|
10
|
+
--sidebar-width: 14rem;
|
|
11
|
+
--sidebar-width-icon: 3rem;
|
|
12
|
+
--sidebar-width-mobile: 18rem;
|
|
13
|
+
|
|
14
|
+
/* Default radius */
|
|
15
|
+
--radius: 0.625rem;
|
|
16
|
+
|
|
17
|
+
/* Minimal color fallbacks using OKLCH */
|
|
18
|
+
--background: oklch(1 0 0);
|
|
19
|
+
--foreground: oklch(0.145 0 0);
|
|
20
|
+
--card: oklch(1 0 0);
|
|
21
|
+
--card-foreground: oklch(0.145 0 0);
|
|
22
|
+
--popover: oklch(1 0 0);
|
|
23
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
24
|
+
--primary: oklch(0.205 0 0);
|
|
25
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
26
|
+
--secondary: oklch(0.97 0 0);
|
|
27
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
28
|
+
--muted: oklch(0.97 0 0);
|
|
29
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
30
|
+
--accent: oklch(0.97 0 0);
|
|
31
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
32
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
33
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
34
|
+
--border: oklch(0.922 0 0);
|
|
35
|
+
--input: oklch(0.922 0 0);
|
|
36
|
+
--ring: oklch(0.708 0 0);
|
|
37
|
+
|
|
38
|
+
/* Chart colors */
|
|
39
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
40
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
41
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
42
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
43
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
44
|
+
|
|
45
|
+
/* Sidebar colors */
|
|
46
|
+
--sidebar: oklch(0.985 0 0);
|
|
47
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
48
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
49
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
50
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
51
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
52
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
53
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dark {
|
|
57
|
+
--background: oklch(0.145 0 0);
|
|
58
|
+
--foreground: oklch(0.985 0 0);
|
|
59
|
+
--card: oklch(0.205 0 0);
|
|
60
|
+
--card-foreground: oklch(0.985 0 0);
|
|
61
|
+
--popover: oklch(0.205 0 0);
|
|
62
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
63
|
+
--primary: oklch(0.922 0 0);
|
|
64
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
65
|
+
--secondary: oklch(0.269 0 0);
|
|
66
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
67
|
+
--muted: oklch(0.269 0 0);
|
|
68
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
69
|
+
--accent: oklch(0.269 0 0);
|
|
70
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
71
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
72
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
73
|
+
--border: oklch(1 0 0 / 10%);
|
|
74
|
+
--input: oklch(1 0 0 / 15%);
|
|
75
|
+
--ring: oklch(0.556 0 0);
|
|
76
|
+
|
|
77
|
+
/* Chart colors - dark mode */
|
|
78
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
79
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
80
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
81
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
82
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
83
|
+
|
|
84
|
+
/* Sidebar colors - dark mode */
|
|
85
|
+
--sidebar: oklch(0.205 0 0);
|
|
86
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
87
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
88
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
89
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
90
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
91
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
92
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Tailwind theme integration */
|
|
96
|
+
@theme inline {
|
|
97
|
+
--color-sidebar: var(--sidebar);
|
|
98
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
99
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
100
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
101
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
102
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
103
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
104
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
105
|
+
--color-chart-5: var(--chart-5);
|
|
106
|
+
--color-chart-4: var(--chart-4);
|
|
107
|
+
--color-chart-3: var(--chart-3);
|
|
108
|
+
--color-chart-2: var(--chart-2);
|
|
109
|
+
--color-chart-1: var(--chart-1);
|
|
110
|
+
--color-ring: var(--ring);
|
|
111
|
+
--color-input: var(--input);
|
|
112
|
+
--color-border: var(--border);
|
|
113
|
+
--color-destructive: var(--destructive);
|
|
114
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
115
|
+
--color-accent: var(--accent);
|
|
116
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
117
|
+
--color-muted: var(--muted);
|
|
118
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
119
|
+
--color-secondary: var(--secondary);
|
|
120
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
121
|
+
--color-primary: var(--primary);
|
|
122
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
123
|
+
--color-popover: var(--popover);
|
|
124
|
+
--color-card-foreground: var(--card-foreground);
|
|
125
|
+
--color-card: var(--card);
|
|
126
|
+
--color-foreground: var(--foreground);
|
|
127
|
+
--color-background: var(--background);
|
|
128
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
129
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
130
|
+
--radius-lg: var(--radius);
|
|
131
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
132
|
+
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
@@ -138,99 +138,98 @@
|
|
|
138
138
|
*/
|
|
139
139
|
|
|
140
140
|
@theme {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
--font-sans:
|
|
142
|
+
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
143
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
html,
|
|
147
147
|
body {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
color-scheme: dark;
|
|
152
|
-
}
|
|
148
|
+
@media (prefers-color-scheme: dark) {
|
|
149
|
+
color-scheme: dark;
|
|
150
|
+
}
|
|
153
151
|
}
|
|
154
152
|
|
|
155
153
|
@layer base {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
154
|
+
* {
|
|
155
|
+
@apply border-border outline-ring/50;
|
|
156
|
+
scrollbar-width: thin;
|
|
157
|
+
scrollbar-color: var(--border) transparent;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
html {
|
|
161
|
+
@apply overflow-x-hidden;
|
|
162
|
+
}
|
|
163
|
+
body {
|
|
164
|
+
@apply bg-background text-foreground min-h-svh w-full;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
button:not(:disabled),
|
|
168
|
+
[role="button"]:not(:disabled) {
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Prevent focus zoom on mobile devices */
|
|
173
|
+
@media screen and (max-width: 767px) {
|
|
174
|
+
input,
|
|
175
|
+
select,
|
|
176
|
+
textarea {
|
|
177
|
+
font-size: 16px !important;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.leaflet-container {
|
|
181
|
+
@apply !bg-card !font-[inherit];
|
|
182
|
+
}
|
|
183
|
+
.leaflet-container a {
|
|
184
|
+
@apply !text-inherit;
|
|
185
|
+
}
|
|
186
|
+
.leaflet-div-icon {
|
|
187
|
+
@apply !border-none !bg-transparent;
|
|
188
|
+
}
|
|
189
|
+
.leaflet-popup-content-wrapper,
|
|
190
|
+
.leaflet-popup-content,
|
|
191
|
+
.leaflet-popup-content p {
|
|
192
|
+
@apply ![all:unset];
|
|
193
|
+
}
|
|
194
|
+
.leaflet-popup {
|
|
195
|
+
@apply !animate-none;
|
|
196
|
+
}
|
|
197
|
+
.leaflet-popup-close-button {
|
|
198
|
+
@apply ring-offset-background focus:ring-ring bg-secondary rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:outline-hidden;
|
|
199
|
+
}
|
|
200
|
+
.leaflet-tooltip,
|
|
201
|
+
.leaflet-draw-tooltip {
|
|
202
|
+
@apply !bg-foreground !text-background !animate-none !rounded-md !border-none !p-0 !px-3 !py-1.5 !shadow-none;
|
|
203
|
+
}
|
|
204
|
+
.leaflet-draw-tooltip:before {
|
|
205
|
+
@apply bg-foreground !top-1/2 !right-0.5 size-2.5 translate-x-1/2 -translate-y-1/2 rotate-45 rounded-[2px] !border-none;
|
|
206
|
+
}
|
|
207
|
+
.leaflet-error-draw-tooltip {
|
|
208
|
+
@apply !bg-destructive !text-white;
|
|
209
|
+
}
|
|
210
|
+
.leaflet-error-draw-tooltip:before {
|
|
211
|
+
@apply bg-destructive;
|
|
212
|
+
}
|
|
213
|
+
.leaflet-draw-tooltip-subtext {
|
|
214
|
+
@apply !text-background;
|
|
215
|
+
}
|
|
216
|
+
.leaflet-popup-tip-container,
|
|
217
|
+
.leaflet-tooltip-top:before,
|
|
218
|
+
.leaflet-tooltip-bottom:before,
|
|
219
|
+
.leaflet-tooltip-left:before,
|
|
220
|
+
.leaflet-tooltip-right:before {
|
|
221
|
+
@apply hidden;
|
|
222
|
+
}
|
|
223
|
+
.leaflet-control-attribution {
|
|
224
|
+
@apply !bg-muted rounded-md !px-[4px] !py-[2px] text-[10px] !leading-none !text-inherit;
|
|
225
|
+
}
|
|
226
|
+
.leaflet-draw-guide-dash {
|
|
227
|
+
@apply rounded-full;
|
|
228
|
+
}
|
|
229
|
+
.leaflet-edit-marker-selected {
|
|
230
|
+
@apply !border-transparent !bg-transparent;
|
|
231
|
+
}
|
|
232
|
+
.marker-cluster div {
|
|
233
|
+
@apply font-[inherit];
|
|
234
|
+
}
|
|
236
235
|
}
|
package/dist/switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "../switch-
|
|
1
|
+
import { t as Switch } from "../switch-BcQaR1Bp.mjs";
|
|
2
2
|
export { Switch };
|
package/dist/table/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TableFooter, c as TableRow, i as TableCell, n as TableBody, o as TableHead, r as TableCaption, s as TableHeader, t as Table } from "../table-
|
|
1
|
+
import { a as TableFooter, c as TableRow, i as TableCell, n as TableBody, o as TableHead, r as TableCaption, s as TableHeader, t as Table } from "../table-ouGk4Vxe.mjs";
|
|
2
2
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
package/dist/tag-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TagsInput } from "../tag-input-
|
|
1
|
+
import { t as TagsInput } from "../tag-input-CV1JbKTm.mjs";
|
|
2
2
|
export { TagsInput };
|
|
@@ -3,7 +3,7 @@ import { t as Badge } from "./badge-DJR33ftJ.mjs";
|
|
|
3
3
|
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
4
4
|
import { t as Input } from "./input-FKGqZypx.mjs";
|
|
5
5
|
import { X } from "lucide-react";
|
|
6
|
-
import React from "react";
|
|
6
|
+
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/components/features/tag-input/tag-input.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as RedisTaskStorage, a as TaskPanelItem, b as createProjectMetadata, c as TaskPanelHeader, d as useCurrentScope, f as useTasksWithLabels, g as detectStorage, h as TaskQueue, i as TaskPanel, l as getContextLabel, m as TaskQueueProvider, n as TaskSummaryDialog, o as TaskPanelCounter, p as useTaskQueue, r as TaskQueueTrigger, s as TaskPanelActions, t as TaskQueueDropdown, u as matchesCurrentScope, v as LocalTaskStorage, x as createUserMetadata, y as createOrgMetadata } from "../task-queue-dropdown-
|
|
1
|
+
import { _ as RedisTaskStorage, a as TaskPanelItem, b as createProjectMetadata, c as TaskPanelHeader, d as useCurrentScope, f as useTasksWithLabels, g as detectStorage, h as TaskQueue, i as TaskPanel, l as getContextLabel, m as TaskQueueProvider, n as TaskSummaryDialog, o as TaskPanelCounter, p as useTaskQueue, r as TaskQueueTrigger, s as TaskPanelActions, t as TaskQueueDropdown, u as matchesCurrentScope, v as LocalTaskStorage, x as createUserMetadata, y as createOrgMetadata } from "../task-queue-dropdown-J1FuQOSr.mjs";
|
|
2
2
|
export { LocalTaskStorage, RedisTaskStorage, TaskPanel, TaskPanelActions, TaskPanelCounter, TaskPanelHeader, TaskPanelItem, TaskQueue, TaskQueueDropdown, TaskQueueProvider, TaskQueueTrigger, TaskSummaryDialog, createOrgMetadata, createProjectMetadata, createUserMetadata, detectStorage, getContextLabel, matchesCurrentScope, useCurrentScope, useTaskQueue, useTasksWithLabels };
|
|
@@ -5,8 +5,8 @@ import { t as Button } from "./button-BllvE9Lm.mjs";
|
|
|
5
5
|
import { t as Icon } from "./icon-wrapper-DuLp3RM1.mjs";
|
|
6
6
|
import { t as Dialog } from "./dialog-Bm2H9lrx.mjs";
|
|
7
7
|
import { t as ResponsiveDropdown } from "./responsive-dropdown-IFroDgKn.mjs";
|
|
8
|
-
import { a as TooltipTrigger, n as Tooltip, r as TooltipContent, t as Tooltip$1 } from "./tooltip-
|
|
9
|
-
import { c as TableRow, i as TableCell, n as TableBody, o as TableHead, s as TableHeader, t as Table } from "./table-
|
|
8
|
+
import { a as TooltipTrigger, n as Tooltip, r as TooltipContent, t as Tooltip$1 } from "./tooltip-CHuzXR_O.mjs";
|
|
9
|
+
import { c as TableRow, i as TableCell, n as TableBody, o as TableHead, s as TableHeader, t as Table } from "./table-ouGk4Vxe.mjs";
|
|
10
10
|
import { Ban, CheckCircle2, CircleAlert, CircleCheck, CornerDownRightIcon, FileIcon, ListTodo, X, XCircle } from "lucide-react";
|
|
11
11
|
import { createContext, use, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1111,7 +1111,7 @@ function TaskQueueTrigger({ ref, tasks, ...props }) {
|
|
|
1111
1111
|
if (isAllComplete && !prevAllComplete.current) {
|
|
1112
1112
|
prevAllComplete.current = true;
|
|
1113
1113
|
setFlash(true);
|
|
1114
|
-
const timer = setTimeout(
|
|
1114
|
+
const timer = setTimeout(setFlash, 5e3, false);
|
|
1115
1115
|
return () => clearTimeout(timer);
|
|
1116
1116
|
}
|
|
1117
1117
|
if (!isAllComplete) prevAllComplete.current = false;
|
package/dist/textarea/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Textarea } from "../textarea-
|
|
1
|
+
import { t as Textarea } from "../textarea-q-k7DYwi.mjs";
|
|
2
2
|
export { Textarea };
|
package/dist/theme/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "../themes-
|
|
1
|
+
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "../themes-08-znmBI.mjs";
|
|
2
2
|
export { ClientOnly, ThemeProvider, ThemeScript, useTheme };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/themes/client-only.tsx
|
|
4
4
|
function ClientOnly({ children, fallback = null }) {
|
|
5
|
-
const [hasMounted, setHasMounted] = React
|
|
6
|
-
React
|
|
5
|
+
const [hasMounted, setHasMounted] = React.useState(false);
|
|
6
|
+
React.useEffect(() => {
|
|
7
7
|
setHasMounted(true);
|
|
8
8
|
}, []);
|
|
9
9
|
if (!hasMounted) return /* @__PURE__ */ jsx(Fragment$1, { children: fallback });
|
|
@@ -40,7 +40,7 @@ function script(attribute, storageKey, defaultTheme, forcedTheme, themes, value,
|
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/components/themes/theme-script.tsx
|
|
43
|
-
const ThemeScript = React
|
|
43
|
+
const ThemeScript = React.memo(({ forcedTheme, storageKey = "theme", attribute = "data-theme", enableSystem = true, enableColorScheme = true, defaultTheme = "system", value, themes = ["light", "dark"], nonce, scriptProps }) => {
|
|
44
44
|
const scriptArgs = JSON.stringify([
|
|
45
45
|
attribute,
|
|
46
46
|
storageKey,
|
|
@@ -63,7 +63,7 @@ const ThemeScript = React$1.memo(({ forcedTheme, storageKey = "theme", attribute
|
|
|
63
63
|
const colorSchemes = ["light", "dark"];
|
|
64
64
|
const MEDIA = "(prefers-color-scheme: dark)";
|
|
65
65
|
const isServer = typeof window === "undefined";
|
|
66
|
-
const ThemeContext = React
|
|
66
|
+
const ThemeContext = React.createContext(void 0);
|
|
67
67
|
const defaultContext = {
|
|
68
68
|
setTheme: (_) => {},
|
|
69
69
|
themes: []
|
|
@@ -73,20 +73,20 @@ function saveToLS(storageKey, value) {
|
|
|
73
73
|
localStorage.setItem(storageKey, value);
|
|
74
74
|
} catch {}
|
|
75
75
|
}
|
|
76
|
-
const useTheme = () => React
|
|
76
|
+
const useTheme = () => React.use(ThemeContext) ?? defaultContext;
|
|
77
77
|
function ThemeProvider(props) {
|
|
78
|
-
if (React
|
|
78
|
+
if (React.use(ThemeContext)) return /* @__PURE__ */ jsx(Fragment$1, { children: props.children });
|
|
79
79
|
return /* @__PURE__ */ jsx(ThemeImpl, { ...props });
|
|
80
80
|
}
|
|
81
81
|
const defaultThemes = ["light", "dark"];
|
|
82
82
|
function ThemeImpl({ forcedTheme, disableTransitionOnChange = false, enableSystem = true, enableColorScheme = true, storageKey = "theme", themes = defaultThemes, defaultTheme = enableSystem ? "system" : "light", attribute = "data-theme", value, children, nonce, scriptProps: _scriptProps }) {
|
|
83
|
-
const [theme, setThemeState] = React
|
|
84
|
-
const [resolvedTheme, setResolvedTheme] = React
|
|
83
|
+
const [theme, setThemeState] = React.useState(() => isServer ? defaultTheme : getTheme(storageKey, defaultTheme));
|
|
84
|
+
const [resolvedTheme, setResolvedTheme] = React.useState(() => {
|
|
85
85
|
if (isServer) return defaultTheme === "dark" ? "dark" : "light";
|
|
86
86
|
return theme === "system" ? getSystemTheme() : theme;
|
|
87
87
|
});
|
|
88
88
|
const attrs = !value ? themes : Object.values(value);
|
|
89
|
-
const applyTheme = React
|
|
89
|
+
const applyTheme = React.useCallback((theme) => {
|
|
90
90
|
let resolved = theme;
|
|
91
91
|
if (!resolved) return;
|
|
92
92
|
if (theme === "system" && enableSystem) resolved = getSystemTheme();
|
|
@@ -109,7 +109,7 @@ function ThemeImpl({ forcedTheme, disableTransitionOnChange = false, enableSyste
|
|
|
109
109
|
}
|
|
110
110
|
enable?.();
|
|
111
111
|
}, [nonce]);
|
|
112
|
-
const setTheme = React
|
|
112
|
+
const setTheme = React.useCallback((value) => {
|
|
113
113
|
if (typeof value === "function") setThemeState((prevTheme) => {
|
|
114
114
|
const newTheme = value(prevTheme);
|
|
115
115
|
saveToLS(storageKey, newTheme);
|
|
@@ -120,18 +120,18 @@ function ThemeImpl({ forcedTheme, disableTransitionOnChange = false, enableSyste
|
|
|
120
120
|
saveToLS(storageKey, value);
|
|
121
121
|
}
|
|
122
122
|
}, []);
|
|
123
|
-
const handleMediaQuery = React
|
|
123
|
+
const handleMediaQuery = React.useCallback((e) => {
|
|
124
124
|
setResolvedTheme(getSystemTheme(e));
|
|
125
125
|
if (theme === "system" && enableSystem && !forcedTheme) applyTheme("system");
|
|
126
126
|
}, [theme, forcedTheme]);
|
|
127
|
-
React
|
|
127
|
+
React.useEffect(() => {
|
|
128
128
|
if (typeof window === "undefined") return;
|
|
129
129
|
const media = window.matchMedia(MEDIA);
|
|
130
130
|
media.addListener(handleMediaQuery);
|
|
131
131
|
handleMediaQuery(media);
|
|
132
132
|
return () => media.removeListener(handleMediaQuery);
|
|
133
133
|
}, [handleMediaQuery]);
|
|
134
|
-
React
|
|
134
|
+
React.useEffect(() => {
|
|
135
135
|
if (typeof window === "undefined") return;
|
|
136
136
|
const handleStorage = (e) => {
|
|
137
137
|
if (e.key !== storageKey) return;
|
|
@@ -141,11 +141,11 @@ function ThemeImpl({ forcedTheme, disableTransitionOnChange = false, enableSyste
|
|
|
141
141
|
window.addEventListener("storage", handleStorage);
|
|
142
142
|
return () => window.removeEventListener("storage", handleStorage);
|
|
143
143
|
}, [setTheme]);
|
|
144
|
-
React
|
|
144
|
+
React.useEffect(() => {
|
|
145
145
|
if (typeof window !== "undefined") applyTheme(forcedTheme ?? theme);
|
|
146
146
|
}, [forcedTheme, theme]);
|
|
147
147
|
return /* @__PURE__ */ jsx(ThemeContext, {
|
|
148
|
-
value: React
|
|
148
|
+
value: React.useMemo(() => ({
|
|
149
149
|
theme,
|
|
150
150
|
setTheme,
|
|
151
151
|
forcedTheme,
|