quirk-ui 0.0.15 → 0.0.17
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/assets/index14.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/components/Accordion/Accordion.test.js +2 -2
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/Alert/Alert.test.js +2 -2
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/Avatar.test.js +2 -2
- package/dist/components/Avatar/index.js +8 -2
- package/dist/components/Badge/Badge.test.js +2 -2
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Box/Box.test.js +2 -2
- package/dist/components/Box/index.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.test.js +2 -2
- package/dist/components/Button/Button.test.js +2 -2
- package/dist/components/Button/index.js +20 -13
- package/dist/components/ButtonGroup/ButtonGroup.test.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Calendar/Calendar.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/Carousel.test.js +2 -2
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Container/Container.test.js +2 -2
- package/dist/components/Container/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.test.js +2 -2
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/Divider.test.js +2 -2
- package/dist/components/Divider/index.js +7 -1
- package/dist/components/Drawer/Drawer.test.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.test.js +2 -2
- package/dist/components/Fieldset/index.js +11 -4
- package/dist/components/FileUpload/FileUpload.test.js +2 -2
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/FloatingActionButton/FloatingActionButton.test.js +2 -2
- package/dist/components/FloatingActionButton/index.js +1 -1
- package/dist/components/Form/Form.test.js +2 -2
- package/dist/components/Grid/Grid.test.js +2 -2
- package/dist/components/Grid/index.js +1 -1
- package/dist/components/Heading/Heading.test.js +2 -2
- package/dist/components/Heading/index.js +1 -1
- package/dist/components/IconButton/IconButton.test.js +2 -2
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/Input/Input.test.js +2 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Link/Link.test.js +2 -2
- package/dist/components/List/List.test.js +1 -1
- package/dist/components/List/index.js +2 -2
- package/dist/components/Modal/Modal.test.js +1 -1
- package/dist/components/Modal/index.js +10 -2
- package/dist/components/MultiSelect/MultiSelect.test.js +2 -2
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/NavBar/NavBar.test.js +1 -1
- package/dist/components/NavBar/index.js +24 -24
- package/dist/components/Notification/Notification.test.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/NotificationContainer/NotificationContainer.test.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.test.js +1 -1
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/Radio/Radio.test.js +2 -2
- package/dist/components/Radio/index.js +11 -2
- package/dist/components/Range/Range.test.js +2 -2
- package/dist/components/Range/index.js +1 -1
- package/dist/components/Select/Select.test.js +2 -2
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.test.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Spacer/Spacer.test.js +2 -2
- package/dist/components/Spacer/index.js +7 -1
- package/dist/components/Spinner/Spinner.test.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Stack/Stack.test.js +2 -2
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/Switch/Switch.test.js +2 -2
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/Table.test.js +2 -2
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Tabs.test.js +2 -2
- package/dist/components/Text/Text.test.js +2 -2
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Textarea/Textarea.test.js +2 -2
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.test.js +2 -2
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/{index-Cm3oD894.js → index-Bb02nmpl.js} +1 -1
- package/dist/utils/NotificationManager/NotificationManager.test.js +1 -1
- package/dist/vi.ClIskdbk-Z9moXFkA.js +47318 -0
- package/package.json +1 -1
- package/dist/vi.ClIskdbk-CZUVUGZN.js +0 -41967
package/dist/assets/index14.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_1avxf_1{border-radius:var(--radius-md);border:1px solid transparent;padding:var(--spacing-sm) var(--spacing-md);font-size:var(--font-size-md);font-weight:var(--font-weight-bold);font-family:inherit;background-color:var(--color-primary);cursor:pointer;transition:background-color .25s,border-color .25s}._button_1avxf_1:hover{border-color:var(--color-secondary)}._button_1avxf_1:focus,._button_1avxf_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._button_1avxf_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_1avxf_29{background-color:var(--color-primary)}._primary_1avxf_29:hover{background-color:var(--color-secondary)}._secondary_1avxf_37{background-color:var(--color-secondary);border-color:var(--color-secondary)}._secondary_1avxf_37:hover{background-color:var(--color-primary);border-color:var(--color-primary)}._ghost_1avxf_47{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._ghost_1avxf_47:hover{background-color:var(--color-primary);color:#fff}
|
package/dist/assets/index45.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_1ymss_5{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;background-color:var(--color-background);border-bottom:1px solid var(--color-border);padding:0 var(--spacing-md);position:relative;z-index:1000;height:var(--nav-height)}._sticky_1ymss_19{position:sticky;top:0;width:100%}._container_1ymss_25{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;max-width:1280px;margin:0 auto}._logo_1ymss_35{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary)}._menuToggle_1ymss_41{background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100}._nav_1ymss_5{display:flex;gap:var(--spacing-lg);height:100%;transition:transform .3s ease}._linkWrapper_1ymss_57{position:relative;display:flex;align-items:center}._linkItem_1ymss_63{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_1ymss_71,._link_1ymss_57{text-decoration:none;color:var(--color-text-primary);padding:var(--spacing-sm);transition:color .3s ease;font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);box-sizing:border-box}._link_1ymss_57:hover,._sublinkToggle_1ymss_71:hover,._navItem_1ymss_87:hover{color:var(--color-primary)}._sublinkToggle_1ymss_71{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_1ymss_101{position:absolute;right:0;top:100%;background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;overflow:hidden;max-height:0;min-width:100%;width:max-content;opacity:0;z-index:100;transition:max-height .3s ease,opacity .3s ease,visibility .3s ease;display:flex;visibility:hidden;flex-direction:column;align-items:flex-end;gap:var(--spacing-md);padding:var(--spacing-md);border-radius:0 0 var(--radius-md) var(--radius-md);pointer-events:none}._sublinks_1ymss_101._show_1ymss_124{max-height:500px;opacity:1;pointer-events:auto;visibility:visible}._chevron_1ymss_131{transition:transform .3s ease}._sublinkToggle_1ymss_71._open_1ymss_135 ._chevron_1ymss_131{transform:rotate(180deg)}@media (max-width: 768px){._menuToggle_1ymss_41{display:flex;align-items:center;justify-content:center}._nav_1ymss_5{display:none;position:fixed;top:calc(var(--nav-height) - 1px);left:0;width:100%;height:100%;background-color:var(--color-background);display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);border-top:1px solid var(--color-border);z-index:1000;overflow-y:auto;transform:translate(100%)}._nav_1ymss_5._open_1ymss_135{transform:translate(0)}._linkWrapper_1ymss_57{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_1ymss_57._parent_1ymss_177{border-bottom:1px solid var(--color-border)}._linkWrapper_1ymss_57._parent_1ymss_177:last-of-type{border:none}._linkItem_1ymss_63{width:100%}._chevron_1ymss_131{display:none}._sublinks_1ymss_101{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_1ymss_71{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { d, i as m, r, g as t, s as e, f as s } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d, i as m, r, g as t, s as e, f as s } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Accordion as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
d("Accordion", () => {
|
|
6
6
|
const l = [
|
|
7
7
|
{
|
|
@@ -20,7 +20,7 @@ function j({
|
|
|
20
20
|
const [m, _] = p([]), l = (o) => {
|
|
21
21
|
_((n) => i ? n.includes(o) ? n.filter((r) => r !== o) : [...n, o] : n.includes(o) ? [] : [o]);
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */ e("div", { className: `${
|
|
23
|
+
return /* @__PURE__ */ e("div", { className: `${d ?? ""} ${c.accordion}`, children: s.map(({ id: o, title: n, content: r }) => {
|
|
24
24
|
const t = m.includes(o);
|
|
25
25
|
return /* @__PURE__ */ a("div", { className: c.accordionItem, children: [
|
|
26
26
|
/* @__PURE__ */ a(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { d as v, i as r, r as l, s as a, g as t, v as m, f as u, w as n } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as v, i as r, r as l, s as a, g as t, v as m, f as u, w as n } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Alert as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
v("Alert", () => {
|
|
6
6
|
r("renders the alert with the correct message and variant", () => {
|
|
7
7
|
l(/* @__PURE__ */ o(i, { message: "Info Alert", variant: "info" }));
|
|
@@ -35,7 +35,7 @@ function R({
|
|
|
35
35
|
return l ? /* @__PURE__ */ m(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
className: `${e.alert} ${j[o]} ${s ? e.enter : e.exit}
|
|
38
|
+
className: `${u ?? ""} ${e.alert} ${j[o]} ${s ? e.enter : e.exit}`,
|
|
39
39
|
role: "alert",
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ r("span", { children: i }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { d as l, i as s, r as o, s as i, g as e, v as c, f as d } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as l, i as s, r as o, s as i, g as e, v as c, f as d } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Avatar as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
l("Avatar", () => {
|
|
6
6
|
s("renders an image when src is provided", () => {
|
|
7
7
|
o(/* @__PURE__ */ a(r, { src: "https://via.placeholder.com/150", alt: "User avatar" }));
|
|
@@ -34,14 +34,20 @@ function M({
|
|
|
34
34
|
return /* @__PURE__ */ m(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
|
-
className: `${s.avatar} ${h[e]}
|
|
37
|
+
className: `${u ?? ""} ${s.avatar} ${h[e]}`,
|
|
38
38
|
style: { borderColor: c, backgroundColor: r },
|
|
39
39
|
onClick: i,
|
|
40
40
|
role: l ? "button" : void 0,
|
|
41
41
|
"aria-label": l ? a : void 0,
|
|
42
42
|
children: [
|
|
43
43
|
t ? /* @__PURE__ */ n("img", { src: t, alt: a, className: s.image }) : /* @__PURE__ */ n("span", { className: s.initials, children: _ }),
|
|
44
|
-
o && /* @__PURE__ */ n(
|
|
44
|
+
o && /* @__PURE__ */ n(
|
|
45
|
+
"span",
|
|
46
|
+
{
|
|
47
|
+
className: `${s.status} ${j[o]}`,
|
|
48
|
+
role: "status"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
45
51
|
]
|
|
46
52
|
}
|
|
47
53
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as u, i as a, r as c, s as o, g as s, v as d, f as r } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as u, i as a, r as c, s as o, g as s, v as d, f as r } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Badge as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
import { P as i } from "../../plus-Cs7TaIK9.js";
|
|
6
6
|
u("Badge", () => {
|
|
7
7
|
a("renders default badge", () => {
|
|
@@ -26,7 +26,7 @@ function p({
|
|
|
26
26
|
return /* @__PURE__ */ o(
|
|
27
27
|
"span",
|
|
28
28
|
{
|
|
29
|
-
className: `${s.badge} ${z[t]} ${e ? s.clickable : ""}
|
|
29
|
+
className: `${r ?? ""} ${s.badge} ${z[t]} ${e ? s.clickable : ""}`,
|
|
30
30
|
onClick: e,
|
|
31
31
|
role: e ? "button" : "status",
|
|
32
32
|
children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as r, i as o, r as n, s, g as a } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as r, i as o, r as n, s, g as a } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Box as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
r("Box", () => {
|
|
6
6
|
o("renders with default props", () => {
|
|
7
7
|
n(/* @__PURE__ */ t(i, { children: "Content" }));
|
|
@@ -73,14 +73,14 @@ function V({
|
|
|
73
73
|
...c
|
|
74
74
|
}) {
|
|
75
75
|
const l = _, t = [
|
|
76
|
+
e ?? "",
|
|
76
77
|
n.box,
|
|
77
78
|
J[i],
|
|
78
79
|
K[o],
|
|
79
80
|
O[r],
|
|
80
81
|
P[a],
|
|
81
82
|
Q[d],
|
|
82
|
-
R[s]
|
|
83
|
-
e ?? ""
|
|
83
|
+
R[s]
|
|
84
84
|
].filter(Boolean).join(" ");
|
|
85
85
|
return /* @__PURE__ */ k(l, { className: t, ...c, children: g });
|
|
86
86
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { d as m, i as r, r as o, s as n, g as t } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as m, i as r, r as o, s as n, g as t } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Breadcrumbs as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
m("Breadcrumbs", () => {
|
|
6
6
|
const a = [
|
|
7
7
|
{ label: "Home", href: "/" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { d as l, i as o, r as n, s as a, g as e, v as c, f as r } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as l, i as o, r as n, s as a, g as e, v as c, f as r } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Button as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
l("Button", () => {
|
|
6
6
|
o('renders with default "primary" variant', () => {
|
|
7
7
|
n(/* @__PURE__ */ s(i, { children: "Click me" }));
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/index14.css';const c = "
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const c = "_button_1avxf_1", y = "_primary_1avxf_29", _ = "_secondary_1avxf_37", e = "_ghost_1avxf_47", t = {
|
|
3
3
|
button: c,
|
|
4
|
-
primary:
|
|
5
|
-
secondary:
|
|
6
|
-
ghost:
|
|
7
|
-
},
|
|
4
|
+
primary: y,
|
|
5
|
+
secondary: _,
|
|
6
|
+
ghost: e
|
|
7
|
+
}, i = {
|
|
8
8
|
primary: t.primary,
|
|
9
9
|
secondary: t.secondary,
|
|
10
10
|
ghost: t.ghost
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
variant:
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
16
|
-
...
|
|
12
|
+
function p({
|
|
13
|
+
variant: o = "primary",
|
|
14
|
+
className: r,
|
|
15
|
+
children: s,
|
|
16
|
+
...a
|
|
17
17
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ n(
|
|
19
|
+
"button",
|
|
20
|
+
{
|
|
21
|
+
className: `${r ?? ""} ${t.button} ${i[o]}`,
|
|
22
|
+
...a,
|
|
23
|
+
children: s
|
|
24
|
+
}
|
|
25
|
+
);
|
|
19
26
|
}
|
|
20
27
|
export {
|
|
21
|
-
|
|
28
|
+
p as Button
|
|
22
29
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as a, i, r, g as n, s as c } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as a, i, r, g as n, s as c } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { ButtonGroup as s } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
a("ButtonGroup", () => {
|
|
6
6
|
i("renders children", () => {
|
|
7
7
|
r(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { d as D, i as s, r as l, g as n, s as a, v as m, f as d } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as D, i as s, r as l, g as n, s as a, v as m, f as d } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { f as y, C as r } from "../../index-C8O_LWE2.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
D("Calendar", () => {
|
|
6
6
|
s("renders the current month and year", () => {
|
|
7
7
|
const t = new Date(2025, 4, 15);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { d as l, i as n, r, g as t, s as e, v as a, f as d } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as l, i as n, r, g as t, s as e, v as a, f as d } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Card as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
l("Card", () => {
|
|
6
6
|
n("renders with title, content and footer", () => {
|
|
7
7
|
r(
|
|
@@ -40,7 +40,7 @@ function q({
|
|
|
40
40
|
return /* @__PURE__ */ o(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
|
-
className: `${a.card} ${y[d]} ${l ? a.clickable : ""}
|
|
43
|
+
className: `${_ ?? ""} ${a.card} ${y[d]} ${l ? a.clickable : ""}`,
|
|
44
44
|
onClick: s,
|
|
45
45
|
role: s ? "button" : "presentation",
|
|
46
46
|
children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { d as h, v as d, i as s, r as a, g as i, s as t, f as r } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as h, v as d, i as s, r as a, g as i, s as t, f as r } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Carousel as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
const c = [
|
|
6
6
|
/* @__PURE__ */ n("div", { children: "Slide 1" }, "1"),
|
|
7
7
|
/* @__PURE__ */ n("div", { children: "Slide 2" }, "2"),
|
|
@@ -46,7 +46,7 @@ function J({
|
|
|
46
46
|
const t = 100 / n;
|
|
47
47
|
return `translateX(-${s * t}%)`;
|
|
48
48
|
};
|
|
49
|
-
return /* @__PURE__ */ _("div", { className: `${
|
|
49
|
+
return /* @__PURE__ */ _("div", { className: `${f ?? ""} ${e.carousel}`, children: [
|
|
50
50
|
/* @__PURE__ */ r(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as n, i as b, r as s, g as c, s as o, v as h } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as n, i as b, r as s, g as c, s as o, v as h } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Checkbox as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
n("Checkbox", () => {
|
|
6
6
|
b("renders correctly", () => {
|
|
7
7
|
s(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { d as c, i as t, r as i, g as n, s as o } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as c, i as t, r as i, g as n, s as o } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Container as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
c("Container", () => {
|
|
6
6
|
t("renders children", () => {
|
|
7
7
|
i(/* @__PURE__ */ s(a, { children: "Test content" })), n(o.getByText("Test content")).toBeInTheDocument();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { v as r, d as k, i as c, r as d, g as t, s as a, f as l } from "../../vi.ClIskdbk-
|
|
2
|
+
import { v as r, d as k, i as c, r as d, g as t, s as a, f as l } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { DatePicker as o } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
import { f as u } from "../../index-C8O_LWE2.js";
|
|
6
6
|
r.mock("../Calendar", () => ({
|
|
7
7
|
Calendar: ({ onSelectDate: e }) => /* @__PURE__ */ n(
|
|
@@ -22,7 +22,7 @@ function L({
|
|
|
22
22
|
...v
|
|
23
23
|
}) {
|
|
24
24
|
const [p, y] = i(null), [u, l] = i(!1);
|
|
25
|
-
return /* @__PURE__ */ h("div", { className: `${
|
|
25
|
+
return /* @__PURE__ */ h("div", { className: `${d ?? ""} ${s.wrapper}`, children: [
|
|
26
26
|
/* @__PURE__ */ e(w, { htmlFor: o, required: a, disabled: c, children: m }),
|
|
27
27
|
/* @__PURE__ */ e(
|
|
28
28
|
"input",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { d as o, i as e, r as i, g as t } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as o, i as e, r as i, g as t } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Divider as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
o("Spacer", () => {
|
|
6
6
|
e("renders with default props", () => {
|
|
7
7
|
const { container: s } = i(/* @__PURE__ */ r(a, {}));
|
|
@@ -12,7 +12,13 @@ function v({
|
|
|
12
12
|
className: r,
|
|
13
13
|
...t
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ a(
|
|
15
|
+
return /* @__PURE__ */ a(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
className: `${r ?? ""} ${i.divider} ${n[o]}`,
|
|
19
|
+
...t
|
|
20
|
+
}
|
|
21
|
+
);
|
|
16
22
|
}
|
|
17
23
|
export {
|
|
18
24
|
v as Divider
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { d as h, i as r, r as s, v as t, g as l, s as c, f as a } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as h, i as r, r as s, v as t, g as l, s as c, f as a } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Drawer as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
h("Drawer", () => {
|
|
6
6
|
const n = /* @__PURE__ */ e("nav", { children: /* @__PURE__ */ f("ul", { children: [
|
|
7
7
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: "/profile", children: "Profile" }) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { d as o, i as t, r, g as n, s as d } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as o, i as t, r, g as n, s as d } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Fieldset as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
o("Fieldset", () => {
|
|
6
6
|
t("renders children", () => {
|
|
7
7
|
r(
|
|
@@ -9,10 +9,17 @@ function r({
|
|
|
9
9
|
children: t,
|
|
10
10
|
...d
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */ i(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
return /* @__PURE__ */ i(
|
|
13
|
+
"fieldset",
|
|
14
|
+
{
|
|
15
|
+
className: `${l ?? ""} ${s.fieldset}`,
|
|
16
|
+
...d,
|
|
17
|
+
children: [
|
|
18
|
+
e && /* @__PURE__ */ n("legend", { className: s.legend, children: e }),
|
|
19
|
+
t
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
);
|
|
16
23
|
}
|
|
17
24
|
export {
|
|
18
25
|
r as Fieldset
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { d as c, i as t, r as l, g as s, s as n, v as a, f as d } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as c, i as t, r as l, g as s, s as n, v as a, f as d } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { FileUpload as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
c("FileUpload", () => {
|
|
6
6
|
t("renders the label correctly", () => {
|
|
7
7
|
l(/* @__PURE__ */ o(r, { label: "Upload your resume", onFilesChange: () => {
|
|
@@ -31,7 +31,7 @@ function M({
|
|
|
31
31
|
const r = t.filter((_, $) => $ !== e);
|
|
32
32
|
m(r), s == null || s(r);
|
|
33
33
|
}, g = D ?? `upload-${Math.random().toString(36).slice(2)}`;
|
|
34
|
-
return /* @__PURE__ */ p("div", { className: `${
|
|
34
|
+
return /* @__PURE__ */ p("div", { className: `${v ?? ""} ${i.wrapper}`, children: [
|
|
35
35
|
c && /* @__PURE__ */ n(Z, { htmlFor: g, required: f, disabled: o, children: c }),
|
|
36
36
|
/* @__PURE__ */ n(
|
|
37
37
|
"div",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { d as r, i as o, r as i, g as l, s, v as d, f as m } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as r, i as o, r as i, g as l, s, v as d, f as m } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { FloatingActionButton as c } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
import { P as n } from "../../plus-Cs7TaIK9.js";
|
|
6
6
|
r("FloatingActionButton", () => {
|
|
7
7
|
o("renders the icon", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { d as i, i as o, r, g as s, s as a } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as i, i as o, r, g as s, s as a } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Form as m } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
i("Form", () => {
|
|
6
6
|
o("renders children", () => {
|
|
7
7
|
r(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { d as o, i as d, r as m, g as i, s as l } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as o, i as d, r as m, g as i, s as l } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Grid as s } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
o("Grid", () => {
|
|
6
6
|
d("renders children", () => {
|
|
7
7
|
m(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as i, i as a, r as s, s as d, g as l } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as i, i as a, r as s, s as d, g as l } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Heading as n } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
i("Heading", () => {
|
|
6
6
|
a("renders with default level (h1)", () => {
|
|
7
7
|
s(/* @__PURE__ */ t(n, { children: "Test Heading" }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as r, i as o, r as a, s as n, g as s, v as m, f as b } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as r, i as o, r as a, s as n, g as s, v as m, f as b } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { IconButton as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
import { T as c } from "../../trash-2-2Rn0a4s6.js";
|
|
6
6
|
r("IconButton", () => {
|
|
7
7
|
o("renders with icon and accessible label", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { d as m, i, r as t, g as e, s as r } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as m, i, r as t, g as e, s as r } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Input as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
m("Input", () => {
|
|
6
6
|
i("renders an input with a label", () => {
|
|
7
7
|
t(/* @__PURE__ */ a(l, { label: "email", name: "email" })), e(r.getByLabelText("email")).toBeInTheDocument();
|
|
@@ -20,7 +20,7 @@ function x({
|
|
|
20
20
|
...i
|
|
21
21
|
}) {
|
|
22
22
|
const s = o ?? i.name ?? `input-${Math.random().toString(36).slice(2)}`;
|
|
23
|
-
return /* @__PURE__ */ _("div", { className: `${
|
|
23
|
+
return /* @__PURE__ */ _("div", { className: `${a ?? ""} ${t.wrapper}`, children: [
|
|
24
24
|
n && /* @__PURE__ */ e(
|
|
25
25
|
u,
|
|
26
26
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as s, i as o, r as n, g as e, s as r } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as s, i as o, r as n, g as e, s as r } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { Label as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
s("Label", () => {
|
|
6
6
|
o("renders label text", () => {
|
|
7
7
|
n(/* @__PURE__ */ t(l, { htmlFor: "username", children: "Username" })), e(r.getByText("Username")).toBeInTheDocument();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { d as c, i as r, r as i, s as o, g as n } from "../../vi.ClIskdbk-
|
|
2
|
+
import { d as c, i as r, r as i, s as o, g as n } from "../../vi.ClIskdbk-Z9moXFkA.js";
|
|
3
3
|
import { L as a, M as l } from "../../index-CzDm6DZN.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-Bb02nmpl.js";
|
|
5
5
|
c("Link", () => {
|
|
6
6
|
r("renders a normal anchor tag by default", () => {
|
|
7
7
|
i(/* @__PURE__ */ t(a, { href: "/about", children: "About us" }));
|