@brett_lamy/ui 3.1.0 → 5.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/README.md +4 -4
- package/dist/components/animated-height.d.ts +3 -1
- package/dist/components/animated-height.d.ts.map +1 -1
- package/dist/components/animated-height.js +11 -11
- package/dist/components/artifact-chat-container.d.ts.map +1 -1
- package/dist/components/artifact-chat-container.js +81 -82
- package/dist/components/button.d.ts +4 -3
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +22 -9
- package/dist/components/canvas.d.ts +91 -0
- package/dist/components/canvas.d.ts.map +1 -0
- package/dist/components/canvas.js +296 -0
- package/dist/components/composer/composer-cards.d.ts +55 -0
- package/dist/components/composer/composer-cards.d.ts.map +1 -0
- package/dist/components/composer/composer-cards.js +351 -0
- package/dist/components/composer/composer.d.ts +9 -1
- package/dist/components/composer/composer.d.ts.map +1 -1
- package/dist/components/composer/composer.js +179 -154
- package/dist/components/context-menu.d.ts +25 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +127 -0
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +52 -92
- package/dist/components/cron-editor.d.ts +47 -0
- package/dist/components/cron-editor.d.ts.map +1 -0
- package/dist/components/cron-editor.js +297 -0
- package/dist/components/dropdown-menu.d.ts +3 -1
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +5 -5
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.js +1 -0
- package/dist/components/file-upload.d.ts +121 -0
- package/dist/components/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload.js +405 -0
- package/dist/components/filter-input.d.ts +22 -0
- package/dist/components/filter-input.d.ts.map +1 -0
- package/dist/components/filter-input.js +126 -0
- package/dist/components/filter.d.ts +154 -0
- package/dist/components/filter.d.ts.map +1 -0
- package/dist/components/filter.js +815 -0
- package/dist/components/floating-chat.d.ts.map +1 -1
- package/dist/components/floating-chat.js +71 -88
- package/dist/components/floating-sheet.d.ts +21 -5
- package/dist/components/floating-sheet.d.ts.map +1 -1
- package/dist/components/floating-sheet.js +113 -116
- package/dist/components/markdown-editor.d.ts +2 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +46 -45
- package/dist/components/markdown-view.d.ts +6 -1
- package/dist/components/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view.js +13 -11
- package/dist/components/navigation-stack.d.ts +3 -5
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +212 -382
- package/dist/components/passkey-enroll-dialog.d.ts +36 -0
- package/dist/components/passkey-enroll-dialog.d.ts.map +1 -0
- package/dist/components/passkey-enroll-dialog.js +234 -0
- package/dist/components/result-table.d.ts +38 -0
- package/dist/components/result-table.d.ts.map +1 -0
- package/dist/components/result-table.js +161 -0
- package/dist/components/schema-tree.d.ts +19 -0
- package/dist/components/schema-tree.d.ts.map +1 -0
- package/dist/components/schema-tree.js +172 -0
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.js +117 -143
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +4 -1
- package/dist/components/spinner-shapes.d.ts +263 -0
- package/dist/components/spinner-shapes.d.ts.map +1 -0
- package/dist/components/spinner-shapes.js +771 -0
- package/dist/components/spinner.d.ts +133 -3
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/spinner.js +445 -29
- package/dist/components/sql-console.d.ts +28 -0
- package/dist/components/sql-console.d.ts.map +1 -0
- package/dist/components/sql-console.js +348 -0
- package/dist/components/sql-editor.d.ts +47 -0
- package/dist/components/sql-editor.d.ts.map +1 -0
- package/dist/components/sql-editor.js +170 -0
- package/dist/components/tab-view.d.ts +2 -2
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.js +63 -49
- package/dist/components/tailscale-login-button.d.ts +53 -0
- package/dist/components/tailscale-login-button.d.ts.map +1 -0
- package/dist/components/tailscale-login-button.js +197 -0
- package/dist/components/time-input.d.ts +46 -0
- package/dist/components/time-input.d.ts.map +1 -0
- package/dist/components/time-input.js +258 -0
- package/dist/components/toast.d.ts +5 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +249 -125
- package/dist/components/vault-gate.d.ts +60 -0
- package/dist/components/vault-gate.d.ts.map +1 -0
- package/dist/components/vault-gate.js +382 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +86 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +129 -85
- package/dist/lib/back-history.d.ts +5 -0
- package/dist/lib/back-history.d.ts.map +1 -0
- package/dist/lib/back-history.js +44 -0
- package/dist/lib/canvas-math.d.ts +82 -0
- package/dist/lib/canvas-math.d.ts.map +1 -0
- package/dist/lib/canvas-math.js +226 -0
- package/dist/lib/controllable-state.d.ts +4 -0
- package/dist/lib/controllable-state.d.ts.map +1 -0
- package/dist/lib/controllable-state.js +11 -0
- package/dist/lib/cron.d.ts +55 -0
- package/dist/lib/cron.d.ts.map +1 -0
- package/dist/lib/cron.js +269 -0
- package/dist/lib/edge-swipe.d.ts +36 -0
- package/dist/lib/edge-swipe.d.ts.map +1 -0
- package/dist/lib/edge-swipe.js +73 -0
- package/dist/lib/file-upload.d.ts +187 -0
- package/dist/lib/file-upload.d.ts.map +1 -0
- package/dist/lib/file-upload.js +349 -0
- package/dist/lib/filter-query.d.ts +90 -0
- package/dist/lib/filter-query.d.ts.map +1 -0
- package/dist/lib/filter-query.js +459 -0
- package/dist/lib/filter.d.ts +120 -0
- package/dist/lib/filter.d.ts.map +1 -0
- package/dist/lib/filter.js +399 -0
- package/dist/lib/format-bytes.d.ts +3 -0
- package/dist/lib/format-bytes.d.ts.map +1 -0
- package/dist/lib/format-bytes.js +16 -0
- package/dist/lib/gpu-cron.d.ts +51 -0
- package/dist/lib/gpu-cron.d.ts.map +1 -0
- package/dist/lib/gpu-cron.js +81 -0
- package/dist/lib/gpu-query/featurize.d.ts +19 -0
- package/dist/lib/gpu-query/featurize.d.ts.map +1 -0
- package/dist/lib/gpu-query/featurize.js +88 -0
- package/dist/lib/gpu-query/index.d.ts +73 -0
- package/dist/lib/gpu-query/index.d.ts.map +1 -0
- package/dist/lib/gpu-query/index.js +117 -0
- package/dist/lib/gpu-query/kernel.wgsl.d.ts +30 -0
- package/dist/lib/gpu-query/kernel.wgsl.d.ts.map +1 -0
- package/dist/lib/gpu-query/model.d.ts +8 -0
- package/dist/lib/gpu-query/model.d.ts.map +1 -0
- package/dist/lib/gpu-query/model.js +91 -0
- package/dist/lib/gpu-query/schema.d.ts +40 -0
- package/dist/lib/gpu-query/schema.d.ts.map +1 -0
- package/dist/lib/gpu-query/schema.js +0 -0
- package/dist/lib/gpu-query/webgpu.d.ts +12 -0
- package/dist/lib/gpu-query/webgpu.d.ts.map +1 -0
- package/dist/lib/gpu-query/weights.d.ts +17 -0
- package/dist/lib/gpu-query/weights.d.ts.map +1 -0
- package/dist/lib/gpu-query/weights.js +40 -0
- package/dist/lib/gpu-query/weights.json.d.ts +3 -0
- package/dist/lib/gpu-query/weights2.js +25 -0
- package/dist/lib/gpu-time.d.ts +77 -0
- package/dist/lib/gpu-time.d.ts.map +1 -0
- package/dist/lib/gpu-time.js +260 -0
- package/dist/lib/morph-path.d.ts +22 -0
- package/dist/lib/morph-path.d.ts.map +1 -0
- package/dist/lib/morph-path.js +42 -0
- package/dist/lib/passkey.d.ts +120 -0
- package/dist/lib/passkey.d.ts.map +1 -0
- package/dist/lib/passkey.js +186 -0
- package/dist/lib/persistent-state.d.ts +9 -0
- package/dist/lib/persistent-state.d.ts.map +1 -0
- package/dist/lib/persistent-state.js +37 -0
- package/dist/lib/pglite-core.d.ts +219 -0
- package/dist/lib/pglite-core.d.ts.map +1 -0
- package/dist/lib/pglite-core.js +273 -0
- package/dist/lib/pglite-files.d.ts +7 -0
- package/dist/lib/pglite-files.d.ts.map +1 -0
- package/dist/lib/pglite-files.js +17 -0
- package/dist/lib/pglite-schema.d.ts +58 -0
- package/dist/lib/pglite-schema.d.ts.map +1 -0
- package/dist/lib/pglite-schema.js +105 -0
- package/dist/lib/pglite-storage.d.ts +33 -0
- package/dist/lib/pglite-storage.d.ts.map +1 -0
- package/dist/lib/pglite-storage.js +55 -0
- package/dist/lib/pglite-transfer.d.ts +53 -0
- package/dist/lib/pglite-transfer.d.ts.map +1 -0
- package/dist/lib/pglite-transfer.js +126 -0
- package/dist/lib/pglite.d.ts +106 -0
- package/dist/lib/pglite.d.ts.map +1 -0
- package/dist/lib/pglite.js +298 -0
- package/dist/lib/pull-to-refresh.d.ts +24 -0
- package/dist/lib/pull-to-refresh.d.ts.map +1 -0
- package/dist/lib/pull-to-refresh.js +74 -0
- package/dist/lib/scroll-hidden.d.ts +6 -0
- package/dist/lib/scroll-hidden.d.ts.map +1 -0
- package/dist/lib/scroll-hidden.js +21 -0
- package/dist/lib/sheet-drag.d.ts +10 -2
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/sheet-drag.js +72 -69
- package/dist/lib/sql-format.d.ts +62 -0
- package/dist/lib/sql-format.d.ts.map +1 -0
- package/dist/lib/sql-format.js +175 -0
- package/dist/lib/sql-lex.d.ts +25 -0
- package/dist/lib/sql-lex.d.ts.map +1 -0
- package/dist/lib/sql-lex.js +135 -0
- package/dist/lib/tab-lock.d.ts +28 -0
- package/dist/lib/tab-lock.d.ts.map +1 -0
- package/dist/lib/tab-lock.js +80 -0
- package/dist/lib/tailscale-connect.d.ts +56 -0
- package/dist/lib/tailscale-connect.d.ts.map +1 -0
- package/dist/lib/tailscale-connect.js +99 -0
- package/dist/lib/tailscale-fake.d.ts +33 -0
- package/dist/lib/tailscale-fake.d.ts.map +1 -0
- package/dist/lib/tailscale-fake.js +80 -0
- package/dist/lib/tailscale-policy.d.ts +71 -0
- package/dist/lib/tailscale-policy.d.ts.map +1 -0
- package/dist/lib/tailscale-policy.js +244 -0
- package/dist/lib/tailscale-react.d.ts +20 -0
- package/dist/lib/tailscale-react.d.ts.map +1 -0
- package/dist/lib/tailscale-react.js +37 -0
- package/dist/lib/tailscale-router/bridge.d.ts +60 -0
- package/dist/lib/tailscale-router/bridge.d.ts.map +1 -0
- package/dist/lib/tailscale-router/bridge.js +198 -0
- package/dist/lib/tailscale-router/react.d.ts +19 -0
- package/dist/lib/tailscale-router/react.d.ts.map +1 -0
- package/dist/lib/tailscale-router/react.js +52 -0
- package/dist/lib/tailscale.d.ts +204 -0
- package/dist/lib/tailscale.d.ts.map +1 -0
- package/dist/lib/tailscale.js +443 -0
- package/dist/lib/title-flight.d.ts +34 -0
- package/dist/lib/title-flight.d.ts.map +1 -0
- package/dist/lib/title-flight.js +123 -0
- package/dist/lib/vault-react.d.ts +49 -0
- package/dist/lib/vault-react.d.ts.map +1 -0
- package/dist/lib/vault-react.js +196 -0
- package/dist/lib/vault-storage.d.ts +30 -0
- package/dist/lib/vault-storage.d.ts.map +1 -0
- package/dist/lib/vault-storage.js +105 -0
- package/dist/lib/vault.d.ts +200 -0
- package/dist/lib/vault.d.ts.map +1 -0
- package/dist/lib/vault.js +641 -0
- package/dist/tailscale-sw.js +332 -0
- package/package.json +35 -5
- package/dist/components/icon-button.d.ts +0 -19
- package/dist/components/icon-button.d.ts.map +0 -1
- package/dist/components/icon-button.js +0 -31
- package/dist/components/measure-h.d.ts +0 -7
- package/dist/components/measure-h.d.ts.map +0 -1
- package/dist/components/measure-h.js +0 -20
- package/dist/components/snap-sheet.d.ts +0 -13
- package/dist/components/snap-sheet.d.ts.map +0 -1
- package/dist/components/snap-sheet.js +0 -100
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { DropdownMenuItem, DropdownMenuLabel, DropdownMenuSection, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuContentProps } from './dropdown-menu';
|
|
3
|
+
export interface ContextMenuProps extends ComponentProps<'div'> {
|
|
4
|
+
/** Turns the menu off: the browser's own context menu shows instead. */
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
/** Called when the menu opens or closes. */
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
/** How long a touch or pen press has to hold before it opens the menu (ms). Default 500. */
|
|
9
|
+
longPressDelay?: number;
|
|
10
|
+
/** Where the menu hangs: `pointer` (default) at the pointer; `top` or `bottom` at the pointer's x on the area's top
|
|
11
|
+
* or bottom edge, for a menu that should clear the area (a dock's menu above it) — pair with `placement` on the
|
|
12
|
+
* content. */
|
|
13
|
+
anchor?: 'pointer' | 'top' | 'bottom';
|
|
14
|
+
}
|
|
15
|
+
export declare function ContextMenu({ className, children, isDisabled, onOpenChange, longPressDelay, anchor, onContextMenu, onKeyDown, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onClickCapture, ...props }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/** The menu: place it inside a `ContextMenu`. Takes everything `DropdownMenuContent` does; it opens at the pointer
|
|
17
|
+
* (below and to its right, flipping to stay on screen) — `placement` changes that. */
|
|
18
|
+
export declare function ContextMenuContent<T extends object>({ placement, ...props }: DropdownMenuContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const ContextMenuItem: typeof DropdownMenuItem;
|
|
20
|
+
export declare const ContextMenuSection: typeof DropdownMenuSection;
|
|
21
|
+
export declare const ContextMenuLabel: typeof DropdownMenuLabel;
|
|
22
|
+
export declare const ContextMenuSeparator: typeof DropdownMenuSeparator;
|
|
23
|
+
export declare const ContextMenuShortcut: typeof DropdownMenuShortcut;
|
|
24
|
+
export declare const ContextMenuSub: typeof DropdownMenuSub;
|
|
25
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAC8B,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,qBAAqB,EAClH,oBAAoB,EAAE,eAAe,EAAE,KAAK,wBAAwB,EACrE,MAAM,+BAA+B,CAAC;AAsBvC,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;mBAEe;IACf,MAAM,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;CACvC;AAKD,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,cAAoB,EAAE,MAAkB,EACvF,aAAa,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,GAAG,KAAK,EAC/G,EAAE,gBAAgB,2CAuHlB;AAED;uFACuF;AACvF,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAA0B,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CAkBzH;AAED,eAAO,MAAM,eAAe,yBAAmB,CAAC;AAChD,eAAO,MAAM,kBAAkB,4BAAsB,CAAC;AACtD,eAAO,MAAM,gBAAgB,0BAAoB,CAAC;AAClD,eAAO,MAAM,oBAAoB,8BAAwB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,6BAAuB,CAAC;AACxD,eAAO,MAAM,cAAc,wBAAkB,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuLabel as i, DropdownMenuSection as a, DropdownMenuSeparator as o, DropdownMenuShortcut as s, DropdownMenuSub as c } from "./dropdown-menu.js";
|
|
4
|
+
import { PlainButton as l } from "./plain-button.js";
|
|
5
|
+
import { createContext as u, use as d, useEffect as f, useRef as p, useState as m } from "react";
|
|
6
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/context-menu.tsx
|
|
8
|
+
var _ = u(null), v = 8;
|
|
9
|
+
function y({ className: t, children: n, isDisabled: r, onOpenChange: i, longPressDelay: a = 500, anchor: o = "pointer", onContextMenu: s, onKeyDown: c, onPointerDown: l, onPointerMove: u, onPointerUp: d, onPointerCancel: g, onClickCapture: y, ...b }) {
|
|
10
|
+
let x = p(null), [S, C] = m(null), w = p(!1), T = p(null), E = p(!1), D = (e, t) => {
|
|
11
|
+
if (w.current || !x.current) return;
|
|
12
|
+
let n = x.current.getBoundingClientRect();
|
|
13
|
+
w.current = !0, C({
|
|
14
|
+
x: e - n.left,
|
|
15
|
+
y: o === "top" ? 0 : o === "bottom" ? n.height : t - n.top
|
|
16
|
+
}), i?.(!0);
|
|
17
|
+
}, O = () => {
|
|
18
|
+
w.current = !1, C(null), i?.(!1);
|
|
19
|
+
}, k = p(!1);
|
|
20
|
+
f(() => {
|
|
21
|
+
if (!S) return;
|
|
22
|
+
let e = (e) => {
|
|
23
|
+
if (k.current || (e.preventDefault(), e.target.closest?.("[data-slot=dropdown-menu]"))) return;
|
|
24
|
+
e.stopPropagation(), O();
|
|
25
|
+
let t = [...document.querySelectorAll("[data-slot=context-menu]")].filter((t) => {
|
|
26
|
+
let n = t.getBoundingClientRect();
|
|
27
|
+
return e.clientX >= n.left && e.clientX <= n.right && e.clientY >= n.top && e.clientY <= n.bottom;
|
|
28
|
+
});
|
|
29
|
+
t.sort((e, t) => e.offsetWidth * e.offsetHeight - t.offsetWidth * t.offsetHeight), k.current = !0;
|
|
30
|
+
try {
|
|
31
|
+
t[0]?.dispatchEvent(new MouseEvent("contextmenu", {
|
|
32
|
+
bubbles: !0,
|
|
33
|
+
cancelable: !0,
|
|
34
|
+
composed: !0,
|
|
35
|
+
button: 2,
|
|
36
|
+
clientX: e.clientX,
|
|
37
|
+
clientY: e.clientY
|
|
38
|
+
}));
|
|
39
|
+
} finally {
|
|
40
|
+
k.current = !1;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return document.addEventListener("contextmenu", e, !0), () => document.removeEventListener("contextmenu", e, !0);
|
|
44
|
+
}, [S]);
|
|
45
|
+
let A = () => {
|
|
46
|
+
T.current && clearTimeout(T.current.timer), T.current = null;
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ h(_.Provider, {
|
|
49
|
+
value: {
|
|
50
|
+
point: S,
|
|
51
|
+
close: O
|
|
52
|
+
},
|
|
53
|
+
children: /* @__PURE__ */ h("div", {
|
|
54
|
+
ref: x,
|
|
55
|
+
"data-slot": "context-menu",
|
|
56
|
+
"data-open": S ? "" : void 0,
|
|
57
|
+
...b,
|
|
58
|
+
className: e("relative", !r && "[-webkit-touch-callout:none]", t),
|
|
59
|
+
onContextMenu: (e) => {
|
|
60
|
+
s?.(e), !(r || e.defaultPrevented) && (e.preventDefault(), e.currentTarget.contains(e.target) && D(e.clientX, e.clientY));
|
|
61
|
+
},
|
|
62
|
+
onKeyDown: (e) => {
|
|
63
|
+
if (c?.(e), !(r || e.defaultPrevented) && (e.key === "ContextMenu" || e.shiftKey && e.key === "F10")) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
let t = e.target.getBoundingClientRect();
|
|
66
|
+
D(t.left, t.bottom);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
onPointerDown: (e) => {
|
|
70
|
+
if (l?.(e), r || e.pointerType === "mouse" || !e.isPrimary) return;
|
|
71
|
+
A();
|
|
72
|
+
let { clientX: t, clientY: n, pointerId: i } = e, o = e.currentTarget;
|
|
73
|
+
T.current = {
|
|
74
|
+
x: t,
|
|
75
|
+
y: n,
|
|
76
|
+
timer: setTimeout(() => {
|
|
77
|
+
T.current = null, D(t, n), E.current = !0;
|
|
78
|
+
try {
|
|
79
|
+
o.setPointerCapture(i);
|
|
80
|
+
} catch {}
|
|
81
|
+
}, a)
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
onPointerMove: (e) => {
|
|
85
|
+
u?.(e);
|
|
86
|
+
let t = T.current;
|
|
87
|
+
t && Math.hypot(e.clientX - t.x, e.clientY - t.y) > v && A();
|
|
88
|
+
},
|
|
89
|
+
onPointerUp: (e) => {
|
|
90
|
+
d?.(e), A();
|
|
91
|
+
},
|
|
92
|
+
onPointerCancel: (e) => {
|
|
93
|
+
g?.(e), A();
|
|
94
|
+
},
|
|
95
|
+
onClickCapture: (e) => {
|
|
96
|
+
y?.(e), E.current && (E.current = !1, e.preventDefault(), e.stopPropagation());
|
|
97
|
+
},
|
|
98
|
+
children: n
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function b({ placement: e = "bottom start", ...r }) {
|
|
103
|
+
let i = d(_);
|
|
104
|
+
if (!i) throw Error("ContextMenuContent must be used inside <ContextMenu>");
|
|
105
|
+
let { point: a, close: o } = i;
|
|
106
|
+
return /* @__PURE__ */ g(t, {
|
|
107
|
+
isOpen: a !== null,
|
|
108
|
+
onOpenChange: (e) => {
|
|
109
|
+
e || o();
|
|
110
|
+
},
|
|
111
|
+
children: [/* @__PURE__ */ h(l, {
|
|
112
|
+
inert: !0,
|
|
113
|
+
excludeFromTabOrder: !0,
|
|
114
|
+
className: "pointer-events-none absolute size-0 opacity-0",
|
|
115
|
+
style: {
|
|
116
|
+
left: a?.x ?? 0,
|
|
117
|
+
top: a?.y ?? 0
|
|
118
|
+
}
|
|
119
|
+
}), /* @__PURE__ */ h(n, {
|
|
120
|
+
placement: e,
|
|
121
|
+
...r
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
var x = r, S = a, C = i, w = o, T = s, E = c;
|
|
126
|
+
//#endregion
|
|
127
|
+
export { y as ContextMenu, b as ContextMenuContent, x as ContextMenuItem, C as ContextMenuLabel, S as ContextMenuSection, w as ContextMenuSeparator, T as ContextMenuShortcut, E as ContextMenuSub };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credenza.d.ts","sourceRoot":"","sources":["../../src/components/credenza.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"credenza.d.ts","sourceRoot":"","sources":["../../src/components/credenza.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,aAAa,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI/H,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,mFAAmF;AACnF,eAAO,MAAM,gBAAgB;;8EAW5B,CAAC;AAoBF,MAAM,WAAW,aAAc,SAAQ,YAAY,CAAC,OAAO,gBAAgB,CAAC;IAC1E,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,aAAa,2CAiI3H"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { cn as e } from "../lib/utils.js";
|
|
3
3
|
import { fades as t, springs as n, useMotion as r } from "../lib/motion.js";
|
|
4
4
|
import { Icon as i } from "../lib/icon.js";
|
|
5
|
-
import {
|
|
6
|
-
import { useEffect as
|
|
5
|
+
import { AnimatedHeight as a, ContentSwap as o } from "./animated-height.js";
|
|
6
|
+
import { useEffect as s, useId as c, useRef as l } from "react";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
import { Button as f } from "react-aria-components";
|
|
9
9
|
import { cva as p } from "class-variance-authority";
|
|
@@ -19,44 +19,44 @@ function _(e) {
|
|
|
19
19
|
return [...e.querySelectorAll(h)].filter((e) => e.getClientRects().length > 0 && !e.closest("[inert],[aria-hidden=\"true\"]"));
|
|
20
20
|
}
|
|
21
21
|
function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, compact: S, children: C, className: w, style: T }) {
|
|
22
|
-
let E = r(),
|
|
22
|
+
let E = r(), D = E.useReducedMotion(), O = l([String(b)]), k = l({
|
|
23
23
|
view: String(b),
|
|
24
24
|
dir: 0
|
|
25
25
|
});
|
|
26
|
-
if (
|
|
27
|
-
let e = String(b), t =
|
|
28
|
-
t >= 0 ? (
|
|
26
|
+
if (k.current.view !== String(b)) {
|
|
27
|
+
let e = String(b), t = O.current.indexOf(e);
|
|
28
|
+
t >= 0 ? (O.current = O.current.slice(0, t + 1), k.current = {
|
|
29
29
|
view: e,
|
|
30
30
|
dir: -1
|
|
31
|
-
}) : (
|
|
31
|
+
}) : (O.current = [...O.current, e], k.current = {
|
|
32
32
|
view: e,
|
|
33
33
|
dir: 1
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
let
|
|
39
|
-
|
|
36
|
+
let A = D ? 0 : k.current.dir, j = l(h);
|
|
37
|
+
j.current = h;
|
|
38
|
+
let M = l(null), N = c(), P = l(!p);
|
|
39
|
+
s(() => {
|
|
40
40
|
if (!p) {
|
|
41
|
-
|
|
41
|
+
P.current = !0;
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
let e = {};
|
|
45
45
|
g.push(e);
|
|
46
|
-
let t = () => g[g.length - 1] === e, n = document.activeElement, r = () =>
|
|
47
|
-
let e =
|
|
46
|
+
let t = () => g[g.length - 1] === e, n = document.activeElement, r = () => M.current?.parentElement ?? null, i = (e) => !(e instanceof Node) || e === document.body || e === document.documentElement || e === document, a = (e) => e instanceof Node && !!M.current?.contains(e), o = () => {
|
|
47
|
+
let e = M.current;
|
|
48
48
|
e && (e.querySelector("[data-autofocus]") ?? e).focus({ preventScroll: !0 });
|
|
49
49
|
}, s = new MutationObserver(() => {
|
|
50
|
-
t() && i(document.activeElement) &&
|
|
50
|
+
t() && i(document.activeElement) && M.current?.isConnected && o();
|
|
51
51
|
}), c = !1, l = requestAnimationFrame(() => {
|
|
52
|
-
c =
|
|
52
|
+
c = P.current || !!(n && r()?.contains(n)), c && o(), c && M.current && s.observe(M.current, {
|
|
53
53
|
childList: !0,
|
|
54
54
|
subtree: !0
|
|
55
55
|
});
|
|
56
56
|
}), u = (e) => {
|
|
57
57
|
t() && !a(e.target) && e.target instanceof Node && r()?.contains(e.target) && o();
|
|
58
58
|
}, d = (e) => {
|
|
59
|
-
!t() || e.defaultPrevented || a(e.target) || !(i(e.target) || e.target instanceof Node && r()?.contains(e.target)) || (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(),
|
|
59
|
+
!t() || e.defaultPrevented || a(e.target) || !(i(e.target) || e.target instanceof Node && r()?.contains(e.target)) || (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), j.current()) : e.key === "Tab" && (e.preventDefault(), o()));
|
|
60
60
|
};
|
|
61
61
|
return document.addEventListener("focusin", u), window.addEventListener("keydown", d), () => {
|
|
62
62
|
cancelAnimationFrame(l), s.disconnect(), g.splice(g.indexOf(e), 1), document.removeEventListener("focusin", u), window.removeEventListener("keydown", d);
|
|
@@ -64,16 +64,16 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
64
64
|
n?.isConnected && !a(n) && (i(t) || a(t)) && n.focus({ preventScroll: !0 });
|
|
65
65
|
};
|
|
66
66
|
}, [p]);
|
|
67
|
-
let
|
|
68
|
-
ref:
|
|
67
|
+
let F = {
|
|
68
|
+
ref: M,
|
|
69
69
|
role: "dialog",
|
|
70
70
|
"aria-modal": !0,
|
|
71
|
-
"aria-labelledby":
|
|
71
|
+
"aria-labelledby": N,
|
|
72
72
|
tabIndex: -1,
|
|
73
73
|
onKeyDown: (e) => {
|
|
74
74
|
if (e.defaultPrevented) return;
|
|
75
75
|
if (e.key === "Escape") {
|
|
76
|
-
e.preventDefault(), e.stopPropagation(),
|
|
76
|
+
e.preventDefault(), e.stopPropagation(), j.current();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
if (e.key !== "Tab") return;
|
|
@@ -85,7 +85,7 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
85
85
|
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
86
86
|
e.shiftKey && (i === n || i === e.currentTarget) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, I = (e, t, n) => /* @__PURE__ */ u(f, {
|
|
89
89
|
onPress: t,
|
|
90
90
|
"aria-label": n,
|
|
91
91
|
className: "bl-btn grid size-[30px] shrink-0 cursor-pointer place-items-center rounded-full border-0 bg-secondary p-0 text-muted-foreground",
|
|
@@ -94,12 +94,12 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
94
94
|
size: 15,
|
|
95
95
|
sw: 2.6
|
|
96
96
|
})
|
|
97
|
-
}),
|
|
97
|
+
}), L = E.motion, R = E.AnimatePresence, z = D ? { duration: 0 } : n.tray, B = /* @__PURE__ */ d("div", {
|
|
98
98
|
className: "relative z-2 flex items-center gap-2.5 px-[14px] pt-[14px] pb-1.5",
|
|
99
99
|
children: [
|
|
100
|
-
/* @__PURE__ */ u(
|
|
100
|
+
/* @__PURE__ */ u(R, {
|
|
101
101
|
initial: !1,
|
|
102
|
-
children: y ? /* @__PURE__ */ u(
|
|
102
|
+
children: y ? /* @__PURE__ */ u(L.div, {
|
|
103
103
|
initial: {
|
|
104
104
|
opacity: 0,
|
|
105
105
|
scale: .4,
|
|
@@ -127,17 +127,17 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
127
127
|
opacity: t.in
|
|
128
128
|
},
|
|
129
129
|
className: "grid shrink-0 place-items-center overflow-hidden",
|
|
130
|
-
children:
|
|
130
|
+
children: I("chevL", v, "Back")
|
|
131
131
|
}, "bk") : null
|
|
132
132
|
}),
|
|
133
133
|
/* @__PURE__ */ u("div", {
|
|
134
|
-
id:
|
|
134
|
+
id: N,
|
|
135
135
|
className: "relative h-[26px] min-w-0 flex-1",
|
|
136
|
-
children: /* @__PURE__ */ u(
|
|
136
|
+
children: /* @__PURE__ */ u(R, {
|
|
137
137
|
initial: !1,
|
|
138
|
-
custom:
|
|
139
|
-
children: /* @__PURE__ */ u(
|
|
140
|
-
custom:
|
|
138
|
+
custom: A,
|
|
139
|
+
children: /* @__PURE__ */ u(L.div, {
|
|
140
|
+
custom: A,
|
|
141
141
|
variants: {
|
|
142
142
|
enter: (e) => ({
|
|
143
143
|
opacity: 0,
|
|
@@ -171,60 +171,20 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
171
171
|
}, String(x))
|
|
172
172
|
})
|
|
173
173
|
}),
|
|
174
|
-
|
|
174
|
+
I("x", h, "Close")
|
|
175
175
|
]
|
|
176
|
-
}),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
children: /* @__PURE__ */ u(z.div, {
|
|
186
|
-
custom: M,
|
|
187
|
-
variants: {
|
|
188
|
-
enter: (e) => ({
|
|
189
|
-
opacity: 0,
|
|
190
|
-
x: e * 40,
|
|
191
|
-
scale: e ? 1 : .97,
|
|
192
|
-
filter: "blur(6px)"
|
|
193
|
-
}),
|
|
194
|
-
center: {
|
|
195
|
-
opacity: 1,
|
|
196
|
-
x: 0,
|
|
197
|
-
scale: 1,
|
|
198
|
-
filter: "blur(0px)"
|
|
199
|
-
},
|
|
200
|
-
exit: (e) => ({
|
|
201
|
-
opacity: 0,
|
|
202
|
-
x: e * -40,
|
|
203
|
-
scale: e ? 1 : .97,
|
|
204
|
-
filter: "blur(6px)",
|
|
205
|
-
transition: {
|
|
206
|
-
...t.out,
|
|
207
|
-
x: n.smooth
|
|
208
|
-
}
|
|
209
|
-
})
|
|
210
|
-
},
|
|
211
|
-
initial: "enter",
|
|
212
|
-
animate: "center",
|
|
213
|
-
exit: "exit",
|
|
214
|
-
transition: {
|
|
215
|
-
default: t.in,
|
|
216
|
-
x: n.smooth,
|
|
217
|
-
scale: n.smooth
|
|
218
|
-
},
|
|
219
|
-
className: "w-full",
|
|
220
|
-
children: /* @__PURE__ */ u(a, {
|
|
221
|
-
onH: O,
|
|
222
|
-
children: C
|
|
223
|
-
})
|
|
224
|
-
}, String(b))
|
|
176
|
+
}), V = /* @__PURE__ */ u(a, {
|
|
177
|
+
spring: "tray",
|
|
178
|
+
className: "relative",
|
|
179
|
+
children: /* @__PURE__ */ u(o, {
|
|
180
|
+
id: String(b),
|
|
181
|
+
direction: k.current.dir,
|
|
182
|
+
distance: 40,
|
|
183
|
+
blur: 6,
|
|
184
|
+
children: C
|
|
225
185
|
})
|
|
226
186
|
});
|
|
227
|
-
return /* @__PURE__ */ d(
|
|
187
|
+
return /* @__PURE__ */ d(R, { children: [p ? /* @__PURE__ */ u(L.div, {
|
|
228
188
|
onClick: h,
|
|
229
189
|
initial: { opacity: 0 },
|
|
230
190
|
animate: { opacity: 1 },
|
|
@@ -234,14 +194,14 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
234
194
|
},
|
|
235
195
|
transition: t.in,
|
|
236
196
|
className: "absolute inset-0 z-400 bg-overlay"
|
|
237
|
-
}, "scrim") : null, p ? S ? /* @__PURE__ */ d(
|
|
197
|
+
}, "scrim") : null, p ? S ? /* @__PURE__ */ d(L.div, {
|
|
238
198
|
"data-slot": "credenza",
|
|
239
|
-
...
|
|
199
|
+
...F,
|
|
240
200
|
className: e(m({ compact: !0 }), w),
|
|
241
201
|
initial: { y: "112%" },
|
|
242
202
|
animate: { y: "0%" },
|
|
243
203
|
exit: { y: "118%" },
|
|
244
|
-
transition:
|
|
204
|
+
transition: z,
|
|
245
205
|
drag: "y",
|
|
246
206
|
dragConstraints: {
|
|
247
207
|
top: 0,
|
|
@@ -252,7 +212,7 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
252
212
|
bottom: .55
|
|
253
213
|
},
|
|
254
214
|
onDragEnd: (e, t) => {
|
|
255
|
-
(t.offset.y > 120 || t.velocity.y > 500) &&
|
|
215
|
+
(t.offset.y > 120 || t.velocity.y > 500) && j.current();
|
|
256
216
|
},
|
|
257
217
|
style: T,
|
|
258
218
|
children: [
|
|
@@ -260,12 +220,12 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
260
220
|
"aria-hidden": "true",
|
|
261
221
|
className: "absolute top-[7px] left-1/2 z-3 h-[5px] w-[38px] -translate-x-1/2 rounded-[3px] bg-secondary-strong"
|
|
262
222
|
}),
|
|
263
|
-
|
|
264
|
-
|
|
223
|
+
B,
|
|
224
|
+
V
|
|
265
225
|
]
|
|
266
|
-
}, "tray") : /* @__PURE__ */ d(
|
|
226
|
+
}, "tray") : /* @__PURE__ */ d(L.div, {
|
|
267
227
|
"data-slot": "credenza",
|
|
268
|
-
...
|
|
228
|
+
...F,
|
|
269
229
|
className: e(m({ compact: !1 }), w),
|
|
270
230
|
initial: {
|
|
271
231
|
x: "-50%",
|
|
@@ -285,9 +245,9 @@ function v({ open: p, onClose: h, onBack: v, canBack: y, view: b, title: x, comp
|
|
|
285
245
|
opacity: 0,
|
|
286
246
|
scale: .97
|
|
287
247
|
},
|
|
288
|
-
transition:
|
|
248
|
+
transition: z,
|
|
289
249
|
style: T,
|
|
290
|
-
children: [
|
|
250
|
+
children: [B, V]
|
|
291
251
|
}, "dlg") : null] });
|
|
292
252
|
}
|
|
293
253
|
//#endregion
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const cronEditorVariants: (props?: ({
|
|
4
|
+
variant?: "card" | "plain" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface CronPreset {
|
|
7
|
+
label: string;
|
|
8
|
+
/** The 5-field expression the chip sets. */
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
/** The preset chips shown unless `presets` says otherwise. */
|
|
12
|
+
export declare const CRON_PRESETS: readonly CronPreset[];
|
|
13
|
+
export interface CronEditorProps extends Omit<ComponentProps<'div'>, 'defaultValue' | 'onChange'>, VariantProps<typeof cronEditorVariants> {
|
|
14
|
+
/** The expression (controlled). */
|
|
15
|
+
value?: string;
|
|
16
|
+
/** The initial expression when uncontrolled. */
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
/** Called with the new expression on every edit, a preset press, and every answer of the plain-English box. */
|
|
19
|
+
onValueChange?: (expression: string) => void;
|
|
20
|
+
/** Label of the expression field. Default: "Cron expression". */
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
/** Help text under the expression field. */
|
|
23
|
+
description?: ReactNode;
|
|
24
|
+
/** Form field name for the expression. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** IANA zone the expression is read in for "Next runs". Default: this device's zone. */
|
|
27
|
+
timeZone?: string;
|
|
28
|
+
/** The moment "Next runs" counts from: a Date, epoch milliseconds or an ISO string. Default: now (read after
|
|
29
|
+
mount, so the server and client render the same HTML, and refreshed every 30 seconds). */
|
|
30
|
+
from?: Date | number | string;
|
|
31
|
+
/** How many upcoming runs to list. Default: 5. */
|
|
32
|
+
nextRunCount?: number;
|
|
33
|
+
/** Preset chips; `false` hides them. Default: `CRON_PRESETS`. */
|
|
34
|
+
presets?: readonly CronPreset[] | false;
|
|
35
|
+
/** Where WebGPU is available, edit through the plain-English box alone (the raw expression editor is the fallback).
|
|
36
|
+
`false` never loads gpu-cron and always shows the raw expression. Default: true. */
|
|
37
|
+
naturalLanguage?: boolean;
|
|
38
|
+
/** Label of the plain-English box. Default: "Describe the schedule". */
|
|
39
|
+
naturalLanguageLabel?: ReactNode;
|
|
40
|
+
/** BCP 47 locale for the dates in "Next runs". Default: the browser's. */
|
|
41
|
+
locale?: string;
|
|
42
|
+
/** Milliseconds the plain-English box waits after typing before asking the model. Default: 0 (every keystroke). */
|
|
43
|
+
debounceMs?: number;
|
|
44
|
+
isDisabled?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function CronEditor({ value, defaultValue, onValueChange, label, description, name, timeZone, from, nextRunCount, presets, naturalLanguage, naturalLanguageLabel, locale, debounceMs, isDisabled, variant, className, ...rest }: CronEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
//# sourceMappingURL=cron-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron-editor.d.ts","sourceRoot":"","sources":["../../src/components/cron-editor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjG,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAqClE,eAAO,MAAM,kBAAkB;;8EAS7B,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8DAA8D;AAC9D,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAO7C,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACxI,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+GAA+G;IAC/G,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,iEAAiE;IACjE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;iGAC6F;IAC7F,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9B,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,OAAO,CAAC,EAAE,SAAS,UAAU,EAAE,GAAG,KAAK,CAAC;IACxC;2FACuF;IACvF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wEAAwE;IACxE,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mHAAmH;IACnH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA0CD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,KAAyB,EACzB,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,YAAgB,EAChB,OAAsB,EACtB,eAAsB,EACtB,oBAA8C,EAC9C,MAAM,EACN,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACR,EAAE,eAAe,2CAqIjB"}
|