@vehiclehistory/property-lib 0.0.5 → 0.0.6
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/LoadingBar.css +1 -0
- package/dist/components/Accordion/Accordion.js +69 -0
- package/dist/components/Alert/Alert.js +66 -0
- package/dist/components/Autocomplete/Autocomplete.js +173 -0
- package/dist/components/Badge/Badge.js +25 -0
- package/dist/components/Button/Button.js +43 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +6 -0
- package/dist/components/Card/Card.js +32 -0
- package/dist/components/Checkbox/Checkbox.js +44 -0
- package/dist/components/Container/Container.js +33 -0
- package/dist/components/Dialog/Dialog.js +88 -0
- package/dist/components/Dialog/DialogOld.js +109 -0
- package/dist/components/Dots/Dots.js +15 -0
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/icons.js +475 -0
- package/dist/components/Loading/LoadingBar.d.ts +3 -0
- package/dist/components/Loading/LoadingBar.js +48 -0
- package/dist/components/Loading/Spinner.js +18 -0
- package/dist/components/Popover/Popover.js +57 -0
- package/dist/components/Progress/ProgressBar.js +50 -0
- package/dist/components/Radio/Radio.js +46 -0
- package/dist/components/Select/Select.js +61 -0
- package/dist/components/Skeleton/Skeleton.js +20 -0
- package/dist/components/Slider/Slider.js +58 -0
- package/dist/components/Stars/Stars.js +23 -0
- package/dist/components/Swiper/Swiper.js +107 -0
- package/dist/components/Text/TextArea.js +53 -0
- package/dist/components/Text/Textbox.js +78 -0
- package/dist/components/index.js +50 -0
- package/dist/main.js +52 -0
- package/dist/scripts/index.js +764 -0
- package/package.json +4 -1
- package/dist/property-ui-lib.js +0 -2357
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.loading-bar{@apply bg-gray-50 overflow-hidden relative;box-shadow:2px 0 10px inset #0003}.loading-bar .loading-bar--inner{@apply w-0 h-full;background-size:30px 30px;animation:move 2s linear infinite;box-shadow:2px 0 10px inset #0003}.loading-bar.loading-bar--primary{@apply rounded-md;}.loading-bar.loading-bar--primary .loading-bar--inner{@apply bg-[#767676];background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent)}.loading-bar.loading-bar--secondary .loading-bar--inner{@apply bg-[#909090];}.loading-bar .perc{@apply absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 text-white font-bold;}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, useState as f } from "react";
|
|
3
|
+
import g from "../Icon/Icon.js";
|
|
4
|
+
import o from "classnames";
|
|
5
|
+
const p = ({
|
|
6
|
+
children: a,
|
|
7
|
+
className: d,
|
|
8
|
+
clickHandler: s,
|
|
9
|
+
panelClass: n,
|
|
10
|
+
title: t,
|
|
11
|
+
unmount: c = !0,
|
|
12
|
+
isOpen: l = !1
|
|
13
|
+
}) => {
|
|
14
|
+
const [r, m] = f(l);
|
|
15
|
+
return /* @__PURE__ */ e("div", { className: o("shadow rounded-lg", d), children: /* @__PURE__ */ i(b, { children: [
|
|
16
|
+
/* @__PURE__ */ i(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
type: "button",
|
|
20
|
+
"data-div-track": `report | accordion | ${t}`,
|
|
21
|
+
className: o(
|
|
22
|
+
"acc-a flex w-full justify-between items-center bg-gray-50 px-4 py-2 text-left font-medium text-slate-700 border border-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-gray-500 focus-visible:ring-opacity-75",
|
|
23
|
+
{
|
|
24
|
+
"acc-o": r
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
title: t,
|
|
28
|
+
onClick: () => {
|
|
29
|
+
m(!r), s && s(!r);
|
|
30
|
+
},
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ e("div", { className: "font-medium text-slate-700 sm-max:!text-base text-lg flex items-center", children: t }),
|
|
33
|
+
/* @__PURE__ */ e("span", { className: "ml-6 h-7 flex items-center", children: /* @__PURE__ */ e(
|
|
34
|
+
g,
|
|
35
|
+
{
|
|
36
|
+
name: "chevronDown",
|
|
37
|
+
size: "small",
|
|
38
|
+
className: "transition-all duration-75"
|
|
39
|
+
}
|
|
40
|
+
) })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
c && r && /* @__PURE__ */ e(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: o(
|
|
48
|
+
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
49
|
+
n
|
|
50
|
+
),
|
|
51
|
+
children: a
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
!c && /* @__PURE__ */ e(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: o(
|
|
58
|
+
"acc-p p-4 border-x border-b rounded-bl-lg rounded-br-lg border-gray-200 relative",
|
|
59
|
+
n,
|
|
60
|
+
{ hidden: !r }
|
|
61
|
+
),
|
|
62
|
+
children: a
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }) });
|
|
66
|
+
}, N = u(p);
|
|
67
|
+
export {
|
|
68
|
+
N as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f } from "react";
|
|
3
|
+
import s from "classnames";
|
|
4
|
+
import h from "../Icon/Icon.js";
|
|
5
|
+
const g = ({
|
|
6
|
+
children: y,
|
|
7
|
+
className: t = "",
|
|
8
|
+
messages: r = [],
|
|
9
|
+
title: i = "",
|
|
10
|
+
titleClass: n = "",
|
|
11
|
+
props: c = {},
|
|
12
|
+
type: l = "error"
|
|
13
|
+
}) => {
|
|
14
|
+
const d = {
|
|
15
|
+
error: {
|
|
16
|
+
icon: "error",
|
|
17
|
+
iconColor: "text-red-500",
|
|
18
|
+
styles: "bg-red-500/10 border-red-300 text-red-700"
|
|
19
|
+
},
|
|
20
|
+
info: {
|
|
21
|
+
icon: "info",
|
|
22
|
+
iconColor: "text-blue-500",
|
|
23
|
+
styles: "bg-blue-50 border-blue-300 text-blue-800"
|
|
24
|
+
},
|
|
25
|
+
success: {
|
|
26
|
+
icon: "success",
|
|
27
|
+
iconColor: "text-green-500",
|
|
28
|
+
styles: "bg-green-50 border-green-300 text-green-800"
|
|
29
|
+
},
|
|
30
|
+
warning: {
|
|
31
|
+
icon: "warningAlert",
|
|
32
|
+
iconColor: "text-yellow-500",
|
|
33
|
+
styles: "bg-yellow-50 border-yellow-300 text-yellow-700"
|
|
34
|
+
}
|
|
35
|
+
}, { icon: m, iconColor: a, styles: x } = d[l];
|
|
36
|
+
return /* @__PURE__ */ e(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
id: l,
|
|
40
|
+
className: s(
|
|
41
|
+
"rounded w-full py-2 px-4 mb-4 border",
|
|
42
|
+
x,
|
|
43
|
+
t
|
|
44
|
+
),
|
|
45
|
+
...c,
|
|
46
|
+
children: /* @__PURE__ */ o("div", { className: "flex", children: [
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
name: m,
|
|
51
|
+
viewBox: "0 0 24 24",
|
|
52
|
+
className: a,
|
|
53
|
+
size: "xSmall"
|
|
54
|
+
}
|
|
55
|
+
) }),
|
|
56
|
+
/* @__PURE__ */ o("div", { className: "ml-3", children: [
|
|
57
|
+
/* @__PURE__ */ e("div", { className: s("font-medium text-sm", n), children: i }),
|
|
58
|
+
r.length > 0 ? /* @__PURE__ */ e("div", { className: "mt-2 text-xs", children: /* @__PURE__ */ e("ul", { role: "list", className: "list-disc space-y-1 pl-5", children: r.map((b, u) => /* @__PURE__ */ e("li", { children: b }, u)) }) }) : ""
|
|
59
|
+
] })
|
|
60
|
+
] })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}, C = f(g);
|
|
64
|
+
export {
|
|
65
|
+
C as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import s from "../Icon/Icon.js";
|
|
4
|
+
const A = ({
|
|
5
|
+
autoFocus: p = !1,
|
|
6
|
+
required: h = !1,
|
|
7
|
+
className: u = "",
|
|
8
|
+
defaultValue: x = "",
|
|
9
|
+
id: f = "",
|
|
10
|
+
type: b,
|
|
11
|
+
floatingLabel: r = "",
|
|
12
|
+
inputClass: g = "",
|
|
13
|
+
leftIcon: w = "homeSearch",
|
|
14
|
+
mobileBackdrop: y = !1,
|
|
15
|
+
showSearchIcon: o = !0,
|
|
16
|
+
options: d = [],
|
|
17
|
+
name: v = "",
|
|
18
|
+
placeholder: i = "",
|
|
19
|
+
props: N = {},
|
|
20
|
+
size: a = "medium",
|
|
21
|
+
styles: m = null,
|
|
22
|
+
title: B = ""
|
|
23
|
+
}) => /* @__PURE__ */ c(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
id: f,
|
|
27
|
+
"data-search": "container",
|
|
28
|
+
"data-search-type": b,
|
|
29
|
+
className: l("Autocomplete", u),
|
|
30
|
+
style: m ? { ...m } : null,
|
|
31
|
+
children: [
|
|
32
|
+
o && /* @__PURE__ */ c(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
className: l(
|
|
36
|
+
"search-icon-left absolute inset-y-0 left-0 flex items-center pl-2",
|
|
37
|
+
{
|
|
38
|
+
"pointer-events-none": y
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ e(
|
|
43
|
+
s,
|
|
44
|
+
{
|
|
45
|
+
className: "home-search select-none text-gray-500",
|
|
46
|
+
name: w,
|
|
47
|
+
size: a === "xLarge" ? "small" : "xSmall",
|
|
48
|
+
viewBox: "0 0 24 24"
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
s,
|
|
53
|
+
{
|
|
54
|
+
className: "arrow-left select-none text-gray-500 hidden",
|
|
55
|
+
name: "arrowLeft",
|
|
56
|
+
size: a === "xLarge" ? "small" : "xSmall",
|
|
57
|
+
viewBox: "0 0 24 24"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ e(
|
|
64
|
+
"input",
|
|
65
|
+
{
|
|
66
|
+
"data-lpignore": "true",
|
|
67
|
+
autoFocus: p,
|
|
68
|
+
className: l(
|
|
69
|
+
"w-full bg-white placeholder:bg-white rounded border border-gray-300 py-2 pr-8 shadow-sm focus:outline-none sm-max:text-sm placeholder:text-gray-500 sm-max:placeholder:text-sm placeholder-shown:text-ellipsis truncate",
|
|
70
|
+
{
|
|
71
|
+
"pl-8": o === !0,
|
|
72
|
+
"px-3 h-10": a === "medium",
|
|
73
|
+
"px-4 h-12": a === "large",
|
|
74
|
+
"px-5 h-[60px] sm:!text-base": a === "xLarge",
|
|
75
|
+
peer: r
|
|
76
|
+
},
|
|
77
|
+
g
|
|
78
|
+
),
|
|
79
|
+
required: h,
|
|
80
|
+
autoComplete: "off",
|
|
81
|
+
value: x,
|
|
82
|
+
placeholder: !i && r ? " " : i,
|
|
83
|
+
type: "search",
|
|
84
|
+
name: v || "search-input",
|
|
85
|
+
"data-id": "search-input",
|
|
86
|
+
...N
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
r && /* @__PURE__ */ e(
|
|
90
|
+
"label",
|
|
91
|
+
{
|
|
92
|
+
className: l(
|
|
93
|
+
"floating-label absolute text-sm !normal-case text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:text-[#222] peer-focus:px-2 peer-focus:bg-white peer-placeholder-shown:bg-white peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 start-1 pointer-events-none",
|
|
94
|
+
{
|
|
95
|
+
"!left-7": o === !0,
|
|
96
|
+
"left-2": a === "medium",
|
|
97
|
+
"left-3": a === "large",
|
|
98
|
+
"left-4": a === "xLarge"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
children: r
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e(
|
|
105
|
+
"span",
|
|
106
|
+
{
|
|
107
|
+
"data-id": "search-clear",
|
|
108
|
+
className: "clear-btn absolute inset-y-0 right-0 flex items-center px-2 hidden",
|
|
109
|
+
children: /* @__PURE__ */ e(
|
|
110
|
+
s,
|
|
111
|
+
{
|
|
112
|
+
className: "cursor-pointer text-gray-500",
|
|
113
|
+
name: "xCircle",
|
|
114
|
+
size: "xSmall",
|
|
115
|
+
viewBox: "0 0 20 20"
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ e(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
"data-id": "search-loading",
|
|
124
|
+
className: "absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none hidden",
|
|
125
|
+
children: /* @__PURE__ */ e(
|
|
126
|
+
s,
|
|
127
|
+
{
|
|
128
|
+
className: "animate-spin text-[#222]] pointer-events-none",
|
|
129
|
+
name: "spinnerDark",
|
|
130
|
+
size: "xSmall",
|
|
131
|
+
viewBox: "0 0 24 24"
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ c(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
"data-id": "search-dropdown",
|
|
140
|
+
className: "dropdown absolute z-[15] w-full bg-white shadow-lg max-h-56 rounded-bl rounded-br py-1 overflow-auto focus:outline-none sm:text-sm sm:custom-scrollbar border-x border-b border-gray-300 hidden",
|
|
141
|
+
children: [
|
|
142
|
+
/* @__PURE__ */ e("div", { "data-id": "search-dropdown-header" }),
|
|
143
|
+
/* @__PURE__ */ e(
|
|
144
|
+
"ul",
|
|
145
|
+
{
|
|
146
|
+
"data-id": "search-dropdown-body",
|
|
147
|
+
role: "listbox",
|
|
148
|
+
"data-title": B,
|
|
149
|
+
"aria-labelledby": "Label",
|
|
150
|
+
"aria-activedescendant": "search-item-0",
|
|
151
|
+
children: d.length > 0 ? d.map((t, n) => /* @__PURE__ */ e(
|
|
152
|
+
"li",
|
|
153
|
+
{
|
|
154
|
+
id: `search-item-${n}`,
|
|
155
|
+
tabIndex: -1,
|
|
156
|
+
className: "dropdown-item text-gray-900 cursor-default select-none py-2 pl-3 pr-4 truncate hover:bg-gray-50 font-normal focus:bg-gray-50 focus:text-green-400 focus-visible:outline-0",
|
|
157
|
+
"aria-selected": n === 0,
|
|
158
|
+
role: "option",
|
|
159
|
+
children: (t == null ? void 0 : t.name) || t
|
|
160
|
+
},
|
|
161
|
+
`search-item-${n}`
|
|
162
|
+
)) : ""
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
export {
|
|
172
|
+
A as default
|
|
173
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import o from "classnames";
|
|
3
|
+
const n = ({
|
|
4
|
+
children: t,
|
|
5
|
+
className: x = "",
|
|
6
|
+
size: s = "sm",
|
|
7
|
+
tag: a = "span"
|
|
8
|
+
}) => /* @__PURE__ */ m(
|
|
9
|
+
a || "span",
|
|
10
|
+
{
|
|
11
|
+
className: o(
|
|
12
|
+
" bg-gray-200 font-semibold py-1 px-2 rounded-md",
|
|
13
|
+
{
|
|
14
|
+
"text-sm": s === "sm",
|
|
15
|
+
"text-xs": s === "xs",
|
|
16
|
+
"text-xxs !py-0.5 !px-1.5": s === "xxs"
|
|
17
|
+
},
|
|
18
|
+
x
|
|
19
|
+
),
|
|
20
|
+
children: t
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
n as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as B } from "react";
|
|
3
|
+
import p from "classnames";
|
|
4
|
+
const y = ({
|
|
5
|
+
children: u,
|
|
6
|
+
className: m = "",
|
|
7
|
+
disabled: n = !1,
|
|
8
|
+
href: o,
|
|
9
|
+
props: r = {},
|
|
10
|
+
rounded: a = !1,
|
|
11
|
+
type: e = "button",
|
|
12
|
+
uppercase: l = !1,
|
|
13
|
+
variation: t = "primary"
|
|
14
|
+
}) => {
|
|
15
|
+
const s = o ? "a" : "button";
|
|
16
|
+
return /* @__PURE__ */ c(
|
|
17
|
+
s,
|
|
18
|
+
{
|
|
19
|
+
type: s !== "a" ? e : null,
|
|
20
|
+
className: p(
|
|
21
|
+
"Button",
|
|
22
|
+
{
|
|
23
|
+
"Button--primary": t === "primary",
|
|
24
|
+
"Button--secondary": t === "secondary",
|
|
25
|
+
"Button--rounded": a,
|
|
26
|
+
"Button--icon": t === "icon",
|
|
27
|
+
"Button--link": t === "link",
|
|
28
|
+
"Button--disabled": n,
|
|
29
|
+
"custom-link": o
|
|
30
|
+
},
|
|
31
|
+
l,
|
|
32
|
+
m
|
|
33
|
+
),
|
|
34
|
+
disabled: n,
|
|
35
|
+
href: o,
|
|
36
|
+
...r,
|
|
37
|
+
children: u
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}, k = B(y);
|
|
41
|
+
export {
|
|
42
|
+
k as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "classnames";
|
|
3
|
+
const i = ({ children: r, className: d }) => /* @__PURE__ */ e("div", { className: o("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", d), children: r });
|
|
4
|
+
export {
|
|
5
|
+
i as default
|
|
6
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import u from "classnames";
|
|
3
|
+
const c = ({
|
|
4
|
+
block: e = !1,
|
|
5
|
+
borderless: r = !1,
|
|
6
|
+
children: s,
|
|
7
|
+
className: a = "",
|
|
8
|
+
divider: f = !0,
|
|
9
|
+
inset: l = !0,
|
|
10
|
+
id: t = null,
|
|
11
|
+
role: m = null
|
|
12
|
+
}) => /* @__PURE__ */ o(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: u(
|
|
16
|
+
"bg-white",
|
|
17
|
+
{
|
|
18
|
+
f1: !r,
|
|
19
|
+
f2: e,
|
|
20
|
+
f3: f,
|
|
21
|
+
f4: l
|
|
22
|
+
},
|
|
23
|
+
a
|
|
24
|
+
),
|
|
25
|
+
id: t,
|
|
26
|
+
role: m,
|
|
27
|
+
children: s
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
c as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as d, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h } from "react";
|
|
3
|
+
import o from "classnames";
|
|
4
|
+
const p = ({
|
|
5
|
+
checked: s = !1,
|
|
6
|
+
children: c,
|
|
7
|
+
className: t = "",
|
|
8
|
+
error: a = !1,
|
|
9
|
+
id: e = "",
|
|
10
|
+
label: l = "",
|
|
11
|
+
name: m = "",
|
|
12
|
+
props: b = {},
|
|
13
|
+
variation: f = "primary",
|
|
14
|
+
value: n = ""
|
|
15
|
+
}) => {
|
|
16
|
+
const r = l ? "div" : "label", x = r === "label" ? { htmlFor: e } : {};
|
|
17
|
+
return /* @__PURE__ */ d(
|
|
18
|
+
r,
|
|
19
|
+
{
|
|
20
|
+
className: o("checkbox flex items-center", f, t),
|
|
21
|
+
...x,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ i(
|
|
24
|
+
"input",
|
|
25
|
+
{
|
|
26
|
+
checked: s,
|
|
27
|
+
className: o("form-checkbox ", {
|
|
28
|
+
"!border-red-500 !bg-red-500 focus:!ring-red-500 focus:!border-red-500": a
|
|
29
|
+
}),
|
|
30
|
+
id: e,
|
|
31
|
+
name: m,
|
|
32
|
+
type: "checkbox",
|
|
33
|
+
value: n,
|
|
34
|
+
...b
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
c
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}, j = h(p);
|
|
42
|
+
export {
|
|
43
|
+
j as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as d } from "react";
|
|
3
|
+
import l from "classnames";
|
|
4
|
+
const o = ({ children: a, aside: r, direction: m = "right" }) => /* @__PURE__ */ s("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
|
|
5
|
+
/* @__PURE__ */ e(
|
|
6
|
+
"main",
|
|
7
|
+
{
|
|
8
|
+
className: l(
|
|
9
|
+
"w-full md:mb-0 flex-1 md:block lg:max-w-container",
|
|
10
|
+
{
|
|
11
|
+
"lg:order-2": m === "left"
|
|
12
|
+
}
|
|
13
|
+
),
|
|
14
|
+
children: a
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ e(
|
|
18
|
+
"aside",
|
|
19
|
+
{
|
|
20
|
+
className: l(
|
|
21
|
+
"sm-max:hidden md:hidden lg:block flex-1 max-w-aside mb-6 md:mb-0 empty:!hidden",
|
|
22
|
+
{
|
|
23
|
+
"md:ml-8": m === "right",
|
|
24
|
+
"md:mr-8": m === "left"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
children: r
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
] }), f = d(o);
|
|
31
|
+
export {
|
|
32
|
+
f as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as $ } from "react";
|
|
3
|
+
import i from "classnames";
|
|
4
|
+
import j from "../Icon/Icon.js";
|
|
5
|
+
const v = ({
|
|
6
|
+
activator: s,
|
|
7
|
+
id: o = "",
|
|
8
|
+
children: t,
|
|
9
|
+
className: d = "",
|
|
10
|
+
contentClass: n = "",
|
|
11
|
+
dark: c = !1,
|
|
12
|
+
footer: r,
|
|
13
|
+
fullMobile: m = !0,
|
|
14
|
+
headerClass: g = "",
|
|
15
|
+
hideClose: f = !1,
|
|
16
|
+
iconSize: h = "medium",
|
|
17
|
+
preventPageScroll: p = !0,
|
|
18
|
+
stickyHeader: u = !1,
|
|
19
|
+
title: l = "",
|
|
20
|
+
titleClass: b = ""
|
|
21
|
+
}) => /* @__PURE__ */ a(N, { children: [
|
|
22
|
+
s && /* @__PURE__ */ e("span", { id: `${o}-dialog-activator`, children: s }),
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
"dialog",
|
|
25
|
+
{
|
|
26
|
+
inert: "",
|
|
27
|
+
id: `${o}-dialog`,
|
|
28
|
+
className: i(
|
|
29
|
+
"dialog",
|
|
30
|
+
{
|
|
31
|
+
"dialog-full-mobile": m,
|
|
32
|
+
dark: c,
|
|
33
|
+
"prevent-scroll": p
|
|
34
|
+
},
|
|
35
|
+
d
|
|
36
|
+
),
|
|
37
|
+
children: /* @__PURE__ */ a("form", { method: "dialog", children: [
|
|
38
|
+
/* @__PURE__ */ a(
|
|
39
|
+
"header",
|
|
40
|
+
{
|
|
41
|
+
className: i(
|
|
42
|
+
"dialog-header flex items-center p-4",
|
|
43
|
+
{
|
|
44
|
+
"sticky top-0 bg-white z-10": u,
|
|
45
|
+
"!pb-0 border-0 justify-end": !l,
|
|
46
|
+
"justify-between border-b": l
|
|
47
|
+
},
|
|
48
|
+
g
|
|
49
|
+
),
|
|
50
|
+
children: [
|
|
51
|
+
l && /* @__PURE__ */ e("h3", { id: `${o}-dialog-title`, className: b, children: l }),
|
|
52
|
+
!f && /* @__PURE__ */ e(
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
type: "button",
|
|
56
|
+
title: "Close",
|
|
57
|
+
className: "dialog-close",
|
|
58
|
+
"data-dialog-close": "",
|
|
59
|
+
value: "close",
|
|
60
|
+
children: /* @__PURE__ */ e(
|
|
61
|
+
j,
|
|
62
|
+
{
|
|
63
|
+
name: "close",
|
|
64
|
+
size: h,
|
|
65
|
+
className: "pointer-events-none"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
id: `${o}-dialog-content`,
|
|
77
|
+
className: i("dialog-content", n),
|
|
78
|
+
children: t
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
r && /* @__PURE__ */ e("footer", { id: `${o}-dialog-footer`, className: "dialog-footer", children: r })
|
|
82
|
+
] })
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }), D = $(v);
|
|
86
|
+
export {
|
|
87
|
+
D as default
|
|
88
|
+
};
|