solid-baseui 0.1.0-alpha.1 → 0.1.0-alpha.3
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/CHANGELOG.md +56 -0
- package/README.md +30 -35
- package/dist/lib/client/DialogHandle-DluOK_7u.js +521 -0
- package/dist/lib/client/DialogPopup-CfEb3F54.js +138 -0
- package/dist/lib/client/FieldControl-eDe-Jnp9.js +142 -0
- package/dist/lib/client/{FieldRootContext-izCEh80D.js → FieldRootContext-D3fuVjs3.js} +1 -1
- package/dist/lib/client/{FocusManager-NP1uPXTi.js → FocusManager-q7z7PMV1.js} +92 -89
- package/dist/lib/client/{InternalBackdrop-cSK13gaM.js → InternalBackdrop-B8_lfUvf.js} +1 -1
- package/dist/lib/client/{MenuSubmenuTrigger-yfncqM-D.js → MenuSubmenuTrigger-DMb5CwTF.js} +386 -386
- package/dist/lib/client/{PopupHandle-CQI6Om1Z.js → PopupHandle-DyX5gY1e.js} +17 -11
- package/dist/lib/client/{PopupStore-Du0O57fL.js → PopupStore-BjRwcvbG.js} +91 -88
- package/dist/lib/client/PopupViewport-BanYHrD-.js +154 -0
- package/dist/lib/client/{TriggerFocusGuards-Cs8LVBj5.js → TriggerFocusGuards-Fzspp3Y1.js} +2 -2
- package/dist/lib/client/accordion/index.js +1 -1
- package/dist/lib/client/{accordion-BFeZFpJZ.js → accordion-CA2DfX67.js} +144 -144
- package/dist/lib/client/alert-dialog/index.js +1 -1
- package/dist/lib/client/{alert-dialog-BxGUF8_Q.js → alert-dialog-Bup88Dpx.js} +2 -2
- package/dist/lib/client/autocomplete/index.js +1 -1
- package/dist/lib/client/{autocomplete-C9QA98XD.js → autocomplete-oyy_uRpU.js} +2 -2
- package/dist/lib/client/avatar/index.js +1 -1
- package/dist/lib/client/avatar-DNZ4fnBd.js +191 -0
- package/dist/lib/client/button/index.js +1 -1
- package/dist/lib/client/button-BJZYmCVv.js +88 -0
- package/dist/lib/client/checkbox/index.js +1 -1
- package/dist/lib/client/checkbox-group/index.js +1 -1
- package/dist/lib/client/{checkbox-group-CwMDoSTK.js → checkbox-group-DGyrciZJ.js} +1 -1
- package/dist/lib/client/checkbox-sQHYTbpB.js +425 -0
- package/dist/lib/client/collapsible/index.js +1 -1
- package/dist/lib/client/collapsible-BENbFFCc.js +230 -0
- package/dist/lib/client/combobox/index.js +1 -1
- package/dist/lib/client/{combobox-6DhOdzit.js → combobox-BGH8QLXH.js} +143 -141
- package/dist/lib/client/compositeNavigation-DCt1sQon.js +82 -0
- package/dist/lib/client/{constants-cOVxAoxB.js → constants-ByOMFJAe.js} +100 -100
- package/dist/lib/client/context-menu/index.js +1 -1
- package/dist/lib/client/context-menu-xQ1sBCET.js +220 -0
- package/dist/lib/client/{createAnchorPositioning-D96gu-Dz.js → createAnchorPositioning-DCXIApS1.js} +1 -1
- package/dist/lib/client/{createAnchoredPopupScrollLock-Cx0cbh1_.js → createAnchoredPopupScrollLock-BxKpJbCE.js} +2 -2
- package/dist/lib/client/{createClickInteraction-CTaIFBiV.js → createClickInteraction-BeBsTqtY.js} +1 -1
- package/dist/lib/client/{createFocusInteraction--s9_qBf3.js → createFocusInteraction-DQPWkZe2.js} +7 -7
- package/dist/lib/client/{createPopupAutoResize-Dn-stj-8.js → createPopupAutoResize-CSNpMz5v.js} +3 -3
- package/dist/lib/client/dialog/index.js +1 -1
- package/dist/lib/client/{dialog-B9tR9X48.js → dialog-C0EF0a5u.js} +2 -2
- package/dist/lib/client/{dom-BEAeQ9Eb.js → dom-lDdayFF_.js} +25 -15
- package/dist/lib/client/drawer/index.js +1 -1
- package/dist/lib/client/{drawer-dyr3_sKQ.js → drawer-uKoNBwDU.js} +519 -518
- package/dist/lib/client/field/index.js +1 -1
- package/dist/lib/client/{field-CjUAjp1m.js → field-DIMrgpBW.js} +144 -144
- package/dist/lib/client/form/index.js +1 -1
- package/dist/lib/client/form-Bqq8wSLY.js +109 -0
- package/dist/lib/client/index.js +34 -34
- package/dist/lib/client/input/index.js +1 -1
- package/dist/lib/client/{input-_QHvSSqM.js → input-YthuKwIE.js} +1 -1
- package/dist/lib/client/internals/composeEventHandlers.js +14 -8
- package/dist/lib/client/internals/field-root-context/index.js +2 -2
- package/dist/lib/client/{mergeStyleValue-DhTA9Nwe.js → isSolidAccessor-BH_FevwH.js} +1 -12
- package/dist/lib/client/menu/index.js +1 -1
- package/dist/lib/client/{menu-DLqUBmMK.js → menu-4rNLN6aX.js} +79 -79
- package/dist/lib/client/menubar/index.js +1 -1
- package/dist/lib/client/menubar-nFQGtNmY.js +163 -0
- package/dist/lib/client/mergeStyleValue-Dcd36yxZ.js +12 -0
- package/dist/lib/client/navigation-menu/index.js +1 -1
- package/dist/lib/client/{navigation-menu-mVHV41Ky.js → navigation-menu-BbRyun3a.js} +284 -284
- package/dist/lib/client/number-field/index.js +1 -1
- package/dist/lib/client/{number-field-DusLw_0X.js → number-field-hT_H0hVu.js} +356 -356
- package/dist/lib/client/otp-field/index.js +1 -1
- package/dist/lib/client/otp-field-lsy2iGID.js +584 -0
- package/dist/lib/client/popover/index.js +1 -1
- package/dist/lib/client/{popover-Cv7xn0nW.js → popover-Cmvmuf1L.js} +250 -248
- package/dist/lib/client/{popupStateMapping-C6jQ_LKo.js → popupStateMapping-nhukB8NK.js} +51 -51
- package/dist/lib/client/preview-card/index.js +1 -1
- package/dist/lib/client/{preview-card-FTN_aafM.js → preview-card-Dtu8AnBN.js} +168 -168
- package/dist/lib/client/radio/index.js +1 -1
- package/dist/lib/client/{radio-DA_oZhQT.js → radio-CeCU-Qqi.js} +77 -77
- package/dist/lib/client/radio-group/index.js +1 -1
- package/dist/lib/client/radio-group-NbuJvjQe.js +195 -0
- package/dist/lib/client/{safePolygon-DJG0VIVo.js → safePolygon-DVAR5dQD.js} +70 -70
- package/dist/lib/client/scroll-area/index.js +1 -1
- package/dist/lib/client/scroll-area-DqbvoAd7.js +717 -0
- package/dist/lib/client/{scrollable-SRNYlhF7.js → scrollable-BVaDUXng.js} +12 -12
- package/dist/lib/client/select/index.js +1 -1
- package/dist/lib/client/{select-DSPJt7Rk.js → select-Dad51Xbn.js} +635 -634
- package/dist/lib/client/slider/index.js +1 -1
- package/dist/lib/client/slider-CLSKFq_M.js +927 -0
- package/dist/lib/client/switch/index.js +1 -1
- package/dist/lib/client/{switch-CPl7QHKI.js → switch-Bzuu5EIg.js} +61 -61
- package/dist/lib/client/tabs/index.js +1 -1
- package/dist/lib/client/{tabs-Bn4rZDyZ.js → tabs-DWiBDv8D.js} +252 -249
- package/dist/lib/client/toast/index.js +1 -1
- package/dist/lib/client/{toast-7LdqZWOs.js → toast-DmtPJW2k.js} +353 -353
- package/dist/lib/client/toggle/index.js +1 -1
- package/dist/lib/client/{toggle-CsC37e3e.js → toggle-CAe-Z8Xn.js} +33 -33
- package/dist/lib/client/toggle-group/index.js +1 -1
- package/dist/lib/client/{toggle-group-DSWb9HxN.js → toggle-group-BbQg5s-m.js} +44 -44
- package/dist/lib/client/toolbar/index.js +1 -1
- package/dist/lib/client/{toolbar-DcCi3HNp.js → toolbar-BXT_g-oX.js} +218 -218
- package/dist/lib/client/tooltip/index.js +1 -1
- package/dist/lib/client/{tooltip-D-PkGco9.js → tooltip-h2r2_Xuo.js} +250 -249
- package/dist/lib/client/{useFilteredItems-B7z2CGMV.js → useFilteredItems-BX0BEuSI.js} +850 -819
- package/dist/lib/server/{DialogHandle-nJSSy_jM.js → DialogHandle-BGIISmG7.js} +16 -16
- package/dist/lib/server/{DialogPopup-Da1aIxVA.js → DialogPopup-C2ZDGf42.js} +4 -4
- package/dist/lib/server/{FieldControl-BDeNR3ug.js → FieldControl-CDMMyvuj.js} +6 -6
- package/dist/lib/server/{FieldRootContext-IC-LWzVp.js → FieldRootContext-Bfpna6gA.js} +3 -3
- package/dist/lib/server/{FocusManager-1LfoCsya.js → FocusManager-D-xgblGs.js} +9 -3
- package/dist/lib/server/{InternalBackdrop-C_iDPVR-.js → InternalBackdrop-D_2zAWnl.js} +1 -1
- package/dist/lib/server/{MenuSubmenuTrigger-rR8ZN7YR.js → MenuSubmenuTrigger-BMQKlOvU.js} +50 -50
- package/dist/lib/server/{PopupHandle-Ct6wywmP.js → PopupHandle-QNj4mED2.js} +14 -5
- package/dist/lib/server/{PopupStore-kHjFPiQ5.js → PopupStore-evylvVnN.js} +5 -2
- package/dist/lib/server/{PopupViewport-DftN5VUp.js → PopupViewport-BDttjORN.js} +37 -27
- package/dist/lib/server/{TriggerFocusGuards-CvoGfft9.js → TriggerFocusGuards-B9GNbLrL.js} +2 -2
- package/dist/lib/server/accordion/index.js +7 -7
- package/dist/lib/server/alert-dialog/index.js +2 -2
- package/dist/lib/server/autocomplete/index.js +2 -2
- package/dist/lib/server/avatar/index.js +3 -3
- package/dist/lib/server/button/index.js +6 -6
- package/dist/lib/server/checkbox/index.js +7 -7
- package/dist/lib/server/checkbox-group/index.js +1 -1
- package/dist/lib/server/collapsible/index.js +6 -6
- package/dist/lib/server/combobox/index.js +18 -18
- package/dist/lib/server/{compositeNavigation-BRVT1C38.js → compositeNavigation-D5jKM4yk.js} +32 -1
- package/dist/lib/server/{constants-D7ciIzsV.js → constants-ByqXubhO.js} +2 -2
- package/dist/lib/server/context-menu/index.js +9 -9
- package/dist/lib/server/{createAnchorPositioning-B5Y0WEev.js → createAnchorPositioning-DrQYe7RS.js} +1 -1
- package/dist/lib/server/{createAnchoredPopupScrollLock-DFuUrykR.js → createAnchoredPopupScrollLock-q6gnOSmv.js} +2 -2
- package/dist/lib/server/{createClickInteraction-BYsMgvup.js → createClickInteraction-D7oc1Vco.js} +1 -1
- package/dist/lib/server/{createFocusInteraction-DMyKsniI.js → createFocusInteraction-DFKr4G7a.js} +1 -1
- package/dist/lib/server/{createPopupAutoResize-ImBjwdj_.js → createPopupAutoResize-Cg0-lLf4.js} +1 -1
- package/dist/lib/server/dialog/index.js +2 -2
- package/dist/lib/server/{dom-Crg_2R-j.js → dom-D8_aB1yy.js} +14 -1
- package/dist/lib/server/drawer/index.js +38 -34
- package/dist/lib/server/field/index.js +6 -6
- package/dist/lib/server/form/index.js +2 -2
- package/dist/lib/server/input/index.js +1 -1
- package/dist/lib/server/internals/composeEventHandlers.js +15 -9
- package/dist/lib/server/internals/field-root-context/index.js +1 -1
- package/dist/lib/server/{mergeStyleValue-BwJ10_X2.js → isSolidAccessor-CZpzAH5l.js} +1 -20
- package/dist/lib/server/menu/index.js +17 -17
- package/dist/lib/server/menubar/index.js +4 -4
- package/dist/lib/server/mergeStyleValue-DecVaoac.js +20 -0
- package/dist/lib/server/navigation-menu/index.js +21 -21
- package/dist/lib/server/number-field/index.js +21 -21
- package/dist/lib/server/otp-field/index.js +8 -8
- package/dist/lib/server/popover/index.js +27 -26
- package/dist/lib/server/{popupStateMapping-B2KsiiLb.js → popupStateMapping-VHqr6M4H.js} +1 -1
- package/dist/lib/server/preview-card/index.js +16 -16
- package/dist/lib/server/radio/index.js +6 -6
- package/dist/lib/server/radio-group/index.js +5 -5
- package/dist/lib/server/{safePolygon-C1GNJbKR.js → safePolygon-B8QtiIZ3.js} +1 -1
- package/dist/lib/server/scroll-area/index.js +18 -18
- package/dist/lib/server/{scrollable-CjsSxbGr.js → scrollable-C9Pgq8T5.js} +1 -1
- package/dist/lib/server/select/index.js +39 -38
- package/dist/lib/server/slider/index.js +14 -14
- package/dist/lib/server/switch/index.js +9 -9
- package/dist/lib/server/tabs/index.js +12 -8
- package/dist/lib/server/toast/index.js +32 -32
- package/dist/lib/server/toggle/index.js +7 -7
- package/dist/lib/server/toggle-group/index.js +2 -2
- package/dist/lib/server/toolbar/index.js +14 -14
- package/dist/lib/server/tooltip/index.js +32 -27
- package/dist/lib/server/{useFilteredItems-DCxq20Is.js → useFilteredItems-BmhL0nf1.js} +181 -137
- package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +7 -7
- package/dist/lib/types/combobox/chip/ComboboxChip.d.ts +2 -0
- package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +6 -1
- package/dist/lib/types/combobox/store/ComboboxStore.d.ts +1 -0
- package/dist/lib/types/combobox/utils/handleInputPress.d.ts +1 -1
- package/dist/lib/types/field/control/FieldControl.d.ts +5 -5
- package/dist/lib/types/internals/composeEventHandlers.d.ts +9 -2
- package/dist/lib/types/internals/field-root-context/FieldRootContext.d.ts +1 -0
- package/dist/lib/types/internals/overlay/dom.d.ts +2 -0
- package/dist/lib/types/number-field/input/NumberFieldInput.d.ts +5 -5
- package/dist/lib/types/slider/track/SliderTrack.d.ts +2 -2
- package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +10 -3
- package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +10 -4
- package/package.json +2 -2
- package/dist/lib/client/DialogHandle-BGyIbcvg.js +0 -521
- package/dist/lib/client/DialogPopup-Df7MC358.js +0 -138
- package/dist/lib/client/FieldControl-C0PATyKV.js +0 -142
- package/dist/lib/client/PopupViewport-IS4XU03s.js +0 -152
- package/dist/lib/client/avatar-BQoEzzav.js +0 -191
- package/dist/lib/client/button-akYS6FyY.js +0 -88
- package/dist/lib/client/checkbox-DOXtzBhA.js +0 -425
- package/dist/lib/client/collapsible-t8YReaIp.js +0 -230
- package/dist/lib/client/compositeNavigation-sxniYTc7.js +0 -58
- package/dist/lib/client/context-menu-CplDpqmi.js +0 -220
- package/dist/lib/client/form-6Ne_bWQX.js +0 -109
- package/dist/lib/client/menubar-DhPRUQZ6.js +0 -163
- package/dist/lib/client/otp-field-D-B9tZzF.js +0 -584
- package/dist/lib/client/radio-group-CWtQxWDl.js +0 -195
- package/dist/lib/client/scroll-area-NCr49LkD.js +0 -717
- package/dist/lib/client/slider-CWq9hxFf.js +0 -927
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../switch-
|
|
1
|
+
import { t as e } from "../switch-Bzuu5EIg.js";
|
|
2
2
|
export { e as Switch };
|
|
@@ -4,17 +4,17 @@ import { getStateAttributesProps as n } from "./internals/getStateAttributesProp
|
|
|
4
4
|
import { w as r } from "./reasons-Co5CzjKq.js";
|
|
5
5
|
import { n as i, t as a } from "./resolveStyle-XcgAuaKR.js";
|
|
6
6
|
import { createChangeEventDetails as o } from "./internals/createBaseUIEventDetails.js";
|
|
7
|
-
import { composeEventHandlers as s } from "./internals/composeEventHandlers.js";
|
|
8
|
-
import { fieldStateAttributesMapping as
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import { createComponent as f, effect as
|
|
14
|
-
import { createContext as b, createEffect as x, createMemo as S, createSignal as C, createUniqueId as w, flush as
|
|
7
|
+
import { composeEventHandlers as s, liveEventHandler as c } from "./internals/composeEventHandlers.js";
|
|
8
|
+
import { fieldStateAttributesMapping as l } from "./internals/field-constants.js";
|
|
9
|
+
import { r as u } from "./FieldRootContext-D3fuVjs3.js";
|
|
10
|
+
import { n as d } from "./FormContext-CwLBtm_d.js";
|
|
11
|
+
import { r as ee } from "./LabelableContext-CmQF-TX2.js";
|
|
12
|
+
import { t as te } from "./createLabelableId-DxJRwMUJ.js";
|
|
13
|
+
import { createComponent as f, effect as ne, getNextElement as p, memo as m, mergeProps as h, ref as re, runHydrationEvents as g, setAttribute as _, setProperty as ie, spread as v, template as y } from "@solidjs/web";
|
|
14
|
+
import { createContext as b, createEffect as x, createMemo as S, createSignal as C, createUniqueId as w, flush as ae, omit as T, onCleanup as oe, onSettled as se, untrack as E, useContext as D } from "solid-js";
|
|
15
15
|
//#region src/switch/stateAttributesMapping.ts
|
|
16
16
|
var O = {
|
|
17
|
-
...
|
|
17
|
+
...l,
|
|
18
18
|
checked(e) {
|
|
19
19
|
return e ? { "data-checked": "" } : { "data-unchecked": "" };
|
|
20
20
|
}
|
|
@@ -26,7 +26,7 @@ function j() {
|
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/switch/root/SwitchRoot.tsx
|
|
29
|
-
var
|
|
29
|
+
var ce = /* @__PURE__ */ y("<span>"), le = /* @__PURE__ */ y("<input>"), ue = /* @__PURE__ */ y("<input type=hidden>"), M = {
|
|
30
30
|
"clip-path": "inset(50%)",
|
|
31
31
|
overflow: "hidden",
|
|
32
32
|
"white-space": "nowrap",
|
|
@@ -38,48 +38,48 @@ var se = /* @__PURE__ */ y("<span>"), ce = /* @__PURE__ */ y("<input>"), le = /*
|
|
|
38
38
|
position: "fixed",
|
|
39
39
|
top: "0",
|
|
40
40
|
left: "0"
|
|
41
|
-
},
|
|
41
|
+
}, de = {
|
|
42
42
|
...M,
|
|
43
43
|
position: "absolute"
|
|
44
44
|
};
|
|
45
45
|
function N(e) {
|
|
46
|
-
let
|
|
47
|
-
...
|
|
46
|
+
let l = u(!0), y = d(), b = ee(), D = e, k = e, j = Symbol("Switch"), N = `base-ui-${w()}`, I = `base-ui-${w()}`, R = `base-ui-${w()}`, z = b.defaultControlId, B = typeof z == "string" ? z : N, V = E(() => D.checked !== void 0), [he, ge] = C(() => !!E(() => D.defaultChecked)), [H, _e] = C(), [U, ve] = C(), [ye, W] = C(), be = T(k, "aria-describedby", "aria-labelledby", "render", "checked", "class", "defaultChecked", "disabled", "form", "id", "inputRef", "name", "nativeButton", "onBlur", "onChange", "onCheckedChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "readOnly", "ref", "required", "style", "uncheckedValue", "value"), G = S(() => V ? !!D.checked : he()), K = S(() => D.nativeButton ?? !1), q = S(() => l.disabled() || (D.disabled ?? !1)), J = S(() => D.readOnly ?? !1), Y = S(() => D.required ?? !1), X = S(() => l.name() ?? D.name), Z = te(() => D.id, B), xe = S(() => K() ? Z() : I), Q = S(() => ({
|
|
47
|
+
...l.state(),
|
|
48
48
|
checked: G(),
|
|
49
49
|
disabled: q(),
|
|
50
50
|
readOnly: J(),
|
|
51
51
|
required: Y()
|
|
52
|
-
})),
|
|
53
|
-
var t = p(
|
|
52
|
+
})), Se = S(() => i(e.class, Q())), Ce = t(e, () => Q(), (e) => (() => {
|
|
53
|
+
var t = p(ce);
|
|
54
54
|
return v(t, e, !1), g(), t;
|
|
55
|
-
})()),
|
|
55
|
+
})()), we = S(() => a(e.style, Q())), Te = S(() => n(Q(), O)), Ee = S(() => D["aria-labelledby"] ?? b.labelId() ?? ye()), De = S(() => b.getAriaDescribedBy(D["aria-describedby"])), Oe = S(() => b.getAriaDescribedBy(void 0)), ke = E(G), Ae = {
|
|
56
56
|
id: I,
|
|
57
57
|
name: D.name,
|
|
58
58
|
value: G,
|
|
59
59
|
getControl: () => H() ?? null
|
|
60
|
-
},
|
|
61
|
-
function
|
|
60
|
+
}, je = s(c(() => E(() => q() ? P : void 0)), c(() => D.onClick), Re), Me = s(c(() => D.onFocus), ze), Ne = s(c(() => D.onBlur), Be), Pe = s(c(() => E(() => q() ? F : void 0)), c(() => D.onKeyDown), c(() => E(() => K() ? void 0 : fe))), Fe = s(c(() => E(() => q() ? F : void 0)), c(() => D.onKeyUp), c(() => E(() => K() ? void 0 : pe))), Ie = s(c(() => E(() => q() ? F : void 0)), c(() => D.onMouseDown)), Le = s(c(() => E(() => q() ? P : void 0)), c(() => D.onPointerDown));
|
|
61
|
+
function Re(e) {
|
|
62
62
|
if (J() || q()) return;
|
|
63
63
|
e.preventDefault();
|
|
64
64
|
let t = U();
|
|
65
65
|
t && L(t, e);
|
|
66
66
|
}
|
|
67
|
-
function Re() {
|
|
68
|
-
q() || c.setFocused(!0);
|
|
69
|
-
}
|
|
70
67
|
function ze() {
|
|
71
|
-
|
|
68
|
+
q() || l.setFocused(!0);
|
|
69
|
+
}
|
|
70
|
+
function Be() {
|
|
71
|
+
!U() || q() || (l.setTouched(!0), l.setFocused(!1), l.validationMode() === "onBlur" && l.validation.commit(G()));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Ve(e) {
|
|
74
74
|
let t = e.currentTarget;
|
|
75
75
|
if (e.stopPropagation(), e.defaultPrevented || q() || J()) {
|
|
76
76
|
(q() || J()) && e.preventDefault(), t.checked = E(G), queueMicrotask($);
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
let n = t.checked, i = o(r, e);
|
|
80
|
-
D.onCheckedChange?.(n, i), V &&
|
|
80
|
+
D.onCheckedChange?.(n, i), V && ae(), i.isCanceled ? (e.preventDefault(), t.checked = E(G)) : V ? t.checked = E(G) : ge(n), queueMicrotask($);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function He() {
|
|
83
83
|
H()?.focus();
|
|
84
84
|
}
|
|
85
85
|
function $() {
|
|
@@ -91,12 +91,12 @@ function N(e) {
|
|
|
91
91
|
element: H(),
|
|
92
92
|
name: D.name
|
|
93
93
|
}), (e) => {
|
|
94
|
-
|
|
94
|
+
Ae.name = e.name, l.registerFieldControl(j, e.disabled || !e.element ? void 0 : Ae);
|
|
95
95
|
}), x(() => ({
|
|
96
96
|
input: U(),
|
|
97
97
|
disabled: q()
|
|
98
98
|
}), (e) => {
|
|
99
|
-
if (!(!e.input || e.disabled)) return
|
|
99
|
+
if (!(!e.input || e.disabled)) return l.validation.registerInput(j, e.input, () => E(() => H() ?? null));
|
|
100
100
|
}), x(() => ({
|
|
101
101
|
explicit: D["aria-labelledby"],
|
|
102
102
|
fieldLabel: b.labelId(),
|
|
@@ -116,32 +116,32 @@ function N(e) {
|
|
|
116
116
|
t.id ||= R, W(t.id || void 0);
|
|
117
117
|
}), x(() => ({
|
|
118
118
|
checked: G(),
|
|
119
|
-
initialValue:
|
|
119
|
+
initialValue: l.validityData().initialValue,
|
|
120
120
|
name: X()
|
|
121
121
|
}), (e) => {
|
|
122
|
-
e.checked !==
|
|
123
|
-
y.clearError(e.name),
|
|
122
|
+
e.checked !== ke && (ke = e.checked, E(() => {
|
|
123
|
+
y.clearError(e.name), l.setDirty(e.checked !== e.initialValue), l.setFilled(e.checked), l.validation.change(e.checked);
|
|
124
124
|
}));
|
|
125
125
|
}), x(() => U(), (e) => {
|
|
126
|
-
if (e) return
|
|
126
|
+
if (e) return me(e, $);
|
|
127
|
+
}), se(() => {
|
|
128
|
+
l.setFilled(G()), H();
|
|
127
129
|
}), oe(() => {
|
|
128
|
-
|
|
129
|
-
}), ae(() => {
|
|
130
|
-
c.registerFieldControl(j, void 0);
|
|
130
|
+
l.registerFieldControl(j, void 0);
|
|
131
131
|
}), f(A, {
|
|
132
132
|
value: Q,
|
|
133
133
|
get children() {
|
|
134
134
|
return [
|
|
135
|
-
f(
|
|
136
|
-
ref: [((e) =>
|
|
135
|
+
f(Ce, h({
|
|
136
|
+
ref: [((e) => _e(e)), D.ref],
|
|
137
137
|
get id() {
|
|
138
|
-
return
|
|
138
|
+
return xe();
|
|
139
139
|
},
|
|
140
140
|
get class() {
|
|
141
|
-
return
|
|
141
|
+
return Se();
|
|
142
142
|
},
|
|
143
143
|
get style() {
|
|
144
|
-
return
|
|
144
|
+
return we();
|
|
145
145
|
},
|
|
146
146
|
get type() {
|
|
147
147
|
return K() ? "button" : void 0;
|
|
@@ -166,36 +166,36 @@ function N(e) {
|
|
|
166
166
|
return Y() ? "true" : void 0;
|
|
167
167
|
},
|
|
168
168
|
get "aria-labelledby"() {
|
|
169
|
-
return
|
|
169
|
+
return Ee();
|
|
170
170
|
},
|
|
171
171
|
get "aria-describedby"() {
|
|
172
|
-
return
|
|
172
|
+
return De();
|
|
173
173
|
},
|
|
174
174
|
get "aria-invalid"() {
|
|
175
175
|
return Q().valid === !1 && !q() ? "true" : void 0;
|
|
176
176
|
},
|
|
177
|
-
onClick:
|
|
178
|
-
onFocus:
|
|
179
|
-
onBlur:
|
|
180
|
-
onKeyDown:
|
|
181
|
-
onKeyUp:
|
|
182
|
-
onMouseDown:
|
|
183
|
-
onPointerDown:
|
|
184
|
-
},
|
|
177
|
+
onClick: je,
|
|
178
|
+
onFocus: Me,
|
|
179
|
+
onBlur: Ne,
|
|
180
|
+
onKeyDown: Pe,
|
|
181
|
+
onKeyUp: Fe,
|
|
182
|
+
onMouseDown: Ie,
|
|
183
|
+
onPointerDown: Le
|
|
184
|
+
}, Te, be)),
|
|
185
185
|
m(() => m(() => !!(!G() && X() && D.uncheckedValue !== void 0))() ? (() => {
|
|
186
|
-
var e = p(
|
|
187
|
-
return
|
|
186
|
+
var e = p(ue);
|
|
187
|
+
return ne(() => ({
|
|
188
188
|
e: D.form,
|
|
189
189
|
t: X(),
|
|
190
190
|
a: D.uncheckedValue,
|
|
191
191
|
o: q()
|
|
192
192
|
}), ({ e: t, t: n, a: r, o: i }, a) => {
|
|
193
|
-
t !== a?.e && _(e, "form", t), n !== a?.t && _(e, "name", n),
|
|
193
|
+
t !== a?.e && _(e, "form", t), n !== a?.t && _(e, "name", n), ie(e, "value", r), i !== a?.o && _(e, "disabled", i);
|
|
194
194
|
}), e;
|
|
195
195
|
})() : !G() && X() && D.uncheckedValue !== void 0),
|
|
196
196
|
(() => {
|
|
197
|
-
var e = p(
|
|
198
|
-
return
|
|
197
|
+
var e = p(le);
|
|
198
|
+
return re(() => [((e) => ve(e)), D.inputRef], e), v(e, h({
|
|
199
199
|
type: "checkbox",
|
|
200
200
|
get form() {
|
|
201
201
|
return D.form;
|
|
@@ -208,11 +208,11 @@ function N(e) {
|
|
|
208
208
|
},
|
|
209
209
|
tabindex: -1,
|
|
210
210
|
get style() {
|
|
211
|
-
return X() ?
|
|
211
|
+
return X() ? de : M;
|
|
212
212
|
},
|
|
213
213
|
"aria-hidden": "true",
|
|
214
214
|
get "aria-describedby"() {
|
|
215
|
-
return
|
|
215
|
+
return Oe();
|
|
216
216
|
},
|
|
217
217
|
get "aria-invalid"() {
|
|
218
218
|
return Q().valid === !1 && !q() ? "true" : void 0;
|
|
@@ -226,8 +226,8 @@ function N(e) {
|
|
|
226
226
|
get required() {
|
|
227
227
|
return Y();
|
|
228
228
|
},
|
|
229
|
-
onClick:
|
|
230
|
-
onFocus:
|
|
229
|
+
onClick: Ve,
|
|
230
|
+
onFocus: He
|
|
231
231
|
}, () => D.value === void 0 ? {} : { value: D.value }), !1), g(), e;
|
|
232
232
|
})()
|
|
233
233
|
];
|
|
@@ -240,7 +240,7 @@ function P(e) {
|
|
|
240
240
|
function F(e) {
|
|
241
241
|
e.preventBaseUIHandler();
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function fe(e) {
|
|
244
244
|
if (e.target !== e.currentTarget) return;
|
|
245
245
|
let t = I(e.currentTarget), n = e.key === "Enter", r = e.key === " ";
|
|
246
246
|
if (t || !n && !r) {
|
|
@@ -249,7 +249,7 @@ function de(e) {
|
|
|
249
249
|
}
|
|
250
250
|
e.defaultPrevented || (e.preventDefault(), n && (e.preventBaseUIHandler(), L(e.currentTarget, e)));
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function pe(e) {
|
|
253
253
|
e.target === e.currentTarget && !e.defaultPrevented && e.key === " " && (e.preventBaseUIHandler(), L(e.currentTarget, e));
|
|
254
254
|
}
|
|
255
255
|
function I(e) {
|
|
@@ -270,7 +270,7 @@ function L(e, t) {
|
|
|
270
270
|
metaKey: t.metaKey
|
|
271
271
|
}));
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function me(e, t) {
|
|
274
274
|
let n = (n) => {
|
|
275
275
|
n.target === e.form && queueMicrotask(t);
|
|
276
276
|
}, r = /* @__PURE__ */ new Set([e.ownerDocument, e.getRootNode()]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../tabs-
|
|
1
|
+
import { t as e } from "../tabs-DWiBDv8D.js";
|
|
2
2
|
export { e as Tabs };
|