@marimo-team/islands 0.23.10-dev3 → 0.23.10-dev31
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/{ConnectedDataExplorerComponent-CyV83R2m.js → ConnectedDataExplorerComponent-DmBropAy.js} +31 -31
- package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
- package/dist/{any-language-editor-DfdpyDv_.js → any-language-editor-DNmoSiWL.js} +20 -20
- package/dist/assets/__vite-browser-external-eshhtsgZ.js +1 -0
- package/dist/assets/worker-CC0Oul9k.js +73 -0
- package/dist/{chat-ui-C1tL1pML.js → chat-ui-D6oraHT2.js} +76 -76
- package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
- package/dist/{code-visibility-DfnO0DcH.js → code-visibility-B9qGgair.js} +2166 -1292
- package/dist/{copy-BuQpJEzp.js → copy-UqRYxiOg.js} +33 -33
- package/dist/dist-7QfXoMdB.js +5 -0
- package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
- package/dist/dist-BEXXyZig.js +5 -0
- package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
- package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
- package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
- package/dist/dist-BYj57OV4.js +5 -0
- package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
- package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
- package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
- package/dist/dist-BlSvQzNr.js +5 -0
- package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
- package/dist/dist-CCBlxAgS.js +8 -0
- package/dist/dist-CIDTVIUf.js +5 -0
- package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
- package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
- package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
- package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
- package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
- package/dist/dist-CqQyhAM8.js +8 -0
- package/dist/dist-CwRu2Xzh.js +5 -0
- package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
- package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
- package/dist/dist-D8CDTVgf.js +6 -0
- package/dist/dist-D8DNB0nO.js +8 -0
- package/dist/dist-DL6N_q-A.js +5 -0
- package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
- package/dist/dist-DOFbNV_b.js +8 -0
- package/dist/dist-DPrYzMY0.js +6 -0
- package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
- package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
- package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
- package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
- package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
- package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
- package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
- package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
- package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
- package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
- package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
- package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
- package/dist/dist-cdmMjgsn.js +5 -0
- package/dist/dist-hT4QzYX-.js +1247 -0
- package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
- package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
- package/dist/esm-BaH2eg5-.js +1171 -0
- package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
- package/dist/{extends-BgdxCfYu.js → extends-D_hDsj6R.js} +4 -4
- package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
- package/dist/{glide-data-editor-BOmK9ETQ.js → glide-data-editor-Qhu8oCX-.js} +12 -12
- package/dist/{html-to-image-CNa5ok96.js → html-to-image-UEH5lFDZ.js} +2318 -2275
- package/dist/{input-_2sjvfne.js → input-CMYy4hzj.js} +187 -185
- package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
- package/dist/main.js +6941 -6913
- package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
- package/dist/{process-output-DKr4f1di.js → process-output-CyMLTogj.js} +3 -3
- package/dist/{reveal-component-UdMnCK5U.js → reveal-component-Co2AuBAx.js} +697 -619
- package/dist/{spec-B96zNUEA.js → spec-X7FwLJni.js} +4 -4
- package/dist/{strings-Bu3vlb6W.js → strings-J57tzLr3.js} +47 -46
- package/dist/style.css +1 -1
- package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
- package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
- package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
- package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
- package/dist/{useDateFormatter-BA4FCquG.js → useDateFormatter-QB-3MpYr.js} +2 -2
- package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
- package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
- package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
- package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
- package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
- package/package.json +3 -3
- package/src/components/data-table/TableBottomBar.tsx +1 -15
- package/src/components/data-table/TableTopBar.tsx +8 -13
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +154 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/filter-by-values-picker.tsx +39 -17
- package/src/components/data-table/filter-pills.tsx +1 -1
- package/src/components/data-table/hover-tooltip/__tests__/content.test.ts +60 -0
- package/src/components/data-table/hover-tooltip/content.ts +44 -0
- package/src/components/data-table/hover-tooltip/hover-tooltip.tsx +55 -0
- package/src/components/data-table/hover-tooltip/use-table-hover-tooltip.ts +159 -0
- package/src/components/data-table/renderers.tsx +27 -43
- package/src/components/datasources/__tests__/filter-empty.test.ts +183 -0
- package/src/components/datasources/datasources.tsx +92 -3
- package/src/components/editor/cell/cell-context-menu.tsx +15 -2
- package/src/components/editor/cell/code/language-toggle.tsx +7 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
- package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
- package/src/components/editor/documentation.css +35 -0
- package/src/components/editor/file-tree/file-explorer.tsx +8 -18
- package/src/components/editor/file-tree/tree-actions.tsx +46 -1
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
- package/src/components/editor/renderers/slides-layout/types.ts +1 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +166 -0
- package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
- package/src/components/slides/minimap.tsx +127 -10
- package/src/components/slides/reveal-component.tsx +287 -61
- package/src/components/slides/slide-cell-view.tsx +26 -2
- package/src/components/slides/slide-form.tsx +26 -4
- package/src/components/storage/__tests__/storage-inspector.test.ts +53 -0
- package/src/components/storage/storage-inspector.tsx +68 -48
- package/src/components/ui/__tests__/use-toast.test.ts +75 -0
- package/src/components/ui/combobox.tsx +51 -32
- package/src/components/ui/reorderable-list.tsx +13 -0
- package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
- package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
- package/src/components/ui/select-core/index.ts +16 -0
- package/src/components/ui/select-core/option-row.tsx +33 -0
- package/src/components/ui/select-core/render-slot.ts +20 -0
- package/src/components/ui/select-core/select-list.tsx +248 -0
- package/src/components/ui/select-core/types.ts +44 -0
- package/src/components/ui/select-core/use-select-list.ts +347 -0
- package/src/components/ui/select-core/utils.ts +121 -0
- package/src/components/ui/use-toast.ts +33 -13
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -28
- package/src/core/cells/__tests__/cell.test.ts +29 -2
- package/src/core/cells/cell.ts +5 -1
- package/src/core/codemirror/go-to-definition/commands.ts +4 -3
- package/src/core/codemirror/language/languages/python.ts +2 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +3 -1
- package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
- package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
- package/src/core/datasets/data-source-connections.ts +2 -0
- package/src/core/network/__tests__/requests-static.test.ts +30 -0
- package/src/core/network/requests-static.ts +14 -10
- package/src/core/wasm/worker/bootstrap.ts +12 -4
- package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
- package/src/plugins/impl/SearchableSelect.tsx +16 -97
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/utils/lazy.ts +6 -1
- package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +0 -1
- package/dist/assets/worker-ip3AI_sN.js +0 -73
- package/dist/dist-0Fif7jnk.js +0 -5
- package/dist/dist-B5h_9sHB.js +0 -6
- package/dist/dist-B9M6R5ye.js +0 -5
- package/dist/dist-BCt3tnck.js +0 -8
- package/dist/dist-BUIJwMwn.js +0 -8
- package/dist/dist-BpquMd3k.js +0 -5
- package/dist/dist-BzJsqYfz.js +0 -5
- package/dist/dist-CA5ELXAf.js +0 -6
- package/dist/dist-CLBRs6Uv.js +0 -5
- package/dist/dist-CStVCMbq.js +0 -5
- package/dist/dist-CZRIEY3Y.js +0 -8
- package/dist/dist-CuUHbFD0.js +0 -5
- package/dist/dist-DV7Iabxb.js +0 -8
- package/dist/dist-DhHh0jLg.js +0 -1247
- package/dist/dist-DuEeHMvL.js +0 -5
- package/dist/esm-BfhQmZjp.js +0 -1171
- package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
- /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as createLucideIcon } from "./dist-
|
|
2
|
-
import { s as Hash } from "./useLifecycle-
|
|
3
|
-
import { i as Table, o as ChartPie } from "./useDateFormatter-
|
|
4
|
-
import {
|
|
1
|
+
import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
2
|
+
import { s as Hash } from "./useLifecycle-00mO3OSS.js";
|
|
3
|
+
import { i as Table, o as ChartPie } from "./useDateFormatter-QB-3MpYr.js";
|
|
4
|
+
import { C as logNever } from "./strings-J57tzLr3.js";
|
|
5
5
|
var AlignCenterVertical = createLucideIcon("align-center-vertical", [
|
|
6
6
|
["path", {
|
|
7
7
|
d: "M12 2v20",
|
|
@@ -2,11 +2,11 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, r as cva } from "./button-C5K9fIPF.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-
|
|
6
|
-
import { t as Check } from "./check-
|
|
5
|
+
import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
6
|
+
import { t as Check } from "./check-BCaJeT-J.js";
|
|
7
7
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
8
8
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Q as withSmartCollisionBoundary, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ht as composeEventHandlers, it as useFocusGuards, mt as useLayoutEffect2, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, ut as useCallbackRef, vt as Primitive } from "./zod-aLSua2NL.js";
|
|
10
10
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
11
11
|
var ChevronDown = createLucideIcon("chevron-down", [["path", {
|
|
12
12
|
d: "m6 9 6 6 6-6",
|
|
@@ -95,7 +95,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
|
|
|
95
95
|
"ArrowUp",
|
|
96
96
|
"ArrowDown"
|
|
97
97
|
], SELECTION_KEYS = [" ", "Enter"], SELECT_NAME = "Select", [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME), [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope, createPopperScope]), usePopperScope = createPopperScope(), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME), Select$1 = (e) => {
|
|
98
|
-
let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: u, onValueChange: d, dir: f, name: p, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(f), [
|
|
98
|
+
let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: u, onValueChange: d, dir: f, name: p, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(f), [O, k] = useControllableState({
|
|
99
99
|
prop: o,
|
|
100
100
|
defaultProp: s ?? false,
|
|
101
101
|
onChange: c,
|
|
@@ -105,7 +105,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
|
|
|
105
105
|
defaultProp: u,
|
|
106
106
|
onChange: d,
|
|
107
107
|
caller: SELECT_NAME
|
|
108
|
-
}), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [
|
|
108
|
+
}), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [F, I] = import_react.useState(/* @__PURE__ */ new Set()), L = Array.from(F).map((e2) => e2.props.value).join(";");
|
|
109
109
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
|
|
110
110
|
...y,
|
|
111
111
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectProvider, {
|
|
@@ -120,7 +120,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
|
|
|
120
120
|
contentId: useId(),
|
|
121
121
|
value: A,
|
|
122
122
|
onValueChange: j,
|
|
123
|
-
open:
|
|
123
|
+
open: O,
|
|
124
124
|
onOpenChange: k,
|
|
125
125
|
dir: E,
|
|
126
126
|
triggerPointerDownPosRef: M,
|
|
@@ -130,10 +130,10 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
|
|
|
130
130
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectNativeOptionsProvider, {
|
|
131
131
|
scope: e.__scopeSelect,
|
|
132
132
|
onNativeOptionAdd: import_react.useCallback((e2) => {
|
|
133
|
-
|
|
133
|
+
I((i2) => new Set(i2).add(e2));
|
|
134
134
|
}, []),
|
|
135
135
|
onNativeOptionRemove: import_react.useCallback((e2) => {
|
|
136
|
-
|
|
136
|
+
I((i2) => {
|
|
137
137
|
let a2 = new Set(i2);
|
|
138
138
|
return a2.delete(e2), a2;
|
|
139
139
|
});
|
|
@@ -150,8 +150,8 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
|
|
|
150
150
|
onChange: (e2) => j(e2.target.value),
|
|
151
151
|
disabled: g,
|
|
152
152
|
form: v,
|
|
153
|
-
children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(
|
|
154
|
-
},
|
|
153
|
+
children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(F)]
|
|
154
|
+
}, L) : null]
|
|
155
155
|
})
|
|
156
156
|
});
|
|
157
157
|
};
|
|
@@ -247,16 +247,16 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
|
|
|
247
247
|
});
|
|
248
248
|
SelectContent$1.displayName = CONTENT_NAME;
|
|
249
249
|
var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
|
|
250
|
-
let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: l, onPointerDownOutside: u, side: d, sideOffset: f, align: p, alignOffset: m, arrowPadding: h, collisionBoundary: g, collisionPadding: _, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T,
|
|
250
|
+
let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: l, onPointerDownOutside: u, side: d, sideOffset: f, align: p, alignOffset: m, arrowPadding: h, collisionBoundary: g, collisionPadding: _, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T, D] = import_react.useState(null), O = useComposedRefs(i, (e2) => w(e2)), [j, P] = import_react.useState(null), [I, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
|
|
251
251
|
import_react.useEffect(() => {
|
|
252
252
|
if (C) return hideOthers(C);
|
|
253
253
|
}, [C]), useFocusGuards();
|
|
254
254
|
let H = import_react.useCallback((e2) => {
|
|
255
255
|
let [i2, ...a2] = R().map((e3) => e3.ref.current), [o2] = a2.slice(-1), s2 = document.activeElement;
|
|
256
256
|
for (let a3 of e2) if (a3 === s2 || (a3 == null ? void 0 : a3.scrollIntoView({ block: "nearest" }), a3 === i2 && T && (T.scrollTop = 0), a3 === o2 && T && (T.scrollTop = T.scrollHeight), a3 == null ? void 0 : a3.focus(), document.activeElement !== s2)) return;
|
|
257
|
-
}, [R, T]), U = import_react.useCallback(() => H([
|
|
257
|
+
}, [R, T]), U = import_react.useCallback(() => H([j, C]), [
|
|
258
258
|
H,
|
|
259
|
-
|
|
259
|
+
j,
|
|
260
260
|
C
|
|
261
261
|
]);
|
|
262
262
|
import_react.useEffect(() => {
|
|
@@ -299,7 +299,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
299
299
|
a2 && setTimeout(() => a2.ref.current.focus());
|
|
300
300
|
}), J = import_react.useCallback((e2, i2, a2) => {
|
|
301
301
|
let o2 = !V.current && !a2;
|
|
302
|
-
(S.value !== void 0 && S.value === i2 || o2) && (
|
|
302
|
+
(S.value !== void 0 && S.value === i2 || o2) && (P(e2), o2 && (V.current = true));
|
|
303
303
|
}, [S.value]), Y = import_react.useCallback(() => C == null ? void 0 : C.focus(), [C]), Z = import_react.useCallback((e2, i2, a2) => {
|
|
304
304
|
let o2 = !V.current && !a2;
|
|
305
305
|
(S.value !== void 0 && S.value === i2 || o2) && L(e2);
|
|
@@ -319,13 +319,13 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
319
319
|
scope: a,
|
|
320
320
|
content: C,
|
|
321
321
|
viewport: T,
|
|
322
|
-
onViewportChange:
|
|
322
|
+
onViewportChange: D,
|
|
323
323
|
itemRefCallback: J,
|
|
324
|
-
selectedItem:
|
|
324
|
+
selectedItem: j,
|
|
325
325
|
onItemLeave: Y,
|
|
326
326
|
itemTextRefCallback: Z,
|
|
327
327
|
focusSelectedItem: U,
|
|
328
|
-
selectedItemText:
|
|
328
|
+
selectedItemText: I,
|
|
329
329
|
position: o,
|
|
330
330
|
isPositioned: z,
|
|
331
331
|
searchRef: K,
|
|
@@ -358,7 +358,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
358
358
|
...x,
|
|
359
359
|
...$,
|
|
360
360
|
onPlaced: () => B(true),
|
|
361
|
-
ref:
|
|
361
|
+
ref: O,
|
|
362
362
|
style: {
|
|
363
363
|
display: "flex",
|
|
364
364
|
flexDirection: "column",
|
|
@@ -399,7 +399,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
399
399
|
let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l2 = window.innerWidth - e2.right - c2, u3 = e2.width + l2, f3 = Math.max(u3, i2.width), p2 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p2 - f3)]);
|
|
400
400
|
d.style.minWidth = u3 + "px", d.style.right = m3 + "px";
|
|
401
401
|
}
|
|
402
|
-
let c = g(), u2 = window.innerHeight - CONTENT_MARGIN * 2, f2 = y.scrollHeight, m2 = window.getComputedStyle(p), h2 = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = h2 + v2 + f2 + C2 + S2,
|
|
402
|
+
let c = g(), u2 = window.innerHeight - CONTENT_MARGIN * 2, f2 = y.scrollHeight, m2 = window.getComputedStyle(p), h2 = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = h2 + v2 + f2 + C2 + S2, T2 = Math.min(b.offsetHeight * 5, w2), E = window.getComputedStyle(y), D = parseInt(E.paddingTop, 10), O = parseInt(E.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = u2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = h2 + v2 + M, P = w2 - N;
|
|
403
403
|
if (N <= k) {
|
|
404
404
|
let e3 = c.length > 0 && b === c[c.length - 1].ref.current;
|
|
405
405
|
d.style.bottom = "0px";
|
|
@@ -411,7 +411,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
411
411
|
let i3 = Math.max(k, h2 + y.offsetTop + (e3 ? D : 0) + j) + P;
|
|
412
412
|
d.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
|
|
413
413
|
}
|
|
414
|
-
d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight =
|
|
414
|
+
d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = T2 + "px", d.style.maxHeight = u2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => _.current = true);
|
|
415
415
|
}
|
|
416
416
|
}, [
|
|
417
417
|
g,
|
|
@@ -426,9 +426,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
426
426
|
o
|
|
427
427
|
]);
|
|
428
428
|
useLayoutEffect2(() => C(), [C]);
|
|
429
|
-
let [w,
|
|
429
|
+
let [w, T] = import_react.useState();
|
|
430
430
|
return useLayoutEffect2(() => {
|
|
431
|
-
p &&
|
|
431
|
+
p && T(window.getComputedStyle(p).zIndex);
|
|
432
432
|
}, [p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
|
|
433
433
|
scope: a,
|
|
434
434
|
contentWrapper: d,
|
|
@@ -1205,32 +1205,33 @@ const Strings = {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
};
|
|
1207
1207
|
export {
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
$
|
|
1211
|
-
$18f2051aff69b9bf$export$
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
$b5e257d569688ac6$export$
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1208
|
+
Icon as A,
|
|
1209
|
+
logNever as C,
|
|
1210
|
+
$18f2051aff69b9bf$export$a54013f0d02a8f82 as D,
|
|
1211
|
+
$18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as E,
|
|
1212
|
+
createCollection as F,
|
|
1213
|
+
X as I,
|
|
1214
|
+
ChevronUp as L,
|
|
1215
|
+
clamp as M,
|
|
1216
|
+
usePrevious as N,
|
|
1217
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as O,
|
|
1218
|
+
useDirection as P,
|
|
1219
|
+
ChevronDown as R,
|
|
1220
|
+
assertNever as S,
|
|
1221
|
+
$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as T,
|
|
1222
|
+
menuControlVariants as _,
|
|
1222
1223
|
SelectGroup as a,
|
|
1223
|
-
|
|
1224
|
+
menuSeparatorVariants as b,
|
|
1224
1225
|
SelectSeparator as c,
|
|
1225
1226
|
NativeSelect as d,
|
|
1226
1227
|
selectStyles as f,
|
|
1227
|
-
|
|
1228
|
-
|
|
1228
|
+
menuControlCheckVariants as g,
|
|
1229
|
+
menuContentCommon as h,
|
|
1229
1230
|
SelectContent as i,
|
|
1230
|
-
|
|
1231
|
-
|
|
1231
|
+
Trigger as j,
|
|
1232
|
+
$b5e257d569688ac6$export$619500959fc48b26 as k,
|
|
1232
1233
|
SelectTrigger as l,
|
|
1233
|
-
|
|
1234
|
+
MenuShortcut as m,
|
|
1234
1235
|
capitalize as n,
|
|
1235
1236
|
SelectItem as o,
|
|
1236
1237
|
MENU_ITEM_DISABLED as p,
|
|
@@ -1238,8 +1239,8 @@ export {
|
|
|
1238
1239
|
SelectLabel as s,
|
|
1239
1240
|
Strings as t,
|
|
1240
1241
|
SelectValue as u,
|
|
1241
|
-
|
|
1242
|
-
$
|
|
1243
|
-
|
|
1244
|
-
|
|
1242
|
+
menuItemVariants as v,
|
|
1243
|
+
$a916eb452884faea$export$b7a616150fdb9f44 as w,
|
|
1244
|
+
menuSubTriggerVariants as x,
|
|
1245
|
+
menuLabelVariants as y
|
|
1245
1246
|
};
|