ml-uikit 1.1.0 → 1.1.2
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/components/ui/alert.d.ts +8 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/icon-button.d.ts +9 -0
- package/dist/components/ui/icon-button.d.ts.map +1 -0
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -7
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +7 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs4.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +321 -312
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +27 -27
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es11.js +19 -72
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es12.js +62 -157
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es13.js +169 -58
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +55 -157
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +150 -181
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +188 -21
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +31 -5
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +5 -103
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es19.js +70 -103
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +108 -61
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +59 -60
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +69 -114
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +132 -97
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +49 -156
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +194 -76
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +89 -20
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +20 -22
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +17 -144
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +145 -37
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +1 -1
- package/dist/index.es30.js +37 -179
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +174 -18
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +29 -16
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +15 -92
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +91 -189
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +165 -71
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +85 -84
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +92 -17
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +19 -21
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +16 -21
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +65 -26
- package/dist/index.es4.js.map +1 -1
- package/dist/index.es40.js +22 -25
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +25 -104
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +117 -20
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +19 -97
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +77 -509
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +552 -11
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +15 -18
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +44 -19
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +19 -12
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +13 -22
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +23 -197
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +191 -28
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +45 -14
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +12 -28
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +30 -34
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +37 -19
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +20 -6
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +5 -11
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/style.css +436 -172
- package/package.json +1 -1
- package/dist/hooks/use-mobile.d.ts +0 -2
- package/dist/hooks/use-mobile.d.ts.map +0 -1
package/dist/index.es4.js
CHANGED
|
@@ -1,50 +1,89 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { Info as p, AlertCircle as v, CircleX as f, CheckCircle2 as w, SquareDashed as N } from "lucide-react";
|
|
3
|
+
import { cva as o } from "class-variance-authority";
|
|
4
|
+
import { cn as l } from "./index.es57.js";
|
|
5
|
+
const b = o(
|
|
6
|
+
"flex w-full flex-col items-end gap-3 rounded-[8px] border bg-white px-3 py-3 text-[14px] leading-[20px] shadow-[0px_2px_4px_-2px_rgba(19,25,39,0.12),0px_4px_4px_-2px_rgba(19,25,39,0.08)]",
|
|
6
7
|
{
|
|
7
8
|
variants: {
|
|
8
9
|
variant: {
|
|
9
|
-
default: "
|
|
10
|
-
|
|
10
|
+
default: "border-[#e6e6e6] text-black",
|
|
11
|
+
success: "border-[#307f4a] text-[#307f4a]",
|
|
12
|
+
error: "border-[#e73f3f] text-[#e73f3f]",
|
|
13
|
+
destructive: "border-[#e73f3f] text-[#e73f3f]",
|
|
14
|
+
warning: "border-[#e49614] text-[#e49614]",
|
|
15
|
+
info: "border-[#2563eb] text-[#2563eb]"
|
|
11
16
|
}
|
|
12
17
|
},
|
|
13
18
|
defaultVariants: {
|
|
14
19
|
variant: "default"
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
), g = o("flex h-6 w-6 shrink-0 items-center justify-center", {
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default: "text-[#adacb0]",
|
|
26
|
+
success: "text-[#307f4a]",
|
|
27
|
+
error: "text-[#e73f3f]",
|
|
28
|
+
destructive: "text-[#e73f3f]",
|
|
29
|
+
warning: "text-[#e49614]",
|
|
30
|
+
info: "text-[#2563eb]"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default"
|
|
24
35
|
}
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
}), h = {
|
|
37
|
+
warning: "warning",
|
|
38
|
+
neutral: "default",
|
|
39
|
+
success: "success",
|
|
40
|
+
negative: "error"
|
|
41
|
+
}, E = e.forwardRef(({ className: a, variant: r, icon: t, showIcon: d = !0, state: n, action: c, children: m, ...x }, u) => {
|
|
42
|
+
const s = n ? h[n] : r ?? "default", i = t === void 0 ? {
|
|
43
|
+
default: /* @__PURE__ */ e.createElement(N, { className: "h-5 w-5" }),
|
|
44
|
+
success: /* @__PURE__ */ e.createElement(w, { className: "h-5 w-5" }),
|
|
45
|
+
error: /* @__PURE__ */ e.createElement(f, { className: "h-5 w-5" }),
|
|
46
|
+
destructive: /* @__PURE__ */ e.createElement(f, { className: "h-5 w-5" }),
|
|
47
|
+
warning: /* @__PURE__ */ e.createElement(v, { className: "h-5 w-5" }),
|
|
48
|
+
info: /* @__PURE__ */ e.createElement(p, { className: "h-5 w-5" })
|
|
49
|
+
}[s] : t;
|
|
50
|
+
return /* @__PURE__ */ e.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
ref: u,
|
|
54
|
+
role: "alert",
|
|
55
|
+
className: l(b({ variant: s }), a),
|
|
56
|
+
...x
|
|
57
|
+
},
|
|
58
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex w-full items-start gap-2" }, d && i ? /* @__PURE__ */ e.createElement("span", { className: l(g({ variant: s })) }, i) : null, /* @__PURE__ */ e.createElement("div", { className: "min-w-0 flex-1" }, m)),
|
|
59
|
+
c ? /* @__PURE__ */ e.createElement("div", { className: "flex w-full justify-end" }, c) : null
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
E.displayName = "Alert";
|
|
63
|
+
const _ = e.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e.createElement(
|
|
28
64
|
"h5",
|
|
29
65
|
{
|
|
30
|
-
ref:
|
|
31
|
-
className:
|
|
66
|
+
ref: t,
|
|
67
|
+
className: l("text-[14px] font-normal leading-[20px] text-current", a),
|
|
32
68
|
...r
|
|
33
69
|
}
|
|
34
70
|
));
|
|
35
|
-
|
|
36
|
-
const
|
|
71
|
+
_.displayName = "AlertTitle";
|
|
72
|
+
const A = e.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e.createElement(
|
|
37
73
|
"div",
|
|
38
74
|
{
|
|
39
|
-
ref:
|
|
40
|
-
className:
|
|
75
|
+
ref: t,
|
|
76
|
+
className: l(
|
|
77
|
+
"text-[12px] leading-[16px] text-[#7f7d83] [&:not(:first-child)]:mt-2",
|
|
78
|
+
a
|
|
79
|
+
),
|
|
41
80
|
...r
|
|
42
81
|
}
|
|
43
82
|
));
|
|
44
|
-
|
|
83
|
+
A.displayName = "AlertDescription";
|
|
45
84
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
85
|
+
E as Alert,
|
|
86
|
+
A as AlertDescription,
|
|
87
|
+
_ as AlertTitle
|
|
49
88
|
};
|
|
50
89
|
//# sourceMappingURL=index.es4.js.map
|
package/dist/index.es4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es4.js","sources":["../src/components/ui/alert.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst alertVariants = cva(\n \"
|
|
1
|
+
{"version":3,"file":"index.es4.js","sources":["../src/components/ui/alert.tsx"],"sourcesContent":["import * as React from \"react\"\nimport {\n AlertCircle,\n CheckCircle2,\n CircleX,\n Info,\n SquareDashed,\n} from \"lucide-react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst alertVariants = cva(\n \"flex w-full flex-col items-end gap-3 rounded-[8px] border bg-white px-3 py-3 text-[14px] leading-[20px] shadow-[0px_2px_4px_-2px_rgba(19,25,39,0.12),0px_4px_4px_-2px_rgba(19,25,39,0.08)]\",\n {\n variants: {\n variant: {\n default: \"border-[#e6e6e6] text-black\",\n success: \"border-[#307f4a] text-[#307f4a]\",\n error: \"border-[#e73f3f] text-[#e73f3f]\",\n destructive: \"border-[#e73f3f] text-[#e73f3f]\",\n warning: \"border-[#e49614] text-[#e49614]\",\n info: \"border-[#2563eb] text-[#2563eb]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst alertIconVariants = cva(\"flex h-6 w-6 shrink-0 items-center justify-center\", {\n variants: {\n variant: {\n default: \"text-[#adacb0]\",\n success: \"text-[#307f4a]\",\n error: \"text-[#e73f3f]\",\n destructive: \"text-[#e73f3f]\",\n warning: \"text-[#e49614]\",\n info: \"text-[#2563eb]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n})\n\ntype AlertVariant = NonNullable<VariantProps<typeof alertVariants>[\"variant\"]>\ntype AlertState = \"warning\" | \"neutral\" | \"success\" | \"negative\"\n\nconst stateToVariant: Record<AlertState, AlertVariant> = {\n warning: \"warning\",\n neutral: \"default\",\n success: \"success\",\n negative: \"error\",\n}\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> &\n VariantProps<typeof alertVariants> & {\n icon?: React.ReactNode\n showIcon?: boolean\n state?: AlertState\n action?: React.ReactNode\n }\n>(({ className, variant, icon, showIcon = true, state, action, children, ...props }, ref) => {\n const resolvedVariant = (state ? stateToVariant[state] : variant ?? \"default\") as AlertVariant\n const defaultIcons: Record<AlertVariant, React.ReactNode> = {\n default: <SquareDashed className=\"h-5 w-5\" />,\n success: <CheckCircle2 className=\"h-5 w-5\" />,\n error: <CircleX className=\"h-5 w-5\" />,\n destructive: <CircleX className=\"h-5 w-5\" />,\n warning: <AlertCircle className=\"h-5 w-5\" />,\n info: <Info className=\"h-5 w-5\" />,\n }\n const resolvedIcon = icon === undefined ? defaultIcons[resolvedVariant] : icon\n\n return (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(alertVariants({ variant: resolvedVariant }), className)}\n {...props}\n >\n <div className=\"flex w-full items-start gap-2\">\n {showIcon && resolvedIcon ? (\n <span className={cn(alertIconVariants({ variant: resolvedVariant }))}>\n {resolvedIcon}\n </span>\n ) : null}\n <div className=\"min-w-0 flex-1\">{children}</div>\n </div>\n {action ? <div className=\"flex w-full justify-end\">{action}</div> : null}\n </div>\n )\n})\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"text-[14px] font-normal leading-[20px] text-current\", className)}\n {...props}\n />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"text-[12px] leading-[16px] text-[#7f7d83] [&:not(:first-child)]:mt-2\",\n className\n )}\n {...props}\n />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n"],"names":["alertVariants","cva","alertIconVariants","stateToVariant","Alert","React","className","variant","icon","showIcon","state","action","children","props","ref","resolvedVariant","resolvedIcon","SquareDashed","CheckCircle2","CircleX","AlertCircle","Info","cn","AlertTitle","AlertDescription"],"mappings":";;;;AAYA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,OAAO;AAAA,QACP,aAAa;AAAA,QACb,SAAS;AAAA,QACT,MAAM;AAAA,MAAA;AAAA,IACR;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,GAEMC,IAAoBD,EAAI,qDAAqD;AAAA,EACjF,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,MACT,OAAO;AAAA,MACP,aAAa;AAAA,MACb,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC,GAKKE,IAAmD;AAAA,EACvD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ,GAEMC,IAAQC,EAAM,WASlB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,UAAAC,IAAW,IAAM,OAAAC,GAAO,QAAAC,GAAQ,UAAA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EAAC;AAAA,EAAA;AAAA,IACC,KAAAS;AAAA,IACA,WAAWQ,EAAG,uDAAuDhB,CAAS;AAAA,IAC7E,GAAGO;AAAA,EAAA;AACN,CACD;AACDU,EAAW,cAAc;AAEzB,MAAMC,IAAmBnB,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGO,EAAA,GAASC,MAC1B,gBAAAT,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAS;AAAA,IACA,WAAWQ;AAAA,MACT;AAAA,MACAhB;AAAA,IAAA;AAAA,IAED,GAAGO;AAAA,EAAA;AACN,CACD;AACDW,EAAiB,cAAc;"}
|
package/dist/index.es40.js
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import * as r from "@radix-ui/react-
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
2
|
+
import * as r from "@radix-ui/react-radio-group";
|
|
3
|
+
import { cn as i } from "./index.es57.js";
|
|
4
|
+
const s = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
5
5
|
r.Root,
|
|
6
6
|
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
/* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
|
|
12
|
-
/* @__PURE__ */ e.createElement(n, null),
|
|
13
|
-
/* @__PURE__ */ e.createElement(r.Corner, null)
|
|
7
|
+
className: i("grid gap-2", t),
|
|
8
|
+
...a,
|
|
9
|
+
ref: o
|
|
10
|
+
}
|
|
14
11
|
));
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
r.
|
|
12
|
+
s.displayName = r.Root.displayName;
|
|
13
|
+
const d = e.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ e.createElement(
|
|
14
|
+
r.Item,
|
|
18
15
|
{
|
|
19
|
-
ref:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
ref: o,
|
|
17
|
+
className: i(
|
|
18
|
+
"relative flex h-4 w-4 items-center justify-center rounded-full border border-[#e6e6e6] bg-white text-[#26453f] transition-colors",
|
|
19
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2",
|
|
20
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:border-[#e6e6e6] disabled:text-[#bdbdbd]",
|
|
21
|
+
"data-[state=checked]:border-[#26453f]",
|
|
22
|
+
t
|
|
26
23
|
),
|
|
27
|
-
...
|
|
24
|
+
...a
|
|
28
25
|
},
|
|
29
|
-
/* @__PURE__ */ e.createElement(r.
|
|
26
|
+
/* @__PURE__ */ e.createElement(r.Indicator, { className: "flex items-center justify-center" }, /* @__PURE__ */ e.createElement("span", { className: "h-2.5 w-2.5 rounded-full bg-current" }))
|
|
30
27
|
));
|
|
31
|
-
|
|
28
|
+
d.displayName = r.Item.displayName;
|
|
32
29
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
s as RadioGroup,
|
|
31
|
+
d as RadioGroupItem
|
|
35
32
|
};
|
|
36
33
|
//# sourceMappingURL=index.es40.js.map
|
package/dist/index.es40.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es40.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es40.js","sources":["../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex h-4 w-4 items-center justify-center rounded-full border border-[#e6e6e6] bg-white text-[#26453f] transition-colors\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:border-[#e6e6e6] disabled:text-[#bdbdbd]\",\n \"data-[state=checked]:border-[#26453f]\",\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <span className=\"h-2.5 w-2.5 rounded-full bg-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","RadioGroupPrimitive","cn","RadioGroupItem"],"mappings":";;;AAKA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,WAAWC,EAAG,cAAcJ,CAAS;AAAA,IACpC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,CAGL;AACDJ,EAAW,cAAcK,EAAoB,KAAK;AAElD,MAAME,IAAiBN,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAExB,gBAAAH,EAAA;AAAA,EAACI,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AAAA,EAEJ,gBAAAF,EAAA,cAACI,EAAoB,WAApB,EAA8B,WAAU,sCACvC,gBAAAJ,EAAA,cAAC,QAAA,EAAK,WAAU,sCAAA,CAAsC,CACxD;AAAA,CAGL;AACDM,EAAe,cAAcF,EAAoB,KAAK;"}
|
package/dist/index.es41.js
CHANGED
|
@@ -1,115 +1,36 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t.Trigger,
|
|
2
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
3
|
+
import { cn as c } from "./index.es57.js";
|
|
4
|
+
const m = e.forwardRef(({ className: a, children: l, ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
5
|
+
r.Root,
|
|
7
6
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
10
|
-
|
|
11
|
-
r
|
|
12
|
-
),
|
|
13
|
-
...a
|
|
14
|
-
},
|
|
15
|
-
l,
|
|
16
|
-
/* @__PURE__ */ e.createElement(t.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(s, { className: "h-4 w-4 opacity-50" }))
|
|
17
|
-
));
|
|
18
|
-
f.displayName = t.Trigger.displayName;
|
|
19
|
-
const c = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
|
|
20
|
-
t.ScrollUpButton,
|
|
21
|
-
{
|
|
22
|
-
ref: a,
|
|
23
|
-
className: o(
|
|
24
|
-
"flex cursor-default items-center justify-center py-1",
|
|
25
|
-
r
|
|
26
|
-
),
|
|
27
|
-
...l
|
|
28
|
-
},
|
|
29
|
-
/* @__PURE__ */ e.createElement(p, { className: "h-4 w-4" })
|
|
30
|
-
));
|
|
31
|
-
c.displayName = t.ScrollUpButton.displayName;
|
|
32
|
-
const d = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
|
|
33
|
-
t.ScrollDownButton,
|
|
34
|
-
{
|
|
35
|
-
ref: a,
|
|
36
|
-
className: o(
|
|
37
|
-
"flex cursor-default items-center justify-center py-1",
|
|
38
|
-
r
|
|
39
|
-
),
|
|
40
|
-
...l
|
|
41
|
-
},
|
|
42
|
-
/* @__PURE__ */ e.createElement(s, { className: "h-4 w-4" })
|
|
43
|
-
));
|
|
44
|
-
d.displayName = t.ScrollDownButton.displayName;
|
|
45
|
-
const u = e.forwardRef(({ className: r, children: l, position: a = "popper", ...n }, m) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
|
|
46
|
-
t.Content,
|
|
47
|
-
{
|
|
48
|
-
ref: m,
|
|
49
|
-
className: o(
|
|
50
|
-
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",
|
|
51
|
-
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",
|
|
52
|
-
r
|
|
53
|
-
),
|
|
54
|
-
position: a,
|
|
55
|
-
...n
|
|
7
|
+
ref: t,
|
|
8
|
+
className: c("relative overflow-hidden", a),
|
|
9
|
+
...o
|
|
56
10
|
},
|
|
57
|
-
/* @__PURE__ */ e.createElement(
|
|
58
|
-
/* @__PURE__ */ e.createElement(
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
className: o(
|
|
62
|
-
"p-1",
|
|
63
|
-
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
64
|
-
)
|
|
65
|
-
},
|
|
66
|
-
l
|
|
67
|
-
),
|
|
68
|
-
/* @__PURE__ */ e.createElement(d, null)
|
|
69
|
-
)));
|
|
70
|
-
u.displayName = t.Content.displayName;
|
|
71
|
-
const w = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
|
|
72
|
-
t.Label,
|
|
73
|
-
{
|
|
74
|
-
ref: a,
|
|
75
|
-
className: o("px-2 py-1.5 text-sm font-semibold", r),
|
|
76
|
-
...l
|
|
77
|
-
}
|
|
11
|
+
/* @__PURE__ */ e.createElement(r.Viewport, { className: "h-full w-full rounded-[inherit]" }, l),
|
|
12
|
+
/* @__PURE__ */ e.createElement(n, null),
|
|
13
|
+
/* @__PURE__ */ e.createElement(r.Corner, null)
|
|
78
14
|
));
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
15
|
+
m.displayName = r.Root.displayName;
|
|
16
|
+
const n = e.forwardRef(({ className: a, orientation: l = "vertical", ...o }, t) => /* @__PURE__ */ e.createElement(
|
|
17
|
+
r.ScrollAreaScrollbar,
|
|
82
18
|
{
|
|
83
|
-
ref:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
19
|
+
ref: t,
|
|
20
|
+
orientation: l,
|
|
21
|
+
className: c(
|
|
22
|
+
"flex touch-none select-none transition-colors",
|
|
23
|
+
l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
|
|
24
|
+
l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
|
|
25
|
+
a
|
|
87
26
|
),
|
|
88
|
-
...
|
|
27
|
+
...o
|
|
89
28
|
},
|
|
90
|
-
/* @__PURE__ */ e.createElement(
|
|
91
|
-
/* @__PURE__ */ e.createElement(t.ItemText, null, l)
|
|
92
|
-
));
|
|
93
|
-
g.displayName = t.Item.displayName;
|
|
94
|
-
const y = e.forwardRef(({ className: r, ...l }, a) => /* @__PURE__ */ e.createElement(
|
|
95
|
-
t.Separator,
|
|
96
|
-
{
|
|
97
|
-
ref: a,
|
|
98
|
-
className: o("-mx-1 my-1 h-px bg-muted", r),
|
|
99
|
-
...l
|
|
100
|
-
}
|
|
29
|
+
/* @__PURE__ */ e.createElement(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
101
30
|
));
|
|
102
|
-
|
|
31
|
+
n.displayName = r.ScrollAreaScrollbar.displayName;
|
|
103
32
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
b as SelectGroup,
|
|
107
|
-
g as SelectItem,
|
|
108
|
-
w as SelectLabel,
|
|
109
|
-
d as SelectScrollDownButton,
|
|
110
|
-
c as SelectScrollUpButton,
|
|
111
|
-
y as SelectSeparator,
|
|
112
|
-
f as SelectTrigger,
|
|
113
|
-
S as SelectValue
|
|
33
|
+
m as ScrollArea,
|
|
34
|
+
n as ScrollBar
|
|
114
35
|
};
|
|
115
36
|
//# sourceMappingURL=index.es41.js.map
|
package/dist/index.es41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es41.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es41.js","sources":["../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n"],"names":["ScrollArea","React","className","children","props","ref","ScrollAreaPrimitive","cn","ScrollBar","orientation"],"mappings":";;;AAKA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,MACpC,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,4BAA4BL,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AAAA,kCAEHE,EAAoB,UAApB,EAA6B,WAAU,qCACrCH,CACH;AAAA,kCACCK,GAAA,IAAU;AAAA,EACX,gBAAAP,EAAA,cAACK,EAAoB,QAApB,IAA2B;AAC9B,CACD;AACDN,EAAW,cAAcM,EAAoB,KAAK;AAElD,MAAME,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAO,IAAc,YAAY,GAAGL,EAAA,GAASC,MACpD,gBAAAJ,EAAA;AAAA,EAACK,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAD;AAAA,IACA,aAAAI;AAAA,IACA,WAAWF;AAAA,MACT;AAAA,MACAE,MAAgB,cACd;AAAA,MACFA,MAAgB,gBACd;AAAA,MACFP;AAAA,IAAA;AAAA,IAED,GAAGE;AAAA,EAAA;AAAA,EAEJ,gBAAAH,EAAA,cAACK,EAAoB,iBAApB,EAAoC,WAAU,yCAAA,CAAyC;AAC1F,CACD;AACDE,EAAU,cAAcF,EAAoB,oBAAoB;"}
|
package/dist/index.es42.js
CHANGED
|
@@ -1,24 +1,121 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import * as t from "@radix-ui/react-select";
|
|
3
|
+
import { ChevronDown as n, Check as m, ChevronUp as p } from "lucide-react";
|
|
4
|
+
import { cn as o } from "./index.es57.js";
|
|
5
|
+
const N = t.Root, g = t.Group, S = t.Value, f = e.forwardRef(({ className: l, children: r, ...a }, s) => /* @__PURE__ */ e.createElement(
|
|
6
|
+
t.Trigger,
|
|
7
|
+
{
|
|
8
|
+
ref: s,
|
|
9
|
+
className: o(
|
|
10
|
+
"flex h-10 w-full items-center justify-between whitespace-nowrap rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-[#111111] shadow-none",
|
|
11
|
+
"data-[placeholder]:text-[#b3b3b3] [&>span]:line-clamp-1",
|
|
12
|
+
"focus-visible:outline-none focus-visible:border-[#1D1C20] data-[state=open]:border-[#1D1C20]",
|
|
13
|
+
"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:data-[placeholder]:text-[#b3b3b3]",
|
|
14
|
+
"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]",
|
|
15
|
+
l
|
|
16
|
+
),
|
|
17
|
+
...a
|
|
18
|
+
},
|
|
19
|
+
r,
|
|
20
|
+
/* @__PURE__ */ e.createElement(t.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(n, { className: "h-4 w-4 text-[#7f7d83]" }))
|
|
21
|
+
));
|
|
22
|
+
f.displayName = t.Trigger.displayName;
|
|
23
|
+
const d = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
24
|
+
t.ScrollUpButton,
|
|
25
|
+
{
|
|
26
|
+
ref: a,
|
|
27
|
+
className: o(
|
|
28
|
+
"flex cursor-default items-center justify-center py-1 text-[#7f7d83]",
|
|
29
|
+
l
|
|
30
|
+
),
|
|
31
|
+
...r
|
|
32
|
+
},
|
|
33
|
+
/* @__PURE__ */ e.createElement(p, { className: "h-4 w-4" })
|
|
34
|
+
));
|
|
35
|
+
d.displayName = t.ScrollUpButton.displayName;
|
|
36
|
+
const i = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
37
|
+
t.ScrollDownButton,
|
|
38
|
+
{
|
|
39
|
+
ref: a,
|
|
40
|
+
className: o(
|
|
41
|
+
"flex cursor-default items-center justify-center py-1 text-[#7f7d83]",
|
|
42
|
+
l
|
|
43
|
+
),
|
|
44
|
+
...r
|
|
45
|
+
},
|
|
46
|
+
/* @__PURE__ */ e.createElement(n, { className: "h-4 w-4" })
|
|
47
|
+
));
|
|
48
|
+
i.displayName = t.ScrollDownButton.displayName;
|
|
49
|
+
const u = e.forwardRef(({ className: l, children: r, position: a = "popper", ...s }, c) => /* @__PURE__ */ e.createElement(t.Portal, null, /* @__PURE__ */ e.createElement(
|
|
50
|
+
t.Content,
|
|
51
|
+
{
|
|
52
|
+
ref: c,
|
|
53
|
+
className: o(
|
|
54
|
+
"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[8px] border border-[#e6e6e6] bg-white text-[#111111] shadow-sm",
|
|
55
|
+
"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 origin-[--radix-select-content-transform-origin]",
|
|
56
|
+
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",
|
|
57
|
+
l
|
|
58
|
+
),
|
|
59
|
+
position: a,
|
|
60
|
+
...s
|
|
61
|
+
},
|
|
62
|
+
/* @__PURE__ */ e.createElement(d, null),
|
|
63
|
+
/* @__PURE__ */ e.createElement(
|
|
64
|
+
t.Viewport,
|
|
7
65
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
66
|
+
className: o(
|
|
67
|
+
"p-1",
|
|
68
|
+
a === "popper" && "w-full min-w-[var(--radix-select-trigger-width)]"
|
|
69
|
+
)
|
|
70
|
+
},
|
|
71
|
+
r
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ e.createElement(i, null)
|
|
74
|
+
)));
|
|
75
|
+
u.displayName = t.Content.displayName;
|
|
76
|
+
const b = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
77
|
+
t.Label,
|
|
78
|
+
{
|
|
79
|
+
ref: a,
|
|
80
|
+
className: o("px-2 py-1 text-[12px] font-medium text-[#7f7d83]", l),
|
|
81
|
+
...r
|
|
82
|
+
}
|
|
83
|
+
));
|
|
84
|
+
b.displayName = t.Label.displayName;
|
|
85
|
+
const x = e.forwardRef(({ className: l, children: r, ...a }, s) => /* @__PURE__ */ e.createElement(
|
|
86
|
+
t.Item,
|
|
87
|
+
{
|
|
88
|
+
ref: s,
|
|
89
|
+
className: o(
|
|
90
|
+
"relative flex w-full cursor-default select-none items-center rounded-[6px] py-2 pl-2 pr-8 text-[14px] leading-[20px] outline-none",
|
|
91
|
+
"focus:bg-[#f1f1f1] focus:text-[#111111] data-[state=checked]:bg-[#f1f1f1] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
92
|
+
l
|
|
93
|
+
),
|
|
94
|
+
...a
|
|
95
|
+
},
|
|
96
|
+
/* @__PURE__ */ e.createElement("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ e.createElement(t.ItemIndicator, null, /* @__PURE__ */ e.createElement(m, { className: "h-4 w-4 text-[#26453f]" }))),
|
|
97
|
+
/* @__PURE__ */ e.createElement(t.ItemText, null, r)
|
|
98
|
+
));
|
|
99
|
+
x.displayName = t.Item.displayName;
|
|
100
|
+
const w = e.forwardRef(({ className: l, ...r }, a) => /* @__PURE__ */ e.createElement(
|
|
101
|
+
t.Separator,
|
|
102
|
+
{
|
|
103
|
+
ref: a,
|
|
104
|
+
className: o("-mx-1 my-1 h-px bg-[#e6e6e6]", l),
|
|
105
|
+
...r
|
|
106
|
+
}
|
|
107
|
+
));
|
|
108
|
+
w.displayName = t.Separator.displayName;
|
|
21
109
|
export {
|
|
22
|
-
|
|
110
|
+
N as Select,
|
|
111
|
+
u as SelectContent,
|
|
112
|
+
g as SelectGroup,
|
|
113
|
+
x as SelectItem,
|
|
114
|
+
b as SelectLabel,
|
|
115
|
+
i as SelectScrollDownButton,
|
|
116
|
+
d as SelectScrollUpButton,
|
|
117
|
+
w as SelectSeparator,
|
|
118
|
+
f as SelectTrigger,
|
|
119
|
+
S as SelectValue
|
|
23
120
|
};
|
|
24
121
|
//# sourceMappingURL=index.es42.js.map
|
package/dist/index.es42.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es42.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es42.js","sources":["../src/components/ui/select.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between whitespace-nowrap rounded-[8px] border border-[#e6e6e6] bg-white px-3 py-2 text-[14px] leading-[20px] text-[#111111] shadow-none\",\n \"data-[placeholder]:text-[#b3b3b3] [&>span]:line-clamp-1\",\n \"focus-visible:outline-none focus-visible:border-[#1D1C20] data-[state=open]:border-[#1D1C20]\",\n \"disabled:cursor-not-allowed disabled:bg-[#f2f2f2] disabled:text-[#9ca3af] disabled:data-[placeholder]:text-[#b3b3b3]\",\n \"aria-invalid:border-[#ff3b30] aria-invalid:focus-visible:border-[#ff3b30]\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 text-[#7f7d83]\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1 text-[#7f7d83]\",\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1 text-[#7f7d83]\",\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[8px] border border-[#e6e6e6] bg-white text-[#111111] shadow-sm\",\n \"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 origin-[--radix-select-content-transform-origin]\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"w-full min-w-[var(--radix-select-trigger-width)]\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"px-2 py-1 text-[12px] font-medium text-[#7f7d83]\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-[6px] py-2 pl-2 pr-8 text-[14px] leading-[20px] outline-none\",\n \"focus:bg-[#f1f1f1] focus:text-[#111111] data-[state=checked]:bg-[#f1f1f1] data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4 text-[#26453f]\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-[#e6e6e6]\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","cn","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";;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