@incognia/cosmik 1.0.11 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/cosmik.css +3 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +36 -179
- package/dist/index10.cjs +2 -2
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +12 -195
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +61 -140
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +156 -228
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +92 -119
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +71 -24
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +2 -2
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +105 -25
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +57 -22
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +2 -2
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +23 -63
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +2 -2
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +90 -23
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +2 -2
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +83 -102
- package/dist/index19.js.map +1 -1
- package/dist/index2.cjs +1 -0
- package/dist/index2.js +7 -0
- package/dist/index20.cjs +2 -2
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +126 -48
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +2 -2
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +41 -31
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +76 -46
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +2 -2
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +68 -185
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +2 -2
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +31 -28
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +2 -2
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +17 -132
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +2 -2
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +17 -17
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +52 -36
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +10 -33
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +2 -2
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +25 -135
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +2 -2
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +66 -62
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +2 -2
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +22 -88
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +2 -2
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +30 -23
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +2 -2
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +97 -93
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +19 -72
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +2 -2
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +81 -62
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +2 -2
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +14 -161
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +2 -2
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +44 -6
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +2 -2
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +22 -36
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +2 -2
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +71 -16
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +2 -2
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +18 -160
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +58 -120
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +2 -2
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +73 -16
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +2 -2
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +15 -10
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +2 -2
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +87 -5
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +52 -26
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +2 -7
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +48 -238
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +2 -2
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +85 -17
- package/dist/index46.js.map +1 -1
- package/dist/index5.cjs +2 -2
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +34 -80
- package/dist/index5.js.map +1 -1
- package/dist/index6.cjs +2 -2
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +1586 -163
- package/dist/index6.js.map +1 -1
- package/dist/index7.cjs +2 -2
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +14 -196
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +2 -2
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +23 -91
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +7 -2
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +162 -40
- package/dist/index9.js.map +1 -1
- package/package.json +22 -20
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index3.cjs +0 -2
- package/dist/index3.cjs.map +0 -1
- package/dist/index3.js +0 -87
- package/dist/index3.js.map +0 -1
- package/dist/index47.cjs +0 -2
- package/dist/index47.cjs.map +0 -1
- package/dist/index47.js +0 -2732
- package/dist/index47.js.map +0 -1
- package/dist/index48.cjs +0 -2
- package/dist/index48.cjs.map +0 -1
- package/dist/index48.js +0 -5
- package/dist/index48.js.map +0 -1
- package/dist/index49.cjs +0 -2
- package/dist/index49.cjs.map +0 -1
- package/dist/index49.js +0 -5
- package/dist/index49.js.map +0 -1
- /package/dist/{cosmik-theme.css → src/cosmik-theme.css} +0 -0
package/dist/index23.js
CHANGED
|
@@ -1,186 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { cva as e } from "./index5.js";
|
|
2
|
+
import { cn as t, debounce as n } from "./index7.js";
|
|
3
|
+
import { require_jsx_runtime as r } from "./index10.js";
|
|
4
|
+
import { ChevronLeft as i, ChevronRight as a } from "lucide-react";
|
|
5
|
+
import o from "react";
|
|
6
|
+
//#region src/FilterBar/GradientScroll.tsx
|
|
7
|
+
var s = r(), c = e("", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
white: "to-white",
|
|
10
|
+
gray: "to-gray-50"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { variant: "gray" }
|
|
13
|
+
}), l = e("", {
|
|
14
|
+
variants: { variant: {
|
|
15
|
+
white: "bg-white",
|
|
16
|
+
gray: "bg-gray-50"
|
|
17
|
+
} },
|
|
18
|
+
defaultVariants: { variant: "gray" }
|
|
19
|
+
});
|
|
20
|
+
function u({ children: e, className: r, variant: u }) {
|
|
21
|
+
let d = o.useRef(null), [f, p] = o.useState(!1), [m, h] = o.useState(!1), g = o.useCallback(() => {
|
|
22
|
+
if (!d.current) return;
|
|
23
|
+
let { scrollLeft: e, scrollWidth: t, clientWidth: n } = d.current;
|
|
24
|
+
p(e > 0), h(e + n < t - 5);
|
|
25
|
+
}, [d]);
|
|
26
|
+
return o.useEffect(() => {
|
|
27
|
+
g();
|
|
28
|
+
let e = n(g, 100);
|
|
29
|
+
return window.addEventListener("resize", e), () => {
|
|
30
|
+
window.removeEventListener("resize", e);
|
|
31
|
+
};
|
|
32
|
+
}, [g]), /* @__PURE__ */ (0, s.jsxs)("div", {
|
|
33
|
+
className: "relative flex overflow-hidden",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ (0, s.jsxs)("div", {
|
|
36
|
+
className: t("absolute left-0 top-0 h-full flex items-center", { hidden: !f }),
|
|
37
|
+
children: [/* @__PURE__ */ (0, s.jsx)(i, {
|
|
38
|
+
size: 16,
|
|
39
|
+
className: t("text-gray-600 h-full cursor-pointer", l({ variant: u })),
|
|
40
|
+
onClick: () => d.current?.scrollBy({
|
|
41
|
+
left: -100,
|
|
42
|
+
behavior: "smooth"
|
|
43
|
+
})
|
|
44
|
+
}), /* @__PURE__ */ (0, s.jsx)("div", { className: t("w-[50px] h-full bg-linear-to-l from-transparent", c({ variant: u })) })]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ (0, s.jsx)("div", {
|
|
47
|
+
ref: d,
|
|
48
|
+
onScroll: g,
|
|
49
|
+
className: t("overflow-scroll no-scrollbar", r),
|
|
50
|
+
children: e
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ (0, s.jsxs)("div", {
|
|
53
|
+
className: t("absolute right-0 top-0 h-full w-fit flex items-center justify-end", { hidden: !m }),
|
|
54
|
+
children: [/* @__PURE__ */ (0, s.jsx)("div", { className: t("w-[50px] h-full bg-linear-to-r from-transparent", c({ variant: u })) }), /* @__PURE__ */ (0, s.jsx)(a, {
|
|
55
|
+
size: 16,
|
|
56
|
+
className: t("text-gray-600 h-full cursor-pointer", l({ variant: u })),
|
|
57
|
+
onClick: () => d.current?.scrollBy({
|
|
58
|
+
left: 100,
|
|
59
|
+
behavior: "smooth"
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
});
|
|
9
65
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
function g({
|
|
16
|
-
...t
|
|
17
|
-
}) {
|
|
18
|
-
return /* @__PURE__ */ e.jsx(a.Value, { "data-slot": "select-value", ...t });
|
|
19
|
-
}
|
|
20
|
-
function v({
|
|
21
|
-
className: t,
|
|
22
|
-
children: s,
|
|
23
|
-
...o
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ e.jsxs(
|
|
26
|
-
a.Trigger,
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "select-trigger",
|
|
29
|
-
className: l(
|
|
30
|
-
"border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700",
|
|
31
|
-
"focus-visible:outline-none focus:shadow-field-active",
|
|
32
|
-
"flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]",
|
|
33
|
-
"disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none",
|
|
34
|
-
"*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8",
|
|
35
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16",
|
|
36
|
-
"hover:shadow-field-hover",
|
|
37
|
-
"active:shadow-field-active",
|
|
38
|
-
"data-[state=open]:shadow-field-active",
|
|
39
|
-
t
|
|
40
|
-
),
|
|
41
|
-
...o,
|
|
42
|
-
children: [
|
|
43
|
-
s,
|
|
44
|
-
/* @__PURE__ */ e.jsx(a.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(r, { className: "size-16 opacity-64 shrink-0 ml-4" }) })
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
function b({
|
|
50
|
-
className: t,
|
|
51
|
-
children: s,
|
|
52
|
-
position: o = "popper",
|
|
53
|
-
...n
|
|
54
|
-
}) {
|
|
55
|
-
return /* @__PURE__ */ e.jsx(a.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
56
|
-
a.Content,
|
|
57
|
-
{
|
|
58
|
-
"data-slot": "select-content",
|
|
59
|
-
className: l(
|
|
60
|
-
"bg-white",
|
|
61
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
62
|
-
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2",
|
|
63
|
-
"data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
64
|
-
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200",
|
|
65
|
-
o === "popper" && "data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4",
|
|
66
|
-
t
|
|
67
|
-
),
|
|
68
|
-
position: o,
|
|
69
|
-
...n,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
72
|
-
/* @__PURE__ */ e.jsx(
|
|
73
|
-
a.Viewport,
|
|
74
|
-
{
|
|
75
|
-
className: l(
|
|
76
|
-
o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4"
|
|
77
|
-
),
|
|
78
|
-
children: s
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ e.jsx(p, {})
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
) });
|
|
85
|
-
}
|
|
86
|
-
function j({
|
|
87
|
-
className: t,
|
|
88
|
-
...s
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ e.jsx(
|
|
91
|
-
a.Label,
|
|
92
|
-
{
|
|
93
|
-
"data-slot": "select-label",
|
|
94
|
-
className: l("px-16 py-8 pr-8 font-semibold", t),
|
|
95
|
-
...s
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
function w({
|
|
100
|
-
className: t,
|
|
101
|
-
children: s,
|
|
102
|
-
...o
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ e.jsxs(
|
|
105
|
-
a.Item,
|
|
106
|
-
{
|
|
107
|
-
"data-slot": "select-item",
|
|
108
|
-
className: l(
|
|
109
|
-
"relative flex w-full cursor-default items-center gap-8 py-8 pl-16 pr-32 outline-none select-none",
|
|
110
|
-
"hover:bg-gray-200",
|
|
111
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
112
|
-
"data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800",
|
|
113
|
-
"[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:flex-col *:[span]:last:gap-8",
|
|
114
|
-
t
|
|
115
|
-
),
|
|
116
|
-
...o,
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute right-8 top-8 flex size-16 items-center justify-center", children: /* @__PURE__ */ e.jsx(a.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-16" }) }) }),
|
|
119
|
-
/* @__PURE__ */ e.jsx(a.ItemText, { children: s })
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
function y({
|
|
125
|
-
className: t,
|
|
126
|
-
...s
|
|
127
|
-
}) {
|
|
128
|
-
return /* @__PURE__ */ e.jsx(
|
|
129
|
-
a.Separator,
|
|
130
|
-
{
|
|
131
|
-
"data-slot": "select-separator",
|
|
132
|
-
className: l(
|
|
133
|
-
"bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px",
|
|
134
|
-
t
|
|
135
|
-
),
|
|
136
|
-
...s
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
function d({
|
|
141
|
-
className: t,
|
|
142
|
-
...s
|
|
143
|
-
}) {
|
|
144
|
-
return /* @__PURE__ */ e.jsx(
|
|
145
|
-
a.ScrollUpButton,
|
|
146
|
-
{
|
|
147
|
-
"data-slot": "select-scroll-up-button",
|
|
148
|
-
className: l(
|
|
149
|
-
"flex cursor-default items-center justify-center py-4",
|
|
150
|
-
t
|
|
151
|
-
),
|
|
152
|
-
...s,
|
|
153
|
-
children: /* @__PURE__ */ e.jsx(c, { className: "size-16" })
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
function p({
|
|
158
|
-
className: t,
|
|
159
|
-
...s
|
|
160
|
-
}) {
|
|
161
|
-
return /* @__PURE__ */ e.jsx(
|
|
162
|
-
a.ScrollDownButton,
|
|
163
|
-
{
|
|
164
|
-
"data-slot": "select-scroll-down-button",
|
|
165
|
-
className: l(
|
|
166
|
-
"flex cursor-default items-center justify-center py-4",
|
|
167
|
-
t
|
|
168
|
-
),
|
|
169
|
-
...s,
|
|
170
|
-
children: /* @__PURE__ */ e.jsx(r, { className: "size-16" })
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
export {
|
|
175
|
-
x as Select,
|
|
176
|
-
b as SelectContent,
|
|
177
|
-
h as SelectGroup,
|
|
178
|
-
w as SelectItem,
|
|
179
|
-
j as SelectLabel,
|
|
180
|
-
p as SelectScrollDownButton,
|
|
181
|
-
d as SelectScrollUpButton,
|
|
182
|
-
y as SelectSeparator,
|
|
183
|
-
v as SelectTrigger,
|
|
184
|
-
g as SelectValue
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=index23.js.map
|
|
66
|
+
//#endregion
|
|
67
|
+
export { u as GradientScroll };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=index23.js.map
|
package/dist/index23.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index23.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index23.js","names":[],"sources":["../src/FilterBar/GradientScroll.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority'\nimport { ChevronLeft, ChevronRight } from 'lucide-react'\nimport React from 'react'\nimport { cn, debounce } from '../lib/utils'\n\nexport const gradientVariants = cva('', {\n variants: {\n variant: {\n white: 'to-white',\n gray: 'to-gray-50'\n }\n },\n defaultVariants: {\n variant: 'gray'\n }\n})\n\nexport const backgroundVariants = cva('', {\n variants: {\n variant: {\n white: 'bg-white',\n gray: 'bg-gray-50'\n }\n },\n defaultVariants: {\n variant: 'gray'\n }\n})\n\ninterface GradientScrollProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof gradientVariants> {}\n\nexport function GradientScroll({\n children,\n className,\n variant\n}: GradientScrollProps) {\n const scrollableRef = React.useRef<HTMLDivElement>(null)\n const [leftArrowVisible, setLeftArrowVisible] = React.useState(false)\n const [rightArrowVisible, setRightArrowVisible] = React.useState(false)\n\n const handleScroll = React.useCallback(() => {\n if (!scrollableRef.current) return\n\n const { scrollLeft, scrollWidth, clientWidth } = scrollableRef.current\n setLeftArrowVisible(scrollLeft > 0)\n setRightArrowVisible(scrollLeft + clientWidth < scrollWidth - 5)\n }, [scrollableRef])\n\n React.useEffect(() => {\n handleScroll()\n\n const debouncedHandleScroll = debounce(handleScroll, 100)\n window.addEventListener('resize', debouncedHandleScroll)\n return () => {\n window.removeEventListener('resize', debouncedHandleScroll)\n }\n }, [handleScroll])\n\n return (\n <div className=\"relative flex overflow-hidden\">\n <div\n className={cn('absolute left-0 top-0 h-full flex items-center', {\n hidden: !leftArrowVisible\n })}\n >\n <ChevronLeft\n size={16}\n className={cn(\n 'text-gray-600 h-full cursor-pointer',\n backgroundVariants({ variant })\n )}\n onClick={() =>\n scrollableRef.current?.scrollBy({ left: -100, behavior: 'smooth' })\n }\n />\n <div\n className={cn(\n 'w-[50px] h-full bg-linear-to-l from-transparent',\n gradientVariants({ variant })\n )}\n />\n </div>\n <div\n ref={scrollableRef}\n onScroll={handleScroll}\n className={cn('overflow-scroll no-scrollbar', className)}\n >\n {children}\n </div>\n <div\n className={cn(\n 'absolute right-0 top-0 h-full w-fit flex items-center justify-end',\n { hidden: !rightArrowVisible }\n )}\n >\n <div\n className={cn(\n 'w-[50px] h-full bg-linear-to-r from-transparent',\n gradientVariants({ variant })\n )}\n />\n <ChevronRight\n size={16}\n className={cn(\n 'text-gray-600 h-full cursor-pointer',\n backgroundVariants({ variant })\n )}\n onClick={() =>\n scrollableRef.current?.scrollBy({ left: 100, behavior: 'smooth' })\n }\n />\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;;aAKa,IAAmB,EAAI,IAAI;CACtC,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC,GAEY,IAAqB,EAAI,IAAI;CACxC,UAAU,EACR,SAAS;EACP,OAAO;EACP,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC;AAMD,SAAgB,EAAe,EAC7B,aACA,cACA,cACsB;CACtB,IAAM,IAAgB,EAAM,OAAuB,IAAI,GACjD,CAAC,GAAkB,KAAuB,EAAM,SAAS,EAAK,GAC9D,CAAC,GAAmB,KAAwB,EAAM,SAAS,EAAK,GAEhE,IAAe,EAAM,kBAAkB;EAC3C,IAAI,CAAC,EAAc,SAAS;EAE5B,IAAM,EAAE,eAAY,gBAAa,mBAAgB,EAAc;EAE/D,AADA,EAAoB,IAAa,CAAC,GAClC,EAAqB,IAAa,IAAc,IAAc,CAAC;CACjE,GAAG,CAAC,CAAa,CAAC;CAYlB,OAVA,EAAM,gBAAgB;EACpB,EAAa;EAEb,IAAM,IAAwB,EAAS,GAAc,GAAG;EAExD,OADA,OAAO,iBAAiB,UAAU,CAAqB,SAC1C;GACX,OAAO,oBAAoB,UAAU,CAAqB;EAC5D;CACF,GAAG,CAAC,CAAY,CAAC,GAGf,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf;GACE,iBAAA,GAAA,EAAA,MAAC,OAAD;IACE,WAAW,EAAG,kDAAkD,EAC9D,QAAQ,CAAC,EACX,CAAC;cAHH,CAKE,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM;KACN,WAAW,EACT,uCACA,EAAmB,EAAE,WAAQ,CAAC,CAChC;KACA,eACE,EAAc,SAAS,SAAS;MAAE,MAAM;MAAM,UAAU;KAAS,CAAC;IAErE,CAAA,GACD,iBAAA,GAAA,EAAA,KAAC,OAAD,EACE,WAAW,EACT,mDACA,EAAiB,EAAE,WAAQ,CAAC,CAC9B,EACD,CAAA,CACE;;GACL,iBAAA,GAAA,EAAA,KAAC,OAAD;IACE,KAAK;IACL,UAAU;IACV,WAAW,EAAG,gCAAgC,CAAS;IAEtD;GACE,CAAA;GACL,iBAAA,GAAA,EAAA,MAAC,OAAD;IACE,WAAW,EACT,qEACA,EAAE,QAAQ,CAAC,EAAkB,CAC/B;cAJF,CAME,iBAAA,GAAA,EAAA,KAAC,OAAD,EACE,WAAW,EACT,mDACA,EAAiB,EAAE,WAAQ,CAAC,CAC9B,EACD,CAAA,GACD,iBAAA,GAAA,EAAA,KAAC,GAAD;KACE,MAAM;KACN,WAAW,EACT,uCACA,EAAmB,EAAE,WAAQ,CAAC,CAChC;KACA,eACE,EAAc,SAAS,SAAS;MAAE,MAAM;MAAK,UAAU;KAAS,CAAC;IAEpE,CAAA,CACE;;EACF;;AAET"}
|
package/dist/index24.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index24.cjs.map
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index10.cjs"),r=require("./index23.cjs");let i=require("react");i=e.__toESM(i,1);var a=n.default;function o({className:e,...n}){return(0,a.jsx)(`div`,{className:t.cn(`flex w-full`,e),...n})}function s({variant:e,children:t,...n}){return(0,a.jsx)(r.GradientScroll,{variant:e,...n,children:(0,a.jsx)(`div`,{className:`flex items-center space-x-8 w-fit`,children:t})})}function c({className:e,...n}){return(0,a.jsx)(`div`,{className:t.cn(`flex space-x-8`,e),...n})}exports.FilterBar=o,exports.FilterBarContent=c,exports.FilterBarScrollableContent=s;
|
|
2
|
+
//# sourceMappingURL=index24.cjs.map
|
package/dist/index24.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index24.cjs","names":[],"sources":["../src/FilterBar/index.tsx"],"sourcesContent":["import { type VariantProps } from 'class-variance-authority'\nimport React from 'react'\nimport { cn } from '../lib/utils'\nimport { GradientScroll, gradientVariants } from './GradientScroll'\n\ntype FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n className?: string\n}\n\nexport function FilterBar({ className, ...props }: FilterBarProps) {\n return <div className={cn('flex w-full', className)} {...props} />\n}\n\ninterface FilterBarScrollableContentProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof gradientVariants> {}\n\nexport function FilterBarScrollableContent({\n variant,\n children,\n ...props\n}: FilterBarScrollableContentProps) {\n return (\n <GradientScroll variant={variant} {...props}>\n <div className=\"flex items-center space-x-8 w-fit\">{children}</div>\n </GradientScroll>\n )\n}\n\ntype FilterBarContentProps = FilterBarProps\n\nexport function FilterBarContent({\n className,\n ...props\n}: FilterBarContentProps) {\n return <div className={cn('flex space-x-8', className)} {...props} />\n}\n"],"mappings":"wKASA,SAAgB,EAAU,CAAE,YAAW,GAAG,GAAyB,CACjE,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,cAAe,CAAS,EAAG,GAAI,CAAQ,CAAA,CACnE,CAMA,SAAgB,EAA2B,CACzC,UACA,WACA,GAAG,GAC+B,CAClC,OACE,EAAA,EAAA,KAAC,EAAA,eAAD,CAAyB,UAAS,GAAI,YACpC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,oCAAqC,UAAc,CAAA,CACpD,CAAA,CAEpB,CAIA,SAAgB,EAAiB,CAC/B,YACA,GAAG,GACqB,CACxB,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,iBAAkB,CAAS,EAAG,GAAI,CAAQ,CAAA,CACtE"}
|
package/dist/index24.js
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
"data-slot": "separator",
|
|
14
|
-
decorative: o,
|
|
15
|
-
orientation: a,
|
|
16
|
-
className: e(
|
|
17
|
-
"bg-gray-900/16 shrink-0",
|
|
18
|
-
"data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-auto",
|
|
19
|
-
"data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px",
|
|
20
|
-
t
|
|
21
|
-
),
|
|
22
|
-
...r
|
|
23
|
-
}
|
|
24
|
-
);
|
|
1
|
+
import { cn as e } from "./index7.js";
|
|
2
|
+
import { require_jsx_runtime as t } from "./index10.js";
|
|
3
|
+
import { GradientScroll as n } from "./index23.js";
|
|
4
|
+
import "react";
|
|
5
|
+
//#region src/FilterBar/index.tsx
|
|
6
|
+
var r = t();
|
|
7
|
+
function i({ className: t, ...n }) {
|
|
8
|
+
return /* @__PURE__ */ (0, r.jsx)("div", {
|
|
9
|
+
className: e("flex w-full", t),
|
|
10
|
+
...n
|
|
11
|
+
});
|
|
25
12
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
function a({ variant: e, children: t, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ (0, r.jsx)(n, {
|
|
15
|
+
variant: e,
|
|
16
|
+
...i,
|
|
17
|
+
children: /* @__PURE__ */ (0, r.jsx)("div", {
|
|
18
|
+
className: "flex items-center space-x-8 w-fit",
|
|
19
|
+
children: t
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function o({ className: t, ...n }) {
|
|
24
|
+
return /* @__PURE__ */ (0, r.jsx)("div", {
|
|
25
|
+
className: e("flex space-x-8", t),
|
|
26
|
+
...n
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as FilterBar, o as FilterBarContent, a as FilterBarScrollableContent };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=index24.js.map
|
package/dist/index24.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index24.js","names":[],"sources":["../src/FilterBar/index.tsx"],"sourcesContent":["import { type VariantProps } from 'class-variance-authority'\nimport React from 'react'\nimport { cn } from '../lib/utils'\nimport { GradientScroll, gradientVariants } from './GradientScroll'\n\ntype FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {\n className?: string\n}\n\nexport function FilterBar({ className, ...props }: FilterBarProps) {\n return <div className={cn('flex w-full', className)} {...props} />\n}\n\ninterface FilterBarScrollableContentProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof gradientVariants> {}\n\nexport function FilterBarScrollableContent({\n variant,\n children,\n ...props\n}: FilterBarScrollableContentProps) {\n return (\n <GradientScroll variant={variant} {...props}>\n <div className=\"flex items-center space-x-8 w-fit\">{children}</div>\n </GradientScroll>\n )\n}\n\ntype FilterBarContentProps = FilterBarProps\n\nexport function FilterBarContent({\n className,\n ...props\n}: FilterBarContentProps) {\n return <div className={cn('flex space-x-8', className)} {...props} />\n}\n"],"mappings":";;;;;;AASA,SAAgB,EAAU,EAAE,cAAW,GAAG,KAAyB;CACjE,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAW,EAAG,eAAe,CAAS;EAAG,GAAI;CAAQ,CAAA;AACnE;AAMA,SAAgB,EAA2B,EACzC,YACA,aACA,GAAG,KAC+B;CAClC,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAyB;EAAS,GAAI;YACpC,iBAAA,GAAA,EAAA,KAAC,OAAD;GAAK,WAAU;GAAqC;EAAc,CAAA;CACpD,CAAA;AAEpB;AAIA,SAAgB,EAAiB,EAC/B,cACA,GAAG,KACqB;CACxB,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAW,EAAG,kBAAkB,CAAS;EAAG,GAAI;CAAQ,CAAA;AACtE"}
|
package/dist/index25.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=index25.cjs.map
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index10.cjs");let r=require("react");r=e.__toESM(r,1);var i=n.default;function a({className:e,type:n,...r}){return(0,i.jsx)(`input`,{type:n,"data-slot":`input`,className:t.cn(`flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-base`,`file:border-0 file:bg-white file:text-base file:font-semibold`,`placeholder:text-gray-400`,`hover:shadow-field-hover`,`active:shadow-field-active`,`focus-visible:outline-none focus:shadow-field-active`,`disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none`,e),...r})}exports.Input=a;
|
|
2
|
+
//# sourceMappingURL=index25.cjs.map
|
package/dist/index25.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index25.cjs","names":[],"sources":["../src/Input/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Input({ className, type, ...props }: React.ComponentProps<'input'>) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n 'flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-base',\n 'file:border-0 file:bg-white file:text-base file:font-semibold',\n 'placeholder:text-gray-400',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n"],"mappings":"6IAGA,SAAS,EAAM,CAAE,YAAW,OAAM,GAAG,GAAwC,CAC3E,OACE,EAAA,EAAA,KAAC,QAAD,CACQ,OACN,YAAU,QACV,UAAW,EAAA,GACT,2FACA,gEACA,4BACA,2BACA,6BACA,uDACA,uEACA,CACF,EACA,GAAI,CACL,CAAA,CAEL"}
|
package/dist/index25.js
CHANGED
|
@@ -1,132 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function l({
|
|
19
|
-
...t
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "sheet-portal", ...t });
|
|
22
|
-
}
|
|
23
|
-
function d({
|
|
24
|
-
className: t,
|
|
25
|
-
...a
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e.jsx(
|
|
28
|
-
o.Overlay,
|
|
29
|
-
{
|
|
30
|
-
"data-slot": "sheet-overlay",
|
|
31
|
-
className: s(
|
|
32
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ",
|
|
33
|
-
t
|
|
34
|
-
),
|
|
35
|
-
...a
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
function p({
|
|
40
|
-
className: t,
|
|
41
|
-
children: a,
|
|
42
|
-
side: r = "right",
|
|
43
|
-
...n
|
|
44
|
-
}) {
|
|
45
|
-
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
46
|
-
/* @__PURE__ */ e.jsx(d, {}),
|
|
47
|
-
/* @__PURE__ */ e.jsxs(
|
|
48
|
-
o.Content,
|
|
49
|
-
{
|
|
50
|
-
"data-slot": "sheet-content",
|
|
51
|
-
className: s(
|
|
52
|
-
" bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
53
|
-
r === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
54
|
-
r === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
55
|
-
r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
56
|
-
r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
57
|
-
t
|
|
58
|
-
),
|
|
59
|
-
...n,
|
|
60
|
-
children: [
|
|
61
|
-
a,
|
|
62
|
-
/* @__PURE__ */ e.jsxs(o.Close, { className: "absolute right-16 top-16 rounded opacity-64 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none", children: [
|
|
63
|
-
/* @__PURE__ */ e.jsx(i, { className: "size-16" }),
|
|
64
|
-
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
65
|
-
] })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] });
|
|
70
|
-
}
|
|
71
|
-
function g({ className: t, ...a }) {
|
|
72
|
-
return /* @__PURE__ */ e.jsx(
|
|
73
|
-
"div",
|
|
74
|
-
{
|
|
75
|
-
"data-slot": "sheet-header",
|
|
76
|
-
className: s("flex flex-col gap-8", t),
|
|
77
|
-
...a
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function j({ className: t, ...a }) {
|
|
82
|
-
return /* @__PURE__ */ e.jsx(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "sheet-footer",
|
|
86
|
-
className: s(
|
|
87
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end gap-8",
|
|
88
|
-
t
|
|
89
|
-
),
|
|
90
|
-
...a
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
function b({
|
|
95
|
-
className: t,
|
|
96
|
-
...a
|
|
97
|
-
}) {
|
|
98
|
-
return /* @__PURE__ */ e.jsx(
|
|
99
|
-
o.Title,
|
|
100
|
-
{
|
|
101
|
-
"data-slot": "sheet-title",
|
|
102
|
-
className: s("text-gray-800 font-semibold", t),
|
|
103
|
-
...a
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
function y({
|
|
108
|
-
className: t,
|
|
109
|
-
...a
|
|
110
|
-
}) {
|
|
111
|
-
return /* @__PURE__ */ e.jsx(
|
|
112
|
-
o.Description,
|
|
113
|
-
{
|
|
114
|
-
"data-slot": "sheet-description",
|
|
115
|
-
className: s("text-gray-900 text-base", t),
|
|
116
|
-
...a
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
f as Sheet,
|
|
122
|
-
x as SheetClose,
|
|
123
|
-
p as SheetContent,
|
|
124
|
-
y as SheetDescription,
|
|
125
|
-
j as SheetFooter,
|
|
126
|
-
g as SheetHeader,
|
|
127
|
-
d as SheetOverlay,
|
|
128
|
-
l as SheetPortal,
|
|
129
|
-
b as SheetTitle,
|
|
130
|
-
h as SheetTrigger
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=index25.js.map
|
|
1
|
+
import { cn as e } from "./index7.js";
|
|
2
|
+
import { require_jsx_runtime as t } from "./index10.js";
|
|
3
|
+
import "react";
|
|
4
|
+
//#region src/Input/index.tsx
|
|
5
|
+
var n = t();
|
|
6
|
+
function r({ className: t, type: r, ...i }) {
|
|
7
|
+
return /* @__PURE__ */ (0, n.jsx)("input", {
|
|
8
|
+
type: r,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: e("flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-base", "file:border-0 file:bg-white file:text-base file:font-semibold", "placeholder:text-gray-400", "hover:shadow-field-hover", "active:shadow-field-active", "focus-visible:outline-none focus:shadow-field-active", "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none", t),
|
|
11
|
+
...i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { r as Input };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index25.js.map
|
package/dist/index25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index25.js","names":[],"sources":["../src/Input/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Input({ className, type, ...props }: React.ComponentProps<'input'>) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n 'flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-base',\n 'file:border-0 file:bg-white file:text-base file:font-semibold',\n 'placeholder:text-gray-400',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n"],"mappings":";;;;;AAGA,SAAS,EAAM,EAAE,cAAW,SAAM,GAAG,KAAwC;CAC3E,OACE,iBAAA,GAAA,EAAA,KAAC,SAAD;EACQ;EACN,aAAU;EACV,WAAW,EACT,4FACA,iEACA,6BACA,4BACA,8BACA,wDACA,wEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|