welcome-ui 8.0.0 → 8.0.2
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/AXB53BZF-BOEe01VW.mjs +25 -0
- package/dist/Accordion.mjs +17 -17
- package/dist/Alert.mjs +19 -19
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-B1IDizRs.mjs} +298 -295
- package/dist/Badge.mjs +1 -1
- package/dist/Breadcrumb.mjs +27 -26
- package/dist/Button.mjs +2 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomInput-IA_gVoXd.mjs} +2991 -2859
- package/dist/DatePicker.mjs +4 -4
- package/dist/DateTimePicker.mjs +9 -9
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +7 -7
- package/dist/DropdownMenu.mjs +262 -262
- package/dist/Field.mjs +25 -25
- package/dist/FileDrop.mjs +273 -267
- package/dist/FileUpload.mjs +26 -26
- package/dist/Files.mjs +1 -1
- package/dist/Hint.mjs +1 -1
- package/dist/{ITI7HKP4-BONrZ9Pq.mjs → ITI7HKP4-EL9KXYBU.mjs} +150 -150
- package/dist/Icons.mjs +88 -88
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +1 -1
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-BzklVBKM.mjs} +70 -70
- package/dist/KUU7WJ55-CS4NemC6.mjs +61 -0
- package/dist/{LVA2YJMS-qFC9J-lt.mjs → LVA2YJMS-DDEmK0pp.mjs} +491 -488
- package/dist/Label.mjs +2 -2
- package/dist/Link.mjs +3 -3
- package/dist/MTZPJQMC-CMjAwC0N.mjs +15 -0
- package/dist/Modal.mjs +13 -13
- package/dist/NLEBE274-QOMV1l7e.mjs +84 -0
- package/dist/P2CTZE2T-Cl2w7OLV.mjs +300 -0
- package/dist/P4IRICAX-DezbJY4s.mjs +37 -0
- package/dist/Pagination.mjs +22 -22
- package/dist/Picker.mjs +2 -2
- package/dist/Popover.mjs +2 -2
- package/dist/QYJ6MIDR-Bb0O5xUM.mjs +97 -0
- package/dist/Radio.mjs +18 -18
- package/dist/RadioGroup.mjs +15 -15
- package/dist/RadioTab.mjs +9 -9
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-jn06-eLy.mjs} +17 -17
- package/dist/Search.mjs +2 -2
- package/dist/Select.mjs +719 -716
- package/dist/Shape.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Swiper.mjs +284 -278
- package/dist/Tabs.mjs +128 -128
- package/dist/Tag.mjs +16 -16
- package/dist/Text.mjs +1 -1
- package/dist/Textarea.mjs +4 -4
- package/dist/TimePicker.mjs +6 -6
- package/dist/Toast.mjs +69 -69
- package/dist/Toggle.mjs +2 -2
- package/dist/Tooltip.mjs +60 -60
- package/dist/UniversalLink.mjs +8 -8
- package/dist/VEVQD5MH-CuegL0m0.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-BMzoZtCu.mjs} +31 -33
- package/dist/VariantIcon.mjs +4 -4
- package/dist/WelcomeLoader.mjs +4862 -9223
- package/dist/X5NMLKT6-CvSCix-_.mjs +25 -0
- package/dist/YV4JVR4I-Bh7B7TET.mjs +344 -0
- package/dist/downshift.esm-D0ns_SQs.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-CfVLcVQp.mjs} +1 -1
- package/dist/{index-BDeIsk2X.mjs → index-5PUh49rV.mjs} +56 -56
- package/dist/{index-DEJJvyGk.mjs → index-B0gDDiFm.mjs} +7 -7
- package/dist/{index-CExLVjET.mjs → index-B22SHR8h.mjs} +4 -4
- package/dist/index-BhcLigYU.mjs +77 -0
- package/dist/{index-BJAZgeHL.mjs → index-Bkl89twW.mjs} +4 -4
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/{index-BpRjq7lj.mjs → index-CQD9fgf_.mjs} +3 -3
- package/dist/{index-BRDOakbf.mjs → index-CmsWSKKs.mjs} +5 -5
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/{index-BrfXjmHY.mjs → index-wr_b5GSV.mjs} +6 -6
- package/dist/radio-group-RFyDp0KD.mjs +51 -0
- package/dist/theme.mjs +670 -615
- package/dist/{use-viewport-m3glsbna.mjs → use-viewport-CfklieD-.mjs} +5 -5
- package/dist/utils.mjs +29 -91
- package/package.json +10 -13
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
package/dist/DatePicker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import d, { useState as R, useRef as w, useEffect as I } from "react";
|
|
3
3
|
import { forwardRef as G } from "./System.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { g as J, D as P, S as Q, b as V, C as W, c as X } from "./CustomInput-IA_gVoXd.mjs";
|
|
5
5
|
const Z = G(
|
|
6
6
|
({
|
|
7
7
|
autoFocus: S,
|
|
@@ -26,7 +26,7 @@ const Z = G(
|
|
|
26
26
|
value: t = P,
|
|
27
27
|
...r
|
|
28
28
|
}, n) => {
|
|
29
|
-
const A = r == null ? void 0 : r.timeIntervals, o = (e) =>
|
|
29
|
+
const A = r == null ? void 0 : r.timeIntervals, o = (e) => J(e, A), K = M || r.placeholderText, [j, D] = R(S && "date" || null), [B, a] = R(o(t)), E = w();
|
|
30
30
|
I(() => {
|
|
31
31
|
s && s(o(t));
|
|
32
32
|
}, []), I(() => {
|
|
@@ -54,12 +54,12 @@ const Z = G(
|
|
|
54
54
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
55
55
|
// @ts-ignore
|
|
56
56
|
/* @__PURE__ */ d.createElement(
|
|
57
|
-
|
|
57
|
+
Q,
|
|
58
58
|
{
|
|
59
59
|
autoComplete: "off",
|
|
60
60
|
calendarClassName: "date-picker-popper",
|
|
61
61
|
customInput: /* @__PURE__ */ d.createElement(
|
|
62
|
-
|
|
62
|
+
X,
|
|
63
63
|
{
|
|
64
64
|
className: "date-picker",
|
|
65
65
|
"data-testid": b,
|
package/dist/DateTimePicker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import r, { Children as
|
|
2
|
+
import r, { Children as d, useState as E, useEffect as P, cloneElement as x } from "react";
|
|
3
3
|
import $, { css as b } from "@xstyled/styled-components";
|
|
4
|
-
import { S as w, a as h,
|
|
4
|
+
import { S as w, a as h, g as S, D as _ } from "./CustomInput-IA_gVoXd.mjs";
|
|
5
5
|
import { DatePicker as A } from "./DatePicker.mjs";
|
|
6
6
|
import { TimePicker as N } from "./TimePicker.mjs";
|
|
7
7
|
import { forwardRef as R } from "./System.mjs";
|
|
@@ -49,20 +49,20 @@ const T = b`
|
|
|
49
49
|
onChange: m,
|
|
50
50
|
size: f = "md",
|
|
51
51
|
transparent: s,
|
|
52
|
-
value: t =
|
|
52
|
+
value: t = _
|
|
53
53
|
}, k) => {
|
|
54
|
-
const
|
|
54
|
+
const y = d.count(i) > 1 && d.toArray(i).find(
|
|
55
55
|
(e) => e.type.displayName === "TimePicker"
|
|
56
|
-
),
|
|
56
|
+
), u = r.isValidElement(y) ? y.props.timeIntervals : void 0, p = (e) => S(e, u), [D, g] = E(p(t)), o = (e) => {
|
|
57
57
|
g(e || null), m && m(e && new Date(e));
|
|
58
58
|
};
|
|
59
59
|
return P(() => {
|
|
60
|
-
m && o(
|
|
60
|
+
m && o(p(t));
|
|
61
61
|
}, []), P(() => {
|
|
62
62
|
var a;
|
|
63
|
-
const e =
|
|
63
|
+
const e = p(t);
|
|
64
64
|
((a = new Date(t)) == null ? void 0 : a.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && m && o(e), g(e);
|
|
65
|
-
}, [t]), /* @__PURE__ */ r.createElement(C, { "data-testid": c }, i &&
|
|
65
|
+
}, [t]), /* @__PURE__ */ r.createElement(C, { "data-testid": c }, i && d.map(
|
|
66
66
|
i,
|
|
67
67
|
(e, a) => x(e, {
|
|
68
68
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -71,7 +71,7 @@ const T = b`
|
|
|
71
71
|
// give ref only to the first child
|
|
72
72
|
inputRef: a < 1 ? k : null,
|
|
73
73
|
locale: n,
|
|
74
|
-
timeIntervals:
|
|
74
|
+
timeIntervals: u,
|
|
75
75
|
value: D,
|
|
76
76
|
transparent: s
|
|
77
77
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as a, c as t, b as r, D as o, S as i, a as g, f as m, g as u, d as D, e as c } from "./CustomInput-
|
|
2
|
+
import { C as a, c as t, b as r, D as o, S as i, a as g, f as m, g as u, d as D, e as c } from "./CustomInput-IA_gVoXd.mjs";
|
|
3
3
|
export {
|
|
4
4
|
a as CustomHeader,
|
|
5
5
|
t as CustomInput,
|
package/dist/Drawer.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import a, {
|
|
3
|
+
import a, { th as n, css as m, useTheme as p } from "@xstyled/styled-components";
|
|
4
4
|
import { CloseButton as b } from "./CloseButton.mjs";
|
|
5
5
|
import { Box as l } from "./Box.mjs";
|
|
6
|
-
import { D as $ } from "./SYRFVSLH-
|
|
6
|
+
import { D as $ } from "./SYRFVSLH-jn06-eLy.mjs";
|
|
7
7
|
import { forwardRef as d } from "./System.mjs";
|
|
8
8
|
import { Text as f } from "./Text.mjs";
|
|
9
9
|
import "./Icon.mjs";
|
|
10
|
-
import { A as D } from "./index-
|
|
10
|
+
import { A as D } from "./index-Bkl89twW.mjs";
|
|
11
11
|
import { Button as B } from "./Button.mjs";
|
|
12
|
-
import { D as k, u as
|
|
13
|
-
import { D as
|
|
12
|
+
import { D as k, u as v } from "./JC64G2H7-BzklVBKM.mjs";
|
|
13
|
+
import { D as C } from "./AXB53BZF-BOEe01VW.mjs";
|
|
14
14
|
const I = (t) => {
|
|
15
15
|
switch (t) {
|
|
16
16
|
case "top":
|
|
@@ -237,13 +237,13 @@ const I = (t) => {
|
|
|
237
237
|
)
|
|
238
238
|
);
|
|
239
239
|
function nt(t = {}) {
|
|
240
|
-
return
|
|
240
|
+
return v({ animated: !0, ...t });
|
|
241
241
|
}
|
|
242
242
|
const q = ({
|
|
243
243
|
hideOnInteractOutside: t = !0,
|
|
244
244
|
...r
|
|
245
245
|
}) => /* @__PURE__ */ e.createElement(g, { hideOnInteractOutside: t, ...r }), h = d(({ as: t, store: r, ...o }, s) => /* @__PURE__ */ e.createElement(
|
|
246
|
-
|
|
246
|
+
C,
|
|
247
247
|
{
|
|
248
248
|
ref: s,
|
|
249
249
|
render: t ? (i) => /* @__PURE__ */ e.createElement(t, { ...i }) : void 0,
|