welcome-ui 10.0.0-alpha.1 → 10.0.0-alpha.10
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/README.md +1 -1
- package/dist/2W3RN7C5-DMC82gDP.js +61 -0
- package/dist/4I4MLMKD-BO6Lcy7s.js +150 -0
- package/dist/Accordion.js +20 -18
- package/dist/Alert.css +1 -1
- package/dist/Alert.js +93 -87
- package/dist/AspectRatio.js +2 -1
- package/dist/Avatar.js +14 -12
- package/dist/{B7UTNDHN-BlIblHCu.js → B7UTNDHN-BghjolIs.js} +30 -30
- package/dist/Badge.js +2 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +175 -154
- package/dist/Button.css +1 -1
- package/dist/Button.js +43 -41
- package/dist/ButtonGroup.js +7 -5
- package/dist/Card.css +1 -1
- package/dist/Card.js +68 -15
- package/dist/Checkbox.js +30 -29
- package/dist/CloseButton.css +1 -1
- package/dist/CloseButton.js +15 -13
- package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
- package/dist/{DSAASPLT-BaaCUKsb.js → DSAASPLT-Fx1kuAsk.js} +3 -3
- package/dist/DatePicker.js +82 -78
- package/dist/DateTimePicker.js +23 -22
- package/dist/Drawer.js +141 -96
- package/dist/DropdownMenu.css +1 -1
- package/dist/DropdownMenu.js +902 -462
- package/dist/Field.js +2 -1
- package/dist/FieldGroup.js +9 -7
- package/dist/FileDrop.css +1 -1
- package/dist/FileDrop.js +427 -398
- package/dist/FileUpload.js +44 -41
- package/dist/GVVKDT6A-CF9ejW_c.js +619 -0
- package/dist/Hint.js +10 -8
- package/dist/Icon.css +1 -1
- package/dist/Icon.js +36 -22
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +59 -57
- package/dist/{KPUWHTQJ-D2TPji47.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
- package/dist/Label.js +9 -7
- package/dist/Link.css +1 -1
- package/dist/Link.js +54 -49
- package/dist/Loader.js +13 -11
- package/dist/Logo.js +21 -13
- package/dist/Modal.js +145 -114
- package/dist/{NI3IVY7K-Ztb3-XAv.js → NI3IVY7K-Dy240mkD.js} +53 -53
- package/dist/{NMGNQVTG-C6TqBngP.js → NMGNQVTG-DRO2uXZT.js} +8 -8
- package/dist/{OE2EFRVA-C3721cM3.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
- package/dist/{OLVWQA7U-DysaSaZj.js → OLVWQA7U-Dia3UUnG.js} +51 -51
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +157 -76
- package/dist/PasswordInput.js +20 -17
- package/dist/Popover.js +89 -72
- package/dist/{RTNCFSKZ-qpPg689E.js → RTNCFSKZ-BywELldk.js} +47 -47
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +39 -40
- package/dist/RadioGroup.js +29 -27
- package/dist/RadioTab.js +3 -2
- package/dist/{SBSPVDDI-DJKkC1eb.js → SBSPVDDI-CmtnvvUX.js} +42 -42
- package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
- package/dist/Search.css +1 -1
- package/dist/Search.js +136 -129
- package/dist/Select.css +1 -1
- package/dist/Select.js +259 -257
- package/dist/Slider.js +67 -62
- package/dist/Stepper.js +34 -27
- package/dist/StickyNote.css +1 -0
- package/dist/StickyNote.js +49 -0
- package/dist/Swiper.js +53 -51
- package/dist/{T22PY7TE-C1N0q8Kn.js → T22PY7TE-gLuJpoOm.js} +46 -46
- package/dist/Table.js +34 -21
- package/dist/Tabs.js +165 -156
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +67 -62
- package/dist/Text.js +5 -3
- package/dist/Textarea.css +1 -1
- package/dist/Textarea.js +26 -18
- package/dist/TimePicker.js +24 -23
- package/dist/Toast.css +1 -1
- package/dist/Toast.js +275 -165
- package/dist/Toggle.js +16 -14
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.js +120 -129
- package/dist/VariantIcon.js +8 -6
- package/dist/VisuallyHidden.js +9 -7
- package/dist/WelcomeLoader.js +4 -3
- package/dist/XCKGTAUF-CJwwVibW.js +25 -0
- package/dist/{Y67KZUMI-DFEgrUv2.js → Y67KZUMI-BwLWwpNF.js} +5 -5
- package/dist/{ZTXFEM5L-CkrIQCN1.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
- package/dist/{downshift.esm-D_6pHXkq.js → downshift.esm-xtYanIDi.js} +1 -1
- package/dist/scss/breakpoints.scss +9 -0
- package/dist/scss/text-ellipsis.scss +5 -0
- package/dist/scss/texts.scss +108 -0
- package/dist/theme.css +1 -1
- package/dist/theme.js +1 -0
- package/dist/{tslib.es6-DpB4Y59c.js → tslib.es6-C80jYMbM.js} +1 -1
- package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
- package/dist/types/components/Alert/components/Title.d.ts +5 -0
- package/dist/types/components/Alert/index.d.ts +7 -3
- package/dist/types/components/Alert/types.d.ts +3 -9
- package/dist/types/components/Breadcrumb/Item.d.ts +2 -2
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/types.d.ts +6 -3
- package/dist/types/components/Card/Body.d.ts +2 -3
- package/dist/types/components/Card/Footer.d.ts +6 -0
- package/dist/types/components/Card/Header.d.ts +5 -0
- package/dist/types/components/Card/index.d.ts +7 -8
- package/dist/types/components/Card/types.d.ts +16 -3
- package/dist/types/components/Checkbox/index.d.ts +1 -2
- package/dist/types/components/Checkbox/types.d.ts +3 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/types.d.ts +3 -0
- package/dist/types/components/Drawer/components/Backdrop.d.ts +1 -1
- package/dist/types/components/Drawer/components/Close.d.ts +4 -1
- package/dist/types/components/Drawer/components/Title.d.ts +4 -1
- package/dist/types/components/Drawer/index.d.ts +13 -4
- package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
- package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
- package/dist/types/components/DropdownMenu/index.d.ts +11 -0
- package/dist/types/components/DropdownMenu/types.d.ts +26 -5
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
- package/dist/types/components/FileDrop/types.d.ts +2 -0
- package/dist/types/components/Icon/icons.d.ts +6 -6
- package/dist/types/components/Icon/types.d.ts +2 -0
- package/dist/types/components/Loader/index.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
- package/dist/types/components/Modal/Assets/index.d.ts +16 -4
- package/dist/types/components/Modal/components/Close.d.ts +4 -1
- package/dist/types/components/Modal/index.d.ts +16 -4
- package/dist/types/components/Pagination/types.d.ts +11 -0
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
- package/dist/types/components/Popover/Arrow.d.ts +4 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
- package/dist/types/components/Radio/types.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +4 -1
- package/dist/types/components/Stepper/index.d.ts +8 -2
- package/dist/types/components/StickyNote/components/Button.d.ts +5 -0
- package/dist/types/components/StickyNote/components/Title.d.ts +5 -0
- package/dist/types/components/StickyNote/index.d.ts +11 -0
- package/dist/types/components/StickyNote/index.test.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +15 -0
- package/dist/types/components/Swiper/index.d.ts +4 -1
- package/dist/types/components/Table/index.d.ts +20 -5
- package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
- package/dist/types/components/Tag/types.d.ts +4 -2
- package/dist/types/components/Textarea/types.d.ts +1 -0
- package/dist/types/components/Toast/components/Growl.d.ts +2 -0
- package/dist/types/components/Toast/index.d.ts +8 -2
- package/dist/types/components/Toast/types.d.ts +8 -9
- package/dist/types/components/Tooltip/types.d.ts +1 -1
- package/dist/types/theme/types.d.ts +255 -218
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/{utils-DileZjMm.js → utils-BD597oo6.js} +1 -1
- package/dist/utils.js +3 -2
- package/package.json +3 -2
- package/dist/2W3RN7C5-bkX-rIa3.js +0 -61
- package/dist/4I4MLMKD-BLxAidnq.js +0 -43
- package/dist/GVVKDT6A-bET6V7Py.js +0 -724
- package/dist/SQZLCNLX-CHDXnZ16.js +0 -82
- package/dist/XCKGTAUF-DkxWCbaW.js +0 -25
- package/dist/index.css +0 -0
- package/dist/types/components/Icon/Icon.d.ts +0 -2
- package/dist/types/utils/theme/index.d.ts +0 -0
- /package/dist/{index-CdiHdiVB.js → index-PAaZGbyz.js} +0 -0
- /package/dist/types/components/Icon/{Icon.test.d.ts → index.test.d.ts} +0 -0
package/dist/Tag.js
CHANGED
|
@@ -1,85 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import './Tag.css';
|
|
3
|
+
import { jsxs as k, jsx as r } from "react/jsx-runtime";
|
|
3
4
|
import z from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"variant-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"variant-
|
|
14
|
-
"variant-
|
|
15
|
-
"variant-
|
|
16
|
-
"variant-blue": "_variant-
|
|
17
|
-
"variant-green": "_variant-
|
|
18
|
-
"variant-orange": "_variant-
|
|
19
|
-
"variant-pink": "_variant-
|
|
20
|
-
"variant-teal": "_variant-
|
|
21
|
-
"variant-violet": "_variant-
|
|
22
|
-
"size-
|
|
23
|
-
"size-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, s = R(N);
|
|
29
|
-
function b(a) {
|
|
5
|
+
import { Icon as m } from "./Icon.js";
|
|
6
|
+
import { c as R } from "./index-PAaZGbyz.js";
|
|
7
|
+
import { f as S } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
8
|
+
const C = "_root_1y63p_9", N = "_disabled_1y63p_53", q = "_ai_1y63p_70", x = "_removeButton_1y63p_73", A = "_hasRemoveAction_1y63p_240", w = "_isSquare_1y63p_246", T = {
|
|
9
|
+
root: C,
|
|
10
|
+
disabled: N,
|
|
11
|
+
"variant-dash": "_variant-dash_1y63p_58",
|
|
12
|
+
ai: q,
|
|
13
|
+
removeButton: x,
|
|
14
|
+
"variant-brand": "_variant-brand_1y63p_76",
|
|
15
|
+
"variant-warm": "_variant-warm_1y63p_91",
|
|
16
|
+
"variant-red": "_variant-red_1y63p_106",
|
|
17
|
+
"variant-blue": "_variant-blue_1y63p_121",
|
|
18
|
+
"variant-green": "_variant-green_1y63p_136",
|
|
19
|
+
"variant-orange": "_variant-orange_1y63p_151",
|
|
20
|
+
"variant-pink": "_variant-pink_1y63p_166",
|
|
21
|
+
"variant-teal": "_variant-teal_1y63p_181",
|
|
22
|
+
"variant-violet": "_variant-violet_1y63p_196",
|
|
23
|
+
"size-md": "_size-md_1y63p_226",
|
|
24
|
+
"size-lg": "_size-lg_1y63p_233",
|
|
25
|
+
hasRemoveAction: A,
|
|
26
|
+
isSquare: w
|
|
27
|
+
}, c = R(T);
|
|
28
|
+
function j(a) {
|
|
30
29
|
if (typeof a == "string" || typeof a == "number")
|
|
31
30
|
return a.toString().length;
|
|
32
31
|
if (z.isValidElement(a) && typeof a.props.children == "string")
|
|
33
32
|
return a.props.children.length;
|
|
34
33
|
}
|
|
35
|
-
const
|
|
34
|
+
const E = S((a, p) => {
|
|
36
35
|
const {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
ai: s = !1,
|
|
37
|
+
as: v = "div",
|
|
38
|
+
children: o,
|
|
39
|
+
className: d,
|
|
40
|
+
disabled: i = !1,
|
|
41
|
+
icon: y,
|
|
42
|
+
onClick: _,
|
|
43
|
+
onRemove: t,
|
|
44
|
+
removeButtonProps: e,
|
|
45
|
+
size: f = "lg",
|
|
46
|
+
variant: l = "warm",
|
|
47
|
+
...u
|
|
48
|
+
} = a, g = j(o) === 1 && !t, h = (n) => {
|
|
49
|
+
n.stopPropagation(), !i && (e != null && e.onClick && e.onClick(n), t && t());
|
|
50
|
+
}, b = (n) => {
|
|
51
|
+
i || _ && _(n);
|
|
49
52
|
};
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
53
|
+
return /* @__PURE__ */ k(
|
|
54
|
+
v,
|
|
52
55
|
{
|
|
53
|
-
className:
|
|
56
|
+
className: c(
|
|
54
57
|
"root",
|
|
55
|
-
|
|
56
|
-
`size-${
|
|
57
|
-
!!
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
`variant-${l}`,
|
|
59
|
+
`size-${f}`,
|
|
60
|
+
!!t && "hasRemoveAction",
|
|
61
|
+
g && "isSquare",
|
|
62
|
+
s && "ai",
|
|
63
|
+
i && "disabled",
|
|
64
|
+
d
|
|
60
65
|
),
|
|
61
|
-
onClick:
|
|
62
|
-
ref:
|
|
63
|
-
...
|
|
66
|
+
onClick: b,
|
|
67
|
+
ref: p,
|
|
68
|
+
...u,
|
|
64
69
|
children: [
|
|
65
|
-
m,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
s && l !== "dash" ? /* @__PURE__ */ r(m, { name: "sparkles", size: "md" }) : y,
|
|
71
|
+
o,
|
|
72
|
+
t ? /* @__PURE__ */ r(
|
|
73
|
+
"button",
|
|
69
74
|
{
|
|
70
75
|
"aria-label": "remove tag",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
children: /* @__PURE__ */ r(x, { name: "times", size: "xs" })
|
|
76
|
+
disabled: i,
|
|
77
|
+
...e,
|
|
78
|
+
className: c("removeButton", e == null ? void 0 : e.className),
|
|
79
|
+
onClick: h,
|
|
80
|
+
children: /* @__PURE__ */ r(m, { name: "times", size: "md" })
|
|
77
81
|
}
|
|
78
82
|
) : null
|
|
79
83
|
]
|
|
80
84
|
}
|
|
81
85
|
);
|
|
82
86
|
});
|
|
87
|
+
E.displayName = "Tag";
|
|
83
88
|
export {
|
|
84
|
-
|
|
89
|
+
E as Tag
|
|
85
90
|
};
|
package/dist/Text.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import './Text.css';
|
|
2
3
|
import { createElement as g } from "react";
|
|
3
|
-
import { c as m } from "./index-
|
|
4
|
+
import { c as m } from "./index-PAaZGbyz.js";
|
|
4
5
|
import { f as b } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
5
6
|
const q = "_root_1tqvt_2", h = {
|
|
6
7
|
root: q,
|
|
@@ -34,7 +35,7 @@ const q = "_root_1tqvt_2", h = {
|
|
|
34
35
|
"single-line": "_single-line_1tqvt_129",
|
|
35
36
|
"multi-line": "_multi-line_1tqvt_133",
|
|
36
37
|
"with-dash": "_with-dash_1tqvt_136"
|
|
37
|
-
}, y = m(h),
|
|
38
|
+
}, y = m(h), x = b(
|
|
38
39
|
({ as: _ = "p", children: s, className: r, lines: a, variant: t = "md", withDash: l, ...v }, d) => {
|
|
39
40
|
const e = (t == null ? void 0 : t.startsWith("heading")) || (t == null ? void 0 : t.startsWith("display")), i = a && a > 1 && a !== Number.POSITIVE_INFINITY, n = a === 1, o = y(
|
|
40
41
|
"root",
|
|
@@ -57,6 +58,7 @@ const q = "_root_1tqvt_2", h = {
|
|
|
57
58
|
);
|
|
58
59
|
}
|
|
59
60
|
);
|
|
61
|
+
x.displayName = "Text";
|
|
60
62
|
export {
|
|
61
|
-
|
|
63
|
+
x as Text
|
|
62
64
|
};
|
package/dist/Textarea.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_161f5_2{border-radius:var(--components-dimensions-input-border-radius);border-style:solid;border-width:var(--components-dimensions-input-border-width-default);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--font-line-height-md);width:100%;transition:var(--duration-medium);padding:var(--spacing-md);outline:none;background-color:var(--textAreaBackgroundColor, var(--components-colors-input-color-background-default));color:var(--textAreaColor, var(--components-colors-input-color-text-default));border-color:var(--textAreaBorderColor, var(--components-colors-input-color-border-default));box-shadow:var(--textAreaBoxShadow, var(--inset-10)) inset;field-sizing:var(--textAreaFieldSizing, fixed);min-height:var(--textAreaMinHeight, 8.125rem)}._root_161f5_2:disabled,._root_161f5_2[aria-disabled]{--textAreaBackgroundColor: var(--components-colors-input-color-background-disabled);--textAreaColor: var(--components-colors-input-color-text-disabled);cursor:not-allowed}._root_161f5_2:hover{--textAreaBorderColor: var(--components-colors-input-color-border-hover);--textAreaBoxShadow: var(--inset-20)}._root_161f5_2:active,._root_161f5_2:focus{--textAreaBorderColor: var(--components-colors-input-color-border-active)}._root_161f5_2::placeholder{color:var(--components-colors-input-color-text-placeholder)}._variant-danger_161f5_36{--textAreaBorderColor: var(--components-colors-input-color-border-error)}._variant-warning_161f5_39{--textAreaBorderColor: var(--components-colors-input-color-border-warning)}._variant-success_161f5_42{--textAreaBorderColor: var(--components-colors-input-color-border-success)}._adaptative_161f5_45{--textAreaFieldSizing: content;--textAreaMinHeight: auto}}
|
package/dist/Textarea.js
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"variant-
|
|
10
|
-
"variant-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import './Textarea.css';
|
|
3
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef as f } from "react";
|
|
5
|
+
import { useField as v } from "./Field.js";
|
|
6
|
+
import { c as p } from "./index-PAaZGbyz.js";
|
|
7
|
+
const m = "_root_161f5_2", d = "_adaptative_161f5_45", l = {
|
|
8
|
+
root: m,
|
|
9
|
+
"variant-danger": "_variant-danger_161f5_36",
|
|
10
|
+
"variant-warning": "_variant-warning_161f5_39",
|
|
11
|
+
"variant-success": "_variant-success_161f5_42",
|
|
12
|
+
adaptative: d
|
|
13
|
+
}, x = p(l), u = f(
|
|
14
|
+
({ className: t, isAdaptative: r = !1, minRows: e = 5, variant: o, ...s }, n) => {
|
|
15
|
+
const { getInputProps: i, variant: c } = v(), a = c || o;
|
|
16
|
+
return /* @__PURE__ */ _(
|
|
15
17
|
"textarea",
|
|
16
18
|
{
|
|
17
|
-
className:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
className: x(
|
|
20
|
+
"root",
|
|
21
|
+
a && `variant-${a}`,
|
|
22
|
+
r && "adaptative",
|
|
23
|
+
t
|
|
24
|
+
),
|
|
25
|
+
ref: n,
|
|
26
|
+
rows: e,
|
|
27
|
+
...i(s)
|
|
21
28
|
}
|
|
22
29
|
);
|
|
23
30
|
}
|
|
24
31
|
);
|
|
32
|
+
u.displayName = "Textarea";
|
|
25
33
|
export {
|
|
26
|
-
|
|
34
|
+
u as Textarea
|
|
27
35
|
};
|
package/dist/TimePicker.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as f } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as S, useState as w, useRef as j, useEffect as d } from "react";
|
|
4
|
-
import { D as F, C as I } from "./CustomPopper-
|
|
5
|
-
import { b as L, D as M, s as O } from "./utils-
|
|
4
|
+
import { D as F, C as I } from "./CustomPopper-C1wIDHbM.js";
|
|
5
|
+
import { b as L, D as M, s as O } from "./utils-BD597oo6.js";
|
|
6
6
|
import { InputText as U } from "./InputText.js";
|
|
7
|
-
import { c as _ } from "./index-
|
|
8
|
-
const q = _(O),
|
|
7
|
+
import { c as _ } from "./index-PAaZGbyz.js";
|
|
8
|
+
const q = _(O), z = S(
|
|
9
9
|
({
|
|
10
10
|
autoFocus: o,
|
|
11
|
-
className:
|
|
12
|
-
dateFormat:
|
|
13
|
-
disabled:
|
|
14
|
-
icon:
|
|
15
|
-
iconPlacement:
|
|
11
|
+
className: T,
|
|
12
|
+
dateFormat: D = "HH:mm",
|
|
13
|
+
disabled: a,
|
|
14
|
+
icon: R,
|
|
15
|
+
iconPlacement: k = "left",
|
|
16
16
|
onChange: t,
|
|
17
|
-
placeholder:
|
|
17
|
+
placeholder: x,
|
|
18
18
|
size: y = "md",
|
|
19
19
|
timeIntervals: i = 15,
|
|
20
20
|
transparent: A,
|
|
21
21
|
value: r = M,
|
|
22
22
|
...m
|
|
23
23
|
}, p) => {
|
|
24
|
-
const l = (s) => L(s, i), [H, c] = w(l(r)),
|
|
24
|
+
const l = (s) => L(s, i), [H, c] = w(l(r)), N = j(), P = p || N;
|
|
25
25
|
d(() => {
|
|
26
26
|
t == null || t(l(r));
|
|
27
27
|
}, []), d(() => {
|
|
@@ -29,10 +29,10 @@ const q = _(O), V = S(
|
|
|
29
29
|
const s = l(r);
|
|
30
30
|
((e = new Date(r)) == null ? void 0 : e.getTime()) - (s == null ? void 0 : s.getTime()) !== 0 && (t == null || t(s)), c(s);
|
|
31
31
|
}, [r]);
|
|
32
|
-
const
|
|
32
|
+
const b = (s) => {
|
|
33
33
|
var e;
|
|
34
|
-
s.preventDefault(), (e =
|
|
35
|
-
},
|
|
34
|
+
s.preventDefault(), (e = P.current) == null || e.blur(), c(null), t == null || t(null);
|
|
35
|
+
}, E = (s) => {
|
|
36
36
|
if (!s) {
|
|
37
37
|
c(null), t == null || t(null);
|
|
38
38
|
return;
|
|
@@ -57,21 +57,21 @@ const q = _(O), V = S(
|
|
|
57
57
|
U,
|
|
58
58
|
{
|
|
59
59
|
autoFocus: o,
|
|
60
|
-
className: q("time-picker",
|
|
60
|
+
className: q("time-picker", T),
|
|
61
61
|
"data-testid": m["data-testid"],
|
|
62
|
-
disabled:
|
|
63
|
-
icon:
|
|
64
|
-
iconPlacement:
|
|
62
|
+
disabled: a,
|
|
63
|
+
icon: R,
|
|
64
|
+
iconPlacement: k,
|
|
65
65
|
isClearable: !1,
|
|
66
|
-
onReset:
|
|
66
|
+
onReset: b,
|
|
67
67
|
ref: p,
|
|
68
68
|
size: y,
|
|
69
69
|
transparent: A
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
dateFormat:
|
|
73
|
-
onChange:
|
|
74
|
-
placeholderText:
|
|
72
|
+
dateFormat: D,
|
|
73
|
+
onChange: E,
|
|
74
|
+
placeholderText: x,
|
|
75
75
|
popperContainer: I,
|
|
76
76
|
selected: H,
|
|
77
77
|
showTimeSelect: !0,
|
|
@@ -83,6 +83,7 @@ const q = _(O), V = S(
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
+
z.displayName = "TimePicker";
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
+
z as TimePicker
|
|
88
89
|
};
|
package/dist/Toast.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_q0jyz_2{display:flex;flex-direction:column;overflow:hidden;border-width:var(--components-dimensions-toast-border-width);border-radius:var(--components-dimensions-toast-border-radius);border-color:var(--components-colors-toast-color-border-default);box-shadow:var(--elevation-20);background-color:var(--components-colors-toast-color-background-default);transition:all var(--duration-medium)}._root_q0jyz_2:hover{border-color:var(--components-colors-toast-color-border-hover);box-shadow:var(--elevation-30)}._icon_q0jyz_17{flex-shrink:0;border-radius:var(--components-dimensions-toast-icon-border-radius);padding:var(--components-dimensions-toast-icon-padding-inline);background-color:var(--iconBackgroundColor);color:var(--iconColor)}._variant-error_q0jyz_24{--iconBackgroundColor: var(--components-colors-toast-icon-color-background-error);--iconColor: var(--components-colors-toast-icon-color-icon-error)}._variant-warning_q0jyz_28{--iconBackgroundColor: var(--components-colors-toast-icon-color-background-warning);--iconColor: var(--components-colors-toast-icon-color-icon-warning)}._variant-success_q0jyz_32{--iconBackgroundColor: var(--components-colors-toast-icon-color-background-success);--iconColor: var(--components-colors-toast-icon-color-icon-success)}._variant-info_q0jyz_36{--iconBackgroundColor: var(--components-colors-toast-icon-color-background-information);--iconColor: var(--components-colors-toast-icon-color-icon-information)}._progress_q0jyz_40{width:100%;height:4px;background:var(--components-colors-latency-color-background-bar)}._progress-bar_q0jyz_45{width:100%;height:100%;background:var(--components-colors-latency-color-background-progress);transform-origin:left center;animation:_toast-progress_q0jyz_1 var(--duration) linear forwards}._hide-progress-bar_q0jyz_52{display:none}@keyframes _toast-progress_q0jyz_1{0%{transform:scaleX(0)}to{transform:scaleX(1)}}._snackbar_q0jyz_63{display:flex;flex-direction:row;align-items:center;padding:var(--components-dimensions-toast-padding-inline);gap:var(--components-dimensions-toast-gap-content);max-width:660px}._growl_q0jyz_71{display:flex;flex-direction:row;align-items:center;padding:var(--components-dimensions-toast-padding-inline);gap:var(--components-dimensions-growl-gap-content);max-width:450px}._growl_q0jyz_71 ._content_q0jyz_79{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-md)}._growl_q0jyz_71 ._close-button_q0jyz_85{align-self:start}._growl_q0jyz_71 ._icon_q0jyz_17{align-self:flex-start}._title_q0jyz_91{display:flex;align-items:center;padding-bottom:var(--border-radius-sm);color:var(--color-background-neutral-primary-fixed);font-weight:var(--font-weight-semi-bold)}._title_q0jyz_91>*:first-child{flex-shrink:0}}
|