@chaibuilder/sdk 1.2.89 → 1.2.90
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 -2
- package/dist/{CodeEditor-nUyO-Y3p.cjs → CodeEditor-gqhS0hpB.cjs} +1 -1
- package/dist/{CodeEditor-tlLB_emd.js → CodeEditor-t2oVfSyK.js} +1 -1
- package/dist/Topbar-s9YVXp9Z.cjs +1 -0
- package/dist/Topbar-x0tjZaWC.js +123 -0
- package/dist/{UnsplashImages-7f-L_-9x.js → UnsplashImages-965l8pGL.js} +1 -1
- package/dist/{UnsplashImages-y5dtRWZL.cjs → UnsplashImages-DRQaQoM-.cjs} +1 -1
- package/dist/{UploadImages--AV-U7uF.cjs → UploadImages-CumBJ3oE.cjs} +1 -1
- package/dist/{UploadImages-hXRywPyk.js → UploadImages-glp4ZyQm.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +11 -28
- package/dist/core.js +51 -56
- package/dist/{index-dsyGOJ1S.cjs → index-BuZrwlQG.cjs} +3 -3
- package/dist/{index-dee0FZm6.js → index-qptv-vi2.js} +55 -87
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +302 -243
- package/package.json +3 -2
- package/dist/Topbar-4sclJZrd.js +0 -144
- package/dist/Topbar-z2HUDRQZ.cjs +0 -1
- package/dist/select-Siy0CQZ0.cjs +0 -1
- package/dist/select-nNzJ_AuC.js +0 -75
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"author": "Suraj Air",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"homepage": "https://chaibuilder.com",
|
|
8
|
-
"version": "1.2.
|
|
8
|
+
"version": "1.2.90",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"e2e": "playwright test",
|
|
28
28
|
"e2e:report": "playwright show-report",
|
|
29
29
|
"e2e:ui": "playwright test --ui",
|
|
30
|
-
"docs": "typedoc --plugin typedoc-
|
|
30
|
+
"docs": "typedoc --plugin typedoc-plugin-clarity",
|
|
31
31
|
"prepare": "husky"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
"ts-node": "^10.9.2",
|
|
181
181
|
"typedoc": "^0.26.7",
|
|
182
182
|
"typedoc-github-theme": "^0.1.2",
|
|
183
|
+
"typedoc-plugin-clarity": "^1.6.0",
|
|
183
184
|
"typescript": "^5.2.2",
|
|
184
185
|
"vite": "^5.0.12",
|
|
185
186
|
"vite-plugin-dts": "^3.6.3",
|
package/dist/Topbar-4sclJZrd.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-Sp0orL4X.js";
|
|
2
|
-
import l, { Suspense as m } from "react";
|
|
3
|
-
import { FontFamilyIcon as d, EyeOpenIcon as u } from "@radix-ui/react-icons";
|
|
4
|
-
import { S as h, c as j, b as g, d as f, a as v, e as b, f as n } from "./select-nNzJ_AuC.js";
|
|
5
|
-
import { d as a, e as N, F as S, f as w } from "./index-dee0FZm6.js";
|
|
6
|
-
import { B as c, S as p, ac as y } from "./context-menu-DeUUflYX.js";
|
|
7
|
-
import { useTranslation as x } from "react-i18next";
|
|
8
|
-
import { c as C } from "./iconBase-zweRWSz0.js";
|
|
9
|
-
import "@radix-ui/react-select";
|
|
10
|
-
import "lodash-es";
|
|
11
|
-
import "jotai";
|
|
12
|
-
import "@chaibuilder/runtime";
|
|
13
|
-
import "./plugin-sJ3Hzvpv.js";
|
|
14
|
-
import "@react-hookz/web";
|
|
15
|
-
import "tree-model";
|
|
16
|
-
import "react-quill";
|
|
17
|
-
import "./STRINGS-TDN5UhWi.js";
|
|
18
|
-
import "flagged";
|
|
19
|
-
import "react-hotkeys-hook";
|
|
20
|
-
import "@floating-ui/dom";
|
|
21
|
-
import "@floating-ui/react-dom";
|
|
22
|
-
import "react-event-hook";
|
|
23
|
-
import "@tailwindcss/typography";
|
|
24
|
-
import "@tailwindcss/forms";
|
|
25
|
-
import "@tailwindcss/aspect-ratio";
|
|
26
|
-
import "tailwindcss-palette-generator";
|
|
27
|
-
import "tailwind-merge";
|
|
28
|
-
import "react-wrap-balancer";
|
|
29
|
-
import "react-dom";
|
|
30
|
-
import "prop-types";
|
|
31
|
-
import "react-error-boundary";
|
|
32
|
-
import "re-resizable";
|
|
33
|
-
import "lucide-react";
|
|
34
|
-
import "@rjsf/validator-ajv8";
|
|
35
|
-
import "@rjsf/core";
|
|
36
|
-
import "react-arborist";
|
|
37
|
-
import "himalaya";
|
|
38
|
-
import "react-icons-picker";
|
|
39
|
-
import "react-autosuggest";
|
|
40
|
-
import "fuse.js";
|
|
41
|
-
import "clsx";
|
|
42
|
-
import "i18next";
|
|
43
|
-
import "@radix-ui/react-scroll-area";
|
|
44
|
-
import "framer-motion";
|
|
45
|
-
import "@radix-ui/react-switch";
|
|
46
|
-
import "@radix-ui/react-accordion";
|
|
47
|
-
import "class-variance-authority";
|
|
48
|
-
import "@radix-ui/react-alert-dialog";
|
|
49
|
-
import "@radix-ui/react-slot";
|
|
50
|
-
import "@radix-ui/react-label";
|
|
51
|
-
import "@radix-ui/react-tabs";
|
|
52
|
-
import "@radix-ui/react-tooltip";
|
|
53
|
-
import "@radix-ui/react-popover";
|
|
54
|
-
import "@radix-ui/react-hover-card";
|
|
55
|
-
import "@radix-ui/react-dropdown-menu";
|
|
56
|
-
import "@radix-ui/react-separator";
|
|
57
|
-
import "@radix-ui/react-toast";
|
|
58
|
-
import "cmdk";
|
|
59
|
-
import "@radix-ui/react-dialog";
|
|
60
|
-
import "@radix-ui/react-context-menu";
|
|
61
|
-
const k = () => a("languages", ["en"]), A = () => k().length === 1 ? null : /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsxs(h, { children: [
|
|
62
|
-
/* @__PURE__ */ e.jsx(j, { className: "w-[150px] border-0", children: /* @__PURE__ */ e.jsx(
|
|
63
|
-
g,
|
|
64
|
-
{
|
|
65
|
-
placeholder: /* @__PURE__ */ e.jsxs("span", { className: "flex items-center", children: [
|
|
66
|
-
/* @__PURE__ */ e.jsx(d, { className: "h-4 w-4" }),
|
|
67
|
-
" English(US)"
|
|
68
|
-
] })
|
|
69
|
-
}
|
|
70
|
-
) }),
|
|
71
|
-
/* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsxs(v, { children: [
|
|
72
|
-
/* @__PURE__ */ e.jsx(b, { children: "Fruits" }),
|
|
73
|
-
/* @__PURE__ */ e.jsx(n, { value: "apple", children: "Apple" }),
|
|
74
|
-
/* @__PURE__ */ e.jsx(n, { value: "banana", children: "Banana" }),
|
|
75
|
-
/* @__PURE__ */ e.jsx(n, { value: "blueberry", children: "Blueberry" }),
|
|
76
|
-
/* @__PURE__ */ e.jsx(n, { value: "grapes", children: "Grapes" }),
|
|
77
|
-
/* @__PURE__ */ e.jsx(n, { value: "pineapple", children: "Pineapple" })
|
|
78
|
-
] }) })
|
|
79
|
-
] }) }), B = () => {
|
|
80
|
-
const { savePage: i, saveState: t } = N(), { t: s } = x(), o = /* @__PURE__ */ e.jsxs(
|
|
81
|
-
c,
|
|
82
|
-
{
|
|
83
|
-
disabled: t === "SAVING",
|
|
84
|
-
onClick: (r) => {
|
|
85
|
-
r.preventDefault(), i();
|
|
86
|
-
},
|
|
87
|
-
className: C(
|
|
88
|
-
"flex h-auto w-fit items-center gap-x-2 p-1 px-2",
|
|
89
|
-
// UNSAVED sate
|
|
90
|
-
"bg-gray-200 text-gray-500 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400",
|
|
91
|
-
{
|
|
92
|
-
"animate-pulse bg-gray-300 text-gray-900": t === "SAVING",
|
|
93
|
-
"bg-green-500 text-white hover:bg-green-600 hover:text-white dark:bg-green-600 dark:text-white": t === "SAVED"
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
size: "sm",
|
|
97
|
-
variant: "outline",
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ e.jsx(S, { className: "text-sm text-white" }),
|
|
100
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: s(t === "SAVING" ? "saving" : t === "SAVED" ? "saved" : "unsaved") })
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
return /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: o });
|
|
105
|
-
}, P = function() {
|
|
106
|
-
const t = a("previewComponent"), [, s] = w(), { t: o } = x();
|
|
107
|
-
return t ? /* @__PURE__ */ e.jsxs(
|
|
108
|
-
c,
|
|
109
|
-
{
|
|
110
|
-
onClick: (r) => {
|
|
111
|
-
r.preventDefault(), s(!0);
|
|
112
|
-
},
|
|
113
|
-
className: "flex h-auto w-fit items-center gap-x-2 p-1 px-2",
|
|
114
|
-
size: "sm",
|
|
115
|
-
variant: "outline",
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ e.jsx(u, { className: "text-xs" }),
|
|
118
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-sm", children: o("preview") })
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
) : null;
|
|
122
|
-
}, Le = () => {
|
|
123
|
-
const i = a("topBarComponents.left", []), t = a("topBarComponents.center", []), s = a("topBarComponents.right", []), o = a("editable", !0);
|
|
124
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "flex h-14 items-center justify-between px-2", children: [
|
|
125
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2 font-bold", children: l.Children.toArray(
|
|
126
|
-
i.map((r) => /* @__PURE__ */ e.jsx(m, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(r, {}) }))
|
|
127
|
-
) }) }),
|
|
128
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: l.Children.toArray(
|
|
129
|
-
t.map((r) => /* @__PURE__ */ e.jsx(m, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(r, {}) }))
|
|
130
|
-
) }),
|
|
131
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
132
|
-
/* @__PURE__ */ e.jsx(A, {}),
|
|
133
|
-
/* @__PURE__ */ e.jsx(P, {}),
|
|
134
|
-
/* @__PURE__ */ e.jsx(y, { orientation: "vertical" }),
|
|
135
|
-
o ? /* @__PURE__ */ e.jsx(B, {}) : null,
|
|
136
|
-
l.Children.toArray(
|
|
137
|
-
s.map((r) => /* @__PURE__ */ e.jsx(m, { fallback: /* @__PURE__ */ e.jsx(p, { className: "h-10" }), children: /* @__PURE__ */ e.jsx(r, {}) }))
|
|
138
|
-
)
|
|
139
|
-
] })
|
|
140
|
-
] });
|
|
141
|
-
};
|
|
142
|
-
export {
|
|
143
|
-
Le as default
|
|
144
|
-
};
|
package/dist/Topbar-z2HUDRQZ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-JYMCiFoE.cjs"),u=require("react"),o=require("@radix-ui/react-icons"),r=require("./select-Siy0CQZ0.cjs"),i=require("./index-dsyGOJ1S.cjs"),x=require("./context-menu--DZnHfxj.cjs"),c=require("react-i18next"),p=require("./iconBase-vJD0OXxU.cjs");require("@radix-ui/react-select");require("lodash-es");require("jotai");require("@chaibuilder/runtime");require("./plugin-_F-KZp1i.cjs");require("@react-hookz/web");require("tree-model");require("react-quill");require("./STRINGS-Yl7cSWDc.cjs");require("flagged");require("react-hotkeys-hook");require("@floating-ui/dom");require("@floating-ui/react-dom");require("react-event-hook");require("@tailwindcss/typography");require("@tailwindcss/forms");require("@tailwindcss/aspect-ratio");require("tailwindcss-palette-generator");require("tailwind-merge");require("react-wrap-balancer");require("react-dom");require("prop-types");require("react-error-boundary");require("re-resizable");require("lucide-react");require("@rjsf/validator-ajv8");require("@rjsf/core");require("react-arborist");require("himalaya");require("react-icons-picker");require("react-autosuggest");require("fuse.js");require("clsx");require("i18next");require("@radix-ui/react-scroll-area");require("framer-motion");require("@radix-ui/react-switch");require("@radix-ui/react-accordion");require("class-variance-authority");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("@radix-ui/react-label");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-hover-card");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-dialog");require("@radix-ui/react-context-menu");const m=()=>i.useBuilderProp("languages",["en"]),j=()=>m().length===1?null:e.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:e.jsxRuntimeExports.jsxs(r.Select,{children:[e.jsxRuntimeExports.jsx(r.SelectTrigger,{className:"w-[150px] border-0",children:e.jsxRuntimeExports.jsx(r.SelectValue,{placeholder:e.jsxRuntimeExports.jsxs("span",{className:"flex items-center",children:[e.jsxRuntimeExports.jsx(o.FontFamilyIcon,{className:"h-4 w-4"})," English(US)"]})})}),e.jsxRuntimeExports.jsx(r.SelectContent,{children:e.jsxRuntimeExports.jsxs(r.SelectGroup,{children:[e.jsxRuntimeExports.jsx(r.SelectLabel,{children:"Fruits"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"apple",children:"Apple"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"banana",children:"Banana"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"blueberry",children:"Blueberry"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"grapes",children:"Grapes"}),e.jsxRuntimeExports.jsx(r.SelectItem,{value:"pineapple",children:"Pineapple"})]})})]})}),q=()=>{const{savePage:a,saveState:s}=i.useSavePage(),{t:n}=c.useTranslation(),l=e.jsxRuntimeExports.jsxs(x.Button,{disabled:s==="SAVING",onClick:t=>{t.preventDefault(),a()},className:p.cn("flex h-auto w-fit items-center gap-x-2 p-1 px-2","bg-gray-200 text-gray-500 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-400",{"animate-pulse bg-gray-300 text-gray-900":s==="SAVING","bg-green-500 text-white hover:bg-green-600 hover:text-white dark:bg-green-600 dark:text-white":s==="SAVED"}),size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(i.FaCheck,{className:"text-sm text-white"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:n(s==="SAVING"?"saving":s==="SAVED"?"saved":"unsaved")})]});return e.jsxRuntimeExports.jsx("div",{className:"flex items-center",children:l})},d=function(){const s=i.useBuilderProp("previewComponent"),[,n]=i.usePreviewMode(),{t:l}=c.useTranslation();return s?e.jsxRuntimeExports.jsxs(x.Button,{onClick:t=>{t.preventDefault(),n(!0)},className:"flex h-auto w-fit items-center gap-x-2 p-1 px-2",size:"sm",variant:"outline",children:[e.jsxRuntimeExports.jsx(o.EyeOpenIcon,{className:"text-xs"}),e.jsxRuntimeExports.jsx("span",{className:"text-sm",children:l("preview")})]}):null},h=()=>{const a=i.useBuilderProp("topBarComponents.left",[]),s=i.useBuilderProp("topBarComponents.center",[]),n=i.useBuilderProp("topBarComponents.right",[]),l=i.useBuilderProp("editable",!0);return e.jsxRuntimeExports.jsxs("div",{className:"flex h-14 items-center justify-between px-2",children:[e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2 font-bold",children:u.Children.toArray(a.map(t=>e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsx(x.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(t,{})})))})}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center space-x-2",children:u.Children.toArray(s.map(t=>e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsx(x.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(t,{})})))}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsxRuntimeExports.jsx(j,{}),e.jsxRuntimeExports.jsx(d,{}),e.jsxRuntimeExports.jsx(x.Separator,{orientation:"vertical"}),l?e.jsxRuntimeExports.jsx(q,{}):null,u.Children.toArray(n.map(t=>e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsx(x.Skeleton,{className:"h-10"}),children:e.jsxRuntimeExports.jsx(t,{})})))]})]})};exports.default=h;
|
package/dist/select-Siy0CQZ0.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("./jsx-runtime-JYMCiFoE.cjs"),g=require("react"),c=require("@radix-ui/react-icons"),j=require("@radix-ui/react-select"),n=require("./context-menu--DZnHfxj.cjs");function l(a){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return s.default=a,Object.freeze(s)}const i=l(g),e=l(j),b=e.Root,h=e.Group,S=e.Value,d=i.forwardRef(({className:a,children:s,...t},o)=>r.jsxRuntimeExports.jsxs(e.Trigger,{ref:o,className:n.cn("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),...t,children:[s,r.jsxRuntimeExports.jsx(e.Icon,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.CaretSortIcon,{className:"h-4 w-4 opacity-50"})})]}));d.displayName=e.Trigger.displayName;const m=i.forwardRef(({className:a,children:s,position:t="popper",...o},f)=>r.jsxRuntimeExports.jsx(e.Portal,{children:r.jsxRuntimeExports.jsx(e.Content,{ref:f,className:n.cn("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:t,...o,children:r.jsxRuntimeExports.jsx(e.Viewport,{className:n.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s})})}));m.displayName=e.Content.displayName;const p=i.forwardRef(({className:a,...s},t)=>r.jsxRuntimeExports.jsx(e.Label,{ref:t,className:n.cn("px-2 py-1.5 text-sm font-semibold",a),...s}));p.displayName=e.Label.displayName;const u=i.forwardRef(({className:a,children:s,...t},o)=>r.jsxRuntimeExports.jsxs(e.Item,{ref:o,className:n.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...t,children:[r.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(e.ItemIndicator,{children:r.jsxRuntimeExports.jsx(c.CheckIcon,{className:"h-4 w-4"})})}),r.jsxRuntimeExports.jsx(e.ItemText,{children:s})]}));u.displayName=e.Item.displayName;const x=i.forwardRef(({className:a,...s},t)=>r.jsxRuntimeExports.jsx(e.Separator,{ref:t,className:n.cn("-mx-1 my-1 h-px bg-muted",a),...s}));x.displayName=e.Separator.displayName;exports.Select=b;exports.SelectContent=m;exports.SelectGroup=h;exports.SelectItem=u;exports.SelectLabel=p;exports.SelectSeparator=x;exports.SelectTrigger=d;exports.SelectValue=S;
|
package/dist/select-nNzJ_AuC.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-Sp0orL4X.js";
|
|
2
|
-
import * as i from "react";
|
|
3
|
-
import { CaretSortIcon as n, CheckIcon as c } from "@radix-ui/react-icons";
|
|
4
|
-
import * as e from "@radix-ui/react-select";
|
|
5
|
-
import { ag as r } from "./context-menu-DeUUflYX.js";
|
|
6
|
-
const y = e.Root, w = e.Group, N = e.Value, m = i.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
|
|
7
|
-
e.Trigger,
|
|
8
|
-
{
|
|
9
|
-
ref: d,
|
|
10
|
-
className: r(
|
|
11
|
-
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
12
|
-
s
|
|
13
|
-
),
|
|
14
|
-
...a,
|
|
15
|
-
children: [
|
|
16
|
-
o,
|
|
17
|
-
/* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(n, { className: "h-4 w-4 opacity-50" }) })
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
));
|
|
21
|
-
m.displayName = e.Trigger.displayName;
|
|
22
|
-
const p = i.forwardRef(({ className: s, children: o, position: a = "popper", ...d }, l) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
23
|
-
e.Content,
|
|
24
|
-
{
|
|
25
|
-
ref: l,
|
|
26
|
-
className: r(
|
|
27
|
-
"relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
28
|
-
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
29
|
-
s
|
|
30
|
-
),
|
|
31
|
-
position: a,
|
|
32
|
-
...d,
|
|
33
|
-
children: /* @__PURE__ */ t.jsx(
|
|
34
|
-
e.Viewport,
|
|
35
|
-
{
|
|
36
|
-
className: r(
|
|
37
|
-
"p-1",
|
|
38
|
-
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
39
|
-
),
|
|
40
|
-
children: o
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
) }));
|
|
45
|
-
p.displayName = e.Content.displayName;
|
|
46
|
-
const f = i.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(e.Label, { ref: a, className: r("px-2 py-1.5 text-sm font-semibold", s), ...o }));
|
|
47
|
-
f.displayName = e.Label.displayName;
|
|
48
|
-
const u = i.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
|
|
49
|
-
e.Item,
|
|
50
|
-
{
|
|
51
|
-
ref: d,
|
|
52
|
-
className: r(
|
|
53
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
54
|
-
s
|
|
55
|
-
),
|
|
56
|
-
...a,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(c, { className: "h-4 w-4" }) }) }),
|
|
59
|
-
/* @__PURE__ */ t.jsx(e.ItemText, { children: o })
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
));
|
|
63
|
-
u.displayName = e.Item.displayName;
|
|
64
|
-
const x = i.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(e.Separator, { ref: a, className: r("-mx-1 my-1 h-px bg-muted", s), ...o }));
|
|
65
|
-
x.displayName = e.Separator.displayName;
|
|
66
|
-
export {
|
|
67
|
-
y as S,
|
|
68
|
-
w as a,
|
|
69
|
-
N as b,
|
|
70
|
-
m as c,
|
|
71
|
-
p as d,
|
|
72
|
-
f as e,
|
|
73
|
-
u as f,
|
|
74
|
-
x as g
|
|
75
|
-
};
|