asheeui 0.6.15 → 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/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
|
@@ -1,159 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
-
s.size
|
|
71
|
-
), U = i(
|
|
72
|
-
m,
|
|
73
|
-
ye,
|
|
74
|
-
s.size
|
|
75
|
-
), X = i(
|
|
76
|
-
E,
|
|
77
|
-
Ae,
|
|
78
|
-
s.radius
|
|
79
|
-
), y = [
|
|
80
|
-
J(g),
|
|
81
|
-
Q({ padding: 8 }),
|
|
82
|
-
W({ padding: 8 })
|
|
83
|
-
];
|
|
84
|
-
w && y.push(Z({ element: f }));
|
|
85
|
-
const { refs: p, floatingStyles: Y, context: t } = $({
|
|
86
|
-
open: v && !l,
|
|
87
|
-
onOpenChange: K,
|
|
88
|
-
placement: x,
|
|
89
|
-
whileElementsMounted: ee,
|
|
90
|
-
middleware: y
|
|
91
|
-
}), k = se(t, {
|
|
92
|
-
delay: b,
|
|
93
|
-
enabled: !l
|
|
94
|
-
}), B = oe(t, { enabled: !l }), H = re(t), M = te(t, { role: "tooltip" }), { getReferenceProps: A, getFloatingProps: q } = ae([
|
|
95
|
-
k,
|
|
96
|
-
B,
|
|
97
|
-
H,
|
|
98
|
-
M
|
|
99
|
-
]), C = pe(r) ? ce(
|
|
100
|
-
r,
|
|
101
|
-
A({
|
|
102
|
-
ref: p.setReference,
|
|
103
|
-
...r.props
|
|
104
|
-
})
|
|
105
|
-
) : /* @__PURE__ */ a(
|
|
106
|
-
"span",
|
|
107
|
-
{
|
|
108
|
-
ref: p.setReference,
|
|
109
|
-
...A(),
|
|
110
|
-
className: "inline-flex",
|
|
111
|
-
children: r
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
return !u || l ? /* @__PURE__ */ a(S, { children: r }) : /* @__PURE__ */ h(S, { children: [
|
|
115
|
-
C,
|
|
116
|
-
/* @__PURE__ */ a(le, { children: v && /* @__PURE__ */ a(
|
|
117
|
-
"div",
|
|
118
|
-
{
|
|
119
|
-
ref: (c) => {
|
|
120
|
-
p.setFloating(c), typeof n == "function" ? n(c) : n && (n.current = c);
|
|
121
|
-
},
|
|
122
|
-
style: Y,
|
|
123
|
-
className: "z-50 pointer-events-none",
|
|
124
|
-
...q(),
|
|
125
|
-
children: /* @__PURE__ */ h(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
className: Oe(
|
|
129
|
-
"font-medium border whitespace-nowrap select-none bg-background shadow-md transition-all duration-150 ease-out animate-in fade-in-0 zoom-in-95",
|
|
130
|
-
G,
|
|
131
|
-
j,
|
|
132
|
-
U,
|
|
133
|
-
X,
|
|
134
|
-
Se(D, V),
|
|
135
|
-
e == null ? void 0 : e.className,
|
|
136
|
-
z
|
|
137
|
-
),
|
|
138
|
-
children: [
|
|
139
|
-
u,
|
|
140
|
-
w && /* @__PURE__ */ a(
|
|
141
|
-
ne,
|
|
142
|
-
{
|
|
143
|
-
ref: f,
|
|
144
|
-
context: t,
|
|
145
|
-
className: "fill-current text-border"
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
) })
|
|
153
|
-
] });
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
he.displayName = "Tooltip";
|
|
157
|
-
export {
|
|
158
|
-
he as Tooltip
|
|
159
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils/cn.js";
|
|
4
|
+
import { useAsheeConfig as t } from "../../libs/context.js";
|
|
5
|
+
import { RADIUS_CLASS as ee } from "../../shared/radius.js";
|
|
6
|
+
import { resolveVariantClass as n } from "../../shared/variant.js";
|
|
7
|
+
import { resolveCascade as r, resolveClassKey as i, resolveRadiusKey as te } from "../../utils/resolve-token.js";
|
|
8
|
+
import { useFloatingZIndex as ne } from "../../libs/use-floating-z-index.js";
|
|
9
|
+
import { FALLBACK_TOOLTIP_CONFIG as a } from "./tooltip-config.js";
|
|
10
|
+
import { TOOLTIP_FONT_CLASS as o, TOOLTIP_PADDING_X_CLASS as s, TOOLTIP_PADDING_Y_CLASS as c } from "./tooltip-styles.js";
|
|
11
|
+
import { cloneElement as l, forwardRef as u, isValidElement as re, useRef as d, useState as f } from "react";
|
|
12
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
import { FloatingArrow as ie, FloatingPortal as ae, arrow as oe, autoUpdate as se, flip as ce, offset as le, shift as g, useDismiss as _, useFloating as v, useFocus as y, useHover as b, useInteractions as x, useRole as S } from "@floating-ui/react";
|
|
14
|
+
//#region src/components/tooltip/Tooltip.tsx
|
|
15
|
+
var C = u(({ content: u, children: C, variant: w, color: T, size: E, placement: D, delay: O, offset: k, radius: A, showArrow: j, portal: M, zIndex: N, isDisabled: P = !1, className: F }, I) => {
|
|
16
|
+
let L = t(), R = L.components?.tooltip, z = d(null), [B, V] = f(!1), H = r(E, R?.size, void 0, a.size), U = r(D, R?.placement, void 0, a.placement), W = r(w, R?.variant, L.defaultVariant, a.variant), ue = r(T, R?.color, L.defaultColor, a.color), de = r(O, R?.delay, void 0, a.delay), fe = r(k, R?.offset, void 0, a.offset), G = r(j, R?.showArrow, void 0, a.showArrow), K = r(M, R?.portal, void 0, a.portal), pe = r(N, R?.zIndex, void 0, a.zIndex), me = te(A, R?.radius, L.defaultRadius, a.radius), he = i(H, s, a.size), ge = i(H, c, a.size), _e = i(H, o, a.size), ve = i(me, ee, a.radius), q = [
|
|
17
|
+
le(fe),
|
|
18
|
+
ce({ padding: 8 }),
|
|
19
|
+
g({ padding: 8 })
|
|
20
|
+
];
|
|
21
|
+
G && q.push(oe({ element: z }));
|
|
22
|
+
let { refs: J, floatingStyles: Y, context: X } = v({
|
|
23
|
+
open: B && !P,
|
|
24
|
+
onOpenChange: V,
|
|
25
|
+
placement: U,
|
|
26
|
+
whileElementsMounted: se,
|
|
27
|
+
middleware: q
|
|
28
|
+
}), Z = b(X, {
|
|
29
|
+
delay: de,
|
|
30
|
+
enabled: !P
|
|
31
|
+
}), ye = y(X, { enabled: !P }), be = _(X), xe = S(X, { role: "tooltip" }), { getReferenceProps: Q, getFloatingProps: Se } = x([
|
|
32
|
+
Z,
|
|
33
|
+
ye,
|
|
34
|
+
be,
|
|
35
|
+
xe
|
|
36
|
+
]), Ce = ne(J.reference, B && K, pe), we = re(C) ? l(C, Q({
|
|
37
|
+
ref: J.setReference,
|
|
38
|
+
...C.props
|
|
39
|
+
})) : /* @__PURE__ */ m("span", {
|
|
40
|
+
ref: J.setReference,
|
|
41
|
+
...Q(),
|
|
42
|
+
className: "inline-flex",
|
|
43
|
+
children: C
|
|
44
|
+
});
|
|
45
|
+
if (!u || P) return /* @__PURE__ */ m(p, { children: C });
|
|
46
|
+
let $ = /* @__PURE__ */ m("div", {
|
|
47
|
+
ref: (e) => {
|
|
48
|
+
J.setFloating(e), typeof I == "function" ? I(e) : I && (I.current = e);
|
|
49
|
+
},
|
|
50
|
+
style: K ? {
|
|
51
|
+
...Y,
|
|
52
|
+
zIndex: Ce
|
|
53
|
+
} : Y,
|
|
54
|
+
className: "pointer-events-none",
|
|
55
|
+
...Se(),
|
|
56
|
+
children: /* @__PURE__ */ h("div", {
|
|
57
|
+
className: e("font-medium border whitespace-nowrap select-none bg-background shadow-md transition-all duration-150 ease-out animate-in fade-in-0 zoom-in-95", he, ge, _e, ve, n(W, ue), R?.className, F),
|
|
58
|
+
children: [u, G && /* @__PURE__ */ m(ie, {
|
|
59
|
+
ref: z,
|
|
60
|
+
context: X,
|
|
61
|
+
className: "fill-current text-border"
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
return /* @__PURE__ */ h(p, { children: [we, K ? /* @__PURE__ */ m(ae, { children: B && $ }) : B && $] });
|
|
66
|
+
});
|
|
67
|
+
C.displayName = "Tooltip";
|
|
68
|
+
//#endregion
|
|
69
|
+
export { C as Tooltip };
|
|
@@ -72,6 +72,31 @@ export interface TooltipConfig {
|
|
|
72
72
|
* @default false
|
|
73
73
|
*/
|
|
74
74
|
showArrow?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to render the tooltip through Floating UI's `FloatingPortal`.
|
|
77
|
+
* When true, the tooltip is appended to `document.body`, which escapes
|
|
78
|
+
* clipping and stacking contexts but also always paints above app-level
|
|
79
|
+
* overlays such as sticky navbars.
|
|
80
|
+
*
|
|
81
|
+
* When false, the tooltip renders in place next to the trigger and follows
|
|
82
|
+
* the trigger's own stacking context: a tooltip on a sticky navbar appears
|
|
83
|
+
* above the page, while a tooltip on a page element stays underneath the
|
|
84
|
+
* navbar. Enable `portal` for triggers inside scrollable or clipped
|
|
85
|
+
* containers (for example a Modal panel or an overflow-hidden card).
|
|
86
|
+
*
|
|
87
|
+
* @default false
|
|
88
|
+
* @see FloatingPortal - https://floating-ui.com/docs/FloatingPortal
|
|
89
|
+
*/
|
|
90
|
+
portal?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Layer delta added to the trigger's detected stacking-context z-index to
|
|
93
|
+
* resolve the tooltip's final `z-index`. Anchored tooltips stay above their
|
|
94
|
+
* own container (for example a sticky navbar) without outranking unrelated
|
|
95
|
+
* app chrome.
|
|
96
|
+
*
|
|
97
|
+
* @default ASHEE_LAYER.tooltip
|
|
98
|
+
*/
|
|
99
|
+
zIndex?: number;
|
|
75
100
|
/**
|
|
76
101
|
* Extra classes applied to every tooltip instance.
|
|
77
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-config.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip-config.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGjE;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC;AAElC;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEnD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAQlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,aAAa,CAYlD,CAAC;AAEX,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,OAAO,EAAE,aAAa,CAAC;KACxB;CACF"}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { registerComponentDefaults as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
import { ASHEE_LAYER as t } from "../../utils/stacking.js";
|
|
4
|
+
//#region src/components/tooltip/tooltip-config.ts
|
|
5
|
+
var n = {
|
|
6
|
+
size: "md",
|
|
7
|
+
placement: "top",
|
|
8
|
+
delay: 200,
|
|
9
|
+
offset: 8,
|
|
10
|
+
showArrow: !1,
|
|
11
|
+
portal: !1,
|
|
12
|
+
zIndex: t.tooltip
|
|
13
|
+
}, r = {
|
|
14
|
+
size: "md",
|
|
15
|
+
placement: "top",
|
|
16
|
+
variant: "solid",
|
|
17
|
+
color: "secondary",
|
|
18
|
+
delay: 200,
|
|
19
|
+
offset: 8,
|
|
20
|
+
radius: "md",
|
|
21
|
+
showArrow: !1,
|
|
22
|
+
portal: !1,
|
|
23
|
+
zIndex: t.tooltip,
|
|
24
|
+
className: ""
|
|
24
25
|
};
|
|
26
|
+
e("tooltip", n);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as FALLBACK_TOOLTIP_CONFIG, n as defaultTooltipConfig };
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
x as TOOLTIP_FONT_CLASS,
|
|
17
|
-
t as TOOLTIP_PADDING_X_CLASS,
|
|
18
|
-
s as TOOLTIP_PADDING_Y_CLASS
|
|
2
|
+
//#region src/components/tooltip/tooltip-styles.ts
|
|
3
|
+
var e = {
|
|
4
|
+
sm: "px-2",
|
|
5
|
+
md: "px-3",
|
|
6
|
+
lg: "px-4"
|
|
7
|
+
}, t = {
|
|
8
|
+
sm: "py-1",
|
|
9
|
+
md: "py-1.5",
|
|
10
|
+
lg: "py-2"
|
|
11
|
+
}, n = {
|
|
12
|
+
sm: "text-xs",
|
|
13
|
+
md: "text-sm",
|
|
14
|
+
lg: "text-base"
|
|
19
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as TOOLTIP_FONT_CLASS, e as TOOLTIP_PADDING_X_CLASS, t as TOOLTIP_PADDING_Y_CLASS };
|
|
@@ -1,36 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { defaultColorConfig as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
defaultRadius: "md",
|
|
13
|
-
/**
|
|
14
|
-
* Default theme setting following system preference.
|
|
15
|
-
* @default "system"
|
|
16
|
-
*/
|
|
17
|
-
defaultTheme: "system",
|
|
18
|
-
/**
|
|
19
|
-
* Default variant for components.
|
|
20
|
-
* @default "solid"
|
|
21
|
-
*/
|
|
22
|
-
defaultVariant: "solid",
|
|
23
|
-
/**
|
|
24
|
-
* Default color for components.
|
|
25
|
-
* @default "primary"
|
|
26
|
-
*/
|
|
27
|
-
defaultColor: "primary",
|
|
28
|
-
/**
|
|
29
|
-
* Component-specific overrides.
|
|
30
|
-
* @default {}
|
|
31
|
-
*/
|
|
32
|
-
components: {}
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
t as defaultConfig
|
|
2
|
+
import { defaultColorConfig as e } from "../theme/color.js";
|
|
3
|
+
//#region src/config/default-config.ts
|
|
4
|
+
var t = {
|
|
5
|
+
color: e,
|
|
6
|
+
defaultRadius: "md",
|
|
7
|
+
defaultTheme: "system",
|
|
8
|
+
defaultVariant: "solid",
|
|
9
|
+
defaultColor: "primary",
|
|
10
|
+
components: {}
|
|
36
11
|
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as defaultConfig };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
//#region src/config/resolve-color.ts
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
let n = { ...e };
|
|
5
|
+
if (!t) return n;
|
|
6
|
+
for (let r of Object.keys(t)) {
|
|
7
|
+
let i = t[r];
|
|
8
|
+
if (!i) continue;
|
|
9
|
+
if (r === "light" || r === "dark") {
|
|
10
|
+
n[r] = {
|
|
11
|
+
...e[r],
|
|
12
|
+
...i
|
|
13
|
+
};
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
let { extends: a, ...o } = i;
|
|
17
|
+
n[r] = {
|
|
18
|
+
...e[a ?? "light"],
|
|
19
|
+
...o
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return n;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { e as resolveColorConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-config.d.ts","sourceRoot":"","sources":["../../src/config/resolve-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"resolve-config.d.ts","sourceRoot":"","sources":["../../src/config/resolve-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIvD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAkCpE"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getAllComponentDefaults as
|
|
3
|
-
import {
|
|
2
|
+
import { getAllComponentDefaults as e } from "../libs/registry.js";
|
|
3
|
+
import { defaultColorConfig as t } from "../theme/color.js";
|
|
4
|
+
import { mergeObject as n } from "../utils/merge-object.js";
|
|
5
|
+
import { defaultConfig as r } from "./default-config.js";
|
|
4
6
|
import { resolveColorConfig as i } from "./resolve-color.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
//#region src/config/resolve-config.ts
|
|
8
|
+
function a(a) {
|
|
9
|
+
let o = n(r, a);
|
|
10
|
+
return o.color = i(t, a.color), Object.defineProperty(o, "components", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
configurable: !0,
|
|
13
|
+
get: () => n(e(), a.components)
|
|
14
|
+
}), o;
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { a as resolveConfig };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
);
|
|
2
|
+
import { cn as e } from "../utils/cn.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/icons/ArrowLeftIcon.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("svg", {
|
|
7
|
+
"aria-hidden": "true",
|
|
8
|
+
className: e("w-4 h-4 fill-none stroke-current", n),
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
strokeWidth: "2",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
...r,
|
|
14
|
+
children: /* @__PURE__ */ t("path", { d: "M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" })
|
|
15
|
+
});
|
|
18
16
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as ArrowLeftIcon };
|
|
@@ -1,26 +1,45 @@
|
|
|
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
|
-
|
|
2
|
+
import { cn as e } from "../utils/cn.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/icons/CalendarIcon.tsx
|
|
5
|
+
function r({ className: r, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ n("svg", {
|
|
7
|
+
"aria-hidden": "true",
|
|
8
|
+
className: e("w-4 h-4 fill-none stroke-current", r),
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
strokeWidth: "2",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
...i,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ t("rect", {
|
|
16
|
+
x: "3",
|
|
17
|
+
y: "4",
|
|
18
|
+
width: "18",
|
|
19
|
+
height: "18",
|
|
20
|
+
rx: "2",
|
|
21
|
+
ry: "2"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ t("line", {
|
|
24
|
+
x1: "16",
|
|
25
|
+
y1: "2",
|
|
26
|
+
x2: "16",
|
|
27
|
+
y2: "6"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ t("line", {
|
|
30
|
+
x1: "8",
|
|
31
|
+
y1: "2",
|
|
32
|
+
x2: "8",
|
|
33
|
+
y2: "6"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ t("line", {
|
|
36
|
+
x1: "3",
|
|
37
|
+
y1: "10",
|
|
38
|
+
x2: "21",
|
|
39
|
+
y2: "10"
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
23
43
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { r as CalendarIcon };
|
package/dist/icons/CheckIcon.js
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
);
|
|
2
|
+
import { cn as e } from "../utils/cn.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/icons/CheckIcon.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("svg", {
|
|
7
|
+
"aria-hidden": "true",
|
|
8
|
+
className: e("w-4 h-4 fill-none stroke-current", n),
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
strokeWidth: "2",
|
|
11
|
+
strokeLinecap: "round",
|
|
12
|
+
strokeLinejoin: "round",
|
|
13
|
+
...r,
|
|
14
|
+
children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" })
|
|
15
|
+
});
|
|
18
16
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as CheckIcon };
|