@base-framework/ui 1.2.10 → 1.2.12
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/atoms.es.js +36 -34
- package/dist/{empty-state-DLpHv8MG.js → empty-state-CcxkrsqJ.js} +1 -1
- package/dist/index.es.js +181 -179
- package/dist/molecules.es.js +1 -1
- package/dist/{tooltip-CwOm1Qs5.js → tooltip-Cks2gfw4.js} +80 -36
- package/dist/types/components/atoms/atoms.d.ts +2 -0
- package/dist/types/components/atoms/safe-zone-bottom.d.ts +24 -0
- package/dist/types/components/atoms/safe-zone-top.d.ts +24 -0
- package/package.json +1 -1
package/dist/atoms.es.js
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { B as e, C as t, a as o, F as n, b as r, L as i, P as p, R as u, S as I,
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
4
|
-
import { S as
|
|
1
|
+
import { B as e, C as t, a as o, F as n, b as r, L as i, P as p, R as u, S as I, c as l, d as c, T as d } from "./tooltip-Cks2gfw4.js";
|
|
2
|
+
import { B as T, C as g, a as B, I as C, L as f, M as S, T as x, U as b, i as F, b as M } from "./buttons-DthWscX3.js";
|
|
3
|
+
import { C as P, a as R, D as U, b as h, E as k, F as D, H, I as V, c as E, M as G, N, P as W, R as Z, T as v, d as w, e as J, U as j, V as q, f as y, W as z } from "./image-XjAp5NjV.js";
|
|
4
|
+
import { S as K } from "./skeleton-BlY3opxG.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Badge,
|
|
7
|
-
|
|
7
|
+
T as Button,
|
|
8
8
|
t as Card,
|
|
9
|
-
|
|
9
|
+
P as Checkbox,
|
|
10
10
|
g as CircleButton,
|
|
11
11
|
o as CircleGraph,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
B as CircleToggleButton,
|
|
13
|
+
R as ColorInput,
|
|
14
|
+
U as DateInput,
|
|
15
|
+
h as DateTimeInput,
|
|
16
|
+
k as EmailInput,
|
|
17
17
|
n as Fieldset,
|
|
18
|
-
|
|
18
|
+
D as FileInput,
|
|
19
19
|
r as FormGroup,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
H as HiddenInput,
|
|
21
|
+
C as Icon,
|
|
22
|
+
V as Image,
|
|
23
|
+
E as Input,
|
|
24
24
|
i as Legend,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
f as LoadingButton,
|
|
26
|
+
S as MaterialIcon,
|
|
27
|
+
G as MonthInput,
|
|
28
|
+
N as NumberInput,
|
|
29
|
+
W as PasswordInput,
|
|
30
30
|
p as ProgressBar,
|
|
31
|
-
|
|
31
|
+
Z as Radio,
|
|
32
32
|
u as RangeSlider,
|
|
33
|
-
I as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
I as SafeZoneBottom,
|
|
34
|
+
l as SafeZoneTop,
|
|
35
|
+
c as Select,
|
|
36
|
+
K as Skeleton,
|
|
37
|
+
v as TelInput,
|
|
38
|
+
w as Textarea,
|
|
39
|
+
J as TimeInput,
|
|
38
40
|
x as ToggleButton,
|
|
39
|
-
|
|
41
|
+
d as Tooltip,
|
|
40
42
|
b as UniversalIcon,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
j as UrlInput,
|
|
44
|
+
q as Veil,
|
|
45
|
+
y as VeilJot,
|
|
46
|
+
z as WeekInput,
|
|
47
|
+
F as isHeroicon,
|
|
48
|
+
M as isMaterialIcon
|
|
47
49
|
};
|
|
@@ -3,7 +3,7 @@ import { Div as n, H5 as et, P as b, Li as q, Span as a, Ul as V, Button as p, I
|
|
|
3
3
|
import { P as S, C as at, R as ct } from "./simple-search-input-DKWA4zYs.js";
|
|
4
4
|
import { U as m, B as h, I as dt } from "./buttons-DthWscX3.js";
|
|
5
5
|
import { Timer as ut, List as ht, DynamicTime as mt } from "@base-framework/organisms";
|
|
6
|
-
import { C as ft, b as pt } from "./tooltip-
|
|
6
|
+
import { C as ft, b as pt } from "./tooltip-Cks2gfw4.js";
|
|
7
7
|
import { f as C } from "./image-XjAp5NjV.js";
|
|
8
8
|
import { Icons as u } from "./icons.es.js";
|
|
9
9
|
import { F as z } from "./format-DE4rFWuD.js";
|
package/dist/index.es.js
CHANGED
|
@@ -1,189 +1,191 @@
|
|
|
1
|
-
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m,
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
4
|
-
import { S as
|
|
5
|
-
import { Icons as
|
|
6
|
-
import { A as
|
|
7
|
-
import { A as
|
|
8
|
-
import { B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { S as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import { A as
|
|
14
|
-
import { B as
|
|
15
|
-
import { F as
|
|
16
|
-
import { I as
|
|
1
|
+
import { B as s, C as o, a as t, F as r, b as n, L as i, P as l, R as p, S as m, c as d, d as u, T as g } from "./tooltip-Cks2gfw4.js";
|
|
2
|
+
import { B as T, C, a as S, I, L as b, M as B, T as D, U as F, i as P, b as M } from "./buttons-DthWscX3.js";
|
|
3
|
+
import { C as k, a as x, D as v, b as N, E as U, F as h, H as y, I as L, c as W, M as H, N as R, P as w, R as A, T as G, d as O, e as E, U as j, V, f as J, W as Z } from "./image-XjAp5NjV.js";
|
|
4
|
+
import { S as z } from "./skeleton-BlY3opxG.js";
|
|
5
|
+
import { Icons as Q, MaterialSymbols as _ } from "./icons.es.js";
|
|
6
|
+
import { A as Y, B as $, C as aa, a as ea, b as sa, c as oa, d as ta, D as ra, e as na, f as ia, g as la, h as pa, i as ma, j as da, k as ua, l as ga, m as ca, n as Ta, o as Ca, E as Sa, F as Ia, p as ba, q as Ba, r as Da, s as Fa, t as Pa, u as Ma, v as fa, w as ka, x as xa, I as va, L as Na, M as Ua, y as ha, N as ya, z as La, P as Wa, S as Ha, G as Ra, H as wa, J as Aa, K as Ga, T as Oa, O as Ea, Q as ja, R as Va, U as Ja } from "./empty-state-CcxkrsqJ.js";
|
|
7
|
+
import { A as qa, B as za, C as Ka, a as Qa, b as _a, D as Xa, c as Ya, d as $a, e as ae, f as ee, g as se, F as oe, H as te, M as re, O as ne, P as ie, R as le, S as pe, h as me, i as de, j as ue, T as ge, U as ce, k as Te, l as Ce, m as Se, p as Ie } from "./simple-search-input-DKWA4zYs.js";
|
|
8
|
+
import { B as Be, I as De, N as Fe, P as Pe, S as Me, T as fe, a as ke, b as xe, U as ve, c as Ne, d as Ue, e as he, W as ye, f as Le, g as We, h as He, i as Re, j as we, k as Ae, l as Ge, m as Oe, n as Ee } from "./signature-panel-BKj_0kwR.js";
|
|
9
|
+
import { B as Ve, I as Je, M as Ze, a as qe, b as ze, N as Ke, c as Qe, d as _e, e as Xe, f as Ye, P as $e, S as as, T as es } from "./mobile-nav-wrapper-9VRCW4oA.js";
|
|
10
|
+
import { S as os } from "./sidebar-menu-DLGBb0-I.js";
|
|
11
|
+
import { B as rs, F as ns, M as is, P as ls } from "./full-page-CgVI1G7F.js";
|
|
12
|
+
import { B as ms, C as ds, F as us, a as gs, S as cs } from "./sidebar-menu-page-DFRJL944.js";
|
|
13
|
+
import { A as Cs, F as Ss, M as Is, T as bs, a as Bs } from "./aside-template-B9V-0xle.js";
|
|
14
|
+
import { B as Fs } from "./bside-template-oLChzjxQ.js";
|
|
15
|
+
import { F as Ms, c as fs } from "./format-DE4rFWuD.js";
|
|
16
|
+
import { I as xs } from "./image-scaler-1G-JzJVG.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
Y as Alert,
|
|
19
|
+
Cs as AsideTemplate,
|
|
20
|
+
qa as Avatar,
|
|
21
|
+
za as BackButton,
|
|
22
|
+
Ve as Backdrop,
|
|
23
23
|
s as Badge,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
rs as BasicPage,
|
|
25
|
+
ms as BlankPage,
|
|
26
|
+
$ as Breadcrumb,
|
|
27
|
+
Fs as BsideTemplate,
|
|
28
|
+
T as Button,
|
|
29
|
+
Be as ButtonTab,
|
|
30
|
+
Ka as Calendar,
|
|
31
|
+
Qa as CalendarCells,
|
|
32
32
|
o as Card,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
ds as CenterPage,
|
|
34
|
+
k as Checkbox,
|
|
35
|
+
_a as CheckboxCol,
|
|
36
|
+
C as CircleButton,
|
|
37
37
|
t as CircleGraph,
|
|
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
|
-
|
|
38
|
+
S as CircleToggleButton,
|
|
39
|
+
x as ColorInput,
|
|
40
|
+
aa as ColumnRow,
|
|
41
|
+
ea as Combobox,
|
|
42
|
+
sa as Confirmation,
|
|
43
|
+
oa as CountDisplay,
|
|
44
|
+
ta as Counter,
|
|
45
|
+
Xa as DataTable,
|
|
46
|
+
Ya as DataTableBody,
|
|
47
|
+
v as DateInput,
|
|
48
|
+
ra as DatePicker,
|
|
49
|
+
na as DateRangePicker,
|
|
50
|
+
N as DateTimeInput,
|
|
51
|
+
$a as DayCell,
|
|
52
|
+
ae as DayHeader,
|
|
53
|
+
ia as DelayComponent,
|
|
54
|
+
la as DetailBody,
|
|
55
|
+
pa as DetailSection,
|
|
56
|
+
ma as Dialog,
|
|
57
|
+
da as DialogContainer,
|
|
58
|
+
ee as DockableOverlay,
|
|
59
|
+
ua as DotsIndicator,
|
|
60
|
+
ga as Drawer,
|
|
61
|
+
ca as Dropdown,
|
|
62
|
+
Ta as DropdownItem,
|
|
63
|
+
Ca as DropdownMenu,
|
|
64
|
+
se as DynamicDataTable,
|
|
65
|
+
U as EmailInput,
|
|
66
|
+
Sa as EmptyState,
|
|
67
67
|
r as Fieldset,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
h as FileInput,
|
|
69
|
+
Ia as Form,
|
|
70
|
+
ba as FormCard,
|
|
71
|
+
Ba as FormCardContent,
|
|
72
|
+
Da as FormCardGroup,
|
|
73
|
+
Fa as FormControl,
|
|
74
|
+
Pa as FormDescription,
|
|
75
|
+
Ma as FormField,
|
|
76
76
|
n as FormGroup,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
77
|
+
fa as FormItem,
|
|
78
|
+
ka as FormLabel,
|
|
79
|
+
xa as FormMessage,
|
|
80
|
+
Ms as Format,
|
|
81
|
+
oe as FormatDate,
|
|
82
|
+
us as FullContainPage,
|
|
83
|
+
ns as FullPage,
|
|
84
|
+
Ss as FullTemplate,
|
|
85
|
+
gs as FullscreenPage,
|
|
86
|
+
te as HeaderCol,
|
|
87
|
+
y as HiddenInput,
|
|
88
|
+
I as Icon,
|
|
89
|
+
Q as Icons,
|
|
90
|
+
L as Image,
|
|
91
|
+
xs as ImageScaler,
|
|
92
|
+
va as ImageUploader,
|
|
93
|
+
Je as InlineNavigation,
|
|
94
|
+
De as InlineOverlay,
|
|
95
|
+
W as Input,
|
|
96
96
|
i as Legend,
|
|
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
|
-
|
|
97
|
+
b as LoadingButton,
|
|
98
|
+
Na as LogoUploader,
|
|
99
|
+
Is as MainColumn,
|
|
100
|
+
Ze as MainLink,
|
|
101
|
+
is as MainSection,
|
|
102
|
+
B as MaterialIcon,
|
|
103
|
+
_ as MaterialSymbols,
|
|
104
|
+
Ua as MinusButton,
|
|
105
|
+
qe as MobileNavButton,
|
|
106
|
+
ze as MobileNavWrapper,
|
|
107
|
+
ha as Modal,
|
|
108
|
+
re as MonthCalendar,
|
|
109
|
+
H as MonthInput,
|
|
110
|
+
Ke as NavButton,
|
|
111
|
+
Qe as NavButtonLink,
|
|
112
|
+
_e as Navigation,
|
|
113
|
+
Xe as NavigationGroup,
|
|
114
|
+
Fe as NavigationMenu,
|
|
115
|
+
Ye as NavigationPopover,
|
|
116
|
+
ya as Notification,
|
|
117
|
+
La as NotificationContainer,
|
|
118
|
+
R as NumberInput,
|
|
119
|
+
ne as Overlay,
|
|
120
|
+
ls as Page,
|
|
121
|
+
Pe as Panel,
|
|
122
|
+
w as PasswordInput,
|
|
123
|
+
Wa as PlusButton,
|
|
124
|
+
ie as PopOver,
|
|
125
|
+
$e as PopupHeader,
|
|
126
126
|
l as ProgressBar,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
A as Radio,
|
|
128
|
+
le as RangeCalendar,
|
|
129
129
|
p as RangeSlider,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
pe as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
wa as
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
fe as
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
ve as
|
|
164
|
-
Ne as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
ye as
|
|
174
|
-
Le as
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
we as
|
|
182
|
-
Ae as
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
130
|
+
Ha as STATUSES,
|
|
131
|
+
Ra as STATUS_CLASS,
|
|
132
|
+
m as SafeZoneBottom,
|
|
133
|
+
d as SafeZoneTop,
|
|
134
|
+
pe as ScrollableDataTable,
|
|
135
|
+
me as SearchDropdown,
|
|
136
|
+
de as SearchInput,
|
|
137
|
+
u as Select,
|
|
138
|
+
os as SidebarMenu,
|
|
139
|
+
cs as SidebarMenuPage,
|
|
140
|
+
Me as SignaturePanel,
|
|
141
|
+
ue as SimpleSearchInput,
|
|
142
|
+
z as Skeleton,
|
|
143
|
+
wa as SplitRow,
|
|
144
|
+
Aa as StaticStatusIndicator,
|
|
145
|
+
Ga as StatusIndicator,
|
|
146
|
+
as as SubNavigation,
|
|
147
|
+
fe as Tab,
|
|
148
|
+
ke as TabGroup,
|
|
149
|
+
xe as TabNavigation,
|
|
150
|
+
ge as TableHeader,
|
|
151
|
+
G as TelInput,
|
|
152
|
+
bs as Template,
|
|
153
|
+
O as Textarea,
|
|
154
|
+
Oa as ThemeToggle,
|
|
155
|
+
Ea as TimeFrame,
|
|
156
|
+
E as TimeInput,
|
|
157
|
+
ja as TimePicker,
|
|
158
|
+
es as TitleHeader,
|
|
159
|
+
Va as Toggle,
|
|
160
|
+
D as ToggleButton,
|
|
161
|
+
g as Tooltip,
|
|
162
|
+
Bs as TopBar,
|
|
163
|
+
ve as UnderlinedButtonTab,
|
|
164
|
+
Ne as UnderlinedTab,
|
|
165
|
+
Ue as UnderlinedTabGroup,
|
|
166
|
+
he as UnderlinedTabNavigation,
|
|
167
|
+
F as UniversalIcon,
|
|
168
|
+
j as UrlInput,
|
|
169
|
+
ce as UserList,
|
|
170
|
+
Te as UserListItem,
|
|
171
|
+
V as Veil,
|
|
172
|
+
J as VeilJot,
|
|
173
|
+
ye as WeekCalendar,
|
|
174
|
+
Le as WeekCell,
|
|
175
|
+
We as WeekCells,
|
|
176
|
+
He as WeekHeader,
|
|
177
|
+
Z as WeekInput,
|
|
178
|
+
Ce as addTime,
|
|
179
|
+
Re as calculateWeekNumber,
|
|
180
|
+
fs as createWatcherCallback,
|
|
181
|
+
we as generateWeeks,
|
|
182
|
+
Ae as getDateFromWeek,
|
|
183
|
+
Ge as getMonthDays,
|
|
184
|
+
Oe as getNextMonthDays,
|
|
185
|
+
Se as getPosition,
|
|
186
|
+
Ee as getPreviousMonthDays,
|
|
187
|
+
Ja as getStatusClass,
|
|
188
|
+
P as isHeroicon,
|
|
189
|
+
M as isMaterialIcon,
|
|
190
|
+
Ie as pad
|
|
189
191
|
};
|
package/dist/molecules.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-
|
|
1
|
+
import { A as s, B as t, C as r, a as e, b as i, c as n, d as m, D as l, e as d, f as C, g as p, h as D, i as S, j as u, k as c, l as g, m as F, n as T, o as P, E as w, F as A, p as I, q as f, r as b, s as y, t as B, u as M, v as U, w as k, x, I as L, L as R, M as v, y as E, N, z as h, P as G, S as O, G as j, H as q, J as z, K as H, T as J, O as K, Q, R as _, U as V } from "./empty-state-CcxkrsqJ.js";
|
|
2
2
|
import { A as X, P as Y, m as Z } from "./simple-search-input-DKWA4zYs.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Alert,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Span as
|
|
1
|
+
import { Span as m, Div as n, Legend as h, Fieldset as p, H4 as y, P as k, UseParent as x, Input as w } from "@base-framework/atoms";
|
|
2
2
|
import { Atom as s, Html as $ } from "@base-framework/base";
|
|
3
3
|
import { U as v } from "./buttons-DthWscX3.js";
|
|
4
|
-
import { f as
|
|
5
|
-
const
|
|
4
|
+
import { f as C, g as P, h as S, i as B } from "./image-XjAp5NjV.js";
|
|
5
|
+
const d = {
|
|
6
6
|
gray: {
|
|
7
7
|
backgroundColor: "bg-gray-50",
|
|
8
8
|
textColor: "text-gray-600",
|
|
@@ -83,27 +83,27 @@ const g = {
|
|
|
83
83
|
textColor: "text-foreground",
|
|
84
84
|
ringColor: "ring-white/10"
|
|
85
85
|
}
|
|
86
|
-
},
|
|
87
|
-
const t =
|
|
86
|
+
}, N = (r) => d[r] || d.gray, E = (r, e = {}) => {
|
|
87
|
+
const t = N(r), o = e.backgroundColor ?? t.backgroundColor, l = e.textColor ?? t.textColor, a = e.ringColor ?? t.ringColor;
|
|
88
88
|
return `inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors ${o} ${l} ${a}`;
|
|
89
|
-
},
|
|
90
|
-
const { type: t, icon: o, size: l = "xs", backgroundColor: a, textColor: i, ringColor:
|
|
91
|
-
return
|
|
89
|
+
}, O = s((r, e) => {
|
|
90
|
+
const { type: t, icon: o, size: l = "xs", backgroundColor: a, textColor: i, ringColor: c, ...g } = r, u = E(t, { backgroundColor: a, textColor: i, ringColor: c });
|
|
91
|
+
return m({ ...g, class: u }, [
|
|
92
92
|
o ? v({ size: l, class: "mr-1" }, o) : null,
|
|
93
93
|
...e || []
|
|
94
94
|
]);
|
|
95
|
-
}),
|
|
95
|
+
}), U = s((r, e) => {
|
|
96
96
|
const t = r.margin ?? "my-5 mx-5", o = r.padding ?? "p-4", l = r.border ?? "border-border";
|
|
97
97
|
return r.hover && (r.class += " hover:shadow-lg hover:bg-muted/50"), n({
|
|
98
98
|
...r,
|
|
99
99
|
// @ts-ignore
|
|
100
100
|
class: `rounded-lg ${l} bg-card text-card-foreground shadow-md min-w-[120px] min-h-[80px] ${t} ${o} ${r.class || ""}`
|
|
101
101
|
}, e);
|
|
102
|
-
}),
|
|
102
|
+
}), F = s((r, e) => h({
|
|
103
103
|
...r,
|
|
104
104
|
// @ts-ignore
|
|
105
105
|
class: ` font-medium -mt-4 -mx-1 px-2 py-2 ${r.class || ""}`
|
|
106
|
-
}, e)),
|
|
106
|
+
}, e)), V = s((r, e) => {
|
|
107
107
|
const t = r.border === "full" ? "border rounded-md" : "border-t";
|
|
108
108
|
return p({
|
|
109
109
|
...r,
|
|
@@ -111,10 +111,10 @@ const g = {
|
|
|
111
111
|
class: `p-6 ${t} ${r.class || ""}`
|
|
112
112
|
}, [
|
|
113
113
|
// @ts-ignore
|
|
114
|
-
r.legend &&
|
|
114
|
+
r.legend && F(r.legend),
|
|
115
115
|
n({ class: "flex flex-auto flex-col gap-y-6" }, e)
|
|
116
116
|
]);
|
|
117
|
-
}),
|
|
117
|
+
}), _ = s((r, e) => {
|
|
118
118
|
const t = r.border === !0 ? "border-t" : "";
|
|
119
119
|
return n({
|
|
120
120
|
...r,
|
|
@@ -136,7 +136,7 @@ const g = {
|
|
|
136
136
|
// Controls container: grows to fill remaining space, spacing between items
|
|
137
137
|
n({ class: "flex flex-col gap-y-4" }, e)
|
|
138
138
|
]);
|
|
139
|
-
}),
|
|
139
|
+
}), j = C(
|
|
140
140
|
{
|
|
141
141
|
/**
|
|
142
142
|
* This will create the initial state of the RangeSlider.
|
|
@@ -169,7 +169,7 @@ const g = {
|
|
|
169
169
|
return n({ class: "relative w-full h-4 flex items-center" }, [
|
|
170
170
|
// Track
|
|
171
171
|
n({ class: "absolute h-2 w-full rounded-full bg-muted" }),
|
|
172
|
-
|
|
172
|
+
x(({ state: r }) => [
|
|
173
173
|
// Filled Track
|
|
174
174
|
n({
|
|
175
175
|
class: "absolute h-2 bg-primary rounded-full",
|
|
@@ -208,15 +208,15 @@ const g = {
|
|
|
208
208
|
]);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
),
|
|
211
|
+
), D = s((r) => ({
|
|
212
212
|
tag: "select",
|
|
213
213
|
onCreated(e) {
|
|
214
214
|
r.options && $.setupSelectOptions(e, r.options);
|
|
215
215
|
},
|
|
216
216
|
...r,
|
|
217
217
|
// @ts-ignore
|
|
218
|
-
class: `${
|
|
219
|
-
})),
|
|
218
|
+
class: `${B} ${r.class || ""}`.trim()
|
|
219
|
+
})), I = (r) => !r || isNaN(r) ? null : r, b = (r, e) => {
|
|
220
220
|
const t = r, o = 16, l = 2 * Math.PI * o, a = t / 100 * l, i = `
|
|
221
221
|
<svg class="w-40 h-40 mx-auto" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
222
222
|
<!-- Background Circle -->
|
|
@@ -259,20 +259,20 @@ const g = {
|
|
|
259
259
|
class: "circle-graph text-inherit",
|
|
260
260
|
html: i
|
|
261
261
|
});
|
|
262
|
-
},
|
|
263
|
-
const e = r.progress || 0, t = r.class || "", o =
|
|
262
|
+
}, H = s((r) => {
|
|
263
|
+
const e = r.progress || 0, t = r.class || "", o = b(e, t);
|
|
264
264
|
return n({
|
|
265
265
|
class: "circle-graph-wrap",
|
|
266
266
|
onSet: [
|
|
267
267
|
// @ts-ignore
|
|
268
268
|
r.prop,
|
|
269
|
-
(l) => (l =
|
|
269
|
+
(l) => (l = I(l), l ? b(l, t) : o)
|
|
270
270
|
]
|
|
271
271
|
}, [o]);
|
|
272
|
-
}), T = () =>
|
|
272
|
+
}), T = () => x(({ state: r }) => n({
|
|
273
273
|
class: "absolute h-full rounded-full bg-primary transition-all duration-300",
|
|
274
274
|
style: ["width: [[progress]]%;", r]
|
|
275
|
-
})),
|
|
275
|
+
})), M = C(
|
|
276
276
|
{
|
|
277
277
|
/**
|
|
278
278
|
* This will render the progress bar component.
|
|
@@ -324,7 +324,49 @@ const g = {
|
|
|
324
324
|
r < 0 && (r = 0), r > 100 && (r = 100), this.state.progress = r;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
),
|
|
327
|
+
), Z = s((r = {}) => {
|
|
328
|
+
const {
|
|
329
|
+
class: e = "",
|
|
330
|
+
background: t = !0,
|
|
331
|
+
blur: o = !0,
|
|
332
|
+
backgroundClass: l = "bg-background/95",
|
|
333
|
+
blurClass: a = "backdrop-blur",
|
|
334
|
+
zIndexClass: i = "z-9999",
|
|
335
|
+
style: c = ""
|
|
336
|
+
} = r, g = [
|
|
337
|
+
"fixed bottom-0 left-0 right-0 w-full",
|
|
338
|
+
i,
|
|
339
|
+
t ? l : "",
|
|
340
|
+
o ? a : "",
|
|
341
|
+
e
|
|
342
|
+
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-bottom, 0px);${c ? ` ${c}` : ""}`;
|
|
343
|
+
return n({
|
|
344
|
+
class: g,
|
|
345
|
+
style: u,
|
|
346
|
+
"aria-hidden": "true"
|
|
347
|
+
});
|
|
348
|
+
}), J = s((r = {}) => {
|
|
349
|
+
const {
|
|
350
|
+
class: e = "",
|
|
351
|
+
background: t = !0,
|
|
352
|
+
blur: o = !0,
|
|
353
|
+
backgroundClass: l = "bg-background/95",
|
|
354
|
+
blurClass: a = "backdrop-blur",
|
|
355
|
+
zIndexClass: i = "z-9999",
|
|
356
|
+
style: c = ""
|
|
357
|
+
} = r, g = [
|
|
358
|
+
"fixed top-0 left-0 right-0 w-full",
|
|
359
|
+
i,
|
|
360
|
+
t ? l : "",
|
|
361
|
+
o ? a : "",
|
|
362
|
+
e
|
|
363
|
+
].filter(Boolean).join(" "), u = `height: env(safe-area-inset-top, 0px);${c ? ` ${c}` : ""}`;
|
|
364
|
+
return n({
|
|
365
|
+
class: g,
|
|
366
|
+
style: u,
|
|
367
|
+
"aria-hidden": "true"
|
|
368
|
+
});
|
|
369
|
+
}), f = {
|
|
328
370
|
top: "bottom-full left-1/2 transform -translate-x-1/2 mb-2",
|
|
329
371
|
"top-right": "bottom-full left-full transform -translate-x-1 mb-2",
|
|
330
372
|
"top-left": "bottom-full right-full transform translate-x-1 mb-2",
|
|
@@ -333,12 +375,12 @@ const g = {
|
|
|
333
375
|
"bottom-left": "top-full right-full transform translate-x-1 mt-2",
|
|
334
376
|
left: "top-1/2 right-full transform -translate-y-1/2 mr-2",
|
|
335
377
|
right: "top-1/2 left-full transform -translate-y-1/2 ml-2"
|
|
336
|
-
},
|
|
337
|
-
const o =
|
|
378
|
+
}, A = (r) => f[String(r)] || f.top, Y = s(({ position: r = "top", content: e }, t) => {
|
|
379
|
+
const o = A(r);
|
|
338
380
|
return Array.isArray(t) === !1 && (t = [t]), n({ class: "relative group inline-block" }, [
|
|
339
381
|
...t,
|
|
340
382
|
// Tooltip box
|
|
341
|
-
|
|
383
|
+
m({
|
|
342
384
|
class: `
|
|
343
385
|
absolute z-20 px-2 py-1 border text-sm bg-background rounded shadow-md opacity-0 whitespace-nowrap
|
|
344
386
|
group-hover:opacity-100 transition-opacity duration-200 ${o} pointer-events-none
|
|
@@ -347,14 +389,16 @@ const g = {
|
|
|
347
389
|
]);
|
|
348
390
|
});
|
|
349
391
|
export {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
392
|
+
O as B,
|
|
393
|
+
U as C,
|
|
394
|
+
V as F,
|
|
395
|
+
F as L,
|
|
396
|
+
M as P,
|
|
397
|
+
j as R,
|
|
398
|
+
Z as S,
|
|
357
399
|
Y as T,
|
|
358
|
-
|
|
359
|
-
|
|
400
|
+
H as a,
|
|
401
|
+
_ as b,
|
|
402
|
+
J as c,
|
|
403
|
+
D as d
|
|
360
404
|
};
|
|
@@ -13,6 +13,8 @@ export * from "./image.js";
|
|
|
13
13
|
export * from "./material-icon.js";
|
|
14
14
|
export * from "./progress/circle-graph.js";
|
|
15
15
|
export * from "./progress/progress-bar.js";
|
|
16
|
+
export * from "./safe-zone-bottom.js";
|
|
17
|
+
export * from "./safe-zone-top.js";
|
|
16
18
|
export * from "./skeleton.js";
|
|
17
19
|
export * from "./tooltip.js";
|
|
18
20
|
export * from "./universal-icon.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SafeZoneBottom
|
|
3
|
+
*
|
|
4
|
+
* A fixed overlay atom that fills the bottom safe area inset on mobile devices
|
|
5
|
+
* (e.g. iOS home indicator area).
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* SafeZoneBottom()
|
|
9
|
+
*
|
|
10
|
+
* Then offset sticky/fixed footers with `pb-[env(safe-area-inset-bottom)]`
|
|
11
|
+
* or use the companion CSS variable `--safe-area-inset-bottom`.
|
|
12
|
+
*
|
|
13
|
+
* @param {object} [props]
|
|
14
|
+
* @param {string} [props.class]
|
|
15
|
+
* @param {boolean} [props.background=true]
|
|
16
|
+
* @param {boolean} [props.blur=true]
|
|
17
|
+
* @param {string} [props.backgroundClass='bg-background/95']
|
|
18
|
+
* @param {string} [props.blurClass='backdrop-blur']
|
|
19
|
+
* @param {string} [props.zIndexClass='z-9999']
|
|
20
|
+
* @param {string} [props.style]
|
|
21
|
+
* @returns {object}
|
|
22
|
+
*/
|
|
23
|
+
export const SafeZoneBottom: (...args: any[]) => object;
|
|
24
|
+
export default SafeZoneBottom;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SafeZoneTop
|
|
3
|
+
*
|
|
4
|
+
* A fixed overlay atom that fills the top safe area inset on mobile devices
|
|
5
|
+
* (e.g. iOS notch / Dynamic Island).
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* SafeZoneTop()
|
|
9
|
+
*
|
|
10
|
+
* Then offset sticky/fixed headers with `pt-[env(safe-area-inset-top)]`
|
|
11
|
+
* or use the companion CSS variable `--safe-area-inset-top`.
|
|
12
|
+
*
|
|
13
|
+
* @param {object} [props]
|
|
14
|
+
* @param {string} [props.class]
|
|
15
|
+
* @param {boolean} [props.background=true]
|
|
16
|
+
* @param {boolean} [props.blur=true]
|
|
17
|
+
* @param {string} [props.backgroundClass='bg-background/95']
|
|
18
|
+
* @param {string} [props.blurClass='backdrop-blur']
|
|
19
|
+
* @param {string} [props.zIndexClass='z-9999']
|
|
20
|
+
* @param {string} [props.style]
|
|
21
|
+
* @returns {object}
|
|
22
|
+
*/
|
|
23
|
+
export const SafeZoneTop: (...args: any[]) => object;
|
|
24
|
+
export default SafeZoneTop;
|
package/package.json
CHANGED