@incognia/cosmik 0.41.0 → 1.0.0-beta.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/README.md +7 -19
- package/dist/Alert/index.d.ts +8 -7
- package/dist/Alert/index.d.ts.map +1 -1
- package/dist/AlertDialog/index.d.ts +17 -23
- package/dist/AlertDialog/index.d.ts.map +1 -1
- package/dist/Badge/index.d.ts +7 -6
- package/dist/Badge/index.d.ts.map +1 -1
- package/dist/Button/index.d.ts +6 -6
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/Calendar/index.d.ts +4 -7
- package/dist/Calendar/index.d.ts.map +1 -1
- package/dist/Card/index.d.ts +8 -7
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/index.d.ts.map +1 -1
- package/dist/Command/index.d.ts +19 -51
- package/dist/Command/index.d.ts.map +1 -1
- package/dist/Dialog/index.d.ts +14 -19
- package/dist/Dialog/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.d.ts +23 -25
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/Filter/index.d.ts +1 -1
- package/dist/FilterBar/GradientScroll.d.ts +4 -4
- package/dist/FilterBar/index.d.ts +2 -2
- package/dist/Input/index.d.ts +1 -3
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Label/index.d.ts +1 -2
- package/dist/Label/index.d.ts.map +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.d.ts.map +1 -1
- package/dist/Pagination/index.d.ts +11 -26
- package/dist/Pagination/index.d.ts.map +1 -1
- package/dist/Popover/index.d.ts +6 -6
- package/dist/Popover/index.d.ts.map +1 -1
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.d.ts.map +1 -1
- package/dist/RadioGroup/index.d.ts +2 -2
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/Select/index.d.ts +13 -11
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Separator/index.d.ts +1 -1
- package/dist/Separator/index.d.ts.map +1 -1
- package/dist/Sheet/index.d.ts +13 -23
- package/dist/Sheet/index.d.ts.map +1 -1
- package/dist/Skeleton/index.d.ts +0 -1
- package/dist/Skeleton/index.d.ts.map +1 -1
- package/dist/Sonner/index.d.ts +0 -1
- package/dist/Sonner/index.d.ts.map +1 -1
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.d.ts.map +1 -1
- package/dist/Table/index.d.ts +12 -12
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Tabs/index.d.ts +5 -5
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/TagInput/index.d.ts +4 -5
- package/dist/TagInput/index.d.ts.map +1 -1
- package/dist/Textarea/index.d.ts +1 -3
- package/dist/Textarea/index.d.ts.map +1 -1
- package/dist/Toggle/index.d.ts +3 -8
- package/dist/Toggle/index.d.ts.map +1 -1
- package/dist/ToggleGroup/index.d.ts +4 -13
- package/dist/ToggleGroup/index.d.ts.map +1 -1
- package/dist/Tooltip/index.d.ts +7 -11
- package/dist/Tooltip/index.d.ts.map +1 -1
- package/dist/VerticalNavigationMenu/index.d.ts +8 -6
- package/dist/VerticalNavigationMenu/index.d.ts.map +1 -1
- package/dist/cosmik-theme.css +185 -0
- package/dist/cosmik.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +174 -178
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +191 -45
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +138 -33
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +224 -139
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +98 -103
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +22 -141
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +18 -103
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +18 -20
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +58 -22
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +20 -17
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +89 -47
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +39 -17
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +29 -96
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +44 -22
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +183 -24
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +26 -30
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +128 -130
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +13 -21
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +28 -103
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +25 -9
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +132 -34
- package/dist/index29.js.map +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.cjs.map +1 -1
- package/dist/index3.js +83 -69
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +62 -27
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +78 -104
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +21 -42
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +85 -77
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +67 -20
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +55 -75
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +89 -39
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +3 -33
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +33 -65
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +11 -261
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +153 -323
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +118 -6
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +13 -12
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +7 -118
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +2 -14
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +23 -3
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +6 -1
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +234 -103
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +13 -32
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +2729 -2
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +1 -9
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +2 -30
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +1 -19
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +2 -599
- package/dist/index49.js.map +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +77 -41
- package/dist/index5.js.map +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +157 -110
- package/dist/index6.js.map +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +182 -80
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +87 -157
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +32 -65
- package/dist/index9.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +59 -63
- package/dist/Colors.d.ts +0 -71
- package/dist/Colors.d.ts.map +0 -1
- package/dist/index2.cjs +0 -2
- package/dist/index2.cjs.map +0 -1
- package/dist/index2.js +0 -5
- package/dist/index2.js.map +0 -1
- package/dist/index50.cjs +0 -2
- package/dist/index50.cjs.map +0 -1
- package/dist/index50.js +0 -5
- package/dist/index50.js.map +0 -1
- package/dist/index51.cjs +0 -2
- package/dist/index51.cjs.map +0 -1
- package/dist/index51.js +0 -154
- package/dist/index51.js.map +0 -1
- package/dist/index52.cjs +0 -2
- package/dist/index52.cjs.map +0 -1
- package/dist/index52.js +0 -19
- package/dist/index52.js.map +0 -1
- package/dist/index53.cjs +0 -2
- package/dist/index53.cjs.map +0 -1
- package/dist/index53.js +0 -345
- package/dist/index53.js.map +0 -1
- package/dist/index54.cjs +0 -2
- package/dist/index54.cjs.map +0 -1
- package/dist/index54.js +0 -48
- package/dist/index54.js.map +0 -1
- package/dist/index55.cjs +0 -2
- package/dist/index55.cjs.map +0 -1
- package/dist/index55.js +0 -5
- package/dist/index55.js.map +0 -1
- package/dist/index56.cjs +0 -2
- package/dist/index56.cjs.map +0 -1
- package/dist/index56.js +0 -5
- package/dist/index56.js.map +0 -1
- package/dist/index57.cjs +0 -2
- package/dist/index57.cjs.map +0 -1
- package/dist/index57.js +0 -5
- package/dist/index57.js.map +0 -1
- package/dist/index58.cjs +0 -2
- package/dist/index58.cjs.map +0 -1
- package/dist/index58.js +0 -7
- package/dist/index58.js.map +0 -1
- package/dist/tailwind-theme-config.d.ts +0 -318
- package/dist/tailwind-theme-config.d.ts.map +0 -1
package/dist/index13.js
CHANGED
|
@@ -1,116 +1,111 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { cn as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(
|
|
21
|
-
|
|
22
|
-
children: e,
|
|
23
|
-
fullscreen: s,
|
|
24
|
-
hideCloseIcon: m,
|
|
25
|
-
onInteractOutside: p,
|
|
26
|
-
...c
|
|
27
|
-
}, f) => /* @__PURE__ */ o.jsx(u, { children: /* @__PURE__ */ o.jsx(d, { children: /* @__PURE__ */ o.jsxs(
|
|
28
|
-
t.Content,
|
|
1
|
+
import { j as e } from "./index37.js";
|
|
2
|
+
import { LucideX as C } from "lucide-react";
|
|
3
|
+
import f from "react";
|
|
4
|
+
import { Button as o } from "./index6.js";
|
|
5
|
+
import { Popover as b, PopoverTrigger as k, PopoverContent as y } from "./index20.js";
|
|
6
|
+
import { cn as N } from "./index39.js";
|
|
7
|
+
function F({
|
|
8
|
+
children: m,
|
|
9
|
+
label: d,
|
|
10
|
+
selectedLabel: a,
|
|
11
|
+
trigger: p,
|
|
12
|
+
i18n: n,
|
|
13
|
+
value: t,
|
|
14
|
+
onOpenChange: u,
|
|
15
|
+
onApply: l,
|
|
16
|
+
contentProps: x = {},
|
|
17
|
+
buttonProps: h = {},
|
|
18
|
+
...j
|
|
19
|
+
}) {
|
|
20
|
+
const [g, c] = f.useState(!1), [i, s] = f.useState(t || null), w = t ? a ? a(t) : t.toString() : d, v = /* @__PURE__ */ e.jsxs(
|
|
21
|
+
o,
|
|
29
22
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
variant: t ? "filled" : "outline",
|
|
24
|
+
intent: t ? "filter" : "secondary",
|
|
25
|
+
size: "sm",
|
|
26
|
+
className: N(
|
|
27
|
+
"font-normal flex items-center whitespace-nowrap gap-x-4 rounded-[12px]",
|
|
33
28
|
{
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
a
|
|
29
|
+
"pr-12": !!t
|
|
30
|
+
}
|
|
38
31
|
),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
...h,
|
|
33
|
+
children: [
|
|
34
|
+
w,
|
|
35
|
+
t && /* @__PURE__ */ e.jsx(
|
|
36
|
+
C,
|
|
37
|
+
{
|
|
38
|
+
className: "w-16 h-16 rounded hover:bg-purple-100 shrink-0",
|
|
39
|
+
onClick: (r) => {
|
|
40
|
+
r.preventDefault(), s(null), l?.(void 0);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ e.jsxs(
|
|
48
|
+
b,
|
|
49
|
+
{
|
|
50
|
+
open: g,
|
|
51
|
+
onOpenChange: (r) => {
|
|
52
|
+
u?.(r), r || l?.(i || void 0), r && s(t || null), c(r);
|
|
42
53
|
},
|
|
43
|
-
...
|
|
54
|
+
...j,
|
|
44
55
|
children: [
|
|
45
|
-
e,
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
/* @__PURE__ */ e.jsx(k, { asChild: !0, children: p || v }),
|
|
57
|
+
/* @__PURE__ */ e.jsx(
|
|
58
|
+
y,
|
|
48
59
|
{
|
|
49
|
-
className:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
className: "w-full min-w-[200px]",
|
|
61
|
+
align: "start",
|
|
62
|
+
...x,
|
|
63
|
+
children: /* @__PURE__ */ e.jsxs(
|
|
64
|
+
"form",
|
|
65
|
+
{
|
|
66
|
+
onSubmit: (r) => {
|
|
67
|
+
r.preventDefault(), l?.(i || void 0), c(!1);
|
|
68
|
+
},
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ e.jsx("div", { children: m({
|
|
71
|
+
onFilterChange: s,
|
|
72
|
+
filterValue: i
|
|
73
|
+
}) }),
|
|
74
|
+
/* @__PURE__ */ e.jsxs("div", { className: "w-full flex justify-between mt-16", children: [
|
|
75
|
+
i && n.clear && /* @__PURE__ */ e.jsx(
|
|
76
|
+
o,
|
|
77
|
+
{
|
|
78
|
+
variant: "link",
|
|
79
|
+
intent: "secondary",
|
|
80
|
+
size: "fit-content",
|
|
81
|
+
type: "button",
|
|
82
|
+
onClick: () => {
|
|
83
|
+
s(null);
|
|
84
|
+
},
|
|
85
|
+
children: n.clear
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
n.apply && /* @__PURE__ */ e.jsx(
|
|
89
|
+
o,
|
|
90
|
+
{
|
|
91
|
+
className: "ml-auto",
|
|
92
|
+
variant: "link",
|
|
93
|
+
size: "fit-content",
|
|
94
|
+
type: "submit",
|
|
95
|
+
children: n.apply
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
)
|
|
61
102
|
}
|
|
62
103
|
)
|
|
63
104
|
]
|
|
64
105
|
}
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
y.displayName = t.Content.displayName;
|
|
68
|
-
const N = ({
|
|
69
|
-
className: a,
|
|
70
|
-
...e
|
|
71
|
-
}) => /* @__PURE__ */ o.jsx("div", { className: i("mb-16", a), ...e });
|
|
72
|
-
N.displayName = "DialogHeader";
|
|
73
|
-
const D = ({
|
|
74
|
-
className: a,
|
|
75
|
-
...e
|
|
76
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
className: i(
|
|
80
|
-
"flex justify-end gap-8 mx-[-8px] mb-[-8px] mt-24",
|
|
81
|
-
a
|
|
82
|
-
),
|
|
83
|
-
...e
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
D.displayName = "DialogFooter";
|
|
87
|
-
const j = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ o.jsx(
|
|
88
|
-
t.Title,
|
|
89
|
-
{
|
|
90
|
-
ref: s,
|
|
91
|
-
className: i("font-medium text-lg text-gray-800", a),
|
|
92
|
-
...e
|
|
93
|
-
}
|
|
94
|
-
));
|
|
95
|
-
j.displayName = t.Title.displayName;
|
|
96
|
-
const h = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ o.jsx(
|
|
97
|
-
t.Description,
|
|
98
|
-
{
|
|
99
|
-
ref: s,
|
|
100
|
-
className: i("mt-8 text-base text-gray-900", a),
|
|
101
|
-
...e
|
|
102
|
-
}
|
|
103
|
-
));
|
|
104
|
-
h.displayName = t.Description.displayName;
|
|
106
|
+
);
|
|
107
|
+
}
|
|
105
108
|
export {
|
|
106
|
-
|
|
107
|
-
y as DialogContent,
|
|
108
|
-
h as DialogDescription,
|
|
109
|
-
D as DialogFooter,
|
|
110
|
-
N as DialogHeader,
|
|
111
|
-
d as DialogOverlay,
|
|
112
|
-
u as DialogPortal,
|
|
113
|
-
j as DialogTitle,
|
|
114
|
-
C as DialogTrigger
|
|
109
|
+
F as Filter
|
|
115
110
|
};
|
|
116
111
|
//# sourceMappingURL=index13.js.map
|
package/dist/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index13.js","sources":["../src/Filter/index.tsx"],"sourcesContent":["import { LucideX } from 'lucide-react'\nimport React from 'react'\nimport { Button, ButtonProps } from '../Button'\nimport {\n Popover,\n PopoverContent,\n PopoverContentProps,\n PopoverTrigger\n} from '../Popover'\nimport { cn } from '../lib/utils'\n\ntype FilterPropsBase<T> = {\n i18n: {\n apply?: string\n clear?: string\n }\n value?: T\n onOpenChange?: (open: boolean) => void\n onApply: (value?: T) => void\n children: (props: {\n onFilterChange: (value: T | null) => void\n filterValue: T | null\n }) => React.ReactNode\n contentProps?: PopoverContentProps\n buttonProps?: ButtonProps\n}\n\ntype FilterPropsWithLabel<T> = FilterPropsBase<T> & {\n label: string\n selectedLabel?: (value: T) => React.ReactNode\n trigger?: never\n}\n\ntype FilterPropsWithTrigger<T> = FilterPropsBase<T> & {\n trigger: React.ReactNode\n label?: never\n selectedLabel?: never\n}\n\ntype FilterProps<T> = FilterPropsWithLabel<T> | FilterPropsWithTrigger<T>\n\nfunction Filter<T>({\n children,\n label,\n selectedLabel,\n trigger,\n i18n,\n value,\n onOpenChange,\n onApply,\n contentProps = {},\n buttonProps = {},\n ...props\n}: FilterProps<T>) {\n const [isOpen, setIsOpen] = React.useState(false)\n const [localValue, setLocalValue] = React.useState<T | null>(value || null)\n\n const filterLabel = value\n ? selectedLabel\n ? selectedLabel(value)\n : value.toString()\n : label\n\n const defaultTrigger = (\n <Button\n variant={value ? 'filled' : 'outline'}\n intent={value ? 'filter' : 'secondary'}\n size=\"sm\"\n className={cn(\n 'font-normal flex items-center whitespace-nowrap gap-x-4 rounded-[12px]',\n {\n 'pr-12': !!value\n }\n )}\n {...buttonProps}\n >\n {filterLabel}\n {value && (\n <LucideX\n className=\"w-16 h-16 rounded hover:bg-purple-100 shrink-0\"\n onClick={e => {\n e.preventDefault()\n setLocalValue(null)\n onApply?.(undefined)\n }}\n />\n )}\n </Button>\n )\n\n return (\n <Popover\n open={isOpen}\n onOpenChange={open => {\n onOpenChange?.(open)\n if (!open) onApply?.(localValue || undefined)\n if (open) setLocalValue(value || null)\n setIsOpen(open)\n }}\n {...props}\n >\n <PopoverTrigger asChild>{trigger || defaultTrigger}</PopoverTrigger>\n <PopoverContent\n className=\"w-full min-w-[200px]\"\n align=\"start\"\n {...contentProps}\n >\n <form\n onSubmit={event => {\n event.preventDefault()\n onApply?.(localValue || undefined)\n setIsOpen(false)\n }}\n >\n <div>\n {children({\n onFilterChange: setLocalValue,\n filterValue: localValue\n })}\n </div>\n <div className=\"w-full flex justify-between mt-16\">\n {localValue && i18n.clear && (\n <Button\n variant=\"link\"\n intent=\"secondary\"\n size=\"fit-content\"\n type=\"button\"\n onClick={() => {\n setLocalValue(null)\n }}\n >\n {i18n.clear}\n </Button>\n )}\n {i18n.apply && (\n <Button\n className=\"ml-auto\"\n variant=\"link\"\n size=\"fit-content\"\n type=\"submit\"\n >\n {i18n.apply}\n </Button>\n )}\n </div>\n </form>\n </PopoverContent>\n </Popover>\n )\n}\n\nexport { Filter }\nexport type { FilterProps }\n"],"names":["Filter","children","label","selectedLabel","trigger","i18n","value","onOpenChange","onApply","contentProps","buttonProps","props","isOpen","setIsOpen","React","localValue","setLocalValue","filterLabel","defaultTrigger","jsxs","Button","cn","jsx","LucideX","e","Popover","open","PopoverTrigger","PopoverContent","event"],"mappings":";;;;;;AAyCA,SAASA,EAAU;AAAA,EACjB,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC,IAAe,CAAA;AAAA,EACf,aAAAC,IAAc,CAAA;AAAA,EACd,GAAGC;AACL,GAAmB;AACjB,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAM,SAAS,EAAK,GAC1C,CAACC,GAAYC,CAAa,IAAIF,EAAM,SAAmBR,KAAS,IAAI,GAEpEW,IAAcX,IAChBH,IACEA,EAAcG,CAAK,IACnBA,EAAM,aACRJ,GAEEgB,IACJC,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASd,IAAQ,WAAW;AAAA,MAC5B,QAAQA,IAAQ,WAAW;AAAA,MAC3B,MAAK;AAAA,MACL,WAAWe;AAAA,QACT;AAAA,QACA;AAAA,UACE,SAAS,CAAC,CAACf;AAAA,QAAA;AAAA,MACb;AAAA,MAED,GAAGI;AAAA,MAEH,UAAA;AAAA,QAAAO;AAAA,QACAX,KACCgB,gBAAAA,EAAAA;AAAAA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Ac,IAAI;AAAA,wBACpB;AAAA,wBAEC,UAAAX,EAAK;AAAA,sBAAA;AAAA,oBAAA;AAAA,oBAGTA,EAAK,SACJiB,gBAAAA,EAAAA;AAAAA,sBAACF;AAAA,sBAAA;AAAA,wBACC,WAAU;AAAA,wBACV,SAAQ;AAAA,wBACR,MAAK;AAAA,wBACL,MAAK;AAAA,wBAEJ,UAAAf,EAAK;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBACR,EAAA,CAEJ;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/dist/index14.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index37.cjs"),n=require("./index39.cjs"),i=require("./index40.cjs");function s({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:n.cn("flex w-full",e),...t})}function o({variant:e,children:t,...l}){return r.jsxRuntimeExports.jsx(i.GradientScroll,{variant:e,...l,children:r.jsxRuntimeExports.jsx("div",{className:"flex space-x-8 w-fit",children:t})})}function a({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:n.cn("flex space-x-8",e),...t})}exports.FilterBar=s;exports.FilterBarContent=a;exports.FilterBarScrollableContent=o;
|
|
2
2
|
//# sourceMappingURL=index14.cjs.map
|
package/dist/index14.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index14.cjs","sources":["../src/DropdownMenu/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center pl-16 py-8 text-base outline-none focus:bg-gray-200 data-[state=open]:bg-gray-200',\n inset && 'pl-32',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto mr-4 h-16 w-16\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center px-16 py-8 text-base outline-none transition-colors focus:bg-gray-200 focus:bg-gray-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n inset && 'pl-[2rem]',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-16 w-16\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-8 w-8 fill-gray-900\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-16 py-8 text-base font-medium',\n inset && 'pl-32',\n className\n )}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('h-[1px] bg-gray-900-8', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-40', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":"qgBAOMA,EAAeC,EAAsB,KAErCC,EAAsBD,EAAsB,QAE5CE,EAAoBF,EAAsB,MAE1CG,EAAqBH,EAAsB,OAE3CI,EAAkBJ,EAAsB,IAExCK,EAAyBL,EAAsB,WAE/CM,EAAyBC,EAAM,WAKnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC3CC,EAAA,kBAAA,KAACb,EAAsB,WAAtB,CACC,IAAAY,EACA,UAAWE,EAAA,GACT,iIACAL,GAAS,QACTD,CACF,EACC,GAAGG,EAEH,SAAA,CAAAD,EACDK,EAAAA,kB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AAA,CAAA,EAIViB,EAAqB,YAAc"}
|
|
1
|
+
{"version":3,"file":"index14.cjs","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 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"],"names":["FilterBar","className","props","jsx","cn","FilterBarScrollableContent","variant","children","GradientScroll","FilterBarContent"],"mappings":"uKASO,SAASA,EAAU,CAAE,UAAAC,EAAW,GAAGC,GAAyB,CACjE,OAAOC,EAAAA,kBAAAA,IAAC,OAAI,UAAWC,EAAAA,GAAG,cAAeH,CAAS,EAAI,GAAGC,EAAO,CAClE,CAMO,SAASG,EAA2B,CACzC,QAAAC,EACA,SAAAC,EACA,GAAGL,CACL,EAAoC,CAClC,OACEC,EAAAA,kBAAAA,IAACK,EAAAA,eAAA,CAAe,QAAAF,EAAmB,GAAGJ,EACpC,iCAAC,MAAA,CAAI,UAAU,uBAAwB,SAAAK,CAAA,CAAS,CAAA,CAClD,CAEJ,CAIO,SAASE,EAAiB,CAC/B,UAAAR,EACA,GAAGC,CACL,EAA0B,CACxB,OAAOC,EAAAA,kBAAAA,IAAC,OAAI,UAAWC,EAAAA,GAAG,iBAAkBH,CAAS,EAAI,GAAGC,EAAO,CACrE"}
|
package/dist/index14.js
CHANGED
|
@@ -1,144 +1,25 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
));
|
|
22
|
-
c.displayName = e.SubTrigger.displayName;
|
|
23
|
-
const u = d.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o.jsx(
|
|
24
|
-
e.SubContent,
|
|
25
|
-
{
|
|
26
|
-
ref: s,
|
|
27
|
-
className: n(
|
|
28
|
-
"z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2",
|
|
29
|
-
t
|
|
30
|
-
),
|
|
31
|
-
...a
|
|
32
|
-
}
|
|
33
|
-
));
|
|
34
|
-
u.displayName = e.SubContent.displayName;
|
|
35
|
-
const f = d.forwardRef(({ className: t, sideOffset: a = 4, ...s }, r) => /* @__PURE__ */ o.jsx(e.Portal, { children: /* @__PURE__ */ o.jsx(
|
|
36
|
-
e.Content,
|
|
37
|
-
{
|
|
38
|
-
ref: r,
|
|
39
|
-
sideOffset: a,
|
|
40
|
-
className: n(
|
|
41
|
-
"z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2",
|
|
42
|
-
t
|
|
43
|
-
),
|
|
44
|
-
...s
|
|
45
|
-
}
|
|
46
|
-
) }));
|
|
47
|
-
f.displayName = e.Content.displayName;
|
|
48
|
-
const x = d.forwardRef(({ className: t, inset: a, ...s }, r) => /* @__PURE__ */ o.jsx(
|
|
49
|
-
e.Item,
|
|
50
|
-
{
|
|
51
|
-
ref: r,
|
|
52
|
-
className: n(
|
|
53
|
-
"relative flex cursor-default select-none items-center px-16 py-8 text-base outline-none transition-colors focus:bg-gray-200 focus:bg-gray-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",
|
|
54
|
-
a && "pl-[2rem]",
|
|
55
|
-
t
|
|
56
|
-
),
|
|
57
|
-
...s
|
|
58
|
-
}
|
|
59
|
-
));
|
|
60
|
-
x.displayName = e.Item.displayName;
|
|
61
|
-
const b = d.forwardRef(({ className: t, children: a, checked: s, ...r }, i) => /* @__PURE__ */ o.jsxs(
|
|
62
|
-
e.CheckboxItem,
|
|
63
|
-
{
|
|
64
|
-
ref: i,
|
|
65
|
-
className: n(
|
|
66
|
-
"relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",
|
|
67
|
-
t
|
|
68
|
-
),
|
|
69
|
-
checked: s,
|
|
70
|
-
...r,
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-8 flex h-[14px] w-[14px] items-center justify-center", children: /* @__PURE__ */ o.jsx(e.ItemIndicator, { children: /* @__PURE__ */ o.jsx(m, { className: "h-16 w-16" }) }) }),
|
|
73
|
-
a
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
));
|
|
77
|
-
b.displayName = e.CheckboxItem.displayName;
|
|
78
|
-
const y = d.forwardRef(({ className: t, children: a, ...s }, r) => /* @__PURE__ */ o.jsxs(
|
|
79
|
-
e.RadioItem,
|
|
80
|
-
{
|
|
81
|
-
ref: r,
|
|
82
|
-
className: n(
|
|
83
|
-
"relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40",
|
|
84
|
-
t
|
|
85
|
-
),
|
|
86
|
-
...s,
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ o.jsx("span", { className: "absolute left-8 flex h-[14px] w-[14px] items-center justify-center", children: /* @__PURE__ */ o.jsx(e.ItemIndicator, { children: /* @__PURE__ */ o.jsx(p, { className: "h-8 w-8 fill-gray-900" }) }) }),
|
|
89
|
-
a
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
));
|
|
93
|
-
y.displayName = e.RadioItem.displayName;
|
|
94
|
-
const g = d.forwardRef(({ className: t, inset: a, ...s }, r) => /* @__PURE__ */ o.jsx(
|
|
95
|
-
e.Label,
|
|
96
|
-
{
|
|
97
|
-
ref: r,
|
|
98
|
-
className: n(
|
|
99
|
-
"px-16 py-8 text-base font-medium",
|
|
100
|
-
a && "pl-32",
|
|
101
|
-
t
|
|
102
|
-
),
|
|
103
|
-
...s
|
|
104
|
-
}
|
|
105
|
-
));
|
|
106
|
-
g.displayName = e.Label.displayName;
|
|
107
|
-
const w = d.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o.jsx(
|
|
108
|
-
e.Separator,
|
|
109
|
-
{
|
|
110
|
-
ref: s,
|
|
111
|
-
className: n("h-[1px] bg-gray-900-8", t),
|
|
112
|
-
...a
|
|
113
|
-
}
|
|
114
|
-
));
|
|
115
|
-
w.displayName = e.Separator.displayName;
|
|
116
|
-
const h = ({
|
|
117
|
-
className: t,
|
|
118
|
-
...a
|
|
119
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
120
|
-
"span",
|
|
121
|
-
{
|
|
122
|
-
className: n("ml-auto text-xs tracking-widest opacity-40", t),
|
|
123
|
-
...a
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
h.displayName = "DropdownMenuShortcut";
|
|
1
|
+
import { j as t } from "./index37.js";
|
|
2
|
+
import { cn as l } from "./index39.js";
|
|
3
|
+
import { GradientScroll as i } from "./index40.js";
|
|
4
|
+
function c({ className: r, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ t.jsx("div", { className: l("flex w-full", r), ...e });
|
|
6
|
+
}
|
|
7
|
+
function x({
|
|
8
|
+
variant: r,
|
|
9
|
+
children: e,
|
|
10
|
+
...n
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ t.jsx(i, { variant: r, ...n, children: /* @__PURE__ */ t.jsx("div", { className: "flex space-x-8 w-fit", children: e }) });
|
|
13
|
+
}
|
|
14
|
+
function f({
|
|
15
|
+
className: r,
|
|
16
|
+
...e
|
|
17
|
+
}) {
|
|
18
|
+
return /* @__PURE__ */ t.jsx("div", { className: l("flex space-x-8", r), ...e });
|
|
19
|
+
}
|
|
127
20
|
export {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
I as DropdownMenuGroup,
|
|
132
|
-
x as DropdownMenuItem,
|
|
133
|
-
g as DropdownMenuLabel,
|
|
134
|
-
S as DropdownMenuPortal,
|
|
135
|
-
v as DropdownMenuRadioGroup,
|
|
136
|
-
y as DropdownMenuRadioItem,
|
|
137
|
-
w as DropdownMenuSeparator,
|
|
138
|
-
h as DropdownMenuShortcut,
|
|
139
|
-
C as DropdownMenuSub,
|
|
140
|
-
u as DropdownMenuSubContent,
|
|
141
|
-
c as DropdownMenuSubTrigger,
|
|
142
|
-
R as DropdownMenuTrigger
|
|
21
|
+
c as FilterBar,
|
|
22
|
+
f as FilterBarContent,
|
|
23
|
+
x as FilterBarScrollableContent
|
|
143
24
|
};
|
|
144
25
|
//# sourceMappingURL=index14.js.map
|
package/dist/index14.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index14.js","sources":["../src/DropdownMenu/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center pl-16 py-8 text-base outline-none focus:bg-gray-200 data-[state=open]:bg-gray-200',\n inset && 'pl-32',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto mr-4 h-16 w-16\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded border border-gray-900-8 bg-white text-gray-900 shadow-200 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-[0.25rem] data-[side=top]:slide-in-from-bottom-2',\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center px-16 py-8 text-base outline-none transition-colors focus:bg-gray-200 focus:bg-gray-200 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n inset && 'pl-[2rem]',\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-16 w-16\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 pl-32 pr-4 text-base outline-none transition-colors focus:bg-gray-200 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-40',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-8 flex h-[14px] w-[14px] items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-8 w-8 fill-gray-900\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n 'px-16 py-8 text-base font-medium',\n inset && 'pl-32',\n className\n )}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('h-[1px] bg-gray-900-8', className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest opacity-40', className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":";;;;;AAOA,MAAMA,IAAeC,EAAsB,MAErCC,IAAsBD,EAAsB,SAE5CE,IAA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;AAAA,IAAA;AAAA,EAAA;AACH,CACD;AACDc,EAAsB,cAAcxB,EAAsB,UAAU;AAE9D,MAAA0B,IAAoBnB,EAAM,WAK9B,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGE,KAASC,MACjCG,gBAAAA,EAAA;AAAA,EAACf,EAAsB;AAAA,EAAtB;AAAA,IACC,KAAAY;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAL,KAAS;AAAA,MACTD;AAAA,IACF;AAAA,IACC,GAAGG;AAAA,EAAA;AACN,CACD;AACDe,EAAkB,cAAc1B,EAAsB,MAAM;AAEtD,MAAA2B,IAAwBpB,EAAM,WAGlC,CAAC,EAAE,WAAAC,GAAW,GAAGG,EAAM,GAAGC,MAC1BG,gBAAAA,EAAA;AAAA,EAACf,EAAsB;AAAA,EAAtB;AAAA,IACC,KAAAY;AAAA,IACA,WAAWE,EAAG,yBAAyBN,CAAS;AAAA,IAC/C,GAAGG;AAAA,EAAA;AACN,CACD;AACDgB,EAAsB,cAAc3B,EAAsB,UAAU;AAEpE,MAAM4B,IAAuB,CAAC;AAAA,EAC5B,WAAApB;AAAA,EACA,GAAGG;AACL,MAEII,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWD,EAAG,8CAA8CN,CAAS;AAAA,IACpE,GAAGG;AAAA,EAAA;AAAA;AAIViB,EAAqB,cAAc;"}
|
|
1
|
+
{"version":3,"file":"index14.js","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 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"],"names":["FilterBar","className","props","jsx","cn","FilterBarScrollableContent","variant","children","GradientScroll","FilterBarContent"],"mappings":";;;AASO,SAASA,EAAU,EAAE,WAAAC,GAAW,GAAGC,KAAyB;AACjE,SAAOC,gBAAAA,EAAAA,IAAC,SAAI,WAAWC,EAAG,eAAeH,CAAS,GAAI,GAAGC,GAAO;AAClE;AAMO,SAASG,EAA2B;AAAA,EACzC,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGL;AACL,GAAoC;AAClC,SACEC,gBAAAA,EAAAA,IAACK,GAAA,EAAe,SAAAF,GAAmB,GAAGJ,GACpC,gCAAC,OAAA,EAAI,WAAU,wBAAwB,UAAAK,EAAA,CAAS,EAAA,CAClD;AAEJ;AAIO,SAASE,EAAiB;AAAA,EAC/B,WAAAR;AAAA,EACA,GAAGC;AACL,GAA0B;AACxB,SAAOC,gBAAAA,EAAAA,IAAC,SAAI,WAAWC,EAAG,kBAAkBH,CAAS,GAAI,GAAGC,GAAO;AACrE;"}
|
package/dist/index15.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index37.cjs"),l=require("./index39.cjs");function r({className:e,type:t,...i}){return o.jsxRuntimeExports.jsx("input",{type:t,"data-slot":"input",className:l.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-medium","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),...i})}exports.Input=r;
|
|
2
2
|
//# sourceMappingURL=index15.cjs.map
|
package/dist/index15.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index15.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index15.cjs","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-medium',\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"],"names":["Input","className","type","props","jsx","cn"],"mappings":"4IAGA,SAASA,EAAM,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,GAAwC,CAC3E,OACEC,EAAAA,kBAAAA,IAAC,QAAA,CACC,KAAAF,EACA,YAAU,QACV,UAAWG,EAAAA,GACT,2FACA,8DACA,4BACA,2BACA,6BACA,uDACA,uEACAJ,CAAA,EAED,GAAGE,CAAA,CAAA,CAGV"}
|