@serendie/ui 2.1.1 → 2.1.2-dev.202509020319
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 +26 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +117 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Accordion/Accordion.js +6 -8
- package/dist/components/Accordion/AccordionGroup.js +2 -6
- package/dist/components/Avatar/Avatar.js +11 -13
- package/dist/components/Badge/Badge.js +8 -10
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/Banner/Banner.js +6 -8
- package/dist/components/BottomNavigation/BottomNavigation.js +10 -11
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.js +6 -8
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +13 -15
- package/dist/components/CheckBox/CheckBox.js +10 -11
- package/dist/components/ChoiceBox/ChoiceBox.js +20 -22
- package/dist/components/DashboardWidget/DashboardWidget.js +11 -13
- package/dist/components/DataTable/table/BodyCell.js +2 -4
- package/dist/components/DataTable/table/HeaderCell.js +6 -7
- package/dist/components/DataTable/table/HeaderCheckbox.js +8 -9
- package/dist/components/DataTable/table/HeaderRow.js +2 -3
- package/dist/components/DataTable/table/Root.js +4 -6
- package/dist/components/DataTable/table/Row.js +2 -4
- package/dist/components/DataTable/table/Tr.js +6 -7
- package/dist/components/Divider/Divider.js +6 -8
- package/dist/components/Drawer/Drawer.js +11 -13
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +13 -15
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/IconButton/IconButton.js +6 -8
- package/dist/components/List/ListItem.js +7 -8
- package/dist/components/ModalDialog/ModalDialog.js +12 -14
- package/dist/components/NotificationBadge/NotificationBadge.js +6 -8
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +8 -10
- package/dist/components/ProgressIndicator/ProgressIndicator.js +9 -11
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.js +14 -15
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.js +17 -21
- package/dist/components/Select/Select.d.ts +3 -2
- package/dist/components/Select/Select.js +16 -17
- package/dist/components/Switch/Switch.js +13 -14
- package/dist/components/Tabs/TabItem.d.ts +1 -1
- package/dist/components/Tabs/TabItem.js +8 -10
- package/dist/components/Tabs/Tabs.js +8 -10
- package/dist/components/TextArea/TextArea.js +8 -10
- package/dist/components/TextField/TextField.js +6 -7
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +8 -10
- package/dist/components/Tooltip/Tooltip.js +17 -19
- package/dist/components/TopAppBar/TopAppBar.js +14 -16
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +3 -3
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/combobox/dist/index.js +4 -4
- package/dist/node_modules/@zag-js/menu/dist/index.js +31 -31
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/select/dist/index.js +11 -11
- package/dist/node_modules/@zag-js/switch/dist/index.js +10 -10
- package/dist/node_modules/@zag-js/tabs/dist/index.js +12 -12
- package/dist/node_modules/@zag-js/toast/dist/index.js +5 -5
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +4 -4
- package/dist/styled-system/css/css.js +3 -3
- package/dist/styled-system/jsx/factory.js +12 -12
- package/dist/styled-system/patterns/box.js +3 -4
- package/package.json +9 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createAnatomy as de } from "../../anatomy/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { mergeProps as ue, createMachine as ce, createGuards as he } from "../../core/dist/index.js";
|
|
3
|
+
import { dataAttr as C, isDownloadingEvent as Y, isOpeningInNewTab as q, isSelfTarget as pe, getEventTarget as ie, isValidTabEvent as Oe, getEventKey as j, isPrintableKey as Ee, isModifierKey as me, isEditableElement as re, isContextMenuEvent as Te, getEventPoint as b, ariaAttr as Ie, isAnchorElement as fe, isHTMLElement as Pe, raf as _, observeAttributes as ye, addDomEvent as Ce, getByTypeahead as oe, clickIfLink as ve, getWindow as Re, queryAll as Se, getInitialFocus as Ne, contains as J, scrollIntoView as ke } from "../../dom-query/dist/index.js";
|
|
4
|
+
import { getPlacementStyles as Le, getPlacementSide as Ae, getPlacement as Q } from "../../popper/dist/index.js";
|
|
5
|
+
import { hasProp as U, cast as Z, last as Me, first as be, prev as _e, next as De } from "../../utils/dist/index.js";
|
|
6
6
|
import { trackDismissableElement as He } from "../../dismissable/dist/index.js";
|
|
7
7
|
import { getElementPolygon as we, isPointInPolygon as Ge } from "../../rect-utils/dist/index.js";
|
|
8
8
|
import { createProps as k } from "../../types/dist/index.js";
|
|
@@ -53,18 +53,18 @@ var Ve = de("menu").parts(
|
|
|
53
53
|
return _e(n, r, { loop: t.loop ?? t.loopFocus });
|
|
54
54
|
}, $e = (e, t) => {
|
|
55
55
|
const n = L(e), r = n.find((o) => x(o, t.value));
|
|
56
|
-
return
|
|
57
|
-
}, H = (e) =>
|
|
56
|
+
return oe(n, { state: t.typeaheadState, key: t.key, activeId: (r == null ? void 0 : r.id) ?? null });
|
|
57
|
+
}, H = (e) => Pe(e) && (e.dataset.disabled === "" || e.hasAttribute("disabled")), Xe = (e) => {
|
|
58
58
|
var t;
|
|
59
59
|
return !!((t = e == null ? void 0 : e.getAttribute("role")) != null && t.startsWith("menuitem")) && !!(e != null && e.hasAttribute("aria-controls"));
|
|
60
60
|
}, W = "menu:select";
|
|
61
61
|
function Ye(e, t) {
|
|
62
62
|
if (!e) return;
|
|
63
|
-
const n =
|
|
63
|
+
const n = Re(e), r = new n.CustomEvent(W, { detail: { value: t } });
|
|
64
64
|
e.dispatchEvent(r);
|
|
65
65
|
}
|
|
66
66
|
function ot(e, t) {
|
|
67
|
-
const { context: n, send: r, state: o, computed: g, prop: a, scope: l } = e, c = o.hasTag("open"), P = g("isSubmenu"), A = g("isTypingAhead"), B = a("composite"), K = n.get("currentPlacement"), ge = n.get("anchorPoint"), R = n.get("highlightedValue"), G =
|
|
67
|
+
const { context: n, send: r, state: o, computed: g, prop: a, scope: l } = e, c = o.hasTag("open"), P = g("isSubmenu"), A = g("isTypingAhead"), B = a("composite"), K = n.get("currentPlacement"), ge = n.get("anchorPoint"), R = n.get("highlightedValue"), G = Le({
|
|
68
68
|
...a("positioning"),
|
|
69
69
|
placement: ge ? "bottom" : K
|
|
70
70
|
});
|
|
@@ -91,7 +91,7 @@ function ot(e, t) {
|
|
|
91
91
|
...E.item.attrs,
|
|
92
92
|
id: T,
|
|
93
93
|
role: "menuitem",
|
|
94
|
-
"aria-disabled":
|
|
94
|
+
"aria-disabled": Ie(O.disabled),
|
|
95
95
|
"data-disabled": C(O.disabled),
|
|
96
96
|
"data-ownedby": S(l),
|
|
97
97
|
"data-highlighted": C(O.highlighted),
|
|
@@ -157,7 +157,7 @@ function ot(e, t) {
|
|
|
157
157
|
id: ae(l),
|
|
158
158
|
onPointerDown(i) {
|
|
159
159
|
if (i.pointerType === "mouse") return;
|
|
160
|
-
const s =
|
|
160
|
+
const s = b(i);
|
|
161
161
|
r({ type: "CONTEXT_MENU_START", point: s });
|
|
162
162
|
},
|
|
163
163
|
onPointerCancel(i) {
|
|
@@ -170,7 +170,7 @@ function ot(e, t) {
|
|
|
170
170
|
i.pointerType !== "mouse" && r({ type: "CONTEXT_MENU_CANCEL" });
|
|
171
171
|
},
|
|
172
172
|
onContextMenu(i) {
|
|
173
|
-
const s =
|
|
173
|
+
const s = b(i);
|
|
174
174
|
r({ type: "CONTEXT_MENU", point: s }), i.preventDefault();
|
|
175
175
|
},
|
|
176
176
|
style: {
|
|
@@ -182,7 +182,7 @@ function ot(e, t) {
|
|
|
182
182
|
},
|
|
183
183
|
getTriggerItemProps(i) {
|
|
184
184
|
const s = i.getTriggerProps();
|
|
185
|
-
return
|
|
185
|
+
return ue(F({ value: s.id }), s);
|
|
186
186
|
},
|
|
187
187
|
getTriggerProps() {
|
|
188
188
|
return t.button({
|
|
@@ -198,12 +198,12 @@ function ot(e, t) {
|
|
|
198
198
|
"data-state": c ? "open" : "closed",
|
|
199
199
|
onPointerMove(i) {
|
|
200
200
|
if (i.pointerType !== "mouse" || H(i.currentTarget) || !P) return;
|
|
201
|
-
const p =
|
|
201
|
+
const p = b(i);
|
|
202
202
|
r({ type: "TRIGGER_POINTERMOVE", target: i.currentTarget, point: p });
|
|
203
203
|
},
|
|
204
204
|
onPointerLeave(i) {
|
|
205
205
|
if (H(i.currentTarget) || i.pointerType !== "mouse" || !P) return;
|
|
206
|
-
const s =
|
|
206
|
+
const s = b(i);
|
|
207
207
|
r({
|
|
208
208
|
type: "TRIGGER_POINTERLEAVE",
|
|
209
209
|
target: i.currentTarget,
|
|
@@ -211,7 +211,7 @@ function ot(e, t) {
|
|
|
211
211
|
});
|
|
212
212
|
},
|
|
213
213
|
onPointerDown(i) {
|
|
214
|
-
H(i.currentTarget) ||
|
|
214
|
+
H(i.currentTarget) || Te(i) || i.preventDefault();
|
|
215
215
|
},
|
|
216
216
|
onClick(i) {
|
|
217
217
|
i.defaultPrevented || H(i.currentTarget) || r({ type: "TRIGGER_CLICK", target: i.currentTarget });
|
|
@@ -292,10 +292,10 @@ function ot(e, t) {
|
|
|
292
292
|
i.pointerType === "mouse" && r({ type: "MENU_POINTERENTER" });
|
|
293
293
|
},
|
|
294
294
|
onKeyDown(i) {
|
|
295
|
-
if (i.defaultPrevented || !
|
|
296
|
-
const s =
|
|
295
|
+
if (i.defaultPrevented || !pe(i)) return;
|
|
296
|
+
const s = ie(i);
|
|
297
297
|
if (!((s == null ? void 0 : s.closest("[role=menu]")) === i.currentTarget || s === i.currentTarget)) return;
|
|
298
|
-
if (i.key === "Tab" && !
|
|
298
|
+
if (i.key === "Tab" && !Oe(i)) {
|
|
299
299
|
i.preventDefault();
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
@@ -314,7 +314,7 @@ function ot(e, t) {
|
|
|
314
314
|
},
|
|
315
315
|
Enter() {
|
|
316
316
|
var u;
|
|
317
|
-
r({ type: "ENTER" }), R != null &&
|
|
317
|
+
r({ type: "ENTER" }), R != null && fe(h) && ((u = a("navigate")) == null || u({ value: R, node: h, href: h.href }));
|
|
318
318
|
},
|
|
319
319
|
Space(u) {
|
|
320
320
|
var y;
|
|
@@ -331,7 +331,7 @@ function ot(e, t) {
|
|
|
331
331
|
d(i), i.stopPropagation(), i.preventDefault();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
a("typeahead") &&
|
|
334
|
+
a("typeahead") && Ee(i) && (me(i) || re(s) || (r({ type: "TYPEAHEAD", key: i.key }), i.preventDefault()));
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
},
|
|
@@ -405,7 +405,7 @@ function ot(e, t) {
|
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
var { not: m, and: v, or: qe } =
|
|
408
|
+
var { not: m, and: v, or: qe } = he(), at = ce({
|
|
409
409
|
props({ props: e }) {
|
|
410
410
|
return {
|
|
411
411
|
closeOnSelect: !0,
|
|
@@ -413,7 +413,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
413
413
|
composite: !0,
|
|
414
414
|
loopFocus: !1,
|
|
415
415
|
navigate(t) {
|
|
416
|
-
|
|
416
|
+
ve(t.node);
|
|
417
417
|
},
|
|
418
418
|
...e,
|
|
419
419
|
positioning: {
|
|
@@ -460,7 +460,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
460
460
|
return {
|
|
461
461
|
parent: null,
|
|
462
462
|
children: {},
|
|
463
|
-
typeaheadState: { ...
|
|
463
|
+
typeaheadState: { ...oe.defaultOptions },
|
|
464
464
|
positioningOverride: {}
|
|
465
465
|
};
|
|
466
466
|
},
|
|
@@ -881,7 +881,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
881
881
|
},
|
|
882
882
|
isSubmenu: ({ computed: e }) => e("isSubmenu"),
|
|
883
883
|
isPointerSuspended: ({ context: e }) => e.get("suspendPointer"),
|
|
884
|
-
isHighlightedItemEditable: ({ scope: e, computed: t }) =>
|
|
884
|
+
isHighlightedItemEditable: ({ scope: e, computed: t }) => re(e.getById(t("highlightedId"))),
|
|
885
885
|
// guard assertions (for controlled mode)
|
|
886
886
|
isOpenControlled: ({ prop: e }) => e("open") !== void 0,
|
|
887
887
|
isArrowLeftEvent: ({ event: e }) => {
|
|
@@ -950,7 +950,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
950
950
|
},
|
|
951
951
|
onPointerDownOutside(l) {
|
|
952
952
|
var A;
|
|
953
|
-
const c =
|
|
953
|
+
const c = ie(l.detail.originalEvent);
|
|
954
954
|
if (J(te(t), c) && l.detail.contextmenu) {
|
|
955
955
|
l.preventDefault();
|
|
956
956
|
return;
|
|
@@ -968,7 +968,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
968
968
|
g.context.set("suspendPointer", !0);
|
|
969
969
|
});
|
|
970
970
|
const a = t.getDoc();
|
|
971
|
-
return
|
|
971
|
+
return Ce(a, "pointermove", (l) => {
|
|
972
972
|
je(e.get("intentPolygon"), {
|
|
973
973
|
x: l.clientX,
|
|
974
974
|
y: l.clientY
|
|
@@ -981,7 +981,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
981
981
|
const g = t.getById(n("highlightedId")), a = I(t);
|
|
982
982
|
ke(g, { rootEl: a, block: "nearest" });
|
|
983
983
|
};
|
|
984
|
-
return
|
|
984
|
+
return _(() => r()), ye(() => I(t), {
|
|
985
985
|
defer: !0,
|
|
986
986
|
attributes: ["aria-activedescendant"],
|
|
987
987
|
callback: r
|
|
@@ -1027,7 +1027,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
1027
1027
|
if (!r || !o) return;
|
|
1028
1028
|
const g = r.getBoundingClientRect(), a = we(g, o);
|
|
1029
1029
|
if (!a) return;
|
|
1030
|
-
const c =
|
|
1030
|
+
const c = Ae(o) === "right" ? -5 : 5;
|
|
1031
1031
|
e.set("intentPolygon", [{ ...n.point, x: n.point.x + c }, ...a]);
|
|
1032
1032
|
},
|
|
1033
1033
|
clearIntentPolygon({ context: e }) {
|
|
@@ -1047,7 +1047,7 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
1047
1047
|
e.set("highlightedValue", null);
|
|
1048
1048
|
},
|
|
1049
1049
|
focusMenu({ scope: e }) {
|
|
1050
|
-
|
|
1050
|
+
_(() => {
|
|
1051
1051
|
const t = I(e), n = Ne({
|
|
1052
1052
|
root: t,
|
|
1053
1053
|
enabled: !J(t, e.getActiveElement()),
|
|
@@ -1060,13 +1060,13 @@ var { not: m, and: v, or: qe } = ce(), at = ue({
|
|
|
1060
1060
|
});
|
|
1061
1061
|
},
|
|
1062
1062
|
highlightFirstItem({ context: e, scope: t }) {
|
|
1063
|
-
(I(t) ? queueMicrotask :
|
|
1063
|
+
(I(t) ? queueMicrotask : _)(() => {
|
|
1064
1064
|
const r = We(t);
|
|
1065
1065
|
r && e.set("highlightedValue", f(r));
|
|
1066
1066
|
});
|
|
1067
1067
|
},
|
|
1068
1068
|
highlightLastItem({ context: e, scope: t }) {
|
|
1069
|
-
(I(t) ? queueMicrotask :
|
|
1069
|
+
(I(t) ? queueMicrotask : _)(() => {
|
|
1070
1070
|
const r = xe(t);
|
|
1071
1071
|
r && e.set("highlightedValue", f(r));
|
|
1072
1072
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnatomy as S } from "../../anatomy/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { dataAttr as u, visuallyHiddenStyle as k, isSafari as R, isLeftClick as D, dispatchInputCheckedEvent as F, trackElementRect as A, trackFormControl as $, queryAll as P } from "../../dom-query/dist/index.js";
|
|
3
|
+
import { isFocusVisible as _, trackFocusVisible as w } from "../../focus-visible/dist/index.js";
|
|
4
4
|
import { createMachine as O, createGuards as H } from "../../core/dist/index.js";
|
|
5
5
|
import { isString as L } from "../../utils/dist/index.js";
|
|
6
6
|
import { createProps as b } from "../../types/dist/index.js";
|
|
@@ -58,7 +58,7 @@ var U = S("radio-group").parts(
|
|
|
58
58
|
function te(e, t) {
|
|
59
59
|
const { context: i, send: r, computed: c, prop: o, scope: l } = e, s = c("isDisabled"), y = o("readOnly");
|
|
60
60
|
function f(a) {
|
|
61
|
-
const n = i.get("focusedValue") === a.value, d = n &&
|
|
61
|
+
const n = i.get("focusedValue") === a.value, d = n && _();
|
|
62
62
|
return {
|
|
63
63
|
value: a.value,
|
|
64
64
|
invalid: !!a.invalid,
|
|
@@ -138,14 +138,14 @@ function te(e, t) {
|
|
|
138
138
|
n.disabled || r({ type: "SET_HOVERED", value: null });
|
|
139
139
|
},
|
|
140
140
|
onPointerDown(d) {
|
|
141
|
-
n.disabled ||
|
|
141
|
+
n.disabled || D(d) && (n.focused && d.pointerType === "mouse" && d.preventDefault(), r({ type: "SET_ACTIVE", value: a.value, active: !0 }));
|
|
142
142
|
},
|
|
143
143
|
onPointerUp() {
|
|
144
144
|
n.disabled || r({ type: "SET_ACTIVE", value: null });
|
|
145
145
|
},
|
|
146
146
|
onClick() {
|
|
147
147
|
var d;
|
|
148
|
-
!n.disabled &&
|
|
148
|
+
!n.disabled && R() && ((d = K(l, a.value)) == null || d.focus());
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
},
|
|
@@ -198,7 +198,7 @@ function te(e, t) {
|
|
|
198
198
|
},
|
|
199
199
|
disabled: n.disabled,
|
|
200
200
|
defaultChecked: n.checked,
|
|
201
|
-
style:
|
|
201
|
+
style: k
|
|
202
202
|
});
|
|
203
203
|
},
|
|
204
204
|
getIndicatorProps() {
|
|
@@ -315,7 +315,7 @@ var { not: Q } = H(), ae = O({
|
|
|
315
315
|
},
|
|
316
316
|
effects: {
|
|
317
317
|
trackFormControlState({ context: e, scope: t }) {
|
|
318
|
-
return
|
|
318
|
+
return $(m(t), {
|
|
319
319
|
onFieldsetDisabledChange(i) {
|
|
320
320
|
e.set("fieldsetDisabled", i);
|
|
321
321
|
},
|
|
@@ -326,7 +326,7 @@ var { not: Q } = H(), ae = O({
|
|
|
326
326
|
},
|
|
327
327
|
trackFocusVisible({ scope: e }) {
|
|
328
328
|
var t;
|
|
329
|
-
return
|
|
329
|
+
return w({ root: (t = e.getRootNode) == null ? void 0 : t.call(e) });
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
actions: {
|
|
@@ -365,7 +365,7 @@ var { not: Q } = H(), ae = O({
|
|
|
365
365
|
e.set("canIndicatorTransition", !1), e.set("indicatorRect", {});
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
|
-
const o =
|
|
368
|
+
const o = A([c], {
|
|
369
369
|
measure(s) {
|
|
370
370
|
return j(s);
|
|
371
371
|
},
|
|
@@ -378,7 +378,7 @@ var { not: Q } = H(), ae = O({
|
|
|
378
378
|
dispatchChangeEvent({ context: e, scope: t }) {
|
|
379
379
|
V(t).forEach((r) => {
|
|
380
380
|
const c = r.value === e.get("value");
|
|
381
|
-
c !== r.checked &&
|
|
381
|
+
c !== r.checked && F(r, { checked: c });
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnatomy as te } from "../../anatomy/dist/index.js";
|
|
2
2
|
import { ListCollection as J } from "../../collection/dist/index.js";
|
|
3
|
-
import { raf as N,
|
|
3
|
+
import { raf as N, observeAttributes as ie, trackFormControl as le, getByTypeahead as H, isSelfTarget as ne, isValidTabEvent as ae, getEventKey as $, getEventTarget as se, isEditableElement as oe, visuallyHiddenStyle as re, dataAttr as r, ariaAttr as de, getInitialFocus as ce, scrollIntoView as ue } from "../../dom-query/dist/index.js";
|
|
4
4
|
import { getPlacement as K, getPlacementStyles as ge } from "../../popper/dist/index.js";
|
|
5
5
|
import { addOrRemove as B, isEqual as he, ensure as me } from "../../utils/dist/index.js";
|
|
6
6
|
import { createMachine as Ie, createGuards as pe } from "../../core/dist/index.js";
|
|
@@ -246,7 +246,7 @@ function Ne(e, t) {
|
|
|
246
246
|
"data-state": s.selected ? "checked" : "unchecked",
|
|
247
247
|
"data-highlighted": r(s.highlighted),
|
|
248
248
|
"data-disabled": r(s.disabled),
|
|
249
|
-
"aria-disabled":
|
|
249
|
+
"aria-disabled": de(s.disabled),
|
|
250
250
|
onPointerMove(u) {
|
|
251
251
|
s.disabled || u.pointerType !== "mouse" || s.value !== y && o({ type: "ITEM.POINTER_MOVE", value: s.value });
|
|
252
252
|
},
|
|
@@ -323,7 +323,7 @@ function Ne(e, t) {
|
|
|
323
323
|
"aria-hidden": !0,
|
|
324
324
|
id: _(a),
|
|
325
325
|
defaultValue: s,
|
|
326
|
-
style:
|
|
326
|
+
style: re,
|
|
327
327
|
tabIndex: -1,
|
|
328
328
|
// Some browser extensions will focus the hidden select.
|
|
329
329
|
// Let's forward the focus to the trigger.
|
|
@@ -357,8 +357,8 @@ function Ne(e, t) {
|
|
|
357
357
|
"aria-labelledby": b(a),
|
|
358
358
|
tabIndex: 0,
|
|
359
359
|
onKeyDown(n) {
|
|
360
|
-
if (!F || !
|
|
361
|
-
if (n.key === "Tab" && !
|
|
360
|
+
if (!F || !ne(n)) return;
|
|
361
|
+
if (n.key === "Tab" && !ae(n)) {
|
|
362
362
|
n.preventDefault();
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
@@ -387,8 +387,8 @@ function Ne(e, t) {
|
|
|
387
387
|
u(n), n.preventDefault();
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
|
-
const T =
|
|
391
|
-
|
|
390
|
+
const T = se(n);
|
|
391
|
+
oe(T) || H.isValidEvent(n) && (o({ type: "CONTENT.TYPEAHEAD", key: n.key }), n.preventDefault());
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
},
|
|
@@ -794,7 +794,7 @@ var { and: C, not: v, or: Ce } = pe(), ke = Ie({
|
|
|
794
794
|
},
|
|
795
795
|
effects: {
|
|
796
796
|
trackFormControlState({ context: e, scope: t }) {
|
|
797
|
-
return
|
|
797
|
+
return le(k(t), {
|
|
798
798
|
onFieldsetDisabledChange(i) {
|
|
799
799
|
e.set("fieldsetDisabled", i);
|
|
800
800
|
},
|
|
@@ -841,9 +841,9 @@ var { and: C, not: v, or: Ce } = pe(), ke = Ie({
|
|
|
841
841
|
I == null || I({ index: p, immediate: c });
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
|
-
|
|
844
|
+
ue(g, { rootEl: m, block: "nearest" });
|
|
845
845
|
};
|
|
846
|
-
return N(() => a(!0)),
|
|
846
|
+
return N(() => a(!0)), ie(() => R(i), {
|
|
847
847
|
defer: !0,
|
|
848
848
|
attributes: ["data-activedescendant"],
|
|
849
849
|
callback() {
|
|
@@ -890,7 +890,7 @@ var { and: C, not: v, or: Ce } = pe(), ke = Ie({
|
|
|
890
890
|
},
|
|
891
891
|
setInitialFocus({ scope: e }) {
|
|
892
892
|
N(() => {
|
|
893
|
-
const t =
|
|
893
|
+
const t = ce({
|
|
894
894
|
root: R(e)
|
|
895
895
|
});
|
|
896
896
|
t == null || t.focus({ preventScroll: !0 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnatomy as T } from "../../anatomy/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { dataAttr as c, visuallyHiddenStyle as y, getEventTarget as V, isSafari as I, dispatchInputCheckedEvent as P, setElementChecked as S, trackFormControl as D, trackPress as F } from "../../dom-query/dist/index.js";
|
|
3
|
+
import { isFocusVisible as N, trackFocusVisible as H } from "../../focus-visible/dist/index.js";
|
|
4
4
|
import { createMachine as O, createGuards as w } from "../../core/dist/index.js";
|
|
5
5
|
import { createProps as K } from "../../types/dist/index.js";
|
|
6
6
|
var R = T("switch").parts("root", "label", "control", "thumb"), h = R.build(), m = (e) => {
|
|
@@ -56,7 +56,7 @@ function x(e, t) {
|
|
|
56
56
|
onClick(i) {
|
|
57
57
|
var p;
|
|
58
58
|
if (o) return;
|
|
59
|
-
|
|
59
|
+
V(i) === n(a) && i.stopPropagation(), I() && ((p = n(a)) == null || p.focus());
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
},
|
|
@@ -98,9 +98,9 @@ function x(e, t) {
|
|
|
98
98
|
name: r("name"),
|
|
99
99
|
form: r("form"),
|
|
100
100
|
value: r("value"),
|
|
101
|
-
style:
|
|
101
|
+
style: y,
|
|
102
102
|
onFocus() {
|
|
103
|
-
const i =
|
|
103
|
+
const i = N();
|
|
104
104
|
d({ type: "CONTEXT.SET", context: { focused: !0, focusVisible: i } });
|
|
105
105
|
},
|
|
106
106
|
onBlur() {
|
|
@@ -201,7 +201,7 @@ var { not: E } = w(), j = O({
|
|
|
201
201
|
effects: {
|
|
202
202
|
trackPressEvent({ computed: e, scope: t, context: s }) {
|
|
203
203
|
if (!e("isDisabled"))
|
|
204
|
-
return
|
|
204
|
+
return F({
|
|
205
205
|
pointerNode: X(t),
|
|
206
206
|
keyboardNode: n(t),
|
|
207
207
|
isValidKey: (d) => d.key === " ",
|
|
@@ -212,10 +212,10 @@ var { not: E } = w(), j = O({
|
|
|
212
212
|
},
|
|
213
213
|
trackFocusVisible({ computed: e, scope: t }) {
|
|
214
214
|
if (!e("isDisabled"))
|
|
215
|
-
return
|
|
215
|
+
return H({ root: t.getRootNode() });
|
|
216
216
|
},
|
|
217
217
|
trackFormControlState({ context: e, send: t, scope: s }) {
|
|
218
|
-
return
|
|
218
|
+
return D(n(s), {
|
|
219
219
|
onFieldsetDisabledChange(d) {
|
|
220
220
|
e.set("fieldsetDisabled", d);
|
|
221
221
|
},
|
|
@@ -233,7 +233,7 @@ var { not: E } = w(), j = O({
|
|
|
233
233
|
},
|
|
234
234
|
syncInputElement({ context: e, scope: t }) {
|
|
235
235
|
const s = n(t);
|
|
236
|
-
s &&
|
|
236
|
+
s && S(s, !!e.get("checked"));
|
|
237
237
|
},
|
|
238
238
|
removeFocusIfNeeded({ context: e, prop: t }) {
|
|
239
239
|
t("disabled") && e.set("focused", !1);
|
|
@@ -246,7 +246,7 @@ var { not: E } = w(), j = O({
|
|
|
246
246
|
},
|
|
247
247
|
dispatchChangeEvent({ context: e, scope: t }) {
|
|
248
248
|
const s = n(t);
|
|
249
|
-
|
|
249
|
+
P(s, { checked: e.get("checked") });
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAnatomy as L } from "../../anatomy/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { dataAttr as d, isOpeningInNewTab as N, isSafari as P, isSelfTarget as S, isComposingEvent as U, getEventKey as $, isAnchorElement as D, trackElementRect as k, nextTick as W, raf as v, getFocusables as x, prevById as M, nextById as X, clickIfLink as H, itemById as K, queryAll as Y } from "../../dom-query/dist/index.js";
|
|
3
3
|
import { last as q, first as j } from "../../utils/dist/index.js";
|
|
4
4
|
import { setup as G } from "../../core/dist/index.js";
|
|
5
5
|
import { createProps as F } from "../../types/dist/index.js";
|
|
@@ -20,14 +20,14 @@ var J = L("tabs").parts("root", "list", "trigger", "content", "indicator"), b =
|
|
|
20
20
|
return ((t = e.ids) == null ? void 0 : t.indicator) ?? `tabs:${e.id}:indicator`;
|
|
21
21
|
}, Z = (e) => e.getById(y(e)), z = (e, t) => e.getById(E(e, t)), h = (e, t) => e.getById(f(e, t)), _ = (e) => e.getById(w(e)), V = (e) => {
|
|
22
22
|
const o = `[role=tab][data-ownedby='${CSS.escape(y(e))}']:not([disabled])`;
|
|
23
|
-
return
|
|
24
|
-
}, ee = (e) => j(V(e)), te = (e) => q(V(e)), ae = (e, t) =>
|
|
23
|
+
return Y(Z(e), o);
|
|
24
|
+
}, ee = (e) => j(V(e)), te = (e) => q(V(e)), ae = (e, t) => X(V(e), f(e, t.value), t.loopFocus), oe = (e, t) => M(V(e), f(e, t.value), t.loopFocus), O = (e) => ({
|
|
25
25
|
left: (e == null ? void 0 : e.offsetLeft) ?? 0,
|
|
26
26
|
top: (e == null ? void 0 : e.offsetTop) ?? 0,
|
|
27
27
|
width: (e == null ? void 0 : e.offsetWidth) ?? 0,
|
|
28
28
|
height: (e == null ? void 0 : e.offsetHeight) ?? 0
|
|
29
29
|
}), re = (e, t) => {
|
|
30
|
-
const o =
|
|
30
|
+
const o = K(V(e), f(e, t));
|
|
31
31
|
return B(O(o));
|
|
32
32
|
}, B = (e) => ({
|
|
33
33
|
width: `${e.width}px`,
|
|
@@ -91,7 +91,7 @@ function de(e, t) {
|
|
|
91
91
|
"data-orientation": r("orientation"),
|
|
92
92
|
"aria-label": p == null ? void 0 : p.listLabel,
|
|
93
93
|
onKeyDown(i) {
|
|
94
|
-
if (i.defaultPrevented || !
|
|
94
|
+
if (i.defaultPrevented || !S(i) || U(i)) return;
|
|
95
95
|
const s = {
|
|
96
96
|
ArrowDown() {
|
|
97
97
|
I || a({ type: "ARROW_NEXT", key: "ArrowDown" });
|
|
@@ -112,7 +112,7 @@ function de(e, t) {
|
|
|
112
112
|
a({ type: "END" });
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
let c =
|
|
115
|
+
let c = $(i, {
|
|
116
116
|
dir: r("dir"),
|
|
117
117
|
orientation: r("orientation")
|
|
118
118
|
});
|
|
@@ -153,7 +153,7 @@ function de(e, t) {
|
|
|
153
153
|
(A == null ? void 0 : A.getAttribute("role")) !== "tab" && a({ type: "TAB_BLUR" });
|
|
154
154
|
},
|
|
155
155
|
onClick(T) {
|
|
156
|
-
T.defaultPrevented ||
|
|
156
|
+
T.defaultPrevented || N(T) || c || (P() && T.currentTarget.focus(), a({ type: "TAB_CLICK", value: s }));
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
},
|
|
@@ -205,7 +205,7 @@ var { createMachine: ie } = G(), fe = ie({
|
|
|
205
205
|
loopFocus: !0,
|
|
206
206
|
composite: !0,
|
|
207
207
|
navigate(t) {
|
|
208
|
-
|
|
208
|
+
H(t.node);
|
|
209
209
|
},
|
|
210
210
|
defaultValue: null,
|
|
211
211
|
...e
|
|
@@ -394,7 +394,7 @@ var { createMachine: ie } = G(), fe = ie({
|
|
|
394
394
|
if (!o) return;
|
|
395
395
|
const a = z(t, o);
|
|
396
396
|
if (!a) return;
|
|
397
|
-
|
|
397
|
+
x(a).length > 0 ? a.removeAttribute("tabindex") : a.setAttribute("tabindex", "0");
|
|
398
398
|
});
|
|
399
399
|
},
|
|
400
400
|
cleanupObserver({ refs: e }) {
|
|
@@ -411,7 +411,7 @@ var { createMachine: ie } = G(), fe = ie({
|
|
|
411
411
|
e.set("indicatorTransition", !1);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
-
h(o, a) && (e.set("indicatorRect", re(o, a)),
|
|
414
|
+
h(o, a) && (e.set("indicatorRect", re(o, a)), W(() => {
|
|
415
415
|
e.set("indicatorTransition", !1);
|
|
416
416
|
}));
|
|
417
417
|
},
|
|
@@ -428,7 +428,7 @@ var { createMachine: ie } = G(), fe = ie({
|
|
|
428
428
|
}
|
|
429
429
|
const r = h(o, n), u = _(o);
|
|
430
430
|
if (!r || !u) return;
|
|
431
|
-
const p =
|
|
431
|
+
const p = k([r], {
|
|
432
432
|
measure(g) {
|
|
433
433
|
return O(g);
|
|
434
434
|
},
|
|
@@ -444,7 +444,7 @@ var { createMachine: ie } = G(), fe = ie({
|
|
|
444
444
|
const a = e.get("value");
|
|
445
445
|
if (!a) return;
|
|
446
446
|
const n = h(o, a);
|
|
447
|
-
|
|
447
|
+
D(n) && ((r = t("navigate")) == null || r({ value: a, node: n, href: n.href }));
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { contains as q, MAX_Z_INDEX as X, raf as N, dataAttr as D, addDomEvent as L } from "../../dom-query/dist/index.js";
|
|
2
2
|
import { createAnatomy as Q } from "../../anatomy/dist/index.js";
|
|
3
3
|
import { createMachine as K, createGuards as Y } from "../../core/dist/index.js";
|
|
4
4
|
import { trackDismissableBranch as Z } from "../../dismissable/dist/index.js";
|
|
@@ -288,7 +288,7 @@ var lt = K({
|
|
|
288
288
|
});
|
|
289
289
|
},
|
|
290
290
|
trackHotKeyPress({ prop: t, send: e }) {
|
|
291
|
-
return
|
|
291
|
+
return L(document, "keydown", (s) => {
|
|
292
292
|
const { hotkey: r } = t("store").attrs;
|
|
293
293
|
r.every((c) => s[c] || s.code === c) && e({ type: "DOC.HOTKEY" });
|
|
294
294
|
}, { capture: !0 });
|
|
@@ -297,7 +297,7 @@ var lt = K({
|
|
|
297
297
|
const { pauseOnPageIdle: s } = t("store").attrs;
|
|
298
298
|
if (!s) return;
|
|
299
299
|
const r = i.getDoc();
|
|
300
|
-
return
|
|
300
|
+
return L(r, "visibilitychange", () => {
|
|
301
301
|
const a = r.visibilityState === "hidden";
|
|
302
302
|
e({ type: a ? "PAUSE_ALL" : "RESUME_ALL" });
|
|
303
303
|
});
|
|
@@ -604,7 +604,7 @@ var { not: ut } = Y(), Ot = K({
|
|
|
604
604
|
},
|
|
605
605
|
trackHeight({ scope: t, prop: e }) {
|
|
606
606
|
let i;
|
|
607
|
-
return
|
|
607
|
+
return N(() => {
|
|
608
608
|
const s = U(t);
|
|
609
609
|
if (!s) return;
|
|
610
610
|
const r = () => {
|
|
@@ -629,7 +629,7 @@ var { not: ut } = Y(), Ot = K({
|
|
|
629
629
|
},
|
|
630
630
|
actions: {
|
|
631
631
|
setMounted({ context: t }) {
|
|
632
|
-
|
|
632
|
+
N(() => {
|
|
633
633
|
t.set("mounted", !0);
|
|
634
634
|
});
|
|
635
635
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAnatomy as M } from "../../anatomy/dist/index.js";
|
|
2
|
-
import { addDomEvent as u, getOverflowAncestors as D,
|
|
2
|
+
import { addDomEvent as u, getOverflowAncestors as D, dataAttr as E, isLeftClick as I, isComposingEvent as V } from "../../dom-query/dist/index.js";
|
|
3
3
|
import { trackFocusVisible as T, isFocusVisible as S } from "../../focus-visible/dist/index.js";
|
|
4
4
|
import { getPlacement as k, getPlacementStyles as F } from "../../popper/dist/index.js";
|
|
5
5
|
import { subscribe as A, proxy as G } from "../../store/dist/index.js";
|
|
@@ -36,7 +36,7 @@ function X(e, t) {
|
|
|
36
36
|
...d.trigger.attrs,
|
|
37
37
|
id: h,
|
|
38
38
|
dir: n("dir"),
|
|
39
|
-
"data-expanded":
|
|
39
|
+
"data-expanded": E(p),
|
|
40
40
|
"data-state": p ? "open" : "closed",
|
|
41
41
|
"aria-describedby": p ? y : void 0,
|
|
42
42
|
onClick(i) {
|
|
@@ -51,7 +51,7 @@ function X(e, t) {
|
|
|
51
51
|
i.defaultPrevented || c || f === l.id && r({ type: "close", src: "trigger.blur" });
|
|
52
52
|
},
|
|
53
53
|
onPointerDown(i) {
|
|
54
|
-
i.defaultPrevented || c ||
|
|
54
|
+
i.defaultPrevented || c || I(i) && n("closeOnPointerDown") && f === l.id && r({ type: "close", src: "trigger.pointerdown" });
|
|
55
55
|
},
|
|
56
56
|
onPointerMove(i) {
|
|
57
57
|
i.defaultPrevented || c || i.pointerType !== "touch" && r({ type: "pointer.move" });
|
|
@@ -416,7 +416,7 @@ var { and: N, not: C } = L(), Y = K({
|
|
|
416
416
|
}), () => o == null ? void 0 : o();
|
|
417
417
|
},
|
|
418
418
|
trackEscapeKey: ({ send: e, prop: t }) => t("closeOnEscape") ? u(document, "keydown", (s) => {
|
|
419
|
-
|
|
419
|
+
V(s) || s.key === "Escape" && (s.stopPropagation(), e({ type: "close", src: "keydown.escape" }));
|
|
420
420
|
}, !0) : void 0,
|
|
421
421
|
waitForOpenDelay: ({ send: e, prop: t }) => {
|
|
422
422
|
const o = setTimeout(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createCss as b, createMergeCss as g, hypenateProperty as p, withoutSpace as m } from "../helpers.js";
|
|
2
2
|
import { finalizeConditions as h, sortConditions as f } from "./conditions.js";
|
|
3
3
|
const u = "aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle", d = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
4
4
|
u.split(",").forEach((r) => {
|
|
@@ -22,9 +22,9 @@ const a = (r) => s.get(r) || r, l = {
|
|
|
22
22
|
toHash: (r, t) => t(r.join(":")),
|
|
23
23
|
resolveShorthand: a
|
|
24
24
|
}
|
|
25
|
-
}, S =
|
|
25
|
+
}, S = b(l), k = (...r) => S(c(...r));
|
|
26
26
|
k.raw = (...r) => c(...r);
|
|
27
|
-
const { mergeCss: c } =
|
|
27
|
+
const { mergeCss: c } = g(l);
|
|
28
28
|
export {
|
|
29
29
|
k as css,
|
|
30
30
|
c as mergeCss
|