@caseparts-org/caseblocks 0.0.249 → 0.0.251
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/Table-f_q_CCA-.js +187 -0
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/atoms/Pill/Pill.d.ts +3 -2
- package/dist/atoms/Pill/Pill.js +29 -26
- package/dist/atoms/Select/Select.js +53 -42
- package/dist/main-client.js +1 -1
- package/dist/molecules/CustomWizardBadge/CustomWizardBadge.d.ts +3 -2
- package/dist/molecules/CustomWizardBadge/CustomWizardBadge.js +23 -22
- package/dist/molecules/Disclaimer/Disclaimer.d.ts +11 -10
- package/dist/molecules/Disclaimer/Disclaimer.js +44 -41
- package/dist/molecules/Disclaimer/Disclaimer.stories.d.ts +5 -5
- package/dist/molecules/Error/Error.d.ts +4 -3
- package/dist/molecules/Error/Error.js +104 -101
- package/dist/molecules/Modal/Modal.js +28 -28
- package/dist/molecules/Table/Table.d.ts +7 -4
- package/dist/molecules/Table/Table.js +4 -3
- package/dist/molecules/Table/Table.stories.js +1 -1
- package/package.json +1 -1
- package/dist/Table-BX4PtCNE.js +0 -178
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Icon as b } from "../../atoms/Icon/Icon.js";
|
|
4
|
+
import { getHideAtStyles as i } from "../../atoms/HideAt.js";
|
|
5
|
+
import '../../assets/Disclaimer.css';const u = "_disclaimer_1bxdj_1", l = "_content_1bxdj_12", m = "_primary_1bxdj_26", x = "_subtext_1bxdj_27", g = "_icon_1bxdj_31", f = "_cta_1bxdj_46", c = {
|
|
6
|
+
disclaimer: u,
|
|
7
|
+
content: l,
|
|
7
8
|
"layout-stacked": "_layout-stacked_1bxdj_20",
|
|
8
|
-
primary:
|
|
9
|
-
subtext:
|
|
10
|
-
icon:
|
|
11
|
-
cta:
|
|
9
|
+
primary: m,
|
|
10
|
+
subtext: x,
|
|
11
|
+
icon: g,
|
|
12
|
+
cta: f,
|
|
12
13
|
"background-neutral": "_background-neutral_1bxdj_50",
|
|
13
14
|
"background-secondary": "_background-secondary_1bxdj_54",
|
|
14
15
|
"background-caution-tips": "_background-caution-tips_1bxdj_58",
|
|
@@ -21,59 +22,61 @@ import '../../assets/Disclaimer.css';const _ = "_disclaimer_1bxdj_1", b = "_cont
|
|
|
21
22
|
"border-warning": "_border-warning_1bxdj_86",
|
|
22
23
|
"border-success": "_border-success_1bxdj_90",
|
|
23
24
|
"border-error-warning": "_border-error-warning_1bxdj_94"
|
|
24
|
-
},
|
|
25
|
+
}, j = {
|
|
25
26
|
info: "fa-solid fa-circle-info",
|
|
26
27
|
question: "fa-solid fa-circle-question",
|
|
27
28
|
warning: "fa-solid fa-triangle-exclamation",
|
|
28
29
|
security: "fa-solid fa-shield",
|
|
29
30
|
lock: "fa-solid fa-lock"
|
|
30
31
|
};
|
|
31
|
-
function
|
|
32
|
+
function k({
|
|
32
33
|
backgroundColorToken: r = "neutral",
|
|
33
34
|
borderColorToken: n = "neutral",
|
|
34
35
|
layout: o = "stacked",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
hideAt: a,
|
|
37
|
+
className: s,
|
|
38
|
+
children: d,
|
|
39
|
+
..._
|
|
38
40
|
}) {
|
|
39
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ e(
|
|
40
42
|
"aside",
|
|
41
43
|
{
|
|
42
|
-
...
|
|
43
|
-
className:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
..._,
|
|
45
|
+
className: t(
|
|
46
|
+
c.disclaimer,
|
|
47
|
+
c[`background-${r}`],
|
|
48
|
+
c[`border-${n}`],
|
|
49
|
+
c[`layout-${o}`],
|
|
50
|
+
i(a),
|
|
51
|
+
s
|
|
49
52
|
),
|
|
50
53
|
role: "note",
|
|
51
|
-
children:
|
|
54
|
+
children: d
|
|
52
55
|
}
|
|
53
56
|
);
|
|
54
57
|
}
|
|
55
|
-
function
|
|
56
|
-
return /* @__PURE__ */
|
|
58
|
+
function y({ hideAt: r, className: n, children: o, ...a }) {
|
|
59
|
+
return /* @__PURE__ */ e("div", { ...a, className: t(c.content, i(r), n), children: o });
|
|
57
60
|
}
|
|
58
|
-
function
|
|
59
|
-
return /* @__PURE__ */
|
|
61
|
+
function p({ icon: r = "info", iconKey: n, className: o, ...a }) {
|
|
62
|
+
return /* @__PURE__ */ e(b, { ...a, iconKey: n ?? j[r], className: t(c.icon, o) });
|
|
60
63
|
}
|
|
61
|
-
function
|
|
62
|
-
return /* @__PURE__ */
|
|
64
|
+
function w({ hideAt: r, className: n, children: o, ...a }) {
|
|
65
|
+
return /* @__PURE__ */ e("span", { ...a, className: t(c.primary, i(r), n), children: o });
|
|
63
66
|
}
|
|
64
|
-
function
|
|
65
|
-
return /* @__PURE__ */
|
|
67
|
+
function D({ hideAt: r, className: n, children: o, ...a }) {
|
|
68
|
+
return /* @__PURE__ */ e("span", { ...a, className: t(c.subtext, i(r), n), children: o });
|
|
66
69
|
}
|
|
67
|
-
function
|
|
68
|
-
return /* @__PURE__ */
|
|
70
|
+
function N({ hideAt: r, className: n, children: o, ...a }) {
|
|
71
|
+
return /* @__PURE__ */ e("div", { ...a, className: t(c.cta, i(r), n), children: o });
|
|
69
72
|
}
|
|
70
|
-
const
|
|
71
|
-
Content:
|
|
72
|
-
Icon:
|
|
73
|
-
Primary:
|
|
74
|
-
Subtext:
|
|
75
|
-
CTA:
|
|
73
|
+
const $ = Object.assign(k, {
|
|
74
|
+
Content: y,
|
|
75
|
+
Icon: p,
|
|
76
|
+
Primary: w,
|
|
77
|
+
Subtext: D,
|
|
78
|
+
CTA: N
|
|
76
79
|
});
|
|
77
80
|
export {
|
|
78
|
-
|
|
81
|
+
$ as Disclaimer
|
|
79
82
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (({ backgroundColorToken, borderColorToken, layout, className, children, ...otherProps }: import('./Disclaimer').DisclaimerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
-
Content: ({ className, children, ...otherProps }: import('./Disclaimer').DisclaimerContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: (({ backgroundColorToken, borderColorToken, layout, hideAt, className, children, ...otherProps }: import('./Disclaimer').DisclaimerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
5
|
+
Content: ({ hideAt, className, children, ...otherProps }: import('./Disclaimer').DisclaimerContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Icon: ({ icon, iconKey, className, ...otherProps }: import('./Disclaimer').DisclaimerIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
Primary: ({ className, children, ...otherProps }: import('./Disclaimer').DisclaimerPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
Subtext: ({ className, children, ...otherProps }: import('./Disclaimer').DisclaimerSubtextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
CTA: ({ className, children, ...otherProps }: import('./Disclaimer').DisclaimerCTAProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Primary: ({ hideAt, className, children, ...otherProps }: import('./Disclaimer').DisclaimerPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Subtext: ({ hideAt, className, children, ...otherProps }: import('./Disclaimer').DisclaimerSubtextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
CTA: ({ hideAt, className, children, ...otherProps }: import('./Disclaimer').DisclaimerCTAProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
};
|
|
11
11
|
tags: string[];
|
|
12
12
|
parameters: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { HideAtProps } from '../../atoms/HideAt';
|
|
2
3
|
import { TextProps } from '../../atoms/Text/Text';
|
|
3
|
-
export interface ErrorProps {
|
|
4
|
+
export interface ErrorProps extends HideAtProps {
|
|
4
5
|
isVisible?: boolean;
|
|
5
6
|
className?: string;
|
|
6
7
|
children?: ReactNode;
|
|
@@ -18,12 +19,12 @@ export interface ErrorMessageProps {
|
|
|
18
19
|
className?: string;
|
|
19
20
|
children?: ReactNode;
|
|
20
21
|
}
|
|
21
|
-
export interface ErrorDetailsProps extends React.HTMLAttributes<HTMLDivElement
|
|
22
|
+
export interface ErrorDetailsProps extends React.HTMLAttributes<HTMLDivElement>, HideAtProps {
|
|
22
23
|
children?: ReactNode;
|
|
23
24
|
hide?: boolean;
|
|
24
25
|
}
|
|
25
26
|
declare function ErrorMessage({ as, size, variant, weight, colorToken, hideAt, className, children, }: ErrorMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
declare function ErrorDetails({ children, hide, ...otherProps }: ErrorDetailsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
declare function ErrorDetails({ children, hide, hideAt, className, ...otherProps }: ErrorDetailsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
28
|
interface ErrorComponent extends React.FC<ErrorProps> {
|
|
28
29
|
Message: typeof ErrorMessage;
|
|
29
30
|
Details: typeof ErrorDetails;
|
|
@@ -1,171 +1,174 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsx as r, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import g, { useState as N, useEffect as E } from "react";
|
|
3
|
+
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { getHideAtStyles as H } from "../../atoms/HideAt.js";
|
|
5
|
+
import { Icon as y } from "../../atoms/Icon/Icon.js";
|
|
6
|
+
import { Text as Y } from "../../atoms/Text/Text.js";
|
|
7
|
+
import '../../assets/Error.css';const G = "_error_9tpem_1", J = "_variantError_9tpem_16", P = "_variantWarning_9tpem_21", Q = "_variantDefault_9tpem_26", X = "_errorHeader_9tpem_31", Z = "_errorHeaderContent_9tpem_40", ee = "_detailsToggleButton_9tpem_48", te = "_detailsChevron_9tpem_66", re = "_detailsChevronOpen_9tpem_74", ne = "_errorDetails_9tpem_78", oe = "_errorDetailsContent_9tpem_94", ae = "_copyButton_9tpem_99", se = "_copyIcon_9tpem_114", ie = "_checkIcon_9tpem_115", le = "_hiddenIcon_9tpem_122", t = {
|
|
8
|
+
error: G,
|
|
9
|
+
variantError: J,
|
|
10
|
+
variantWarning: P,
|
|
11
|
+
variantDefault: Q,
|
|
12
|
+
errorHeader: X,
|
|
13
|
+
errorHeaderContent: Z,
|
|
14
|
+
detailsToggleButton: ee,
|
|
15
|
+
detailsChevron: te,
|
|
16
|
+
detailsChevronOpen: re,
|
|
17
|
+
errorDetails: ne,
|
|
18
|
+
errorDetailsContent: oe,
|
|
19
|
+
copyButton: ae,
|
|
20
|
+
copyIcon: se,
|
|
21
|
+
checkIcon: ie,
|
|
22
|
+
hiddenIcon: le
|
|
22
23
|
};
|
|
23
|
-
function
|
|
24
|
+
function b({
|
|
24
25
|
as: n,
|
|
25
|
-
size:
|
|
26
|
-
variant:
|
|
27
|
-
weight:
|
|
28
|
-
colorToken:
|
|
29
|
-
hideAt:
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
26
|
+
size: i = "md",
|
|
27
|
+
variant: l = "body",
|
|
28
|
+
weight: c = "regular",
|
|
29
|
+
colorToken: d = "inherit",
|
|
30
|
+
hideAt: u,
|
|
31
|
+
className: a,
|
|
32
|
+
children: S
|
|
32
33
|
}) {
|
|
33
34
|
return /* @__PURE__ */ r(
|
|
34
|
-
|
|
35
|
+
Y,
|
|
35
36
|
{
|
|
36
37
|
as: n,
|
|
37
|
-
size:
|
|
38
|
-
variant:
|
|
39
|
-
weight:
|
|
40
|
-
colorToken:
|
|
41
|
-
hideAt:
|
|
42
|
-
className:
|
|
43
|
-
children:
|
|
38
|
+
size: i,
|
|
39
|
+
variant: l,
|
|
40
|
+
weight: c,
|
|
41
|
+
colorToken: d,
|
|
42
|
+
hideAt: u,
|
|
43
|
+
className: a,
|
|
44
|
+
children: S
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
48
|
+
function z({ children: n, hide: i, hideAt: l, className: c, ...d }) {
|
|
49
|
+
return i ? null : /* @__PURE__ */ r("div", { ...d, className: s(H(l), c), children: n });
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
51
|
+
function O(n) {
|
|
52
|
+
return g.isValidElement(n) && n.type === b;
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
54
|
+
function M(n) {
|
|
55
|
+
return g.isValidElement(n) && n.type === z;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function ce({
|
|
57
58
|
isVisible: n = !0,
|
|
58
|
-
className:
|
|
59
|
-
children:
|
|
60
|
-
hideDetails:
|
|
61
|
-
|
|
59
|
+
className: i,
|
|
60
|
+
children: l,
|
|
61
|
+
hideDetails: c = !1,
|
|
62
|
+
hideAt: d,
|
|
63
|
+
detailsMaxHeight: u = 300,
|
|
62
64
|
variant: a = "error"
|
|
63
65
|
}) {
|
|
64
|
-
const [o,
|
|
65
|
-
(e) =>
|
|
66
|
-
), x =
|
|
67
|
-
(e) => !
|
|
68
|
-
),
|
|
69
|
-
children:
|
|
70
|
-
hide:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
const [o, C] = N(!1), [v, D] = N(!1), [m, T] = N(!1), I = g.Children.toArray(l), k = I.find(
|
|
67
|
+
(e) => M(e) && !e.props.hide
|
|
68
|
+
), x = I.find(O), A = I.filter(
|
|
69
|
+
(e) => !M(e) && !O(e)
|
|
70
|
+
), B = x ? /* @__PURE__ */ r(b, { ...x.props }) : A.length > 0 ? A : null, h = c || !k ? null : k.props, p = h == null ? void 0 : h.children, f = p != null && p !== !1, {
|
|
71
|
+
children: de,
|
|
72
|
+
hide: ue,
|
|
73
|
+
hideAt: R,
|
|
74
|
+
className: j,
|
|
75
|
+
style: K,
|
|
76
|
+
...V
|
|
77
|
+
} = h ?? {};
|
|
78
|
+
if (E(() => {
|
|
79
|
+
f || (C(!1), D(!1));
|
|
80
|
+
}, [f]), E(() => {
|
|
81
|
+
if (o || !v)
|
|
79
82
|
return;
|
|
80
|
-
const e = window.setTimeout(() =>
|
|
83
|
+
const e = window.setTimeout(() => D(!1), 280);
|
|
81
84
|
return () => window.clearTimeout(e);
|
|
82
|
-
}, [o,
|
|
83
|
-
if (!
|
|
85
|
+
}, [o, v]), E(() => {
|
|
86
|
+
if (!m)
|
|
84
87
|
return;
|
|
85
|
-
const e = window.setTimeout(() =>
|
|
88
|
+
const e = window.setTimeout(() => T(!1), 1500);
|
|
86
89
|
return () => window.clearTimeout(e);
|
|
87
|
-
}, [
|
|
90
|
+
}, [m]), !n || !B)
|
|
88
91
|
return null;
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
92
|
+
const W = t[`variant${a[0].toUpperCase()}${a.slice(1)}`], $ = a === "warning" ? "warning" : a === "default" ? "default" : "error-warning", L = typeof u == "number" ? `${u}px` : u, w = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map((U) => w(U)).join("") : g.isValidElement(e) ? w(e.props.children) : "", q = async () => {
|
|
93
|
+
if (!f)
|
|
91
94
|
return;
|
|
92
|
-
const e =
|
|
95
|
+
const e = w(p);
|
|
93
96
|
if (e.trim())
|
|
94
97
|
try {
|
|
95
|
-
await navigator.clipboard.writeText(e),
|
|
98
|
+
await navigator.clipboard.writeText(e), T(!0);
|
|
96
99
|
} catch {
|
|
97
|
-
|
|
100
|
+
T(!1);
|
|
98
101
|
}
|
|
99
|
-
},
|
|
102
|
+
}, F = () => {
|
|
100
103
|
if (o) {
|
|
101
|
-
|
|
104
|
+
C(!1);
|
|
102
105
|
return;
|
|
103
106
|
}
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
D(!0), window.requestAnimationFrame(() => {
|
|
108
|
+
C(!0);
|
|
106
109
|
});
|
|
107
110
|
};
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
+
return /* @__PURE__ */ _("div", { className: s(t.error, W, H(d), i), children: [
|
|
112
|
+
/* @__PURE__ */ _("div", { className: t.errorHeader, children: [
|
|
113
|
+
/* @__PURE__ */ _("div", { className: t.errorHeaderContent, children: [
|
|
111
114
|
/* @__PURE__ */ r(
|
|
112
|
-
|
|
115
|
+
y,
|
|
113
116
|
{
|
|
114
117
|
iconKey: "fa-solid fa-triangle-exclamation",
|
|
115
118
|
size: "md",
|
|
116
|
-
colorToken:
|
|
119
|
+
colorToken: $
|
|
117
120
|
}
|
|
118
121
|
),
|
|
119
|
-
|
|
122
|
+
B
|
|
120
123
|
] }),
|
|
121
|
-
|
|
124
|
+
f && /* @__PURE__ */ r(
|
|
122
125
|
"button",
|
|
123
126
|
{
|
|
124
127
|
type: "button",
|
|
125
128
|
className: t.detailsToggleButton,
|
|
126
129
|
"aria-label": o ? "Hide details" : "Show details",
|
|
127
130
|
title: o ? "Hide details" : "Show details",
|
|
128
|
-
onClick:
|
|
129
|
-
children: /* @__PURE__ */ r("span", { className:
|
|
131
|
+
onClick: F,
|
|
132
|
+
children: /* @__PURE__ */ r("span", { className: s(t.detailsChevron, o && t.detailsChevronOpen), children: /* @__PURE__ */ r(y, { iconKey: "fa-light fa-chevron-down", size: "sm", colorToken: "default" }) })
|
|
130
133
|
}
|
|
131
134
|
)
|
|
132
135
|
] }),
|
|
133
|
-
|
|
136
|
+
f && v && /* @__PURE__ */ _(
|
|
134
137
|
"div",
|
|
135
138
|
{
|
|
136
|
-
className:
|
|
139
|
+
className: s(t.errorDetails, H(R), j),
|
|
137
140
|
style: {
|
|
138
|
-
...
|
|
139
|
-
maxHeight: o ?
|
|
141
|
+
...K,
|
|
142
|
+
maxHeight: o ? L : "0px",
|
|
140
143
|
opacity: o ? 1 : 0,
|
|
141
144
|
overflowY: o ? "auto" : "hidden"
|
|
142
145
|
},
|
|
143
|
-
...
|
|
146
|
+
...V,
|
|
144
147
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ _(
|
|
146
149
|
"button",
|
|
147
150
|
{
|
|
148
151
|
type: "button",
|
|
149
152
|
className: t.copyButton,
|
|
150
153
|
"aria-label": "Copy error details",
|
|
151
|
-
title:
|
|
152
|
-
onClick:
|
|
154
|
+
title: m ? "Copied" : "Copy details",
|
|
155
|
+
onClick: q,
|
|
153
156
|
children: [
|
|
154
|
-
/* @__PURE__ */ r("span", { className:
|
|
155
|
-
/* @__PURE__ */ r("span", { className:
|
|
157
|
+
/* @__PURE__ */ r("span", { className: s(t.copyIcon, m && t.hiddenIcon), children: /* @__PURE__ */ r(y, { iconKey: "fa-regular fa-copy", size: "sm", colorToken: "default" }) }),
|
|
158
|
+
/* @__PURE__ */ r("span", { className: s(t.checkIcon, !m && t.hiddenIcon), children: /* @__PURE__ */ r(y, { iconKey: "fa-regular fa-check", size: "sm", colorToken: "default" }) })
|
|
156
159
|
]
|
|
157
160
|
}
|
|
158
161
|
),
|
|
159
|
-
/* @__PURE__ */ r("div", { className: t.errorDetailsContent, children:
|
|
162
|
+
/* @__PURE__ */ r("div", { className: t.errorDetailsContent, children: p })
|
|
160
163
|
]
|
|
161
164
|
}
|
|
162
165
|
)
|
|
163
166
|
] });
|
|
164
167
|
}
|
|
165
|
-
const
|
|
166
|
-
Message:
|
|
167
|
-
Details:
|
|
168
|
+
const ge = Object.assign(ce, {
|
|
169
|
+
Message: b,
|
|
170
|
+
Details: z
|
|
168
171
|
});
|
|
169
172
|
export {
|
|
170
|
-
|
|
173
|
+
ge as Error
|
|
171
174
|
};
|
|
@@ -2,15 +2,15 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Text as h } from "../../atoms/Text/Text.js";
|
|
5
|
-
import { Icon as
|
|
6
|
-
import '../../assets/Modal.css';const
|
|
7
|
-
overlay:
|
|
5
|
+
import { Icon as b } from "../../atoms/Icon/Icon.js";
|
|
6
|
+
import '../../assets/Modal.css';const p = "_overlay_62mbc_1", g = "_container_62mbc_11", v = "_toolbar_62mbc_30", y = "_toolbarPlain_62mbc_47", T = "_headerGroup_62mbc_52", x = "_headerLeft_62mbc_60", z = "_headerRight_62mbc_64", B = "_closeButton_62mbc_68", M = "_content_62mbc_87", r = {
|
|
7
|
+
overlay: p,
|
|
8
8
|
container: g,
|
|
9
|
-
toolbar:
|
|
10
|
-
toolbarPlain:
|
|
11
|
-
headerGroup:
|
|
12
|
-
headerLeft:
|
|
13
|
-
headerRight:
|
|
9
|
+
toolbar: v,
|
|
10
|
+
toolbarPlain: y,
|
|
11
|
+
headerGroup: T,
|
|
12
|
+
headerLeft: x,
|
|
13
|
+
headerRight: z,
|
|
14
14
|
closeButton: B,
|
|
15
15
|
content: M
|
|
16
16
|
}, N = {
|
|
@@ -25,13 +25,13 @@ import '../../assets/Modal.css';const z = "_overlay_1n58z_1", g = "_container_1n
|
|
|
25
25
|
isOpen: t,
|
|
26
26
|
onClose: o,
|
|
27
27
|
closeOnOverlayClick: e = !0,
|
|
28
|
-
className:
|
|
29
|
-
children:
|
|
30
|
-
...
|
|
28
|
+
className: c,
|
|
29
|
+
children: l,
|
|
30
|
+
...m
|
|
31
31
|
}) => {
|
|
32
32
|
const a = f.useRef(!1);
|
|
33
33
|
if (!t) return null;
|
|
34
|
-
const
|
|
34
|
+
const u = (d) => {
|
|
35
35
|
e && (a.current = d.target === d.currentTarget);
|
|
36
36
|
}, _ = (d) => {
|
|
37
37
|
if (!e) {
|
|
@@ -40,36 +40,36 @@ import '../../assets/Modal.css';const z = "_overlay_1n58z_1", g = "_container_1n
|
|
|
40
40
|
}
|
|
41
41
|
a.current && d.target === d.currentTarget && o(), a.current = !1;
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ n("div", { className: s(r.overlay), onMouseDown:
|
|
44
|
-
},
|
|
43
|
+
return /* @__PURE__ */ n("div", { className: s(r.overlay), onMouseDown: u, onMouseUp: _, children: /* @__PURE__ */ n("div", { className: s(r.container, c), role: "dialog", "aria-modal": "true", ...m, children: l }) });
|
|
44
|
+
}, w = ({ variant: t = "standard", className: o, children: e, ...c }) => /* @__PURE__ */ n(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: s(r.toolbar, t === "plain" && r.toolbarPlain, o),
|
|
48
|
-
...
|
|
48
|
+
...c,
|
|
49
49
|
children: e
|
|
50
50
|
}
|
|
51
|
-
),
|
|
51
|
+
), C = ({
|
|
52
52
|
align: t = "left",
|
|
53
53
|
size: o = "md",
|
|
54
54
|
variant: e = "display",
|
|
55
|
-
className:
|
|
56
|
-
children:
|
|
57
|
-
...
|
|
55
|
+
className: c,
|
|
56
|
+
children: l,
|
|
57
|
+
...m
|
|
58
58
|
}) => {
|
|
59
|
-
const a = typeof
|
|
59
|
+
const a = typeof l == "string";
|
|
60
60
|
return /* @__PURE__ */ n(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
|
-
className: s(r.headerGroup, t === "left" ? r.headerLeft : r.headerRight,
|
|
64
|
-
...
|
|
65
|
-
children: a ? /* @__PURE__ */ n(h, { as: "div", size: N[o], variant: e, children:
|
|
63
|
+
className: s(r.headerGroup, t === "left" ? r.headerLeft : r.headerRight, c),
|
|
64
|
+
...m,
|
|
65
|
+
children: a ? /* @__PURE__ */ n(h, { as: "div", size: N[o], variant: e, weight: "medium", children: l }) : l
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
|
-
},
|
|
69
|
-
i.Toolbar =
|
|
70
|
-
i.Header =
|
|
71
|
-
i.CloseButton =
|
|
72
|
-
i.Content =
|
|
68
|
+
}, G = ({ size: t = "md", className: o, ...e }) => /* @__PURE__ */ n("button", { type: "button", className: s(r.closeButton, o), "aria-label": "Close", ...e, children: /* @__PURE__ */ n(b, { iconKey: "fa-regular fa-xmark", size: R[t] }) }), L = ({ className: t, children: o, ...e }) => /* @__PURE__ */ n("div", { className: s(r.content, t), ...e, children: o });
|
|
69
|
+
i.Toolbar = w;
|
|
70
|
+
i.Header = C;
|
|
71
|
+
i.CloseButton = G;
|
|
72
|
+
i.Content = L;
|
|
73
73
|
export {
|
|
74
74
|
i as Modal
|
|
75
75
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HideAtProps } from '../../atoms/HideAt';
|
|
2
3
|
export type TableAlign = 'left' | 'center' | 'right';
|
|
3
|
-
export interface TableProps extends React.HTMLAttributes<HTMLTableElement
|
|
4
|
+
export interface TableProps extends React.HTMLAttributes<HTMLTableElement>, HideAtProps {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
/** When true, applies alternating row background styling */
|
|
7
8
|
alternatingRows?: boolean;
|
|
9
|
+
/** When true, renders a border around the table */
|
|
10
|
+
bordered?: boolean;
|
|
8
11
|
/** Enables sortable headers with click handlers */
|
|
9
12
|
isSortable?: boolean;
|
|
10
13
|
/** Current sort field identifier (consumer-defined) */
|
|
@@ -16,10 +19,10 @@ export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
16
19
|
/** Header click handler to trigger consumer-side sorting */
|
|
17
20
|
onSort?: (_sortField: string, _sortFieldKey?: string | number) => void;
|
|
18
21
|
}
|
|
19
|
-
export interface ColumnsProps {
|
|
22
|
+
export interface ColumnsProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
20
23
|
children: React.ReactNode;
|
|
21
24
|
}
|
|
22
|
-
export interface ColumnProps extends React.ThHTMLAttributes<HTMLTableCellElement
|
|
25
|
+
export interface ColumnProps extends React.ThHTMLAttributes<HTMLTableCellElement>, HideAtProps {
|
|
23
26
|
children: React.ReactNode;
|
|
24
27
|
align?: TableAlign;
|
|
25
28
|
colSpan?: number;
|
|
@@ -39,7 +42,7 @@ export interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
|
39
42
|
/** Marks this row as expanded content (detail row) */
|
|
40
43
|
isExpandedContent?: boolean;
|
|
41
44
|
}
|
|
42
|
-
export interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement
|
|
45
|
+
export interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement>, HideAtProps {
|
|
43
46
|
children: React.ReactNode;
|
|
44
47
|
align?: TableAlign;
|
|
45
48
|
colSpan?: number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import
|
|
4
|
+
import "../../atoms/HideAt.js";
|
|
5
|
+
import { T as e, T } from "../../Table-f_q_CCA-.js";
|
|
5
6
|
import "../../atoms/Icon/Icon.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
e as Table,
|
|
9
|
+
T as default
|
|
9
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import R, { useState as d, useEffect as P } from "react";
|
|
3
|
-
import { T as t, s as x } from "../../Table-
|
|
3
|
+
import { T as t, s as x } from "../../Table-f_q_CCA-.js";
|
|
4
4
|
const v = {
|
|
5
5
|
title: "Case Parts/Molecules/Table",
|
|
6
6
|
component: t,
|