@arcadeai/design-system 5.0.2 → 6.0.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/{clamp-DV0oJUnl.js → CSPContext-_3HefTUC.js} +1 -6
- package/dist/{DialogRoot-xodRxCJ6.js → DialogRoot-DuiSPdsZ.js} +1 -1
- package/dist/{DialogTrigger-BRWKaMYv.js → DialogTrigger-DGGP-2Oc.js} +109 -108
- package/dist/{FloatingPortalLite-e0IaokaG.js → FloatingPortalLite-D5nFwFgJ.js} +1 -1
- package/dist/ReactStore-C3H8e2ha.js +600 -0
- package/dist/{Toggle-waFXW8db.js → Toggle-BdxyK_Ln.js} +1 -1
- package/dist/{accordion-DimUia61.js → accordion-BP9Lgkg8.js} +18 -18
- package/dist/{alert-dialog-BiDZwtP2.js → alert-dialog-1bUE2clB.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/{avatar-B-lhJ-Gz.js → avatar-DbL6b01k.js} +4 -3
- package/dist/{checkbox-CZViOGvt.js → checkbox-DB9O_Iw9.js} +96 -85
- package/dist/clamp-BT4ayAnN.js +6 -0
- package/dist/{collapsible-DlF1q_cg.js → collapsible-DP7Fb-Lu.js} +17 -17
- package/dist/components/index.js +259 -251
- package/dist/components/ui/atoms/accordion.js +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +1 -1
- package/dist/components/ui/atoms/avatar.js +1 -1
- package/dist/components/ui/atoms/checkbox.d.ts +16 -2
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +2 -2
- package/dist/components/ui/atoms/clear-button.d.ts +13 -0
- package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/clear-button.js +23 -0
- package/dist/components/ui/atoms/collapsible.js +1 -1
- package/dist/components/ui/atoms/dialog.js +2 -2
- package/dist/components/ui/atoms/dropdown-menu.js +1 -1
- package/dist/components/ui/atoms/hover-card.js +1 -1
- package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
- package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
- package/dist/components/ui/atoms/icon-tile.js +25 -0
- package/dist/components/ui/atoms/index.d.ts +3 -1
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +210 -208
- package/dist/components/ui/atoms/input-group.js +1 -1
- package/dist/components/ui/atoms/input.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
- package/dist/components/ui/atoms/popover.js +1 -1
- package/dist/components/ui/atoms/progress.js +1 -1
- package/dist/components/ui/atoms/radio-group.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +1 -1
- package/dist/components/ui/atoms/scroll-button.js +1 -1
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
- package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
- package/dist/components/ui/atoms/select.js +1 -1
- package/dist/components/ui/atoms/sheet.js +2 -2
- package/dist/components/ui/atoms/sidebar.js +2 -2
- package/dist/components/ui/atoms/slider.js +1 -1
- package/dist/components/ui/atoms/switch.js +1 -1
- package/dist/components/ui/atoms/tabs.js +1 -1
- package/dist/components/ui/atoms/toggle-group.js +1 -1
- package/dist/components/ui/atoms/toggle.js +1 -1
- package/dist/components/ui/atoms/tooltip.js +1 -1
- package/dist/components/ui/blocks/demo.js +4 -4
- package/dist/components/ui/index.js +259 -251
- package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
- package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
- package/dist/components/ui/molecules/avatar-stack.js +91 -0
- package/dist/components/ui/molecules/callout.d.ts +20 -0
- package/dist/components/ui/molecules/callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/callout.js +39 -0
- package/dist/components/ui/molecules/chat-history-item.js +1 -1
- package/dist/components/ui/molecules/chip-body.d.ts +21 -0
- package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
- package/dist/components/ui/molecules/chip-body.js +21 -0
- package/dist/components/ui/molecules/client-secret-field.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +2 -2
- package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
- package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
- package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
- package/dist/components/ui/molecules/index.d.ts +19 -7
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +41 -35
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts +21 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/card-setup-button.js +34 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts +2 -0
- package/dist/components/ui/molecules/mcp-server-picker/constants.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/constants.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
- package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
- package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-callout.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +12 -6
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/selection-card-parts.js +28 -0
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts +3 -6
- package/dist/components/ui/molecules/mcp-server-picker/server-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/server-card.js +93 -108
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts +13 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/setup-callout.js +27 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts +5 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +49 -42
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
- package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
- package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
- package/dist/components/ui/molecules/mcp-server-picker/toolkit-group-header.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts +3 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +33 -31
- package/dist/components/ui/molecules/message.js +2 -2
- package/dist/components/ui/molecules/prompt-input.js +1 -1
- package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
- package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +1 -1
- package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
- package/dist/components/ui/molecules/tool-card.js +2 -2
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
- package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
- package/dist/components/ui/molecules/undo-toast.js +3 -0
- package/dist/components/ui/molecules/user-nav.js +2 -2
- package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
- package/dist/components/ui/organisms/mcp-server-picker.d.ts +6 -3
- package/dist/components/ui/organisms/mcp-server-picker.d.ts.map +1 -1
- package/dist/components/ui/organisms/mcp-server-picker.js +4 -4
- package/dist/{dropdown-menu-CWWN1cXs.js → dropdown-menu-ecggVuhu.js} +202 -199
- package/dist/{getPseudoElementBounds-D_dlkPnQ.js → getPseudoElementBounds-BOe22aYl.js} +3 -3
- package/dist/{hover-card-GELKDadU.js → hover-card-CGLPPPPP.js} +71 -70
- package/dist/{input-DZfZK6b1.js → input-DZTqcpe-.js} +1 -1
- package/dist/main.js +265 -257
- package/dist/metadata/oauth-providers.d.ts +2 -0
- package/dist/metadata/oauth-providers.d.ts.map +1 -1
- package/dist/metadata/oauth-providers.js +153 -141
- package/dist/{popover-Cne_hQUh.js → popover-CpLkQtT5.js} +129 -128
- package/dist/popupStateMapping-XiLS0Jku.js +643 -0
- package/dist/{progress-D71iUjvg.js → progress-BqG0PtAD.js} +1 -1
- package/dist/{radio-group-CTqA-p0w.js → radio-group-BpMluqfv.js} +8 -7
- package/dist/{safePolygon-os2F06tc.js → safePolygon-DmV1hDsw.js} +35 -34
- package/dist/{scroll-area-C0KbhRES.js → scroll-area-D7iOy7xj.js} +4 -3
- package/dist/{scrollEdges-CHZpP0us.js → scrollEdges-Dck9qFyQ.js} +1 -1
- package/dist/{select-RvAj5g6e.js → select-DFWNXxvZ.js} +179 -176
- package/dist/{slider-Bhn1ogwZ.js → slider-ClXWRpwI.js} +4 -3
- package/dist/{store-C-KXBzZ0.js → store-D7k1qIkZ.js} +23 -22
- package/dist/{switch-D8M0xvzp.js → switch-DlxZDt6o.js} +3 -3
- package/dist/{tabs-ttkDuwww.js → tabs-Cj3LY-7F.js} +9 -8
- package/dist/{toggle-group-CL_MBwuU.js → toggle-group-CmP4iHEJ.js} +1 -1
- package/dist/{tooltip-ZIywOFGf.js → tooltip-BUR7V5Aa.js} +197 -196
- package/dist/{ui-CttBuHXi.js → ui-46pgiw5T.js} +2 -2
- package/dist/undo-toast-Cf4T6ToX.js +898 -0
- package/dist/{useAnchoredPopupScrollLock-a2b_Frjv.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +1 -1
- package/dist/{useAriaLabelledBy-WyUZP7Yf.js → useAriaLabelledBy-DJZioWd6.js} +1 -1
- package/dist/useBaseUiId-CXSJgVcI.js +8 -0
- package/dist/{useCollapsiblePanel-B6XZh6zH.js → useCollapsiblePanel-BPbcE70S.js} +15 -14
- package/dist/{useFocus-DwJfNYN6.js → useFocus-B_SrhX9q.js} +10 -10
- package/dist/{useBaseUiId-voePHgyX.js → useId-Bzr7_bed.js} +1 -6
- package/dist/{useLabelableId-CC2YaILf.js → useLabelableId-9jrDGk5d.js} +1 -1
- package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
- package/dist/{useOpenInteractionType-DQhvPqO3.js → useOpenInteractionType-INvHftZi.js} +29 -28
- package/dist/{usePositioner-DkeyI5Le.js → usePositioner-CaLGGc-z.js} +98 -97
- package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
- package/dist/{useTriggerFocusGuards-Qi8iK-AK.js → useTriggerFocusGuards-Dlv8KvSm.js} +7 -7
- package/package.json +1 -1
- package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
- package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
- package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
- package/dist/popupStateMapping-C8W76brO.js +0 -1221
- package/dist/useOpenChangeComplete-Bs6gnxd9.js +0 -127
- /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { s as t, t as n, u as r } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as i } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as a } from "./useTransitionStatus-CCIoL5RH.js";
|
|
6
|
+
import { a as o, t as s } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
6
7
|
import { cn as c } from "./lib/utils.js";
|
|
7
8
|
import { n as l } from "./useTimeout-B0afjWAz.js";
|
|
8
9
|
import * as u from "react";
|
|
@@ -57,9 +58,9 @@ function g(n, { referrerPolicy: r, crossOrigin: i, sizes: a, srcSet: o }) {
|
|
|
57
58
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/avatar/image/AvatarImage.mjs
|
|
58
59
|
var _ = {
|
|
59
60
|
...m,
|
|
60
|
-
...
|
|
61
|
+
...o
|
|
61
62
|
}, v = /*#__PURE__*/ u.forwardRef(function(t, r) {
|
|
62
|
-
let { className:
|
|
63
|
+
let { className: o, render: c, onLoadingStatusChange: l, style: d, ...f } = t, { setImageLoadingStatus: m } = p(), h = g(f.src, f), v = h === "loaded", { mounted: y, transitionStatus: b, setMounted: x } = a(v), S = u.useRef(null), C = i((e) => {
|
|
63
64
|
l?.(e), m(e);
|
|
64
65
|
});
|
|
65
66
|
e(() => {
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
import { t as e } from "./useControlled-Bu1mahWG.js";
|
|
3
3
|
import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
4
4
|
import { f as n, l as r, o as i, r as a, s as o, t as s, u as c } from "./useRenderElement-BToElZ97.js";
|
|
5
|
-
import { t as l } from "./useBaseUiId-
|
|
5
|
+
import { t as l } from "./useBaseUiId-CXSJgVcI.js";
|
|
6
6
|
import { g as ee, t as te } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as ae } from "./
|
|
13
|
-
import {
|
|
14
|
-
import { t as ue } from "./
|
|
15
|
-
import { t as de } from "./
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
7
|
+
import { t as ne } from "./useTransitionStatus-CCIoL5RH.js";
|
|
8
|
+
import { a as u, t as re } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
9
|
+
import { l as d } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
10
|
+
import { t as f } from "./useButton-DjF6Owsn.js";
|
|
11
|
+
import { cn as p } from "./lib/utils.js";
|
|
12
|
+
import { n as ie, t as ae } from "./visuallyHidden-Cq5CW65k.js";
|
|
13
|
+
import { t as oe } from "./useValueChanged-26zHg3aX.js";
|
|
14
|
+
import { a as m, i as se, n as ce, r as le, t as ue } from "./LabelableContext-C6DIbcnY.js";
|
|
15
|
+
import { t as de } from "./FieldItemContext-C6kLzkCC.js";
|
|
16
|
+
import { t as fe } from "./useAriaLabelledBy-DJZioWd6.js";
|
|
17
|
+
import * as h from "react";
|
|
18
|
+
import { jsx as g, jsxs as pe } from "react/jsx-runtime";
|
|
19
|
+
import { CheckIcon as _, MinusIcon as v } from "lucide-react";
|
|
19
20
|
//#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/getDefaultFormSubmitter.mjs
|
|
20
|
-
function
|
|
21
|
+
function me(e) {
|
|
21
22
|
if (!e) return null;
|
|
22
23
|
for (let t of e.elements) {
|
|
23
24
|
let e = t.tagName;
|
|
@@ -30,95 +31,95 @@ function pe(e) {
|
|
|
30
31
|
}
|
|
31
32
|
//#endregion
|
|
32
33
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox/root/CheckboxRootDataAttributes.mjs
|
|
33
|
-
var
|
|
34
|
+
var y = /*#__PURE__*/ function(e) {
|
|
34
35
|
return e.checked = "data-checked", e.unchecked = "data-unchecked", e.indeterminate = "data-indeterminate", e.disabled = "data-disabled", e.readonly = "data-readonly", e.required = "data-required", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
35
36
|
}({});
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox/utils/useStateAttributesMapping.mjs
|
|
38
|
-
function
|
|
39
|
-
return
|
|
39
|
+
function he(e) {
|
|
40
|
+
return h.useMemo(() => ({
|
|
40
41
|
checked(t) {
|
|
41
|
-
return e.indeterminate ? {} : t ? { [
|
|
42
|
+
return e.indeterminate ? {} : t ? { [y.checked]: "" } : { [y.unchecked]: "" };
|
|
42
43
|
},
|
|
43
|
-
...
|
|
44
|
+
...m
|
|
44
45
|
}), [e.indeterminate]);
|
|
45
46
|
}
|
|
46
47
|
//#endregion
|
|
47
48
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox-group/CheckboxGroupContext.mjs
|
|
48
|
-
var
|
|
49
|
-
process.env.NODE_ENV !== "production" && (
|
|
50
|
-
function
|
|
51
|
-
let t =
|
|
49
|
+
var b = /*#__PURE__*/ h.createContext(void 0);
|
|
50
|
+
process.env.NODE_ENV !== "production" && (b.displayName = "CheckboxGroupContext");
|
|
51
|
+
function ge(e = !0) {
|
|
52
|
+
let t = h.useContext(b);
|
|
52
53
|
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? c(3) : "Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");
|
|
53
54
|
return t;
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox/root/CheckboxRootContext.mjs
|
|
57
|
-
var
|
|
58
|
-
process.env.NODE_ENV !== "production" && (
|
|
59
|
-
function
|
|
60
|
-
let e =
|
|
58
|
+
var x = /*#__PURE__*/ h.createContext(void 0);
|
|
59
|
+
process.env.NODE_ENV !== "production" && (x.displayName = "CheckboxRootContext");
|
|
60
|
+
function _e() {
|
|
61
|
+
let e = h.useContext(x);
|
|
61
62
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? c(14) : "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");
|
|
62
63
|
return e;
|
|
63
64
|
}
|
|
64
65
|
//#endregion
|
|
65
66
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox/root/CheckboxRoot.mjs
|
|
66
|
-
var
|
|
67
|
-
let { checked:
|
|
68
|
-
L ? V =
|
|
67
|
+
var ve = "data-parent", S = /*#__PURE__*/ h.forwardRef(function(c, ne) {
|
|
68
|
+
let { checked: u, className: re, defaultChecked: p = !1, "aria-labelledby": m, disabled: _ = !1, form: v, id: y, indeterminate: b = !1, inputRef: _e, name: S, onCheckedChange: C, parent: w = !1, readOnly: T = !1, render: ye, required: E = !1, uncheckedValue: D, value: O, nativeButton: k = !1, style: be, ...xe } = c, { clearErrors: Se } = ce(), { disabled: Ce, name: we, setDirty: Te, setFilled: A, setFocused: j, setTouched: Ee, state: M, validationMode: De, validityData: Oe, validation: ke } = se(), Ae = de(), { labelId: je, controlId: Me, registerControlId: N, getDescriptionProps: P } = ue(), F = ge(), I = F?.parent, L = I && F.allValues, R = Ce || Ae.disabled || F?.disabled || _, z = we ?? S, B = O ?? z, Ne = l(), Pe = l(), V = Me;
|
|
69
|
+
L ? V = w ? Pe : `${I.id}-${B}` : y && (V = y);
|
|
69
70
|
let H = {};
|
|
70
|
-
L && (
|
|
71
|
-
let { checked: Fe =
|
|
71
|
+
L && (w ? H = F.parent.getParentProps() : B && (H = F.parent.getChildProps(B)));
|
|
72
|
+
let { checked: Fe = u, indeterminate: Ie = b, onCheckedChange: Le, ...Re } = H, U = F?.value, ze = F?.setValue, W = F?.defaultValue, G = h.useRef(null), K = n(() => Symbol("checkbox-control")), q = h.useRef(!1), { getButtonProps: Be, buttonRef: Ve } = f({
|
|
72
73
|
disabled: R,
|
|
73
74
|
native: k
|
|
74
75
|
}), J = F?.validation ?? ke, [Y, He] = e({
|
|
75
|
-
controlled: B && U && !
|
|
76
|
-
default: B && W && !
|
|
76
|
+
controlled: B && U && !w ? U.includes(B) : Fe,
|
|
77
|
+
default: B && W && !w ? W.includes(B) : p,
|
|
77
78
|
name: "Checkbox",
|
|
78
79
|
state: "checked"
|
|
79
|
-
}), X = L ? !!Fe : Y, Z = L && Ie ||
|
|
80
|
+
}), X = L ? !!Fe : Y, Z = L && Ie || b;
|
|
80
81
|
t(() => {
|
|
81
82
|
N !== o && (q.current = !0, N(K.current, V));
|
|
82
83
|
}, [
|
|
83
84
|
V,
|
|
84
85
|
N,
|
|
85
86
|
K
|
|
86
|
-
]),
|
|
87
|
+
]), h.useEffect(() => {
|
|
87
88
|
let e = K.current;
|
|
88
89
|
return () => {
|
|
89
90
|
!q.current || N === o || (q.current = !1, N(e, void 0));
|
|
90
91
|
};
|
|
91
|
-
}, [N, K]),
|
|
92
|
-
let Q =
|
|
92
|
+
}, [N, K]), le(G, Ne, Y, void 0, !F && !R, S);
|
|
93
|
+
let Q = h.useRef(null), Ue = r(_e, Q, J.inputRef, J.registerInput), We = fe(m, je, Q, !k, V ?? void 0);
|
|
93
94
|
t(() => {
|
|
94
95
|
Q.current && (Q.current.indeterminate = Z, Y && A(!0));
|
|
95
96
|
}, [
|
|
96
97
|
Y,
|
|
97
98
|
Z,
|
|
98
99
|
A
|
|
99
|
-
]),
|
|
100
|
+
]), oe(Y, () => {
|
|
100
101
|
F || (Se(z), A(Y), Te(Y !== Oe.initialValue), J.change(Y));
|
|
101
102
|
});
|
|
102
103
|
let Ge = a({
|
|
103
104
|
checked: Y,
|
|
104
105
|
disabled: R,
|
|
105
|
-
form:
|
|
106
|
-
name:
|
|
106
|
+
form: v,
|
|
107
|
+
name: w ? void 0 : z,
|
|
107
108
|
id: k ? void 0 : V ?? void 0,
|
|
108
|
-
required:
|
|
109
|
+
required: E,
|
|
109
110
|
ref: Ue,
|
|
110
|
-
style: z ?
|
|
111
|
+
style: z ? ie : ae,
|
|
111
112
|
tabIndex: -1,
|
|
112
113
|
type: "checkbox",
|
|
113
114
|
"aria-hidden": !0,
|
|
114
115
|
onChange(e) {
|
|
115
116
|
if (e.nativeEvent.defaultPrevented) return;
|
|
116
|
-
if (
|
|
117
|
+
if (T) {
|
|
117
118
|
e.preventDefault();
|
|
118
119
|
return;
|
|
119
120
|
}
|
|
120
121
|
let t = e.currentTarget.checked, n = te(ee, e.nativeEvent);
|
|
121
|
-
if (
|
|
122
|
+
if (C?.(t, n), !n.isCanceled && (Le?.(t, n), !n.isCanceled && (He(t), B && U && ze && !w && !L))) {
|
|
122
123
|
let e = t ? [...U, B] : U.filter((e) => e !== B);
|
|
123
124
|
ze(e, n);
|
|
124
125
|
}
|
|
@@ -127,7 +128,7 @@ var _e = "data-parent", C = /*#__PURE__*/ g.forwardRef(function(c, u) {
|
|
|
127
128
|
G.current?.focus();
|
|
128
129
|
}
|
|
129
130
|
}, O === void 0 ? i : { value: (F ? Y && O : O) || "" }, P, (e) => J.getValidationProps(R, e));
|
|
130
|
-
|
|
131
|
+
h.useEffect(() => {
|
|
131
132
|
if (!I || !B) return;
|
|
132
133
|
let e = I.disabledStatesRef.current;
|
|
133
134
|
return e.set(B, R), () => {
|
|
@@ -138,26 +139,26 @@ var _e = "data-parent", C = /*#__PURE__*/ g.forwardRef(function(c, u) {
|
|
|
138
139
|
R,
|
|
139
140
|
B
|
|
140
141
|
]);
|
|
141
|
-
let $ =
|
|
142
|
+
let $ = h.useMemo(() => ({
|
|
142
143
|
...M,
|
|
143
144
|
checked: X,
|
|
144
145
|
disabled: R,
|
|
145
|
-
readOnly:
|
|
146
|
-
required:
|
|
146
|
+
readOnly: T,
|
|
147
|
+
required: E,
|
|
147
148
|
indeterminate: Z
|
|
148
149
|
}), [
|
|
149
150
|
M,
|
|
150
151
|
X,
|
|
151
152
|
R,
|
|
153
|
+
T,
|
|
152
154
|
E,
|
|
153
|
-
D,
|
|
154
155
|
Z
|
|
155
|
-
]), Ke =
|
|
156
|
+
]), Ke = he($), qe = s("span", c, {
|
|
156
157
|
state: $,
|
|
157
158
|
ref: [
|
|
158
159
|
Ve,
|
|
159
160
|
G,
|
|
160
|
-
|
|
161
|
+
ne,
|
|
161
162
|
F?.registerControlRef
|
|
162
163
|
],
|
|
163
164
|
props: [
|
|
@@ -165,10 +166,10 @@ var _e = "data-parent", C = /*#__PURE__*/ g.forwardRef(function(c, u) {
|
|
|
165
166
|
id: k ? V ?? void 0 : Ne,
|
|
166
167
|
role: "checkbox",
|
|
167
168
|
"aria-checked": Z ? "mixed" : X,
|
|
168
|
-
"aria-readonly":
|
|
169
|
-
"aria-required":
|
|
169
|
+
"aria-readonly": T || void 0,
|
|
170
|
+
"aria-required": E || void 0,
|
|
170
171
|
"aria-labelledby": We,
|
|
171
|
-
[
|
|
172
|
+
[ve]: w ? "" : void 0,
|
|
172
173
|
onFocus() {
|
|
173
174
|
R || j(!0);
|
|
174
175
|
},
|
|
@@ -183,15 +184,15 @@ var _e = "data-parent", C = /*#__PURE__*/ g.forwardRef(function(c, u) {
|
|
|
183
184
|
o = !0, i.call(e);
|
|
184
185
|
}, r.preventDefault = () => {
|
|
185
186
|
o = !0, a.call(r);
|
|
186
|
-
}, a.call(r),
|
|
187
|
-
e.preventDefault = i, r.preventDefault = a, o ||
|
|
187
|
+
}, a.call(r), d(n).queueMicrotask(() => {
|
|
188
|
+
e.preventDefault = i, r.preventDefault = a, o || me(t)?.click();
|
|
188
189
|
});
|
|
189
190
|
},
|
|
190
191
|
onClick(e) {
|
|
191
|
-
if (
|
|
192
|
+
if (T || R) return;
|
|
192
193
|
e.preventDefault();
|
|
193
194
|
let t = Q.current;
|
|
194
|
-
t && t.dispatchEvent(new (
|
|
195
|
+
t && t.dispatchEvent(new (d(t)).PointerEvent("click", {
|
|
195
196
|
bubbles: !0,
|
|
196
197
|
shiftKey: e.shiftKey,
|
|
197
198
|
ctrlKey: e.ctrlKey,
|
|
@@ -208,66 +209,76 @@ var _e = "data-parent", C = /*#__PURE__*/ g.forwardRef(function(c, u) {
|
|
|
208
209
|
],
|
|
209
210
|
stateAttributesMapping: Ke
|
|
210
211
|
});
|
|
211
|
-
return /*#__PURE__*/
|
|
212
|
+
return /*#__PURE__*/ pe(x.Provider, {
|
|
212
213
|
value: $,
|
|
213
214
|
children: [
|
|
214
215
|
qe,
|
|
215
|
-
!Y && !F && z && !
|
|
216
|
+
!Y && !F && z && !w && D !== void 0 && /*#__PURE__*/ g("input", {
|
|
216
217
|
type: "hidden",
|
|
217
|
-
form:
|
|
218
|
+
form: v,
|
|
218
219
|
name: z,
|
|
219
|
-
value:
|
|
220
|
+
value: D,
|
|
220
221
|
disabled: R
|
|
221
222
|
}),
|
|
222
|
-
/*#__PURE__*/
|
|
223
|
+
/*#__PURE__*/ g("input", {
|
|
223
224
|
...Ge,
|
|
224
225
|
suppressHydrationWarning: !0
|
|
225
226
|
})
|
|
226
227
|
]
|
|
227
228
|
});
|
|
228
229
|
});
|
|
229
|
-
process.env.NODE_ENV !== "production" && (
|
|
230
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "CheckboxRoot");
|
|
230
231
|
//#endregion
|
|
231
232
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/checkbox/indicator/CheckboxIndicator.mjs
|
|
232
|
-
var
|
|
233
|
-
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, c =
|
|
233
|
+
var C = /*#__PURE__*/ h.forwardRef(function(e, t) {
|
|
234
|
+
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, c = _e(), l = c.checked || c.indeterminate, { mounted: ee, transitionStatus: te, setMounted: d } = ne(l), f = h.useRef(null), p = {
|
|
234
235
|
...c,
|
|
235
236
|
transitionStatus: te
|
|
236
237
|
};
|
|
237
|
-
|
|
238
|
+
re({
|
|
238
239
|
open: l,
|
|
239
|
-
ref:
|
|
240
|
+
ref: f,
|
|
240
241
|
onComplete() {
|
|
241
|
-
l ||
|
|
242
|
+
l || d(!1);
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
|
-
let
|
|
245
|
-
...
|
|
245
|
+
let ie = {
|
|
246
|
+
...he(c),
|
|
246
247
|
...u,
|
|
247
|
-
...
|
|
248
|
-
},
|
|
249
|
-
ref: [t,
|
|
250
|
-
state:
|
|
251
|
-
stateAttributesMapping:
|
|
248
|
+
...m
|
|
249
|
+
}, ae = a || ee, oe = s("span", e, {
|
|
250
|
+
ref: [t, f],
|
|
251
|
+
state: p,
|
|
252
|
+
stateAttributesMapping: ie,
|
|
252
253
|
props: o
|
|
253
254
|
});
|
|
254
|
-
return
|
|
255
|
+
return ae ? oe : null;
|
|
255
256
|
});
|
|
256
|
-
process.env.NODE_ENV !== "production" && (
|
|
257
|
+
process.env.NODE_ENV !== "production" && (C.displayName = "CheckboxIndicator");
|
|
257
258
|
//#endregion
|
|
258
259
|
//#region lib/components/ui/atoms/checkbox.tsx
|
|
259
|
-
function
|
|
260
|
-
return /* @__PURE__ */
|
|
261
|
-
className:
|
|
260
|
+
function w({ className: e, indeterminate: t, ...n }) {
|
|
261
|
+
return /* @__PURE__ */ g(S, {
|
|
262
|
+
className: p("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input outline-none transition-colors after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 group-has-disabled/field:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary data-disabled:data-checked:border-muted-foreground data-disabled:data-indeterminate:border-muted-foreground data-disabled:data-checked:bg-muted-foreground data-disabled:data-indeterminate:bg-muted-foreground data-disabled:cursor-not-allowed data-checked:border-primary data-indeterminate:border-primary data-checked:bg-primary data-indeterminate:bg-primary data-checked:text-primary-foreground data-indeterminate:text-primary-foreground data-disabled:opacity-50 dark:bg-input/30 dark:data-disabled:data-checked:bg-muted-foreground dark:data-disabled:data-indeterminate:bg-muted-foreground dark:data-checked:bg-primary dark:data-indeterminate:bg-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
262
263
|
"data-slot": "checkbox",
|
|
263
264
|
indeterminate: t,
|
|
264
265
|
...n,
|
|
265
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: /* @__PURE__ */ g(C, {
|
|
266
267
|
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
267
268
|
"data-slot": "checkbox-indicator",
|
|
268
|
-
children:
|
|
269
|
+
children: g(t ? v : _, {})
|
|
269
270
|
})
|
|
270
271
|
});
|
|
271
272
|
}
|
|
273
|
+
function T({ checked: e = !1, indeterminate: t = !1, className: n }) {
|
|
274
|
+
let r = e || t, i = "idle", a = null;
|
|
275
|
+
return t ? (i = "indeterminate", a = /* @__PURE__ */ g(v, {})) : e && (i = "checked", a = /* @__PURE__ */ g(_, {})), /* @__PURE__ */ g("span", {
|
|
276
|
+
"aria-hidden": !0,
|
|
277
|
+
className: p("flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors [&_svg]:size-3.5", r ? "border-primary bg-primary text-primary-foreground" : "border-input bg-background dark:bg-input/30", n),
|
|
278
|
+
"data-slot": "checkbox-visual",
|
|
279
|
+
"data-status": i,
|
|
280
|
+
children: a
|
|
281
|
+
});
|
|
282
|
+
}
|
|
272
283
|
//#endregion
|
|
273
|
-
export { T as t };
|
|
284
|
+
export { T as n, w as t };
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { t as e } from "./useIsoLayoutEffect-4LGv3HzC.js";
|
|
3
3
|
import { d as t, i as n, t as r } from "./useRenderElement-BToElZ97.js";
|
|
4
4
|
import { t as i } from "./useStableCallback-CrM0Nb2q.js";
|
|
5
|
-
import { a } from "./
|
|
6
|
-
import { a as
|
|
5
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "./useCollapsiblePanel-BPbcE70S.js";
|
|
6
|
+
import { a as d } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
7
7
|
import { t as f } from "./useButton-DjF6Owsn.js";
|
|
8
8
|
import { cn as p } from "./lib/utils.js";
|
|
9
9
|
import * as m from "react";
|
|
10
10
|
import { jsx as h } from "react/jsx-runtime";
|
|
11
11
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/collapsible/root/stateAttributesMapping.mjs
|
|
12
12
|
var g = {
|
|
13
|
-
...
|
|
14
|
-
...
|
|
13
|
+
...s,
|
|
14
|
+
...d
|
|
15
15
|
}, _ = /*#__PURE__*/ m.forwardRef(function(e, t) {
|
|
16
|
-
let { render: n, className: a, defaultOpen:
|
|
16
|
+
let { render: n, className: a, defaultOpen: s = !1, disabled: l = !1, onOpenChange: u, open: d, style: f, ...p } = e, _ = i(u), v = c({
|
|
17
17
|
open: d,
|
|
18
|
-
defaultOpen:
|
|
18
|
+
defaultOpen: s,
|
|
19
19
|
onOpenChange: _,
|
|
20
|
-
disabled:
|
|
20
|
+
disabled: l
|
|
21
21
|
}), y = m.useMemo(() => ({
|
|
22
22
|
open: v.open,
|
|
23
23
|
disabled: v.disabled,
|
|
@@ -40,7 +40,7 @@ var g = {
|
|
|
40
40
|
props: p,
|
|
41
41
|
stateAttributesMapping: g
|
|
42
42
|
});
|
|
43
|
-
return /*#__PURE__*/ h(
|
|
43
|
+
return /*#__PURE__*/ h(o.Provider, {
|
|
44
44
|
value: b,
|
|
45
45
|
children: x
|
|
46
46
|
});
|
|
@@ -49,10 +49,10 @@ process.env.NODE_ENV !== "production" && (_.displayName = "CollapsibleRoot");
|
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/collapsible/trigger/CollapsibleTrigger.mjs
|
|
51
51
|
var v = {
|
|
52
|
-
...
|
|
53
|
-
...
|
|
52
|
+
...l,
|
|
53
|
+
...d
|
|
54
54
|
}, y = /*#__PURE__*/ m.forwardRef(function(e, t) {
|
|
55
|
-
let { panelId: n, open: i, handleTrigger:
|
|
55
|
+
let { panelId: n, open: i, handleTrigger: o, state: s, disabled: c } = a(), { className: l, disabled: u = c, render: d, nativeButton: p = !0, style: m, ...h } = e, { getButtonProps: g, buttonRef: _ } = f({
|
|
56
56
|
disabled: u,
|
|
57
57
|
focusableWhenDisabled: !0,
|
|
58
58
|
native: p
|
|
@@ -64,7 +64,7 @@ var v = {
|
|
|
64
64
|
{
|
|
65
65
|
"aria-controls": i ? n : void 0,
|
|
66
66
|
"aria-expanded": i,
|
|
67
|
-
onClick:
|
|
67
|
+
onClick: o
|
|
68
68
|
},
|
|
69
69
|
h,
|
|
70
70
|
g
|
|
@@ -77,19 +77,19 @@ process.env.NODE_ENV !== "production" && (y.displayName = "CollapsibleTrigger");
|
|
|
77
77
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/collapsible/panel/CollapsiblePanelCssVars.mjs
|
|
78
78
|
var b = /*#__PURE__*/ function(e) {
|
|
79
79
|
return e.collapsiblePanelHeight = "--collapsible-panel-height", e.collapsiblePanelWidth = "--collapsible-panel-width", e;
|
|
80
|
-
}({}), x = /*#__PURE__*/ m.forwardRef(function(i,
|
|
81
|
-
let { className: s, hiddenUntilFound: c, keepMounted: l, render:
|
|
80
|
+
}({}), x = /*#__PURE__*/ m.forwardRef(function(i, o) {
|
|
81
|
+
let { className: s, hiddenUntilFound: c, keepMounted: l, render: d, id: f, style: p, ...m } = i;
|
|
82
82
|
process.env.NODE_ENV !== "production" && e(() => {
|
|
83
83
|
c && l === !1 && t("The `keepMounted={false}` prop on `Collapsible.Panel` is ignored when `hiddenUntilFound` is enabled, since the panel must remain mounted while closed.");
|
|
84
84
|
}, [c, l]);
|
|
85
|
-
let { mounted: h, onOpenChange: _, open: v, panelId: y, setMounted: x, setPanelIdState: S, setOpen: C, state: w, transitionStatus: T } =
|
|
85
|
+
let { mounted: h, onOpenChange: _, open: v, panelId: y, setMounted: x, setPanelIdState: S, setOpen: C, state: w, transitionStatus: T } = a(), E = c ?? !1, D = l ?? !1;
|
|
86
86
|
e(() => {
|
|
87
87
|
if (f) return S(f), () => {
|
|
88
88
|
S(void 0);
|
|
89
89
|
};
|
|
90
90
|
}, [f, S]);
|
|
91
|
-
let { height: O, props: k, ref: A, shouldPreventOpenAnimation: j, shouldRender: M, transitionStatus: N, width: P } =
|
|
92
|
-
externalRef:
|
|
91
|
+
let { height: O, props: k, ref: A, shouldPreventOpenAnimation: j, shouldRender: M, transitionStatus: N, width: P } = u({
|
|
92
|
+
externalRef: o,
|
|
93
93
|
hiddenUntilFound: E,
|
|
94
94
|
id: y,
|
|
95
95
|
keepMounted: D,
|