quirk-ui 0.0.27 → 0.0.29
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/arrow-left-BIJvHwNQ.js +14 -0
- package/dist/{arrow-right-CnuUc2oD.js → arrow-right-QEwnX3Sk.js} +1 -12
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/components/Accordion/Accordion.test.js +2 -2
- package/dist/components/Alert/Alert.test.js +2 -2
- package/dist/components/Avatar/Avatar.test.js +2 -2
- package/dist/components/Badge/Badge.test.js +2 -2
- package/dist/components/Box/Box.test.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.test.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.test.js +2 -2
- package/dist/components/Calendar/Calendar.test.js +3 -3
- package/dist/components/Calendar/index.js +4 -3
- package/dist/components/CallToAction/CallToAction.test.js +66 -0
- package/dist/components/CallToAction/__mocks__/styles.module.css.js +12 -0
- package/dist/components/CallToAction/index.js +63 -0
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Carousel/Carousel.test.js +2 -2
- package/dist/components/Carousel/index.js +65 -63
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/Container/Container.test.js +2 -2
- package/dist/components/DatePicker/DatePicker.test.js +3 -3
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/Divider.test.js +2 -2
- package/dist/components/Drawer/Drawer.test.js +2 -2
- package/dist/components/Fieldset/Fieldset.test.js +2 -2
- package/dist/components/FileUpload/FileUpload.test.js +2 -2
- package/dist/components/FloatingActionButton/FloatingActionButton.test.js +2 -2
- package/dist/components/Form/Form.test.js +2 -2
- package/dist/components/Grid/Grid.test.js +2 -2
- package/dist/components/Grid/index.js +22 -22
- package/dist/components/Heading/Heading.test.js +2 -2
- package/dist/components/IconButton/IconButton.test.js +2 -2
- package/dist/components/Input/Input.test.js +2 -2
- package/dist/components/Label/Label.test.js +2 -2
- package/dist/components/List/List.test.js +1 -1
- package/dist/components/Modal/Modal.test.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.test.js +2 -2
- package/dist/components/NavBar/NavBar.test.js +1 -1
- package/dist/components/Notification/Notification.test.js +1 -1
- package/dist/components/NotificationContainer/NotificationContainer.test.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.test.js +1 -1
- package/dist/components/Radio/Radio.test.js +2 -2
- package/dist/components/Range/Range.test.js +2 -2
- package/dist/components/Select/Select.test.js +2 -2
- package/dist/components/Skeleton/Skeleton.test.js +1 -1
- package/dist/components/Spacer/Spacer.test.js +2 -2
- package/dist/components/Spinner/Spinner.test.js +1 -1
- package/dist/components/Stack/Stack.test.js +2 -2
- package/dist/components/Switch/Switch.test.js +2 -2
- package/dist/components/Table/Table.test.js +2 -2
- package/dist/components/Tabs/Tabs.test.js +2 -2
- package/dist/components/Text/Text.test.js +2 -2
- package/dist/components/Textarea/Textarea.test.js +2 -2
- package/dist/components/Tooltip/Tooltip.test.js +2 -2
- package/dist/{index-C8O_LWE2.js → index-BNGQJ1tM.js} +25 -24
- package/dist/{index-Bb02nmpl.js → index-WRMbKSxg.js} +1 -1
- package/dist/lib/components/{Button → CallToAction}/__mocks__/styles.module.css.d.ts +4 -1
- package/dist/lib/components/CallToAction/index.d.ts +34 -0
- package/dist/lib/main.d.ts +1 -2
- package/dist/main.js +76 -78
- package/dist/styles.css +1 -2
- package/dist/utils/NotificationManager/NotificationManager.test.js +1 -1
- package/dist/{vi.ClIskdbk-Z9moXFkA.js → vi.ClIskdbk-CmAURgd9.js} +60 -60
- package/package.json +1 -1
- package/dist/assets/index48.css +0 -1
- package/dist/components/Button/Button.test.js +0 -34
- package/dist/components/Button/__mocks__/styles.module.css.js +0 -9
- package/dist/components/Button/index.js +0 -29
- package/dist/components/Link/Link.test.js +0 -33
- package/dist/components/Link/__mocks__/styles.module.css.js +0 -8
- package/dist/components/Link/index.js +0 -5
- package/dist/index-CzDm6DZN.js +0 -1621
- package/dist/lib/components/Button/index.d.ts +0 -12
- package/dist/lib/components/Link/Link.test.d.ts +0 -0
- package/dist/lib/components/Link/__mocks__/styles.module.css.d.ts +0 -6
- package/dist/lib/components/Link/index.d.ts +0 -18
- /package/dist/lib/components/{Button/Button.test.d.ts → CallToAction/CallToAction.test.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as o } from "./createLucideIcon-C8GTh_Qx.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.488.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
10
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
11
|
+
], r = o("arrow-left", e);
|
|
12
|
+
export {
|
|
13
|
+
r as A
|
|
14
|
+
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { c as o } from "./createLucideIcon-C8GTh_Qx.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.488.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const t = [
|
|
9
|
-
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
10
|
-
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
11
|
-
], e = o("arrow-left", t);
|
|
12
2
|
/**
|
|
13
3
|
* @license lucide-react v0.488.0 - ISC
|
|
14
4
|
*
|
|
@@ -20,6 +10,5 @@ const r = [
|
|
|
20
10
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
|
21
11
|
], c = o("arrow-right", r);
|
|
22
12
|
export {
|
|
23
|
-
|
|
24
|
-
c as a
|
|
13
|
+
c as A
|
|
25
14
|
};
|
package/dist/assets/index14.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._callToAction_7n3dv_1{display:inline-flex;text-decoration:none;border-radius:var(--radius-md);border:2px 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;height:40px}._callToAction_7n3dv_1:focus,._callToAction_7n3dv_1:focus-visible{outline:4px auto -webkit-focus-ring-color}._callToAction_7n3dv_1:disabled{border-color:var(--color-muted);background-color:var(--color-muted);color:#e0e0e0;cursor:not-allowed}._primary_7n3dv_28{background-color:var(--color-primary);color:#fff}._primary_7n3dv_28:hover{background-color:var(--color-secondary);color:#fff}._secondary_7n3dv_38{background-color:var(--color-secondary);border-color:var(--color-secondary);color:#fff}._secondary_7n3dv_38:hover{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}._ghost_7n3dv_50{background-color:transparent;border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}._ghost_7n3dv_50:hover{border-color:var(--color-primary);background-color:var(--color-primary);color:#fff}._link_7n3dv_63{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._muted_7n3dv_72{color:var(--color-muted);background-color:transparent;border:none;padding:0;text-decoration:none;height:unset}._underline_7n3dv_81{color:var(--color-link);background-color:transparent;border:none;padding:0;text-decoration:underline;height:unset}._icon_7n3dv_90{display:inline-flex}._content_7n3dv_94{display:inline-flex;align-items:center;justify-content:center;flex-direction:row;gap:var(--spacing-sm);text-wrap:nowrap}._iconLeft_7n3dv_103{flex-direction:row-reverse}._iconRight_7n3dv_107{flex-direction:row}
|
package/dist/assets/index47.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._calendar_zbxci_1{padding:var(--spacing-sm);border-radius:var(--radius-md);min-width:250px}._header_zbxci_7{display:flex;justify-content:space-between;margin-bottom:var(--spacing-sm)}._dayName_zbxci_13{font-weight:var(--font-weight-semibold);color:var(--color-text-primary);width:30px;text-align:center;flex:1;font-size:var(--font-size-sm)}._monthName_zbxci_23{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._week_zbxci_28{display:flex;justify-content:space-between;color:var(--color-text-primary)}._cell_zbxci_34{flex:1;padding:var(--spacing-xs) 0;text-align:center;background:none;color:var(--color-text-primary);border:none;cursor:pointer;width:30px}._outside_zbxci_45{color:var(--color-muted)}._selected_zbxci_49{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md)}
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Accordion as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
d("Accordion", () => {
|
|
6
6
|
const l = [
|
|
7
7
|
{
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Alert as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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" }));
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Avatar as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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" }));
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Badge as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
import { P as i } from "../../plus-Cs7TaIK9.js";
|
|
6
6
|
u("Badge", () => {
|
|
7
7
|
a("renders default badge", () => {
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Box as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
r("Box", () => {
|
|
6
6
|
o("renders with default props", () => {
|
|
7
7
|
n(/* @__PURE__ */ t(i, { children: "Content" }));
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Breadcrumbs as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
m("Breadcrumbs", () => {
|
|
6
6
|
const a = [
|
|
7
7
|
{ label: "Home", href: "/" },
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { ButtonGroup as s } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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-
|
|
3
|
-
import { f as y, C as r } from "../../index-
|
|
4
|
-
import "../../index-
|
|
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-CmAURgd9.js";
|
|
3
|
+
import { f as y, C as r } from "../../index-BNGQJ1tM.js";
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
D("Calendar", () => {
|
|
6
6
|
s("renders the current month and year", () => {
|
|
7
7
|
const t = new Date(2025, 4, 15);
|
|
@@ -3,8 +3,9 @@ import "react";
|
|
|
3
3
|
import '../../assets/index.css';/* empty css */
|
|
4
4
|
import "../IconButton/index.js";
|
|
5
5
|
import "../Tabs/index.js";
|
|
6
|
-
import { C } from "../../index-
|
|
7
|
-
import "../../arrow-
|
|
6
|
+
import { C as d } from "../../index-BNGQJ1tM.js";
|
|
7
|
+
import "../../arrow-left-BIJvHwNQ.js";
|
|
8
|
+
import "../../arrow-right-QEwnX3Sk.js";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
d as Calendar
|
|
10
11
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { d as c, i, r as a, s, g as e } from "../../vi.ClIskdbk-CmAURgd9.js";
|
|
3
|
+
import { CallToAction as r } from "./index.js";
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
|
+
import { A as l } from "../../arrow-right-QEwnX3Sk.js";
|
|
6
|
+
c("CallToAction", () => {
|
|
7
|
+
i("renders as a button when 'as' is set to 'button'", () => {
|
|
8
|
+
a(
|
|
9
|
+
/* @__PURE__ */ o(r, { as: "button", variant: "primary", children: "Click Me" })
|
|
10
|
+
);
|
|
11
|
+
const t = s.getByRole("button", { name: "Click Me" });
|
|
12
|
+
e(t).toBeInTheDocument(), e(t).toHaveClass("callToAction", "primary");
|
|
13
|
+
}), i("renders as an anchor when 'as' is set to 'a'", () => {
|
|
14
|
+
a(
|
|
15
|
+
/* @__PURE__ */ o(r, { as: "a", href: "/test", variant: "link", children: "Click Me" })
|
|
16
|
+
);
|
|
17
|
+
const t = s.getByRole("link", { name: "Click Me" });
|
|
18
|
+
e(t).toBeInTheDocument(), e(t).toHaveAttribute("href", "/test"), e(t).toHaveClass("callToAction", "link");
|
|
19
|
+
}), i("adds rel='noopener noreferrer' when target is '_blank'", () => {
|
|
20
|
+
a(
|
|
21
|
+
/* @__PURE__ */ o(r, { as: "a", href: "/test", target: "_blank", variant: "link", children: "External" })
|
|
22
|
+
);
|
|
23
|
+
const t = s.getByRole("link", { name: "External" });
|
|
24
|
+
e(t).toBeInTheDocument(), e(t).toHaveAttribute("rel", "noopener noreferrer");
|
|
25
|
+
}), i("includes left icon when iconAlignment is 'left'", () => {
|
|
26
|
+
a(
|
|
27
|
+
/* @__PURE__ */ o(
|
|
28
|
+
r,
|
|
29
|
+
{
|
|
30
|
+
as: "a",
|
|
31
|
+
href: "/test",
|
|
32
|
+
target: "_blank",
|
|
33
|
+
variant: "link",
|
|
34
|
+
icon: /* @__PURE__ */ o(l, { "data-testid": "icon", size: 21 }),
|
|
35
|
+
iconAlignemnt: "left",
|
|
36
|
+
children: "Icon left"
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
const n = s.getByTestId("icon").closest("span");
|
|
41
|
+
e(n).toHaveClass("icon"), e(n == null ? void 0 : n.parentElement).toHaveClass("content", "iconLeft");
|
|
42
|
+
}), i("includes right icon when iconAlignment is 'right'", () => {
|
|
43
|
+
a(
|
|
44
|
+
/* @__PURE__ */ o(
|
|
45
|
+
r,
|
|
46
|
+
{
|
|
47
|
+
as: "a",
|
|
48
|
+
href: "/test",
|
|
49
|
+
target: "_blank",
|
|
50
|
+
variant: "link",
|
|
51
|
+
icon: /* @__PURE__ */ o(l, { "data-testid": "icon", size: 21 }),
|
|
52
|
+
iconAlignemnt: "right",
|
|
53
|
+
children: "Icon Right"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
const n = s.getByTestId("icon").closest("span");
|
|
58
|
+
e(n).toHaveClass("icon"), e(n == null ? void 0 : n.parentElement).toHaveClass("content", "iconRight");
|
|
59
|
+
}), i("respects the disabled prop on buttons", () => {
|
|
60
|
+
a(
|
|
61
|
+
/* @__PURE__ */ o(r, { as: "button", variant: "primary", disabled: !0, children: "Disabled" })
|
|
62
|
+
);
|
|
63
|
+
const t = s.getByRole("button", { name: "Disabled" });
|
|
64
|
+
e(t).toBeDisabled();
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const f = "_callToAction_7n3dv_1", y = "_primary_7n3dv_28", m = "_secondary_7n3dv_38", u = "_ghost_7n3dv_50", v = "_link_7n3dv_63", $ = "_underline_7n3dv_81", A = "_icon_7n3dv_90", k = "_content_7n3dv_94", T = "_iconLeft_7n3dv_103", x = "_iconRight_7n3dv_107", n = {
|
|
3
|
+
callToAction: f,
|
|
4
|
+
primary: y,
|
|
5
|
+
secondary: m,
|
|
6
|
+
ghost: u,
|
|
7
|
+
link: v,
|
|
8
|
+
underline: $,
|
|
9
|
+
icon: A,
|
|
10
|
+
content: k,
|
|
11
|
+
iconLeft: T,
|
|
12
|
+
iconRight: x
|
|
13
|
+
}, l = {
|
|
14
|
+
primary: n.primary,
|
|
15
|
+
secondary: n.secondary,
|
|
16
|
+
ghost: n.ghost,
|
|
17
|
+
link: n.link,
|
|
18
|
+
underline: n.underline
|
|
19
|
+
}, R = {
|
|
20
|
+
left: n.iconLeft,
|
|
21
|
+
right: n.iconRight
|
|
22
|
+
};
|
|
23
|
+
function b({
|
|
24
|
+
variant: c = "primary",
|
|
25
|
+
icon: i,
|
|
26
|
+
iconAlignemnt: a = "right",
|
|
27
|
+
useRouter: L = !1,
|
|
28
|
+
className: e,
|
|
29
|
+
children: _,
|
|
30
|
+
disabled: d = !1,
|
|
31
|
+
...t
|
|
32
|
+
}) {
|
|
33
|
+
const s = /* @__PURE__ */ g("span", { className: `${n.content} ${R[a]}`, children: [
|
|
34
|
+
/* @__PURE__ */ o("span", { children: _ }),
|
|
35
|
+
i && /* @__PURE__ */ o("span", { className: n.icon, children: i })
|
|
36
|
+
] });
|
|
37
|
+
if (t.as == "a") {
|
|
38
|
+
const { href: h, target: r, ...p } = t;
|
|
39
|
+
return /* @__PURE__ */ o(
|
|
40
|
+
"a",
|
|
41
|
+
{
|
|
42
|
+
href: h,
|
|
43
|
+
target: r,
|
|
44
|
+
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
45
|
+
className: `${e ?? ""} ${n.callToAction} ${l[c]}`,
|
|
46
|
+
...p,
|
|
47
|
+
children: s
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ o(
|
|
52
|
+
"button",
|
|
53
|
+
{
|
|
54
|
+
className: `${e ?? ""} ${n.callToAction} ${l[c]}`,
|
|
55
|
+
disabled: d,
|
|
56
|
+
...t,
|
|
57
|
+
children: s
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
b as CallToAction
|
|
63
|
+
};
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Card as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
l("Card", () => {
|
|
6
6
|
n("renders with title, content and footer", () => {
|
|
7
7
|
r(
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Carousel as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
const c = [
|
|
6
6
|
/* @__PURE__ */ n("div", { children: "Slide 1" }, "1"),
|
|
7
7
|
/* @__PURE__ */ n("div", { children: "Slide 2" }, "2"),
|
|
@@ -1,90 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { A as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as A, useEffect as f } from "react";
|
|
3
|
+
import { A as C } from "../../arrow-left-BIJvHwNQ.js";
|
|
4
|
+
import { A as I } from "../../arrow-right-QEwnX3Sk.js";
|
|
5
|
+
import '../../assets/index31.css';const M = "_carousel_1h8mt_5", S = "_track_1h8mt_12", W = "_slide_1h8mt_18", E = "_controls_1h8mt_30", L = "_indicators_1h8mt_47", R = "_indicator_1h8mt_47", j = "_active_1h8mt_62", z = "_buttons_1h8mt_66", G = "_prev_1h8mt_71", T = "_disabled_1h8mt_71", V = "_next_1h8mt_72", e = {
|
|
6
|
+
carousel: M,
|
|
7
|
+
track: S,
|
|
8
|
+
slide: W,
|
|
9
|
+
controls: E,
|
|
10
|
+
indicators: L,
|
|
11
|
+
indicator: R,
|
|
12
|
+
active: j,
|
|
13
|
+
buttons: z,
|
|
14
|
+
prev: G,
|
|
15
|
+
disabled: T,
|
|
16
|
+
next: V
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function H({
|
|
18
19
|
items: c,
|
|
19
|
-
autoPlay:
|
|
20
|
-
autoPlayInterval:
|
|
21
|
-
className:
|
|
20
|
+
autoPlay: r = !1,
|
|
21
|
+
autoPlayInterval: m = 3e3,
|
|
22
|
+
className: b
|
|
22
23
|
}) {
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
const [n, l] = _(0), [i, u] = _(1), [v, N] = _(!1), a = A(null), $ = n === 0, p = n === c.length - 1, g = Math.ceil(c.length / i);
|
|
25
|
+
f(() => {
|
|
26
|
+
const t = () => {
|
|
27
|
+
l(0);
|
|
28
|
+
const s = window.innerWidth < 768;
|
|
29
|
+
N(s), u(s ? 1 : 3);
|
|
30
|
+
};
|
|
31
|
+
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
29
32
|
}, []);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
(t) => t < c.length - n ? t + n : t
|
|
33
|
+
const d = () => {
|
|
34
|
+
(r || !p) && l(
|
|
35
|
+
(t) => t < c.length - i ? t + i : t
|
|
34
36
|
);
|
|
35
|
-
},
|
|
36
|
-
(
|
|
37
|
-
},
|
|
38
|
-
l(t *
|
|
37
|
+
}, w = () => {
|
|
38
|
+
(r || !$) && l((t) => t > 0 ? t - i : 0);
|
|
39
|
+
}, x = (t) => {
|
|
40
|
+
l(t * i);
|
|
39
41
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}), [
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
return `translateX(calc(-${
|
|
46
|
-
const t = 100 /
|
|
47
|
-
return `translateX(-${
|
|
42
|
+
f(() => (r && (a.current = setInterval(d, m)), () => {
|
|
43
|
+
a.current && clearInterval(a.current);
|
|
44
|
+
}), [r, m, d]);
|
|
45
|
+
const k = () => {
|
|
46
|
+
if (v)
|
|
47
|
+
return `translateX(calc(-${n * 80}% + 10%))`;
|
|
48
|
+
const t = 100 / i;
|
|
49
|
+
return `translateX(-${n * t}%)`;
|
|
48
50
|
};
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ h("div", { className: `${b ?? ""} ${e.carousel}`, children: [
|
|
52
|
+
/* @__PURE__ */ o(
|
|
51
53
|
"div",
|
|
52
54
|
{
|
|
53
55
|
className: e.track,
|
|
54
|
-
style: { transform:
|
|
56
|
+
style: { transform: k() },
|
|
55
57
|
role: "list",
|
|
56
|
-
children: c.map((t,
|
|
58
|
+
children: c.map((t, s) => /* @__PURE__ */ o("div", { className: e.slide, children: t }, s))
|
|
57
59
|
}
|
|
58
60
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ h("div", { className: e.controls, children: [
|
|
62
|
+
/* @__PURE__ */ o("div", { className: e.indicators, children: Array.from({ length: g }).map((t, s) => /* @__PURE__ */ o(
|
|
61
63
|
"button",
|
|
62
64
|
{
|
|
63
|
-
className: `${e.indicator} ${
|
|
64
|
-
onClick: () =>
|
|
65
|
-
"aria-label": `Go to group ${
|
|
65
|
+
className: `${e.indicator} ${s === Math.floor(n / i) ? e.active : ""}`,
|
|
66
|
+
onClick: () => x(s),
|
|
67
|
+
"aria-label": `Go to group ${s + 1}`
|
|
66
68
|
},
|
|
67
|
-
|
|
69
|
+
s
|
|
68
70
|
)) }),
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ h("div", { className: e.buttons, children: [
|
|
72
|
+
/* @__PURE__ */ o(
|
|
71
73
|
"button",
|
|
72
74
|
{
|
|
73
|
-
className: `${e.prev} ${!
|
|
74
|
-
onClick:
|
|
75
|
+
className: `${e.prev} ${!r && n === 0 ? e.disabled : ""}`,
|
|
76
|
+
onClick: w,
|
|
75
77
|
"aria-label": "Previous slide",
|
|
76
|
-
disabled: !
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
+
disabled: !r && n === 0,
|
|
79
|
+
children: /* @__PURE__ */ o(C, {})
|
|
78
80
|
}
|
|
79
81
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o(
|
|
81
83
|
"button",
|
|
82
84
|
{
|
|
83
|
-
className: `${e.next} ${!
|
|
84
|
-
onClick:
|
|
85
|
+
className: `${e.next} ${!r && n >= c.length - i ? e.disabled : ""}`,
|
|
86
|
+
onClick: d,
|
|
85
87
|
"aria-label": "Next slide",
|
|
86
|
-
disabled: !
|
|
87
|
-
children: /* @__PURE__ */
|
|
88
|
+
disabled: !r && n >= c.length - i,
|
|
89
|
+
children: /* @__PURE__ */ o(I, {})
|
|
88
90
|
}
|
|
89
91
|
)
|
|
90
92
|
] })
|
|
@@ -92,5 +94,5 @@ function J({
|
|
|
92
94
|
] });
|
|
93
95
|
}
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
H as Carousel
|
|
96
98
|
};
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Checkbox as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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-CmAURgd9.js";
|
|
3
3
|
import { Container as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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,8 +1,8 @@
|
|
|
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-CmAURgd9.js";
|
|
3
3
|
import { DatePicker as o } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
5
|
-
import { f as u } from "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
|
+
import { f as u } from "../../index-BNGQJ1tM.js";
|
|
6
6
|
r.mock("../Calendar", () => ({
|
|
7
7
|
Calendar: ({ onSelectDate: e }) => /* @__PURE__ */ n(
|
|
8
8
|
"button",
|
|
@@ -3,7 +3,7 @@ import { useState as i } from "react";
|
|
|
3
3
|
import '../../assets/index.css';import '../../assets/index42.css';/* empty css */
|
|
4
4
|
import "../Tabs/index.js";
|
|
5
5
|
import { Label as w } from "../Label/index.js";
|
|
6
|
-
import { f as x, C as D } from "../../index-
|
|
6
|
+
import { f as x, C as D } from "../../index-BNGQJ1tM.js";
|
|
7
7
|
const S = "_wrapper_13tha_1", N = "_input_13tha_7", O = "_popover_13tha_25", s = {
|
|
8
8
|
wrapper: S,
|
|
9
9
|
input: N,
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Divider as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
o("Spacer", () => {
|
|
6
6
|
e("renders with default props", () => {
|
|
7
7
|
const { container: s } = i(/* @__PURE__ */ r(a, {}));
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { Drawer as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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-CmAURgd9.js";
|
|
3
3
|
import { Fieldset as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
o("Fieldset", () => {
|
|
6
6
|
t("renders children", () => {
|
|
7
7
|
r(
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { FileUpload as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
c("FileUpload", () => {
|
|
6
6
|
t("renders the label correctly", () => {
|
|
7
7
|
l(/* @__PURE__ */ o(r, { label: "Upload your resume", onFilesChange: () => {
|
|
@@ -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-CmAURgd9.js";
|
|
3
3
|
import { FloatingActionButton as c } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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-CmAURgd9.js";
|
|
3
3
|
import { Form as m } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.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-CmAURgd9.js";
|
|
3
3
|
import { Grid as s } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-WRMbKSxg.js";
|
|
5
5
|
o("Grid", () => {
|
|
6
6
|
d("renders children", () => {
|
|
7
7
|
m(
|