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/Popover.js
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import './Popover.css';
|
|
3
|
+
import { jsx as r, jsxs as w } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef as i } from "react";
|
|
4
|
-
import { c as a } from "./index-
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import {
|
|
8
|
-
import { P
|
|
9
|
-
import { f as
|
|
10
|
-
import { P as
|
|
11
|
-
const
|
|
12
|
-
root:
|
|
13
|
-
title:
|
|
5
|
+
import { c as a } from "./index-PAaZGbyz.js";
|
|
6
|
+
import { Button as N } from "./Button.js";
|
|
7
|
+
import { Icon as k } from "./Icon.js";
|
|
8
|
+
import { b as q } from "./RTNCFSKZ-BywELldk.js";
|
|
9
|
+
import { P as C, b as H } from "./4I4MLMKD-BO6Lcy7s.js";
|
|
10
|
+
import { f as p } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
11
|
+
import { e as x, f as y, g as T, h as $, P as S } from "./GVVKDT6A-CF9ejW_c.js";
|
|
12
|
+
const j = "_root_kqbt9_2", B = "_title_kqbt9_15", L = "_content_kqbt9_27", R = "_arrow_kqbt9_41", l = {
|
|
13
|
+
root: j,
|
|
14
|
+
title: B,
|
|
14
15
|
"with-close-button": "_with-close-button_kqbt9_24",
|
|
15
16
|
"content-wrapper": "_content-wrapper_kqbt9_27",
|
|
16
|
-
content:
|
|
17
|
+
content: L,
|
|
17
18
|
"close-button": "_close-button_kqbt9_34",
|
|
18
|
-
arrow:
|
|
19
|
+
arrow: R,
|
|
19
20
|
"arrow-item": "_arrow-item_kqbt9_44",
|
|
20
21
|
"placement-top": "_placement-top_kqbt9_49",
|
|
21
22
|
"placement-right": "_placement-right_kqbt9_52",
|
|
22
23
|
"placement-left": "_placement-left_kqbt9_55",
|
|
23
24
|
"placement-bottom": "_placement-bottom_kqbt9_58"
|
|
24
|
-
},
|
|
25
|
-
({ className:
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
}, z = a(l), m = i(
|
|
26
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ r("div", { className: z("content", t), ref: o, ...e })
|
|
27
|
+
);
|
|
28
|
+
m.displayName = "Popover.Content";
|
|
29
|
+
const u = a(l), b = ({ store: t }) => {
|
|
30
|
+
const e = q(t, "currentPlacement"), [o] = e.split("-");
|
|
31
|
+
return /* @__PURE__ */ r(C, { className: u("arrow"), store: t, children: /* @__PURE__ */ w(
|
|
29
32
|
"svg",
|
|
30
33
|
{
|
|
31
|
-
className:
|
|
34
|
+
className: u("arrow-item", o && `placement-${o}`),
|
|
32
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33
36
|
children: [
|
|
34
37
|
/* @__PURE__ */ r("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }),
|
|
@@ -36,95 +39,109 @@ const N = "_root_kqbt9_2", $ = "_title_kqbt9_15", j = "_content_kqbt9_27", S = "
|
|
|
36
39
|
]
|
|
37
40
|
}
|
|
38
41
|
) });
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
};
|
|
43
|
+
b.displayName = "Popover.Arrow";
|
|
44
|
+
const d = a(l), v = ({ children: t, className: e, onClose: o, store: n }) => {
|
|
45
|
+
const s = () => {
|
|
46
|
+
o && o(), n == null || n.hide();
|
|
47
|
+
}, { withCloseButton: c } = n;
|
|
48
|
+
return /* @__PURE__ */ w("div", { className: d("content-wrapper", e), children: [
|
|
49
|
+
/* @__PURE__ */ r(b, { store: n }),
|
|
50
|
+
t,
|
|
51
|
+
c ? /* @__PURE__ */ r(N, { className: d("close-button"), onClick: s, size: "sm", variant: "secondary", children: /* @__PURE__ */ r(k, { name: "times" }) }) : null
|
|
47
52
|
] });
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
),
|
|
51
|
-
({
|
|
53
|
+
};
|
|
54
|
+
v.displayName = "Popover.ContentWrapper";
|
|
55
|
+
const A = a(l), _ = i(
|
|
56
|
+
({ className: t, ...e }, o) => /* @__PURE__ */ r("h6", { className: A("title", t), ref: o, ...e })
|
|
57
|
+
);
|
|
58
|
+
_.displayName = "Popover.Title";
|
|
59
|
+
const P = p(
|
|
60
|
+
({ as: t, className: e, store: o, ...n }, s) => /* @__PURE__ */ r(
|
|
52
61
|
H,
|
|
53
62
|
{
|
|
54
63
|
className: e,
|
|
55
|
-
ref:
|
|
56
|
-
render:
|
|
57
|
-
store:
|
|
64
|
+
ref: s,
|
|
65
|
+
render: t ? (c) => /* @__PURE__ */ r(t, { ...c }) : void 0,
|
|
66
|
+
store: o,
|
|
58
67
|
...n
|
|
59
68
|
}
|
|
60
69
|
)
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
);
|
|
71
|
+
P.displayName = "Popover.Trigger";
|
|
72
|
+
const f = p(
|
|
73
|
+
({ as: t, className: e, store: o, ...n }, s) => /* @__PURE__ */ r(
|
|
74
|
+
x,
|
|
64
75
|
{
|
|
65
76
|
className: e,
|
|
66
|
-
ref:
|
|
67
|
-
render:
|
|
68
|
-
store:
|
|
77
|
+
ref: s,
|
|
78
|
+
render: t ? (c) => /* @__PURE__ */ r(t, { ...c }) : void 0,
|
|
79
|
+
store: o,
|
|
69
80
|
...n
|
|
70
81
|
}
|
|
71
82
|
)
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
);
|
|
84
|
+
f.displayName = "Popover.HoverTrigger";
|
|
85
|
+
const W = a(l), h = p(
|
|
86
|
+
({ children: t, onClose: e, store: o, ...n }, s) => {
|
|
87
|
+
const { withCloseButton: c } = o;
|
|
75
88
|
return /* @__PURE__ */ r(
|
|
76
|
-
|
|
89
|
+
y,
|
|
77
90
|
{
|
|
78
|
-
className:
|
|
79
|
-
store:
|
|
91
|
+
className: W("root", c && "with-close-button"),
|
|
92
|
+
store: o,
|
|
80
93
|
...n,
|
|
81
|
-
ref:
|
|
82
|
-
children: /* @__PURE__ */ r(
|
|
94
|
+
ref: s,
|
|
95
|
+
children: /* @__PURE__ */ r(v, { onClose: e, store: o, children: t })
|
|
83
96
|
}
|
|
84
97
|
);
|
|
85
98
|
}
|
|
86
|
-
)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
99
|
+
);
|
|
100
|
+
h.displayName = "PopoverHover";
|
|
101
|
+
const Q = Object.assign(h, {
|
|
102
|
+
Content: m,
|
|
103
|
+
Title: _,
|
|
104
|
+
Trigger: f
|
|
90
105
|
}), U = ({
|
|
91
|
-
withCloseButton:
|
|
106
|
+
withCloseButton: t = !1,
|
|
92
107
|
...e
|
|
93
108
|
} = {}) => ({
|
|
94
|
-
...
|
|
109
|
+
...T({
|
|
95
110
|
...e
|
|
96
111
|
}),
|
|
97
|
-
withCloseButton:
|
|
112
|
+
withCloseButton: t
|
|
98
113
|
}), V = ({
|
|
99
|
-
hideTimeout:
|
|
114
|
+
hideTimeout: t = 300,
|
|
100
115
|
showTimeout: e = 500,
|
|
101
|
-
withCloseButton:
|
|
116
|
+
withCloseButton: o = !1,
|
|
102
117
|
...n
|
|
103
118
|
} = {}) => ({
|
|
104
|
-
|
|
105
|
-
hideTimeout:
|
|
119
|
+
...$({
|
|
120
|
+
hideTimeout: t,
|
|
106
121
|
showTimeout: e,
|
|
107
122
|
...n
|
|
108
123
|
}),
|
|
109
|
-
withCloseButton:
|
|
110
|
-
}), M = a(l),
|
|
111
|
-
({ children:
|
|
112
|
-
const { withCloseButton:
|
|
124
|
+
withCloseButton: o
|
|
125
|
+
}), M = a(l), g = i(
|
|
126
|
+
({ children: t, onClose: e, store: o, ...n }, s) => {
|
|
127
|
+
const { withCloseButton: c } = o;
|
|
113
128
|
return /* @__PURE__ */ r(
|
|
114
|
-
|
|
129
|
+
S,
|
|
115
130
|
{
|
|
116
|
-
className: M("root",
|
|
117
|
-
ref:
|
|
118
|
-
store:
|
|
131
|
+
className: M("root", c && "with-close-button"),
|
|
132
|
+
ref: s,
|
|
133
|
+
store: o,
|
|
119
134
|
...n,
|
|
120
|
-
children: /* @__PURE__ */ r(
|
|
135
|
+
children: /* @__PURE__ */ r(v, { onClose: e, store: o, children: t })
|
|
121
136
|
}
|
|
122
137
|
);
|
|
123
138
|
}
|
|
124
|
-
)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
139
|
+
);
|
|
140
|
+
g.displayName = "Popover";
|
|
141
|
+
const X = Object.assign(g, {
|
|
142
|
+
Content: m,
|
|
143
|
+
Title: _,
|
|
144
|
+
Trigger: P
|
|
128
145
|
});
|
|
129
146
|
export {
|
|
130
147
|
X as Popover,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as ot,
|
|
2
|
+
import { i as ot, x as C, S as st, T as at, U as ut, V as F, N as it, A as ct, B as ft, W as lt, X as dt, m as G, d as St, a as P, u as pt, Y as vt } from "./OE2EFRVA-Dg1R6gaC.js";
|
|
3
3
|
import * as I from "react";
|
|
4
|
-
import
|
|
5
|
-
import { g as _t } from "./index-
|
|
6
|
-
function
|
|
4
|
+
import Q from "react";
|
|
5
|
+
import { g as _t } from "./index-PAaZGbyz.js";
|
|
6
|
+
function A(t, n) {
|
|
7
7
|
const e = t.__unstableInternals;
|
|
8
8
|
return ot(e, "Invalid store"), e[n];
|
|
9
9
|
}
|
|
@@ -33,24 +33,24 @@ function W(t, ...n) {
|
|
|
33
33
|
});
|
|
34
34
|
})
|
|
35
35
|
)
|
|
36
|
-
),
|
|
36
|
+
), T = [];
|
|
37
37
|
for (const L of v)
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
return o = F(...w, ...
|
|
38
|
+
T.push(L());
|
|
39
|
+
const q = n.map(Z);
|
|
40
|
+
return o = F(...w, ...T, ...q), b;
|
|
41
41
|
}, E = (s, r, b = m) => (b.add(r), d.set(r, s), () => {
|
|
42
42
|
var w;
|
|
43
43
|
(w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
|
|
44
|
-
}), R = (s, r) => E(s, r),
|
|
44
|
+
}), R = (s, r) => E(s, r), B = (s, r) => (i.set(r, r(e, e)), E(s, r)), N = (s, r) => (i.set(r, r(e, l)), E(s, r, _)), S = (s) => W(at(e, s), y), f = (s) => W(st(e, s), y), O = () => e, p = (s, r, b = !1) => {
|
|
45
45
|
var w;
|
|
46
46
|
if (!C(e, s)) return;
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
47
|
+
const T = it(r, e[s]);
|
|
48
|
+
if (T === e[s]) return;
|
|
49
49
|
if (!b)
|
|
50
50
|
for (const h of n)
|
|
51
|
-
(w = h == null ? void 0 : h.setState) == null || w.call(h, s,
|
|
52
|
-
const
|
|
53
|
-
e = ct(ft({}, e), { [s]:
|
|
51
|
+
(w = h == null ? void 0 : h.setState) == null || w.call(h, s, T);
|
|
52
|
+
const q = e;
|
|
53
|
+
e = ct(ft({}, e), { [s]: T });
|
|
54
54
|
const L = Symbol();
|
|
55
55
|
a = L, c.add(s);
|
|
56
56
|
const V = (h, D, U) => {
|
|
@@ -59,7 +59,7 @@ function W(t, ...n) {
|
|
|
59
59
|
(!$ || $.some(rt)) && ((H = i.get(h)) == null || H(), i.set(h, h(e, D)));
|
|
60
60
|
};
|
|
61
61
|
for (const h of m)
|
|
62
|
-
V(h,
|
|
62
|
+
V(h, q);
|
|
63
63
|
queueMicrotask(() => {
|
|
64
64
|
if (a !== L) return;
|
|
65
65
|
const h = e;
|
|
@@ -74,8 +74,8 @@ function W(t, ...n) {
|
|
|
74
74
|
setup: g,
|
|
75
75
|
init: x,
|
|
76
76
|
subscribe: R,
|
|
77
|
-
sync:
|
|
78
|
-
batch:
|
|
77
|
+
sync: B,
|
|
78
|
+
batch: N,
|
|
79
79
|
pick: S,
|
|
80
80
|
omit: f
|
|
81
81
|
}
|
|
@@ -84,33 +84,33 @@ function W(t, ...n) {
|
|
|
84
84
|
}
|
|
85
85
|
function Rt(t, ...n) {
|
|
86
86
|
if (t)
|
|
87
|
-
return
|
|
87
|
+
return A(t, "setup")(...n);
|
|
88
88
|
}
|
|
89
89
|
function Z(t, ...n) {
|
|
90
90
|
if (t)
|
|
91
|
-
return
|
|
91
|
+
return A(t, "init")(...n);
|
|
92
92
|
}
|
|
93
93
|
function k(t, ...n) {
|
|
94
94
|
if (t)
|
|
95
|
-
return
|
|
95
|
+
return A(t, "subscribe")(...n);
|
|
96
96
|
}
|
|
97
97
|
function tt(t, ...n) {
|
|
98
98
|
if (t)
|
|
99
|
-
return
|
|
99
|
+
return A(t, "sync")(...n);
|
|
100
100
|
}
|
|
101
101
|
function ht(t, ...n) {
|
|
102
102
|
if (t)
|
|
103
|
-
return
|
|
103
|
+
return A(t, "batch")(...n);
|
|
104
104
|
}
|
|
105
105
|
function Vt(t, ...n) {
|
|
106
106
|
if (t)
|
|
107
|
-
return
|
|
107
|
+
return A(t, "omit")(...n);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function At(t, ...n) {
|
|
110
110
|
if (t)
|
|
111
|
-
return
|
|
111
|
+
return A(t, "pick")(...n);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Tt(...t) {
|
|
114
114
|
var n;
|
|
115
115
|
const e = {};
|
|
116
116
|
for (const a of t) {
|
|
@@ -150,11 +150,11 @@ If there's a particular need for this, please submit a feature request at https:
|
|
|
150
150
|
`
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
var j = { exports: {} },
|
|
153
|
+
var j = { exports: {} }, K = {}, Y;
|
|
154
154
|
function mt() {
|
|
155
|
-
if (Y) return
|
|
155
|
+
if (Y) return K;
|
|
156
156
|
Y = 1;
|
|
157
|
-
var t =
|
|
157
|
+
var t = Q;
|
|
158
158
|
function n(i, d) {
|
|
159
159
|
return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
|
|
160
160
|
}
|
|
@@ -183,13 +183,13 @@ function mt() {
|
|
|
183
183
|
return d();
|
|
184
184
|
}
|
|
185
185
|
var _ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
|
|
186
|
-
return
|
|
186
|
+
return K.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, K;
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var M = {}, X;
|
|
189
189
|
function Et() {
|
|
190
|
-
return
|
|
190
|
+
return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
|
|
191
191
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
192
|
-
var t =
|
|
192
|
+
var t = Q, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
193
193
|
function e(S) {
|
|
194
194
|
{
|
|
195
195
|
for (var f = arguments.length, O = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
|
|
@@ -252,13 +252,13 @@ function Et() {
|
|
|
252
252
|
function x(S, f, O) {
|
|
253
253
|
return f();
|
|
254
254
|
}
|
|
255
|
-
var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E,
|
|
256
|
-
|
|
257
|
-
}()),
|
|
255
|
+
var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, B = R ? x : d, N = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : B;
|
|
256
|
+
M.useSyncExternalStore = N, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
257
|
+
}()), M;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var J;
|
|
260
260
|
function gt() {
|
|
261
|
-
return
|
|
261
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? j.exports = mt() : j.exports = Et()), j.exports;
|
|
262
262
|
}
|
|
263
263
|
var Ot = gt();
|
|
264
264
|
const bt = /* @__PURE__ */ _t(Ot);
|
|
@@ -304,10 +304,10 @@ function It(t, n) {
|
|
|
304
304
|
}
|
|
305
305
|
function Ct(t, n, e, l) {
|
|
306
306
|
const a = C(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, u = vt({ value: a, setValue: o });
|
|
307
|
-
|
|
307
|
+
G(() => tt(t, [e], (c, v) => {
|
|
308
308
|
const { value: m, setValue: _ } = u.current;
|
|
309
309
|
_ && c[e] !== v[e] && c[e] !== m && _(c[e]);
|
|
310
|
-
}), [t, e]),
|
|
310
|
+
}), [t, e]), G(() => {
|
|
311
311
|
if (a !== void 0)
|
|
312
312
|
return t.setState(e, a), ht(t, [e], () => {
|
|
313
313
|
a !== void 0 && t.setState(e, a);
|
|
@@ -316,7 +316,7 @@ function Ct(t, n, e, l) {
|
|
|
316
316
|
}
|
|
317
317
|
function Ut(t, n) {
|
|
318
318
|
const [e, l] = I.useState(() => t(n));
|
|
319
|
-
|
|
319
|
+
G(() => Z(e), [e]);
|
|
320
320
|
const a = I.useCallback(
|
|
321
321
|
(c) => yt(e, c),
|
|
322
322
|
[e]
|
|
@@ -329,18 +329,18 @@ function Ut(t, n) {
|
|
|
329
329
|
return [o, u];
|
|
330
330
|
}
|
|
331
331
|
export {
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
Ct as a,
|
|
333
|
+
yt as b,
|
|
334
334
|
W as c,
|
|
335
|
-
|
|
335
|
+
tt as d,
|
|
336
336
|
k as e,
|
|
337
337
|
ht as f,
|
|
338
338
|
It as g,
|
|
339
339
|
Z as i,
|
|
340
|
-
|
|
340
|
+
Tt as m,
|
|
341
341
|
Vt as o,
|
|
342
|
-
|
|
342
|
+
At as p,
|
|
343
343
|
Rt as s,
|
|
344
344
|
Dt as t,
|
|
345
|
-
|
|
345
|
+
Ut as u
|
|
346
346
|
};
|
package/dist/Radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_yfym3_2{display:flex;align-items:flex-start;flex-direction:row;gap:var(--components-dimensions-radio-indicator-size)}._input-wrapper_yfym3_8{display:flex;position:relative;align-items:center;align-self:flex-start;flex-shrink:0}._input_yfym3_8{position:relative;order:-1;padding:0;margin-top:var(--border-radius-sm);width:var(--components-dimensions-radio-size);height:var(--components-dimensions-radio-size);border-style:solid;border-radius:var(--components-dimensions-radio-indicator-border-radius);border-width:var(--borderWidth, var(--components-dimensions-radio-border-width-unchecked));border-color:var(--borderColor, var(--components-colors-radio-color-border-unchecked-default));color:var(--components-colors-radio-color-background-unchecked-default);cursor:var(--inputCursor, pointer);outline:none;box-shadow:var(--inputBoxShadow, var(--inset-5)) inset}._input_yfym3_8:focus-visible:not([disabled]){outline-style:solid;outline-width:var(--components-dimensions-radio-border-width-focused);outline-color:var(--components-colors-radio-color-border-focused);outline-offset:0px}._input_yfym3_8:hover{--borderColor: var(--components-colors-radio-color-border-unchecked-hover);--inputBoxShadow: var(--inset-10)}._input_yfym3_8:disabled{background-color:var(--components-colors-radio-color-background-unchecked-disabled);border-color:var(--components-colors-radio-color-border-unchecked-disabled);--inputCursor: not-allowed;--inputBoxShadow: none}._input_yfym3_8._variant-danger_yfym3_47{--borderColor: var(--color-background-danger-strongest)}._input_yfym3_8:after{content:"";position:absolute;width:var(--components-dimensions-radio-indicator-size);height:var(--components-dimensions-radio-indicator-size);border-radius:var(--components-dimensions-radio-indicator-border-radius);top:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-checked));left:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-checked));background-color:var(--backgroundColor, transparent)}._input_yfym3_8[aria-checked=true]{--backgroundColor: var(--components-colors-radio-indicator-color-background-default);--borderWidth: var(--components-dimensions-radio-border-width-checked)}._input_yfym3_8[aria-checked=true]:not([disabled]){--borderColor: var(--components-colors-radio-indicator-color-background-default);color:var(--color-background-neutral-primary-fixed)}._input_yfym3_8[aria-checked=true]:not([disabled]):hover{--backgroundColor: var(--components-colors-radio-indicator-color-background-hover);--borderColor: var(--components-colors-radio-indicator-color-background-hover)}._input_yfym3_8[aria-checked=true][disabled]{--backgroundColor: var(--components-colors-radio-indicator-color-background-disabled)}._label-with-hint_yfym3_77{display:flex;flex-direction:column}._hint_yfym3_81{margin-top:0}}
|
package/dist/Radio.js
CHANGED
|
@@ -1,63 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import './Radio.css';
|
|
3
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { R as y } from "./SQZLCNLX-Dg4KKdNJ.js";
|
|
5
|
+
import { forwardRef as u } from "react";
|
|
5
6
|
import { Hint as w } from "./Hint.js";
|
|
6
|
-
import { Label as
|
|
7
|
-
import { c as
|
|
8
|
-
const R = "
|
|
7
|
+
import { Label as N } from "./Label.js";
|
|
8
|
+
import { c as v } from "./index-PAaZGbyz.js";
|
|
9
|
+
const R = "_root_yfym3_2", b = "_input_yfym3_8", x = "_hint_yfym3_81", $ = {
|
|
9
10
|
root: R,
|
|
10
|
-
"input-wrapper": "_input-
|
|
11
|
-
input:
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hint: $
|
|
17
|
-
}, a = N(j), y = h(
|
|
11
|
+
"input-wrapper": "_input-wrapper_yfym3_8",
|
|
12
|
+
input: b,
|
|
13
|
+
"variant-danger": "_variant-danger_yfym3_47",
|
|
14
|
+
"label-with-hint": "_label-with-hint_yfym3_77",
|
|
15
|
+
hint: x
|
|
16
|
+
}, t = v($), g = u(
|
|
18
17
|
({
|
|
19
|
-
className:
|
|
18
|
+
className: e,
|
|
20
19
|
dataTestId: i,
|
|
21
|
-
disabled:
|
|
22
|
-
hint:
|
|
23
|
-
label:
|
|
20
|
+
disabled: p,
|
|
21
|
+
hint: n,
|
|
22
|
+
label: a,
|
|
24
23
|
onChange: l,
|
|
25
|
-
onClick:
|
|
24
|
+
onClick: s,
|
|
26
25
|
value: c,
|
|
27
|
-
variant:
|
|
28
|
-
...
|
|
29
|
-
},
|
|
30
|
-
const
|
|
31
|
-
|
|
26
|
+
variant: d = "default",
|
|
27
|
+
..._
|
|
28
|
+
}, f) => {
|
|
29
|
+
const h = (o) => {
|
|
30
|
+
o.stopPropagation(), s && s(o), l && l(o);
|
|
32
31
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
32
|
+
return /* @__PURE__ */ m(N, { className: t("root", e), onClick: h, children: [
|
|
33
|
+
/* @__PURE__ */ r("div", { className: t("input-wrapper"), children: /* @__PURE__ */ r(
|
|
34
|
+
y,
|
|
36
35
|
{
|
|
37
|
-
"aria-label":
|
|
38
|
-
className:
|
|
36
|
+
"aria-label": a,
|
|
37
|
+
className: t("input", `variant-${d}`),
|
|
39
38
|
"data-testid": i,
|
|
40
|
-
disabled:
|
|
41
|
-
ref:
|
|
39
|
+
disabled: p,
|
|
40
|
+
ref: f,
|
|
42
41
|
value: c,
|
|
43
|
-
...
|
|
42
|
+
..._
|
|
44
43
|
}
|
|
45
44
|
) }),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
45
|
+
a ? /* @__PURE__ */ m("div", { className: t("label-with-hint"), children: [
|
|
46
|
+
/* @__PURE__ */ r("div", { "data-testid": i ? `${i}-label` : void 0, children: a }),
|
|
47
|
+
n ? /* @__PURE__ */ r(
|
|
49
48
|
w,
|
|
50
49
|
{
|
|
51
|
-
className:
|
|
50
|
+
className: t("hint"),
|
|
52
51
|
"data-testid": i ? `${i}-hint` : void 0,
|
|
53
|
-
children:
|
|
52
|
+
children: n
|
|
54
53
|
}
|
|
55
54
|
) : null
|
|
56
|
-
] })
|
|
55
|
+
] }) : null
|
|
57
56
|
] });
|
|
58
57
|
}
|
|
59
58
|
);
|
|
60
|
-
|
|
59
|
+
g.displayName = "Radio";
|
|
61
60
|
export {
|
|
62
|
-
|
|
61
|
+
g as Radio
|
|
63
62
|
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import './RadioGroup.css';
|
|
2
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { c as G, u as P } from "./B7UTNDHN-
|
|
4
|
-
import { c as $, b,
|
|
5
|
-
import {
|
|
6
|
-
import { FieldGroup as
|
|
7
|
-
import { Radio as
|
|
8
|
-
import { c as
|
|
4
|
+
import { c as G, u as P } from "./B7UTNDHN-BghjolIs.js";
|
|
5
|
+
import { c as $, u as b, a as x, b as y } from "./RTNCFSKZ-BywELldk.js";
|
|
6
|
+
import { M as L, A as d, z as p, B as i } from "./OE2EFRVA-Dg1R6gaC.js";
|
|
7
|
+
import { FieldGroup as N } from "./FieldGroup.js";
|
|
8
|
+
import { Radio as j } from "./Radio.js";
|
|
9
|
+
import { c as k } from "./index-PAaZGbyz.js";
|
|
9
10
|
import "react";
|
|
10
|
-
function
|
|
11
|
-
var e =
|
|
12
|
-
const r = (a = e.store) == null ? void 0 : a.getState(), s = G(d(
|
|
13
|
-
focusLoop:
|
|
14
|
-
})),
|
|
15
|
-
value:
|
|
11
|
+
function z(t = {}) {
|
|
12
|
+
var e = L(t, []), a;
|
|
13
|
+
const r = (a = e.store) == null ? void 0 : a.getState(), s = G(d(i({}, e), {
|
|
14
|
+
focusLoop: p(e.focusLoop, r == null ? void 0 : r.focusLoop, !0)
|
|
15
|
+
})), c = d(i({}, s.getState()), {
|
|
16
|
+
value: p(
|
|
16
17
|
e.value,
|
|
17
18
|
r == null ? void 0 : r.value,
|
|
18
19
|
e.defaultValue,
|
|
19
20
|
null
|
|
20
21
|
)
|
|
21
|
-
}), u = $(
|
|
22
|
-
return d(
|
|
22
|
+
}), u = $(c, s, e.store);
|
|
23
|
+
return d(i(i({}, s), u), {
|
|
23
24
|
setValue: (l) => u.setState("value", l)
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function A(t, e, a) {
|
|
27
28
|
return t = P(t, e, a), x(t, a, "value", "setValue"), t;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
const [e, a] = b(
|
|
31
|
-
return
|
|
30
|
+
function B(t = {}) {
|
|
31
|
+
const [e, a] = b(z, t);
|
|
32
|
+
return A(e, a, t);
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
root:
|
|
35
|
-
},
|
|
34
|
+
const F = "_root_17iu3_2", M = {
|
|
35
|
+
root: F
|
|
36
|
+
}, O = k(M), g = ({
|
|
36
37
|
className: t,
|
|
37
38
|
dataTestId: e,
|
|
38
39
|
disabled: a,
|
|
39
40
|
hideLabel: r,
|
|
40
41
|
id: s,
|
|
41
|
-
label:
|
|
42
|
+
label: c,
|
|
42
43
|
name: u,
|
|
43
44
|
onChange: l,
|
|
44
|
-
options:
|
|
45
|
-
renderOption: f =
|
|
45
|
+
options: v = [],
|
|
46
|
+
renderOption: f = j,
|
|
46
47
|
required: S,
|
|
47
48
|
value: _,
|
|
48
49
|
...V
|
|
49
50
|
}) => {
|
|
50
|
-
const m =
|
|
51
|
+
const m = B({ defaultValue: _ }), R = y(m, "value"), h = (o) => {
|
|
51
52
|
a || (m.setValue(o), l == null || l(o));
|
|
52
53
|
};
|
|
53
|
-
return /* @__PURE__ */ n(
|
|
54
|
+
return /* @__PURE__ */ n(N, { "data-testid": e, hideLabel: r, label: c, required: S, children: /* @__PURE__ */ n("div", { className: O("root", t), children: v.map((o) => /* @__PURE__ */ n(
|
|
54
55
|
f,
|
|
55
56
|
{
|
|
56
57
|
checked: o.value === R,
|
|
@@ -67,6 +68,7 @@ const g = "_root_17iu3_2", q = {
|
|
|
67
68
|
o.value
|
|
68
69
|
)) }) });
|
|
69
70
|
};
|
|
71
|
+
g.displayName = "RadioGroup";
|
|
70
72
|
export {
|
|
71
|
-
|
|
73
|
+
g as RadioGroup
|
|
72
74
|
};
|
package/dist/RadioTab.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import './RadioTab.css';
|
|
2
3
|
import { jsxs as u, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { R as _ } from "./SQZLCNLX-
|
|
4
|
+
import { R as _ } from "./SQZLCNLX-Dg4KKdNJ.js";
|
|
4
5
|
import { forwardRef as d } from "react";
|
|
5
6
|
import { Button as y } from "./Button.js";
|
|
6
|
-
import { c as f } from "./index-
|
|
7
|
+
import { c as f } from "./index-PAaZGbyz.js";
|
|
7
8
|
const b = "_label_12uyi_2", N = "_checked_12uyi_7", h = "_input_12uyi_16", R = "_content_12uyi_26", v = {
|
|
8
9
|
label: b,
|
|
9
10
|
checked: N,
|