welcome-ui 0.0.0-dev.1764320474970 → 0.0.0-dev.1765989103659
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/Alert.css +1 -1
- package/dist/Alert.js +72 -72
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +19 -19
- package/dist/Checkbox.js +12 -11
- package/dist/DatePicker.js +69 -68
- package/dist/DateTimePicker.js +10 -10
- package/dist/Field.css +1 -1
- package/dist/Field.js +47 -48
- package/dist/FileDrop.css +1 -1
- package/dist/FileDrop.js +319 -298
- package/dist/Icon.js +212 -211
- package/dist/InputText.js +6 -6
- package/dist/Modal.js +65 -56
- package/dist/Search.js +1 -1
- package/dist/Select.js +350 -332
- package/dist/Slider.js +1 -1
- package/dist/StickyNote.css +1 -1
- package/dist/StickyNote.js +52 -38
- package/dist/Swiper.js +201 -191
- package/dist/Tabs.css +1 -1
- package/dist/Tabs.js +312 -311
- package/dist/Textarea.js +14 -13
- package/dist/TimePicker.js +46 -45
- package/dist/Toggle.js +11 -11
- package/dist/types/components/Alert/components/Buttons.d.ts +2 -2
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/FileDrop/components/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/types.d.ts +5 -0
- package/dist/types/components/Icon/icons.d.ts +2 -2
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +1 -1
- package/dist/types/components/Modal/components/Content.d.ts +1 -1
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/Modal/types.d.ts +1 -1
- package/dist/types/components/Select/types.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +1 -0
- package/dist/types/components/Tabs/Tab.d.ts +2 -0
- package/dist/types/components/Tabs/{components/TabPanel/index.d.ts → TabPanel.d.ts} +1 -1
- package/dist/types/components/Tabs/index.d.ts +6 -5
- package/dist/types/components/Tabs/types.d.ts +6 -12
- package/dist/types/components/Tabs/utils.d.ts +4 -7
- package/package.json +1 -1
- package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +0 -5
- package/dist/types/components/Tabs/components/TabList/index.d.ts +0 -3
- package/dist/use-viewport-CgrficYB.js +0 -17
- package/dist/useForkRef-D807AV7D.js +0 -22
package/dist/Field.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_wx4cj_2{display:grid;grid-template-areas:"label" "input";width:100%}._root_wx4cj_2:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"label" "input" "hint"}._root_wx4cj_2:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input" "hint"}._root_wx4cj_2:not(._inline_wx4cj_13) ._hint_wx4cj_7{margin-top:var(--components-dimensions-field-gap-assistive)}._root_wx4cj_2:not(._inline_wx4cj_13) ._label_wx4cj_7{margin-bottom:var(--components-dimensions-field-gap-label)}._root_wx4cj_2 .field-input{align-self:center;grid-area:input}._root_wx4cj_2 .field-input.date-picker-wrapper{justify-self:start}._inline_wx4cj_13{grid-template-areas:"input label";grid-template-columns:min-content 1fr;height:fit-content;grid-row-gap:var(--components-dimensions-field-gap-assistive);grid-column-gap:var(--components-dimensions-field-gap-label)}._inline_wx4cj_13:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"input label" ". hint"}._inline_wx4cj_13:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input ." ". hint"}._label_wx4cj_7{grid-area:label}._hint_wx4cj_7{grid-area:hint}._visuallyHidden_wx4cj_45{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}}
|
package/dist/Field.js
CHANGED
|
@@ -1,90 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Field.css';
|
|
3
|
-
import {
|
|
3
|
+
import { jsxs as C, jsx as m } from "react/jsx-runtime";
|
|
4
4
|
import { createContext as L, useMemo as q, useId as A, useContext as M } from "react";
|
|
5
5
|
import { Hint as R } from "./Hint.js";
|
|
6
6
|
import { Label as S } from "./Label.js";
|
|
7
7
|
import { c as T } from "./index-PAaZGbyz.js";
|
|
8
8
|
import { f as W } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
9
|
-
const k = "
|
|
9
|
+
const k = "_root_wx4cj_2", z = "_label_wx4cj_7", E = "_hint_wx4cj_7", G = "_inline_wx4cj_13", J = "_visuallyHidden_wx4cj_45", K = {
|
|
10
10
|
root: k,
|
|
11
11
|
label: z,
|
|
12
12
|
hint: E,
|
|
13
13
|
inline: G,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getInputProps: (i) => i,
|
|
14
|
+
visuallyHidden: J
|
|
15
|
+
}, b = T(K), x = L({
|
|
16
|
+
getInputProps: (e) => e,
|
|
18
17
|
hintID: "",
|
|
19
18
|
labelID: "",
|
|
20
19
|
variant: void 0
|
|
21
20
|
});
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
return
|
|
21
|
+
function f(e) {
|
|
22
|
+
const s = A();
|
|
23
|
+
return e || s;
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return M(
|
|
25
|
+
function $() {
|
|
26
|
+
return M(x);
|
|
28
27
|
}
|
|
29
|
-
const
|
|
28
|
+
const O = W((e, s) => {
|
|
30
29
|
const {
|
|
31
30
|
children: y,
|
|
32
31
|
className: I,
|
|
33
|
-
disabled:
|
|
32
|
+
disabled: o,
|
|
34
33
|
error: _,
|
|
35
|
-
hideLabel:
|
|
36
|
-
hint:
|
|
34
|
+
hideLabel: j,
|
|
35
|
+
hint: p,
|
|
37
36
|
hintProps: n,
|
|
38
|
-
id:
|
|
39
|
-
inline:
|
|
40
|
-
label:
|
|
37
|
+
id: D,
|
|
38
|
+
inline: g,
|
|
39
|
+
label: w,
|
|
41
40
|
labelProps: t,
|
|
42
|
-
required:
|
|
41
|
+
required: d,
|
|
43
42
|
success: h,
|
|
44
43
|
warning: v,
|
|
45
|
-
...
|
|
46
|
-
} =
|
|
44
|
+
...N
|
|
45
|
+
} = e, i = _ ? "danger" : h ? "success" : v ? "warning" : void 0, l = _ ?? v ?? h ?? p, a = f(t == null ? void 0 : t.id), r = f(n == null ? void 0 : n.id), c = f(D), F = q(
|
|
47
46
|
() => ({
|
|
48
|
-
getInputProps(
|
|
49
|
-
const
|
|
47
|
+
getInputProps(u) {
|
|
48
|
+
const H = [u["aria-describedby"], l && r].filter(Boolean).join(" ") || void 0, B = [u["aria-labelledby"], a].filter(Boolean).join(" ");
|
|
50
49
|
return {
|
|
51
|
-
...
|
|
52
|
-
"aria-describedby":
|
|
53
|
-
"aria-invalid":
|
|
50
|
+
...u,
|
|
51
|
+
"aria-describedby": H,
|
|
52
|
+
"aria-invalid": i === "danger" ? !0 : void 0,
|
|
54
53
|
"aria-labelledby": B,
|
|
55
|
-
disabled:
|
|
56
|
-
id:
|
|
57
|
-
required:
|
|
54
|
+
disabled: o,
|
|
55
|
+
id: c,
|
|
56
|
+
required: d
|
|
58
57
|
};
|
|
59
58
|
},
|
|
60
|
-
hintID:
|
|
59
|
+
hintID: r,
|
|
61
60
|
labelID: a,
|
|
62
|
-
variant:
|
|
61
|
+
variant: i
|
|
63
62
|
}),
|
|
64
|
-
[
|
|
63
|
+
[r, a, i, l, o, c, d]
|
|
65
64
|
);
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ C("div", { ref: s, ...N, className: b("root", g && "inline", I), children: [
|
|
66
|
+
/* @__PURE__ */ m(
|
|
68
67
|
S,
|
|
69
68
|
{
|
|
70
|
-
className:
|
|
71
|
-
disabled:
|
|
72
|
-
htmlFor:
|
|
69
|
+
className: b("label", j && "visuallyHidden"),
|
|
70
|
+
disabled: o,
|
|
71
|
+
htmlFor: c,
|
|
73
72
|
id: a,
|
|
74
|
-
required:
|
|
75
|
-
variant:
|
|
73
|
+
required: d,
|
|
74
|
+
variant: i,
|
|
76
75
|
...t,
|
|
77
|
-
children:
|
|
76
|
+
children: w
|
|
78
77
|
}
|
|
79
78
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
l ? /* @__PURE__ */
|
|
82
|
-
] })
|
|
79
|
+
/* @__PURE__ */ m(x.Provider, { value: F, children: y }),
|
|
80
|
+
l ? /* @__PURE__ */ m(R, { className: b("hint"), id: r, variant: i, ...n, children: l }) : null
|
|
81
|
+
] });
|
|
83
82
|
});
|
|
84
|
-
|
|
83
|
+
O.displayName = "Field";
|
|
85
84
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
O as Field,
|
|
86
|
+
x as FieldContext,
|
|
87
|
+
f as useDefaultID,
|
|
88
|
+
$ as useField
|
|
90
89
|
};
|
package/dist/FileDrop.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_8c2b4_2{border-radius:var(--border-radius-xs);border-width:var(--border-width-xs);font-size:var(--font-size-14);font-weight:var(--font-weight-regular);line-height:var(--border-radius-xl);outline:none;border-style:dashed;min-height:12.5rem;position:relative;display:flex;justify-content:center;align-items:center;padding:var(--border-radius-lg);transition:var(--duration-medium);color:var(--color, var(--color-background-neutral-primary-fixed));background-color:var(--backgroundColor, var(--color-background-neutral-inverse-fixed));border-color:var(--borderColor, var(--color-background-neutral-subtlest))}._root_8c2b4_2:focus{--borderColor: var(--color-background-brand-primary);box-shadow:var(--color-background-brand-subtle) 0 0 0 2px}._root_8c2b4_2._disabled_8c2b4_26{--backgroundColor: var(--color-background-warm-strong);--borderColor: var(--color-background-neutral-subtlest);--color: var(--color-icon-warm-tertiary);cursor:not-allowed}._root_8c2b4_2._drag-reject_8c2b4_32{--borderColor: var(--color-background-danger-primary)}._file-input_8c2b4_35{display:block;height:0;opacity:0}._file-preview_8c2b4_40{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._file-preview-icon_8c2b4_48{margin-bottom:var(--border-radius-xl)}._file-preview-name_8c2b4_51{margin:0;max-width:600px}._file-preview-size_8c2b4_55{margin:0}._file-preview-button_8c2b4_58{position:absolute;top:var(--spacing-lg);right:var(--spacing-lg)}._image-preview_8c2b4_63{max-height:100%;max-width:100%;object-fit:contain}._actions_8c2b4_68{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-lg)}._message-title_8c2b4_73{margin:0}._message-hint_8c2b4_76{margin:0;margin-top:var(--border-radius-sm);color:var(--color-icon-warm-tertiary)}._message-file-button-text_8c2b4_81{margin-top:var(--border-radius-xl)}._message-icon_8c2b4_84{margin-bottom:var(--border-radius-lg)}}
|