@unifiedsoftware/react-ui 1.0.11 → 1.0.12
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/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +289 -181
- package/dist/index.mjs +221 -117
- package/package.json +5 -2
package/dist/index.mjs
CHANGED
|
@@ -30,21 +30,102 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
// src/components/
|
|
34
|
-
import
|
|
33
|
+
// src/components/Backdrop/Backdrop.tsx
|
|
34
|
+
import clsx2 from "clsx";
|
|
35
|
+
import { forwardRef as forwardRef3, useRef as useRef2 } from "react";
|
|
36
|
+
import { mergeRefs } from "react-merge-refs";
|
|
35
37
|
|
|
36
38
|
// src/constants/index.ts
|
|
37
39
|
var PREFIX_CLS = "us-";
|
|
38
40
|
|
|
41
|
+
// src/components/Portal/Portal.tsx
|
|
42
|
+
import { forwardRef, useRef } from "react";
|
|
43
|
+
import { Portal as ReactPortal } from "react-portal";
|
|
44
|
+
import { jsx } from "react/jsx-runtime";
|
|
45
|
+
var Portal = forwardRef(({ children }, ref) => {
|
|
46
|
+
const portalRef = useRef(null);
|
|
47
|
+
return /* @__PURE__ */ jsx(ReactPortal, { ref: portalRef, node: document.body, children: /* @__PURE__ */ jsx("div", { className: `${PREFIX_CLS}potal`, children }) });
|
|
48
|
+
});
|
|
49
|
+
var Portal_default = Portal;
|
|
50
|
+
|
|
51
|
+
// src/components/Transition/Transition.tsx
|
|
52
|
+
import clsx from "clsx";
|
|
53
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
54
|
+
import { CSSTransition } from "react-transition-group";
|
|
55
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
56
|
+
var Transition = forwardRef2((props, ref) => {
|
|
57
|
+
const {
|
|
58
|
+
children,
|
|
59
|
+
className,
|
|
60
|
+
nodeRef,
|
|
61
|
+
name,
|
|
62
|
+
isOpen,
|
|
63
|
+
enter = 0,
|
|
64
|
+
leave = 0,
|
|
65
|
+
mountOnEnter,
|
|
66
|
+
unmountOnExit,
|
|
67
|
+
onExited
|
|
68
|
+
} = props;
|
|
69
|
+
return /* @__PURE__ */ jsx2(
|
|
70
|
+
CSSTransition,
|
|
71
|
+
{
|
|
72
|
+
nodeRef,
|
|
73
|
+
in: isOpen,
|
|
74
|
+
appear: true,
|
|
75
|
+
timeout: { enter, exit: leave },
|
|
76
|
+
mountOnEnter,
|
|
77
|
+
unmountOnExit,
|
|
78
|
+
classNames: clsx(name, className),
|
|
79
|
+
onExited,
|
|
80
|
+
children
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
var Transition_default = Transition;
|
|
85
|
+
|
|
86
|
+
// src/components/Backdrop/Backdrop.tsx
|
|
87
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
88
|
+
var Backdrop = forwardRef3((props, ref) => {
|
|
89
|
+
const _a = props, { children, className, isOpen, onClose } = _a, rest = __objRest(_a, ["children", "className", "isOpen", "onClose"]);
|
|
90
|
+
const nodeRef = useRef2(null);
|
|
91
|
+
return /* @__PURE__ */ jsx3(
|
|
92
|
+
Transition_default,
|
|
93
|
+
{
|
|
94
|
+
nodeRef,
|
|
95
|
+
isOpen,
|
|
96
|
+
name: `${PREFIX_CLS}backdrop`,
|
|
97
|
+
enter: 300,
|
|
98
|
+
leave: 300,
|
|
99
|
+
mountOnEnter: true,
|
|
100
|
+
unmountOnExit: true,
|
|
101
|
+
children: /* @__PURE__ */ jsx3(Portal_default, { children: /* @__PURE__ */ jsxs(
|
|
102
|
+
"div",
|
|
103
|
+
__spreadProps(__spreadValues({
|
|
104
|
+
ref: mergeRefs([ref, nodeRef]),
|
|
105
|
+
className: clsx2(`${PREFIX_CLS}backdrop`, className),
|
|
106
|
+
tabIndex: -1
|
|
107
|
+
}, rest), {
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx3("div", { className: `${PREFIX_CLS}backdrop__overlay`, onClick: onClose }),
|
|
110
|
+
children
|
|
111
|
+
]
|
|
112
|
+
})
|
|
113
|
+
) })
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
});
|
|
117
|
+
var Backdrop_default = Backdrop;
|
|
118
|
+
|
|
39
119
|
// src/components/Badge/Badge.tsx
|
|
40
|
-
import
|
|
120
|
+
import clsx3 from "clsx";
|
|
121
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
41
122
|
var Badge = ({ children, placement, content }) => {
|
|
42
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ jsxs2("div", { className: clsx3(`${PREFIX_CLS}badge-wrapper`), children: [
|
|
43
124
|
children,
|
|
44
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ jsx4(
|
|
45
126
|
"div",
|
|
46
127
|
{
|
|
47
|
-
className:
|
|
128
|
+
className: clsx3(`${PREFIX_CLS}badge`, {
|
|
48
129
|
[`${PREFIX_CLS}badge--${placement}`]: placement
|
|
49
130
|
}),
|
|
50
131
|
children: content
|
|
@@ -55,14 +136,14 @@ var Badge = ({ children, placement, content }) => {
|
|
|
55
136
|
var Badge_default = Badge;
|
|
56
137
|
|
|
57
138
|
// src/components/Button/Button.tsx
|
|
58
|
-
import
|
|
59
|
-
import { forwardRef as
|
|
139
|
+
import clsx5 from "clsx";
|
|
140
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
60
141
|
|
|
61
142
|
// src/icons/ChevronDownIcon.tsx
|
|
62
|
-
import { forwardRef } from "react";
|
|
63
|
-
import { jsx as
|
|
64
|
-
var ChevronDownIcon =
|
|
65
|
-
return /* @__PURE__ */
|
|
143
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
144
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
145
|
+
var ChevronDownIcon = forwardRef4((props, ref) => {
|
|
146
|
+
return /* @__PURE__ */ jsxs3(
|
|
66
147
|
"svg",
|
|
67
148
|
__spreadProps(__spreadValues({
|
|
68
149
|
ref,
|
|
@@ -75,8 +156,8 @@ var ChevronDownIcon = forwardRef((props, ref) => {
|
|
|
75
156
|
xmlns: "http://www.w3.org/2000/svg"
|
|
76
157
|
}, props), {
|
|
77
158
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ jsx5("path", { fill: "none", d: "M0 0h24v24H0V0z" }),
|
|
160
|
+
/* @__PURE__ */ jsx5("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" })
|
|
80
161
|
]
|
|
81
162
|
})
|
|
82
163
|
);
|
|
@@ -84,10 +165,10 @@ var ChevronDownIcon = forwardRef((props, ref) => {
|
|
|
84
165
|
var ChevronDownIcon_default = ChevronDownIcon;
|
|
85
166
|
|
|
86
167
|
// src/icons/ChevronUpIcon.tsx
|
|
87
|
-
import { forwardRef as
|
|
88
|
-
import { jsx as
|
|
89
|
-
var ChevronUpIcon =
|
|
90
|
-
return /* @__PURE__ */
|
|
168
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
169
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
170
|
+
var ChevronUpIcon = forwardRef5((props, ref) => {
|
|
171
|
+
return /* @__PURE__ */ jsxs4(
|
|
91
172
|
"svg",
|
|
92
173
|
__spreadProps(__spreadValues({
|
|
93
174
|
ref,
|
|
@@ -100,8 +181,8 @@ var ChevronUpIcon = forwardRef2((props, ref) => {
|
|
|
100
181
|
xmlns: "http://www.w3.org/2000/svg"
|
|
101
182
|
}, props), {
|
|
102
183
|
children: [
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ jsx6("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
185
|
+
/* @__PURE__ */ jsx6("path", { d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" })
|
|
105
186
|
]
|
|
106
187
|
})
|
|
107
188
|
);
|
|
@@ -109,10 +190,10 @@ var ChevronUpIcon = forwardRef2((props, ref) => {
|
|
|
109
190
|
var ChevronUpIcon_default = ChevronUpIcon;
|
|
110
191
|
|
|
111
192
|
// src/icons/LoaderIcon.tsx
|
|
112
|
-
import { forwardRef as
|
|
113
|
-
import { jsx as
|
|
114
|
-
var LoaderIcon =
|
|
115
|
-
return /* @__PURE__ */
|
|
193
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
194
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
195
|
+
var LoaderIcon = forwardRef6((props, ref) => {
|
|
196
|
+
return /* @__PURE__ */ jsxs5(
|
|
116
197
|
"svg",
|
|
117
198
|
__spreadProps(__spreadValues({
|
|
118
199
|
ref,
|
|
@@ -127,8 +208,8 @@ var LoaderIcon = forwardRef3((props, ref) => {
|
|
|
127
208
|
xmlns: "http://www.w3.org/2000/svg"
|
|
128
209
|
}, props), {
|
|
129
210
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ jsx7("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
212
|
+
/* @__PURE__ */ jsx7("path", { d: "M12 3a9 9 0 1 0 9 9" })
|
|
132
213
|
]
|
|
133
214
|
})
|
|
134
215
|
);
|
|
@@ -136,21 +217,21 @@ var LoaderIcon = forwardRef3((props, ref) => {
|
|
|
136
217
|
var LoaderIcon_default = LoaderIcon;
|
|
137
218
|
|
|
138
219
|
// src/components/Icon/Icon.tsx
|
|
139
|
-
import
|
|
140
|
-
import { Children, cloneElement, forwardRef as
|
|
141
|
-
var Icon =
|
|
220
|
+
import clsx4 from "clsx";
|
|
221
|
+
import { Children, cloneElement, forwardRef as forwardRef7 } from "react";
|
|
222
|
+
var Icon = forwardRef7(({ children, size }, ref) => {
|
|
142
223
|
const child = Children.only(children);
|
|
143
224
|
return cloneElement(child, __spreadProps(__spreadValues({
|
|
144
225
|
ref
|
|
145
226
|
}, child.props), {
|
|
146
|
-
className:
|
|
227
|
+
className: clsx4(`${PREFIX_CLS}icon`, { [`${PREFIX_CLS}font-size-${size}`]: size }, child.props.className)
|
|
147
228
|
}));
|
|
148
229
|
});
|
|
149
230
|
var Icon_default = Icon;
|
|
150
231
|
|
|
151
232
|
// src/components/Button/Button.tsx
|
|
152
|
-
import { jsx as
|
|
153
|
-
var Button =
|
|
233
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
234
|
+
var Button = forwardRef8(
|
|
154
235
|
(_a, ref) => {
|
|
155
236
|
var _b = _a, {
|
|
156
237
|
as: Component = "button",
|
|
@@ -179,11 +260,11 @@ var Button = forwardRef5(
|
|
|
179
260
|
"loading",
|
|
180
261
|
"disabled"
|
|
181
262
|
]);
|
|
182
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsxs6(
|
|
183
264
|
Component,
|
|
184
265
|
__spreadProps(__spreadValues({
|
|
185
266
|
ref,
|
|
186
|
-
className:
|
|
267
|
+
className: clsx5(
|
|
187
268
|
`${PREFIX_CLS}button`,
|
|
188
269
|
{
|
|
189
270
|
[`${PREFIX_CLS}button--${variant}`]: variant,
|
|
@@ -198,10 +279,10 @@ var Button = forwardRef5(
|
|
|
198
279
|
disabled
|
|
199
280
|
}, rest), {
|
|
200
281
|
children: [
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
loading ? /* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ jsx8("div", { className: `${PREFIX_CLS}overlay` }),
|
|
283
|
+
/* @__PURE__ */ jsx8("div", { className: `${PREFIX_CLS}outline` }),
|
|
284
|
+
loading ? /* @__PURE__ */ jsx8(Icon_default, { children: /* @__PURE__ */ jsx8(LoaderIcon_default, { className: `${PREFIX_CLS}animation-spin` }) }) : startContent,
|
|
285
|
+
/* @__PURE__ */ jsx8("div", { className: `${PREFIX_CLS}button__content`, children }),
|
|
205
286
|
endContent
|
|
206
287
|
]
|
|
207
288
|
})
|
|
@@ -210,17 +291,17 @@ var Button = forwardRef5(
|
|
|
210
291
|
);
|
|
211
292
|
|
|
212
293
|
// src/components/Chip/Chip.tsx
|
|
213
|
-
import
|
|
214
|
-
import { forwardRef as
|
|
215
|
-
import { jsx as
|
|
216
|
-
var Chip =
|
|
294
|
+
import clsx6 from "clsx";
|
|
295
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
296
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
297
|
+
var Chip = forwardRef9(
|
|
217
298
|
(_a, ref) => {
|
|
218
299
|
var _b = _a, { as: Component = "div", children, className, variant, color, size } = _b, rest = __objRest(_b, ["as", "children", "className", "variant", "color", "size"]);
|
|
219
|
-
return /* @__PURE__ */
|
|
300
|
+
return /* @__PURE__ */ jsxs7(
|
|
220
301
|
Component,
|
|
221
302
|
__spreadProps(__spreadValues({
|
|
222
303
|
ref,
|
|
223
|
-
className:
|
|
304
|
+
className: clsx6(
|
|
224
305
|
`${PREFIX_CLS}chip`,
|
|
225
306
|
{
|
|
226
307
|
[`${PREFIX_CLS}chip--${variant}`]: variant,
|
|
@@ -231,8 +312,8 @@ var Chip = forwardRef6(
|
|
|
231
312
|
)
|
|
232
313
|
}, rest), {
|
|
233
314
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ jsx9("div", { className: clsx6(`${PREFIX_CLS}overlay`) }),
|
|
316
|
+
/* @__PURE__ */ jsx9("div", { className: `${PREFIX_CLS}outline` }),
|
|
236
317
|
children
|
|
237
318
|
]
|
|
238
319
|
})
|
|
@@ -242,7 +323,7 @@ var Chip = forwardRef6(
|
|
|
242
323
|
var Chip_default = Chip;
|
|
243
324
|
|
|
244
325
|
// src/components/Collapse/Collapse.tsx
|
|
245
|
-
import { Children as Children2, useEffect, useRef, useState } from "react";
|
|
326
|
+
import { Children as Children2, useEffect, useRef as useRef3, useState } from "react";
|
|
246
327
|
|
|
247
328
|
// src/components/Collapse/CollapseContext.tsx
|
|
248
329
|
import { createContext, useContext } from "react";
|
|
@@ -257,9 +338,9 @@ var useCollapse = () => {
|
|
|
257
338
|
var CollapseContext_default = CollapseContext;
|
|
258
339
|
|
|
259
340
|
// src/components/Collapse/Collapse.tsx
|
|
260
|
-
import { jsxs as
|
|
341
|
+
import { jsxs as jsxs8 } from "react/jsx-runtime";
|
|
261
342
|
var Collapse = ({ children, isOpen, onOpen, onClose, onToggle }) => {
|
|
262
|
-
const collapseRef =
|
|
343
|
+
const collapseRef = useRef3(null);
|
|
263
344
|
const [selfIsOpen, setSelfIsOpen] = useState(isOpen != null ? isOpen : false);
|
|
264
345
|
const [heightAuto, setHeightAuto] = useState(false);
|
|
265
346
|
const [trigger, content] = Children2.toArray(children);
|
|
@@ -287,7 +368,7 @@ var Collapse = ({ children, isOpen, onOpen, onClose, onToggle }) => {
|
|
|
287
368
|
}
|
|
288
369
|
}, 100);
|
|
289
370
|
}, [isOpen]);
|
|
290
|
-
return /* @__PURE__ */
|
|
371
|
+
return /* @__PURE__ */ jsxs8(
|
|
291
372
|
CollapseContext_default.Provider,
|
|
292
373
|
{
|
|
293
374
|
value: {
|
|
@@ -308,9 +389,9 @@ var Collapse = ({ children, isOpen, onOpen, onClose, onToggle }) => {
|
|
|
308
389
|
var Collapse_default = Collapse;
|
|
309
390
|
|
|
310
391
|
// src/components/Collapse/CollapseContent.tsx
|
|
311
|
-
import
|
|
312
|
-
import { Children as Children3, cloneElement as cloneElement2, forwardRef as
|
|
313
|
-
var CollapseContent =
|
|
392
|
+
import clsx7 from "clsx";
|
|
393
|
+
import { Children as Children3, cloneElement as cloneElement2, forwardRef as forwardRef10 } from "react";
|
|
394
|
+
var CollapseContent = forwardRef10(({ children }, ref) => {
|
|
314
395
|
var _a, _b;
|
|
315
396
|
const { collapseRef, isOpen, heightAuto } = useCollapse();
|
|
316
397
|
const child = Children3.only(children);
|
|
@@ -324,14 +405,14 @@ var CollapseContent = forwardRef7(({ children }, ref) => {
|
|
|
324
405
|
style: __spreadProps(__spreadValues({}, child.props.style), {
|
|
325
406
|
height: isOpen && heightAuto ? "auto" : isOpen ? (_a = collapseRef.current) == null ? void 0 : _a.scrollHeight : !isOpen && heightAuto ? (_b = collapseRef.current) == null ? void 0 : _b.scrollHeight : 0
|
|
326
407
|
}),
|
|
327
|
-
className:
|
|
408
|
+
className: clsx7(`${PREFIX_CLS}collapse`, child.props.className)
|
|
328
409
|
}));
|
|
329
410
|
});
|
|
330
411
|
var CollapseContent_default = CollapseContent;
|
|
331
412
|
|
|
332
413
|
// src/components/Collapse/CollapseTrigger.tsx
|
|
333
|
-
import { Children as Children4, cloneElement as cloneElement3, forwardRef as
|
|
334
|
-
var CollapseTrigger =
|
|
414
|
+
import { Children as Children4, cloneElement as cloneElement3, forwardRef as forwardRef11 } from "react";
|
|
415
|
+
var CollapseTrigger = forwardRef11(({ children }, ref) => {
|
|
335
416
|
const { collapseRef, onToggle } = useCollapse();
|
|
336
417
|
const child = Children4.only(children);
|
|
337
418
|
return cloneElement3(child, __spreadValues({
|
|
@@ -349,7 +430,7 @@ var CollapseTrigger = forwardRef8(({ children }, ref) => {
|
|
|
349
430
|
var CollapseTrigger_default = CollapseTrigger;
|
|
350
431
|
|
|
351
432
|
// src/components/Menu/Menu.tsx
|
|
352
|
-
import
|
|
433
|
+
import clsx11 from "clsx";
|
|
353
434
|
import { useEffect as useEffect3, useMemo as useMemo3, useState as useState2 } from "react";
|
|
354
435
|
|
|
355
436
|
// src/components/Menu/MenuContext.tsx
|
|
@@ -365,12 +446,12 @@ var useMenu = () => {
|
|
|
365
446
|
var MenuContext_default = MenuContext;
|
|
366
447
|
|
|
367
448
|
// src/components/Menu/MenuGroup.tsx
|
|
368
|
-
import
|
|
449
|
+
import clsx10 from "clsx";
|
|
369
450
|
import { useMemo as useMemo2 } from "react";
|
|
370
451
|
|
|
371
452
|
// src/components/Menu/MenuItem.tsx
|
|
372
|
-
import
|
|
373
|
-
import { forwardRef as
|
|
453
|
+
import clsx8 from "clsx";
|
|
454
|
+
import { forwardRef as forwardRef12, useContext as useContext4, useEffect as useEffect2 } from "react";
|
|
374
455
|
|
|
375
456
|
// src/components/Menu/MenuValueContext.tsx
|
|
376
457
|
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
@@ -385,8 +466,8 @@ var useMenuItemValue = () => {
|
|
|
385
466
|
var MenuValueContext_default = MenuValueContext;
|
|
386
467
|
|
|
387
468
|
// src/components/Menu/MenuItem.tsx
|
|
388
|
-
import { jsx as
|
|
389
|
-
var MenuItem =
|
|
469
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
470
|
+
var MenuItem = forwardRef12((props, ref) => {
|
|
390
471
|
const _a = props, { as: Component = "div", className, style, value, title, icon, level = 1, disabled, onClick } = _a, rest = __objRest(_a, ["as", "className", "style", "value", "title", "icon", "level", "disabled", "onClick"]);
|
|
391
472
|
const { value: menuValue, originalValue, navMode, onChange, onOpen, onItemSelect } = useMenu();
|
|
392
473
|
const values = useContext4(MenuValueContext_default);
|
|
@@ -404,11 +485,11 @@ var MenuItem = forwardRef9((props, ref) => {
|
|
|
404
485
|
onChange(mergedValues);
|
|
405
486
|
}
|
|
406
487
|
}, [value, originalValue, navMode]);
|
|
407
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ jsxs9(
|
|
408
489
|
Component,
|
|
409
490
|
__spreadProps(__spreadValues({
|
|
410
491
|
ref,
|
|
411
|
-
className:
|
|
492
|
+
className: clsx8(
|
|
412
493
|
`${PREFIX_CLS}menu-item`,
|
|
413
494
|
{
|
|
414
495
|
[`${PREFIX_CLS}menu-item--selected`]: menuValue.includes(value),
|
|
@@ -422,9 +503,9 @@ var MenuItem = forwardRef9((props, ref) => {
|
|
|
422
503
|
onClick: handleClick
|
|
423
504
|
}, rest), {
|
|
424
505
|
children: [
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
icon && /* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ jsx10("div", { className: `${PREFIX_CLS}overlay`, children: /* @__PURE__ */ jsx10("div", { className: `${PREFIX_CLS}overlay__surface` }) }),
|
|
507
|
+
icon && /* @__PURE__ */ jsx10("div", { className: `${PREFIX_CLS}menu-item__icon`, children: icon }),
|
|
508
|
+
/* @__PURE__ */ jsx10("div", { className: `${PREFIX_CLS}menu-item__content`, children: /* @__PURE__ */ jsx10("span", { className: `${PREFIX_CLS}menu-item__title`, children: title }) })
|
|
428
509
|
]
|
|
429
510
|
})
|
|
430
511
|
);
|
|
@@ -433,7 +514,7 @@ MenuItem.displayName = "MenuItem";
|
|
|
433
514
|
var MenuItem_default = MenuItem;
|
|
434
515
|
|
|
435
516
|
// src/components/Menu/MenuSubmenu.tsx
|
|
436
|
-
import
|
|
517
|
+
import clsx9 from "clsx";
|
|
437
518
|
import { useContext as useContext5, useMemo } from "react";
|
|
438
519
|
|
|
439
520
|
// src/components/Menu/utils.ts
|
|
@@ -460,7 +541,7 @@ var addOrRemoveValueInArray = (array, value) => {
|
|
|
460
541
|
};
|
|
461
542
|
|
|
462
543
|
// src/components/Menu/MenuSubmenu.tsx
|
|
463
|
-
import { jsx as
|
|
544
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
464
545
|
var MenuSubmenu = (_a) => {
|
|
465
546
|
var _b = _a, {
|
|
466
547
|
children,
|
|
@@ -490,7 +571,7 @@ var MenuSubmenu = (_a) => {
|
|
|
490
571
|
const content = useMemo(() => {
|
|
491
572
|
return items == null ? void 0 : items.map((_a2, index) => {
|
|
492
573
|
var _b2 = _a2, { type } = _b2, item = __objRest(_b2, ["type"]);
|
|
493
|
-
return type === "item" ? /* @__PURE__ */
|
|
574
|
+
return type === "item" ? /* @__PURE__ */ jsx11(MenuItem_default, __spreadValues({ level: level !== void 0 ? level + 1 : void 0 }, item), index) : type === "submenu" ? /* @__PURE__ */ jsx11(MenuSubmenu, __spreadValues({ level: level !== void 0 ? level + 1 : void 0 }, item), index) : type === "group" ? /* @__PURE__ */ jsx11(MenuGroup_default, __spreadValues({ level: level !== void 0 ? level + 1 : void 0 }, item), index) : /* @__PURE__ */ jsx11(MenuItem_default, __spreadValues({ level: level !== void 0 ? level + 1 : void 0 }, item), index);
|
|
494
575
|
});
|
|
495
576
|
}, [items]);
|
|
496
577
|
const handleClick = (event) => {
|
|
@@ -508,11 +589,11 @@ var MenuSubmenu = (_a) => {
|
|
|
508
589
|
}
|
|
509
590
|
onClick == null ? void 0 : onClick(event);
|
|
510
591
|
};
|
|
511
|
-
return /* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
592
|
+
return /* @__PURE__ */ jsx11(MenuValueContext_default.Provider, { value: mergedValues, children: /* @__PURE__ */ jsx11("div", { className: clsx9(`${PREFIX_CLS}menu-submenu`), children: /* @__PURE__ */ jsxs10(Collapse_default, { isOpen, children: [
|
|
593
|
+
/* @__PURE__ */ jsx11(CollapseTrigger_default, { children: /* @__PURE__ */ jsxs10(
|
|
513
594
|
"div",
|
|
514
595
|
__spreadProps(__spreadValues({
|
|
515
|
-
className:
|
|
596
|
+
className: clsx9(
|
|
516
597
|
`${PREFIX_CLS}menu-item`,
|
|
517
598
|
{
|
|
518
599
|
[`${PREFIX_CLS}menu-item--selected`]: menuValue.includes(value) || items && mergedValues.includes(menuValue)
|
|
@@ -525,17 +606,17 @@ var MenuSubmenu = (_a) => {
|
|
|
525
606
|
onClick: handleClick
|
|
526
607
|
}, rest), {
|
|
527
608
|
children: [
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
icon && /* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ jsx11("div", { className: `${PREFIX_CLS}overlay`, children: /* @__PURE__ */ jsx11("div", { className: `${PREFIX_CLS}overlay__surface` }) }),
|
|
610
|
+
icon && /* @__PURE__ */ jsx11("div", { className: `${PREFIX_CLS}menu-item__icon`, children: icon }),
|
|
611
|
+
/* @__PURE__ */ jsx11("div", { className: `${PREFIX_CLS}menu-item__content`, children: /* @__PURE__ */ jsx11("span", { className: `${PREFIX_CLS}menu-item__title`, children: title }) }),
|
|
612
|
+
/* @__PURE__ */ jsx11("div", { className: `${PREFIX_CLS}menu-item__icon`, children: isOpen ? /* @__PURE__ */ jsx11(ChevronUpIcon_default, { className: `${PREFIX_CLS}icon` }) : /* @__PURE__ */ jsx11(ChevronDownIcon_default, { className: `${PREFIX_CLS}icon` }) })
|
|
532
613
|
]
|
|
533
614
|
})
|
|
534
615
|
) }),
|
|
535
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ jsx11(CollapseContent_default, { children: /* @__PURE__ */ jsx11(
|
|
536
617
|
"ul",
|
|
537
618
|
{
|
|
538
|
-
className:
|
|
619
|
+
className: clsx9(`${PREFIX_CLS}menu`, {
|
|
539
620
|
[`${PREFIX_CLS}menu-open`]: !isOpen
|
|
540
621
|
}),
|
|
541
622
|
children: content || children
|
|
@@ -546,7 +627,7 @@ var MenuSubmenu = (_a) => {
|
|
|
546
627
|
var MenuSubmenu_default = MenuSubmenu;
|
|
547
628
|
|
|
548
629
|
// src/components/Menu/MenuGroup.tsx
|
|
549
|
-
import { Fragment, jsx as
|
|
630
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
550
631
|
var MenuGroup = (_a) => {
|
|
551
632
|
var _b = _a, {
|
|
552
633
|
children,
|
|
@@ -568,21 +649,21 @@ var MenuGroup = (_a) => {
|
|
|
568
649
|
const content = useMemo2(() => {
|
|
569
650
|
return items == null ? void 0 : items.map((_a2, index) => {
|
|
570
651
|
var _b2 = _a2, { type } = _b2, item = __objRest(_b2, ["type"]);
|
|
571
|
-
return type === "item" ? /* @__PURE__ */
|
|
652
|
+
return type === "item" ? /* @__PURE__ */ jsx12(MenuItem_default, __spreadValues({}, item), index) : type === "submenu" ? /* @__PURE__ */ jsx12(MenuSubmenu_default, __spreadValues({}, item), index) : /* @__PURE__ */ jsx12(MenuItem_default, __spreadValues({}, item), index);
|
|
572
653
|
});
|
|
573
654
|
}, [items]);
|
|
574
|
-
return /* @__PURE__ */
|
|
575
|
-
/* @__PURE__ */
|
|
655
|
+
return /* @__PURE__ */ jsxs11(Fragment, { children: [
|
|
656
|
+
/* @__PURE__ */ jsxs11(
|
|
576
657
|
"div",
|
|
577
658
|
__spreadProps(__spreadValues({
|
|
578
|
-
className:
|
|
659
|
+
className: clsx10(`${PREFIX_CLS}menu-group`, className),
|
|
579
660
|
style: __spreadValues({
|
|
580
661
|
paddingLeft: level <= 1 ? `var(--${PREFIX_CLS}menu-group-padding-x)` : `calc(${level} * var(--${PREFIX_CLS}menu-group-padding-level))`
|
|
581
662
|
}, style)
|
|
582
663
|
}, rest), {
|
|
583
664
|
children: [
|
|
584
|
-
icon && /* @__PURE__ */
|
|
585
|
-
/* @__PURE__ */
|
|
665
|
+
icon && /* @__PURE__ */ jsx12("div", { className: `${PREFIX_CLS}menu-group__icon`, children: icon }),
|
|
666
|
+
/* @__PURE__ */ jsx12("div", { className: `${PREFIX_CLS}menu-group__content`, children: /* @__PURE__ */ jsx12("span", { className: `${PREFIX_CLS}menu-group__title`, children: title }) })
|
|
586
667
|
]
|
|
587
668
|
})
|
|
588
669
|
),
|
|
@@ -592,7 +673,7 @@ var MenuGroup = (_a) => {
|
|
|
592
673
|
var MenuGroup_default = MenuGroup;
|
|
593
674
|
|
|
594
675
|
// src/components/Menu/Menu.tsx
|
|
595
|
-
import { jsx as
|
|
676
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
596
677
|
var Menu = (_a) => {
|
|
597
678
|
var _b = _a, {
|
|
598
679
|
children,
|
|
@@ -623,7 +704,7 @@ var Menu = (_a) => {
|
|
|
623
704
|
const content = useMemo3(() => {
|
|
624
705
|
return items == null ? void 0 : items.map((_a3, index) => {
|
|
625
706
|
var _b2 = _a3, { type } = _b2, item = __objRest(_b2, ["type"]);
|
|
626
|
-
return type === "item" ? /* @__PURE__ */
|
|
707
|
+
return type === "item" ? /* @__PURE__ */ jsx13(MenuItem_default, __spreadValues({}, item), index) : type === "submenu" ? /* @__PURE__ */ jsx13(MenuSubmenu_default, __spreadValues({}, item), index) : type === "group" ? /* @__PURE__ */ jsx13(MenuGroup_default, __spreadValues({}, item), index) : /* @__PURE__ */ jsx13(MenuItem_default, __spreadValues({}, item), index);
|
|
627
708
|
});
|
|
628
709
|
}, [items]);
|
|
629
710
|
const handleChange = (value) => {
|
|
@@ -653,7 +734,7 @@ var Menu = (_a) => {
|
|
|
653
734
|
setSelfOpenValues(openValuesProp);
|
|
654
735
|
}
|
|
655
736
|
}, [openValuesProp]);
|
|
656
|
-
return /* @__PURE__ */
|
|
737
|
+
return /* @__PURE__ */ jsx13(
|
|
657
738
|
MenuContext_default.Provider,
|
|
658
739
|
{
|
|
659
740
|
value: {
|
|
@@ -666,7 +747,7 @@ var Menu = (_a) => {
|
|
|
666
747
|
onChange: handleChange,
|
|
667
748
|
onItemSelect: handleItemSelect
|
|
668
749
|
},
|
|
669
|
-
children: /* @__PURE__ */
|
|
750
|
+
children: /* @__PURE__ */ jsx13("div", __spreadProps(__spreadValues({ className: clsx11(`${PREFIX_CLS}menu`) }, rest), { children: content || children }))
|
|
670
751
|
}
|
|
671
752
|
);
|
|
672
753
|
};
|
|
@@ -674,9 +755,9 @@ Menu.displayName = "Menu";
|
|
|
674
755
|
var Menu_default = Menu;
|
|
675
756
|
|
|
676
757
|
// src/components/Tabs/Tab.tsx
|
|
677
|
-
import
|
|
678
|
-
import
|
|
679
|
-
import { forwardRef as
|
|
758
|
+
import clsx12 from "clsx";
|
|
759
|
+
import mergeRefs2 from "merge-refs";
|
|
760
|
+
import { forwardRef as forwardRef13, useEffect as useEffect4, useId, useRef as useRef4 } from "react";
|
|
680
761
|
|
|
681
762
|
// ../../../node_modules/react-icons/lib/esm/iconBase.js
|
|
682
763
|
import React3 from "react";
|
|
@@ -776,8 +857,8 @@ var useTabs = () => {
|
|
|
776
857
|
};
|
|
777
858
|
|
|
778
859
|
// src/components/Tabs/Tab.tsx
|
|
779
|
-
import { jsx as
|
|
780
|
-
var Tab =
|
|
860
|
+
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
861
|
+
var Tab = forwardRef13(
|
|
781
862
|
(_a, ref) => {
|
|
782
863
|
var _b = _a, {
|
|
783
864
|
as: Component = "div",
|
|
@@ -798,7 +879,7 @@ var Tab = forwardRef10(
|
|
|
798
879
|
"disabled",
|
|
799
880
|
"onClick"
|
|
800
881
|
]);
|
|
801
|
-
const tabRef =
|
|
882
|
+
const tabRef = useRef4(null);
|
|
802
883
|
const id = useId();
|
|
803
884
|
const value = valueProp != null ? valueProp : id;
|
|
804
885
|
const _a2 = useTabs(), { onClose, registerItem } = _a2, tabs = __objRest(_a2, ["onClose", "registerItem"]);
|
|
@@ -846,11 +927,11 @@ var Tab = forwardRef10(
|
|
|
846
927
|
tabs.previousTabRef.current = tabRef.current;
|
|
847
928
|
}
|
|
848
929
|
}, [value, tabs.value]);
|
|
849
|
-
return /* @__PURE__ */
|
|
930
|
+
return /* @__PURE__ */ jsxs12(
|
|
850
931
|
Component,
|
|
851
932
|
__spreadProps(__spreadValues({
|
|
852
|
-
ref:
|
|
853
|
-
className:
|
|
933
|
+
ref: mergeRefs2(tabRef, ref, (el) => tabs.tabRefs.current[value] = el),
|
|
934
|
+
className: clsx12(
|
|
854
935
|
`${PREFIX_CLS}tab`,
|
|
855
936
|
{ [`${PREFIX_CLS}tab--selected`]: value === tabs.value, [`${PREFIX_CLS}tab--disabled`]: disabled },
|
|
856
937
|
className
|
|
@@ -859,12 +940,12 @@ var Tab = forwardRef10(
|
|
|
859
940
|
onClick: handleClick
|
|
860
941
|
}, rest), {
|
|
861
942
|
children: [
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ jsx14("div", { className: `${PREFIX_CLS}overlay`, children: /* @__PURE__ */ jsx14("div", { className: `${PREFIX_CLS}overlay__surface` }) }),
|
|
944
|
+
/* @__PURE__ */ jsxs12("div", { className: `${PREFIX_CLS}tab__content`, children: [
|
|
864
945
|
children,
|
|
865
|
-
closable && /* @__PURE__ */
|
|
946
|
+
closable && /* @__PURE__ */ jsx14(Button, { variant: "text", color: "secondary", iconOnly: true, size: "xs", onClick: handleClose, children: /* @__PURE__ */ jsx14(Icon_default, { children: /* @__PURE__ */ jsx14(TbX, {}) }) })
|
|
866
947
|
] }),
|
|
867
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ jsx14("div", { className: `${PREFIX_CLS}tab__indicator` })
|
|
868
949
|
]
|
|
869
950
|
})
|
|
870
951
|
);
|
|
@@ -872,8 +953,8 @@ var Tab = forwardRef10(
|
|
|
872
953
|
);
|
|
873
954
|
|
|
874
955
|
// src/components/Tabs/Tabs.tsx
|
|
875
|
-
import
|
|
876
|
-
import { useEffect as useEffect5, useRef as
|
|
956
|
+
import clsx13 from "clsx";
|
|
957
|
+
import { useEffect as useEffect5, useRef as useRef5, useState as useState3 } from "react";
|
|
877
958
|
|
|
878
959
|
// src/utils/scroll.ts
|
|
879
960
|
var scrollToItem = (parentElement, currentElement) => {
|
|
@@ -901,7 +982,7 @@ var scrollToItem = (parentElement, currentElement) => {
|
|
|
901
982
|
};
|
|
902
983
|
|
|
903
984
|
// src/components/Tabs/Tabs.tsx
|
|
904
|
-
import { jsx as
|
|
985
|
+
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
905
986
|
var Tabs = (_a) => {
|
|
906
987
|
var _b = _a, {
|
|
907
988
|
children,
|
|
@@ -920,9 +1001,9 @@ var Tabs = (_a) => {
|
|
|
920
1001
|
"onChange",
|
|
921
1002
|
"onClose"
|
|
922
1003
|
]);
|
|
923
|
-
const tabsRef =
|
|
924
|
-
const tabRefs =
|
|
925
|
-
const previousTabRef =
|
|
1004
|
+
const tabsRef = useRef5(null);
|
|
1005
|
+
const tabRefs = useRef5({});
|
|
1006
|
+
const previousTabRef = useRef5(null);
|
|
926
1007
|
const [selfValue, setSelfValue] = useState3(value != null ? value : defaultValue);
|
|
927
1008
|
const [items, setItems] = useState3([]);
|
|
928
1009
|
const registerItem = (item) => {
|
|
@@ -963,31 +1044,50 @@ var Tabs = (_a) => {
|
|
|
963
1044
|
setSelfValue(item == null ? void 0 : item.value);
|
|
964
1045
|
}
|
|
965
1046
|
}, [value, items]);
|
|
966
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsxs13(
|
|
967
1048
|
TabsContext.Provider,
|
|
968
1049
|
{
|
|
969
1050
|
value: { previousTabRef, tabRefs, value: selfValue, onChange: handleChange, onClose: handleClose, registerItem },
|
|
970
1051
|
children: [
|
|
971
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ jsx15(
|
|
972
1053
|
"div",
|
|
973
1054
|
__spreadProps(__spreadValues({
|
|
974
1055
|
ref: tabsRef,
|
|
975
|
-
className:
|
|
1056
|
+
className: clsx13(`${PREFIX_CLS}tabs`, { [`${PREFIX_CLS}tabs--${alignment}`]: alignment }, className)
|
|
976
1057
|
}, rest), {
|
|
977
1058
|
children
|
|
978
1059
|
})
|
|
979
1060
|
),
|
|
980
|
-
/* @__PURE__ */
|
|
1061
|
+
/* @__PURE__ */ jsx15("div", { className: `${PREFIX_CLS}divider` })
|
|
981
1062
|
]
|
|
982
1063
|
}
|
|
983
1064
|
);
|
|
984
1065
|
};
|
|
985
1066
|
|
|
1067
|
+
// src/components/Toolbar/Toolbar.tsx
|
|
1068
|
+
import clsx14 from "clsx";
|
|
1069
|
+
import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1070
|
+
var Toolbar = (props) => {
|
|
1071
|
+
const _a = props, { children, className, size = "md", startAction, endAction, title, subtitle } = _a, rest = __objRest(_a, ["children", "className", "size", "startAction", "endAction", "title", "subtitle"]);
|
|
1072
|
+
return /* @__PURE__ */ jsxs14("div", __spreadProps(__spreadValues({ className: clsx14(`${PREFIX_CLS}toolbar`, { [`${PREFIX_CLS}toolbar--${size}`]: size }, className) }, rest), { children: [
|
|
1073
|
+
/* @__PURE__ */ jsx16("div", { className: `${PREFIX_CLS}outline-b` }),
|
|
1074
|
+
/* @__PURE__ */ jsxs14("div", { className: clsx14(`${PREFIX_CLS}toolbar__container`), children: [
|
|
1075
|
+
startAction && /* @__PURE__ */ jsx16("div", { className: clsx14(`${PREFIX_CLS}toolbar__start-action`), children: startAction }),
|
|
1076
|
+
/* @__PURE__ */ jsx16("div", { className: clsx14(`${PREFIX_CLS}toolbar__content`), children: title || subtitle ? /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
|
1077
|
+
title && /* @__PURE__ */ jsx16("div", { className: clsx14(`${PREFIX_CLS}toolbar__title`), children: title }),
|
|
1078
|
+
subtitle && /* @__PURE__ */ jsx16("div", { className: clsx14(`${PREFIX_CLS}toolbar__subtitle`), children: subtitle })
|
|
1079
|
+
] }) : children }),
|
|
1080
|
+
endAction && /* @__PURE__ */ jsx16("div", { className: clsx14(`${PREFIX_CLS}toolbar__trailing`), children: endAction })
|
|
1081
|
+
] })
|
|
1082
|
+
] }));
|
|
1083
|
+
};
|
|
1084
|
+
var Toolbar_default = Toolbar;
|
|
1085
|
+
|
|
986
1086
|
// src/hooks/useLocalStorage.tsx
|
|
987
1087
|
import { useCallback, useEffect as useEffect7, useState as useState4 } from "react";
|
|
988
1088
|
|
|
989
1089
|
// src/hooks/useEventListener.tsx
|
|
990
|
-
import { useRef as
|
|
1090
|
+
import { useRef as useRef6 } from "react";
|
|
991
1091
|
|
|
992
1092
|
// src/hooks/useIsomorphicLayoutEffect.tsx
|
|
993
1093
|
import { useEffect as useEffect6, useLayoutEffect } from "react";
|
|
@@ -996,7 +1096,7 @@ var useIsomorphicLayoutEffect_default = useIsomorphicLayoutEffect;
|
|
|
996
1096
|
|
|
997
1097
|
// src/hooks/useEventListener.tsx
|
|
998
1098
|
function useEventListener(handler) {
|
|
999
|
-
const savedHandler =
|
|
1099
|
+
const savedHandler = useRef6(handler);
|
|
1000
1100
|
useIsomorphicLayoutEffect_default(() => {
|
|
1001
1101
|
savedHandler.current = handler;
|
|
1002
1102
|
}, [handler]);
|
|
@@ -1054,9 +1154,9 @@ function parseJSON(value) {
|
|
|
1054
1154
|
}
|
|
1055
1155
|
|
|
1056
1156
|
// src/hooks/usePrevious.tsx
|
|
1057
|
-
import { useEffect as useEffect8, useRef as
|
|
1157
|
+
import { useEffect as useEffect8, useRef as useRef7 } from "react";
|
|
1058
1158
|
var usePrevious = (value) => {
|
|
1059
|
-
const ref =
|
|
1159
|
+
const ref = useRef7();
|
|
1060
1160
|
useEffect8(() => {
|
|
1061
1161
|
ref.current = value;
|
|
1062
1162
|
});
|
|
@@ -1106,6 +1206,7 @@ var useStep = (maxStep) => {
|
|
|
1106
1206
|
];
|
|
1107
1207
|
};
|
|
1108
1208
|
export {
|
|
1209
|
+
Backdrop_default as Backdrop,
|
|
1109
1210
|
Badge_default as Badge,
|
|
1110
1211
|
Button,
|
|
1111
1212
|
Chip_default as Chip,
|
|
@@ -1120,8 +1221,11 @@ export {
|
|
|
1120
1221
|
MenuItem_default as MenuItem,
|
|
1121
1222
|
MenuSubmenu_default as MenuSubmenu,
|
|
1122
1223
|
MenuValueContext_default as MenuValueContext,
|
|
1224
|
+
Portal_default as Portal,
|
|
1123
1225
|
Tab,
|
|
1124
1226
|
Tabs,
|
|
1227
|
+
Toolbar_default as Toolbar,
|
|
1228
|
+
Transition_default as Transition,
|
|
1125
1229
|
getOpenValuesByPathname,
|
|
1126
1230
|
useCollapse,
|
|
1127
1231
|
useLocalStorage,
|