@schandlergarcia/sf-web-components 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/library/cards/ListCard.js +15 -15
- package/dist/components/library/cards/TableCard.js +22 -22
- package/dist/components/library/cards/TableCard.js.map +1 -1
- package/dist/components/library/cards/WidgetCard.js +4 -4
- package/dist/components/library/charts/D3Chart.js.map +1 -1
- package/dist/components/library/data/DataModeProvider.js +9 -9
- package/dist/components/library/data/DataModeProvider.js.map +1 -1
- package/dist/components/library/index.d.ts +17 -4
- package/dist/components/library/theme/AppThemeProvider.js +4 -4
- package/dist/components/library/theme/AppThemeProvider.js.map +1 -1
- package/dist/components/library/ui/Avatar.js +8 -8
- package/dist/components/library/ui/BreadcrumbExtras.d.ts +9 -0
- package/dist/components/library/ui/BreadcrumbExtras.js +109 -0
- package/dist/components/library/ui/BreadcrumbExtras.js.map +1 -0
- package/dist/components/library/ui/Card.d.ts +37 -11
- package/dist/components/library/ui/FieldGroup.d.ts +5 -0
- package/dist/components/library/ui/FieldGroup.js +19 -0
- package/dist/components/library/ui/FieldGroup.js.map +1 -0
- package/dist/components/library/ui/PaginationExtras.d.ts +11 -0
- package/dist/components/library/ui/PaginationExtras.js +138 -0
- package/dist/components/library/ui/PaginationExtras.js.map +1 -0
- package/dist/components/library/ui/alert.d.ts +21 -10
- package/dist/components/library/ui/alert.js +51 -56
- package/dist/components/library/ui/alert.js.map +1 -1
- package/dist/components/library/ui/card.js +72 -55
- package/dist/components/library/ui/card.js.map +1 -1
- package/dist/components/library/ui/checkbox.d.ts +4 -4
- package/dist/components/library/ui/checkbox.js +14 -26
- package/dist/components/library/ui/checkbox.js.map +1 -1
- package/dist/components/library/ui/collapsible.d.ts +5 -4
- package/dist/components/library/ui/collapsible.js +18 -24
- package/dist/components/library/ui/collapsible.js.map +1 -1
- package/dist/components/library/ui/datePicker.d.ts +10 -18
- package/dist/components/library/ui/datePicker.js +18 -85
- package/dist/components/library/ui/datePicker.js.map +1 -1
- package/dist/components/library/ui/dialog.d.ts +5 -7
- package/dist/components/library/ui/dialog.js +94 -108
- package/dist/components/library/ui/dialog.js.map +1 -1
- package/dist/components/library/ui/field.d.ts +6 -25
- package/dist/components/library/ui/field.js +52 -184
- package/dist/components/library/ui/field.js.map +1 -1
- package/dist/components/library/ui/label.d.ts +6 -4
- package/dist/components/library/ui/label.js +12 -15
- package/dist/components/library/ui/label.js.map +1 -1
- package/dist/components/library/ui/popover.d.ts +3 -7
- package/dist/components/library/ui/popover.js +24 -28
- package/dist/components/library/ui/popover.js.map +1 -1
- package/dist/components/library/ui/select.d.ts +5 -12
- package/dist/components/library/ui/select.js +79 -155
- package/dist/components/library/ui/select.js.map +1 -1
- package/dist/index.js +227 -153
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +25 -23
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +252 -257
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,88 +1,105 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
size: r = "default",
|
|
6
|
-
...e
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
function d({ children: e, padding: r = "p-5", style: t, className: a = "", ...n }) {
|
|
4
|
+
return /* @__PURE__ */ o(
|
|
9
5
|
"div",
|
|
10
6
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
style: t,
|
|
8
|
+
className: [
|
|
9
|
+
"rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900",
|
|
10
|
+
r,
|
|
15
11
|
a
|
|
16
|
-
),
|
|
17
|
-
...
|
|
12
|
+
].filter(Boolean).join(" "),
|
|
13
|
+
...n,
|
|
14
|
+
children: e
|
|
18
15
|
}
|
|
19
16
|
);
|
|
20
17
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
18
|
+
function s({ className: e = "", children: r, ...t }) {
|
|
19
|
+
return /* @__PURE__ */ o(
|
|
23
20
|
"div",
|
|
24
21
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
className: [
|
|
23
|
+
"rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900",
|
|
24
|
+
e
|
|
25
|
+
].filter(Boolean).join(" "),
|
|
26
|
+
...t,
|
|
27
|
+
children: r
|
|
31
28
|
}
|
|
32
29
|
);
|
|
33
30
|
}
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */
|
|
31
|
+
function f({ className: e = "", children: r, ...t }) {
|
|
32
|
+
return /* @__PURE__ */ o(
|
|
36
33
|
"div",
|
|
37
34
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
className: [
|
|
36
|
+
"flex flex-col space-y-1.5 p-6",
|
|
37
|
+
e
|
|
38
|
+
].filter(Boolean).join(" "),
|
|
39
|
+
...t,
|
|
40
|
+
children: r
|
|
44
41
|
}
|
|
45
42
|
);
|
|
46
43
|
}
|
|
47
|
-
function
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
"
|
|
44
|
+
function c({ className: e = "", children: r, ...t }) {
|
|
45
|
+
return /* @__PURE__ */ o(
|
|
46
|
+
"h3",
|
|
47
|
+
{
|
|
48
|
+
className: [
|
|
49
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
50
|
+
e
|
|
51
|
+
].filter(Boolean).join(" "),
|
|
52
|
+
...t,
|
|
53
|
+
children: r
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function u({ className: e = "", children: r, ...t }) {
|
|
58
|
+
return /* @__PURE__ */ o(
|
|
59
|
+
"p",
|
|
50
60
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
className: [
|
|
62
|
+
"text-sm text-slate-500 dark:text-slate-400",
|
|
63
|
+
e
|
|
64
|
+
].filter(Boolean).join(" "),
|
|
65
|
+
...t,
|
|
66
|
+
children: r
|
|
54
67
|
}
|
|
55
68
|
);
|
|
56
69
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */
|
|
70
|
+
function m({ className: e = "", children: r, ...t }) {
|
|
71
|
+
return /* @__PURE__ */ o(
|
|
59
72
|
"div",
|
|
60
73
|
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
className: [
|
|
75
|
+
"p-6 pt-0",
|
|
76
|
+
e
|
|
77
|
+
].filter(Boolean).join(" "),
|
|
78
|
+
...t,
|
|
79
|
+
children: r
|
|
64
80
|
}
|
|
65
81
|
);
|
|
66
82
|
}
|
|
67
|
-
function
|
|
68
|
-
return /* @__PURE__ */
|
|
83
|
+
function p({ className: e = "", children: r, ...t }) {
|
|
84
|
+
return /* @__PURE__ */ o(
|
|
69
85
|
"div",
|
|
70
86
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
87
|
+
className: [
|
|
88
|
+
"flex items-center p-6 pt-0",
|
|
89
|
+
e
|
|
90
|
+
].filter(Boolean).join(" "),
|
|
91
|
+
...t,
|
|
92
|
+
children: r
|
|
77
93
|
}
|
|
78
94
|
);
|
|
79
95
|
}
|
|
80
96
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
97
|
+
s as Card,
|
|
98
|
+
m as CardContent,
|
|
83
99
|
u as CardDescription,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
100
|
+
p as CardFooter,
|
|
101
|
+
f as CardHeader,
|
|
102
|
+
c as CardTitle,
|
|
103
|
+
d as default
|
|
87
104
|
};
|
|
88
|
-
//# sourceMappingURL=
|
|
105
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Card.js","sources":["../../../../src/components/library/ui/Card.jsx"],"sourcesContent":["import React from \"react\";\n\nexport default function UICard({ children, padding = \"p-5\", style, className = \"\", ...rest }) {\n return (\n <div\n style={style}\n className={[\n \"rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900\",\n padding,\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\n// shadcn-compatible Card components\nexport function Card({ className = \"\", children, ...rest }) {\n return (\n <div\n className={[\n \"rounded-2xl border border-slate-200 bg-white shadow-sm dark:border-slate-800 dark:bg-slate-900\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nexport function CardHeader({ className = \"\", children, ...rest }) {\n return (\n <div\n className={[\n \"flex flex-col space-y-1.5 p-6\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nexport function CardTitle({ className = \"\", children, ...rest }) {\n return (\n <h3\n className={[\n \"text-2xl font-semibold leading-none tracking-tight\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </h3>\n );\n}\n\nexport function CardDescription({ className = \"\", children, ...rest }) {\n return (\n <p\n className={[\n \"text-sm text-slate-500 dark:text-slate-400\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </p>\n );\n}\n\nexport function CardContent({ className = \"\", children, ...rest }) {\n return (\n <div\n className={[\n \"p-6 pt-0\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nexport function CardFooter({ className = \"\", children, ...rest }) {\n return (\n <div\n className={[\n \"flex items-center p-6 pt-0\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\n"],"names":["UICard","children","padding","style","className","rest","jsx","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter"],"mappings":";;AAEA,SAAwBA,EAAO,EAAE,UAAAC,GAAU,SAAAC,IAAU,OAAO,OAAAC,GAAO,WAAAC,IAAY,IAAI,GAAGC,KAAQ;AAC5F,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAAH;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACAD;AAAA,QACAE;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAGO,SAASM,EAAK,EAAE,WAAAH,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AAC1D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASO,EAAW,EAAE,WAAAJ,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AAChE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASQ,EAAU,EAAE,WAAAL,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AAC/D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASS,EAAgB,EAAE,WAAAN,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AACrE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASU,EAAY,EAAE,WAAAP,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AACjE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASW,EAAW,EAAE,WAAAR,IAAY,IAAI,UAAAH,GAAU,GAAGI,KAAQ;AAChE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,MAEH,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export default function Checkbox({ className, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
className: e,
|
|
7
|
-
...i
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ r(
|
|
10
|
-
o,
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
function n({ className: r = "", ...e }) {
|
|
4
|
+
return /* @__PURE__ */ o(
|
|
5
|
+
"input",
|
|
11
6
|
{
|
|
12
|
-
|
|
13
|
-
className:
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
d,
|
|
20
|
-
{
|
|
21
|
-
"data-slot": "checkbox-indicator",
|
|
22
|
-
className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none",
|
|
23
|
-
children: /* @__PURE__ */ r(t, {})
|
|
24
|
-
}
|
|
25
|
-
)
|
|
7
|
+
type: "checkbox",
|
|
8
|
+
className: [
|
|
9
|
+
"h-4 w-4 rounded border-slate-300 text-brand-600 focus:ring-brand-500",
|
|
10
|
+
"dark:border-slate-600 dark:bg-slate-800 dark:focus:ring-brand-400",
|
|
11
|
+
r
|
|
12
|
+
].filter(Boolean).join(" "),
|
|
13
|
+
...e
|
|
26
14
|
}
|
|
27
15
|
);
|
|
28
16
|
}
|
|
29
17
|
export {
|
|
30
|
-
|
|
18
|
+
n as default
|
|
31
19
|
};
|
|
32
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../../src/components/library/ui/Checkbox.jsx"],"sourcesContent":["import React from \"react\";\n\nexport default function Checkbox({ className = \"\", ...rest }) {\n return (\n <input\n type=\"checkbox\"\n className={[\n \"h-4 w-4 rounded border-slate-300 text-brand-600 focus:ring-brand-500\",\n \"dark:border-slate-600 dark:bg-slate-800 dark:focus:ring-brand-400\",\n className\n ]\n .filter(Boolean)\n .join(\" \")}\n {...rest}\n />\n );\n}\n"],"names":["Checkbox","className","rest","jsx"],"mappings":";;AAEA,SAAwBA,EAAS,EAAE,WAAAC,IAAY,IAAI,GAAGC,KAAQ;AAC5D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACAF;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACV,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
2
3
|
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.
|
|
4
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ className, ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, };
|
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Root as
|
|
3
|
-
function
|
|
4
|
-
...
|
|
5
|
-
}) {
|
|
6
|
-
return /* @__PURE__ */ o(t, { "data-slot": "collapsible", ...l });
|
|
2
|
+
import { Root as n, Content as r, Trigger as a } from "../../../node_modules/@radix-ui/react-collapsible/dist/index.js";
|
|
3
|
+
function s({ ...t }) {
|
|
4
|
+
return /* @__PURE__ */ o(n, { ...t });
|
|
7
5
|
}
|
|
8
|
-
function
|
|
9
|
-
...
|
|
10
|
-
}) {
|
|
11
|
-
return /* @__PURE__ */ o(
|
|
12
|
-
i,
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "collapsible-trigger",
|
|
15
|
-
...l
|
|
16
|
-
}
|
|
17
|
-
);
|
|
6
|
+
function f({ ...t }) {
|
|
7
|
+
return /* @__PURE__ */ o(a, { ...t });
|
|
18
8
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
9
|
+
function m({
|
|
10
|
+
className: t,
|
|
11
|
+
...e
|
|
21
12
|
}) {
|
|
22
13
|
return /* @__PURE__ */ o(
|
|
23
|
-
|
|
14
|
+
r,
|
|
24
15
|
{
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
className: [
|
|
17
|
+
"overflow-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
18
|
+
t
|
|
19
|
+
].filter(Boolean).join(" "),
|
|
20
|
+
...e
|
|
27
21
|
}
|
|
28
22
|
);
|
|
29
23
|
}
|
|
30
24
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
s as Collapsible,
|
|
26
|
+
m as CollapsibleContent,
|
|
27
|
+
f as CollapsibleTrigger
|
|
34
28
|
};
|
|
35
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=Collapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Collapsible.js","sources":["../../../../src/components/library/ui/Collapsible.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"radix-ui\";\n\nfunction Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {\n return <CollapsiblePrimitive.Root {...props} />;\n}\n\nfunction CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Trigger>) {\n return <CollapsiblePrimitive.Trigger {...props} />;\n}\n\nfunction CollapsibleContent({\n className,\n ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.Content>) {\n return (\n <CollapsiblePrimitive.Content\n className={[\n \"overflow-hidden data-[state=closed]:animate-out data-[state=open]:animate-in\",\n className\n ].filter(Boolean).join(\" \")}\n {...props}\n />\n );\n}\n\nexport {\n Collapsible,\n CollapsibleTrigger,\n CollapsibleContent,\n};\n"],"names":["Collapsible","props","jsx","CollapsiblePrimitive.Root","CollapsibleTrigger","CollapsiblePrimitive.Trigger","CollapsibleContent","className","CollapsiblePrimitive.Content"],"mappings":";;AAGA,SAASA,EAAY,EAAE,GAAGC,KAAiE;AACzF,SAAO,gBAAAC,EAACC,GAAA,EAA2B,GAAGF,EAAA,CAAO;AAC/C;AAEA,SAASG,EAAmB,EAAE,GAAGH,KAAoE;AACnG,SAAO,gBAAAC,EAACG,GAAA,EAA8B,GAAGJ,EAAA,CAAO;AAClD;AAEA,SAASK,EAAmB;AAAA,EAC1B,WAAAC;AAAA,EACA,GAAGN;AACL,GAA8D;AAC5D,SACE,gBAAAC;AAAA,IAACM;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACAD;AAAA,MAAA,EACA,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MACzB,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function DatePickerTrigger({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
declare function DatePickerContent({ className, ...props }: React.ComponentProps<typeof PopoverContent>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function DatePickerRangeTrigger({ className, children, dateRange, placeholder, dateFormat, ...props }: React.ComponentProps<typeof Button> & {
|
|
13
|
-
dateRange?: DateRange;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
dateFormat?: string;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function DatePickerCalendar(props: DayPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export { DatePicker, DatePickerTrigger, DatePickerRangeTrigger, DatePickerContent, DatePickerCalendar, };
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./Popover";
|
|
3
|
+
declare function DatePicker({ children, ...props }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
} & React.ComponentProps<typeof Popover>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DatePickerTrigger({ ...props }: React.ComponentProps<typeof PopoverTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DatePickerContent({ ...props }: React.ComponentProps<typeof PopoverContent>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DatePickerCalendar({ ...props }: any): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function DatePickerRangeTrigger({ ...props }: React.ComponentProps<typeof PopoverTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { DatePicker, DatePickerTrigger, DatePickerContent, DatePickerCalendar, DatePickerRangeTrigger, };
|
|
@@ -1,92 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Calendar as P } from "./calendar.js";
|
|
6
|
-
import { Popover as h, PopoverContent as k, PopoverTrigger as u } from "./popover.js";
|
|
7
|
-
import { format as n } from "../../../node_modules/date-fns/format.js";
|
|
8
|
-
function L({ ...e }) {
|
|
9
|
-
return /* @__PURE__ */ t(h, { "data-slot": "date-picker", ...e });
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as o, PopoverContent as i, PopoverTrigger as n } from "./Popover.js";
|
|
3
|
+
function u({ children: r, ...t }) {
|
|
4
|
+
return /* @__PURE__ */ e(o, { ...t, children: r });
|
|
10
5
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
children: a,
|
|
14
|
-
date: r,
|
|
15
|
-
placeholder: i = "Pick a date",
|
|
16
|
-
dateFormat: o = "PPP",
|
|
17
|
-
...c
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ t(u, { asChild: !0, children: /* @__PURE__ */ t(
|
|
20
|
-
s,
|
|
21
|
-
{
|
|
22
|
-
variant: "outline",
|
|
23
|
-
"data-slot": "date-picker-trigger",
|
|
24
|
-
"data-empty": !r,
|
|
25
|
-
className: m(
|
|
26
|
-
"w-[280px] justify-start text-left font-normal data-[empty=true]:text-muted-foreground",
|
|
27
|
-
e
|
|
28
|
-
),
|
|
29
|
-
...c,
|
|
30
|
-
children: a ?? /* @__PURE__ */ l(d, { children: [
|
|
31
|
-
/* @__PURE__ */ t(f, {}),
|
|
32
|
-
r ? n(r, o) : /* @__PURE__ */ t("span", { children: i })
|
|
33
|
-
] })
|
|
34
|
-
}
|
|
35
|
-
) });
|
|
6
|
+
function P({ ...r }) {
|
|
7
|
+
return /* @__PURE__ */ e(n, { ...r });
|
|
36
8
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
...a
|
|
40
|
-
}) {
|
|
41
|
-
return /* @__PURE__ */ t(
|
|
42
|
-
k,
|
|
43
|
-
{
|
|
44
|
-
"data-slot": "date-picker-content",
|
|
45
|
-
className: m("w-auto p-0", e),
|
|
46
|
-
...a
|
|
47
|
-
}
|
|
48
|
-
);
|
|
9
|
+
function f({ ...r }) {
|
|
10
|
+
return /* @__PURE__ */ e(i, { ...r });
|
|
49
11
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
children: a,
|
|
53
|
-
dateRange: r,
|
|
54
|
-
placeholder: i = "Pick a date",
|
|
55
|
-
dateFormat: o = "LLL dd, y",
|
|
56
|
-
...c
|
|
57
|
-
}) {
|
|
58
|
-
const p = r?.from != null;
|
|
59
|
-
return /* @__PURE__ */ t(u, { asChild: !0, children: /* @__PURE__ */ t(
|
|
60
|
-
s,
|
|
61
|
-
{
|
|
62
|
-
variant: "outline",
|
|
63
|
-
"data-slot": "date-picker-range-trigger",
|
|
64
|
-
"data-empty": !p,
|
|
65
|
-
className: m(
|
|
66
|
-
"justify-start text-left font-normal data-[empty=true]:text-muted-foreground",
|
|
67
|
-
e
|
|
68
|
-
),
|
|
69
|
-
...c,
|
|
70
|
-
children: a ?? /* @__PURE__ */ l(d, { children: [
|
|
71
|
-
/* @__PURE__ */ t(f, {}),
|
|
72
|
-
r?.from ? r.to ? /* @__PURE__ */ l(d, { children: [
|
|
73
|
-
n(r.from, o),
|
|
74
|
-
" –",
|
|
75
|
-
" ",
|
|
76
|
-
n(r.to, o)
|
|
77
|
-
] }) : n(r.from, o) : /* @__PURE__ */ t("span", { children: i })
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
) });
|
|
12
|
+
function g({ ...r }) {
|
|
13
|
+
return /* @__PURE__ */ e("div", { ...r, children: "Calendar component" });
|
|
81
14
|
}
|
|
82
|
-
function
|
|
83
|
-
return /* @__PURE__ */
|
|
15
|
+
function p({ ...r }) {
|
|
16
|
+
return /* @__PURE__ */ e(n, { ...r });
|
|
84
17
|
}
|
|
85
18
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
19
|
+
u as DatePicker,
|
|
20
|
+
g as DatePickerCalendar,
|
|
21
|
+
f as DatePickerContent,
|
|
22
|
+
p as DatePickerRangeTrigger,
|
|
23
|
+
P as DatePickerTrigger
|
|
91
24
|
};
|
|
92
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"DatePicker.js","sources":["../../../../src/components/library/ui/DatePicker.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"./Popover\";\n\n// Simplified DatePicker components\n// Full implementation would use react-day-picker\n\nfunction DatePicker({ children, ...props }: { children: React.ReactNode } & React.ComponentProps<typeof Popover>) {\n return <Popover {...props}>{children}</Popover>;\n}\n\nfunction DatePickerTrigger({ ...props }: React.ComponentProps<typeof PopoverTrigger>) {\n return <PopoverTrigger {...props} />;\n}\n\nfunction DatePickerContent({ ...props }: React.ComponentProps<typeof PopoverContent>) {\n return <PopoverContent {...props} />;\n}\n\nfunction DatePickerCalendar({ ...props }: any) {\n // Simplified calendar placeholder\n return <div {...props}>Calendar component</div>;\n}\n\nfunction DatePickerRangeTrigger({ ...props }: React.ComponentProps<typeof PopoverTrigger>) {\n return <PopoverTrigger {...props} />;\n}\n\nexport {\n DatePicker,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerRangeTrigger,\n};\n"],"names":["DatePicker","children","props","jsx","Popover","DatePickerTrigger","PopoverTrigger","DatePickerContent","PopoverContent","DatePickerCalendar","DatePickerRangeTrigger"],"mappings":";;AAMA,SAASA,EAAW,EAAE,UAAAC,GAAU,GAAGC,KAA+E;AAChH,SAAO,gBAAAC,EAACC,GAAA,EAAS,GAAGF,GAAQ,UAAAD,EAAA,CAAS;AACvC;AAEA,SAASI,EAAkB,EAAE,GAAGH,KAAsD;AACpF,SAAO,gBAAAC,EAACG,GAAA,EAAgB,GAAGJ,EAAA,CAAO;AACpC;AAEA,SAASK,EAAkB,EAAE,GAAGL,KAAsD;AACpF,SAAO,gBAAAC,EAACK,GAAA,EAAgB,GAAGN,EAAA,CAAO;AACpC;AAEA,SAASO,EAAmB,EAAE,GAAGP,KAAc;AAE7C,SAAO,gBAAAC,EAAC,OAAA,EAAK,GAAGD,GAAO,UAAA,sBAAkB;AAC3C;AAEA,SAASQ,EAAuB,EAAE,GAAGR,KAAsD;AACzF,SAAO,gBAAAC,EAACG,GAAA,EAAgB,GAAGJ,EAAA,CAAO;AACpC;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Dialog as DialogPrimitive } from
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
3
3
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,10 +8,8 @@ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typ
|
|
|
8
8
|
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<
|
|
12
|
-
declare function DialogFooter({ className,
|
|
13
|
-
showCloseButton?: boolean;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
14
|
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export { Dialog,
|
|
15
|
+
export { Dialog, DialogTrigger, DialogPortal, DialogClose, DialogOverlay, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|