@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/index7.js
CHANGED
|
@@ -1,93 +1,195 @@
|
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
inverted: !0,
|
|
33
|
-
variant: "green",
|
|
34
|
-
className: "bg-green-700 border-green-800"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
inverted: !0,
|
|
38
|
-
variant: "yellow",
|
|
39
|
-
className: "bg-yellow-700 border-yellow-800"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
inverted: !0,
|
|
43
|
-
variant: "magenta",
|
|
44
|
-
className: "bg-magenta-700 border-magenta-800"
|
|
1
|
+
import { j as n } from "./index37.js";
|
|
2
|
+
import { ChevronLeftIcon as m, ChevronRightIcon as b, ChevronDownIcon as w } from "lucide-react";
|
|
3
|
+
import * as g from "react";
|
|
4
|
+
import { getDefaultClassNames as f, DayPicker as h } from "react-day-picker";
|
|
5
|
+
import { buttonVariants as p, Button as y } from "./index6.js";
|
|
6
|
+
import { cn as e } from "./index39.js";
|
|
7
|
+
function C({
|
|
8
|
+
className: i,
|
|
9
|
+
classNames: u,
|
|
10
|
+
showOutsideDays: a = !0,
|
|
11
|
+
captionLayout: l = "label",
|
|
12
|
+
formatters: c,
|
|
13
|
+
components: d,
|
|
14
|
+
...x
|
|
15
|
+
}) {
|
|
16
|
+
const t = f();
|
|
17
|
+
return /* @__PURE__ */ n.jsx(
|
|
18
|
+
h,
|
|
19
|
+
{
|
|
20
|
+
showOutsideDays: a,
|
|
21
|
+
className: e(
|
|
22
|
+
"bg-white group/calendar p-12 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
23
|
+
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
24
|
+
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
25
|
+
i
|
|
26
|
+
),
|
|
27
|
+
captionLayout: l,
|
|
28
|
+
formatters: {
|
|
29
|
+
formatMonthDropdown: (r) => r.toLocaleString("default", { month: "short" }),
|
|
30
|
+
...c
|
|
45
31
|
},
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
classNames: {
|
|
33
|
+
root: e("w-fit", t.root),
|
|
34
|
+
months: e(
|
|
35
|
+
"flex gap-16 flex-col md:flex-row relative",
|
|
36
|
+
t.months
|
|
37
|
+
),
|
|
38
|
+
month: e("flex flex-col w-full gap-16", t.month),
|
|
39
|
+
nav: e(
|
|
40
|
+
"flex items-center gap-4 w-full absolute top-0 inset-x-0 justify-between",
|
|
41
|
+
t.nav
|
|
42
|
+
),
|
|
43
|
+
button_previous: e(
|
|
44
|
+
p({
|
|
45
|
+
variant: "ghost",
|
|
46
|
+
intent: "secondary",
|
|
47
|
+
size: "icon"
|
|
48
|
+
}),
|
|
49
|
+
"size-(--cell-size) aria-disabled:opacity-48 p-0 select-none",
|
|
50
|
+
t.button_previous
|
|
51
|
+
),
|
|
52
|
+
button_next: e(
|
|
53
|
+
p({
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
intent: "secondary",
|
|
56
|
+
size: "icon"
|
|
57
|
+
}),
|
|
58
|
+
"size-(--cell-size) aria-disabled:opacity-48 p-0 select-none",
|
|
59
|
+
t.button_next
|
|
60
|
+
),
|
|
61
|
+
month_caption: e(
|
|
62
|
+
"text-base flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
|
|
63
|
+
t.month_caption
|
|
64
|
+
),
|
|
65
|
+
dropdowns: e(
|
|
66
|
+
"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-[6px]",
|
|
67
|
+
t.dropdowns
|
|
68
|
+
),
|
|
69
|
+
dropdown_root: e(
|
|
70
|
+
"relative has-focus:border-ring border border-gray-900/48 shadow has-focus:ring-ring/50 has-focus:ring-[3px] rounded",
|
|
71
|
+
t.dropdown_root
|
|
72
|
+
),
|
|
73
|
+
dropdown: e(
|
|
74
|
+
"absolute bg-gray-900/48 inset-0 opacity-0",
|
|
75
|
+
t.dropdown
|
|
76
|
+
),
|
|
77
|
+
caption_label: e(
|
|
78
|
+
"select-none",
|
|
79
|
+
l === "label" ? "text-lg" : "rounded pl-8 pr-4 flex items-center gap-4 text-sm h-32 [&>svg]:text-gray-900 [&>]:size-[14px]",
|
|
80
|
+
t.caption_label
|
|
81
|
+
),
|
|
82
|
+
table: "w-full border-collapse",
|
|
83
|
+
weekdays: e("flex", t.weekdays),
|
|
84
|
+
weekday: e(
|
|
85
|
+
"text-gray-700 bg-gray-900/4 rounded flex-1 font-normal text-[0.8rem] select-none",
|
|
86
|
+
t.weekday
|
|
87
|
+
),
|
|
88
|
+
week: e("flex w-full mt-8", t.week),
|
|
89
|
+
week_number_header: e(
|
|
90
|
+
"select-none w-(--cell-size)",
|
|
91
|
+
t.week_number_header
|
|
92
|
+
),
|
|
93
|
+
week_number: e(
|
|
94
|
+
"text-[0.8rem] select-none text-gray-900",
|
|
95
|
+
t.week_number
|
|
96
|
+
),
|
|
97
|
+
day: e(
|
|
98
|
+
"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none",
|
|
99
|
+
t.day
|
|
100
|
+
),
|
|
101
|
+
range_start: e(
|
|
102
|
+
"rounded-l bg-purple-800 text-white",
|
|
103
|
+
t.range_start
|
|
104
|
+
),
|
|
105
|
+
range_middle: e("rounded-none", t.range_middle),
|
|
106
|
+
range_end: e(
|
|
107
|
+
"rounded-r bg-purple-800 text-white",
|
|
108
|
+
t.range_end
|
|
109
|
+
),
|
|
110
|
+
today: e(
|
|
111
|
+
"shadow-100 rounded aria-selected:shadow-none",
|
|
112
|
+
t.today
|
|
113
|
+
),
|
|
114
|
+
outside: e(
|
|
115
|
+
"text-gray-900 aria-selected:text-gray-900",
|
|
116
|
+
t.outside
|
|
117
|
+
),
|
|
118
|
+
disabled: e("text-gray-900 opacity-48", t.disabled),
|
|
119
|
+
hidden: e("invisible", t.hidden),
|
|
120
|
+
...u
|
|
50
121
|
},
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
122
|
+
components: {
|
|
123
|
+
Root: ({ className: r, rootRef: o, ...s }) => /* @__PURE__ */ n.jsx(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "calendar",
|
|
127
|
+
ref: o,
|
|
128
|
+
className: e(r),
|
|
129
|
+
...s
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
Chevron: ({ className: r, orientation: o, ...s }) => o === "left" ? /* @__PURE__ */ n.jsx(
|
|
133
|
+
m,
|
|
134
|
+
{
|
|
135
|
+
className: e("size-16", r),
|
|
136
|
+
...s
|
|
137
|
+
}
|
|
138
|
+
) : o === "right" ? /* @__PURE__ */ n.jsx(
|
|
139
|
+
b,
|
|
140
|
+
{
|
|
141
|
+
className: e("size-16", r),
|
|
142
|
+
...s
|
|
143
|
+
}
|
|
144
|
+
) : /* @__PURE__ */ n.jsx(w, { className: e("size-16", r), ...s }),
|
|
145
|
+
DayButton: _,
|
|
146
|
+
WeekNumber: ({ children: r, ...o }) => /* @__PURE__ */ n.jsx("td", { ...o, children: /* @__PURE__ */ n.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: r }) }),
|
|
147
|
+
...d
|
|
55
148
|
},
|
|
56
|
-
|
|
57
|
-
inverted: !0,
|
|
58
|
-
variant: "robinblue",
|
|
59
|
-
className: "bg-robinblue-700 border-robinblue-800"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
defaultVariants: {
|
|
63
|
-
size: "sm",
|
|
64
|
-
variant: "gray",
|
|
65
|
-
border: "outline",
|
|
66
|
-
inverted: !1
|
|
149
|
+
...x
|
|
67
150
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
className:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
inverted: n,
|
|
76
|
-
...o
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function _({
|
|
154
|
+
className: i,
|
|
155
|
+
day: u,
|
|
156
|
+
modifiers: a,
|
|
157
|
+
...l
|
|
77
158
|
}) {
|
|
78
|
-
|
|
79
|
-
|
|
159
|
+
const c = f(), d = g.useRef(null);
|
|
160
|
+
return g.useEffect(() => {
|
|
161
|
+
a.focused && d.current?.focus();
|
|
162
|
+
}, [a.focused]), /* @__PURE__ */ n.jsx(
|
|
163
|
+
y,
|
|
80
164
|
{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
165
|
+
ref: d,
|
|
166
|
+
variant: "ghost",
|
|
167
|
+
size: "icon",
|
|
168
|
+
"data-day": u.date.toLocaleDateString(),
|
|
169
|
+
"data-selected-single": a.selected && !a.range_start && !a.range_end && !a.range_middle,
|
|
170
|
+
"data-range-start": a.range_start,
|
|
171
|
+
"data-range-end": a.range_end,
|
|
172
|
+
"data-range-middle": a.range_middle,
|
|
173
|
+
className: e(
|
|
174
|
+
"data-[selected-single=true]:bg-purple-900 data-[selected-single=true]:text-white",
|
|
175
|
+
"data-[range-middle=true]:bg-purple-700 data-[range-middle=true]:text-white",
|
|
176
|
+
"data-[range-start=true]:bg-purple-800 data-[range-start=true]:text-white",
|
|
177
|
+
"data-[range-end=true]:bg-purple-800 data-[range-end=true]:text-white",
|
|
178
|
+
"flex outline aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-4 leading-none font-normal group-data-[focused=true]/day:relative",
|
|
179
|
+
"group-data-[focused=true]/day:z-10",
|
|
180
|
+
"data-[range-end=true]:rounded-r",
|
|
181
|
+
"data-[range-middle=true]:rounded-none",
|
|
182
|
+
"data-[range-start=true]:rounded-l",
|
|
183
|
+
"[&>span]:text-xs [&>span]:opacity-64",
|
|
184
|
+
c.day,
|
|
185
|
+
i
|
|
84
186
|
),
|
|
85
|
-
...
|
|
187
|
+
...l
|
|
86
188
|
}
|
|
87
189
|
);
|
|
88
190
|
}
|
|
89
191
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
192
|
+
C as Calendar,
|
|
193
|
+
_ as CalendarDayButton
|
|
92
194
|
};
|
|
93
195
|
//# sourceMappingURL=index7.js.map
|
package/dist/index7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index7.js","sources":["../src/Badge/index.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\n/**\n * The Toggle component has \"badge-like\" variants\n * When updating the styles in here, you should consider also updating it there\n */\nconst badgeVariants = cva(\n 'inline-flex items-center justify-center rounded-[8px] font-normal transition-colors',\n {\n variants: {\n variant: {\n green: 'bg-green-50 text-green-800 border-green-200',\n yellow: 'bg-yellow-50 text-yellow-700 border-yellow-200',\n magenta: 'bg-magenta-50 text-magenta-700 border-magenta-100',\n gray: 'bg-gray-200 text-gray-900 border-gray-300',\n purple: 'bg-purple-100 text-purple-900 border-purple-200',\n robinblue: 'bg-robinblue-100 text-robinblue-900 border-robinblue-200'\n },\n size: {\n sm: 'h-[26px] px-8 text-sm',\n md: 'h-32 px-12 text-base',\n icon: 'h-32 w-32'\n },\n border: {\n outline: 'border',\n none: 'border-0'\n },\n inverted: {\n true: 'text-white',\n false: ''\n }\n },\n compoundVariants: [\n {\n inverted: true,\n variant: 'green',\n className: 'bg-green-700 border-green-800'\n },\n {\n inverted: true,\n variant: 'yellow',\n className: 'bg-yellow-700 border-yellow-800'\n },\n {\n inverted: true,\n variant: 'magenta',\n className: 'bg-magenta-700 border-magenta-800'\n },\n {\n inverted: true,\n variant: 'gray',\n className: 'bg-gray-700 border-gray-800'\n },\n {\n inverted: true,\n variant: 'purple',\n className: 'bg-purple-700 border-purple-800'\n },\n {\n inverted: true,\n variant: 'robinblue',\n className: 'bg-robinblue-700 border-robinblue-800'\n }\n ],\n defaultVariants: {\n size: 'sm',\n variant: 'gray',\n border: 'outline',\n inverted: false\n }\n }\n)\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({\n className,\n variant,\n size,\n border,\n inverted,\n ...props\n}: BadgeProps) {\n return (\n <div\n className={cn(\n badgeVariants({ variant, size, border, inverted }),\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Badge, badgeVariants }\n"],"names":["badgeVariants","cva","Badge","className","variant","size","border","inverted","props","jsx","cn"],"mappings":";;;AAQA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,WAAW;AAAA,MACb;AAAA,MACA,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,MACA,QAAQ;AAAA,QACN,SAAS;AAAA,QACT,MAAM;AAAA,MACR;AAAA,MACA,UAAU;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,UAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AAMA,SAASC,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAe;AAEX,SAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTV,EAAc,EAAE,SAAAI,GAAS,MAAAC,GAAM,QAAAC,GAAQ,UAAAC,GAAU;AAAA,QACjDJ;AAAA,MACF;AAAA,MACC,GAAGK;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
1
|
+
{"version":3,"file":"index7.js","sources":["../src/Calendar/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon\n} from 'lucide-react'\nimport * as React from 'react'\nimport { DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker'\nimport { Button, buttonVariants } from '../Button'\nimport { cn } from '../lib/utils'\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = 'label',\n formatters,\n components,\n ...props\n}: React.ComponentProps<typeof DayPicker>) {\n const defaultClassNames = getDefaultClassNames()\n\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\n 'bg-white group/calendar p-12 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: date =>\n date.toLocaleString('default', { month: 'short' }),\n ...formatters\n }}\n classNames={{\n root: cn('w-fit', defaultClassNames.root),\n months: cn(\n 'flex gap-16 flex-col md:flex-row relative',\n defaultClassNames.months\n ),\n month: cn('flex flex-col w-full gap-16', defaultClassNames.month),\n nav: cn(\n 'flex items-center gap-4 w-full absolute top-0 inset-x-0 justify-between',\n defaultClassNames.nav\n ),\n button_previous: cn(\n buttonVariants({\n variant: 'ghost',\n intent: 'secondary',\n size: 'icon'\n }),\n 'size-(--cell-size) aria-disabled:opacity-48 p-0 select-none',\n defaultClassNames.button_previous\n ),\n button_next: cn(\n buttonVariants({\n variant: 'ghost',\n intent: 'secondary',\n size: 'icon'\n }),\n 'size-(--cell-size) aria-disabled:opacity-48 p-0 select-none',\n defaultClassNames.button_next\n ),\n month_caption: cn(\n 'text-base flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)',\n defaultClassNames.month_caption\n ),\n dropdowns: cn(\n 'w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-[6px]',\n defaultClassNames.dropdowns\n ),\n dropdown_root: cn(\n 'relative has-focus:border-ring border border-gray-900/48 shadow has-focus:ring-ring/50 has-focus:ring-[3px] rounded',\n defaultClassNames.dropdown_root\n ),\n dropdown: cn(\n 'absolute bg-gray-900/48 inset-0 opacity-0',\n defaultClassNames.dropdown\n ),\n caption_label: cn(\n 'select-none',\n captionLayout === 'label'\n ? 'text-lg'\n : 'rounded pl-8 pr-4 flex items-center gap-4 text-sm h-32 [&>svg]:text-gray-900 [&>]:size-[14px]',\n defaultClassNames.caption_label\n ),\n table: 'w-full border-collapse',\n weekdays: cn('flex', defaultClassNames.weekdays),\n weekday: cn(\n 'text-gray-700 bg-gray-900/4 rounded flex-1 font-normal text-[0.8rem] select-none',\n defaultClassNames.weekday\n ),\n week: cn('flex w-full mt-8', defaultClassNames.week),\n week_number_header: cn(\n 'select-none w-(--cell-size)',\n defaultClassNames.week_number_header\n ),\n week_number: cn(\n 'text-[0.8rem] select-none text-gray-900',\n defaultClassNames.week_number\n ),\n day: cn(\n 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l [&:last-child[data-selected=true]_button]:rounded-r group/day aspect-square select-none',\n defaultClassNames.day\n ),\n range_start: cn(\n 'rounded-l bg-purple-800 text-white',\n defaultClassNames.range_start\n ),\n range_middle: cn('rounded-none', defaultClassNames.range_middle),\n range_end: cn(\n 'rounded-r bg-purple-800 text-white',\n defaultClassNames.range_end\n ),\n today: cn(\n 'shadow-100 rounded aria-selected:shadow-none',\n defaultClassNames.today\n ),\n outside: cn(\n 'text-gray-900 aria-selected:text-gray-900',\n defaultClassNames.outside\n ),\n disabled: cn('text-gray-900 opacity-48', defaultClassNames.disabled),\n hidden: cn('invisible', defaultClassNames.hidden),\n ...classNames\n }}\n components={{\n Root: ({ className, rootRef, ...props }) => {\n return (\n <div\n data-slot=\"calendar\"\n ref={rootRef}\n className={cn(className)}\n {...props}\n />\n )\n },\n Chevron: ({ className, orientation, ...props }) => {\n if (orientation === 'left') {\n return (\n <ChevronLeftIcon\n className={cn('size-16', className)}\n {...props}\n />\n )\n }\n\n if (orientation === 'right') {\n return (\n <ChevronRightIcon\n className={cn('size-16', className)}\n {...props}\n />\n )\n }\n\n return (\n <ChevronDownIcon className={cn('size-16', className)} {...props} />\n )\n },\n DayButton: CalendarDayButton,\n WeekNumber: ({ children, ...props }) => {\n return (\n <td {...props}>\n <div className=\"flex size-(--cell-size) items-center justify-center text-center\">\n {children}\n </div>\n </td>\n )\n },\n ...components\n }}\n {...props}\n />\n )\n}\n\nfunction CalendarDayButton({\n className,\n day,\n modifiers,\n ...props\n}: React.ComponentProps<typeof DayButton>) {\n const defaultClassNames = getDefaultClassNames()\n\n const ref = React.useRef<HTMLButtonElement>(null)\n React.useEffect(() => {\n if (modifiers.focused) ref.current?.focus()\n }, [modifiers.focused])\n\n return (\n <Button\n ref={ref}\n variant=\"ghost\"\n size=\"icon\"\n data-day={day.date.toLocaleDateString()}\n data-selected-single={\n modifiers.selected &&\n !modifiers.range_start &&\n !modifiers.range_end &&\n !modifiers.range_middle\n }\n data-range-start={modifiers.range_start}\n data-range-end={modifiers.range_end}\n data-range-middle={modifiers.range_middle}\n className={cn(\n 'data-[selected-single=true]:bg-purple-900 data-[selected-single=true]:text-white',\n 'data-[range-middle=true]:bg-purple-700 data-[range-middle=true]:text-white',\n 'data-[range-start=true]:bg-purple-800 data-[range-start=true]:text-white',\n 'data-[range-end=true]:bg-purple-800 data-[range-end=true]:text-white',\n 'flex outline aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-4 leading-none font-normal group-data-[focused=true]/day:relative',\n 'group-data-[focused=true]/day:z-10',\n 'data-[range-end=true]:rounded-r',\n 'data-[range-middle=true]:rounded-none',\n 'data-[range-start=true]:rounded-l',\n '[&>span]:text-xs [&>span]:opacity-64',\n defaultClassNames.day,\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Calendar, CalendarDayButton }\n"],"names":["Calendar","className","classNames","showOutsideDays","captionLayout","formatters","components","props","defaultClassNames","getDefaultClassNames","jsx","DayPicker","cn","date","buttonVariants","rootRef","orientation","ChevronLeftIcon","ChevronRightIcon","ChevronDownIcon","CalendarDayButton","children","day","modifiers","ref","React","Button"],"mappings":";;;;;;AAYA,SAASA,EAAS;AAAA,EAChB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,eAAAC,IAAgB;AAAA,EAChB,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,GAAGC;AACL,GAA2C;AACzC,QAAMC,IAAoBC,EAAA;AAE1B,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,iBAAAR;AAAA,MACA,WAAWS;AAAA,QACT;AAAA,QACA,OAAO;AAAA,QACP,OAAO;AAAA,QACPX;AAAA,MAAA;AAAA,MAEF,eAAAG;AAAA,MACA,YAAY;AAAA,QACV,qBAAqB,OACnBS,EAAK,eAAe,WAAW,EAAE,OAAO,SAAS;AAAA,QACnD,GAAGR;AAAA,MAAA;AAAA,MAEL,YAAY;AAAA,QACV,MAAMO,EAAG,SAASJ,EAAkB,IAAI;AAAA,QACxC,QAAQI;AAAA,UACN;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,OAAOI,EAAG,+BAA+BJ,EAAkB,KAAK;AAAA,QAChE,KAAKI;AAAA,UACH;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,iBAAiBI;AAAA,UACfE,EAAe;AAAA,YACb,SAAS;AAAA,YACT,QAAQ;AAAA,YACR,MAAM;AAAA,UAAA,CACP;AAAA,UACD;AAAA,UACAN,EAAkB;AAAA,QAAA;AAAA,QAEpB,aAAaI;AAAA,UACXE,EAAe;AAAA,YACb,SAAS;AAAA,YACT,QAAQ;AAAA,YACR,MAAM;AAAA,UAAA,CACP;AAAA,UACD;AAAA,UACAN,EAAkB;AAAA,QAAA;AAAA,QAEpB,eAAeI;AAAA,UACb;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,WAAWI;AAAA,UACT;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,eAAeI;AAAA,UACb;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,UAAUI;AAAA,UACR;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,eAAeI;AAAA,UACb;AAAA,UACAR,MAAkB,UACd,YACA;AAAA,UACJI,EAAkB;AAAA,QAAA;AAAA,QAEpB,OAAO;AAAA,QACP,UAAUI,EAAG,QAAQJ,EAAkB,QAAQ;AAAA,QAC/C,SAASI;AAAA,UACP;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,MAAMI,EAAG,oBAAoBJ,EAAkB,IAAI;AAAA,QACnD,oBAAoBI;AAAA,UAClB;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,aAAaI;AAAA,UACX;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,KAAKI;AAAA,UACH;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,aAAaI;AAAA,UACX;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,cAAcI,EAAG,gBAAgBJ,EAAkB,YAAY;AAAA,QAC/D,WAAWI;AAAA,UACT;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,OAAOI;AAAA,UACL;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,SAASI;AAAA,UACP;AAAA,UACAJ,EAAkB;AAAA,QAAA;AAAA,QAEpB,UAAUI,EAAG,4BAA4BJ,EAAkB,QAAQ;AAAA,QACnE,QAAQI,EAAG,aAAaJ,EAAkB,MAAM;AAAA,QAChD,GAAGN;AAAA,MAAA;AAAA,MAEL,YAAY;AAAA,QACV,MAAM,CAAC,EAAE,WAAAD,GAAW,SAAAc,GAAS,GAAGR,QAE5BG,gBAAAA,EAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,aAAU;AAAA,YACV,KAAKK;AAAA,YACL,WAAWH,EAAGX,CAAS;AAAA,YACtB,GAAGM;AAAAA,UAAA;AAAA,QAAA;AAAA,QAIV,SAAS,CAAC,EAAE,WAAAN,GAAW,aAAAe,GAAa,GAAGT,QACjCS,MAAgB,SAEhBN,gBAAAA,EAAAA;AAAAA,UAACO;AAAA,UAAA;AAAA,YACC,WAAWL,EAAG,WAAWX,CAAS;AAAA,YACjC,GAAGM;AAAAA,UAAA;AAAA,QAAA,IAKNS,MAAgB,UAEhBN,gBAAAA,EAAAA;AAAAA,UAACQ;AAAA,UAAA;AAAA,YACC,WAAWN,EAAG,WAAWX,CAAS;AAAA,YACjC,GAAGM;AAAAA,UAAA;AAAA,QAAA,IAMRG,gBAAAA,EAAAA,IAACS,KAAgB,WAAWP,EAAG,WAAWX,CAAS,GAAI,GAAGM,GAAO;AAAA,QAGrE,WAAWa;AAAA,QACX,YAAY,CAAC,EAAE,UAAAC,GAAU,GAAGd,QAExBG,gBAAAA,EAAAA,IAAC,QAAI,GAAGH,GACN,gCAAC,OAAA,EAAI,WAAU,mEACZ,UAAAc,EAAA,CACH,EAAA,CACF;AAAA,QAGJ,GAAGf;AAAA,MAAA;AAAA,MAEJ,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASa,EAAkB;AAAA,EACzB,WAAAnB;AAAA,EACA,KAAAqB;AAAA,EACA,WAAAC;AAAA,EACA,GAAGhB;AACL,GAA2C;AACzC,QAAMC,IAAoBC,EAAA,GAEpBe,IAAMC,EAAM,OAA0B,IAAI;AAChD,SAAAA,EAAM,UAAU,MAAM;AACpB,IAAIF,EAAU,WAASC,EAAI,SAAS,MAAA;AAAA,EACtC,GAAG,CAACD,EAAU,OAAO,CAAC,GAGpBb,gBAAAA,EAAAA;AAAAA,IAACgB;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,YAAUF,EAAI,KAAK,mBAAA;AAAA,MACnB,wBACEC,EAAU,YACV,CAACA,EAAU,eACX,CAACA,EAAU,aACX,CAACA,EAAU;AAAA,MAEb,oBAAkBA,EAAU;AAAA,MAC5B,kBAAgBA,EAAU;AAAA,MAC1B,qBAAmBA,EAAU;AAAA,MAC7B,WAAWX;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACAJ,EAAkB;AAAA,QAClBP;AAAA,MAAA;AAAA,MAED,GAAGM;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index8.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 a=require("./index37.cjs"),e=require("./index39.cjs");function s({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:e.cn("bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24",t),...r})}function n({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:e.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-4 px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24",t),...r})}function o({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:e.cn("leading-none font-medium",t),...r})}function d({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:e.cn("text-gray-700 text-sm",t),...r})}function i({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:e.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...r})}function c({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:e.cn("px-24",t),...r})}function u({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:e.cn("flex items-center px-24 [.border-t]:pt-24",t),...r})}exports.Card=s;exports.CardAction=i;exports.CardContent=c;exports.CardDescription=d;exports.CardFooter=u;exports.CardHeader=n;exports.CardTitle=o;
|
|
2
2
|
//# sourceMappingURL=index8.cjs.map
|
package/dist/index8.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index8.cjs","sources":["../src/Card/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n 'bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-4 px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn('leading-none font-medium', className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn('text-gray-700 text-sm', className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n 'col-start-2 row-span-2 row-start-1 self-start justify-self-end',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn('px-24', className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn('flex items-center px-24 [.border-t]:pt-24', className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle\n}\n"],"names":["Card","className","props","jsx","cn","CardHeader","CardTitle","CardDescription","CardAction","CardContent","CardFooter"],"mappings":"4IAGA,SAASA,EAAK,CAAE,UAAAC,EAAW,GAAGC,GAAsC,CAClE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,OACV,UAAWC,EAAAA,GACT,uEACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASG,EAAW,CAAE,UAAAJ,EAAW,GAAGC,GAAsC,CACxE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,cACV,UAAWC,EAAAA,GACT,6JACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAU,CAAE,UAAAL,EAAW,GAAGC,GAAsC,CACvE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,aACV,UAAWC,EAAAA,GAAG,2BAA4BH,CAAS,EAClD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASK,EAAgB,CAAE,UAAAN,EAAW,GAAGC,GAAsC,CAC7E,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,mBACV,UAAWC,EAAAA,GAAG,wBAAyBH,CAAS,EAC/C,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASM,EAAW,CAAE,UAAAP,EAAW,GAAGC,GAAsC,CACxE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,cACV,UAAWC,EAAAA,GACT,iEACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASO,EAAY,CAAE,UAAAR,EAAW,GAAGC,GAAsC,CACzE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GAAG,QAASH,CAAS,EAC/B,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASQ,EAAW,CAAE,UAAAT,EAAW,GAAGC,GAAsC,CACxE,OACEC,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,cACV,UAAWC,EAAAA,GAAG,4CAA6CH,CAAS,EACnE,GAAGC,CAAA,CAAA,CAGV"}
|
package/dist/index8.js
CHANGED
|
@@ -1,161 +1,91 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ghost: "",
|
|
14
|
-
link: ""
|
|
15
|
-
},
|
|
16
|
-
intent: {
|
|
17
|
-
primary: "",
|
|
18
|
-
secondary: "",
|
|
19
|
-
warning: "",
|
|
20
|
-
danger: "",
|
|
21
|
-
filter: ""
|
|
22
|
-
},
|
|
23
|
-
size: {
|
|
24
|
-
md: "h-40 min-w-96 px-24",
|
|
25
|
-
sm: "h-32 px-16",
|
|
26
|
-
icon: "h-32 w-32",
|
|
27
|
-
"fit-content": ""
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
compoundVariants: [
|
|
31
|
-
{
|
|
32
|
-
variant: "filled",
|
|
33
|
-
intent: "primary",
|
|
34
|
-
className: "bg-purple-700 text-white fill-white hover:bg-purple-800 focus:bg-purple-800 active:bg-purple-900"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
variant: "filled",
|
|
38
|
-
intent: "secondary",
|
|
39
|
-
className: "bg-gray-900-8 text-gray-900 fill-gray-900 hover:bg-gray-900-12 focus:bg-gray-900-12 active:bg-gray-900-16"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
variant: "filled",
|
|
43
|
-
intent: "warning",
|
|
44
|
-
className: "bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 active:bg-yellow-700"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
variant: "filled",
|
|
48
|
-
intent: "danger",
|
|
49
|
-
className: "bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 active:bg-magenta-700"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
variant: "filled",
|
|
53
|
-
intent: "filter",
|
|
54
|
-
className: "bg-purple-100 text-purple-800 fill-purple-800 hover:bg-purple-200 focus:bg-purple-200 active:bg-purple-300"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
variant: "outline",
|
|
58
|
-
intent: "primary",
|
|
59
|
-
className: "text-purple-700 fill-purple-700 border-purple-700"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
variant: "outline",
|
|
63
|
-
intent: "secondary",
|
|
64
|
-
className: "text-gray-700 fill-gray-700 border-gray-900-24 hover:bg-gray-900-8 focus:bg-gray-900-8 active:bg-gray-900-12"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
variant: "outline",
|
|
68
|
-
intent: "warning",
|
|
69
|
-
className: "text-yellow-500 fill-yellow-500 border-yellow-500"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
variant: "outline",
|
|
73
|
-
intent: "danger",
|
|
74
|
-
className: "text-magenta-500 fill-magenta-500 border-magenta-500"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
variant: "outline",
|
|
78
|
-
intent: "filter",
|
|
79
|
-
className: "text-purple-600 fill-purple-600 border-purple-400"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
variant: ["outline", "ghost"],
|
|
83
|
-
intent: "primary",
|
|
84
|
-
className: "hover:bg-purple-50 focus:bg-purple-50 active:bg-purple-100"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
variant: ["outline", "ghost"],
|
|
88
|
-
intent: "secondary",
|
|
89
|
-
className: "hover:bg-gray-900-8 focus:bg-gray-900-8 active:bg-gray-900-12"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
variant: ["outline", "ghost"],
|
|
93
|
-
intent: "warning",
|
|
94
|
-
className: "bg-yellow-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 active:bg-opacity-12"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
variant: ["outline", "ghost"],
|
|
98
|
-
intent: "danger",
|
|
99
|
-
className: "bg-magenta-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 active:bg-opacity-12"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
variant: ["outline", "ghost"],
|
|
103
|
-
intent: "filter",
|
|
104
|
-
className: "bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 active:bg-opacity-12"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
variant: "ghost",
|
|
108
|
-
intent: "primary",
|
|
109
|
-
className: "text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 active:text-purple-900 active:fill-purple-900"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
variant: "link",
|
|
113
|
-
intent: "primary",
|
|
114
|
-
className: "text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
variant: ["ghost", "link"],
|
|
118
|
-
intent: "secondary",
|
|
119
|
-
className: "text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 active:text-gray-900 active:fill-gray-900 "
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
variant: ["ghost", "link"],
|
|
123
|
-
intent: "warning",
|
|
124
|
-
className: "text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 active:text-yellow-700 active:fill-yellow-700"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
variant: ["ghost", "link"],
|
|
128
|
-
intent: "danger",
|
|
129
|
-
className: "text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 active:text-magenta-700 active:fill-magenta-700"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
variant: ["ghost", "link"],
|
|
133
|
-
intent: "filter",
|
|
134
|
-
className: "text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-text-purple-700 focus:text-purple-700 focus:fill-purple-700 active:text-purple-800 active:fill-purple-800"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
defaultVariants: {
|
|
138
|
-
variant: "filled",
|
|
139
|
-
intent: "primary",
|
|
140
|
-
size: "md"
|
|
1
|
+
import { j as r } from "./index37.js";
|
|
2
|
+
import { cn as e } from "./index39.js";
|
|
3
|
+
function d({ className: t, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ r.jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "card",
|
|
8
|
+
className: e(
|
|
9
|
+
"bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24",
|
|
10
|
+
t
|
|
11
|
+
),
|
|
12
|
+
...a
|
|
141
13
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
);
|
|
156
|
-
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function n({ className: t, ...a }) {
|
|
17
|
+
return /* @__PURE__ */ r.jsx(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "card-header",
|
|
21
|
+
className: e(
|
|
22
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-4 px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24",
|
|
23
|
+
t
|
|
24
|
+
),
|
|
25
|
+
...a
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function i({ className: t, ...a }) {
|
|
30
|
+
return /* @__PURE__ */ r.jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "card-title",
|
|
34
|
+
className: e("leading-none font-medium", t),
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function c({ className: t, ...a }) {
|
|
40
|
+
return /* @__PURE__ */ r.jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "card-description",
|
|
44
|
+
className: e("text-gray-700 text-sm", t),
|
|
45
|
+
...a
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function l({ className: t, ...a }) {
|
|
50
|
+
return /* @__PURE__ */ r.jsx(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "card-action",
|
|
54
|
+
className: e(
|
|
55
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
56
|
+
t
|
|
57
|
+
),
|
|
58
|
+
...a
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function u({ className: t, ...a }) {
|
|
63
|
+
return /* @__PURE__ */ r.jsx(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
"data-slot": "card-content",
|
|
67
|
+
className: e("px-24", t),
|
|
68
|
+
...a
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
function f({ className: t, ...a }) {
|
|
73
|
+
return /* @__PURE__ */ r.jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
"data-slot": "card-footer",
|
|
77
|
+
className: e("flex items-center px-24 [.border-t]:pt-24", t),
|
|
78
|
+
...a
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
157
82
|
export {
|
|
158
|
-
|
|
159
|
-
|
|
83
|
+
d as Card,
|
|
84
|
+
l as CardAction,
|
|
85
|
+
u as CardContent,
|
|
86
|
+
c as CardDescription,
|
|
87
|
+
f as CardFooter,
|
|
88
|
+
n as CardHeader,
|
|
89
|
+
i as CardTitle
|
|
160
90
|
};
|
|
161
91
|
//# sourceMappingURL=index8.js.map
|