@pihanga2/shadcn 0.2.2 → 0.2.3
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 +0 -11
- package/cards/badge/badge.component.js +1 -1
- package/cards/box/box.component.js +1 -1
- package/cards/button/button.component.js +13 -13
- package/cards/checkbox/checkbox.component.js +1 -1
- package/cards/conditional/conditional.component.js +5 -5
- package/cards/dataTable/dataTable.component.js +8 -8
- package/cards/dataTable/dataTableRowDetail.component.js +1 -1
- package/cards/dialog/dialog.component.js +7 -7
- package/cards/dropDownMenu/drop-down.component.js +7 -7
- package/cards/field/field.component.js +4 -4
- package/cards/fileDrop/fileDrop.component.js +15 -15
- package/cards/flexGrid/flexGrid.component.js +1 -1
- package/cards/form/form.component.js +6 -6
- package/cards/framework/framework.component.js +4 -4
- package/cards/input/input.component.js +1 -1
- package/cards/list/list.component.js +32 -32
- package/cards/list/list.types.js +1 -1
- package/cards/loadingOverlay/loadingOverlay.component.js +1 -1
- package/cards/loadingSkeleton/loading-skeleton.component.js +1 -1
- package/cards/pageWithNavbar/pageWithNavbar.component.js +43 -43
- package/cards/select/select.component.js +1 -1
- package/cards/slider/slider.component.js +1 -1
- package/cards/sliderValue/sliderValue.component.js +1 -1
- package/cards/stack/stack.component.js +4 -4
- package/cards/stepper/stepper.component.js +7 -7
- package/cards/switch/switch.component.js +1 -1
- package/cards/tabs/tabs.component.js +6 -6
- package/cards/textField/textField.component.js +1 -1
- package/cards/toast/toast.component.js +12 -12
- package/cards/toggleGroup/toggleGroup.component.js +1 -1
- package/cards/typography/typography.component.js +4 -4
- package/cards/typography/typography.types.js +1 -1
- package/package.json +1 -7
- package/cards/core-index.js +0 -68
package/README.md
CHANGED
|
@@ -52,17 +52,6 @@ module.exports = {
|
|
|
52
52
|
|
|
53
53
|
## Usage
|
|
54
54
|
|
|
55
|
-
### Register all core cards at once
|
|
56
|
-
|
|
57
|
-
```ts
|
|
58
|
-
import "@pihanga2/shadcn";
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
This imports `core-index.js`, which calls `registerCardComponent()` for every
|
|
62
|
-
core card in the Pihanga runtime.
|
|
63
|
-
|
|
64
|
-
### Register individual cards (tree-shakeable)
|
|
65
|
-
|
|
66
55
|
Import only the cards your app uses — unused cards are eliminated by your bundler:
|
|
67
56
|
|
|
68
57
|
```ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Badge as e } from "../../components/ui/badge.js";
|
|
2
2
|
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import "@pihanga2/core";
|
|
4
3
|
import "react";
|
|
4
|
+
import "@pihanga2/core";
|
|
5
5
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/badge/badge.component.tsx
|
|
7
7
|
var r = (r) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getIcon as e } from "../icons.js";
|
|
2
|
+
import { Button as t, LinkButton as n } from "../../components/ui/button.js";
|
|
3
|
+
import { Tooltip as r, TooltipContent as i, TooltipTrigger as a } from "../../components/ui/tooltip.js";
|
|
4
4
|
import { useDropdownOpen as o } from "../dropDownMenu/dropdown-context.js";
|
|
5
|
-
import { Card as s } from "@pihanga2/core";
|
|
6
5
|
import "react";
|
|
6
|
+
import { Card as s } from "@pihanga2/core";
|
|
7
7
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
//#region src/cards/button/button.component.tsx
|
|
9
|
-
function d(
|
|
10
|
-
return
|
|
9
|
+
function d(t) {
|
|
10
|
+
return t ? e(t) : null;
|
|
11
11
|
}
|
|
12
|
-
var f = (
|
|
13
|
-
let { opts: f, ariaLabel: p, label: m, iconLabel: h, contentCard: g, href: _, target: v, tooltip: y, tooltipCard: b, tooltipMode: x, tooltipPlacement: S, className: C, id: w, onClicked: T, cardName: E, _cls: D, active: O, focused: k, disabled: A, loading: j, isPending: M } =
|
|
12
|
+
var f = (e) => {
|
|
13
|
+
let { opts: f, ariaLabel: p, label: m, iconLabel: h, contentCard: g, href: _, target: v, tooltip: y, tooltipCard: b, tooltipMode: x, tooltipPlacement: S, className: C, id: w, onClicked: T, cardName: E, _cls: D, active: O, focused: k, disabled: A, loading: j, isPending: M } = e, N = o(), P = d(f?.beforeIcon), F = d(f?.afterIcon), I = /* @__PURE__ */ u(c, { children: [
|
|
14
14
|
P,
|
|
15
15
|
h ? d(h) : g ? /* @__PURE__ */ l(s, {
|
|
16
16
|
cardName: g,
|
|
@@ -31,7 +31,7 @@ var f = (a) => {
|
|
|
31
31
|
className: `${D("root")} ${C || ""}`.trim()
|
|
32
32
|
}, R = () => {
|
|
33
33
|
T({ id: w });
|
|
34
|
-
}, z = () => _ ? /* @__PURE__ */ l(
|
|
34
|
+
}, z = () => _ ? /* @__PURE__ */ l(n, {
|
|
35
35
|
...L,
|
|
36
36
|
href: _,
|
|
37
37
|
target: v,
|
|
@@ -39,7 +39,7 @@ var f = (a) => {
|
|
|
39
39
|
label: p ?? m,
|
|
40
40
|
onClick: R,
|
|
41
41
|
children: I
|
|
42
|
-
}) : /* @__PURE__ */ l(
|
|
42
|
+
}) : /* @__PURE__ */ l(t, {
|
|
43
43
|
...L,
|
|
44
44
|
"data-pihanga": E,
|
|
45
45
|
label: p ?? m,
|
|
@@ -54,12 +54,12 @@ var f = (a) => {
|
|
|
54
54
|
"data-pihanga": `${E}-tooltip`,
|
|
55
55
|
children: y
|
|
56
56
|
});
|
|
57
|
-
return /* @__PURE__ */ u(
|
|
57
|
+
return /* @__PURE__ */ u(r, {
|
|
58
58
|
open: B,
|
|
59
|
-
children: [/* @__PURE__ */ l(
|
|
59
|
+
children: [/* @__PURE__ */ l(a, {
|
|
60
60
|
asChild: !0,
|
|
61
61
|
children: z()
|
|
62
|
-
}), /* @__PURE__ */ l(
|
|
62
|
+
}), /* @__PURE__ */ l(i, {
|
|
63
63
|
side: S,
|
|
64
64
|
children: V
|
|
65
65
|
})]
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useBreakpoint as e, useContainerBreakpoint as t } from "../../components/hooks/use-breakpoint.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { Card as r } from "@pihanga2/core";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/cards/conditional/conditional.component.tsx
|
|
6
6
|
var a = (a) => {
|
|
7
|
-
let { cardName: o, show: s = !0, showOn: c, containerQuery: l = !1, content: u } = a, d =
|
|
7
|
+
let { cardName: o, show: s = !0, showOn: c, containerQuery: l = !1, content: u } = a, d = n.useRef(null), f = e(l ? void 0 : c), p = t(l ? c : void 0, d), m = s && (l ? p : f);
|
|
8
8
|
return l ? /* @__PURE__ */ i("div", {
|
|
9
9
|
ref: d,
|
|
10
10
|
style: { width: "100%" },
|
|
11
|
-
children: m && /* @__PURE__ */ i(
|
|
11
|
+
children: m && /* @__PURE__ */ i(r, {
|
|
12
12
|
cardName: u,
|
|
13
13
|
parentCard: o
|
|
14
14
|
})
|
|
15
|
-
}) : m ? /* @__PURE__ */ i(
|
|
15
|
+
}) : m ? /* @__PURE__ */ i(r, {
|
|
16
16
|
cardName: u,
|
|
17
17
|
parentCard: o
|
|
18
18
|
}) : null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Badge as e } from "../../components/ui/badge.js";
|
|
2
2
|
import { cn as t } from "../../lib/utils.js";
|
|
3
3
|
import { Table as n, TableBody as r, TableCaption as i, TableCell as a, TableHead as o, TableHeader as s, TableRow as c } from "../../components/ui/table.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import l, { useMemo as u, useState as d } from "react";
|
|
5
|
+
import { Card as f } from "@pihanga2/core";
|
|
6
6
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
7
|
import { Check as h, ChevronDown as g, ChevronRight as _, ChevronUp as v, ChevronsUpDown as y, X as b } from "lucide-react";
|
|
8
8
|
//#region src/cards/dataTable/dataTable.component.tsx
|
|
@@ -32,7 +32,7 @@ function ee(t, n, r) {
|
|
|
32
32
|
className: "size-4 text-muted-foreground",
|
|
33
33
|
"aria-label": "false"
|
|
34
34
|
});
|
|
35
|
-
case "card": return /* @__PURE__ */ p(
|
|
35
|
+
case "card": return /* @__PURE__ */ p(f, {
|
|
36
36
|
cardName: String(n),
|
|
37
37
|
parentCard: r
|
|
38
38
|
});
|
|
@@ -76,7 +76,7 @@ function C(e) {
|
|
|
76
76
|
return e.replace(/([A-Z])/g, " $1").replace(/^./, (e) => e.toUpperCase()).trim();
|
|
77
77
|
}
|
|
78
78
|
var w = (e) => {
|
|
79
|
-
let { columns: h, rows: v, caption: y, sortKey: b, sortAscending: w, pageSize: T, currentPage: E, stickyHeader: D = !1, striped: te = !1, hoverable: ne = !0, compact: re = !1, emptyCard: O, emptyText: ie = "No data", className: k, cardName: A, onRowClicked: j, onSortChanged: M, onShowDetail: N, onHideDetail: P, onPageChanged: F } = e, [I, L] =
|
|
79
|
+
let { columns: h, rows: v, caption: y, sortKey: b, sortAscending: w, pageSize: T, currentPage: E, stickyHeader: D = !1, striped: te = !1, hoverable: ne = !0, compact: re = !1, emptyCard: O, emptyText: ie = "No data", className: k, cardName: A, onRowClicked: j, onSortChanged: M, onShowDetail: N, onHideDetail: P, onPageChanged: F } = e, [I, L] = d(/* @__PURE__ */ new Set()), [R, z] = d(b), [B, V] = d(w ?? !0), H = b === void 0 ? R : b, U = w === void 0 ? B : w, [W, G] = d(E ?? 0), K = E === void 0 ? W : E, q = v.some((e) => e.detailCard != null), J = h.length + +!!q, Y = u(() => H ? [...v].sort((e, t) => {
|
|
80
80
|
let n = e.data[H], r = t.data[H];
|
|
81
81
|
if (n == null && r == null) return 0;
|
|
82
82
|
if (n == null) return 1;
|
|
@@ -87,7 +87,7 @@ var w = (e) => {
|
|
|
87
87
|
v,
|
|
88
88
|
H,
|
|
89
89
|
U
|
|
90
|
-
]), X =
|
|
90
|
+
]), X = u(() => {
|
|
91
91
|
if (!T) return Y;
|
|
92
92
|
let e = K * T;
|
|
93
93
|
return Y.slice(e, e + T);
|
|
@@ -150,13 +150,13 @@ var w = (e) => {
|
|
|
150
150
|
/* @__PURE__ */ p(r, { children: X.length === 0 ? /* @__PURE__ */ p(c, { children: /* @__PURE__ */ p(a, {
|
|
151
151
|
colSpan: J,
|
|
152
152
|
className: "py-8 text-center text-muted-foreground",
|
|
153
|
-
children: O ? /* @__PURE__ */ p(
|
|
153
|
+
children: O ? /* @__PURE__ */ p(f, {
|
|
154
154
|
cardName: O,
|
|
155
155
|
parentCard: A
|
|
156
156
|
}) : ie
|
|
157
157
|
}) }) : X.map((e, n) => {
|
|
158
158
|
let r = I.has(e.id), i = te && n % 2 == 1;
|
|
159
|
-
return /* @__PURE__ */ m(
|
|
159
|
+
return /* @__PURE__ */ m(l.Fragment, { children: [/* @__PURE__ */ m(c, {
|
|
160
160
|
className: t(i && "bg-muted/30", ne && "cursor-pointer"),
|
|
161
161
|
"data-expanded": r || void 0,
|
|
162
162
|
onClick: () => se(e),
|
|
@@ -185,7 +185,7 @@ var w = (e) => {
|
|
|
185
185
|
className: "border-b p-0",
|
|
186
186
|
children: /* @__PURE__ */ p("div", {
|
|
187
187
|
className: "bg-muted/20 px-4 py-3",
|
|
188
|
-
children: /* @__PURE__ */ p(
|
|
188
|
+
children: /* @__PURE__ */ p(f, {
|
|
189
189
|
cardName: e.detailCard,
|
|
190
190
|
cardKey: `detail-${e.id}`,
|
|
191
191
|
row: e,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import "@pihanga2/core";
|
|
3
2
|
import "react";
|
|
3
|
+
import "@pihanga2/core";
|
|
4
4
|
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/cards/dataTable/dataTableRowDetail.component.tsx
|
|
6
6
|
var i = (i) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Button as e } from "../../components/ui/button.js";
|
|
2
2
|
import { Dialog as t, DialogBody as n, DialogContent as r, DialogDescription as i, DialogFooter as a, DialogHeader as o, DialogTitle as s, DialogTrigger as c } from "../../components/ui/dialog.js";
|
|
3
|
-
import
|
|
4
|
-
import u from "
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { Card as u } from "@pihanga2/core";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/dialog/dialog.component.tsx
|
|
7
7
|
var p = (p) => {
|
|
8
|
-
let { id: m, trigger: h, content: g, title: _, description: v, open: y, size: b, variant: x, desktopVariant: S, mobileVariant: C, dismissible: w, hideClose: T, className: E, footer: D, footerCloseButtonText: O, cardName: k, onOpened: A, onClosed: j, onOpenChanged: M } = p, N = O === void 0 ? "Close" : O, [P, F] =
|
|
9
|
-
|
|
8
|
+
let { id: m, trigger: h, content: g, title: _, description: v, open: y, size: b, variant: x, desktopVariant: S, mobileVariant: C, dismissible: w, hideClose: T, className: E, footer: D, footerCloseButtonText: O, cardName: k, onOpened: A, onClosed: j, onOpenChanged: M } = p, N = O === void 0 ? "Close" : O, [P, F] = l.useState(!1), I = y ?? P, L = l.useRef(y);
|
|
9
|
+
l.useEffect(() => {
|
|
10
10
|
L.current === !0 && y === !1 && I === !1 && j({
|
|
11
11
|
id: m,
|
|
12
12
|
reason: "programmatic"
|
|
@@ -30,7 +30,7 @@ var p = (p) => {
|
|
|
30
30
|
return h ? /* @__PURE__ */ d("span", {
|
|
31
31
|
className: "inline-flex",
|
|
32
32
|
"data-pihanga-trigger-wrapper": !0,
|
|
33
|
-
children: /* @__PURE__ */ d(
|
|
33
|
+
children: /* @__PURE__ */ d(u, {
|
|
34
34
|
cardName: h,
|
|
35
35
|
parentCard: k
|
|
36
36
|
})
|
|
@@ -42,7 +42,7 @@ var p = (p) => {
|
|
|
42
42
|
function V() {
|
|
43
43
|
return D ? /* @__PURE__ */ d(a, {
|
|
44
44
|
className: "bg-muted/50",
|
|
45
|
-
children: /* @__PURE__ */ d(
|
|
45
|
+
children: /* @__PURE__ */ d(u, {
|
|
46
46
|
cardName: D,
|
|
47
47
|
parentCard: k
|
|
48
48
|
})
|
|
@@ -74,7 +74,7 @@ var p = (p) => {
|
|
|
74
74
|
className: E,
|
|
75
75
|
children: [
|
|
76
76
|
B(),
|
|
77
|
-
/* @__PURE__ */ d(n, { children: /* @__PURE__ */ d(
|
|
77
|
+
/* @__PURE__ */ d(n, { children: /* @__PURE__ */ d(u, {
|
|
78
78
|
cardName: g,
|
|
79
79
|
parentCard: k
|
|
80
80
|
}) }),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DropdownOpenContext as e } from "./dropdown-context.js";
|
|
2
2
|
import { DropdownMenu as t, DropdownMenuCheckboxItem as n, DropdownMenuContent as r, DropdownMenuGroup as i, DropdownMenuItem as a, DropdownMenuLabel as o, DropdownMenuRadioGroup as s, DropdownMenuRadioItem as c, DropdownMenuSeparator as l, DropdownMenuShortcut as u, DropdownMenuSub as d, DropdownMenuSubContent as f, DropdownMenuSubTrigger as p, DropdownMenuTrigger as m } from "./dropdown-menu.ui.js";
|
|
3
|
-
import
|
|
4
|
-
import g from "
|
|
3
|
+
import h from "react";
|
|
4
|
+
import { Card as g } from "@pihanga2/core";
|
|
5
5
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/dropDownMenu/drop-down.component.tsx
|
|
7
7
|
var b = (b) => {
|
|
8
|
-
let { trigger: x, menuLabel: S, menuAlign: C, items: w, cardName: T, checkboxCloseDelayMs: E } = b, [D, O] =
|
|
8
|
+
let { trigger: x, menuLabel: S, menuAlign: C, items: w, cardName: T, checkboxCloseDelayMs: E } = b, [D, O] = h.useState(!1), k = h.useRef(null), [A, j] = h.useState({}), M = h.useCallback((e, t) => [...e, t].join("::"), []), N = h.useCallback((e, t = []) => {
|
|
9
9
|
let n = {};
|
|
10
10
|
if (!e?.length) return n;
|
|
11
11
|
for (let r of e) if (!(!r || typeof r == "string")) {
|
|
@@ -36,9 +36,9 @@ var b = (b) => {
|
|
|
36
36
|
k.current = null, O(!1);
|
|
37
37
|
}, e);
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
h.useEffect(() => () => {
|
|
40
40
|
P();
|
|
41
|
-
}, []),
|
|
41
|
+
}, []), h.useEffect(() => {
|
|
42
42
|
D && j(N(w));
|
|
43
43
|
}, [
|
|
44
44
|
D,
|
|
@@ -51,7 +51,7 @@ var b = (b) => {
|
|
|
51
51
|
"data-pihanga-trigger-wrapper": !0,
|
|
52
52
|
children: /* @__PURE__ */ v(e.Provider, {
|
|
53
53
|
value: D,
|
|
54
|
-
children: /* @__PURE__ */ v(
|
|
54
|
+
children: /* @__PURE__ */ v(g, {
|
|
55
55
|
cardName: x,
|
|
56
56
|
parentCard: T
|
|
57
57
|
})
|
|
@@ -62,7 +62,7 @@ var b = (b) => {
|
|
|
62
62
|
return S ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(o, { children: S }), /* @__PURE__ */ v(l, {})] }) : null;
|
|
63
63
|
}
|
|
64
64
|
function z(e) {
|
|
65
|
-
return typeof e == "string" ? e : /* @__PURE__ */ v(
|
|
65
|
+
return typeof e == "string" ? e : /* @__PURE__ */ v(g, {
|
|
66
66
|
cardName: e,
|
|
67
67
|
parentCard: T
|
|
68
68
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { useFormContext as t } from "../form/form.context.js";
|
|
3
3
|
import { Field as n, FieldDescription as r, FieldError as i, FieldLabel as a } from "../../components/ui/field.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import o, { useMemo as s } from "react";
|
|
5
|
+
import { Card as c } from "@pihanga2/core";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
//#region src/cards/field/field.component.tsx
|
|
8
8
|
var d = (d) => {
|
|
9
|
-
let { label: f, fieldCard: p, name: m, description: h, error: g, className: _, cardName: v } = d, y = t(), b = y.isInForm && m ? y.errors[m] : g, x =
|
|
9
|
+
let { label: f, fieldCard: p, name: m, description: h, error: g, className: _, cardName: v } = d, y = t(), b = y.isInForm && m ? y.errors[m] : g, x = o.useId(), S = !!b, C = s(() => ({
|
|
10
10
|
cardName: p,
|
|
11
11
|
parentCard: v,
|
|
12
12
|
id: x,
|
|
@@ -26,7 +26,7 @@ var d = (d) => {
|
|
|
26
26
|
htmlFor: x,
|
|
27
27
|
children: f
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */ l(
|
|
29
|
+
/* @__PURE__ */ l(c, { ...C }),
|
|
30
30
|
h && /* @__PURE__ */ l(r, { children: h }),
|
|
31
31
|
/* @__PURE__ */ l(i, { children: b })
|
|
32
32
|
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DEF_FILE_DROP_FILE_TYPES as t } from "./fileDrop.types.js";
|
|
1
|
+
import { DEF_FILE_DROP_FILE_TYPES as e } from "./fileDrop.types.js";
|
|
3
2
|
/* empty css */
|
|
4
3
|
import "react";
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
|
+
import { FileUploader as r } from "react-drag-drop-files";
|
|
6
6
|
//#region src/cards/fileDrop/fileDrop.component.tsx
|
|
7
7
|
var i = Symbol.for("pihanga.card.FileDrop.LastDropped"), a = globalThis;
|
|
8
8
|
function o(e) {
|
|
@@ -16,7 +16,7 @@ function c() {
|
|
|
16
16
|
a[i] = null;
|
|
17
17
|
}
|
|
18
18
|
var l = (i) => {
|
|
19
|
-
let { fileTypes: a =
|
|
19
|
+
let { fileTypes: a = e, title: o = "Click or drop a file right here", description: l, showProgress: u = !1, progress: d = 0, progressStyle: f = {}, dropStyle: p = {}, onFileDropped: m, onError: h, cardName: g, className: _, _cls: v } = i;
|
|
20
20
|
function y(e) {
|
|
21
21
|
let t = Array.isArray(e) ? e[0] : e;
|
|
22
22
|
if (!t) return;
|
|
@@ -34,42 +34,42 @@ var l = (i) => {
|
|
|
34
34
|
h({ error: String(e) });
|
|
35
35
|
}
|
|
36
36
|
function x() {
|
|
37
|
-
let e = `${d}%`,
|
|
37
|
+
let e = `${d}%`, r = `${e} Complete`, i = {
|
|
38
38
|
width: "50%",
|
|
39
39
|
...f
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ n("div", {
|
|
42
42
|
className: "pi-progress",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
43
|
+
children: [/* @__PURE__ */ t("div", {
|
|
44
44
|
className: "pi-progress-label",
|
|
45
45
|
children: e
|
|
46
|
-
}), /* @__PURE__ */
|
|
46
|
+
}), /* @__PURE__ */ t("div", {
|
|
47
47
|
className: "pi-progress-container",
|
|
48
48
|
style: i,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ t("div", {
|
|
50
50
|
className: "pi-progress-bar",
|
|
51
51
|
style: { width: e },
|
|
52
52
|
role: "progressbar",
|
|
53
|
-
"aria-label":
|
|
53
|
+
"aria-label": r
|
|
54
54
|
})
|
|
55
55
|
})]
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
function S() {
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ n("div", {
|
|
60
60
|
className: "dropzone-msg",
|
|
61
61
|
style: p,
|
|
62
|
-
children: [o && /* @__PURE__ */
|
|
62
|
+
children: [o && /* @__PURE__ */ t("h3", {
|
|
63
63
|
className: "dropzone-msg-title",
|
|
64
64
|
children: o
|
|
65
|
-
}), l && /* @__PURE__ */
|
|
65
|
+
}), l && /* @__PURE__ */ t("span", {
|
|
66
66
|
className: "dropzone-msg-desc",
|
|
67
67
|
children: l
|
|
68
68
|
})]
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
function C() {
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ t(r, {
|
|
73
73
|
handleChange: y,
|
|
74
74
|
onTypeError: b,
|
|
75
75
|
name: "file",
|
|
@@ -78,7 +78,7 @@ var l = (i) => {
|
|
|
78
78
|
children: S()
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ t("div", {
|
|
82
82
|
className: v("root", _),
|
|
83
83
|
"data-pihanga": g,
|
|
84
84
|
children: u ? x() : C()
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { FormContext as t } from "./form.context.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useCallback as n, useState as r } from "react";
|
|
4
|
+
import { Card as i } from "@pihanga2/core";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/form/form.component.tsx
|
|
7
7
|
var s = (s) => {
|
|
8
|
-
let { id: c, content: l = [], initialValues: u = {}, submitLabel: d = "Submit", className: f, cardName: p, onSubmitted: m } = s, [h, g] =
|
|
8
|
+
let { id: c, content: l = [], initialValues: u = {}, submitLabel: d = "Submit", className: f, cardName: p, onSubmitted: m } = s, [h, g] = r(() => ({ ...u })), [_, v] = r({}), y = n((e, t) => {
|
|
9
9
|
g((n) => ({
|
|
10
10
|
...n,
|
|
11
11
|
[e]: t
|
|
@@ -14,7 +14,7 @@ var s = (s) => {
|
|
|
14
14
|
let n = { ...t };
|
|
15
15
|
return delete n[e], n;
|
|
16
16
|
});
|
|
17
|
-
}, []), b =
|
|
17
|
+
}, []), b = n((e, t) => {
|
|
18
18
|
v((n) => {
|
|
19
19
|
if (t === null) {
|
|
20
20
|
let t = { ...n };
|
|
@@ -25,7 +25,7 @@ var s = (s) => {
|
|
|
25
25
|
[e]: t
|
|
26
26
|
};
|
|
27
27
|
});
|
|
28
|
-
}, []), x =
|
|
28
|
+
}, []), x = n((e) => {
|
|
29
29
|
e.preventDefault(), m({
|
|
30
30
|
id: c,
|
|
31
31
|
formData: h
|
|
@@ -47,7 +47,7 @@ var s = (s) => {
|
|
|
47
47
|
onSubmit: x,
|
|
48
48
|
className: e("flex flex-col gap-4", f),
|
|
49
49
|
"data-pihanga": p,
|
|
50
|
-
children: [l.map((e, t) => /* @__PURE__ */ a(
|
|
50
|
+
children: [l.map((e, t) => /* @__PURE__ */ a(i, {
|
|
51
51
|
cardName: e,
|
|
52
52
|
parentCard: p
|
|
53
53
|
}, t)), /* @__PURE__ */ a("button", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { TooltipProvider as e } from "../../components/ui/tooltip.js";
|
|
2
2
|
import { ThemeProvider as t } from "../../components/theme-provider/theme-provider.component.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { StrictMode as n } from "react";
|
|
4
|
+
import { Card as r } from "@pihanga2/core";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/framework/framework.component.tsx
|
|
7
7
|
var a = (a) => {
|
|
8
8
|
let { page: o, theme: s = "dark", cardName: c } = a;
|
|
9
|
-
return /* @__PURE__ */ i(
|
|
9
|
+
return /* @__PURE__ */ i(n, { children: /* @__PURE__ */ i(t, {
|
|
10
10
|
defaultTheme: s,
|
|
11
11
|
storageKey: "shadcn-ui-theme",
|
|
12
|
-
children: /* @__PURE__ */ i(e, { children: /* @__PURE__ */ i(
|
|
12
|
+
children: /* @__PURE__ */ i(e, { children: /* @__PURE__ */ i(r, {
|
|
13
13
|
cardName: o,
|
|
14
14
|
parentCard: c
|
|
15
15
|
}) })
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { Label as t } from "../../components/ui/label.js";
|
|
3
3
|
import { Input as n } from "../../components/ui/input.js";
|
|
4
|
-
import "@pihanga2/core";
|
|
5
4
|
import r from "react";
|
|
5
|
+
import "@pihanga2/core";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
//#region src/cards/input/input.component.tsx
|
|
8
8
|
var o = (o) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getIcon as e } from "../icons.js";
|
|
2
|
+
import { Badge as t } from "../../components/ui/badge.js";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
4
|
import { Avatar as r, AvatarFallback as i, AvatarImage as a } from "../../components/ui/avatar.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as o from "react";
|
|
6
|
+
import { Card as s } from "@pihanga2/core";
|
|
7
7
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
import { ChevronDown as u } from "lucide-react";
|
|
9
9
|
//#region src/cards/list/list.component.tsx
|
|
@@ -20,75 +20,75 @@ var d = {
|
|
|
20
20
|
md: "size-6",
|
|
21
21
|
lg: "size-7"
|
|
22
22
|
};
|
|
23
|
-
function m(
|
|
24
|
-
if (!
|
|
25
|
-
switch (
|
|
23
|
+
function m(o, u, d) {
|
|
24
|
+
if (!o) return null;
|
|
25
|
+
switch (o.type) {
|
|
26
26
|
case "icon": return /* @__PURE__ */ c("span", {
|
|
27
|
-
className:
|
|
28
|
-
children:
|
|
27
|
+
className: n("flex shrink-0 items-center [&>svg]:size-4", o.className),
|
|
28
|
+
children: e(o.name)
|
|
29
29
|
});
|
|
30
30
|
case "avatar": return /* @__PURE__ */ l(r, {
|
|
31
|
-
className:
|
|
32
|
-
children: [/* @__PURE__ */ c(a, { src:
|
|
31
|
+
className: n(p[u], o.className),
|
|
32
|
+
children: [/* @__PURE__ */ c(a, { src: o.src }), /* @__PURE__ */ c(i, { children: o.fallback ?? "" })]
|
|
33
33
|
});
|
|
34
|
-
case "chip": return /* @__PURE__ */ c(
|
|
34
|
+
case "chip": return /* @__PURE__ */ c(t, {
|
|
35
35
|
variant: "secondary",
|
|
36
|
-
className:
|
|
37
|
-
children:
|
|
36
|
+
className: o.className,
|
|
37
|
+
children: o.text
|
|
38
38
|
});
|
|
39
|
-
case "card": return /* @__PURE__ */ c(
|
|
40
|
-
cardName:
|
|
39
|
+
case "card": return /* @__PURE__ */ c(s, {
|
|
40
|
+
cardName: o.cardName,
|
|
41
41
|
parentCard: d
|
|
42
42
|
});
|
|
43
43
|
default: return null;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function h({ item: e, size:
|
|
47
|
-
let [a,
|
|
46
|
+
function h({ item: e, size: t, onItemClicked: r, cardName: i }) {
|
|
47
|
+
let [a, s] = o.useState(!1), p = !!e.nested?.length;
|
|
48
48
|
function g() {
|
|
49
|
-
p ?
|
|
49
|
+
p ? s((e) => !e) : r({ itemID: e.id });
|
|
50
50
|
}
|
|
51
51
|
return /* @__PURE__ */ l("li", { children: [/* @__PURE__ */ l("button", {
|
|
52
52
|
type: "button",
|
|
53
|
-
className:
|
|
53
|
+
className: n("flex w-full items-center rounded-sm outline-none transition-colors", "hover:bg-accent hover:text-accent-foreground", "focus-visible:ring-1 focus-visible:ring-ring", e.isSelected && "bg-accent text-accent-foreground font-medium", d[t], e.className),
|
|
54
54
|
onClick: g,
|
|
55
55
|
"aria-expanded": p ? a : void 0,
|
|
56
56
|
"data-selected": e.isSelected || void 0,
|
|
57
57
|
children: [
|
|
58
|
-
m(e.startDecorator,
|
|
58
|
+
m(e.startDecorator, t, i),
|
|
59
59
|
/* @__PURE__ */ l("span", {
|
|
60
60
|
className: "flex min-w-0 flex-1 flex-col items-start",
|
|
61
61
|
children: [/* @__PURE__ */ c("span", {
|
|
62
62
|
className: "truncate leading-none",
|
|
63
63
|
children: e.title
|
|
64
64
|
}), e.subTitle && /* @__PURE__ */ c("span", {
|
|
65
|
-
className:
|
|
65
|
+
className: n("mt-0.5 truncate text-muted-foreground", f[t]),
|
|
66
66
|
children: e.subTitle
|
|
67
67
|
})]
|
|
68
68
|
}),
|
|
69
|
-
!p && m(e.endDecorator,
|
|
70
|
-
p && /* @__PURE__ */ c(u, { className:
|
|
69
|
+
!p && m(e.endDecorator, t, i),
|
|
70
|
+
p && /* @__PURE__ */ c(u, { className: n("ml-auto size-4 shrink-0 text-muted-foreground transition-transform duration-200", a && "rotate-180") })
|
|
71
71
|
]
|
|
72
72
|
}), p && a && /* @__PURE__ */ c("ul", {
|
|
73
|
-
className:
|
|
74
|
-
children: e.nested.map((e,
|
|
73
|
+
className: n("ml-3 mt-0.5 flex flex-col gap-0.5 border-l border-border pl-2", "list-none p-0", t === "lg" ? "ml-4 pl-3" : "ml-3 pl-2"),
|
|
74
|
+
children: e.nested.map((e, n) => /* @__PURE__ */ c(h, {
|
|
75
75
|
item: e,
|
|
76
|
-
size:
|
|
76
|
+
size: t,
|
|
77
77
|
onItemClicked: r,
|
|
78
78
|
cardName: i
|
|
79
|
-
}, e.id ??
|
|
79
|
+
}, e.id ?? n))
|
|
80
80
|
})] });
|
|
81
81
|
}
|
|
82
82
|
var g = (e) => {
|
|
83
|
-
let { items:
|
|
83
|
+
let { items: t, size: r = "md", marker: i, className: a, style: o, onItemClicked: s, cardName: l } = e, u = {
|
|
84
84
|
...o,
|
|
85
85
|
...i && i !== "none" ? { listStyleType: i } : void 0
|
|
86
86
|
};
|
|
87
87
|
return /* @__PURE__ */ c("ul", {
|
|
88
|
-
className:
|
|
88
|
+
className: n("flex flex-col gap-0.5 p-0", i && i !== "none" ? "list-inside" : "list-none", a),
|
|
89
89
|
style: u,
|
|
90
90
|
"data-pihanga": l,
|
|
91
|
-
children:
|
|
91
|
+
children: t.map((e, t) => /* @__PURE__ */ c(h, {
|
|
92
92
|
item: e,
|
|
93
93
|
size: r,
|
|
94
94
|
onItemClicked: s,
|
package/cards/list/list.types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createCardDeclaration as e, createOnAction as t, registerActions as n } from "@pihanga2/core";
|
|
2
1
|
import "react";
|
|
2
|
+
import { createCardDeclaration as e, createOnAction as t, registerActions as n } from "@pihanga2/core";
|
|
3
3
|
//#region src/cards/list/list.types.ts
|
|
4
4
|
var r = "shad/list", i = e(r), a = n(r, ["item_clicked"]), o = t(a.ITEM_CLICKED);
|
|
5
5
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Spinner as e } from "../../components/ui/spinner.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { Card as t } from "@pihanga2/core";
|
|
4
3
|
import "react";
|
|
4
|
+
import { Card as t } from "@pihanga2/core";
|
|
5
5
|
import n from "clsx";
|
|
6
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
7
|
//#region src/cards/loadingOverlay/loadingOverlay.component.tsx
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getIconElement as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { SCREEN_SIZE_ORDER as e, SCREEN_SIZE_WIDTHS as t, ScreenSize as n } from "../types.js";
|
|
2
|
+
import { getIconElement as r } from "../icons.js";
|
|
3
|
+
import { Button as i } from "../../components/ui/button.js";
|
|
4
|
+
import { Sheet as a, SheetContent as o, SheetTrigger as s } from "../../components/ui/sheet.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useEffect as c, useRef as l, useState as u } from "react";
|
|
7
|
+
import { Card as d } from "@pihanga2/core";
|
|
8
8
|
import f from "clsx";
|
|
9
9
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
10
|
import { Menu as h } from "lucide-react";
|
|
11
11
|
//#region src/cards/pageWithNavbar/pageWithNavbar.component.tsx
|
|
12
12
|
function g() {
|
|
13
|
-
let
|
|
14
|
-
for (let
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
13
|
+
let r = typeof window < "u" ? window.innerWidth : 0;
|
|
14
|
+
for (let n = e.length - 1; n >= 0; n--) {
|
|
15
|
+
let i = e[n];
|
|
16
|
+
if (r >= t[i]) return i;
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return n.XS;
|
|
19
19
|
}
|
|
20
20
|
function _() {
|
|
21
|
-
let [e, t] =
|
|
22
|
-
return
|
|
21
|
+
let [e, t] = u(g);
|
|
22
|
+
return c(() => {
|
|
23
23
|
let e = () => t(g());
|
|
24
24
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
25
25
|
}, []), e;
|
|
@@ -27,19 +27,19 @@ function _() {
|
|
|
27
27
|
function v(e) {
|
|
28
28
|
return typeof e == "object" && !!e;
|
|
29
29
|
}
|
|
30
|
-
function y(
|
|
31
|
-
if (!
|
|
32
|
-
if (!v(
|
|
33
|
-
let
|
|
34
|
-
for (let
|
|
35
|
-
let
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
30
|
+
function y(t, n) {
|
|
31
|
+
if (!t) return;
|
|
32
|
+
if (!v(t)) return t;
|
|
33
|
+
let r = e.indexOf(n);
|
|
34
|
+
for (let n = r; n >= 0; n--) {
|
|
35
|
+
let r = e[n];
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(t, r)) return t[r] ?? void 0;
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return t.default ?? void 0;
|
|
39
39
|
}
|
|
40
|
-
var b = (
|
|
41
|
-
let { title:
|
|
42
|
-
|
|
40
|
+
var b = (e) => {
|
|
41
|
+
let { title: t, iconName: n, main: u, footer: g, navLinks: v = [], scrollResetKey: b, headerLeftCard: S, headerRightCard: C, style: w, onNavigateTo: T, cardName: E } = e, D = _(), O = w ?? {}, k = l(null);
|
|
42
|
+
c(() => {
|
|
43
43
|
k.current?.scrollTo({
|
|
44
44
|
top: 0,
|
|
45
45
|
behavior: "auto"
|
|
@@ -47,15 +47,15 @@ var b = (a) => {
|
|
|
47
47
|
}, [b]);
|
|
48
48
|
let A = y(S, D), j = y(C, D), M = v.length > 0;
|
|
49
49
|
function N({ className: e }) {
|
|
50
|
-
let
|
|
50
|
+
let i = n ? r(n) : void 0;
|
|
51
51
|
return /* @__PURE__ */ m("div", {
|
|
52
52
|
className: f("title-section", e),
|
|
53
|
-
children: [
|
|
53
|
+
children: [i && /* @__PURE__ */ p(i, {
|
|
54
54
|
className: "title-icon",
|
|
55
55
|
"aria-hidden": !0
|
|
56
56
|
}), /* @__PURE__ */ p("span", {
|
|
57
57
|
className: "title-text",
|
|
58
|
-
children:
|
|
58
|
+
children: t
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
@@ -63,18 +63,18 @@ var b = (a) => {
|
|
|
63
63
|
return /* @__PURE__ */ m("nav", {
|
|
64
64
|
className: "nav-md",
|
|
65
65
|
"aria-label": "Main navigation",
|
|
66
|
-
children: [/* @__PURE__ */ p(N, {}), v.map((
|
|
67
|
-
onClick: () => T({ id:
|
|
66
|
+
children: [/* @__PURE__ */ p(N, {}), v.map((e) => /* @__PURE__ */ p(i, {
|
|
67
|
+
onClick: () => T({ id: e.id }),
|
|
68
68
|
variant: "link",
|
|
69
69
|
className: "nav-link",
|
|
70
|
-
children:
|
|
71
|
-
},
|
|
70
|
+
children: e.title ?? x(e.id)
|
|
71
|
+
}, e.id))]
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
function F() {
|
|
75
|
-
return /* @__PURE__ */ m(
|
|
75
|
+
return /* @__PURE__ */ m(a, { children: [/* @__PURE__ */ p(s, {
|
|
76
76
|
asChild: !0,
|
|
77
|
-
children: /* @__PURE__ */ p(
|
|
77
|
+
children: /* @__PURE__ */ p(i, {
|
|
78
78
|
variant: "outline",
|
|
79
79
|
size: "icon",
|
|
80
80
|
className: "shrink-0 md:hidden",
|
|
@@ -84,17 +84,17 @@ var b = (a) => {
|
|
|
84
84
|
"aria-hidden": !0
|
|
85
85
|
})
|
|
86
86
|
})
|
|
87
|
-
}), /* @__PURE__ */ p(
|
|
87
|
+
}), /* @__PURE__ */ p(o, {
|
|
88
88
|
side: "left",
|
|
89
89
|
children: /* @__PURE__ */ m("nav", {
|
|
90
90
|
className: "nav-sm",
|
|
91
91
|
"aria-label": "Mobile navigation",
|
|
92
|
-
children: [/* @__PURE__ */ p(N, {}), v.map((
|
|
93
|
-
onClick: () => T({ id:
|
|
92
|
+
children: [/* @__PURE__ */ p(N, {}), v.map((e) => /* @__PURE__ */ p(i, {
|
|
93
|
+
onClick: () => T({ id: e.id }),
|
|
94
94
|
variant: "link",
|
|
95
95
|
className: "nav-link",
|
|
96
|
-
children:
|
|
97
|
-
},
|
|
96
|
+
children: e.title ?? x(e.id)
|
|
97
|
+
}, e.id))]
|
|
98
98
|
})
|
|
99
99
|
})] });
|
|
100
100
|
}
|
|
@@ -115,10 +115,10 @@ var b = (a) => {
|
|
|
115
115
|
}),
|
|
116
116
|
/* @__PURE__ */ m("div", {
|
|
117
117
|
className: "header-actions",
|
|
118
|
-
children: [A && /* @__PURE__ */ p(
|
|
118
|
+
children: [A && /* @__PURE__ */ p(d, {
|
|
119
119
|
cardName: A,
|
|
120
120
|
parentCard: E
|
|
121
|
-
}), j && /* @__PURE__ */ p(
|
|
121
|
+
}), j && /* @__PURE__ */ p(d, {
|
|
122
122
|
cardName: j,
|
|
123
123
|
parentCard: E
|
|
124
124
|
})]
|
|
@@ -128,14 +128,14 @@ var b = (a) => {
|
|
|
128
128
|
/* @__PURE__ */ p("main", {
|
|
129
129
|
className: f("main", O.main),
|
|
130
130
|
ref: k,
|
|
131
|
-
children: /* @__PURE__ */ p(
|
|
132
|
-
cardName:
|
|
131
|
+
children: /* @__PURE__ */ p(d, {
|
|
132
|
+
cardName: u,
|
|
133
133
|
parentCard: E
|
|
134
134
|
})
|
|
135
135
|
}),
|
|
136
136
|
g && /* @__PURE__ */ p("footer", {
|
|
137
137
|
className: f("footer", O.footer),
|
|
138
|
-
children: /* @__PURE__ */ p(
|
|
138
|
+
children: /* @__PURE__ */ p(d, {
|
|
139
139
|
cardName: g,
|
|
140
140
|
parentCard: E
|
|
141
141
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { Select as t, SelectContent as n, SelectGroup as r, SelectItem as i, SelectTrigger as a, SelectValue as o } from "../../components/ui/select.js";
|
|
3
|
-
import "@pihanga2/core";
|
|
4
3
|
import { useState as s } from "react";
|
|
4
|
+
import "@pihanga2/core";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/select/select.component.tsx
|
|
7
7
|
var u = (u) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { Slider as t } from "../../components/ui/slider.js";
|
|
3
|
-
import "@pihanga2/core";
|
|
4
3
|
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import "@pihanga2/core";
|
|
5
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/slider/slider.component.tsx
|
|
7
7
|
var s = (s) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Fragment as e } from "react";
|
|
2
|
+
import { Card as t } from "@pihanga2/core";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/cards/stack/stack.component.tsx
|
|
@@ -63,10 +63,10 @@ var a = (a) => {
|
|
|
63
63
|
}
|
|
64
64
|
l && l > 0 && h.push(`gap-${l}`);
|
|
65
65
|
function g() {
|
|
66
|
-
return o ? o.map((n, a) => /* @__PURE__ */ i(
|
|
66
|
+
return o ? o.map((n, a) => /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r(t, {
|
|
67
67
|
cardName: n,
|
|
68
68
|
parentCard: m
|
|
69
|
-
}, `item-${a}`), c && a < o.length - 1 && /* @__PURE__ */ r(
|
|
69
|
+
}, `item-${a}`), c && a < o.length - 1 && /* @__PURE__ */ r(t, {
|
|
70
70
|
cardName: c,
|
|
71
71
|
parentCard: m
|
|
72
72
|
}, `divider-${a}`)] }, a)) : null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { StepperUI as e } from "../../components/ui/stepper.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useState as t } from "react";
|
|
4
|
+
import { Card as n } from "@pihanga2/core";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/stepper/stepper.component.tsx
|
|
7
7
|
var i = (i) => {
|
|
8
|
-
let { steps: a, activeStep: o, defaultActiveStep: s = 0, selfManaged: c = !1, orientation: l = "horizontal", size: u = "md", showContent: d = !1, className: f, cardName: p, onStepClicked: m } = i, [h, g] =
|
|
8
|
+
let { steps: a, activeStep: o, defaultActiveStep: s = 0, selfManaged: c = !1, orientation: l = "horizontal", size: u = "md", showContent: d = !1, className: f, cardName: p, onStepClicked: m } = i, [h, g] = t(o ?? s), _ = c ? h : o ?? 0, v = a.map((e) => ({
|
|
9
9
|
id: e.id,
|
|
10
10
|
title: e.title,
|
|
11
11
|
description: e.description,
|
|
12
12
|
optional: e.optional,
|
|
13
|
-
labelNode: e.labelCard ? /* @__PURE__ */ r(
|
|
13
|
+
labelNode: e.labelCard ? /* @__PURE__ */ r(n, {
|
|
14
14
|
cardName: e.labelCard,
|
|
15
15
|
parentCard: p
|
|
16
16
|
}) : void 0
|
|
@@ -23,9 +23,9 @@ var i = (i) => {
|
|
|
23
23
|
}
|
|
24
24
|
function b(e) {
|
|
25
25
|
if (!d || l !== "vertical") return null;
|
|
26
|
-
let
|
|
27
|
-
return
|
|
28
|
-
cardName:
|
|
26
|
+
let t = a[e];
|
|
27
|
+
return t?.contentCard ? /* @__PURE__ */ r(n, {
|
|
28
|
+
cardName: t.contentCard,
|
|
29
29
|
parentCard: p
|
|
30
30
|
}) : null;
|
|
31
31
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { Label as t } from "../../components/ui/label.js";
|
|
3
3
|
import { Switch as n } from "../../components/ui/switch.js";
|
|
4
|
-
import "@pihanga2/core";
|
|
5
4
|
import "react";
|
|
5
|
+
import "@pihanga2/core";
|
|
6
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
7
|
//#region src/cards/switch/switch.component.tsx
|
|
8
8
|
var a = (a) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Select as e, SelectContent as t, SelectItem as n, SelectTrigger as r, SelectValue as i } from "../../components/ui/select.js";
|
|
2
2
|
import { Tabs as a, TabsContent as o, TabsList as s, TabsTrigger as c } from "../../components/ui/tabs.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useState as l } from "react";
|
|
4
|
+
import { Card as u } from "@pihanga2/core";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/tabs/tabs.component.tsx
|
|
7
7
|
var p = (p) => {
|
|
8
|
-
let { tabs: m, value: h, defaultValue: g, selfManaged: _ = !1, orientation: v = "horizontal", className: y, listClassName: b, contentClassName: x, maxTabs: S, cardName: C, onTabChanged: w } = p, [T, E] =
|
|
8
|
+
let { tabs: m, value: h, defaultValue: g, selfManaged: _ = !1, orientation: v = "horizontal", className: y, listClassName: b, contentClassName: x, maxTabs: S, cardName: C, onTabChanged: w } = p, [T, E] = l(h ?? g ?? m[0]?.id ?? ""), D = _ ? T : h ?? g ?? m[0]?.id ?? "";
|
|
9
9
|
function O(e) {
|
|
10
10
|
_ && E(e), typeof w == "function" && w({ tabId: e });
|
|
11
11
|
}
|
|
@@ -27,7 +27,7 @@ var p = (p) => {
|
|
|
27
27
|
}, e.id)) })]
|
|
28
28
|
}), a && /* @__PURE__ */ d("div", {
|
|
29
29
|
className: x,
|
|
30
|
-
children: /* @__PURE__ */ d(
|
|
30
|
+
children: /* @__PURE__ */ d(u, {
|
|
31
31
|
cardName: a.contentCard,
|
|
32
32
|
parentCard: C
|
|
33
33
|
})
|
|
@@ -46,7 +46,7 @@ var p = (p) => {
|
|
|
46
46
|
children: m.map((e) => /* @__PURE__ */ d(c, {
|
|
47
47
|
value: e.id,
|
|
48
48
|
disabled: e.disabled,
|
|
49
|
-
children: typeof e.title == "string" ? e.title : /* @__PURE__ */ d(
|
|
49
|
+
children: typeof e.title == "string" ? e.title : /* @__PURE__ */ d(u, {
|
|
50
50
|
cardName: e.title,
|
|
51
51
|
parentCard: C
|
|
52
52
|
})
|
|
@@ -54,7 +54,7 @@ var p = (p) => {
|
|
|
54
54
|
}), m.map((e) => /* @__PURE__ */ d(o, {
|
|
55
55
|
value: e.id,
|
|
56
56
|
className: x,
|
|
57
|
-
children: /* @__PURE__ */ d(
|
|
57
|
+
children: /* @__PURE__ */ d(u, {
|
|
58
58
|
cardName: e.contentCard,
|
|
59
59
|
parentCard: C
|
|
60
60
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { Input as t } from "../../components/ui/input.js";
|
|
3
|
-
import "@pihanga2/core";
|
|
4
3
|
import "react";
|
|
4
|
+
import "@pihanga2/core";
|
|
5
5
|
import { jsx as n } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/textField/textField.component.tsx
|
|
7
7
|
var r = (r) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TOAST_OP_ACTION as e } from "./toast.types.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
+
import { Card as i, usePiReducer as a } from "@pihanga2/core";
|
|
4
4
|
import { jsx as o } from "react/jsx-runtime";
|
|
5
5
|
import { toast as s } from "sonner";
|
|
6
6
|
//#region src/cards/toast/toast.component.tsx
|
|
7
7
|
var c = (c) => {
|
|
8
|
-
let { variant: l = "default", duration: u = 4e3, dismissible: d = !0, className: f, onClosed: p, cardName: m } = c, [h, g] =
|
|
9
|
-
|
|
8
|
+
let { variant: l = "default", duration: u = 4e3, dismissible: d = !0, className: f, onClosed: p, cardName: m } = c, [h, g] = r(null);
|
|
9
|
+
a(e.SHOW, (e, t) => {
|
|
10
10
|
t.cardName && t.cardName !== m || g({
|
|
11
11
|
message: t.message,
|
|
12
12
|
description: t.description,
|
|
@@ -16,8 +16,8 @@ var c = (c) => {
|
|
|
16
16
|
duration: t.duration ?? u
|
|
17
17
|
});
|
|
18
18
|
}, m);
|
|
19
|
-
let _ =
|
|
20
|
-
return
|
|
19
|
+
let _ = n(void 0);
|
|
20
|
+
return t(() => {
|
|
21
21
|
if (!h) return;
|
|
22
22
|
let e = {
|
|
23
23
|
success: s.success,
|
|
@@ -25,17 +25,17 @@ var c = (c) => {
|
|
|
25
25
|
info: s.info,
|
|
26
26
|
warning: s.warning,
|
|
27
27
|
default: s
|
|
28
|
-
}[h.variant] || s,
|
|
28
|
+
}[h.variant] || s, t = [f, `toast-${h.variant}`].filter(Boolean).join(" ");
|
|
29
29
|
if (h.contentCard) {
|
|
30
|
-
let
|
|
31
|
-
_.current = e(() => /* @__PURE__ */ o(
|
|
32
|
-
cardName:
|
|
30
|
+
let n = h.contentCard;
|
|
31
|
+
_.current = e(() => /* @__PURE__ */ o(i, {
|
|
32
|
+
cardName: n,
|
|
33
33
|
parentCard: m
|
|
34
34
|
}), {
|
|
35
35
|
duration: h.duration,
|
|
36
36
|
position: h.position || "bottom-right",
|
|
37
37
|
dismissible: d,
|
|
38
|
-
className:
|
|
38
|
+
className: t,
|
|
39
39
|
onDismiss: () => {
|
|
40
40
|
g(null), p({});
|
|
41
41
|
},
|
|
@@ -48,7 +48,7 @@ var c = (c) => {
|
|
|
48
48
|
duration: h.duration,
|
|
49
49
|
position: h.position || "bottom-right",
|
|
50
50
|
dismissible: d,
|
|
51
|
-
className:
|
|
51
|
+
className: t,
|
|
52
52
|
onDismiss: () => {
|
|
53
53
|
g(null), p({});
|
|
54
54
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormContext as e } from "../form/form.context.js";
|
|
2
2
|
import { ToggleGroup as t, ToggleGroupItem as n } from "../../components/ui/toggle-group.js";
|
|
3
|
-
import "@pihanga2/core";
|
|
4
3
|
import r from "react";
|
|
4
|
+
import "@pihanga2/core";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
//#region src/cards/toggleGroup/toggleGroup.component.tsx
|
|
7
7
|
var a = (a) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { Card as n } from "@pihanga2/core";
|
|
4
4
|
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/cards/typography/typography.component.tsx
|
|
6
6
|
var a = {
|
|
@@ -18,7 +18,7 @@ var a = {
|
|
|
18
18
|
}, o = (s) => {
|
|
19
19
|
let { text: c, childCard: l, paragraph: u, level: d, className: f, style: p, cardName: m, _dispatch: h, _cls: g } = s, [_, v] = d ? a[d] : ["div", ""];
|
|
20
20
|
function y() {
|
|
21
|
-
return l ? /* @__PURE__ */ i(
|
|
21
|
+
return l ? /* @__PURE__ */ i(n, {
|
|
22
22
|
cardName: l,
|
|
23
23
|
parentCard: m
|
|
24
24
|
}) : u ? /* @__PURE__ */ i(r, { children: u.map((e, t) => b(e, t)) }) : c;
|
|
@@ -32,7 +32,7 @@ var a = {
|
|
|
32
32
|
key: t
|
|
33
33
|
}) : null;
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return t.createElement(_, {
|
|
36
36
|
className: e(v, f),
|
|
37
37
|
style: p,
|
|
38
38
|
"data-pihanga": m
|
package/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pihanga2/shadcn",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Pihanga core card components built on shadcn/ui and Radix UI — the npm distribution of pihanga-shadcn.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"import": "./cards/core-index.js",
|
|
9
|
-
"types": "./cards/core-index.d.ts"
|
|
10
|
-
},
|
|
11
7
|
"./cards/badge": {
|
|
12
8
|
"import": "./cards/badge/index.js",
|
|
13
9
|
"types": "./cards/badge/index.d.ts"
|
|
@@ -149,8 +145,6 @@
|
|
|
149
145
|
"types": "./cards/icons.d.ts"
|
|
150
146
|
}
|
|
151
147
|
},
|
|
152
|
-
"main": "./cards/core-index.js",
|
|
153
|
-
"types": "./cards/core-index.d.ts",
|
|
154
148
|
"sideEffects": [
|
|
155
149
|
"./cards/badge/index.js",
|
|
156
150
|
"./cards/box/index.js",
|
package/cards/core-index.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { BADGE_CARD as e, ShadBadge as t } from "./badge/badge.types.js";
|
|
2
|
-
import "./badge/index.js";
|
|
3
|
-
import { BOX_CARD as n, Box as r } from "./box/box.types.js";
|
|
4
|
-
import "./box/index.js";
|
|
5
|
-
import { Button as i, PI_BUTTON_ACTION as a, PI_BUTTON_CARD as o, onButtonClicked as s, onPiButtonClicked as c } from "./button/button.types.js";
|
|
6
|
-
import "./button/index.js";
|
|
7
|
-
import { FormContext as l, useFormContext as u } from "./form/form.context.js";
|
|
8
|
-
import { Checkbox as d, PI_CHECKBOX_ACTION as f, PI_CHECKBOX_CARD as p, onCheckboxChanged as m, onPiCheckboxChanged as h } from "./checkbox/checkbox.types.js";
|
|
9
|
-
import "./checkbox/index.js";
|
|
10
|
-
import { CONDITIONAL_CARD as g, Conditional as _ } from "./conditional/conditional.types.js";
|
|
11
|
-
import "./conditional/index.js";
|
|
12
|
-
import { DATA_TABLE_ACTION as v, DATA_TABLE_CARD as y, DATA_TABLE_ROW_DETAIL_CARD as b, DataTable as x, DataTableRowDetail as S, onDataTableHideDetail as C, onDataTablePageChanged as w, onDataTableRowClicked as T, onDataTableShowDetail as E, onDataTableSortChanged as D } from "./dataTable/dataTable.types.js";
|
|
13
|
-
import "./dataTable/index.js";
|
|
14
|
-
import { Dialog as O, PI_DIALOG_ACTION as k, PI_DIALOG_CARD as A, onDialogClosed as j, onDialogOpenChanged as M, onDialogOpened as N } from "./dialog/dialog.types.js";
|
|
15
|
-
import "./dialog/index.js";
|
|
16
|
-
import { DROP_DOWN_MENU_ACTION as P, DROP_DOWN_MENU_CARD as F, DropDownMenu as I, onDropDownMenuClicked as L } from "./dropDownMenu/drop-down.types.js";
|
|
17
|
-
import "./dropDownMenu/index.js";
|
|
18
|
-
import { Field as R, PI_FIELD_CARD as z } from "./field/field.types.js";
|
|
19
|
-
import "./field/index.js";
|
|
20
|
-
import { DEF_FILE_DROP_FILE_TYPES as B, FILE_DROP_ACTION as V, FILE_DROP_CARD as H, FileDrop as U, onFileDropError as W, onFileDropped as G } from "./fileDrop/fileDrop.types.js";
|
|
21
|
-
import { get_last_dropped as K } from "./fileDrop/fileDrop.component.js";
|
|
22
|
-
import "./fileDrop/index.js";
|
|
23
|
-
import { FLEX_GRID_CARD as q, FlexGrid as J } from "./flexGrid/flexGrid.types.js";
|
|
24
|
-
import "./flexGrid/index.js";
|
|
25
|
-
import { Form as Y, PI_FORM_ACTION as X, PI_FORM_CARD as Z, onFormSubmitted as Q, onPiFormSubmitted as $ } from "./form/form.types.js";
|
|
26
|
-
import "./form/index.js";
|
|
27
|
-
import { SdFramework as ee } from "./framework/index.js";
|
|
28
|
-
import { PI_INPUT_ACTION as te, PI_INPUT_CARD as ne, PiInput as re, onInputChanged as ie, onInputCommitted as ae, onPiInputChanged as oe, onPiInputCommitted as se } from "./input/input.types.js";
|
|
29
|
-
import "./input/index.js";
|
|
30
|
-
import { LIST_ACTION as ce, LIST_CARD as le, List as ue, onListItemClicked as de } from "./list/list.types.js";
|
|
31
|
-
import "./list/index.js";
|
|
32
|
-
import { LOADING_OVERLAY_CARD as fe, LoadingOverlay as pe } from "./loadingOverlay/loadingOverlay.types.js";
|
|
33
|
-
import "./loadingOverlay/index.js";
|
|
34
|
-
import { LOADING_SKELETON_CARD as me, LoadingSkeleton as he } from "./loadingSkeleton/loading-skeleton.types.js";
|
|
35
|
-
import "./loadingSkeleton/index.js";
|
|
36
|
-
import { MENU_ACTION as ge, MENU_CARD as _e, Menu as ve, onMenuClicked as ye } from "./menu/menu.types.js";
|
|
37
|
-
import "./menu/index.js";
|
|
38
|
-
import { MODE_TOGGLE_ACTION as be, MODE_TOGGLE_CARD as xe, ModeToggle as Se, onModeToggleChanged as Ce } from "./modeToggle/mode-toggle.types.js";
|
|
39
|
-
import "./modeToggle/index.js";
|
|
40
|
-
import { NAVBAR_SEARCH_ACTION as we, NAVBAR_SEARCH_CARD as Te, NavbarSearch as Ee, onNavbarSearchFocus as De, onNavbarSearchItems as Oe, onNavbarSearchSubmit as ke } from "./navbarSearch/navbarSearch.type.js";
|
|
41
|
-
import "./navbarSearch/index.js";
|
|
42
|
-
import { PAGE_WITH_NAVBAR_ACTION as Ae, PAGE_WITH_NAVBAR_CARD as je, PageWithNavbar as Me, onPageWithNavbarNavigateTo as Ne } from "./pageWithNavbar/pageWithNavbar.type.js";
|
|
43
|
-
import { SdPageWithNavbar as Pe } from "./pageWithNavbar/index.js";
|
|
44
|
-
import { DEF_ERROR_COLOR as Fe, DEF_EVENT_DURATION_SECONDS as Ie, DEF_HEIGHT as Le, DEF_OVERLAY_OPACITY as Re, DEF_PASTE_FIRST_REMINDER as ze, DEF_PASTE_TARGET_FILE_TYPES as Be, DEF_SUCCESS_COLOR as Ve, PASTE_TARGET_ACTION as He, PASTE_TARGET_CARD as Ue, PasteTarget as We, onContentPasted as Ge, onPasteError as Ke } from "./pasteTarget/pasteTarget.types.js";
|
|
45
|
-
import "./pasteTarget/index.js";
|
|
46
|
-
import { PI_SELECT_ACTION as qe, PI_SELECT_CARD as Je, Select as Ye, onPiSelectChanged as Xe, onPiSelectClosed as Ze, onPiSelectOpened as Qe, onSelectChanged as $e, onSelectClosed as et, onSelectOpened as tt } from "./select/select.types.js";
|
|
47
|
-
import "./select/index.js";
|
|
48
|
-
import { PI_SLIDER_ACTION as nt, PI_SLIDER_CARD as rt, Slider as it, onPiSliderChanged as at, onPiSliderCommitted as ot, onSliderChanged as st, onSliderCommitted as ct } from "./slider/slider.types.js";
|
|
49
|
-
import "./slider/index.js";
|
|
50
|
-
import { PI_SLIDER_VALUE_CARD as lt, SliderValue as ut } from "./sliderValue/sliderValue.types.js";
|
|
51
|
-
import "./sliderValue/index.js";
|
|
52
|
-
import { STACK_CARD as dt, Stack as ft } from "./stack/stack.types.js";
|
|
53
|
-
import "./stack/index.js";
|
|
54
|
-
import { STEPPER_ACTION as pt, STEPPER_CARD as mt, Stepper as ht, onStepperStepClicked as gt } from "./stepper/stepper.types.js";
|
|
55
|
-
import "./stepper/index.js";
|
|
56
|
-
import { PI_SWITCH_ACTION as _t, PI_SWITCH_CARD as vt, Switch as yt, onPiSwitchChanged as bt, onSwitchChanged as xt } from "./switch/switch.types.js";
|
|
57
|
-
import "./switch/index.js";
|
|
58
|
-
import { SdTabs as St, TABS_ACTION as Ct, TABS_CARD as wt, Tabs as Tt, onTabsTabChanged as Et } from "./tabs/tabs.types.js";
|
|
59
|
-
import "./tabs/index.js";
|
|
60
|
-
import { PI_TEXT_FIELD_ACTION as Dt, PI_TEXT_FIELD_CARD as Ot, TextField as kt, onPiTextFieldChanged as At, onTextFieldChanged as jt } from "./textField/textField.types.js";
|
|
61
|
-
import "./textField/index.js";
|
|
62
|
-
import { PI_TOAST_ACTION as Mt, PI_TOAST_CARD as Nt, TOAST_OP_ACTION as Pt, Toast as Ft, dispatchShowToast as It, onPiToastClosed as Lt, onShowToast as Rt, onToastClosed as zt } from "./toast/toast.types.js";
|
|
63
|
-
import "./toast/index.js";
|
|
64
|
-
import { PI_TOGGLE_GROUP_ACTION as Bt, PI_TOGGLE_GROUP_CARD as Vt, ToggleGroup as Ht, onPiToggleGroupChanged as Ut, onToggleGroupChanged as Wt } from "./toggleGroup/toggleGroup.types.js";
|
|
65
|
-
import "./toggleGroup/index.js";
|
|
66
|
-
import { TYPOGRAPHY_CARD as Gt, Typography as Kt } from "./typography/typography.types.js";
|
|
67
|
-
import "./typography/index.js";
|
|
68
|
-
export { e as BADGE_CARD, n as BOX_CARD, r as Box, i as Button, g as CONDITIONAL_CARD, d as Checkbox, _ as Conditional, v as DATA_TABLE_ACTION, y as DATA_TABLE_CARD, b as DATA_TABLE_ROW_DETAIL_CARD, Fe as DEF_ERROR_COLOR, Ie as DEF_EVENT_DURATION_SECONDS, B as DEF_FILE_DROP_FILE_TYPES, Le as DEF_HEIGHT, Re as DEF_OVERLAY_OPACITY, ze as DEF_PASTE_FIRST_REMINDER, Be as DEF_PASTE_TARGET_FILE_TYPES, Ve as DEF_SUCCESS_COLOR, P as DROP_DOWN_MENU_ACTION, F as DROP_DOWN_MENU_CARD, x as DataTable, S as DataTableRowDetail, O as Dialog, I as DropDownMenu, V as FILE_DROP_ACTION, H as FILE_DROP_CARD, q as FLEX_GRID_CARD, R as Field, U as FileDrop, J as FlexGrid, Y as Form, l as FormContext, ce as LIST_ACTION, le as LIST_CARD, fe as LOADING_OVERLAY_CARD, me as LOADING_SKELETON_CARD, ue as List, pe as LoadingOverlay, he as LoadingSkeleton, ge as MENU_ACTION, _e as MENU_CARD, be as MODE_TOGGLE_ACTION, xe as MODE_TOGGLE_CARD, ve as Menu, Se as ModeToggle, we as NAVBAR_SEARCH_ACTION, Te as NAVBAR_SEARCH_CARD, Ee as NavbarSearch, Ae as PAGE_WITH_NAVBAR_ACTION, je as PAGE_WITH_NAVBAR_CARD, He as PASTE_TARGET_ACTION, Ue as PASTE_TARGET_CARD, a as PI_BUTTON_ACTION, o as PI_BUTTON_CARD, f as PI_CHECKBOX_ACTION, p as PI_CHECKBOX_CARD, k as PI_DIALOG_ACTION, A as PI_DIALOG_CARD, z as PI_FIELD_CARD, X as PI_FORM_ACTION, Z as PI_FORM_CARD, te as PI_INPUT_ACTION, ne as PI_INPUT_CARD, qe as PI_SELECT_ACTION, Je as PI_SELECT_CARD, nt as PI_SLIDER_ACTION, rt as PI_SLIDER_CARD, lt as PI_SLIDER_VALUE_CARD, _t as PI_SWITCH_ACTION, vt as PI_SWITCH_CARD, Dt as PI_TEXT_FIELD_ACTION, Ot as PI_TEXT_FIELD_CARD, Mt as PI_TOAST_ACTION, Nt as PI_TOAST_CARD, Bt as PI_TOGGLE_GROUP_ACTION, Vt as PI_TOGGLE_GROUP_CARD, Me as PageWithNavbar, We as PasteTarget, re as PiInput, dt as STACK_CARD, pt as STEPPER_ACTION, mt as STEPPER_CARD, ee as SdFramework, Pe as SdPageWithNavbar, St as SdTabs, Ye as Select, t as ShadBadge, it as Slider, ut as SliderValue, ft as Stack, ht as Stepper, yt as Switch, Ct as TABS_ACTION, wt as TABS_CARD, Pt as TOAST_OP_ACTION, Gt as TYPOGRAPHY_CARD, Tt as Tabs, kt as TextField, Ft as Toast, Ht as ToggleGroup, Kt as Typography, It as dispatchShowToast, K as get_last_dropped, s as onButtonClicked, m as onCheckboxChanged, Ge as onContentPasted, C as onDataTableHideDetail, w as onDataTablePageChanged, T as onDataTableRowClicked, E as onDataTableShowDetail, D as onDataTableSortChanged, j as onDialogClosed, M as onDialogOpenChanged, N as onDialogOpened, L as onDropDownMenuClicked, W as onFileDropError, G as onFileDropped, Q as onFormSubmitted, ie as onInputChanged, ae as onInputCommitted, de as onListItemClicked, ye as onMenuClicked, Ce as onModeToggleChanged, De as onNavbarSearchFocus, Oe as onNavbarSearchItems, ke as onNavbarSearchSubmit, Ne as onPageWithNavbarNavigateTo, Ke as onPasteError, c as onPiButtonClicked, h as onPiCheckboxChanged, $ as onPiFormSubmitted, oe as onPiInputChanged, se as onPiInputCommitted, Xe as onPiSelectChanged, Ze as onPiSelectClosed, Qe as onPiSelectOpened, at as onPiSliderChanged, ot as onPiSliderCommitted, bt as onPiSwitchChanged, At as onPiTextFieldChanged, Lt as onPiToastClosed, Ut as onPiToggleGroupChanged, $e as onSelectChanged, et as onSelectClosed, tt as onSelectOpened, Rt as onShowToast, st as onSliderChanged, ct as onSliderCommitted, gt as onStepperStepClicked, xt as onSwitchChanged, Et as onTabsTabChanged, jt as onTextFieldChanged, zt as onToastClosed, Wt as onToggleGroupChanged, u as useFormContext };
|