asheeui 0.6.14 → 0.7.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/README.md +1 -14
- package/dist/AsheeUIProvider.js +22 -24
- package/dist/components/accordion/Accordion.js +79 -173
- package/dist/components/accordion/accordion-config.js +12 -13
- package/dist/components/accordion/accordion-styles.js +21 -24
- package/dist/components/autocomplete/Autocomplete.js +78 -136
- package/dist/components/autocomplete/autocomplete-config.js +7 -12
- package/dist/components/button/Button.d.ts +29 -1
- package/dist/components/button/Button.d.ts.map +1 -1
- package/dist/components/button/Button.js +47 -108
- package/dist/components/button/button-config.js +16 -17
- package/dist/components/button/button-styles.js +10 -11
- package/dist/components/card/Card.d.ts +36 -16
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +115 -205
- package/dist/components/card/card-config.js +24 -21
- package/dist/components/card/card-styles.js +19 -22
- package/dist/components/carousel/Carousel.js +123 -248
- package/dist/components/carousel/carousel-config.js +24 -25
- package/dist/components/carousel/carousel-styles.js +14 -16
- package/dist/components/chip/Chip.js +84 -191
- package/dist/components/chip/chip-config.js +13 -14
- package/dist/components/chip/chip-styles.js +22 -26
- package/dist/components/date-picker/Calendar.d.ts +3 -3
- package/dist/components/date-picker/Calendar.d.ts.map +1 -1
- package/dist/components/date-picker/Calendar.js +141 -222
- package/dist/components/date-picker/DatePicker.d.ts +5 -5
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.js +122 -220
- package/dist/components/date-picker/TimeSpinner.js +58 -82
- package/dist/components/date-picker/date-picker-config.d.ts +4 -4
- package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-config.js +10 -11
- package/dist/components/date-picker/date-picker-styles.js +44 -45
- package/dist/components/date-picker/date-picker.helpers.d.ts +4 -4
- package/dist/components/date-picker/date-picker.helpers.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.helpers.js +74 -102
- package/dist/components/drawer/Drawer.d.ts +26 -8
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +54 -131
- package/dist/components/drawer/drawer-config.js +14 -15
- package/dist/components/drawer/drawer-styles.js +38 -42
- package/dist/components/field/FieldShell.js +49 -56
- package/dist/components/field/field-config.js +17 -18
- package/dist/components/field/field-styles.js +8 -8
- package/dist/components/image/Image.d.ts +7 -7
- package/dist/components/image/Image.d.ts.map +1 -1
- package/dist/components/image/Image.js +65 -132
- package/dist/components/image/image-config.js +17 -18
- package/dist/components/image/image-styles.js +14 -15
- package/dist/components/input/Input.js +65 -150
- package/dist/components/input/PasswordInput.js +30 -49
- package/dist/components/input/input-config.js +7 -7
- package/dist/components/input/input-styles.js +9 -10
- package/dist/components/keyboard/KeyboardContext.js +10 -11
- package/dist/components/keyboard/KeyboardProvider.js +100 -181
- package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
- package/dist/components/keyboard/OnScreenKeyboard.js +159 -166
- package/dist/components/keyboard/keyboard-config.js +59 -57
- package/dist/components/keyboard/keyboard-styles.js +10 -11
- package/dist/components/keyboard/use-keyboard-field.js +29 -21
- package/dist/components/link/Link.js +47 -137
- package/dist/components/link/link-config.js +14 -15
- package/dist/components/link/link-styles.js +25 -29
- package/dist/components/marquee/Marquee.js +55 -144
- package/dist/components/marquee/marquee-config.js +18 -19
- package/dist/components/marquee/marquee-styles.js +13 -15
- package/dist/components/modal/Modal.d.ts +26 -10
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +56 -136
- package/dist/components/modal/modal-config.js +15 -16
- package/dist/components/modal/modal-styles.js +13 -14
- package/dist/components/multi-select/MultiSelect.d.ts +18 -2
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.js +149 -283
- package/dist/components/multi-select/multi-select-config.d.ts +23 -18
- package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
- package/dist/components/multi-select/multi-select-config.js +18 -21
- package/dist/components/multi-select/multi-select-styles.js +17 -20
- package/dist/components/radio/Radio.js +43 -80
- package/dist/components/radio/RadioGroup.js +57 -155
- package/dist/components/radio/radio-config.js +15 -16
- package/dist/components/radio/radio-context.js +6 -6
- package/dist/components/radio/radio-styles.js +55 -60
- package/dist/components/resizable-screen/ResizableScreen.js +87 -177
- package/dist/components/resizable-screen/resizable-screen-config.js +16 -17
- package/dist/components/select/Select.d.ts +3 -2
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.js +97 -195
- package/dist/components/select/select-config.js +8 -9
- package/dist/components/select/select-styles.js +5 -5
- package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
- package/dist/components/select-menu/SelectMenu.js +102 -196
- package/dist/components/select-menu/select-menu-config.js +12 -12
- package/dist/components/select-menu/use-select-floating.d.ts +11 -1
- package/dist/components/select-menu/use-select-floating.d.ts.map +1 -1
- package/dist/components/select-menu/use-select-floating.js +41 -48
- package/dist/components/sidebar/Sidebar.d.ts +43 -22
- package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.js +146 -331
- package/dist/components/sidebar/sidebar-config.d.ts +98 -31
- package/dist/components/sidebar/sidebar-config.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-config.js +47 -33
- package/dist/components/sidebar/sidebar-styles.js +27 -32
- package/dist/components/spinner/spinner-config.js +12 -13
- package/dist/components/spinner/spinner-styles.js +13 -14
- package/dist/components/spinner/spinner.js +39 -82
- package/dist/components/switch/Switch.js +62 -154
- package/dist/components/switch/switch-config.js +11 -12
- package/dist/components/switch/switch-styles.js +14 -16
- package/dist/components/table/Table.js +64 -186
- package/dist/components/table/table-config.js +17 -18
- package/dist/components/table/table-styles.js +48 -52
- package/dist/components/tabs/Tabs.d.ts +16 -8
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +93 -208
- package/dist/components/tabs/tabs-config.d.ts +42 -20
- package/dist/components/tabs/tabs-config.d.ts.map +1 -1
- package/dist/components/tabs/tabs-config.js +26 -18
- package/dist/components/tabs/tabs-styles.js +15 -17
- package/dist/components/textarea/Textarea.js +52 -138
- package/dist/components/textarea/textarea-config.js +10 -11
- package/dist/components/textarea/textarea-styles.js +9 -10
- package/dist/components/toast/ToastContext.js +22 -26
- package/dist/components/toast/ToastItem.js +82 -144
- package/dist/components/toast/ToastProvider.d.ts.map +1 -1
- package/dist/components/toast/ToastProvider.js +128 -190
- package/dist/components/toast/toast-config.js +23 -24
- package/dist/components/toast/toast-styles.js +50 -55
- package/dist/components/toast/use-pausable-timeout.js +17 -13
- package/dist/components/tooltip/Tooltip.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.js +68 -158
- package/dist/components/tooltip/tooltip-config.d.ts +25 -0
- package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-config.js +26 -22
- package/dist/components/tooltip/tooltip-styles.js +15 -17
- package/dist/config/default-config.js +11 -34
- package/dist/config/resolve-color.js +23 -23
- package/dist/config/resolve-config.d.ts.map +1 -1
- package/dist/config/resolve-config.js +14 -12
- package/dist/icons/ArrowLeftIcon.js +16 -19
- package/dist/icons/CalendarIcon.js +43 -24
- package/dist/icons/CheckIcon.js +16 -19
- package/dist/icons/ChevronDownIcon.js +15 -21
- package/dist/icons/ChevronLeftIcon.js +16 -19
- package/dist/icons/ChevronRightIcon.js +16 -19
- package/dist/icons/ChevronUpIcon.js +16 -19
- package/dist/icons/ClearIcon.js +26 -22
- package/dist/icons/ClockIcon.js +20 -22
- package/dist/icons/CloseIcon.js +26 -22
- package/dist/icons/ErrorIcon.js +16 -19
- package/dist/icons/ExternalLinkIcon.js +25 -23
- package/dist/icons/EyeIcon.js +20 -22
- package/dist/icons/EyeOffIcon.js +21 -22
- package/dist/icons/InfoIcon.js +16 -19
- package/dist/icons/SearchIcon.js +25 -22
- package/dist/icons/WarningIcon.js +16 -19
- package/dist/index.js +65 -163
- package/dist/libs/context.js +10 -13
- package/dist/libs/index.js +1 -0
- package/dist/libs/registry.js +10 -12
- package/dist/libs/use-floating-z-index.d.ts +32 -0
- package/dist/libs/use-floating-z-index.d.ts.map +1 -0
- package/dist/libs/use-floating-z-index.js +16 -0
- package/dist/libs/use-isomorphic-layout-effect.js +5 -5
- package/dist/scripts/AsheeThemeScript.js +35 -44
- package/dist/shared/radius.d.ts.map +1 -1
- package/dist/shared/radius.js +12 -13
- package/dist/shared/variant.js +46 -134
- package/dist/theme/color.js +28 -28
- package/dist/theme/controller.d.ts.map +1 -1
- package/dist/theme/controller.js +65 -178
- package/dist/theme/useTheme.js +13 -44
- package/dist/utils/cn.js +7 -7
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/merge-object.js +13 -14
- package/dist/utils/resolve-token.js +11 -14
- package/dist/utils/stacking.d.ts +76 -0
- package/dist/utils/stacking.d.ts.map +1 -0
- package/dist/utils/stacking.js +34 -0
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -1,165 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { THEME_STORAGE_KEY as e, themeController as t } from "./theme/controller.js";
|
|
3
|
+
import { useTheme as n } from "./theme/useTheme.js";
|
|
2
4
|
import { AsheeUIProvider as r } from "./AsheeUIProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import { TextArea as
|
|
61
|
-
import { ToastContext as
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
|
|
66
|
-
import { useKeyboardField as er } from "./components/keyboard/use-keyboard-field.js";
|
|
67
|
-
export {
|
|
68
|
-
m as Accordion,
|
|
69
|
-
r as AsheeUIProvider,
|
|
70
|
-
L as Autocomplete,
|
|
71
|
-
_ as Button,
|
|
72
|
-
l as Card,
|
|
73
|
-
u as Carousel,
|
|
74
|
-
I as Chip,
|
|
75
|
-
K as DatePicker,
|
|
76
|
-
T as Drawer,
|
|
77
|
-
G as FALLBACK_ACCORDION_CONFIG,
|
|
78
|
-
S as FALLBACK_AUTOCOMPLETE_CONFIG,
|
|
79
|
-
c as FALLBACK_BUTTON_CONFIG,
|
|
80
|
-
M as FALLBACK_CARD_CONFIG,
|
|
81
|
-
h as FALLBACK_CAROUSEL_CONFIG,
|
|
82
|
-
k as FALLBACK_CHIP_CONFIG,
|
|
83
|
-
q as FALLBACK_DATE_PICKER_CONFIG,
|
|
84
|
-
Y as FALLBACK_DRAWER_CONFIG,
|
|
85
|
-
Z as FALLBACK_FIELD_CONFIG,
|
|
86
|
-
V as FALLBACK_IMAGE_CONFIG,
|
|
87
|
-
eo as FALLBACK_KEYBOARD_CONFIG,
|
|
88
|
-
po as FALLBACK_LINK_CONFIG,
|
|
89
|
-
mo as FALLBACK_MARQUEE_CONFIG,
|
|
90
|
-
io as FALLBACK_MODAL_CONFIG,
|
|
91
|
-
Fo as FALLBACK_MULTI_SELECT_CONFIG,
|
|
92
|
-
Io as FALLBACK_RADIO_CONFIG,
|
|
93
|
-
Bo as FALLBACK_RESIZABLE_SCREEN_CONFIG,
|
|
94
|
-
Go as FALLBACK_SELECT_CONFIG,
|
|
95
|
-
So as FALLBACK_SIDEBAR_CONFIG,
|
|
96
|
-
co as FALLBACK_SPINNER_CONFIG,
|
|
97
|
-
Mo as FALLBACK_SWITCH_CONFIG,
|
|
98
|
-
ho as FALLBACK_TABLE_CONFIG,
|
|
99
|
-
ko as FALLBACK_TABS_CONFIG,
|
|
100
|
-
qo as FALLBACK_TEXTAREA_CONFIG,
|
|
101
|
-
Yo as FALLBACK_TOAST_CONFIG,
|
|
102
|
-
Zo as FALLBACK_TOOLTIP_CONFIG,
|
|
103
|
-
Vo as FieldShell,
|
|
104
|
-
oe as Image,
|
|
105
|
-
re as Input,
|
|
106
|
-
fe as KeyboardContext,
|
|
107
|
-
Ae as KeyboardProvider,
|
|
108
|
-
me as Link,
|
|
109
|
-
Le as Marquee,
|
|
110
|
-
_e as Modal,
|
|
111
|
-
le as MultiSelect,
|
|
112
|
-
ue as OnScreenKeyboard,
|
|
113
|
-
Ie as PasswordInput,
|
|
114
|
-
Ke as Radio,
|
|
115
|
-
Te as RadioContext,
|
|
116
|
-
ge as RadioGroup,
|
|
117
|
-
Se as ResizableScreen,
|
|
118
|
-
Re as Select,
|
|
119
|
-
be as Sidebar,
|
|
120
|
-
Me as Spinner,
|
|
121
|
-
ye as Switch,
|
|
122
|
-
f as THEME_STORAGE_KEY,
|
|
123
|
-
Ue as Table,
|
|
124
|
-
ke as Tabs,
|
|
125
|
-
He as TextArea,
|
|
126
|
-
ze as ToastContext,
|
|
127
|
-
Qe as ToastItem,
|
|
128
|
-
Ze as ToastProvider,
|
|
129
|
-
Je as Tooltip,
|
|
130
|
-
g as defaultAccordionConfig,
|
|
131
|
-
s as defaultAutocompleteConfig,
|
|
132
|
-
b as defaultButtonConfig,
|
|
133
|
-
P as defaultCardConfig,
|
|
134
|
-
U as defaultCarouselConfig,
|
|
135
|
-
v as defaultChipConfig,
|
|
136
|
-
z as defaultDatePickerConfig,
|
|
137
|
-
Q as defaultDrawerConfig,
|
|
138
|
-
j as defaultFieldConfig,
|
|
139
|
-
$ as defaultImageConfig,
|
|
140
|
-
$e as defaultInputConfig,
|
|
141
|
-
ro as defaultKeyDisplay,
|
|
142
|
-
to as defaultKeyboardConfig,
|
|
143
|
-
fo as defaultKeyboardLayouts,
|
|
144
|
-
Ao as defaultLinkConfig,
|
|
145
|
-
xo as defaultMarqueeConfig,
|
|
146
|
-
_o as defaultModalConfig,
|
|
147
|
-
uo as defaultMultiSelectConfig,
|
|
148
|
-
Oo as defaultRadioConfig,
|
|
149
|
-
To as defaultResizableScreenConfig,
|
|
150
|
-
go as defaultSelectConfig,
|
|
151
|
-
so as defaultSidebarConfig,
|
|
152
|
-
bo as defaultSpinnerConfig,
|
|
153
|
-
Po as defaultSwitchConfig,
|
|
154
|
-
Uo as defaultTableConfig,
|
|
155
|
-
vo as defaultTabsConfig,
|
|
156
|
-
zo as defaultTextAreaConfig,
|
|
157
|
-
Qo as defaultToastConfig,
|
|
158
|
-
jo as defaultTooltipConfig,
|
|
159
|
-
C as themeController,
|
|
160
|
-
Ce as useKeyboard,
|
|
161
|
-
er as useKeyboardField,
|
|
162
|
-
Ne as useRadioGroupContext,
|
|
163
|
-
A as useTheme,
|
|
164
|
-
We as useToast
|
|
165
|
-
};
|
|
5
|
+
import { FALLBACK_ACCORDION_CONFIG as i, defaultAccordionConfig as a } from "./components/accordion/accordion-config.js";
|
|
6
|
+
import { Accordion as o } from "./components/accordion/Accordion.js";
|
|
7
|
+
import { FALLBACK_SPINNER_CONFIG as s, defaultSpinnerConfig as c } from "./components/spinner/spinner-config.js";
|
|
8
|
+
import { Spinner as l } from "./components/spinner/spinner.js";
|
|
9
|
+
import { FieldShell as u } from "./components/field/FieldShell.js";
|
|
10
|
+
import { FALLBACK_FIELD_CONFIG as d, defaultFieldConfig as f } from "./components/field/field-config.js";
|
|
11
|
+
import { KeyboardContext as p, useKeyboard as m } from "./components/keyboard/KeyboardContext.js";
|
|
12
|
+
import { FALLBACK_KEYBOARD_CONFIG as h, defaultKeyDisplay as g, defaultKeyboardConfig as _, defaultKeyboardLayouts as v } from "./components/keyboard/keyboard-config.js";
|
|
13
|
+
import { FALLBACK_BUTTON_CONFIG as y, defaultButtonConfig as b } from "./components/button/button-config.js";
|
|
14
|
+
import { Button as x } from "./components/button/Button.js";
|
|
15
|
+
import { OnScreenKeyboard as S } from "./components/keyboard/OnScreenKeyboard.js";
|
|
16
|
+
import { KeyboardProvider as C } from "./components/keyboard/KeyboardProvider.js";
|
|
17
|
+
import { useKeyboardField as w } from "./components/keyboard/use-keyboard-field.js";
|
|
18
|
+
import { Input as T } from "./components/input/Input.js";
|
|
19
|
+
import { defaultInputConfig as E } from "./components/input/input-config.js";
|
|
20
|
+
import { PasswordInput as D } from "./components/input/PasswordInput.js";
|
|
21
|
+
import { FALLBACK_AUTOCOMPLETE_CONFIG as O, defaultAutocompleteConfig as k } from "./components/autocomplete/autocomplete-config.js";
|
|
22
|
+
import { Autocomplete as A } from "./components/autocomplete/Autocomplete.js";
|
|
23
|
+
import { FALLBACK_IMAGE_CONFIG as j, defaultImageConfig as M } from "./components/image/image-config.js";
|
|
24
|
+
import { Image as N } from "./components/image/Image.js";
|
|
25
|
+
import { FALLBACK_CARD_CONFIG as P, defaultCardConfig as F } from "./components/card/card-config.js";
|
|
26
|
+
import { Card as I } from "./components/card/Card.js";
|
|
27
|
+
import { FALLBACK_CAROUSEL_CONFIG as L, defaultCarouselConfig as R } from "./components/carousel/carousel-config.js";
|
|
28
|
+
import { Carousel as z } from "./components/carousel/Carousel.js";
|
|
29
|
+
import { FALLBACK_CHIP_CONFIG as B, defaultChipConfig as V } from "./components/chip/chip-config.js";
|
|
30
|
+
import { Chip as H } from "./components/chip/Chip.js";
|
|
31
|
+
import { FALLBACK_DATE_PICKER_CONFIG as U, defaultDatePickerConfig as W } from "./components/date-picker/date-picker-config.js";
|
|
32
|
+
import { DatePicker as G } from "./components/date-picker/DatePicker.js";
|
|
33
|
+
import { FALLBACK_DRAWER_CONFIG as K, defaultDrawerConfig as q } from "./components/drawer/drawer-config.js";
|
|
34
|
+
import { Drawer as J } from "./components/drawer/Drawer.js";
|
|
35
|
+
import { FALLBACK_LINK_CONFIG as Y, defaultLinkConfig as X } from "./components/link/link-config.js";
|
|
36
|
+
import { Link as Z } from "./components/link/Link.js";
|
|
37
|
+
import { FALLBACK_MARQUEE_CONFIG as Q, defaultMarqueeConfig as $ } from "./components/marquee/marquee-config.js";
|
|
38
|
+
import { Marquee as ee } from "./components/marquee/Marquee.js";
|
|
39
|
+
import { FALLBACK_MODAL_CONFIG as te, defaultModalConfig as ne } from "./components/modal/modal-config.js";
|
|
40
|
+
import { Modal as re } from "./components/modal/Modal.js";
|
|
41
|
+
import { FALLBACK_MULTI_SELECT_CONFIG as ie, defaultMultiSelectConfig as ae } from "./components/multi-select/multi-select-config.js";
|
|
42
|
+
import { MultiSelect as oe } from "./components/multi-select/MultiSelect.js";
|
|
43
|
+
import { FALLBACK_RADIO_CONFIG as se, defaultRadioConfig as ce } from "./components/radio/radio-config.js";
|
|
44
|
+
import { RadioContext as le, useRadioGroupContext as ue } from "./components/radio/radio-context.js";
|
|
45
|
+
import { RadioGroup as de } from "./components/radio/Radio.js";
|
|
46
|
+
import { Radio as fe } from "./components/radio/RadioGroup.js";
|
|
47
|
+
import { FALLBACK_RESIZABLE_SCREEN_CONFIG as pe, defaultResizableScreenConfig as me } from "./components/resizable-screen/resizable-screen-config.js";
|
|
48
|
+
import { ResizableScreen as he } from "./components/resizable-screen/ResizableScreen.js";
|
|
49
|
+
import { FALLBACK_SELECT_CONFIG as ge, defaultSelectConfig as _e } from "./components/select/select-config.js";
|
|
50
|
+
import { Select as ve } from "./components/select/Select.js";
|
|
51
|
+
import { FALLBACK_TOOLTIP_CONFIG as ye, defaultTooltipConfig as be } from "./components/tooltip/tooltip-config.js";
|
|
52
|
+
import { Tooltip as xe } from "./components/tooltip/Tooltip.js";
|
|
53
|
+
import { FALLBACK_SIDEBAR_CONFIG as Se, defaultSidebarConfig as Ce } from "./components/sidebar/sidebar-config.js";
|
|
54
|
+
import { Sidebar as we } from "./components/sidebar/Sidebar.js";
|
|
55
|
+
import { FALLBACK_SWITCH_CONFIG as Te, defaultSwitchConfig as Ee } from "./components/switch/switch-config.js";
|
|
56
|
+
import { Switch as De } from "./components/switch/Switch.js";
|
|
57
|
+
import { FALLBACK_TABLE_CONFIG as Oe, defaultTableConfig as ke } from "./components/table/table-config.js";
|
|
58
|
+
import { Table as Ae } from "./components/table/Table.js";
|
|
59
|
+
import { FALLBACK_TABS_CONFIG as je, defaultTabsConfig as Me } from "./components/tabs/tabs-config.js";
|
|
60
|
+
import { Tabs as Ne } from "./components/tabs/Tabs.js";
|
|
61
|
+
import { FALLBACK_TEXTAREA_CONFIG as Pe, defaultTextAreaConfig as Fe } from "./components/textarea/textarea-config.js";
|
|
62
|
+
import { TextArea as Ie } from "./components/textarea/Textarea.js";
|
|
63
|
+
import { ToastContext as Le, useToast as Re } from "./components/toast/ToastContext.js";
|
|
64
|
+
import { FALLBACK_TOAST_CONFIG as ze, defaultToastConfig as Be } from "./components/toast/toast-config.js";
|
|
65
|
+
import { ToastItem as Ve } from "./components/toast/ToastItem.js";
|
|
66
|
+
import { ToastProvider as He } from "./components/toast/ToastProvider.js";
|
|
67
|
+
export { o as Accordion, r as AsheeUIProvider, A as Autocomplete, x as Button, I as Card, z as Carousel, H as Chip, G as DatePicker, J as Drawer, i as FALLBACK_ACCORDION_CONFIG, O as FALLBACK_AUTOCOMPLETE_CONFIG, y as FALLBACK_BUTTON_CONFIG, P as FALLBACK_CARD_CONFIG, L as FALLBACK_CAROUSEL_CONFIG, B as FALLBACK_CHIP_CONFIG, U as FALLBACK_DATE_PICKER_CONFIG, K as FALLBACK_DRAWER_CONFIG, d as FALLBACK_FIELD_CONFIG, j as FALLBACK_IMAGE_CONFIG, h as FALLBACK_KEYBOARD_CONFIG, Y as FALLBACK_LINK_CONFIG, Q as FALLBACK_MARQUEE_CONFIG, te as FALLBACK_MODAL_CONFIG, ie as FALLBACK_MULTI_SELECT_CONFIG, se as FALLBACK_RADIO_CONFIG, pe as FALLBACK_RESIZABLE_SCREEN_CONFIG, ge as FALLBACK_SELECT_CONFIG, Se as FALLBACK_SIDEBAR_CONFIG, s as FALLBACK_SPINNER_CONFIG, Te as FALLBACK_SWITCH_CONFIG, Oe as FALLBACK_TABLE_CONFIG, je as FALLBACK_TABS_CONFIG, Pe as FALLBACK_TEXTAREA_CONFIG, ze as FALLBACK_TOAST_CONFIG, ye as FALLBACK_TOOLTIP_CONFIG, u as FieldShell, N as Image, T as Input, p as KeyboardContext, C as KeyboardProvider, Z as Link, ee as Marquee, re as Modal, oe as MultiSelect, S as OnScreenKeyboard, D as PasswordInput, fe as Radio, le as RadioContext, de as RadioGroup, he as ResizableScreen, ve as Select, we as Sidebar, l as Spinner, De as Switch, e as THEME_STORAGE_KEY, Ae as Table, Ne as Tabs, Ie as TextArea, Le as ToastContext, Ve as ToastItem, He as ToastProvider, xe as Tooltip, a as defaultAccordionConfig, k as defaultAutocompleteConfig, b as defaultButtonConfig, F as defaultCardConfig, R as defaultCarouselConfig, V as defaultChipConfig, W as defaultDatePickerConfig, q as defaultDrawerConfig, f as defaultFieldConfig, M as defaultImageConfig, E as defaultInputConfig, g as defaultKeyDisplay, _ as defaultKeyboardConfig, v as defaultKeyboardLayouts, X as defaultLinkConfig, $ as defaultMarqueeConfig, ne as defaultModalConfig, ae as defaultMultiSelectConfig, ce as defaultRadioConfig, me as defaultResizableScreenConfig, _e as defaultSelectConfig, Ce as defaultSidebarConfig, c as defaultSpinnerConfig, Ee as defaultSwitchConfig, ke as defaultTableConfig, Me as defaultTabsConfig, Fe as defaultTextAreaConfig, Be as defaultToastConfig, be as defaultTooltipConfig, t as themeController, m as useKeyboard, w as useKeyboardField, ue as useRadioGroupContext, n as useTheme, Re as useToast };
|
package/dist/libs/context.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return e;
|
|
2
|
+
"use client";
|
|
3
|
+
import { createContext as e, useContext as t } from "react";
|
|
4
|
+
//#region src/libs/context.tsx
|
|
5
|
+
var n = e(null);
|
|
6
|
+
function r() {
|
|
7
|
+
let e = t(n);
|
|
8
|
+
if (!e) throw Error("useAsheeConfig must be used within an AsheeUIProvider - wrap your app root with <AsheeUIProvider>.");
|
|
9
|
+
return e;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
i as useAsheeConfig
|
|
15
|
-
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as AsheeConfigContext, r as useAsheeConfig };
|
package/dist/libs/index.js
CHANGED
package/dist/libs/registry.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region src/libs/registry.ts
|
|
3
|
+
var e = /* @__PURE__ */ new Map();
|
|
4
|
+
function t(t, n) {
|
|
5
|
+
e.set(t, n);
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return e;
|
|
7
|
+
function n() {
|
|
8
|
+
let t = {};
|
|
9
|
+
for (let [n, r] of e.entries()) t[n] = r;
|
|
10
|
+
return t;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
s as registerComponentDefaults
|
|
15
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as getAllComponentDefaults, t as registerComponentDefaults };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Floating z-index hook for AsheeUI.
|
|
3
|
+
* This file provides a hook that derives a portaled floating element's
|
|
4
|
+
* `z-index` from its trigger's stacking context, so anchored popups layer
|
|
5
|
+
* correctly against both AsheeUI components and arbitrary client components.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Derives the `z-index` a portaled floating element should use so it renders
|
|
9
|
+
* above its trigger's stacking context without outranking unrelated app
|
|
10
|
+
* chrome such as a custom navbar.
|
|
11
|
+
*
|
|
12
|
+
* The base value is measured in a layout effect, so the corrected z-index is
|
|
13
|
+
* applied before the browser paints and the floating element never flashes at
|
|
14
|
+
* the wrong layer.
|
|
15
|
+
*
|
|
16
|
+
* @param reference - Ref to the trigger element. Floating UI virtual elements
|
|
17
|
+
* are ignored, since they have no DOM ancestors to inspect.
|
|
18
|
+
* @param isOpen - Whether the floating element is open.
|
|
19
|
+
* @param layerDelta - The component's layer delta from `ASHEE_LAYER`.
|
|
20
|
+
* @returns The derived `z-index` for the floating element.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const zIndex = useFloatingZIndex(refs.reference, isOpen, ASHEE_LAYER.tooltip);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see resolveBaseZIndex - The underlying stacking-context resolution.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useFloatingZIndex(reference: {
|
|
30
|
+
readonly current: unknown;
|
|
31
|
+
}, isOpen: boolean, layerDelta: number): number;
|
|
32
|
+
//# sourceMappingURL=use-floating-z-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-floating-z-index.d.ts","sourceRoot":"","sources":["../../src/libs/use-floating-z-index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EACxC,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,CAcR"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { resolveBaseZIndex as e } from "../utils/stacking.js";
|
|
4
|
+
import { useIsomorphicLayoutEffect as t } from "./use-isomorphic-layout-effect.js";
|
|
5
|
+
import { useState as n } from "react";
|
|
6
|
+
//#region src/libs/use-floating-z-index.ts
|
|
7
|
+
function r(r, i, a) {
|
|
8
|
+
let [o, s] = n(0);
|
|
9
|
+
return t(() => {
|
|
10
|
+
if (!i) return;
|
|
11
|
+
let t = r.current;
|
|
12
|
+
s(e(t instanceof Element ? t : null));
|
|
13
|
+
}, [i, r]), o + a;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as useFloatingZIndex };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
2
|
+
import { useEffect as e, useLayoutEffect as t } from "react";
|
|
3
|
+
//#region src/libs/use-isomorphic-layout-effect.ts
|
|
4
|
+
var n = typeof window < "u" ? t : e;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as useIsomorphicLayoutEffect };
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}`;
|
|
23
|
-
}).join(`
|
|
24
|
-
|
|
25
|
-
`);
|
|
2
|
+
import { THEME_STORAGE_KEY as e } from "../theme/controller.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/scripts/AsheeThemeScript.tsx
|
|
5
|
+
var n = {
|
|
6
|
+
background: "--ashee-background",
|
|
7
|
+
foreground: "--ashee-foreground",
|
|
8
|
+
primary: "--ashee-primary",
|
|
9
|
+
secondary: "--ashee-secondary",
|
|
10
|
+
border: "--ashee-border",
|
|
11
|
+
danger: "--ashee-danger",
|
|
12
|
+
warning: "--ashee-warning",
|
|
13
|
+
success: "--ashee-success",
|
|
14
|
+
scrollbarThumb: "--ashee-scrollbar-thumb",
|
|
15
|
+
scrollbarTrack: "--ashee-scrollbar-track"
|
|
16
|
+
}, r = "ashee-theme-vars";
|
|
17
|
+
function i(e) {
|
|
18
|
+
return Object.entries(e).map(([e, t]) => {
|
|
19
|
+
let r = Object.entries(t).map(([e, t]) => ` ${n[e]}: ${t};`).join("\n");
|
|
20
|
+
return `${e === "light" ? ":root, .theme-light" : `.theme-${e}`} {\n${r}\n}`;
|
|
21
|
+
}).join("\n\n");
|
|
26
22
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
23
|
+
function a({ config: n }) {
|
|
24
|
+
let a = Object.keys(n.color ?? {}), o = n.defaultTheme ?? "system", s = e, c = i(n.color), l = `
|
|
29
25
|
(function() {
|
|
30
26
|
var el = document.documentElement;
|
|
31
|
-
var storageKey = ${JSON.stringify(
|
|
32
|
-
var defaultTheme = ${JSON.stringify(
|
|
33
|
-
var themes = ${JSON.stringify(
|
|
27
|
+
var storageKey = ${JSON.stringify(s)};
|
|
28
|
+
var defaultTheme = ${JSON.stringify(o)};
|
|
29
|
+
var themes = ${JSON.stringify(a)};
|
|
34
30
|
var systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
35
31
|
|
|
36
32
|
var stored = null;
|
|
@@ -51,25 +47,20 @@ function u({ config: e }) {
|
|
|
51
47
|
el.style.colorScheme = resolved;
|
|
52
48
|
|
|
53
49
|
// Synchronously inject style tag before first paint
|
|
54
|
-
var styleEl = document.getElementById(${JSON.stringify(
|
|
50
|
+
var styleEl = document.getElementById(${JSON.stringify(r)});
|
|
55
51
|
if (!styleEl) {
|
|
56
52
|
styleEl = document.createElement('style');
|
|
57
|
-
styleEl.id = ${JSON.stringify(
|
|
58
|
-
styleEl.textContent = ${JSON.stringify(
|
|
53
|
+
styleEl.id = ${JSON.stringify(r)};
|
|
54
|
+
styleEl.textContent = ${JSON.stringify(c)};
|
|
59
55
|
document.head.appendChild(styleEl);
|
|
60
56
|
}
|
|
61
57
|
})();
|
|
62
58
|
`;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
suppressHydrationWarning: !0
|
|
69
|
-
}
|
|
70
|
-
);
|
|
59
|
+
return /* @__PURE__ */ t("script", {
|
|
60
|
+
id: "ashee-theme-script",
|
|
61
|
+
dangerouslySetInnerHTML: { __html: l },
|
|
62
|
+
suppressHydrationWarning: !0
|
|
63
|
+
});
|
|
71
64
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
l as THEME_VARS_STYLE_ID
|
|
75
|
-
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { a as AsheeThemeScript, r as THEME_VARS_STYLE_ID };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,EAAE,QAAQ,MAAM,KAAG,MAKlE,CAAC"}
|
package/dist/shared/radius.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
2
|
+
//#region src/shared/radius.ts
|
|
3
|
+
var e = {
|
|
4
|
+
none: "rounded-none",
|
|
5
|
+
xs: "rounded-xs",
|
|
6
|
+
sm: "rounded-sm",
|
|
7
|
+
md: "rounded-md",
|
|
8
|
+
lg: "rounded-lg",
|
|
9
|
+
xl: "rounded-xl",
|
|
10
|
+
full: "rounded-full"
|
|
11
|
+
}, t = (e, t) => e === "underlined" ? "none" : t;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as RADIUS_CLASS, t as UnderlineRadius };
|