@arcadeai/design-system 5.0.2 → 5.3.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 +257 -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 +257 -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 +14 -6
- package/dist/components/ui/molecules/index.d.ts.map +1 -1
- package/dist/components/ui/molecules/index.js +39 -35
- 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/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.js +1 -1
- package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
- 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/unoptimized-match-card.js +1 -1
- 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/{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 +263 -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
|
@@ -6,38 +6,41 @@ import { t as l } from "./useStableCallback-CrM0Nb2q.js";
|
|
|
6
6
|
import { n as u, t as d } from "./useCompositeListItem-C8B8UyMD.js";
|
|
7
7
|
import { t as f } from "./CompositeList-BUPONQmB.js";
|
|
8
8
|
import { t as p } from "./DirectionContext-OzWG1tsQ.js";
|
|
9
|
-
import { t as m } from "./useBaseUiId-
|
|
9
|
+
import { t as m } from "./useBaseUiId-CXSJgVcI.js";
|
|
10
10
|
import { C as h, f as g, g as _, r as v, t as y } from "./createBaseUIEventDetails-C_dwdqj4.js";
|
|
11
11
|
import { n as b } from "./useAnimationFrame-jkCXMP_8.js";
|
|
12
|
-
import {
|
|
12
|
+
import { t as x } from "./useTransitionStatus-CCIoL5RH.js";
|
|
13
|
+
import { a as S, t as C } from "./useOpenChangeComplete-CVIwfcpl.js";
|
|
13
14
|
import { l as w } from "./floating-ui.utils.dom-5U5b4xPf.js";
|
|
14
15
|
import { t as T } from "./useButton-DjF6Owsn.js";
|
|
15
16
|
import { t as E } from "./addEventListener-BlQH_qk1.js";
|
|
16
17
|
import { t as ee } from "./useValueAsRef-CfO5zn2c.js";
|
|
17
18
|
import { t as te } from "./owner-CyZnQOKt.js";
|
|
18
19
|
import { cn as D } from "./lib/utils.js";
|
|
19
|
-
import {
|
|
20
|
-
import { A as
|
|
21
|
-
import { t as
|
|
22
|
-
import { n as z } from "./
|
|
23
|
-
import {
|
|
20
|
+
import { S as O, a as ne, i as k, j as A, r as j, s as M } from "./popupStateMapping-XiLS0Jku.js";
|
|
21
|
+
import { A as re, w as N } from "./composite-B-tEa-Zg.js";
|
|
22
|
+
import { t as P } from "./engine-ChH4dTze.js";
|
|
23
|
+
import { n as F, o as I, p as L, r as R, s as z } from "./ReactStore-C3H8e2ha.js";
|
|
24
|
+
import { n as ie } from "./useTimeout-B0afjWAz.js";
|
|
25
|
+
import { a as ae, i as oe, r as se, t as ce } from "./useOpenInteractionType-INvHftZi.js";
|
|
24
26
|
import { n as B } from "./shadowDom-BACsbimN.js";
|
|
25
27
|
import { r as V } from "./shim-BX-2V17R.js";
|
|
26
28
|
import { n as H, t as U } from "./visuallyHidden-Cq5CW65k.js";
|
|
27
|
-
import { a as le, n as ue, o as de, r as W, t as fe } from "./usePositioner-
|
|
28
|
-
import { n as pe, r as me, t as G } from "./getPseudoElementBounds-
|
|
29
|
+
import { a as le, n as ue, o as de, r as W, t as fe } from "./usePositioner-CaLGGc-z.js";
|
|
30
|
+
import { n as pe, r as me, t as G } from "./getPseudoElementBounds-BOe22aYl.js";
|
|
29
31
|
import { o as K } from "./composite-COXvAbcT.js";
|
|
30
32
|
import { t as he } from "./inertValue-BhczR0H5.js";
|
|
31
33
|
import { t as ge } from "./useValueChanged-26zHg3aX.js";
|
|
32
|
-
import { t as q } from "./useAnchoredPopupScrollLock-
|
|
34
|
+
import { t as q } from "./useAnchoredPopupScrollLock-CnoPUwXv.js";
|
|
33
35
|
import { t as _e } from "./ToolbarRootContext-CDm74ob9.js";
|
|
34
36
|
import { a as J, i as ve, n as ye, r as be, t as xe } from "./LabelableContext-C6DIbcnY.js";
|
|
35
37
|
import { t as Se } from "./Separator-CJ3Gn6wf.js";
|
|
36
38
|
import { t as Ce } from "./isElementDisabled-C1rd9-Ym.js";
|
|
37
|
-
import { t as we } from "./useLabelableId-
|
|
39
|
+
import { t as we } from "./useLabelableId-9jrDGk5d.js";
|
|
38
40
|
import { t as Te } from "./serializeValue-CRwtWeFH.js";
|
|
39
|
-
import { n as Ee, r as De, t as Oe } from "./scrollEdges-
|
|
40
|
-
import {
|
|
41
|
+
import { n as Ee, r as De, t as Oe } from "./scrollEdges-Dck9qFyQ.js";
|
|
42
|
+
import { t as ke } from "./CSPContext-_3HefTUC.js";
|
|
43
|
+
import { t as Ae } from "./clamp-BT4ayAnN.js";
|
|
41
44
|
import { n as je, r as Me } from "./resolveAriaLabelledBy-ChNE6KfK.js";
|
|
42
45
|
import * as Y from "react";
|
|
43
46
|
import { jsx as X, jsxs as Ne } from "react/jsx-runtime";
|
|
@@ -136,49 +139,49 @@ function Ze(e, t, n) {
|
|
|
136
139
|
//#endregion
|
|
137
140
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/store.mjs
|
|
138
141
|
var Q = {
|
|
139
|
-
id:
|
|
140
|
-
labelId:
|
|
141
|
-
modal:
|
|
142
|
-
multiple:
|
|
143
|
-
items:
|
|
144
|
-
itemToStringLabel:
|
|
145
|
-
itemToStringValue:
|
|
146
|
-
isItemEqualToValue:
|
|
147
|
-
value:
|
|
148
|
-
hasSelectedValue:
|
|
142
|
+
id: I((e) => e.id),
|
|
143
|
+
labelId: I((e) => e.labelId),
|
|
144
|
+
modal: I((e) => e.modal),
|
|
145
|
+
multiple: I((e) => e.multiple),
|
|
146
|
+
items: I((e) => e.items),
|
|
147
|
+
itemToStringLabel: I((e) => e.itemToStringLabel),
|
|
148
|
+
itemToStringValue: I((e) => e.itemToStringValue),
|
|
149
|
+
isItemEqualToValue: I((e) => e.isItemEqualToValue),
|
|
150
|
+
value: I((e) => e.value),
|
|
151
|
+
hasSelectedValue: I((e) => {
|
|
149
152
|
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
150
153
|
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : Ye(t, r) !== "";
|
|
151
154
|
}),
|
|
152
|
-
hasNullItemLabel:
|
|
153
|
-
open:
|
|
154
|
-
mounted:
|
|
155
|
-
forceMount:
|
|
156
|
-
transitionStatus:
|
|
157
|
-
openMethod:
|
|
158
|
-
activeIndex:
|
|
159
|
-
selectedIndex:
|
|
160
|
-
isActive:
|
|
161
|
-
isSelected:
|
|
155
|
+
hasNullItemLabel: I((e, t) => t ? qe(e.items) : !1),
|
|
156
|
+
open: I((e) => e.open),
|
|
157
|
+
mounted: I((e) => e.mounted),
|
|
158
|
+
forceMount: I((e) => e.forceMount),
|
|
159
|
+
transitionStatus: I((e) => e.transitionStatus),
|
|
160
|
+
openMethod: I((e) => e.openMethod),
|
|
161
|
+
activeIndex: I((e) => e.activeIndex),
|
|
162
|
+
selectedIndex: I((e) => e.selectedIndex),
|
|
163
|
+
isActive: I((e, t) => e.activeIndex === t),
|
|
164
|
+
isSelected: I((e, t) => {
|
|
162
165
|
let n = e.isItemEqualToValue, r = e.value;
|
|
163
166
|
return e.multiple ? Array.isArray(r) && r.some((e) => He(t, e, n)) : He(t, r, n);
|
|
164
167
|
}),
|
|
165
|
-
isSelectedByFocus:
|
|
166
|
-
popupProps:
|
|
167
|
-
triggerProps:
|
|
168
|
-
triggerElement:
|
|
169
|
-
positionerElement:
|
|
170
|
-
listElement:
|
|
171
|
-
popupSide:
|
|
172
|
-
scrollUpArrowVisible:
|
|
173
|
-
scrollDownArrowVisible:
|
|
174
|
-
hasScrollArrows:
|
|
168
|
+
isSelectedByFocus: I((e, t) => e.selectedIndex === t),
|
|
169
|
+
popupProps: I((e) => e.popupProps),
|
|
170
|
+
triggerProps: I((e) => e.triggerProps),
|
|
171
|
+
triggerElement: I((e) => e.triggerElement),
|
|
172
|
+
positionerElement: I((e) => e.positionerElement),
|
|
173
|
+
listElement: I((e) => e.listElement),
|
|
174
|
+
popupSide: I((e) => e.popupSide),
|
|
175
|
+
scrollUpArrowVisible: I((e) => e.scrollUpArrowVisible),
|
|
176
|
+
scrollDownArrowVisible: I((e) => e.scrollDownArrowVisible),
|
|
177
|
+
hasScrollArrows: I((e) => e.hasScrollArrows)
|
|
175
178
|
};
|
|
176
179
|
//#endregion
|
|
177
180
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/root/SelectRoot.mjs
|
|
178
181
|
function $(s) {
|
|
179
|
-
let { id: c, value: u, defaultValue: d = null, onValueChange: f, open: p, defaultOpen: m = !1, onOpenChange: h, name: g, form: v, autoComplete: b, disabled:
|
|
182
|
+
let { id: c, value: u, defaultValue: d = null, onValueChange: f, open: p, defaultOpen: m = !1, onOpenChange: h, name: g, form: v, autoComplete: b, disabled: S = !1, readOnly: w = !1, required: T = !1, modal: E = !0, actionsRef: te, inputRef: D, onOpenChangeComplete: ne, items: k, multiple: j = !1, itemToStringLabel: re, itemToStringValue: N, isItemEqualToValue: P = Ve, highlightItemOnHover: I = !0, children: L } = s, { clearErrors: z } = ye(), { setDirty: ie, setTouched: ae, setFocused: se, validityData: B, setFilled: V, name: ue, disabled: de, validation: W, validationMode: fe } = ve(), G = we({ id: c }), K = de || S, he = ue ?? g, [q, _e] = e({
|
|
180
183
|
controlled: u,
|
|
181
|
-
default:
|
|
184
|
+
default: j ? d ?? n : d,
|
|
182
185
|
name: "Select",
|
|
183
186
|
state: "value"
|
|
184
187
|
}), [J, xe] = e({
|
|
@@ -190,14 +193,14 @@ function $(s) {
|
|
|
190
193
|
allowSelectedMouseUp: !1,
|
|
191
194
|
allowUnselectedMouseUp: !1,
|
|
192
195
|
dragY: 0
|
|
193
|
-
}), Ue = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } =
|
|
196
|
+
}), Ue = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = x(J), { openMethod: Xe, triggerProps: Ze } = ce(J), $ = r(() => new F({
|
|
194
197
|
id: G,
|
|
195
198
|
labelId: void 0,
|
|
196
199
|
modal: E,
|
|
197
|
-
multiple:
|
|
198
|
-
itemToStringLabel:
|
|
199
|
-
itemToStringValue:
|
|
200
|
-
isItemEqualToValue:
|
|
200
|
+
multiple: j,
|
|
201
|
+
itemToStringLabel: re,
|
|
202
|
+
itemToStringValue: N,
|
|
203
|
+
isItemEqualToValue: P,
|
|
201
204
|
value: q,
|
|
202
205
|
open: J,
|
|
203
206
|
mounted: Ge,
|
|
@@ -216,51 +219,51 @@ function $(s) {
|
|
|
216
219
|
scrollUpArrowVisible: !1,
|
|
217
220
|
scrollDownArrowVisible: !1,
|
|
218
221
|
hasScrollArrows: !1
|
|
219
|
-
})).current, Qe =
|
|
220
|
-
|
|
222
|
+
})).current, Qe = R($, Q.activeIndex), $e = R($, Q.selectedIndex), et = R($, Q.triggerElement), tt = R($, Q.positionerElement), nt = Le(Xe), rt = Xe ?? nt ?? null, it = Y.useMemo(() => j ? "" : Ye(q, N), [
|
|
223
|
+
j,
|
|
221
224
|
q,
|
|
222
|
-
|
|
223
|
-
]), at = Y.useMemo(() =>
|
|
224
|
-
|
|
225
|
+
N
|
|
226
|
+
]), at = Y.useMemo(() => j && Array.isArray(q) ? q.map((e) => Ye(e, N)) : Ye(q, N), [
|
|
227
|
+
j,
|
|
225
228
|
q,
|
|
226
|
-
|
|
229
|
+
N
|
|
227
230
|
]);
|
|
228
231
|
be(ee($.state.triggerElement), G, q, l(() => at), !K, g);
|
|
229
|
-
let ot = Y.useRef(q), st =
|
|
232
|
+
let ot = Y.useRef(q), st = j ? Array.isArray(q) && q.length > 0 : q != null && Ye(q, N) !== "";
|
|
230
233
|
t(() => {
|
|
231
234
|
q !== ot.current && $.set("forceMount", !0);
|
|
232
235
|
}, [$, q]), t(() => {
|
|
233
236
|
V(st);
|
|
234
237
|
}, [st, V]), t(function() {
|
|
235
238
|
let e = Pe.current, t;
|
|
236
|
-
if (
|
|
239
|
+
if (j) {
|
|
237
240
|
let n = Array.isArray(q) ? q : [];
|
|
238
241
|
if (n.length === 0) t = null;
|
|
239
242
|
else {
|
|
240
|
-
let r = n[n.length - 1], i = We(e, r,
|
|
243
|
+
let r = n[n.length - 1], i = We(e, r, P);
|
|
241
244
|
t = i === -1 ? null : i;
|
|
242
245
|
}
|
|
243
246
|
} else {
|
|
244
|
-
let n = We(e, q,
|
|
247
|
+
let n = We(e, q, P);
|
|
245
248
|
t = n === -1 ? null : n;
|
|
246
249
|
}
|
|
247
250
|
t === null && (Z.current = null), !J && $.set("selectedIndex", t);
|
|
248
251
|
}, [
|
|
249
252
|
st,
|
|
250
|
-
|
|
253
|
+
j,
|
|
251
254
|
J,
|
|
252
255
|
q,
|
|
253
256
|
Pe,
|
|
254
|
-
|
|
257
|
+
P,
|
|
255
258
|
$,
|
|
256
259
|
Z
|
|
257
260
|
]);
|
|
258
261
|
function ct(e) {
|
|
259
262
|
let t = B.initialValue;
|
|
260
|
-
return Array.isArray(e) && Array.isArray(t) ? !Me(e, t, (e, t) => He(e, t,
|
|
263
|
+
return Array.isArray(e) && Array.isArray(t) ? !Me(e, t, (e, t) => He(e, t, P)) : e !== t;
|
|
261
264
|
}
|
|
262
265
|
ge(q, () => {
|
|
263
|
-
|
|
266
|
+
z(he), ie(ct(q)), W.change(q);
|
|
264
267
|
});
|
|
265
268
|
let lt = l((e, t) => {
|
|
266
269
|
h?.(e, t), !t.isCanceled && (xe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (ae(!0), se(!1), fe === "onBlur" && W.commit(q)));
|
|
@@ -268,7 +271,7 @@ function $(s) {
|
|
|
268
271
|
Ke(!1), $.update({
|
|
269
272
|
activeIndex: null,
|
|
270
273
|
openMethod: null
|
|
271
|
-
}),
|
|
274
|
+
}), ne?.(!1);
|
|
272
275
|
});
|
|
273
276
|
C({
|
|
274
277
|
enabled: !te,
|
|
@@ -295,7 +298,7 @@ function $(s) {
|
|
|
295
298
|
}), mt = oe(pt, {
|
|
296
299
|
enabled: !w && !K,
|
|
297
300
|
event: "mousedown"
|
|
298
|
-
}), ht =
|
|
301
|
+
}), ht = O(pt), gt = me(pt, {
|
|
299
302
|
enabled: !w && !K,
|
|
300
303
|
listRef: Se,
|
|
301
304
|
activeIndex: Qe,
|
|
@@ -304,9 +307,9 @@ function $(s) {
|
|
|
304
307
|
onNavigate(e) {
|
|
305
308
|
e === null && !J || $.set("activeIndex", e);
|
|
306
309
|
},
|
|
307
|
-
focusItemOnHover:
|
|
310
|
+
focusItemOnHover: I
|
|
308
311
|
}), _t = pe(pt, {
|
|
309
|
-
enabled: !w && !K && (J || !
|
|
312
|
+
enabled: !w && !K && (J || !j),
|
|
310
313
|
listRef: Te,
|
|
311
314
|
activeIndex: Qe,
|
|
312
315
|
selectedIndex: $e,
|
|
@@ -327,12 +330,12 @@ function $(s) {
|
|
|
327
330
|
ht.reference,
|
|
328
331
|
Ze,
|
|
329
332
|
G
|
|
330
|
-
]), yt = Y.useMemo(() => o(
|
|
333
|
+
]), yt = Y.useMemo(() => o(M, _t.floating, gt.floating, ht.floating), [
|
|
331
334
|
_t.floating,
|
|
332
335
|
gt.floating,
|
|
333
336
|
ht.floating
|
|
334
337
|
]), bt = gt.item ?? a;
|
|
335
|
-
|
|
338
|
+
A(() => {
|
|
336
339
|
$.update({
|
|
337
340
|
popupProps: yt,
|
|
338
341
|
triggerProps: vt
|
|
@@ -341,7 +344,7 @@ function $(s) {
|
|
|
341
344
|
$.update({
|
|
342
345
|
id: G,
|
|
343
346
|
modal: E,
|
|
344
|
-
multiple:
|
|
347
|
+
multiple: j,
|
|
345
348
|
value: q,
|
|
346
349
|
open: J,
|
|
347
350
|
mounted: Ge,
|
|
@@ -349,16 +352,16 @@ function $(s) {
|
|
|
349
352
|
popupProps: yt,
|
|
350
353
|
triggerProps: vt,
|
|
351
354
|
items: k,
|
|
352
|
-
itemToStringLabel:
|
|
353
|
-
itemToStringValue:
|
|
354
|
-
isItemEqualToValue:
|
|
355
|
+
itemToStringLabel: re,
|
|
356
|
+
itemToStringValue: N,
|
|
357
|
+
isItemEqualToValue: P,
|
|
355
358
|
openMethod: rt
|
|
356
359
|
});
|
|
357
360
|
}, [
|
|
358
361
|
$,
|
|
359
362
|
G,
|
|
360
363
|
E,
|
|
361
|
-
|
|
364
|
+
j,
|
|
362
365
|
q,
|
|
363
366
|
J,
|
|
364
367
|
Ge,
|
|
@@ -366,9 +369,9 @@ function $(s) {
|
|
|
366
369
|
yt,
|
|
367
370
|
vt,
|
|
368
371
|
k,
|
|
369
|
-
|
|
370
|
-
M,
|
|
372
|
+
re,
|
|
371
373
|
N,
|
|
374
|
+
P,
|
|
372
375
|
rt
|
|
373
376
|
]);
|
|
374
377
|
let xt = Y.useMemo(() => ({
|
|
@@ -377,8 +380,8 @@ function $(s) {
|
|
|
377
380
|
required: T,
|
|
378
381
|
disabled: K,
|
|
379
382
|
readOnly: w,
|
|
380
|
-
multiple:
|
|
381
|
-
highlightItemOnHover:
|
|
383
|
+
multiple: j,
|
|
384
|
+
highlightItemOnHover: I,
|
|
382
385
|
setValue: dt,
|
|
383
386
|
setOpen: lt,
|
|
384
387
|
listRef: Se,
|
|
@@ -395,7 +398,7 @@ function $(s) {
|
|
|
395
398
|
firstItemTextRef: Ie,
|
|
396
399
|
selectedItemTextRef: Z,
|
|
397
400
|
validation: W,
|
|
398
|
-
onOpenChangeComplete:
|
|
401
|
+
onOpenChangeComplete: ne,
|
|
399
402
|
alignItemWithTriggerActiveRef: Ue,
|
|
400
403
|
initialValueRef: ot
|
|
401
404
|
}), [
|
|
@@ -404,16 +407,16 @@ function $(s) {
|
|
|
404
407
|
T,
|
|
405
408
|
K,
|
|
406
409
|
w,
|
|
407
|
-
|
|
408
|
-
|
|
410
|
+
j,
|
|
411
|
+
I,
|
|
409
412
|
dt,
|
|
410
413
|
lt,
|
|
411
414
|
bt,
|
|
412
415
|
W,
|
|
413
|
-
|
|
416
|
+
ne,
|
|
414
417
|
ft
|
|
415
|
-
]), St = i(D, W.inputRef), Ct =
|
|
416
|
-
let t = Ye(e,
|
|
418
|
+
]), St = i(D, W.inputRef), Ct = j && Array.isArray(q) && q.length > 0, wt = j ? void 0 : he, Tt = Y.useMemo(() => !j || !Array.isArray(q) || !he ? null : q.map((e) => {
|
|
419
|
+
let t = Ye(e, N);
|
|
417
420
|
return /*#__PURE__*/ X("input", {
|
|
418
421
|
type: "hidden",
|
|
419
422
|
form: v,
|
|
@@ -422,11 +425,11 @@ function $(s) {
|
|
|
422
425
|
disabled: K
|
|
423
426
|
}, t);
|
|
424
427
|
}), [
|
|
425
|
-
|
|
428
|
+
j,
|
|
426
429
|
q,
|
|
427
430
|
v,
|
|
428
431
|
he,
|
|
429
|
-
|
|
432
|
+
N,
|
|
430
433
|
K
|
|
431
434
|
]);
|
|
432
435
|
return /*#__PURE__*/ X(Re.Provider, {
|
|
@@ -434,7 +437,7 @@ function $(s) {
|
|
|
434
437
|
children: /*#__PURE__*/ Ne(ze.Provider, {
|
|
435
438
|
value: pt,
|
|
436
439
|
children: [
|
|
437
|
-
|
|
440
|
+
L,
|
|
438
441
|
/*#__PURE__*/ X("input", {
|
|
439
442
|
...W.getValidationProps(K, {
|
|
440
443
|
onFocus() {
|
|
@@ -444,8 +447,8 @@ function $(s) {
|
|
|
444
447
|
if (e.nativeEvent.defaultPrevented || K || w) return;
|
|
445
448
|
let t = e.currentTarget.value, n = y(_, e.nativeEvent);
|
|
446
449
|
function r() {
|
|
447
|
-
if (
|
|
448
|
-
let e = t.toLowerCase(), r = Pe.current.findIndex((t) => Ye(t,
|
|
450
|
+
if (j) return;
|
|
451
|
+
let e = t.toLowerCase(), r = Pe.current.findIndex((t) => Ye(t, N).toLowerCase() === e || Je(t, re).toLowerCase() === e);
|
|
449
452
|
r === -1 && (r = Pe.current.findIndex((t, n) => {
|
|
450
453
|
let r = Te.current[n];
|
|
451
454
|
return r != null && r.toLowerCase() === e;
|
|
@@ -478,19 +481,19 @@ function $(s) {
|
|
|
478
481
|
//#endregion
|
|
479
482
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
|
|
480
483
|
var Qe = 2, $e = 400, et = {
|
|
481
|
-
...
|
|
484
|
+
...k,
|
|
482
485
|
...J,
|
|
483
486
|
popupSide: (e) => e ? { "data-popup-side": e } : null,
|
|
484
487
|
value: () => null
|
|
485
488
|
}, tt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
486
|
-
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: c = !0, style: u, ...d } = e, { setTouched: f, setFocused: p, validationMode: m, state: h, disabled: g } = ve(), { labelId: b } = xe(), { store: x, setOpen: S, selectionRef: C, validation: w, readOnly: E, required: D, alignItemWithTriggerActiveRef: O, disabled: ne } = Z(), k = g || ne || a, A =
|
|
489
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: c = !0, style: u, ...d } = e, { setTouched: f, setFocused: p, validationMode: m, state: h, disabled: g } = ve(), { labelId: b } = xe(), { store: x, setOpen: S, selectionRef: C, validation: w, readOnly: E, required: D, alignItemWithTriggerActiveRef: O, disabled: ne } = Z(), k = g || ne || a, A = R(x, Q.open), j = R(x, Q.mounted), M = R(x, Q.value), re = R(x, Q.triggerProps), N = R(x, Q.positionerElement), P = R(x, Q.listElement), F = R(x, Q.popupSide), I = R(x, Q.id), L = R(x, Q.labelId), z = R(x, Q.hasSelectedValue), ae = j && N ? F : null, oe = i ?? I, se = je(b, L);
|
|
487
490
|
we({ id: oe });
|
|
488
491
|
let ce = ee(N), H = Y.useRef(null), { getButtonProps: U, buttonRef: le } = T({
|
|
489
492
|
disabled: k,
|
|
490
493
|
native: c
|
|
491
494
|
}), ue = l((e) => {
|
|
492
495
|
x.set("triggerElement", e);
|
|
493
|
-
}), de =
|
|
496
|
+
}), de = ie(), W = ie(), fe = ie();
|
|
494
497
|
Y.useEffect(() => {
|
|
495
498
|
if (A) return fe.start($e, () => {
|
|
496
499
|
C.current.allowUnselectedMouseUp = !0, C.current.allowSelectedMouseUp = !0;
|
|
@@ -508,7 +511,7 @@ var Qe = 2, $e = 400, et = {
|
|
|
508
511
|
W,
|
|
509
512
|
fe
|
|
510
513
|
]);
|
|
511
|
-
let pe = o(
|
|
514
|
+
let pe = o(re, {
|
|
512
515
|
id: oe,
|
|
513
516
|
role: "combobox",
|
|
514
517
|
"aria-expanded": A ? "true" : "false",
|
|
@@ -524,7 +527,7 @@ var Qe = 2, $e = 400, et = {
|
|
|
524
527
|
});
|
|
525
528
|
},
|
|
526
529
|
onBlur(e) {
|
|
527
|
-
B(N, e.relatedTarget) || (f(!0), p(!1), m === "onBlur" && w.commit(
|
|
530
|
+
B(N, e.relatedTarget) || (f(!0), p(!1), m === "onBlur" && w.commit(M));
|
|
528
531
|
},
|
|
529
532
|
onMouseDown(e) {
|
|
530
533
|
if (A) return;
|
|
@@ -546,10 +549,10 @@ var Qe = 2, $e = 400, et = {
|
|
|
546
549
|
...h,
|
|
547
550
|
open: A,
|
|
548
551
|
disabled: k,
|
|
549
|
-
value:
|
|
552
|
+
value: M,
|
|
550
553
|
readOnly: E,
|
|
551
554
|
popupSide: ae,
|
|
552
|
-
placeholder: !
|
|
555
|
+
placeholder: !z
|
|
553
556
|
};
|
|
554
557
|
return s("button", e, {
|
|
555
558
|
ref: [
|
|
@@ -567,7 +570,7 @@ process.env.NODE_ENV !== "production" && (tt.displayName = "SelectTrigger");
|
|
|
567
570
|
//#endregion
|
|
568
571
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/value/SelectValue.mjs
|
|
569
572
|
var nt = { value: () => null }, rt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
570
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...c } = e, { store: l, valueRef: u } = Z(), d =
|
|
573
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...c } = e, { store: l, valueRef: u } = Z(), d = R(l, Q.value), f = R(l, Q.items), p = R(l, Q.itemToStringLabel), m = R(l, Q.hasSelectedValue), h = !m && a != null && i == null, g = R(l, Q.hasNullItemLabel, h), _ = {
|
|
571
574
|
value: d,
|
|
572
575
|
placeholder: !m
|
|
573
576
|
}, v = null;
|
|
@@ -584,13 +587,13 @@ process.env.NODE_ENV !== "production" && (rt.displayName = "SelectValue");
|
|
|
584
587
|
var it = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
585
588
|
let { render: n, className: r, style: i, ...a } = e, { store: o } = Z();
|
|
586
589
|
return s("span", e, {
|
|
587
|
-
state: { open:
|
|
590
|
+
state: { open: R(o, Q.open) },
|
|
588
591
|
ref: t,
|
|
589
592
|
props: [{
|
|
590
593
|
"aria-hidden": !0,
|
|
591
594
|
children: "▼"
|
|
592
595
|
}, a],
|
|
593
|
-
stateAttributesMapping:
|
|
596
|
+
stateAttributesMapping: ne
|
|
594
597
|
});
|
|
595
598
|
});
|
|
596
599
|
process.env.NODE_ENV !== "production" && (it.displayName = "SelectIcon");
|
|
@@ -601,10 +604,10 @@ process.env.NODE_ENV !== "production" && (at.displayName = "SelectPortalContext"
|
|
|
601
604
|
//#endregion
|
|
602
605
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/portal/SelectPortal.mjs
|
|
603
606
|
var ot = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
604
|
-
let { store: n } = Z(), r =
|
|
607
|
+
let { store: n } = Z(), r = R(n, Q.mounted), i = R(n, Q.forceMount);
|
|
605
608
|
return r || i ? /*#__PURE__*/ X(at.Provider, {
|
|
606
609
|
value: !0,
|
|
607
|
-
children: /*#__PURE__*/ X(
|
|
610
|
+
children: /*#__PURE__*/ X(z, {
|
|
608
611
|
ref: t,
|
|
609
612
|
...e
|
|
610
613
|
})
|
|
@@ -631,13 +634,13 @@ var ut = {
|
|
|
631
634
|
overflowX: "hidden",
|
|
632
635
|
overflowY: "auto"
|
|
633
636
|
}, dt = { position: "fixed" }, ft = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
634
|
-
let { anchor: r, positionMethod: i = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: u = 0, alignOffset: d = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m, arrowPadding: h = 5, sticky: g = !1, disableAnchorTracking: v, alignItemWithTrigger: b = !0, collisionAvoidance: x =
|
|
637
|
+
let { anchor: r, positionMethod: i = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: u = 0, alignOffset: d = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m, arrowPadding: h = 5, sticky: g = !1, disableAnchorTracking: v, alignItemWithTrigger: b = !0, collisionAvoidance: x = L, style: S, ...C } = e, { store: w, listRef: T, labelsRef: E, alignItemWithTriggerActiveRef: ee, selectedItemTextRef: te, valuesRef: D, initialValueRef: O, popupRef: ne, setValue: k } = Z(), A = Be(), j = R(w, Q.open), M = R(w, Q.mounted), re = R(w, Q.modal), N = R(w, Q.value), P = R(w, Q.openMethod), F = R(w, Q.positionerElement), I = R(w, Q.triggerElement), z = R(w, Q.isItemEqualToValue), ie = R(w, Q.transitionStatus), ae = Y.useRef(null), oe = Y.useRef(null), [ce, B] = Y.useState(b), V = M && ce && P !== "touch";
|
|
635
638
|
!M && ce !== b && B(b), t(() => {
|
|
636
639
|
M || (Q.scrollUpArrowVisible(w.state) && w.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(w.state) && w.set("scrollDownArrowVisible", !1));
|
|
637
|
-
}, [w, M]), Y.useImperativeHandle(ee, () => V), q((V ||
|
|
640
|
+
}, [w, M]), Y.useImperativeHandle(ee, () => V), q((V || re) && j, P === "touch", F, I);
|
|
638
641
|
let H = W({
|
|
639
642
|
anchor: r,
|
|
640
|
-
floatingRootContext:
|
|
643
|
+
floatingRootContext: A,
|
|
641
644
|
positionMethod: i,
|
|
642
645
|
mounted: M,
|
|
643
646
|
side: s,
|
|
@@ -662,7 +665,7 @@ var ut = {
|
|
|
662
665
|
}, [w, H.side]);
|
|
663
666
|
let de = fe(e, ue, {
|
|
664
667
|
styles: le,
|
|
665
|
-
transitionStatus:
|
|
668
|
+
transitionStatus: ie,
|
|
666
669
|
props: C,
|
|
667
670
|
refs: [n, l((e) => {
|
|
668
671
|
w.set("positionerElement", e);
|
|
@@ -674,13 +677,13 @@ var ut = {
|
|
|
674
677
|
let t = pe.current;
|
|
675
678
|
if (pe.current = e.size, e.size === t) return;
|
|
676
679
|
let n = y(_);
|
|
677
|
-
if (t !== 0 && !w.state.multiple &&
|
|
678
|
-
let e =
|
|
679
|
-
|
|
680
|
+
if (t !== 0 && !w.state.multiple && N !== null && We(D.current, N, z) === -1) {
|
|
681
|
+
let e = O.current, t = e != null && We(D.current, e, z) !== -1 ? e : null;
|
|
682
|
+
k(t, n), t === null && (w.set("selectedIndex", null), te.current = null);
|
|
680
683
|
}
|
|
681
|
-
if (t !== 0 && w.state.multiple && Array.isArray(
|
|
682
|
-
let e = (e) => We(D.current, e,
|
|
683
|
-
(t.length !==
|
|
684
|
+
if (t !== 0 && w.state.multiple && Array.isArray(N)) {
|
|
685
|
+
let e = (e) => We(D.current, e, z) !== -1, t = N.filter((t) => e(t));
|
|
686
|
+
(t.length !== N.length || t.some((e) => !Ue(N, e, z))) && (k(t, n), t.length === 0 && (w.set("selectedIndex", null), te.current = null));
|
|
684
687
|
}
|
|
685
688
|
if (j && V) {
|
|
686
689
|
w.update({
|
|
@@ -688,7 +691,7 @@ var ut = {
|
|
|
688
691
|
scrollDownArrowVisible: !1
|
|
689
692
|
});
|
|
690
693
|
let e = { height: "" };
|
|
691
|
-
lt(
|
|
694
|
+
lt(F, e), lt(ne.current, e);
|
|
692
695
|
}
|
|
693
696
|
}), G = Y.useMemo(() => ({
|
|
694
697
|
...H,
|
|
@@ -709,9 +712,9 @@ var ut = {
|
|
|
709
712
|
onMapChange: me,
|
|
710
713
|
children: /*#__PURE__*/ Ne(st.Provider, {
|
|
711
714
|
value: G,
|
|
712
|
-
children: [M &&
|
|
715
|
+
children: [M && re && /*#__PURE__*/ X(se, {
|
|
713
716
|
inert: he(!j),
|
|
714
|
-
cutout:
|
|
717
|
+
cutout: I
|
|
715
718
|
}), de]
|
|
716
719
|
})
|
|
717
720
|
});
|
|
@@ -720,10 +723,10 @@ process.env.NODE_ENV !== "production" && (ft.displayName = "SelectPositioner");
|
|
|
720
723
|
//#endregion
|
|
721
724
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/popup/SelectPopup.mjs
|
|
722
725
|
var pt = {
|
|
723
|
-
...
|
|
724
|
-
...
|
|
726
|
+
...j,
|
|
727
|
+
...S
|
|
725
728
|
}, mt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
726
|
-
let { render: r, className: i, style: a, finalFocus: o, ...c } = e, { store: u, popupRef: d, onOpenChangeComplete: f, setOpen: m, valueRef: g, firstItemTextRef: _, selectedItemTextRef: v, multiple: x, handleScrollArrowVisibility: S, scrollHandlerRef: T, listRef: ee, highlightItemOnHover: D } = Z(), { side: O, align: ne, alignItemWithTriggerActive: k, isPositioned: A, setControlledAlignItemWithTrigger:
|
|
729
|
+
let { render: r, className: i, style: a, finalFocus: o, ...c } = e, { store: u, popupRef: d, onOpenChangeComplete: f, setOpen: m, valueRef: g, firstItemTextRef: _, selectedItemTextRef: v, multiple: x, handleScrollArrowVisibility: S, scrollHandlerRef: T, listRef: ee, highlightItemOnHover: D } = Z(), { side: O, align: ne, alignItemWithTriggerActive: k, isPositioned: A, setControlledAlignItemWithTrigger: j } = ct(), M = _e(!0) != null, re = Be(), N = p(), { nonce: F, disableStyleElements: I } = ke(), L = R(u, Q.id), z = R(u, Q.open), ie = R(u, Q.openMethod), oe = R(u, Q.mounted), se = R(u, Q.popupProps), ce = R(u, Q.transitionStatus), B = R(u, Q.triggerElement), V = R(u, Q.positionerElement), H = R(u, Q.listElement), U = Y.useRef(!1), le = Y.useRef(!1), de = Y.useRef({}), W = b(), fe = l((e) => {
|
|
727
730
|
if (!V || !d.current || !le.current) return;
|
|
728
731
|
if (U.current || !k) {
|
|
729
732
|
S();
|
|
@@ -751,14 +754,14 @@ var pt = {
|
|
|
751
754
|
(_ || h >= f - 1) && (U.current = !0), S();
|
|
752
755
|
});
|
|
753
756
|
Y.useImperativeHandle(T, () => fe, [fe]), C({
|
|
754
|
-
open:
|
|
757
|
+
open: z,
|
|
755
758
|
ref: d,
|
|
756
759
|
onComplete() {
|
|
757
|
-
|
|
760
|
+
z && f?.(!0);
|
|
758
761
|
}
|
|
759
762
|
});
|
|
760
763
|
let pe = {
|
|
761
|
-
open:
|
|
764
|
+
open: z,
|
|
762
765
|
transitionStatus: ce,
|
|
763
766
|
side: O,
|
|
764
767
|
align: ne
|
|
@@ -776,15 +779,15 @@ var pt = {
|
|
|
776
779
|
marginBottom: V.style.marginBottom
|
|
777
780
|
});
|
|
778
781
|
}, [d, V]), t(() => {
|
|
779
|
-
|
|
782
|
+
z || k || (le.current = !1, U.current = !1, lt(V, de.current));
|
|
780
783
|
}, [
|
|
781
|
-
|
|
784
|
+
z,
|
|
782
785
|
k,
|
|
783
786
|
V,
|
|
784
787
|
d
|
|
785
788
|
]), t(() => {
|
|
786
789
|
let e = d.current;
|
|
787
|
-
if (!
|
|
790
|
+
if (!z || !B || !V || !e || k && !A || u.state.transitionStatus === "ending") return;
|
|
788
791
|
if (!k) {
|
|
789
792
|
le.current = !0, W.request(S), e.style.removeProperty("--transform-origin");
|
|
790
793
|
return;
|
|
@@ -801,31 +804,31 @@ var pt = {
|
|
|
801
804
|
let r = e.top - c.top + e.height / 2;
|
|
802
805
|
k = O.top - l.top + O.height / 2 - r;
|
|
803
806
|
}
|
|
804
|
-
let A = E + k + y + m,
|
|
805
|
-
V.style.left = `${Ae(ne, 5,
|
|
806
|
-
let
|
|
807
|
-
|
|
808
|
-
let
|
|
809
|
-
if (
|
|
810
|
-
le.current = !0, lt(V, de.current),
|
|
807
|
+
let A = E + k + y + m, M = Math.min(C, A), re = C - h - y, F = A - M, I = T - 5;
|
|
808
|
+
V.style.left = `${Ae(ne, 5, I - l.width)}px`, V.style.height = `${M}px`, V.style.maxHeight = "none", V.style.marginTop = `${h}px`, V.style.marginBottom = `${y}px`, e.style.height = "100%";
|
|
809
|
+
let L = gt(f), R = F >= L - 1;
|
|
810
|
+
R && (M = Math.min(C, l.height) - (F - L));
|
|
811
|
+
let z = c.top < 20 || c.bottom > C - 20 || Math.ceil(M) + 1 < Math.min(p, b), ie = (r.visualViewport?.scale ?? 1) !== 1 && P;
|
|
812
|
+
if (z || ie) {
|
|
813
|
+
le.current = !0, lt(V, de.current), j(!1);
|
|
811
814
|
return;
|
|
812
815
|
}
|
|
813
|
-
let ae = Math.max(b,
|
|
814
|
-
if (
|
|
816
|
+
let ae = Math.max(b, M);
|
|
817
|
+
if (R) {
|
|
815
818
|
let e = Math.max(0, C - A);
|
|
816
|
-
V.style.top = l.height >=
|
|
817
|
-
} else V.style.bottom = "0", f.scrollTop =
|
|
819
|
+
V.style.top = l.height >= re ? "0" : `${e}px`, V.style.height = `${M}px`, f.scrollTop = gt(f);
|
|
820
|
+
} else V.style.bottom = "0", f.scrollTop = F;
|
|
818
821
|
if (O) {
|
|
819
822
|
let t = l.top, n = l.height, r = O.top + O.height / 2, i = Ae(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
820
823
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
821
824
|
}
|
|
822
|
-
(ae === C ||
|
|
825
|
+
(ae === C || M >= x) && (U.current = !0), S(), D && u.state.selectedIndex === null && u.state.activeIndex === null && ee.current[0] != null && u.set("activeIndex", 0), le.current = !0;
|
|
823
826
|
} finally {
|
|
824
827
|
t();
|
|
825
828
|
}
|
|
826
829
|
}, [
|
|
827
830
|
u,
|
|
828
|
-
|
|
831
|
+
z,
|
|
829
832
|
V,
|
|
830
833
|
B,
|
|
831
834
|
g,
|
|
@@ -834,7 +837,7 @@ var pt = {
|
|
|
834
837
|
d,
|
|
835
838
|
S,
|
|
836
839
|
k,
|
|
837
|
-
|
|
840
|
+
j,
|
|
838
841
|
W,
|
|
839
842
|
H,
|
|
840
843
|
ee,
|
|
@@ -842,7 +845,7 @@ var pt = {
|
|
|
842
845
|
N,
|
|
843
846
|
A
|
|
844
847
|
]), Y.useEffect(() => {
|
|
845
|
-
if (!k || !V || !
|
|
848
|
+
if (!k || !V || !z) return;
|
|
846
849
|
let e = w(V);
|
|
847
850
|
function t(e) {
|
|
848
851
|
m(!1, y(h, e));
|
|
@@ -852,7 +855,7 @@ var pt = {
|
|
|
852
855
|
m,
|
|
853
856
|
k,
|
|
854
857
|
V,
|
|
855
|
-
|
|
858
|
+
z
|
|
856
859
|
]);
|
|
857
860
|
let me = {
|
|
858
861
|
...H ? {
|
|
@@ -864,7 +867,7 @@ var pt = {
|
|
|
864
867
|
id: `${L}-list`
|
|
865
868
|
},
|
|
866
869
|
onKeyDown(e) {
|
|
867
|
-
|
|
870
|
+
M && K.has(e.key) && e.stopPropagation();
|
|
868
871
|
},
|
|
869
872
|
onScroll(e) {
|
|
870
873
|
H || fe(e.currentTarget);
|
|
@@ -882,11 +885,11 @@ var pt = {
|
|
|
882
885
|
c
|
|
883
886
|
]
|
|
884
887
|
});
|
|
885
|
-
return /*#__PURE__*/ Ne(Y.Fragment, { children: [!
|
|
886
|
-
context:
|
|
888
|
+
return /*#__PURE__*/ Ne(Y.Fragment, { children: [!I && De.getElement(F), /*#__PURE__*/ X(ae, {
|
|
889
|
+
context: re,
|
|
887
890
|
modal: !1,
|
|
888
891
|
disabled: !oe,
|
|
889
|
-
openInteractionType:
|
|
892
|
+
openInteractionType: ie,
|
|
890
893
|
returnFocus: o,
|
|
891
894
|
restoreFocus: !0,
|
|
892
895
|
children: G
|
|
@@ -907,7 +910,7 @@ function vt(e, t, n) {
|
|
|
907
910
|
return e / n[t];
|
|
908
911
|
}
|
|
909
912
|
function yt(e, t) {
|
|
910
|
-
return
|
|
913
|
+
return N({
|
|
911
914
|
x: vt(e.x, "x", t),
|
|
912
915
|
y: vt(e.y, "y", t),
|
|
913
916
|
width: vt(e.width, "x", t),
|
|
@@ -932,8 +935,8 @@ function xt(e) {
|
|
|
932
935
|
//#endregion
|
|
933
936
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/list/SelectList.mjs
|
|
934
937
|
var St = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
935
|
-
let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: c } = Z(), { alignItemWithTriggerActive: u } = ct(), d =
|
|
936
|
-
id: `${
|
|
938
|
+
let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: c } = Z(), { alignItemWithTriggerActive: u } = ct(), d = R(o, Q.hasScrollArrows), f = R(o, Q.openMethod), p = R(o, Q.multiple), m = {
|
|
939
|
+
id: `${R(o, Q.id)}-list`,
|
|
937
940
|
role: "listbox",
|
|
938
941
|
"aria-multiselectable": p || void 0,
|
|
939
942
|
onScroll(e) {
|
|
@@ -966,32 +969,32 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
|
966
969
|
label: c,
|
|
967
970
|
textRef: m,
|
|
968
971
|
indexGuessBehavior: d.GuessFromOrder
|
|
969
|
-
}), { store: _, itemProps: v, setOpen: b, setValue: x, selectionRef: S, typingRef: C, valuesRef: w, multiple: E, selectedItemTextRef: ee, disabled: te, readOnly: D } = Z(), O =
|
|
972
|
+
}), { store: _, itemProps: v, setOpen: b, setValue: x, selectionRef: S, typingRef: C, valuesRef: w, multiple: E, selectedItemTextRef: ee, disabled: te, readOnly: D } = Z(), O = R(_, Q.isActive, h.index), ne = R(_, Q.open), k = R(_, Q.isSelected, o), A = R(_, Q.isSelectedByFocus, h.index), j = R(_, Q.isItemEqualToValue), M = h.index, N = M !== -1, P = Y.useRef(null);
|
|
970
973
|
t(() => {
|
|
971
|
-
if (!
|
|
974
|
+
if (!N) return;
|
|
972
975
|
let e = w.current;
|
|
973
|
-
return e[
|
|
974
|
-
delete e[
|
|
976
|
+
return e[M] = o, () => {
|
|
977
|
+
delete e[M];
|
|
975
978
|
};
|
|
976
979
|
}, [
|
|
980
|
+
N,
|
|
977
981
|
M,
|
|
978
|
-
j,
|
|
979
982
|
o,
|
|
980
983
|
w
|
|
981
984
|
]), t(() => {
|
|
982
|
-
if (!
|
|
985
|
+
if (!N) return;
|
|
983
986
|
let e = _.state.value, t = e;
|
|
984
|
-
E && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && He(o, t,
|
|
987
|
+
E && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && He(o, t, j) && (_.set("selectedIndex", M), m.current && (ee.current = m.current));
|
|
985
988
|
}, [
|
|
989
|
+
N,
|
|
986
990
|
M,
|
|
987
|
-
j,
|
|
988
991
|
E,
|
|
989
|
-
|
|
992
|
+
j,
|
|
990
993
|
_,
|
|
991
994
|
o,
|
|
992
995
|
ee
|
|
993
996
|
]);
|
|
994
|
-
let
|
|
997
|
+
let F = Y.useRef(null), I = Y.useRef("mouse"), L = Y.useRef(!1), { getButtonProps: z, buttonRef: ie } = T({
|
|
995
998
|
disabled: l,
|
|
996
999
|
focusableWhenDisabled: !0,
|
|
997
1000
|
native: f,
|
|
@@ -1005,7 +1008,7 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
|
1005
1008
|
if (te || D) return;
|
|
1006
1009
|
let t = _.state.value;
|
|
1007
1010
|
if (E) {
|
|
1008
|
-
let n = Array.isArray(t) ? t : [], r = k ? Ge(n, o,
|
|
1011
|
+
let n = Array.isArray(t) ? t : [], r = k ? Ge(n, o, j) : [...n, o];
|
|
1009
1012
|
x(r, y(g, e));
|
|
1010
1013
|
} else x(o, y(g, e)), b(!1, y(g, e));
|
|
1011
1014
|
}
|
|
@@ -1017,14 +1020,14 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
|
1017
1020
|
"aria-selected": k,
|
|
1018
1021
|
tabIndex: ne && O ? 0 : -1,
|
|
1019
1022
|
onKeyDown(e) {
|
|
1020
|
-
|
|
1023
|
+
F.current = e.key, _.set("activeIndex", M), e.key === " " && C.current && e.preventDefault();
|
|
1021
1024
|
},
|
|
1022
1025
|
onClick(e) {
|
|
1023
|
-
let t = e.type === "click" &&
|
|
1024
|
-
|
|
1026
|
+
let t = e.type === "click" && I.current !== "touch", n = e.nativeEvent.pointerType, r = t && re(e.nativeEvent) && (n !== void 0 || O), i = t && !r && !L.current;
|
|
1027
|
+
L.current = !1, !(e.type === "keydown" && F.current === null) && (l || e.type === "keydown" && F.current === " " && C.current || i || (F.current = null, oe(e.nativeEvent)));
|
|
1025
1028
|
},
|
|
1026
1029
|
onPointerEnter(e) {
|
|
1027
|
-
|
|
1030
|
+
I.current = e.pointerType;
|
|
1028
1031
|
},
|
|
1029
1032
|
onPointerMove(e) {
|
|
1030
1033
|
if (e.pointerType === "mouse" && e.buttons === 1) {
|
|
@@ -1033,39 +1036,39 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
},
|
|
1035
1038
|
onPointerDown(e) {
|
|
1036
|
-
|
|
1039
|
+
I.current = e.pointerType, L.current = !0, se();
|
|
1037
1040
|
},
|
|
1038
1041
|
onMouseUp() {
|
|
1039
|
-
if (se(), l ||
|
|
1042
|
+
if (se(), l || I.current === "touch" || L.current) return;
|
|
1040
1043
|
let e = !S.current.allowSelectedMouseUp && k, t = !S.current.allowUnselectedMouseUp && !k;
|
|
1041
|
-
e || t || (
|
|
1044
|
+
e || t || (L.current = !0, P.current?.click(), L.current = !1);
|
|
1042
1045
|
}
|
|
1043
1046
|
}, B = s("div", e, {
|
|
1044
1047
|
ref: [
|
|
1045
|
-
|
|
1048
|
+
ie,
|
|
1046
1049
|
n,
|
|
1047
1050
|
h.ref,
|
|
1048
|
-
|
|
1051
|
+
P
|
|
1049
1052
|
],
|
|
1050
1053
|
state: ae,
|
|
1051
1054
|
props: [
|
|
1052
1055
|
v,
|
|
1053
1056
|
ce,
|
|
1054
1057
|
p,
|
|
1055
|
-
|
|
1058
|
+
z
|
|
1056
1059
|
]
|
|
1057
1060
|
}), V = Y.useMemo(() => ({
|
|
1058
1061
|
selected: k,
|
|
1059
|
-
index:
|
|
1062
|
+
index: M,
|
|
1060
1063
|
textRef: m,
|
|
1061
1064
|
selectedByFocus: A,
|
|
1062
|
-
hasRegistered:
|
|
1065
|
+
hasRegistered: N
|
|
1063
1066
|
}), [
|
|
1064
1067
|
k,
|
|
1065
|
-
|
|
1068
|
+
M,
|
|
1066
1069
|
m,
|
|
1067
1070
|
A,
|
|
1068
|
-
|
|
1071
|
+
N
|
|
1069
1072
|
]);
|
|
1070
1073
|
return /*#__PURE__*/ X(Ct.Provider, {
|
|
1071
1074
|
value: V,
|
|
@@ -1084,7 +1087,7 @@ var Et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1084
1087
|
});
|
|
1085
1088
|
process.env.NODE_ENV !== "production" && (Et.displayName = "SelectItemIndicator");
|
|
1086
1089
|
var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
|
|
1087
|
-
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: c } = wt(), l = Y.useRef(null), { transitionStatus: u, setMounted: d } =
|
|
1090
|
+
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: c } = wt(), l = Y.useRef(null), { transitionStatus: u, setMounted: d } = x(c), f = s("span", e, {
|
|
1088
1091
|
ref: [t, l],
|
|
1089
1092
|
state: {
|
|
1090
1093
|
selected: c,
|
|
@@ -1094,7 +1097,7 @@ var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
|
|
|
1094
1097
|
"aria-hidden": !0,
|
|
1095
1098
|
children: "✔️"
|
|
1096
1099
|
}, o],
|
|
1097
|
-
stateAttributesMapping:
|
|
1100
|
+
stateAttributesMapping: S
|
|
1098
1101
|
});
|
|
1099
1102
|
return C({
|
|
1100
1103
|
open: c,
|
|
@@ -1130,7 +1133,7 @@ process.env.NODE_ENV !== "production" && (Ot.displayName = "SelectItemText");
|
|
|
1130
1133
|
//#endregion
|
|
1131
1134
|
//#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/scroll-arrow/SelectScrollArrow.mjs
|
|
1132
1135
|
var kt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
1133
|
-
let { render: r, className: i, style: a, direction: o, keepMounted: c = !1, ...l } = e, u = o === "up", { store: d, popupRef: f, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = ct(), y =
|
|
1136
|
+
let { render: r, className: i, style: a, direction: o, keepMounted: c = !1, ...l } = e, u = o === "up", { store: d, popupRef: f, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = ct(), y = R(d, u ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible), b = R(d, Q.openMethod), w = y && b !== "touch", T = ie(), E = u ? v : _, { mounted: ee, transitionStatus: te, setMounted: D } = x(w);
|
|
1134
1137
|
t(() => (h.current += 1, d.state.hasScrollArrows || d.set("hasScrollArrows", !0), () => {
|
|
1135
1138
|
h.current = Math.max(0, h.current - 1), h.current === 0 && d.state.hasScrollArrows && d.set("hasScrollArrows", !1);
|
|
1136
1139
|
}), [d, h]), C({
|
|
@@ -1176,7 +1179,7 @@ var kt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
|
1176
1179
|
T.clear();
|
|
1177
1180
|
}
|
|
1178
1181
|
}, l],
|
|
1179
|
-
stateAttributesMapping:
|
|
1182
|
+
stateAttributesMapping: S
|
|
1180
1183
|
});
|
|
1181
1184
|
return ee || c ? O : null;
|
|
1182
1185
|
});
|