quirk-ui 0.0.39 → 0.0.40
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/index31.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 +3 -2
- package/dist/components/CallToAction/CallToAction.test.js +2 -2
- package/dist/components/Card/Card.test.js +2 -2
- package/dist/components/Card/index.js +24 -23
- package/dist/components/Carousel/Carousel.test.js +2 -2
- package/dist/components/Carousel/index.js +19 -19
- package/dist/components/Checkbox/Checkbox.test.js +2 -2
- package/dist/components/Checkbox/index.js +11 -10
- package/dist/components/Container/Container.test.js +2 -2
- package/dist/components/DatePicker/DatePicker.test.js +3 -3
- package/dist/components/DatePicker/index.js +14 -13
- 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/FileUpload/index.js +11 -10
- 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/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/Input/index.js +11 -10
- 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/Modal/index.js +27 -33
- package/dist/components/MultiSelect/MultiSelect.test.js +2 -2
- package/dist/components/MultiSelect/index.js +9 -8
- 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/NotificationContainer/index.js +7 -6
- 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/Range/index.js +8 -7
- package/dist/components/Select/Select.test.js +2 -2
- package/dist/components/Select/index.js +14 -13
- 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/Switch/index.js +7 -6
- 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/Textarea/index.js +11 -10
- package/dist/components/Tooltip/Tooltip.test.js +2 -2
- package/dist/{index-WRMbKSxg.js → index-BBIdMcpm.js} +1 -1
- package/dist/{index-BNGQJ1tM.js → index-BM1mGWJK.js} +3 -2
- package/dist/index-CxrBcaoP.js +397 -0
- package/dist/styles.css +1 -1
- package/dist/utils/NotificationManager/NotificationManager.test.js +1 -1
- package/dist/{vi.ClIskdbk-CmAURgd9.js → vi.ClIskdbk-CZ8iFAMK.js} +11913 -12303
- package/package.json +1 -1
package/dist/assets/index31.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--card-width: 80%}.
|
|
1
|
+
:root{--card-width: 80%}._carousel_18d0u_5{position:relative;width:100%;overflow:hidden;box-sizing:border-box}._track_18d0u_12{display:flex;transition:transform .5s ease;will-change:transform}._slide_18d0u_18{flex:0 0 var(--card-width);padding:0 10px;transition:flex .3s ease,flex-basis .3s ease}@media (min-width: 768px){._slide_18d0u_18{flex:0 0 calc(100% / 3)}}._controls_18d0u_31{display:flex;justify-content:space-between;align-items:center;margin-top:var(--spacing-md);padding:0 var(--spacing-md);width:100%}@media (max-width: 767px){._controls_18d0u_31{width:var(--card-width);margin-left:auto;margin-right:auto}}._indicators_18d0u_48{display:flex;gap:var(--spacing-sm)}._indicator_18d0u_48{width:10px;height:10px;border-radius:50%;background-color:#e0e0e0;border:none;cursor:pointer;transition:background-color .3s}._indicator_18d0u_48._active_18d0u_63{background-color:var(--color-primary)}._buttons_18d0u_67{display:flex;gap:var(--spacing-md)}._prev_18d0u_72._disabled_18d0u_72,._next_18d0u_73._disabled_18d0u_72{opacity:.5;pointer-events:none}._buttons_18d0u_67 button:not(._disabled_18d0u_72):hover{background-color:var(--color-primary);color:#fff}._prev_18d0u_72,._next_18d0u_73{background-color:#e0e0e0;color:var(--color-text-primary);border:none;padding:var(--spacing-sm);cursor:pointer;transition:background-color .3s,color .3s;border-radius:50%;width:40px;height:40px}
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Accordion as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Alert as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Avatar as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Badge as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Box as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Breadcrumbs as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { ButtonGroup as s } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
|
+
import { f as y, C as r } from "../../index-BM1mGWJK.js";
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
D("Calendar", () => {
|
|
6
6
|
s("renders the current month and year", () => {
|
|
7
7
|
const t = new Date(2025, 4, 15);
|
|
@@ -2,10 +2,11 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import '../../assets/index.css';/* empty css */
|
|
4
4
|
import "../IconButton/index.js";
|
|
5
|
+
import "../../index-CxrBcaoP.js";
|
|
5
6
|
import "../Tabs/index.js";
|
|
6
|
-
import { C as
|
|
7
|
+
import { C as f } from "../../index-BM1mGWJK.js";
|
|
7
8
|
import "../../arrow-left-BIJvHwNQ.js";
|
|
8
9
|
import "../../arrow-right-QEwnX3Sk.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
f as Calendar
|
|
11
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
2
|
+
import { d as c, i, r as a, s, g as e } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
3
|
import { CallToAction as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
import { A as l } from "../../arrow-right-QEwnX3Sk.js";
|
|
6
6
|
c("CallToAction", () => {
|
|
7
7
|
i("renders as a button when 'as' is set to 'button'", () => {
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Card as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
l("Card", () => {
|
|
6
6
|
n("renders with title, content and footer", () => {
|
|
7
7
|
r(
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/index.css';import '../../assets/index22.css';/* empty css */
|
|
3
|
-
import { Heading as
|
|
3
|
+
import { Heading as s } from "../Heading/index.js";
|
|
4
4
|
import "react";
|
|
5
|
+
import "../../index-CxrBcaoP.js";
|
|
5
6
|
import "../Tabs/index.js";
|
|
6
|
-
const g = "_card_7amar_1", u = "_clickable_7amar_15", h = "_outlined_7amar_27", k = "_shadow_7amar_31",
|
|
7
|
+
const g = "_card_7amar_1", u = "_clickable_7amar_15", h = "_outlined_7amar_27", k = "_shadow_7amar_31", p = "_imageTop_7amar_35", v = "_imageContainer_7amar_45", f = "_image_7amar_35", B = "_content_7amar_60", N = "_imageBackground_7amar_64", C = "_imageBackgroundContainer_7amar_75", b = "_backgroundImage_7amar_83", x = "_overlay_7amar_93", T = "_text_7amar_109", w = "_footer_7amar_131", a = {
|
|
7
8
|
card: g,
|
|
8
9
|
clickable: u,
|
|
9
10
|
default: "_default_7amar_23",
|
|
10
11
|
outlined: h,
|
|
11
12
|
shadow: k,
|
|
12
|
-
imageTop:
|
|
13
|
-
imageContainer:
|
|
13
|
+
imageTop: p,
|
|
14
|
+
imageContainer: v,
|
|
14
15
|
image: f,
|
|
15
16
|
content: B,
|
|
16
17
|
imageBackground: N,
|
|
@@ -26,53 +27,53 @@ const g = "_card_7amar_1", u = "_clickable_7amar_15", h = "_outlined_7amar_27",
|
|
|
26
27
|
imageTop: a.imageTop,
|
|
27
28
|
imageBackground: a.imageBackground
|
|
28
29
|
};
|
|
29
|
-
function
|
|
30
|
+
function z({
|
|
30
31
|
title: r,
|
|
31
32
|
content: n,
|
|
32
|
-
footer:
|
|
33
|
-
imageSrc:
|
|
34
|
-
imageAlt:
|
|
35
|
-
onClick:
|
|
36
|
-
variant:
|
|
33
|
+
footer: i,
|
|
34
|
+
imageSrc: c,
|
|
35
|
+
imageAlt: d = "Card image",
|
|
36
|
+
onClick: t,
|
|
37
|
+
variant: m = "default",
|
|
37
38
|
clickable: l = !1,
|
|
38
39
|
className: _
|
|
39
40
|
}) {
|
|
40
41
|
return /* @__PURE__ */ o(
|
|
41
42
|
"div",
|
|
42
43
|
{
|
|
43
|
-
className: `${_ ?? ""} ${a.card} ${y[
|
|
44
|
-
onClick:
|
|
45
|
-
role:
|
|
44
|
+
className: `${_ ?? ""} ${a.card} ${y[m]} ${l ? a.clickable : ""}`,
|
|
45
|
+
onClick: t,
|
|
46
|
+
role: t ? "button" : "presentation",
|
|
46
47
|
children: [
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
m === "imageTop" && c && /* @__PURE__ */ e("div", { className: a.imageContainer, children: /* @__PURE__ */ e("img", { src: c, alt: d, className: a.image }) }),
|
|
49
|
+
m === "imageBackground" && c && /* @__PURE__ */ o("div", { className: a.imageBackgroundContainer, children: [
|
|
49
50
|
/* @__PURE__ */ e(
|
|
50
51
|
"img",
|
|
51
52
|
{
|
|
52
|
-
src:
|
|
53
|
-
alt:
|
|
53
|
+
src: c,
|
|
54
|
+
alt: d,
|
|
54
55
|
className: a.backgroundImage
|
|
55
56
|
}
|
|
56
57
|
),
|
|
57
58
|
/* @__PURE__ */ o("div", { className: a.overlay, children: [
|
|
58
59
|
/* @__PURE__ */ o("div", { children: [
|
|
59
|
-
r && /* @__PURE__ */ e(
|
|
60
|
+
r && /* @__PURE__ */ e(s, { level: 3, children: r }),
|
|
60
61
|
n && /* @__PURE__ */ e("div", { className: a.text, children: n })
|
|
61
62
|
] }),
|
|
62
|
-
|
|
63
|
+
i && /* @__PURE__ */ e("div", { className: a.footer, children: i })
|
|
63
64
|
] })
|
|
64
65
|
] }),
|
|
65
|
-
|
|
66
|
+
m !== "imageBackground" && /* @__PURE__ */ o("div", { className: a.content, children: [
|
|
66
67
|
/* @__PURE__ */ o("div", { children: [
|
|
67
|
-
r && /* @__PURE__ */ e(
|
|
68
|
+
r && /* @__PURE__ */ e(s, { level: 3, children: r }),
|
|
68
69
|
n && /* @__PURE__ */ e("div", { className: a.text, children: n })
|
|
69
70
|
] }),
|
|
70
|
-
|
|
71
|
+
i && /* @__PURE__ */ e("div", { className: a.footer, children: i })
|
|
71
72
|
] })
|
|
72
73
|
]
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
76
|
}
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
z as Card
|
|
78
79
|
};
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Carousel as l } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
const c = [
|
|
6
6
|
/* @__PURE__ */ n("div", { children: "Slide 1" }, "1"),
|
|
7
7
|
/* @__PURE__ */ n("div", { children: "Slide 2" }, "2"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as A, useEffect as h } from "react";
|
|
3
3
|
import { A as C } from "../../arrow-left-BIJvHwNQ.js";
|
|
4
4
|
import { A as I } from "../../arrow-right-QEwnX3Sk.js";
|
|
5
|
-
import '../../assets/index31.css';const M = "
|
|
5
|
+
import '../../assets/index31.css';const M = "_carousel_18d0u_5", S = "_track_18d0u_12", W = "_slide_18d0u_18", E = "_controls_18d0u_31", L = "_indicators_18d0u_48", R = "_indicator_18d0u_48", j = "_active_18d0u_63", z = "_buttons_18d0u_67", G = "_prev_18d0u_72", T = "_disabled_18d0u_72", V = "_next_18d0u_73", t = {
|
|
6
6
|
carousel: M,
|
|
7
7
|
track: S,
|
|
8
8
|
slide: W,
|
|
@@ -18,37 +18,37 @@ import '../../assets/index31.css';const M = "_carousel_11egt_5", S = "_track_11e
|
|
|
18
18
|
function H({
|
|
19
19
|
items: c,
|
|
20
20
|
autoPlay: r = !1,
|
|
21
|
-
autoPlayInterval:
|
|
22
|
-
className:
|
|
21
|
+
autoPlayInterval: f = 3e3,
|
|
22
|
+
className: b
|
|
23
23
|
}) {
|
|
24
|
-
const [i, l] =
|
|
25
|
-
|
|
24
|
+
const [i, l] = _(0), [s, v] = _(3), [m, N] = _(!1), d = A(null), $ = i === 0, g = i === c.length - 1, p = Math.ceil(c.length / s);
|
|
25
|
+
h(() => {
|
|
26
26
|
const e = () => {
|
|
27
27
|
l(0);
|
|
28
28
|
const n = window.innerWidth < 768;
|
|
29
|
-
|
|
29
|
+
N(n), v(n ? 1 : 3);
|
|
30
30
|
};
|
|
31
31
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
32
32
|
}, []);
|
|
33
|
-
const
|
|
34
|
-
(r ||
|
|
33
|
+
const a = () => {
|
|
34
|
+
(r || !g) && l(
|
|
35
35
|
(e) => e < c.length - s ? e + s : e
|
|
36
36
|
);
|
|
37
37
|
}, w = () => {
|
|
38
|
-
(r ||
|
|
38
|
+
(r || !$) && l((e) => e > 0 ? e - s : 0);
|
|
39
39
|
}, x = (e) => {
|
|
40
40
|
l(e * s);
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}), [r,
|
|
42
|
+
h(() => (r && (d.current = setInterval(a, f)), () => {
|
|
43
|
+
d.current && clearInterval(d.current);
|
|
44
|
+
}), [r, f, a]);
|
|
45
45
|
const k = () => {
|
|
46
|
-
if (
|
|
46
|
+
if (m)
|
|
47
47
|
return `translateX(calc(-${i * 80}% + 10%))`;
|
|
48
48
|
const e = 100 / s;
|
|
49
49
|
return `translateX(-${i * e}%)`;
|
|
50
50
|
};
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ u("div", { className: `${b ?? ""} ${t.carousel}`, children: [
|
|
52
52
|
/* @__PURE__ */ o(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
@@ -58,7 +58,7 @@ function H({
|
|
|
58
58
|
children: c.map((e, n) => /* @__PURE__ */ o("div", { className: t.slide, children: e }, n))
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
c.length > s && /* @__PURE__ */
|
|
61
|
+
c.length > s && /* @__PURE__ */ u("div", { className: t.controls, children: [
|
|
62
62
|
/* @__PURE__ */ o("div", { className: t.indicators, children: Array.from({ length: p }).map((e, n) => /* @__PURE__ */ o(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
@@ -68,7 +68,7 @@ function H({
|
|
|
68
68
|
},
|
|
69
69
|
n
|
|
70
70
|
)) }),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ u("div", { className: t.buttons, children: [
|
|
72
72
|
/* @__PURE__ */ o(
|
|
73
73
|
"button",
|
|
74
74
|
{
|
|
@@ -83,7 +83,7 @@ function H({
|
|
|
83
83
|
"button",
|
|
84
84
|
{
|
|
85
85
|
className: `${t.next} ${!r && i >= c.length - s ? t.disabled : ""}`,
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: a,
|
|
87
87
|
"aria-label": "Next slide",
|
|
88
88
|
disabled: !r && i >= c.length - s,
|
|
89
89
|
children: /* @__PURE__ */ o(I, {})
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Checkbox as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
n("Checkbox", () => {
|
|
6
6
|
b("renders correctly", () => {
|
|
7
7
|
s(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/index.css';import '../../assets/index39.css';/* empty css */
|
|
3
3
|
import "react";
|
|
4
|
+
import "../../index-CxrBcaoP.js";
|
|
4
5
|
import "../Tabs/index.js";
|
|
5
6
|
import { Label as x } from "../Label/index.js";
|
|
6
7
|
const b = "_wrapper_zxmf0_1", n = "_checkbox_zxmf0_7", h = "_label_zxmf0_29", e = {
|
|
@@ -8,26 +9,26 @@ const b = "_wrapper_zxmf0_1", n = "_checkbox_zxmf0_7", h = "_label_zxmf0_29", e
|
|
|
8
9
|
checkbox: n,
|
|
9
10
|
label: h
|
|
10
11
|
};
|
|
11
|
-
function
|
|
12
|
+
function N({
|
|
12
13
|
id: c,
|
|
13
|
-
name:
|
|
14
|
-
label:
|
|
14
|
+
name: p,
|
|
15
|
+
label: t,
|
|
15
16
|
disabled: o = !1,
|
|
16
17
|
required: r = !1,
|
|
17
|
-
className:
|
|
18
|
-
...
|
|
18
|
+
className: a,
|
|
19
|
+
...s
|
|
19
20
|
}) {
|
|
20
|
-
return /* @__PURE__ */ m("div", { className: `${
|
|
21
|
+
return /* @__PURE__ */ m("div", { className: `${a ?? ""} ${e.wrapper}`, children: [
|
|
21
22
|
/* @__PURE__ */ l(
|
|
22
23
|
"input",
|
|
23
24
|
{
|
|
24
25
|
type: "checkbox",
|
|
25
26
|
id: c,
|
|
26
|
-
name:
|
|
27
|
+
name: p,
|
|
27
28
|
disabled: o,
|
|
28
29
|
required: r,
|
|
29
30
|
className: e.checkbox,
|
|
30
|
-
...
|
|
31
|
+
...s
|
|
31
32
|
}
|
|
32
33
|
),
|
|
33
34
|
/* @__PURE__ */ l(
|
|
@@ -37,11 +38,11 @@ function z({
|
|
|
37
38
|
disabled: o,
|
|
38
39
|
required: r,
|
|
39
40
|
className: e.label,
|
|
40
|
-
children:
|
|
41
|
+
children: t
|
|
41
42
|
}
|
|
42
43
|
)
|
|
43
44
|
] });
|
|
44
45
|
}
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
N as Checkbox
|
|
47
48
|
};
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Container as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { DatePicker as o } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
5
|
-
import { f as u } from "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
|
+
import { f as u } from "../../index-BM1mGWJK.js";
|
|
6
6
|
r.mock("../Calendar", () => ({
|
|
7
7
|
Calendar: ({ onSelectDate: e }) => /* @__PURE__ */ n(
|
|
8
8
|
"button",
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i } from "react";
|
|
3
3
|
import '../../assets/index.css';import '../../assets/index42.css';/* empty css */
|
|
4
|
+
import "../../index-CxrBcaoP.js";
|
|
4
5
|
import "../Tabs/index.js";
|
|
5
6
|
import { Label as w } from "../Label/index.js";
|
|
6
|
-
import { f as x, C as D } from "../../index-
|
|
7
|
-
const S = "_wrapper_13tha_1", N = "_input_13tha_7", O = "_popover_13tha_25",
|
|
7
|
+
import { f as x, C as D } from "../../index-BM1mGWJK.js";
|
|
8
|
+
const S = "_wrapper_13tha_1", N = "_input_13tha_7", O = "_popover_13tha_25", o = {
|
|
8
9
|
wrapper: S,
|
|
9
10
|
input: N,
|
|
10
11
|
popover: O
|
|
11
12
|
};
|
|
12
|
-
function
|
|
13
|
-
id:
|
|
14
|
-
name:
|
|
15
|
-
label:
|
|
13
|
+
function P({
|
|
14
|
+
id: s,
|
|
15
|
+
name: m,
|
|
16
|
+
label: n,
|
|
16
17
|
onValueChange: r,
|
|
17
18
|
required: a = !1,
|
|
18
19
|
disabled: c = !1,
|
|
@@ -22,13 +23,13 @@ function L({
|
|
|
22
23
|
...v
|
|
23
24
|
}) {
|
|
24
25
|
const [p, y] = i(null), [u, l] = i(!1);
|
|
25
|
-
return /* @__PURE__ */ h("div", { className: `${d ?? ""} ${
|
|
26
|
-
/* @__PURE__ */ e(w, { htmlFor:
|
|
26
|
+
return /* @__PURE__ */ h("div", { className: `${d ?? ""} ${o.wrapper}`, children: [
|
|
27
|
+
/* @__PURE__ */ e(w, { htmlFor: s, required: a, disabled: c, children: n }),
|
|
27
28
|
/* @__PURE__ */ e(
|
|
28
29
|
"input",
|
|
29
30
|
{
|
|
30
|
-
id:
|
|
31
|
-
name:
|
|
31
|
+
id: s,
|
|
32
|
+
name: m,
|
|
32
33
|
type: "text",
|
|
33
34
|
readOnly: !0,
|
|
34
35
|
value: p ? x(p, "yyyy-MM-dd") : "",
|
|
@@ -38,11 +39,11 @@ function L({
|
|
|
38
39
|
disabled: c,
|
|
39
40
|
min: f,
|
|
40
41
|
max: _,
|
|
41
|
-
className:
|
|
42
|
+
className: o.input,
|
|
42
43
|
...v
|
|
43
44
|
}
|
|
44
45
|
),
|
|
45
|
-
u && /* @__PURE__ */ e("div", { className:
|
|
46
|
+
u && /* @__PURE__ */ e("div", { className: o.popover, children: /* @__PURE__ */ e(
|
|
46
47
|
D,
|
|
47
48
|
{
|
|
48
49
|
selectedDate: p,
|
|
@@ -54,5 +55,5 @@ function L({
|
|
|
54
55
|
] });
|
|
55
56
|
}
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
P as DatePicker
|
|
58
59
|
};
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { Divider as a } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Drawer as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Fieldset as i } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { FileUpload as r } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as x, useState as h } from "react";
|
|
3
3
|
import '../../assets/index.css';import '../../assets/index44.css';/* empty css */
|
|
4
4
|
import { IconButton as N } from "../IconButton/index.js";
|
|
5
|
+
import "../../index-CxrBcaoP.js";
|
|
5
6
|
import "../Tabs/index.js";
|
|
6
7
|
import { Label as Z } from "../Label/index.js";
|
|
7
8
|
import { T as z } from "../../trash-2-2Rn0a4s6.js";
|
|
@@ -12,7 +13,7 @@ const I = "_wrapper_s8dew_1", R = "_dropZone_s8dew_7", T = "_dragging_s8dew_25",
|
|
|
12
13
|
input: j,
|
|
13
14
|
fileList: A
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
+
function F({
|
|
16
17
|
id: D,
|
|
17
18
|
name: w,
|
|
18
19
|
label: c = "Upload files",
|
|
@@ -23,7 +24,7 @@ function M({
|
|
|
23
24
|
className: v,
|
|
24
25
|
onFilesChange: s
|
|
25
26
|
}) {
|
|
26
|
-
const a = x(null), [d,
|
|
27
|
+
const a = x(null), [d, p] = h(!1), [t, m] = h([]), u = (e) => {
|
|
27
28
|
if (!e) return;
|
|
28
29
|
const r = Array.from(e);
|
|
29
30
|
m((_) => [..._, ...r]), s(r);
|
|
@@ -31,7 +32,7 @@ function M({
|
|
|
31
32
|
const r = t.filter((_, $) => $ !== e);
|
|
32
33
|
m(r), s == null || s(r);
|
|
33
34
|
}, g = D ?? `upload-${Math.random().toString(36).slice(2)}`;
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ l("div", { className: `${v ?? ""} ${i.wrapper}`, children: [
|
|
35
36
|
c && /* @__PURE__ */ n(Z, { htmlFor: g, required: f, disabled: o, children: c }),
|
|
36
37
|
/* @__PURE__ */ n(
|
|
37
38
|
"div",
|
|
@@ -42,11 +43,11 @@ function M({
|
|
|
42
43
|
return !o && ((e = a.current) == null ? void 0 : e.click());
|
|
43
44
|
},
|
|
44
45
|
onDragOver: (e) => {
|
|
45
|
-
e.preventDefault(), o ||
|
|
46
|
+
e.preventDefault(), o || p(!0);
|
|
46
47
|
},
|
|
47
|
-
onDragLeave: () =>
|
|
48
|
+
onDragLeave: () => p(!1),
|
|
48
49
|
onDrop: (e) => {
|
|
49
|
-
e.preventDefault(), o || (
|
|
50
|
+
e.preventDefault(), o || (p(!1), u(e.dataTransfer.files));
|
|
50
51
|
},
|
|
51
52
|
role: "button",
|
|
52
53
|
tabIndex: 0,
|
|
@@ -74,8 +75,8 @@ function M({
|
|
|
74
75
|
hidden: !0
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
(t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n("ul", { className: i.fileList, children: t == null ? void 0 : t.map((e, r) => /* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
(t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ n("ul", { className: i.fileList, children: t == null ? void 0 : t.map((e, r) => /* @__PURE__ */ l("li", { children: [
|
|
79
|
+
/* @__PURE__ */ l("span", { children: [
|
|
79
80
|
" ",
|
|
80
81
|
e.name,
|
|
81
82
|
" (",
|
|
@@ -97,5 +98,5 @@ function M({
|
|
|
97
98
|
] });
|
|
98
99
|
}
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
F as FileUpload
|
|
101
102
|
};
|
|
@@ -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-CZ8iFAMK.js";
|
|
3
3
|
import { FloatingActionButton as c } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.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-CZ8iFAMK.js";
|
|
3
3
|
import { Form as m } from "./index.js";
|
|
4
|
-
import "../../index-
|
|
4
|
+
import "../../index-BBIdMcpm.js";
|
|
5
5
|
i("Form", () => {
|
|
6
6
|
o("renders children", () => {
|
|
7
7
|
r(
|