@vehiclehistory/property-lib 0.0.8 → 0.0.9
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/property-lib.js +2339 -0
- package/package.json +1 -1
- package/dist/components/Accordion/Accordion.js +0 -69
- package/dist/components/Alert/Alert.js +0 -66
- package/dist/components/Autocomplete/Autocomplete.js +0 -173
- package/dist/components/Badge/Badge.js +0 -25
- package/dist/components/Button/Button.js +0 -43
- package/dist/components/ButtonGroup/ButtonGroup.js +0 -6
- package/dist/components/Card/Card.js +0 -32
- package/dist/components/Checkbox/Checkbox.js +0 -44
- package/dist/components/Container/Container.js +0 -33
- package/dist/components/Dialog/Dialog.js +0 -88
- package/dist/components/Dialog/DialogOld.js +0 -109
- package/dist/components/Dots/Dots.js +0 -15
- package/dist/components/Icon/Icon.js +0 -32
- package/dist/components/Icon/icons.js +0 -475
- package/dist/components/Loading/LoadingBar.js +0 -48
- package/dist/components/Loading/Spinner.js +0 -18
- package/dist/components/Popover/Popover.js +0 -57
- package/dist/components/Progress/ProgressBar.js +0 -50
- package/dist/components/Radio/Radio.js +0 -46
- package/dist/components/Select/Select.js +0 -61
- package/dist/components/Skeleton/Skeleton.js +0 -20
- package/dist/components/Slider/Slider.js +0 -58
- package/dist/components/Stars/Stars.js +0 -23
- package/dist/components/Swiper/Swiper.js +0 -107
- package/dist/components/Text/TextArea.js +0 -53
- package/dist/components/Text/Textbox.js +0 -78
- package/dist/components/index.js +0 -50
- package/dist/main.js +0 -52
- package/dist/scripts/index.js +0 -764
- package/dist/styles.css +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as g } from "react";
|
|
3
|
-
import l from "classnames";
|
|
4
|
-
const h = ({
|
|
5
|
-
ariaValuemax: i = 100,
|
|
6
|
-
ariaValuemin: o = 0,
|
|
7
|
-
bgColor: n = "bg-orange-500",
|
|
8
|
-
className: u,
|
|
9
|
-
completed: r = 0,
|
|
10
|
-
maxCompleted: d = 100,
|
|
11
|
-
rounded: f = !0,
|
|
12
|
-
showLabel: m = !1
|
|
13
|
-
}) => {
|
|
14
|
-
const t = ((a, c) => {
|
|
15
|
-
if (a) {
|
|
16
|
-
const s = Number(c) / a;
|
|
17
|
-
return s > 1 ? 100 : s * 100;
|
|
18
|
-
}
|
|
19
|
-
return r;
|
|
20
|
-
})(d, r);
|
|
21
|
-
return /* @__PURE__ */ e(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
className: l(
|
|
25
|
-
"w-full bg-gray-200",
|
|
26
|
-
{ "rounded-full": f },
|
|
27
|
-
u
|
|
28
|
-
),
|
|
29
|
-
role: "progressbar",
|
|
30
|
-
"aria-label": "Progress Bar",
|
|
31
|
-
"aria-valuenow": r,
|
|
32
|
-
"aria-valuemin": o,
|
|
33
|
-
"aria-valuemax": i,
|
|
34
|
-
children: /* @__PURE__ */ e(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
className: l(
|
|
38
|
-
"h-full text-right flex items-center justify-end rounded-full",
|
|
39
|
-
n
|
|
40
|
-
),
|
|
41
|
-
style: { width: `${t}%` },
|
|
42
|
-
children: m && /* @__PURE__ */ e("span", { className: "font-bold text-white text-xs mr-2", children: Math.round(t) })
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
}, N = g(h);
|
|
48
|
-
export {
|
|
49
|
-
N as default
|
|
50
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { memo as d } from "react";
|
|
3
|
-
import s from "classnames";
|
|
4
|
-
const g = ({
|
|
5
|
-
checked: a = !1,
|
|
6
|
-
children: e,
|
|
7
|
-
className: t = "",
|
|
8
|
-
id: o = "",
|
|
9
|
-
label: i = "",
|
|
10
|
-
name: m = "",
|
|
11
|
-
props: n = {},
|
|
12
|
-
variation: l = "primary",
|
|
13
|
-
value: c = ""
|
|
14
|
-
}) => {
|
|
15
|
-
const r = i ? "div" : "label", f = r === "label" ? { htmlFor: o } : {};
|
|
16
|
-
return /* @__PURE__ */ p(
|
|
17
|
-
r,
|
|
18
|
-
{
|
|
19
|
-
className: s("radio flex items-center", t),
|
|
20
|
-
...f,
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ u(
|
|
23
|
-
"input",
|
|
24
|
-
{
|
|
25
|
-
checked: a,
|
|
26
|
-
className: s(
|
|
27
|
-
"form-radio focus:ring-2 focus:ring-offset-2 focus-within:outline-none",
|
|
28
|
-
{
|
|
29
|
-
"focus:ring-[#222]": l === "primary"
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
id: o,
|
|
33
|
-
name: m,
|
|
34
|
-
type: "radio",
|
|
35
|
-
value: c,
|
|
36
|
-
...n
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
e
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}, y = d(g);
|
|
44
|
-
export {
|
|
45
|
-
y as default
|
|
46
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { memo as S } from "react";
|
|
3
|
-
import c from "classnames";
|
|
4
|
-
const V = ({
|
|
5
|
-
children: w,
|
|
6
|
-
className: m = "",
|
|
7
|
-
error: u = !1,
|
|
8
|
-
errorMessage: a = "",
|
|
9
|
-
id: t = "",
|
|
10
|
-
label: f = "",
|
|
11
|
-
name: x = "",
|
|
12
|
-
options: h = [],
|
|
13
|
-
placeholder: l = "",
|
|
14
|
-
props: v = {},
|
|
15
|
-
selectClass: b = "",
|
|
16
|
-
styles: s = null,
|
|
17
|
-
variation: N = "primary",
|
|
18
|
-
value: g
|
|
19
|
-
}) => {
|
|
20
|
-
const j = l ? { defaultValue: "" } : {};
|
|
21
|
-
return /* @__PURE__ */ d(
|
|
22
|
-
"label",
|
|
23
|
-
{
|
|
24
|
-
className: c("relative select", m, N),
|
|
25
|
-
style: s ? { ...s } : null,
|
|
26
|
-
children: [
|
|
27
|
-
f,
|
|
28
|
-
/* @__PURE__ */ d(
|
|
29
|
-
"select",
|
|
30
|
-
{
|
|
31
|
-
className: c(
|
|
32
|
-
"form-select relative bg-white pl-3 pr-10 text-left cursor-default",
|
|
33
|
-
u ? "!border-red-500 !bg-red-500/10 !text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
34
|
-
b
|
|
35
|
-
),
|
|
36
|
-
id: t,
|
|
37
|
-
name: x,
|
|
38
|
-
value: g,
|
|
39
|
-
...j,
|
|
40
|
-
...v,
|
|
41
|
-
children: [
|
|
42
|
-
l && /* @__PURE__ */ r("option", { hidden: !0, value: "", children: l }),
|
|
43
|
-
h.map((e, y) => /* @__PURE__ */ r(
|
|
44
|
-
"option",
|
|
45
|
-
{
|
|
46
|
-
value: (e == null ? void 0 : e.id) || (e == null ? void 0 : e.value) || e,
|
|
47
|
-
children: (e == null ? void 0 : e.name) || e
|
|
48
|
-
},
|
|
49
|
-
(e == null ? void 0 : e.name) || e
|
|
50
|
-
))
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
a && /* @__PURE__ */ r("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}, z = S(V);
|
|
59
|
-
export {
|
|
60
|
-
z as default
|
|
61
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as m } from "react";
|
|
3
|
-
import o from "../Icon/Icon.js";
|
|
4
|
-
import r from "classnames";
|
|
5
|
-
const n = ({ className: s = "" }) => /* @__PURE__ */ a(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: r(
|
|
9
|
-
"flex justify-center items-center bg-gray-200 rounded-lg animate-pulse",
|
|
10
|
-
s
|
|
11
|
-
),
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ e(o, { size: "xLarge", name: "map", className: "mx-auto" }),
|
|
14
|
-
/* @__PURE__ */ e("span", { className: "sr-only", children: "Loading..." })
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
), p = m(n);
|
|
18
|
-
export {
|
|
19
|
-
p as default
|
|
20
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as m } from "react";
|
|
3
|
-
import t from "../Icon/Icon.js";
|
|
4
|
-
const c = ({
|
|
5
|
-
placeholderClass: o = "",
|
|
6
|
-
children: i,
|
|
7
|
-
className: d = "",
|
|
8
|
-
id: r = 1,
|
|
9
|
-
padding: l = !0,
|
|
10
|
-
sliderName: a = ""
|
|
11
|
-
}) => /* @__PURE__ */ s(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
className: `slider relative overflow-hidden ${d}`,
|
|
15
|
-
id: `slider-${r}`,
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
"button",
|
|
19
|
-
{
|
|
20
|
-
title: "Previous Slide",
|
|
21
|
-
id: `btn-left-${r}`,
|
|
22
|
-
type: "button",
|
|
23
|
-
className: "absolute left-4 right-auto top-1/2 z-10 -translate-y-1/2 !bg-white/90 sm-max:!hidden md:block rounded-full px-1.5 py-1.5 border border-solid shadow cursor-pointer min-w-max",
|
|
24
|
-
children: /* @__PURE__ */ e(t, { name: "chevronLeft" })
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
id: `slider-container-${r}`,
|
|
31
|
-
className: "slider-container inline-flex w-full overflow-x-scroll md:overflow-x-hidden md:w-auto transition duration-200 ease-in-out sm-max:!transform-none",
|
|
32
|
-
children: Array.from({ length: 4 }, (u, n) => /* @__PURE__ */ e(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
className: `card-ph slider-card bg-gray-200 animate-pulse ${o}`,
|
|
36
|
-
children: /* @__PURE__ */ e("div", { className: `slider-card-action ${l ? "p-4" : ""}`, children: i })
|
|
37
|
-
},
|
|
38
|
-
n
|
|
39
|
-
))
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
"button",
|
|
44
|
-
{
|
|
45
|
-
title: "Next Slide",
|
|
46
|
-
id: `btn-right-${r}`,
|
|
47
|
-
type: "button",
|
|
48
|
-
className: "absolute right-4 left-auto top-1/2 z-10 -translate-y-1/2 !bg-white/90 hidden sm-max:!hidden md:block rounded-full px-1.5 py-1.5 border border-solid shadow cursor-pointer min-w-max",
|
|
49
|
-
"data-div-track": `report | ${a} | More Reviews`,
|
|
50
|
-
children: /* @__PURE__ */ e(t, { name: "chevronRight" })
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
), f = m(c);
|
|
56
|
-
export {
|
|
57
|
-
f as default
|
|
58
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import n from "classnames";
|
|
3
|
-
const l = ({
|
|
4
|
-
className: t = "",
|
|
5
|
-
value: e
|
|
6
|
-
}) => {
|
|
7
|
-
const s = {
|
|
8
|
-
"--value": `calc(${e} / 5 * 100%)`
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ a(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
className: n(
|
|
14
|
-
'Stars inline-block leading-none font-sans text-base before:content-["★★★★★"]',
|
|
15
|
-
t
|
|
16
|
-
),
|
|
17
|
-
style: s
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
l as default
|
|
23
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import i from "classnames";
|
|
3
|
-
import d from "../Icon/Icon.js";
|
|
4
|
-
import m from "../Button/Button.js";
|
|
5
|
-
const x = ({
|
|
6
|
-
alt: r = "",
|
|
7
|
-
buttonsMobile: p = !0,
|
|
8
|
-
buttonClass: l,
|
|
9
|
-
className: w = "",
|
|
10
|
-
containerClass: h,
|
|
11
|
-
config: v = {},
|
|
12
|
-
dialogId: o = null,
|
|
13
|
-
id: s = "1",
|
|
14
|
-
images: a = [],
|
|
15
|
-
placeholder: n
|
|
16
|
-
}) => /* @__PURE__ */ t(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
id: `swiper-${s}`,
|
|
20
|
-
"data-swiper": "",
|
|
21
|
-
"data-swiper-config": JSON.stringify(v),
|
|
22
|
-
"data-dialog-id": o,
|
|
23
|
-
"data-images-count": a.length,
|
|
24
|
-
className: i("swiper", w),
|
|
25
|
-
children: [
|
|
26
|
-
/* @__PURE__ */ t("div", { className: i("swiper-container", h), children: [
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
className: i("swiper-placeholder", {
|
|
31
|
-
"animate-pulse": !n
|
|
32
|
-
}),
|
|
33
|
-
children: n ? /* @__PURE__ */ e(
|
|
34
|
-
"img",
|
|
35
|
-
{
|
|
36
|
-
alt: `${r ? `${r} ` : "Placeholder Image"}`,
|
|
37
|
-
src: n
|
|
38
|
-
}
|
|
39
|
-
) : "Loading Images..."
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
className: i("swiper-wrapper", {
|
|
46
|
-
"cursor-pointer": o
|
|
47
|
-
}),
|
|
48
|
-
children: a.length > 0 && a.map((c, u) => /* @__PURE__ */ e(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
className: "swiper-slide swiper-slide-visible swiper-slide-active",
|
|
52
|
-
children: /* @__PURE__ */ e(
|
|
53
|
-
"img",
|
|
54
|
-
{
|
|
55
|
-
alt: `${r ? `${r}-` : ""}Image-${u + 1}`,
|
|
56
|
-
src: c
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
},
|
|
60
|
-
c
|
|
61
|
-
))
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ t("div", { className: "swiper-label", children: [
|
|
66
|
-
"1 / ",
|
|
67
|
-
a.length
|
|
68
|
-
] }),
|
|
69
|
-
/* @__PURE__ */ e("div", { id: `swiper-pagination-${s}`, className: "swiper-pagination" }),
|
|
70
|
-
/* @__PURE__ */ e(
|
|
71
|
-
m,
|
|
72
|
-
{
|
|
73
|
-
className: i(
|
|
74
|
-
"swiper-button-prev swiper-button-lock",
|
|
75
|
-
{ "sm-max:!hidden": !p },
|
|
76
|
-
l
|
|
77
|
-
),
|
|
78
|
-
variation: "icon",
|
|
79
|
-
props: {
|
|
80
|
-
id: `swiper-button-prev-${s}`,
|
|
81
|
-
title: "Previous Slide"
|
|
82
|
-
},
|
|
83
|
-
children: /* @__PURE__ */ e(d, { name: "chevronLeft" })
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ e(
|
|
87
|
-
m,
|
|
88
|
-
{
|
|
89
|
-
className: i(
|
|
90
|
-
"swiper-button-next swiper-button-lock",
|
|
91
|
-
{ "sm-max:!hidden": !p },
|
|
92
|
-
l
|
|
93
|
-
),
|
|
94
|
-
variation: "icon",
|
|
95
|
-
props: {
|
|
96
|
-
id: `swiper-button-next-${s}`,
|
|
97
|
-
title: "Next Slide"
|
|
98
|
-
},
|
|
99
|
-
children: /* @__PURE__ */ e(d, { name: "chevronRight" })
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
export {
|
|
106
|
-
x as default
|
|
107
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as f } from "react";
|
|
3
|
-
import o from "classnames";
|
|
4
|
-
import u from "../Icon/Icon.js";
|
|
5
|
-
const h = ({
|
|
6
|
-
className: l = "",
|
|
7
|
-
clear: r = !1,
|
|
8
|
-
error: s = !1,
|
|
9
|
-
errorMessage: t = "",
|
|
10
|
-
id: a = "",
|
|
11
|
-
inputClass: m = "",
|
|
12
|
-
name: i = "",
|
|
13
|
-
placeholder: c = "",
|
|
14
|
-
props: d = {},
|
|
15
|
-
rows: x = 4,
|
|
16
|
-
variation: n = "primary"
|
|
17
|
-
}) => /* @__PURE__ */ p("div", { className: o("relative textarea", n, l), children: [
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
"textarea",
|
|
20
|
-
{
|
|
21
|
-
placeholder: c,
|
|
22
|
-
id: a,
|
|
23
|
-
name: i,
|
|
24
|
-
rows: x,
|
|
25
|
-
className: o(
|
|
26
|
-
"form-textarea min-h-[40px] pl-4",
|
|
27
|
-
r ? "pr-10" : "pr-4",
|
|
28
|
-
s ? "!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500" : "",
|
|
29
|
-
m
|
|
30
|
-
),
|
|
31
|
-
...d
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
r && /* @__PURE__ */ e(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
id: `${a}-clear`,
|
|
38
|
-
className: "textarea-clear absolute right-0 top-2 bottom-auto flex items-center rounded-r-md pr-2 focus:outline-none hidden",
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
40
|
-
u,
|
|
41
|
-
{
|
|
42
|
-
size: "xSmall",
|
|
43
|
-
name: "xCircle",
|
|
44
|
-
color: "text-gray-500 cursor-pointer"
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
t && /* @__PURE__ */ e("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: t })
|
|
50
|
-
] }), j = f(h);
|
|
51
|
-
export {
|
|
52
|
-
j as default
|
|
53
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { memo as v } from "react";
|
|
3
|
-
import n from "classnames";
|
|
4
|
-
import i from "../Icon/Icon.js";
|
|
5
|
-
const y = ({
|
|
6
|
-
className: x = "",
|
|
7
|
-
clear: r = !1,
|
|
8
|
-
error: m = !1,
|
|
9
|
-
errorMessage: l = "",
|
|
10
|
-
iconLeft: t = "",
|
|
11
|
-
id: o = "",
|
|
12
|
-
inputClass: c = "",
|
|
13
|
-
name: d = "",
|
|
14
|
-
placeholder: p = "",
|
|
15
|
-
props: s = {},
|
|
16
|
-
styles: a = null,
|
|
17
|
-
type: f = "text",
|
|
18
|
-
value: u,
|
|
19
|
-
variation: b = "primary"
|
|
20
|
-
}) => /* @__PURE__ */ h(
|
|
21
|
-
"div",
|
|
22
|
-
{
|
|
23
|
-
className: n("relative textbox", b, x),
|
|
24
|
-
style: a ? { ...a } : null,
|
|
25
|
-
children: [
|
|
26
|
-
t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-y-0 left-0 flex items-center px-2", children: /* @__PURE__ */ e(
|
|
27
|
-
i,
|
|
28
|
-
{
|
|
29
|
-
size: "xSmall",
|
|
30
|
-
name: t,
|
|
31
|
-
color: "text-gray-500",
|
|
32
|
-
viewBox: "0 0 24 24"
|
|
33
|
-
}
|
|
34
|
-
) }),
|
|
35
|
-
/* @__PURE__ */ e(
|
|
36
|
-
"input",
|
|
37
|
-
{
|
|
38
|
-
placeholder: p,
|
|
39
|
-
id: o,
|
|
40
|
-
name: d,
|
|
41
|
-
type: f,
|
|
42
|
-
value: u,
|
|
43
|
-
autoComplete: "off",
|
|
44
|
-
className: n(
|
|
45
|
-
"form-input",
|
|
46
|
-
r ? "pr-10" : "pr-4",
|
|
47
|
-
t ? "pl-8" : "pl-4",
|
|
48
|
-
{
|
|
49
|
-
"!border-red-500 !bg-red-500/10 placeholder:!text-red-700 focus:!ring-red-500 focus:!border-red-500": m
|
|
50
|
-
},
|
|
51
|
-
s.inputClass ?? "",
|
|
52
|
-
c
|
|
53
|
-
),
|
|
54
|
-
...s
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
r && /* @__PURE__ */ e(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
id: `${o}-clear`,
|
|
61
|
-
className: "textbox-clear absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none hidden",
|
|
62
|
-
children: /* @__PURE__ */ e(
|
|
63
|
-
i,
|
|
64
|
-
{
|
|
65
|
-
size: "xSmall",
|
|
66
|
-
name: "xCircle",
|
|
67
|
-
color: "text-gray-500 cursor-pointer"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
l && /* @__PURE__ */ e("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: l })
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
), z = v(y);
|
|
76
|
-
export {
|
|
77
|
-
z as default
|
|
78
|
-
};
|
package/dist/components/index.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { default as r } from "./Accordion/Accordion.js";
|
|
2
|
-
import { default as a } from "./Alert/Alert.js";
|
|
3
|
-
import { default as l } from "./Autocomplete/Autocomplete.js";
|
|
4
|
-
import { default as p } from "./Badge/Badge.js";
|
|
5
|
-
import { default as u } from "./Button/Button.js";
|
|
6
|
-
import { default as m } from "./ButtonGroup/ButtonGroup.js";
|
|
7
|
-
import { default as i } from "./Card/Card.js";
|
|
8
|
-
import { default as g } from "./Checkbox/Checkbox.js";
|
|
9
|
-
import { default as S } from "./Container/Container.js";
|
|
10
|
-
import { default as C } from "./Dialog/Dialog.js";
|
|
11
|
-
import { default as b } from "./Dialog/DialogOld.js";
|
|
12
|
-
import { default as P } from "./Dots/Dots.js";
|
|
13
|
-
import { default as h } from "./Icon/Icon.js";
|
|
14
|
-
import { default as G } from "./Loading/LoadingBar.js";
|
|
15
|
-
import { default as L } from "./Loading/Spinner.js";
|
|
16
|
-
import { default as R } from "./Popover/Popover.js";
|
|
17
|
-
import { default as q } from "./Progress/ProgressBar.js";
|
|
18
|
-
import { default as y } from "./Radio/Radio.js";
|
|
19
|
-
import { default as E } from "./Select/Select.js";
|
|
20
|
-
import { default as H } from "./Skeleton/Skeleton.js";
|
|
21
|
-
import { default as K } from "./Slider/Slider.js";
|
|
22
|
-
import { default as N } from "./Stars/Stars.js";
|
|
23
|
-
import { default as U } from "./Text/TextArea.js";
|
|
24
|
-
import { default as W } from "./Text/Textbox.js";
|
|
25
|
-
export {
|
|
26
|
-
r as Accordion,
|
|
27
|
-
a as Alert,
|
|
28
|
-
l as Autocomplete,
|
|
29
|
-
p as Badge,
|
|
30
|
-
u as Button,
|
|
31
|
-
m as ButtonGroup,
|
|
32
|
-
i as Card,
|
|
33
|
-
g as Checkbox,
|
|
34
|
-
S as Container,
|
|
35
|
-
C as Dialog,
|
|
36
|
-
b as DialogOld,
|
|
37
|
-
P as Dots,
|
|
38
|
-
h as Icon,
|
|
39
|
-
G as LoadingBar,
|
|
40
|
-
R as Popover,
|
|
41
|
-
q as ProgressBar,
|
|
42
|
-
y as Radio,
|
|
43
|
-
E as Select,
|
|
44
|
-
H as Skeleton,
|
|
45
|
-
K as Slider,
|
|
46
|
-
L as Spinner,
|
|
47
|
-
N as Stars,
|
|
48
|
-
U as TextArea,
|
|
49
|
-
W as Textbox
|
|
50
|
-
};
|
package/dist/main.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { default as r } from "./components/Accordion/Accordion.js";
|
|
2
|
-
import { default as a } from "./components/Alert/Alert.js";
|
|
3
|
-
import { default as l } from "./components/Autocomplete/Autocomplete.js";
|
|
4
|
-
import { default as p } from "./components/Badge/Badge.js";
|
|
5
|
-
import { default as m } from "./components/Button/Button.js";
|
|
6
|
-
import { default as u } from "./components/ButtonGroup/ButtonGroup.js";
|
|
7
|
-
import { default as i } from "./components/Card/Card.js";
|
|
8
|
-
import { default as g } from "./components/Checkbox/Checkbox.js";
|
|
9
|
-
import { default as S } from "./components/Container/Container.js";
|
|
10
|
-
import { default as C } from "./components/Dialog/Dialog.js";
|
|
11
|
-
import { default as b } from "./components/Dialog/DialogOld.js";
|
|
12
|
-
import { default as P } from "./components/Dots/Dots.js";
|
|
13
|
-
import { default as h } from "./components/Icon/Icon.js";
|
|
14
|
-
import { default as G } from "./components/Loading/LoadingBar.js";
|
|
15
|
-
import { default as L } from "./components/Loading/Spinner.js";
|
|
16
|
-
import { default as R } from "./components/Popover/Popover.js";
|
|
17
|
-
import { default as q } from "./components/Progress/ProgressBar.js";
|
|
18
|
-
import { default as y } from "./components/Radio/Radio.js";
|
|
19
|
-
import { default as E } from "./components/Select/Select.js";
|
|
20
|
-
import { default as H } from "./components/Skeleton/Skeleton.js";
|
|
21
|
-
import { default as K } from "./components/Slider/Slider.js";
|
|
22
|
-
import { default as N } from "./components/Stars/Stars.js";
|
|
23
|
-
import { default as U } from "./components/Text/TextArea.js";
|
|
24
|
-
import { default as W } from "./components/Text/Textbox.js";
|
|
25
|
-
import { Common as Y } from "./scripts/index.js";
|
|
26
|
-
export {
|
|
27
|
-
r as Accordion,
|
|
28
|
-
a as Alert,
|
|
29
|
-
l as Autocomplete,
|
|
30
|
-
p as Badge,
|
|
31
|
-
m as Button,
|
|
32
|
-
u as ButtonGroup,
|
|
33
|
-
i as Card,
|
|
34
|
-
g as Checkbox,
|
|
35
|
-
Y as Common,
|
|
36
|
-
S as Container,
|
|
37
|
-
C as Dialog,
|
|
38
|
-
b as DialogOld,
|
|
39
|
-
P as Dots,
|
|
40
|
-
h as Icon,
|
|
41
|
-
G as LoadingBar,
|
|
42
|
-
R as Popover,
|
|
43
|
-
q as ProgressBar,
|
|
44
|
-
y as Radio,
|
|
45
|
-
E as Select,
|
|
46
|
-
H as Skeleton,
|
|
47
|
-
K as Slider,
|
|
48
|
-
L as Spinner,
|
|
49
|
-
N as Stars,
|
|
50
|
-
U as TextArea,
|
|
51
|
-
W as Textbox
|
|
52
|
-
};
|