@ctlyst.id/internal-ui 2.1.11-canary.2 → 2.1.13
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 +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +953 -2279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +518 -1854
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -28
package/dist/index.mjs
CHANGED
@@ -5,364 +5,29 @@ var __export = (target, all) => {
|
|
5
5
|
__defProp(target, name, { get: all[name], enumerable: true });
|
6
6
|
};
|
7
7
|
|
8
|
-
//
|
9
|
-
import {
|
10
|
-
|
11
|
-
|
12
|
-
var
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
return -1;
|
21
|
-
}
|
22
|
-
if (compare & Node.DOCUMENT_POSITION_PRECEDING || compare & Node.DOCUMENT_POSITION_CONTAINS) {
|
23
|
-
return 1;
|
24
|
-
}
|
25
|
-
if (compare & Node.DOCUMENT_POSITION_DISCONNECTED || compare & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) {
|
26
|
-
throw Error("Cannot sort the given nodes.");
|
27
|
-
} else {
|
28
|
-
return 0;
|
29
|
-
}
|
30
|
-
});
|
31
|
-
}
|
32
|
-
var isElement = (el) => typeof el == "object" && "nodeType" in el && el.nodeType === Node.ELEMENT_NODE;
|
33
|
-
function getNextIndex(current, max, loop) {
|
34
|
-
let next = current + 1;
|
35
|
-
if (loop && next >= max)
|
36
|
-
next = 0;
|
37
|
-
return next;
|
38
|
-
}
|
39
|
-
function getPrevIndex(current, max, loop) {
|
40
|
-
let next = current - 1;
|
41
|
-
if (loop && next < 0)
|
42
|
-
next = max;
|
43
|
-
return next;
|
44
|
-
}
|
45
|
-
var useSafeLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
46
|
-
var cast = (value) => value;
|
47
|
-
|
48
|
-
// ../../node_modules/@chakra-ui/descendant/dist/chunk-P6SLLHUK.mjs
|
49
|
-
var DescendantsManager = class {
|
50
|
-
constructor() {
|
51
|
-
__publicField(this, "descendants", /* @__PURE__ */ new Map());
|
52
|
-
__publicField(this, "register", (nodeOrOptions) => {
|
53
|
-
if (nodeOrOptions == null)
|
54
|
-
return;
|
55
|
-
if (isElement(nodeOrOptions)) {
|
56
|
-
return this.registerNode(nodeOrOptions);
|
57
|
-
}
|
58
|
-
return (node) => {
|
59
|
-
this.registerNode(node, nodeOrOptions);
|
60
|
-
};
|
61
|
-
});
|
62
|
-
__publicField(this, "unregister", (node) => {
|
63
|
-
this.descendants.delete(node);
|
64
|
-
const sorted = sortNodes(Array.from(this.descendants.keys()));
|
65
|
-
this.assignIndex(sorted);
|
66
|
-
});
|
67
|
-
__publicField(this, "destroy", () => {
|
68
|
-
this.descendants.clear();
|
69
|
-
});
|
70
|
-
__publicField(this, "assignIndex", (descendants) => {
|
71
|
-
this.descendants.forEach((descendant) => {
|
72
|
-
const index = descendants.indexOf(descendant.node);
|
73
|
-
descendant.index = index;
|
74
|
-
descendant.node.dataset["index"] = descendant.index.toString();
|
75
|
-
});
|
76
|
-
});
|
77
|
-
__publicField(this, "count", () => this.descendants.size);
|
78
|
-
__publicField(this, "enabledCount", () => this.enabledValues().length);
|
79
|
-
__publicField(this, "values", () => {
|
80
|
-
const values = Array.from(this.descendants.values());
|
81
|
-
return values.sort((a, b) => a.index - b.index);
|
82
|
-
});
|
83
|
-
__publicField(this, "enabledValues", () => {
|
84
|
-
return this.values().filter((descendant) => !descendant.disabled);
|
85
|
-
});
|
86
|
-
__publicField(this, "item", (index) => {
|
87
|
-
if (this.count() === 0)
|
88
|
-
return void 0;
|
89
|
-
return this.values()[index];
|
90
|
-
});
|
91
|
-
__publicField(this, "enabledItem", (index) => {
|
92
|
-
if (this.enabledCount() === 0)
|
93
|
-
return void 0;
|
94
|
-
return this.enabledValues()[index];
|
95
|
-
});
|
96
|
-
__publicField(this, "first", () => this.item(0));
|
97
|
-
__publicField(this, "firstEnabled", () => this.enabledItem(0));
|
98
|
-
__publicField(this, "last", () => this.item(this.descendants.size - 1));
|
99
|
-
__publicField(this, "lastEnabled", () => {
|
100
|
-
const lastIndex = this.enabledValues().length - 1;
|
101
|
-
return this.enabledItem(lastIndex);
|
102
|
-
});
|
103
|
-
__publicField(this, "indexOf", (node) => {
|
104
|
-
var _a, _b;
|
105
|
-
if (!node)
|
106
|
-
return -1;
|
107
|
-
return (_b = (_a = this.descendants.get(node)) == null ? void 0 : _a.index) != null ? _b : -1;
|
108
|
-
});
|
109
|
-
__publicField(this, "enabledIndexOf", (node) => {
|
110
|
-
if (node == null)
|
111
|
-
return -1;
|
112
|
-
return this.enabledValues().findIndex((i) => i.node.isSameNode(node));
|
113
|
-
});
|
114
|
-
__publicField(this, "next", (index, loop = true) => {
|
115
|
-
const next = getNextIndex(index, this.count(), loop);
|
116
|
-
return this.item(next);
|
117
|
-
});
|
118
|
-
__publicField(this, "nextEnabled", (index, loop = true) => {
|
119
|
-
const item = this.item(index);
|
120
|
-
if (!item)
|
121
|
-
return;
|
122
|
-
const enabledIndex = this.enabledIndexOf(item.node);
|
123
|
-
const nextEnabledIndex = getNextIndex(
|
124
|
-
enabledIndex,
|
125
|
-
this.enabledCount(),
|
126
|
-
loop
|
127
|
-
);
|
128
|
-
return this.enabledItem(nextEnabledIndex);
|
129
|
-
});
|
130
|
-
__publicField(this, "prev", (index, loop = true) => {
|
131
|
-
const prev = getPrevIndex(index, this.count() - 1, loop);
|
132
|
-
return this.item(prev);
|
133
|
-
});
|
134
|
-
__publicField(this, "prevEnabled", (index, loop = true) => {
|
135
|
-
const item = this.item(index);
|
136
|
-
if (!item)
|
137
|
-
return;
|
138
|
-
const enabledIndex = this.enabledIndexOf(item.node);
|
139
|
-
const prevEnabledIndex = getPrevIndex(
|
140
|
-
enabledIndex,
|
141
|
-
this.enabledCount() - 1,
|
142
|
-
loop
|
143
|
-
);
|
144
|
-
return this.enabledItem(prevEnabledIndex);
|
145
|
-
});
|
146
|
-
__publicField(this, "registerNode", (node, options) => {
|
147
|
-
if (!node || this.descendants.has(node))
|
148
|
-
return;
|
149
|
-
const keys = Array.from(this.descendants.keys()).concat(node);
|
150
|
-
const sorted = sortNodes(keys);
|
151
|
-
if (options == null ? void 0 : options.disabled) {
|
152
|
-
options.disabled = !!options.disabled;
|
153
|
-
}
|
154
|
-
const descendant = { node, index: -1, ...options };
|
155
|
-
this.descendants.set(node, descendant);
|
156
|
-
this.assignIndex(sorted);
|
157
|
-
});
|
158
|
-
}
|
159
|
-
};
|
160
|
-
|
161
|
-
// ../../node_modules/@chakra-ui/react-context/dist/index.mjs
|
162
|
-
import {
|
163
|
-
createContext as createReactContext,
|
164
|
-
useContext as useReactContext
|
165
|
-
} from "react";
|
166
|
-
function getErrorMessage(hook, provider) {
|
167
|
-
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
168
|
-
}
|
169
|
-
function createContext(options = {}) {
|
170
|
-
const {
|
171
|
-
name,
|
172
|
-
strict = true,
|
173
|
-
hookName = "useContext",
|
174
|
-
providerName = "Provider",
|
175
|
-
errorMessage,
|
176
|
-
defaultValue
|
177
|
-
} = options;
|
178
|
-
const Context = createReactContext(defaultValue);
|
179
|
-
Context.displayName = name;
|
180
|
-
function useContext2() {
|
181
|
-
var _a;
|
182
|
-
const context = useReactContext(Context);
|
183
|
-
if (!context && strict) {
|
184
|
-
const error = new Error(
|
185
|
-
errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName)
|
186
|
-
);
|
187
|
-
error.name = "ContextError";
|
188
|
-
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext2);
|
189
|
-
throw error;
|
190
|
-
}
|
191
|
-
return context;
|
192
|
-
}
|
193
|
-
return [Context.Provider, useContext2, Context];
|
194
|
-
}
|
195
|
-
|
196
|
-
// ../../node_modules/@chakra-ui/react-use-merge-refs/dist/index.mjs
|
197
|
-
import { useMemo } from "react";
|
198
|
-
function assignRef(ref, value) {
|
199
|
-
if (ref == null)
|
200
|
-
return;
|
201
|
-
if (typeof ref === "function") {
|
202
|
-
ref(value);
|
203
|
-
return;
|
204
|
-
}
|
205
|
-
try {
|
206
|
-
ref.current = value;
|
207
|
-
} catch (error) {
|
208
|
-
throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);
|
209
|
-
}
|
210
|
-
}
|
211
|
-
function mergeRefs(...refs) {
|
212
|
-
return (node) => {
|
213
|
-
refs.forEach((ref) => {
|
214
|
-
assignRef(ref, node);
|
215
|
-
});
|
216
|
-
};
|
217
|
-
}
|
218
|
-
|
219
|
-
// ../../node_modules/@chakra-ui/descendant/dist/chunk-D5UZ3RNN.mjs
|
220
|
-
import { useRef, useState } from "react";
|
221
|
-
function useDescendants() {
|
222
|
-
const descendants = useRef(new DescendantsManager());
|
223
|
-
useSafeLayoutEffect(() => {
|
224
|
-
return () => descendants.current.destroy();
|
225
|
-
});
|
226
|
-
return descendants.current;
|
227
|
-
}
|
228
|
-
var [DescendantsContextProvider, useDescendantsContext] = createContext({
|
229
|
-
name: "DescendantsProvider",
|
230
|
-
errorMessage: "useDescendantsContext must be used within DescendantsProvider"
|
231
|
-
});
|
232
|
-
function useDescendant(options) {
|
233
|
-
const descendants = useDescendantsContext();
|
234
|
-
const [index, setIndex] = useState(-1);
|
235
|
-
const ref = useRef(null);
|
236
|
-
useSafeLayoutEffect(() => {
|
237
|
-
return () => {
|
238
|
-
if (!ref.current)
|
239
|
-
return;
|
240
|
-
descendants.unregister(ref.current);
|
241
|
-
};
|
242
|
-
}, []);
|
243
|
-
useSafeLayoutEffect(() => {
|
244
|
-
if (!ref.current)
|
245
|
-
return;
|
246
|
-
const dataIndex = Number(ref.current.dataset["index"]);
|
247
|
-
if (index != dataIndex && !Number.isNaN(dataIndex)) {
|
248
|
-
setIndex(dataIndex);
|
8
|
+
// src/components/accordion/components/accordion-eye.tsx
|
9
|
+
import { Box } from "@chakra-ui/react";
|
10
|
+
import { Eye } from "@ctlyst.id/internal-icon";
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
12
|
+
var AccordionEye = ({ position = "left" }) => {
|
13
|
+
return /* @__PURE__ */ jsx(
|
14
|
+
Box,
|
15
|
+
{
|
16
|
+
className: "eye-icon",
|
17
|
+
backgroundColor: "white",
|
18
|
+
...position === "right" ? { position: "absolute", right: 4, zIndex: 2 } : {},
|
19
|
+
children: /* @__PURE__ */ jsx(Eye, { size: 4 })
|
249
20
|
}
|
250
|
-
});
|
251
|
-
const refCallback = options ? cast(descendants.register(options)) : cast(descendants.register);
|
252
|
-
return {
|
253
|
-
descendants,
|
254
|
-
index,
|
255
|
-
enabledIndex: descendants.enabledIndexOf(ref.current),
|
256
|
-
register: mergeRefs(refCallback, ref)
|
257
|
-
};
|
258
|
-
}
|
259
|
-
function createDescendantContext() {
|
260
|
-
const ContextProvider = cast(DescendantsContextProvider);
|
261
|
-
const _useDescendantsContext = () => cast(useDescendantsContext());
|
262
|
-
const _useDescendant = (options) => useDescendant(options);
|
263
|
-
const _useDescendants = () => useDescendants();
|
264
|
-
return [
|
265
|
-
ContextProvider,
|
266
|
-
_useDescendantsContext,
|
267
|
-
_useDescendants,
|
268
|
-
_useDescendant
|
269
|
-
];
|
270
|
-
}
|
271
|
-
|
272
|
-
// ../../node_modules/@chakra-ui/accordion/dist/chunk-JST25EWU.mjs
|
273
|
-
var [AccordionStylesProvider, useAccordionStyles] = createContext({
|
274
|
-
name: "AccordionStylesContext",
|
275
|
-
hookName: "useAccordionStyles",
|
276
|
-
providerName: "<Accordion />"
|
277
|
-
});
|
278
|
-
var [AccordionItemProvider, useAccordionItemContext] = createContext({
|
279
|
-
name: "AccordionItemContext",
|
280
|
-
hookName: "useAccordionItemContext",
|
281
|
-
providerName: "<AccordionItem />"
|
282
|
-
});
|
283
|
-
var [
|
284
|
-
AccordionDescendantsProvider,
|
285
|
-
useAccordionDescendantsContext,
|
286
|
-
useAccordionDescendants,
|
287
|
-
useAccordionDescendant
|
288
|
-
] = createDescendantContext();
|
289
|
-
|
290
|
-
// ../../node_modules/@chakra-ui/shared-utils/dist/index.mjs
|
291
|
-
var cx = (...classNames) => classNames.filter(Boolean).join(" ");
|
292
|
-
function isObject(value) {
|
293
|
-
const type = typeof value;
|
294
|
-
return value != null && (type === "object" || type === "function") && !Array.isArray(value);
|
295
|
-
}
|
296
|
-
var dataAttr = (condition) => condition ? "" : void 0;
|
297
|
-
var ariaAttr = (condition) => condition ? true : void 0;
|
298
|
-
function callAllHandlers(...fns) {
|
299
|
-
return function func(event) {
|
300
|
-
fns.some((fn) => {
|
301
|
-
fn == null ? void 0 : fn(event);
|
302
|
-
return event == null ? void 0 : event.defaultPrevented;
|
303
|
-
});
|
304
|
-
};
|
305
|
-
}
|
306
|
-
|
307
|
-
// ../../node_modules/@chakra-ui/react-use-controllable-state/dist/index.mjs
|
308
|
-
import { useMemo as useMemo2, useState as useState2 } from "react";
|
309
|
-
|
310
|
-
// ../../node_modules/@chakra-ui/react-use-callback-ref/dist/index.mjs
|
311
|
-
import { useCallback, useEffect as useEffect2, useRef as useRef2 } from "react";
|
312
|
-
function useCallbackRef(callback, deps = []) {
|
313
|
-
const callbackRef = useRef2(callback);
|
314
|
-
useEffect2(() => {
|
315
|
-
callbackRef.current = callback;
|
316
|
-
});
|
317
|
-
return useCallback((...args) => {
|
318
|
-
var _a;
|
319
|
-
return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
|
320
|
-
}, deps);
|
321
|
-
}
|
322
|
-
|
323
|
-
// ../../node_modules/@chakra-ui/react-use-controllable-state/dist/index.mjs
|
324
|
-
function useControllableState(props) {
|
325
|
-
const {
|
326
|
-
value: valueProp,
|
327
|
-
defaultValue,
|
328
|
-
onChange,
|
329
|
-
shouldUpdate = (prev, next) => prev !== next
|
330
|
-
} = props;
|
331
|
-
const onChangeProp = useCallbackRef(onChange);
|
332
|
-
const shouldUpdateProp = useCallbackRef(shouldUpdate);
|
333
|
-
const [uncontrolledState, setUncontrolledState] = useState2(defaultValue);
|
334
|
-
const controlled = valueProp !== void 0;
|
335
|
-
const value = controlled ? valueProp : uncontrolledState;
|
336
|
-
const setValue = useCallbackRef(
|
337
|
-
(next) => {
|
338
|
-
const setter = next;
|
339
|
-
const nextValue = typeof next === "function" ? setter(value) : next;
|
340
|
-
if (!shouldUpdateProp(value, nextValue)) {
|
341
|
-
return;
|
342
|
-
}
|
343
|
-
if (!controlled) {
|
344
|
-
setUncontrolledState(nextValue);
|
345
|
-
}
|
346
|
-
onChangeProp(nextValue);
|
347
|
-
},
|
348
|
-
[controlled, onChangeProp, value, shouldUpdateProp]
|
349
21
|
);
|
350
|
-
|
351
|
-
}
|
352
|
-
|
353
|
-
// ../../node_modules/@chakra-ui/accordion/dist/chunk-UN5JZMTF.mjs
|
354
|
-
function useAccordionItemState() {
|
355
|
-
const { isOpen, isDisabled, onClose, onOpen } = useAccordionItemContext();
|
356
|
-
return { isOpen, onClose, isDisabled, onOpen };
|
357
|
-
}
|
22
|
+
};
|
358
23
|
|
359
24
|
// src/components/accordion/components/accordion-indicator.tsx
|
360
|
-
import { Box } from "@chakra-ui/react";
|
361
|
-
import { jsx } from "react/jsx-runtime";
|
25
|
+
import { Box as Box2, useAccordionItemState } from "@chakra-ui/react";
|
26
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
362
27
|
var AccordionIndicator = () => {
|
363
28
|
const { isOpen } = useAccordionItemState();
|
364
29
|
if (isOpen) {
|
365
|
-
return /* @__PURE__ */
|
30
|
+
return /* @__PURE__ */ jsx2(Box2, { position: "absolute", left: 0, width: "2px", height: "100%", bg: "primary.500" });
|
366
31
|
}
|
367
32
|
return null;
|
368
33
|
};
|
@@ -388,23 +53,27 @@ import {
|
|
388
53
|
useAccordionItemState as useAccordionItemState2,
|
389
54
|
UseAccordionProps,
|
390
55
|
UseAccordionReturn,
|
391
|
-
useAccordionStyles
|
56
|
+
useAccordionStyles
|
392
57
|
} from "@chakra-ui/react";
|
393
58
|
|
394
59
|
// src/components/alert/components/alert.tsx
|
60
|
+
import { cx } from "@chakra-ui/shared-utils";
|
395
61
|
import { chakra, forwardRef, omitThemingProps, useMultiStyleConfig } from "@chakra-ui/system";
|
396
62
|
|
63
|
+
// src/components/alert/components/alert-context.ts
|
64
|
+
import { createContext } from "@chakra-ui/react-context";
|
65
|
+
|
397
66
|
// src/components/alert/components/icons.tsx
|
398
67
|
import { AlertTriangle, CheckCircle, Info } from "@ctlyst.id/internal-icon";
|
399
|
-
import { jsx as
|
68
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
400
69
|
function CheckIcon() {
|
401
|
-
return /* @__PURE__ */
|
70
|
+
return /* @__PURE__ */ jsx3(CheckCircle, { color: "inherit", size: 4 });
|
402
71
|
}
|
403
72
|
function InfoIcon() {
|
404
|
-
return /* @__PURE__ */
|
73
|
+
return /* @__PURE__ */ jsx3(Info, { color: "inherit", size: 4 });
|
405
74
|
}
|
406
75
|
function WarningIcon() {
|
407
|
-
return /* @__PURE__ */
|
76
|
+
return /* @__PURE__ */ jsx3(AlertTriangle, { color: "inherit", size: 4 });
|
408
77
|
}
|
409
78
|
|
410
79
|
// src/components/alert/components/alert-context.ts
|
@@ -433,7 +102,7 @@ function getStatusIcon(status) {
|
|
433
102
|
}
|
434
103
|
|
435
104
|
// src/components/alert/components/alert.tsx
|
436
|
-
import { jsx as
|
105
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
437
106
|
var Alert = forwardRef(function Alert2(props, ref) {
|
438
107
|
var _a;
|
439
108
|
const { status = "info", addRole = true, children, ...rest } = omitThemingProps(props);
|
@@ -448,7 +117,7 @@ var Alert = forwardRef(function Alert2(props, ref) {
|
|
448
117
|
overflow: "hidden",
|
449
118
|
...styles.container
|
450
119
|
};
|
451
|
-
return /* @__PURE__ */
|
120
|
+
return /* @__PURE__ */ jsx4(AlertProvider, { value: { status }, children: /* @__PURE__ */ jsx4(AlertStylesProvider, { value: styles, children: /* @__PURE__ */ jsx4(
|
452
121
|
chakra.div,
|
453
122
|
{
|
454
123
|
"data-status": status,
|
@@ -464,17 +133,17 @@ var Alert = forwardRef(function Alert2(props, ref) {
|
|
464
133
|
Alert.displayName = "Alert";
|
465
134
|
|
466
135
|
// src/components/alert/components/alert-action.tsx
|
467
|
-
import { cx as cx2 } from "@chakra-ui/utils";
|
136
|
+
import { cx as cx2 } from "@chakra-ui/shared-utils";
|
468
137
|
|
469
138
|
// src/components/button/components/button.tsx
|
470
139
|
import { Button as ButtonChakra, forwardRef as forwardRef3 } from "@chakra-ui/react";
|
471
140
|
|
472
141
|
// src/components/loader/components/loader.tsx
|
473
|
-
import { Box as
|
474
|
-
import { jsx as
|
142
|
+
import { Box as Box3, forwardRef as forwardRef2, useStyleConfig } from "@chakra-ui/react";
|
143
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
475
144
|
var Loader = forwardRef2((props, ref) => {
|
476
145
|
const styles = useStyleConfig("LoaderStyle", props);
|
477
|
-
return /* @__PURE__ */
|
146
|
+
return /* @__PURE__ */ jsx5(Box3, { ref, __css: styles });
|
478
147
|
});
|
479
148
|
Loader.defaultProps = {
|
480
149
|
size: "md"
|
@@ -485,7 +154,7 @@ var loader_default = Loader;
|
|
485
154
|
import { Skeleton } from "@chakra-ui/react";
|
486
155
|
|
487
156
|
// src/components/button/components/button.tsx
|
488
|
-
import { jsx as
|
157
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
489
158
|
var Button = forwardRef3((props, ref) => {
|
490
159
|
const { children, variant, size: size2, ...rest } = props;
|
491
160
|
const getLoaderSize = () => {
|
@@ -498,12 +167,12 @@ var Button = forwardRef3((props, ref) => {
|
|
498
167
|
if (variant === "outline-danger") return "danger";
|
499
168
|
return "primary";
|
500
169
|
};
|
501
|
-
return /* @__PURE__ */
|
170
|
+
return /* @__PURE__ */ jsx6(
|
502
171
|
ButtonChakra,
|
503
172
|
{
|
504
173
|
size: size2,
|
505
174
|
variant,
|
506
|
-
spinner: /* @__PURE__ */
|
175
|
+
spinner: /* @__PURE__ */ jsx6(loader_default, { size: getLoaderSize(), color: getLoaderColor2() }),
|
507
176
|
ref,
|
508
177
|
...rest,
|
509
178
|
children
|
@@ -513,11 +182,11 @@ var Button = forwardRef3((props, ref) => {
|
|
513
182
|
var button_default = Button;
|
514
183
|
|
515
184
|
// src/components/alert/components/alert-action.tsx
|
516
|
-
import { jsx as
|
185
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
517
186
|
function AlertAction({ children, className }) {
|
518
187
|
const styles = useAlertStyles();
|
519
188
|
const css4 = styles.action;
|
520
|
-
return /* @__PURE__ */
|
189
|
+
return /* @__PURE__ */ jsx7(
|
521
190
|
button_default,
|
522
191
|
{
|
523
192
|
"data-test-id": "alert-action",
|
@@ -532,29 +201,31 @@ function AlertAction({ children, className }) {
|
|
532
201
|
AlertAction.displayName = "AlertAction";
|
533
202
|
|
534
203
|
// src/components/alert/components/alert-close.tsx
|
204
|
+
import { cx as cx3 } from "@chakra-ui/shared-utils";
|
535
205
|
import { chakra as chakra2 } from "@chakra-ui/system";
|
536
206
|
import { Close } from "@ctlyst.id/internal-icon";
|
537
|
-
import { jsx as
|
207
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
538
208
|
function AlertClose({ className, children, ...rest }) {
|
539
209
|
const styles = useAlertStyles();
|
540
210
|
const css4 = styles.close;
|
541
|
-
return /* @__PURE__ */
|
211
|
+
return /* @__PURE__ */ jsx8(
|
542
212
|
chakra2.span,
|
543
213
|
{
|
544
214
|
display: "inherit",
|
545
215
|
"data-status": "alert-close",
|
546
216
|
...rest,
|
547
|
-
className:
|
217
|
+
className: cx3("chakra-alert__close", className),
|
548
218
|
__css: css4,
|
549
|
-
children: children || /* @__PURE__ */
|
219
|
+
children: children || /* @__PURE__ */ jsx8(Close, { color: "inherit", size: 4 })
|
550
220
|
}
|
551
221
|
);
|
552
222
|
}
|
553
223
|
AlertClose.displayName = "AlertClose";
|
554
224
|
|
555
225
|
// src/components/alert/components/alert-description.tsx
|
226
|
+
import { cx as cx4 } from "@chakra-ui/shared-utils";
|
556
227
|
import { chakra as chakra3, forwardRef as forwardRef4 } from "@chakra-ui/system";
|
557
|
-
import { jsx as
|
228
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
558
229
|
var AlertDescription = forwardRef4(function AlertDescription2(props, ref) {
|
559
230
|
const styles = useAlertStyles();
|
560
231
|
const { status } = useAlertContext();
|
@@ -562,13 +233,13 @@ var AlertDescription = forwardRef4(function AlertDescription2(props, ref) {
|
|
562
233
|
display: "inline",
|
563
234
|
...styles.description
|
564
235
|
};
|
565
|
-
return /* @__PURE__ */
|
236
|
+
return /* @__PURE__ */ jsx9(
|
566
237
|
chakra3.div,
|
567
238
|
{
|
568
239
|
ref,
|
569
240
|
"data-status": status,
|
570
241
|
...props,
|
571
|
-
className:
|
242
|
+
className: cx4("chakra-alert__desc", props.className),
|
572
243
|
__css: descriptionStyles
|
573
244
|
}
|
574
245
|
);
|
@@ -576,72 +247,51 @@ var AlertDescription = forwardRef4(function AlertDescription2(props, ref) {
|
|
576
247
|
AlertDescription.displayName = "AlertDescription";
|
577
248
|
|
578
249
|
// src/components/alert/components/alert-icon.tsx
|
250
|
+
import { cx as cx5 } from "@chakra-ui/shared-utils";
|
579
251
|
import { chakra as chakra4 } from "@chakra-ui/system";
|
580
|
-
import { jsx as
|
252
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
581
253
|
function AlertIcon({ className, children, ...rest }) {
|
582
254
|
const { status } = useAlertContext();
|
583
255
|
const BaseIcon = getStatusIcon(status);
|
584
256
|
const styles = useAlertStyles();
|
585
257
|
const css4 = styles.icon;
|
586
|
-
return /* @__PURE__ */
|
258
|
+
return /* @__PURE__ */ jsx10(
|
587
259
|
chakra4.span,
|
588
260
|
{
|
589
261
|
display: "inherit",
|
590
262
|
"data-status": status,
|
591
263
|
...rest,
|
592
|
-
className:
|
264
|
+
className: cx5("chakra-alert__icon", className),
|
593
265
|
__css: css4,
|
594
|
-
children: children || /* @__PURE__ */
|
266
|
+
children: children || /* @__PURE__ */ jsx10(BaseIcon, {})
|
595
267
|
}
|
596
268
|
);
|
597
269
|
}
|
598
270
|
AlertIcon.displayName = "AlertIcon";
|
599
271
|
|
600
272
|
// src/components/alert/components/alert-title.tsx
|
273
|
+
import { cx as cx6 } from "@chakra-ui/shared-utils";
|
601
274
|
import { chakra as chakra5, forwardRef as forwardRef5 } from "@chakra-ui/system";
|
602
|
-
import { jsx as
|
275
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
603
276
|
var AlertTitle = forwardRef5(function AlertTitle2(props, ref) {
|
604
277
|
const styles = useAlertStyles();
|
605
278
|
const { status } = useAlertContext();
|
606
|
-
return /* @__PURE__ */
|
279
|
+
return /* @__PURE__ */ jsx11(
|
607
280
|
chakra5.div,
|
608
281
|
{
|
609
282
|
ref,
|
610
283
|
"data-status": status,
|
611
284
|
...props,
|
612
|
-
className:
|
285
|
+
className: cx6("chakra-alert__title", props.className),
|
613
286
|
__css: styles.title
|
614
287
|
}
|
615
288
|
);
|
616
289
|
});
|
617
290
|
AlertTitle.displayName = "AlertTitle";
|
618
291
|
|
619
|
-
// ../../node_modules/@chakra-ui/layout/dist/chunk-YTV6DHKL.mjs
|
620
|
-
import {
|
621
|
-
chakra as chakra6,
|
622
|
-
forwardRef as forwardRef6,
|
623
|
-
omitThemingProps as omitThemingProps2,
|
624
|
-
useStyleConfig as useStyleConfig2
|
625
|
-
} from "@chakra-ui/system";
|
626
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
627
|
-
var Link = forwardRef6(function Link2(props, ref) {
|
628
|
-
const styles = useStyleConfig2("Link", props);
|
629
|
-
const { className, isExternal, ...rest } = omitThemingProps2(props);
|
630
|
-
return /* @__PURE__ */ jsx11(
|
631
|
-
chakra6.a,
|
632
|
-
{
|
633
|
-
target: isExternal ? "_blank" : void 0,
|
634
|
-
rel: isExternal ? "noopener" : void 0,
|
635
|
-
ref,
|
636
|
-
className: cx("chakra-link", className),
|
637
|
-
...rest,
|
638
|
-
__css: styles
|
639
|
-
}
|
640
|
-
);
|
641
|
-
});
|
642
|
-
Link.displayName = "Link";
|
643
|
-
|
644
292
|
// src/components/anchor/components/anchor.tsx
|
293
|
+
import { Link } from "@chakra-ui/react";
|
294
|
+
import { cx as cx7 } from "@chakra-ui/shared-utils";
|
645
295
|
import { jsxs } from "react/jsx-runtime";
|
646
296
|
var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) => {
|
647
297
|
return /* @__PURE__ */ jsxs(
|
@@ -655,7 +305,7 @@ var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) =>
|
|
655
305
|
borderLeftColor: isActive ? "primary.500" : "neutral.400",
|
656
306
|
color: isActive ? "primary.500" : "black.high",
|
657
307
|
bg: isActive ? "neutral.100" : "white",
|
658
|
-
className:
|
308
|
+
className: cx7("catalyst-anchor", props.className),
|
659
309
|
_hover: {
|
660
310
|
textDecoration: "none"
|
661
311
|
},
|
@@ -700,7 +350,7 @@ Badge.defaultProps = {
|
|
700
350
|
var badge_default = Badge;
|
701
351
|
|
702
352
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
703
|
-
import { Box as
|
353
|
+
import { Box as Box4, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Text, theme, useToken } from "@chakra-ui/react";
|
704
354
|
import { FiChevronLeft, FiChevronsRight, FiHome } from "react-icons/fi";
|
705
355
|
|
706
356
|
// src/components/button/index.ts
|
@@ -719,7 +369,7 @@ var BreadCrumb = (props) => {
|
|
719
369
|
const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton } = props;
|
720
370
|
const [neutral600, primary500] = useToken("colors", ["neutral.600", "primary.500"]);
|
721
371
|
return /* @__PURE__ */ jsxs2(
|
722
|
-
|
372
|
+
Box4,
|
723
373
|
{
|
724
374
|
"data-test-id": "CT_component_breadcrumb_breadcrumb",
|
725
375
|
className,
|
@@ -728,10 +378,10 @@ var BreadCrumb = (props) => {
|
|
728
378
|
alignItems: "center",
|
729
379
|
paddingY: 2,
|
730
380
|
children: [
|
731
|
-
/* @__PURE__ */ jsxs2(
|
381
|
+
/* @__PURE__ */ jsxs2(Box4, { display: "flex", alignItems: "center", children: [
|
732
382
|
backButton && /* @__PURE__ */ jsx13(button_default, { variant: "icon", "data-test-id": "button", size: "md", mr: "2", onClick: backButton, children: /* @__PURE__ */ jsx13(FiChevronLeft, { size: theme.sizes[5] }) }),
|
733
383
|
/* @__PURE__ */ jsx13(Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title }),
|
734
|
-
/* @__PURE__ */ jsx13(
|
384
|
+
/* @__PURE__ */ jsx13(Box4, { h: "5.5", borderLeft: "1px solid", borderColor: neutral600 }),
|
735
385
|
/* @__PURE__ */ jsxs2(
|
736
386
|
Breadcrumb,
|
737
387
|
{
|
@@ -765,7 +415,7 @@ var BreadCrumb = (props) => {
|
|
765
415
|
}
|
766
416
|
)
|
767
417
|
] }),
|
768
|
-
children && /* @__PURE__ */ jsx13(
|
418
|
+
children && /* @__PURE__ */ jsx13(Box4, { children })
|
769
419
|
]
|
770
420
|
}
|
771
421
|
);
|
@@ -781,11 +431,11 @@ BreadCrumb.defaultProps = {
|
|
781
431
|
var bread_crumb_default = BreadCrumb;
|
782
432
|
|
783
433
|
// src/components/card/components/card.tsx
|
784
|
-
import { Card, useStyleConfig as
|
785
|
-
import { forwardRef as
|
434
|
+
import { Card, useStyleConfig as useStyleConfig2 } from "@chakra-ui/react";
|
435
|
+
import { forwardRef as forwardRef6 } from "react";
|
786
436
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
787
|
-
var CardCustom =
|
788
|
-
const styles =
|
437
|
+
var CardCustom = forwardRef6(({ children, ...rest }, ref) => {
|
438
|
+
const styles = useStyleConfig2("Card", rest);
|
789
439
|
return /* @__PURE__ */ jsx14(Card, { __css: styles, backgroundColor: "white.high", ref, ...rest, children });
|
790
440
|
});
|
791
441
|
CardCustom.defaultProps = {
|
@@ -795,14 +445,14 @@ CardCustom.defaultProps = {
|
|
795
445
|
var card_default = CardCustom;
|
796
446
|
|
797
447
|
// src/components/checkbox/components/checkbox.tsx
|
798
|
-
import { Box as
|
448
|
+
import { Box as Box5, Checkbox, forwardRef as forwardRef7, Text as Text2 } from "@chakra-ui/react";
|
799
449
|
import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
|
800
|
-
var CheckboxComponent =
|
450
|
+
var CheckboxComponent = forwardRef7(
|
801
451
|
({ isError = false, helpText = "", errorText = "", boxProps, children, isDisabled, ...rest }, ref) => {
|
802
452
|
const variant = isError ? "errors" : "unstyled";
|
803
|
-
return /* @__PURE__ */ jsxs3(
|
804
|
-
/* @__PURE__ */ jsx15(
|
805
|
-
(isError || helpText) && /* @__PURE__ */ jsx15(
|
453
|
+
return /* @__PURE__ */ jsxs3(Box5, { ...boxProps, children: [
|
454
|
+
/* @__PURE__ */ jsx15(Box5, { display: "flex", children: /* @__PURE__ */ jsx15(Checkbox, { variant, ref, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx15(Text2, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
455
|
+
(isError || helpText) && /* @__PURE__ */ jsx15(Box5, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ jsx15(Text2, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ jsx15(Text2, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
806
456
|
] });
|
807
457
|
}
|
808
458
|
);
|
@@ -815,10 +465,10 @@ CheckboxComponent.defaultProps = {
|
|
815
465
|
var checkbox_default = CheckboxComponent;
|
816
466
|
|
817
467
|
// src/components/checkbox/components/checkbox-group.tsx
|
818
|
-
import { Box as
|
468
|
+
import { Box as Box7, CheckboxGroup, Stack } from "@chakra-ui/react";
|
819
469
|
|
820
470
|
// src/components/field/components/field.tsx
|
821
|
-
import { Box as
|
471
|
+
import { Box as Box6, FormControl, FormErrorMessage, FormHelperText, FormLabel } from "@chakra-ui/react";
|
822
472
|
import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
|
823
473
|
var Field = (props) => {
|
824
474
|
const {
|
@@ -845,11 +495,11 @@ var Field = (props) => {
|
|
845
495
|
const justifyHelper = getJustifyContentHelper();
|
846
496
|
return /* @__PURE__ */ jsxs4(FormControl, { isInvalid: isError, ...boxProps, children: [
|
847
497
|
label && (typeof label === "string" ? /* @__PURE__ */ jsxs4(FormLabel, { mb: 1, fontSize: "text.sm", requiredIndicator: void 0, children: [
|
848
|
-
isRequired && /* @__PURE__ */ jsx16(
|
498
|
+
isRequired && /* @__PURE__ */ jsx16(Box6, { as: "span", color: "danger.500", ml: 0, mr: 1, children: "*" }),
|
849
499
|
label
|
850
500
|
] }) : label),
|
851
501
|
children,
|
852
|
-
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ jsxs4(
|
502
|
+
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ jsxs4(Box6, { display: "flex", width: "full", justifyContent: justifyHelper, children: [
|
853
503
|
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ jsx16(FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: leftHelperText }) : leftHelperText) : typeof errorMessage === "string" ? /* @__PURE__ */ jsx16(FormErrorMessage, { fontSize: "text.xs", color: "danger.500", mt: 1, children: errorMessage }) : errorMessage,
|
854
504
|
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ jsx16(FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: rightHelperText }) : rightHelperText)
|
855
505
|
] })
|
@@ -871,7 +521,7 @@ var field_default = Field;
|
|
871
521
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
872
522
|
function CheckboxGroupComponent(props) {
|
873
523
|
const { children, label, helpText, isError, errorMessage, ...rest } = props;
|
874
|
-
return /* @__PURE__ */ jsx17(field_default, { ...rest, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx17(
|
524
|
+
return /* @__PURE__ */ jsx17(field_default, { ...rest, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx17(Box7, { mt: "12px", children: /* @__PURE__ */ jsx17(CheckboxGroup, { ...rest, children: /* @__PURE__ */ jsx17(Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
875
525
|
}
|
876
526
|
CheckboxGroupComponent.defaultProps = {
|
877
527
|
helpText: "",
|
@@ -880,741 +530,38 @@ CheckboxGroupComponent.defaultProps = {
|
|
880
530
|
};
|
881
531
|
var checkbox_group_default = CheckboxGroupComponent;
|
882
532
|
|
883
|
-
//
|
884
|
-
import { useCallback as useCallback2 } from "react";
|
885
|
-
function isInputEvent(value) {
|
886
|
-
return value && isObject(value) && isObject(value.target);
|
887
|
-
}
|
888
|
-
function useCheckboxGroup(props = {}) {
|
889
|
-
const {
|
890
|
-
defaultValue,
|
891
|
-
value: valueProp,
|
892
|
-
onChange,
|
893
|
-
isDisabled,
|
894
|
-
isNative
|
895
|
-
} = props;
|
896
|
-
const onChangeProp = useCallbackRef(onChange);
|
897
|
-
const [value, setValue] = useControllableState({
|
898
|
-
value: valueProp,
|
899
|
-
defaultValue: defaultValue || [],
|
900
|
-
onChange: onChangeProp
|
901
|
-
});
|
902
|
-
const handleChange = useCallback2(
|
903
|
-
(eventOrValue) => {
|
904
|
-
if (!value)
|
905
|
-
return;
|
906
|
-
const isChecked = isInputEvent(eventOrValue) ? eventOrValue.target.checked : !value.includes(eventOrValue);
|
907
|
-
const selectedValue = isInputEvent(eventOrValue) ? eventOrValue.target.value : eventOrValue;
|
908
|
-
const nextValue = isChecked ? [...value, selectedValue] : value.filter((v) => String(v) !== String(selectedValue));
|
909
|
-
setValue(nextValue);
|
910
|
-
},
|
911
|
-
[setValue, value]
|
912
|
-
);
|
913
|
-
const getCheckboxProps = useCallback2(
|
914
|
-
(props2 = {}) => {
|
915
|
-
const checkedKey = isNative ? "checked" : "isChecked";
|
916
|
-
return {
|
917
|
-
...props2,
|
918
|
-
[checkedKey]: value.some((val) => String(props2.value) === String(val)),
|
919
|
-
onChange: handleChange
|
920
|
-
};
|
921
|
-
},
|
922
|
-
[handleChange, isNative, value]
|
923
|
-
);
|
924
|
-
return {
|
925
|
-
value,
|
926
|
-
isDisabled,
|
927
|
-
onChange: handleChange,
|
928
|
-
setValue,
|
929
|
-
getCheckboxProps
|
930
|
-
};
|
931
|
-
}
|
932
|
-
|
933
|
-
// ../../node_modules/@chakra-ui/checkbox/dist/chunk-DFEUIRKX.mjs
|
934
|
-
import { chakra as chakra7 } from "@chakra-ui/system";
|
935
|
-
import { jsx as jsx18 } from "react/jsx-runtime";
|
936
|
-
function CheckIcon2(props) {
|
937
|
-
return /* @__PURE__ */ jsx18(
|
938
|
-
chakra7.svg,
|
939
|
-
{
|
940
|
-
width: "1.2em",
|
941
|
-
viewBox: "0 0 12 10",
|
942
|
-
style: {
|
943
|
-
fill: "none",
|
944
|
-
strokeWidth: 2,
|
945
|
-
stroke: "currentColor",
|
946
|
-
strokeDasharray: 16
|
947
|
-
},
|
948
|
-
...props,
|
949
|
-
children: /* @__PURE__ */ jsx18("polyline", { points: "1.5 6 4.5 9 10.5 1" })
|
950
|
-
}
|
951
|
-
);
|
952
|
-
}
|
953
|
-
function IndeterminateIcon(props) {
|
954
|
-
return /* @__PURE__ */ jsx18(
|
955
|
-
chakra7.svg,
|
956
|
-
{
|
957
|
-
width: "1.2em",
|
958
|
-
viewBox: "0 0 24 24",
|
959
|
-
style: { stroke: "currentColor", strokeWidth: 4 },
|
960
|
-
...props,
|
961
|
-
children: /* @__PURE__ */ jsx18("line", { x1: "21", x2: "3", y1: "12", y2: "12" })
|
962
|
-
}
|
963
|
-
);
|
964
|
-
}
|
965
|
-
function CheckboxIcon(props) {
|
966
|
-
const { isIndeterminate, isChecked, ...rest } = props;
|
967
|
-
const BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon2;
|
968
|
-
return isChecked || isIndeterminate ? /* @__PURE__ */ jsx18(
|
969
|
-
chakra7.div,
|
970
|
-
{
|
971
|
-
style: {
|
972
|
-
display: "flex",
|
973
|
-
alignItems: "center",
|
974
|
-
justifyContent: "center",
|
975
|
-
height: "100%"
|
976
|
-
},
|
977
|
-
children: /* @__PURE__ */ jsx18(BaseIcon, { ...rest })
|
978
|
-
}
|
979
|
-
) : null;
|
980
|
-
}
|
981
|
-
|
982
|
-
// ../../node_modules/@chakra-ui/form-control/dist/chunk-6ZNYZUDD.mjs
|
533
|
+
// src/components/checkbox/index.ts
|
983
534
|
import {
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
strict: false,
|
997
|
-
name: "FormControlContext"
|
998
|
-
});
|
999
|
-
function useFormControlProvider(props) {
|
1000
|
-
const {
|
1001
|
-
id: idProp,
|
1002
|
-
isRequired,
|
1003
|
-
isInvalid,
|
1004
|
-
isDisabled,
|
1005
|
-
isReadOnly,
|
1006
|
-
...htmlProps
|
1007
|
-
} = props;
|
1008
|
-
const uuid = useId();
|
1009
|
-
const id = idProp || `field-${uuid}`;
|
1010
|
-
const labelId = `${id}-label`;
|
1011
|
-
const feedbackId = `${id}-feedback`;
|
1012
|
-
const helpTextId = `${id}-helptext`;
|
1013
|
-
const [hasFeedbackText, setHasFeedbackText] = useState3(false);
|
1014
|
-
const [hasHelpText, setHasHelpText] = useState3(false);
|
1015
|
-
const [isFocused, setFocus] = useState3(false);
|
1016
|
-
const getHelpTextProps = useCallback3(
|
1017
|
-
(props2 = {}, forwardedRef = null) => ({
|
1018
|
-
id: helpTextId,
|
1019
|
-
...props2,
|
1020
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
1021
|
-
if (!node)
|
1022
|
-
return;
|
1023
|
-
setHasHelpText(true);
|
1024
|
-
})
|
1025
|
-
}),
|
1026
|
-
[helpTextId]
|
1027
|
-
);
|
1028
|
-
const getLabelProps = useCallback3(
|
1029
|
-
(props2 = {}, forwardedRef = null) => ({
|
1030
|
-
...props2,
|
1031
|
-
ref: forwardedRef,
|
1032
|
-
"data-focus": dataAttr(isFocused),
|
1033
|
-
"data-disabled": dataAttr(isDisabled),
|
1034
|
-
"data-invalid": dataAttr(isInvalid),
|
1035
|
-
"data-readonly": dataAttr(isReadOnly),
|
1036
|
-
id: props2.id !== void 0 ? props2.id : labelId,
|
1037
|
-
htmlFor: props2.htmlFor !== void 0 ? props2.htmlFor : id
|
1038
|
-
}),
|
1039
|
-
[id, isDisabled, isFocused, isInvalid, isReadOnly, labelId]
|
1040
|
-
);
|
1041
|
-
const getErrorMessageProps = useCallback3(
|
1042
|
-
(props2 = {}, forwardedRef = null) => ({
|
1043
|
-
id: feedbackId,
|
1044
|
-
...props2,
|
1045
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
1046
|
-
if (!node)
|
1047
|
-
return;
|
1048
|
-
setHasFeedbackText(true);
|
1049
|
-
}),
|
1050
|
-
"aria-live": "polite"
|
1051
|
-
}),
|
1052
|
-
[feedbackId]
|
1053
|
-
);
|
1054
|
-
const getRootProps = useCallback3(
|
1055
|
-
(props2 = {}, forwardedRef = null) => ({
|
1056
|
-
...props2,
|
1057
|
-
...htmlProps,
|
1058
|
-
ref: forwardedRef,
|
1059
|
-
role: "group"
|
1060
|
-
}),
|
1061
|
-
[htmlProps]
|
1062
|
-
);
|
1063
|
-
const getRequiredIndicatorProps = useCallback3(
|
1064
|
-
(props2 = {}, forwardedRef = null) => ({
|
1065
|
-
...props2,
|
1066
|
-
ref: forwardedRef,
|
1067
|
-
role: "presentation",
|
1068
|
-
"aria-hidden": true,
|
1069
|
-
children: props2.children || "*"
|
1070
|
-
}),
|
1071
|
-
[]
|
1072
|
-
);
|
1073
|
-
return {
|
1074
|
-
isRequired: !!isRequired,
|
1075
|
-
isInvalid: !!isInvalid,
|
1076
|
-
isReadOnly: !!isReadOnly,
|
1077
|
-
isDisabled: !!isDisabled,
|
1078
|
-
isFocused: !!isFocused,
|
1079
|
-
onFocus: () => setFocus(true),
|
1080
|
-
onBlur: () => setFocus(false),
|
1081
|
-
hasFeedbackText,
|
1082
|
-
setHasFeedbackText,
|
1083
|
-
hasHelpText,
|
1084
|
-
setHasHelpText,
|
1085
|
-
id,
|
1086
|
-
labelId,
|
1087
|
-
feedbackId,
|
1088
|
-
helpTextId,
|
1089
|
-
htmlProps,
|
1090
|
-
getHelpTextProps,
|
1091
|
-
getErrorMessageProps,
|
1092
|
-
getRootProps,
|
1093
|
-
getLabelProps,
|
1094
|
-
getRequiredIndicatorProps
|
1095
|
-
};
|
1096
|
-
}
|
1097
|
-
var FormControl2 = forwardRef9(
|
1098
|
-
function FormControl22(props, ref) {
|
1099
|
-
const styles = useMultiStyleConfig2("Form", props);
|
1100
|
-
const ownProps = omitThemingProps3(props);
|
1101
|
-
const {
|
1102
|
-
getRootProps,
|
1103
|
-
htmlProps: _,
|
1104
|
-
...context
|
1105
|
-
} = useFormControlProvider(ownProps);
|
1106
|
-
const className = cx("chakra-form-control", props.className);
|
1107
|
-
return /* @__PURE__ */ jsx19(FormControlProvider, { value: context, children: /* @__PURE__ */ jsx19(FormControlStylesProvider, { value: styles, children: /* @__PURE__ */ jsx19(
|
1108
|
-
chakra8.div,
|
1109
|
-
{
|
1110
|
-
...getRootProps({}, ref),
|
1111
|
-
className,
|
1112
|
-
__css: styles["container"]
|
1113
|
-
}
|
1114
|
-
) }) });
|
1115
|
-
}
|
1116
|
-
);
|
1117
|
-
FormControl2.displayName = "FormControl";
|
1118
|
-
var FormHelperText2 = forwardRef9(
|
1119
|
-
function FormHelperText22(props, ref) {
|
1120
|
-
const field2 = useFormControlContext();
|
1121
|
-
const styles = useFormControlStyles();
|
1122
|
-
const className = cx("chakra-form__helper-text", props.className);
|
1123
|
-
return /* @__PURE__ */ jsx19(
|
1124
|
-
chakra8.div,
|
1125
|
-
{
|
1126
|
-
...field2 == null ? void 0 : field2.getHelpTextProps(props, ref),
|
1127
|
-
__css: styles.helperText,
|
1128
|
-
className
|
1129
|
-
}
|
1130
|
-
);
|
1131
|
-
}
|
1132
|
-
);
|
1133
|
-
FormHelperText2.displayName = "FormHelperText";
|
1134
|
-
|
1135
|
-
// ../../node_modules/@chakra-ui/form-control/dist/chunk-IJBC3YLI.mjs
|
1136
|
-
function useFormControlProps(props) {
|
1137
|
-
var _a, _b, _c;
|
1138
|
-
const field2 = useFormControlContext();
|
1139
|
-
const {
|
1140
|
-
id,
|
1141
|
-
disabled,
|
1142
|
-
readOnly,
|
1143
|
-
required,
|
1144
|
-
isRequired,
|
1145
|
-
isInvalid,
|
1146
|
-
isReadOnly,
|
1147
|
-
isDisabled,
|
1148
|
-
onFocus,
|
1149
|
-
onBlur,
|
1150
|
-
...rest
|
1151
|
-
} = props;
|
1152
|
-
const labelIds = props["aria-describedby"] ? [props["aria-describedby"]] : [];
|
1153
|
-
if ((field2 == null ? void 0 : field2.hasFeedbackText) && (field2 == null ? void 0 : field2.isInvalid)) {
|
1154
|
-
labelIds.push(field2.feedbackId);
|
1155
|
-
}
|
1156
|
-
if (field2 == null ? void 0 : field2.hasHelpText) {
|
1157
|
-
labelIds.push(field2.helpTextId);
|
1158
|
-
}
|
1159
|
-
return {
|
1160
|
-
...rest,
|
1161
|
-
"aria-describedby": labelIds.join(" ") || void 0,
|
1162
|
-
id: id != null ? id : field2 == null ? void 0 : field2.id,
|
1163
|
-
isDisabled: (_a = disabled != null ? disabled : isDisabled) != null ? _a : field2 == null ? void 0 : field2.isDisabled,
|
1164
|
-
isReadOnly: (_b = readOnly != null ? readOnly : isReadOnly) != null ? _b : field2 == null ? void 0 : field2.isReadOnly,
|
1165
|
-
isRequired: (_c = required != null ? required : isRequired) != null ? _c : field2 == null ? void 0 : field2.isRequired,
|
1166
|
-
isInvalid: isInvalid != null ? isInvalid : field2 == null ? void 0 : field2.isInvalid,
|
1167
|
-
onFocus: callAllHandlers(field2 == null ? void 0 : field2.onFocus, onFocus),
|
1168
|
-
onBlur: callAllHandlers(field2 == null ? void 0 : field2.onBlur, onBlur)
|
1169
|
-
};
|
1170
|
-
}
|
1171
|
-
|
1172
|
-
// ../../node_modules/@chakra-ui/react-use-safe-layout-effect/dist/index.mjs
|
1173
|
-
import { useEffect as useEffect3, useLayoutEffect as useLayoutEffect2 } from "react";
|
1174
|
-
var useSafeLayoutEffect2 = Boolean(globalThis == null ? void 0 : globalThis.document) ? useLayoutEffect2 : useEffect3;
|
1175
|
-
|
1176
|
-
// ../../node_modules/@chakra-ui/react-use-update-effect/dist/index.mjs
|
1177
|
-
import { useEffect as useEffect4, useRef as useRef3 } from "react";
|
1178
|
-
function useUpdateEffect(callback, deps) {
|
1179
|
-
const renderCycleRef = useRef3(false);
|
1180
|
-
const effectCycleRef = useRef3(false);
|
1181
|
-
useEffect4(() => {
|
1182
|
-
const mounted = renderCycleRef.current;
|
1183
|
-
const run = mounted && effectCycleRef.current;
|
1184
|
-
if (run) {
|
1185
|
-
return callback();
|
1186
|
-
}
|
1187
|
-
effectCycleRef.current = true;
|
1188
|
-
}, deps);
|
1189
|
-
useEffect4(() => {
|
1190
|
-
renderCycleRef.current = true;
|
1191
|
-
return () => {
|
1192
|
-
renderCycleRef.current = false;
|
1193
|
-
};
|
1194
|
-
}, []);
|
1195
|
-
}
|
1196
|
-
|
1197
|
-
// ../../node_modules/@chakra-ui/visually-hidden/dist/chunk-RSUMUOHR.mjs
|
1198
|
-
var visuallyHiddenStyle = {
|
1199
|
-
border: "0",
|
1200
|
-
clip: "rect(0, 0, 0, 0)",
|
1201
|
-
height: "1px",
|
1202
|
-
width: "1px",
|
1203
|
-
margin: "-1px",
|
1204
|
-
padding: "0",
|
1205
|
-
overflow: "hidden",
|
1206
|
-
whiteSpace: "nowrap",
|
1207
|
-
position: "absolute"
|
1208
|
-
};
|
1209
|
-
|
1210
|
-
// ../../node_modules/@zag-js/focus-visible/dist/index.mjs
|
1211
|
-
var hasSetup = false;
|
1212
|
-
var modality = null;
|
1213
|
-
var hasEventBeforeFocus = false;
|
1214
|
-
var hasBlurredWindowRecently = false;
|
1215
|
-
var handlers = /* @__PURE__ */ new Set();
|
1216
|
-
function trigger(modality2, event) {
|
1217
|
-
handlers.forEach((handler) => handler(modality2, event));
|
1218
|
-
}
|
1219
|
-
var isMac = typeof window !== "undefined" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;
|
1220
|
-
function isValidKey(e) {
|
1221
|
-
return !(e.metaKey || !isMac && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
1222
|
-
}
|
1223
|
-
function onKeyboardEvent(event) {
|
1224
|
-
hasEventBeforeFocus = true;
|
1225
|
-
if (isValidKey(event)) {
|
1226
|
-
modality = "keyboard";
|
1227
|
-
trigger("keyboard", event);
|
1228
|
-
}
|
1229
|
-
}
|
1230
|
-
function onPointerEvent(event) {
|
1231
|
-
modality = "pointer";
|
1232
|
-
if (event.type === "mousedown" || event.type === "pointerdown") {
|
1233
|
-
hasEventBeforeFocus = true;
|
1234
|
-
const target = event.composedPath ? event.composedPath()[0] : event.target;
|
1235
|
-
let matches = false;
|
1236
|
-
try {
|
1237
|
-
matches = target.matches(":focus-visible");
|
1238
|
-
} catch {
|
1239
|
-
}
|
1240
|
-
if (matches)
|
1241
|
-
return;
|
1242
|
-
trigger("pointer", event);
|
1243
|
-
}
|
1244
|
-
}
|
1245
|
-
function isVirtualClick(event) {
|
1246
|
-
if (event.mozInputSource === 0 && event.isTrusted)
|
1247
|
-
return true;
|
1248
|
-
return event.detail === 0 && !event.pointerType;
|
1249
|
-
}
|
1250
|
-
function onClickEvent(e) {
|
1251
|
-
if (isVirtualClick(e)) {
|
1252
|
-
hasEventBeforeFocus = true;
|
1253
|
-
modality = "virtual";
|
1254
|
-
}
|
1255
|
-
}
|
1256
|
-
function onWindowFocus(event) {
|
1257
|
-
if (event.target === window || event.target === document) {
|
1258
|
-
return;
|
1259
|
-
}
|
1260
|
-
if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
|
1261
|
-
modality = "virtual";
|
1262
|
-
trigger("virtual", event);
|
1263
|
-
}
|
1264
|
-
hasEventBeforeFocus = false;
|
1265
|
-
hasBlurredWindowRecently = false;
|
1266
|
-
}
|
1267
|
-
function onWindowBlur() {
|
1268
|
-
hasEventBeforeFocus = false;
|
1269
|
-
hasBlurredWindowRecently = true;
|
1270
|
-
}
|
1271
|
-
function isFocusVisible() {
|
1272
|
-
return modality !== "pointer";
|
1273
|
-
}
|
1274
|
-
function setupGlobalFocusEvents() {
|
1275
|
-
if (typeof window === "undefined" || hasSetup) {
|
1276
|
-
return;
|
1277
|
-
}
|
1278
|
-
const { focus } = HTMLElement.prototype;
|
1279
|
-
HTMLElement.prototype.focus = function focusElement(...args) {
|
1280
|
-
hasEventBeforeFocus = true;
|
1281
|
-
focus.apply(this, args);
|
1282
|
-
};
|
1283
|
-
document.addEventListener("keydown", onKeyboardEvent, true);
|
1284
|
-
document.addEventListener("keyup", onKeyboardEvent, true);
|
1285
|
-
document.addEventListener("click", onClickEvent, true);
|
1286
|
-
window.addEventListener("focus", onWindowFocus, true);
|
1287
|
-
window.addEventListener("blur", onWindowBlur, false);
|
1288
|
-
if (typeof PointerEvent !== "undefined") {
|
1289
|
-
document.addEventListener("pointerdown", onPointerEvent, true);
|
1290
|
-
document.addEventListener("pointermove", onPointerEvent, true);
|
1291
|
-
document.addEventListener("pointerup", onPointerEvent, true);
|
1292
|
-
} else {
|
1293
|
-
document.addEventListener("mousedown", onPointerEvent, true);
|
1294
|
-
document.addEventListener("mousemove", onPointerEvent, true);
|
1295
|
-
document.addEventListener("mouseup", onPointerEvent, true);
|
1296
|
-
}
|
1297
|
-
hasSetup = true;
|
1298
|
-
}
|
1299
|
-
function trackFocusVisible(fn) {
|
1300
|
-
setupGlobalFocusEvents();
|
1301
|
-
fn(isFocusVisible());
|
1302
|
-
const handler = () => fn(isFocusVisible());
|
1303
|
-
handlers.add(handler);
|
1304
|
-
return () => {
|
1305
|
-
handlers.delete(handler);
|
1306
|
-
};
|
1307
|
-
}
|
1308
|
-
|
1309
|
-
// ../../node_modules/@chakra-ui/checkbox/dist/chunk-HPA3SDH4.mjs
|
1310
|
-
import { useCallback as useCallback4, useEffect as useEffect5, useRef as useRef4, useState as useState4 } from "react";
|
1311
|
-
function omit(object, keysToOmit = []) {
|
1312
|
-
const clone = Object.assign({}, object);
|
1313
|
-
for (const key of keysToOmit) {
|
1314
|
-
if (key in clone) {
|
1315
|
-
delete clone[key];
|
1316
|
-
}
|
1317
|
-
}
|
1318
|
-
return clone;
|
1319
|
-
}
|
1320
|
-
function useCheckbox(props = {}) {
|
1321
|
-
const formControlProps = useFormControlProps(props);
|
1322
|
-
const {
|
1323
|
-
isDisabled,
|
1324
|
-
isReadOnly,
|
1325
|
-
isRequired,
|
1326
|
-
isInvalid,
|
1327
|
-
id,
|
1328
|
-
onBlur,
|
1329
|
-
onFocus,
|
1330
|
-
"aria-describedby": ariaDescribedBy
|
1331
|
-
} = formControlProps;
|
1332
|
-
const {
|
1333
|
-
defaultChecked,
|
1334
|
-
isChecked: checkedProp,
|
1335
|
-
isFocusable,
|
1336
|
-
onChange,
|
1337
|
-
isIndeterminate,
|
1338
|
-
name,
|
1339
|
-
value,
|
1340
|
-
tabIndex = void 0,
|
1341
|
-
"aria-label": ariaLabel,
|
1342
|
-
"aria-labelledby": ariaLabelledBy,
|
1343
|
-
"aria-invalid": ariaInvalid,
|
1344
|
-
...rest
|
1345
|
-
} = props;
|
1346
|
-
const htmlProps = omit(rest, [
|
1347
|
-
"isDisabled",
|
1348
|
-
"isReadOnly",
|
1349
|
-
"isRequired",
|
1350
|
-
"isInvalid",
|
1351
|
-
"id",
|
1352
|
-
"onBlur",
|
1353
|
-
"onFocus",
|
1354
|
-
"aria-describedby"
|
1355
|
-
]);
|
1356
|
-
const onChangeProp = useCallbackRef(onChange);
|
1357
|
-
const onBlurProp = useCallbackRef(onBlur);
|
1358
|
-
const onFocusProp = useCallbackRef(onFocus);
|
1359
|
-
const [isFocusVisible2, setIsFocusVisible] = useState4(false);
|
1360
|
-
const [isFocused, setFocused] = useState4(false);
|
1361
|
-
const [isHovered, setHovered] = useState4(false);
|
1362
|
-
const [isActive, setActive] = useState4(false);
|
1363
|
-
useEffect5(() => {
|
1364
|
-
return trackFocusVisible(setIsFocusVisible);
|
1365
|
-
}, []);
|
1366
|
-
const inputRef = useRef4(null);
|
1367
|
-
const [rootIsLabelElement, setRootIsLabelElement] = useState4(true);
|
1368
|
-
const [checkedState, setCheckedState] = useState4(!!defaultChecked);
|
1369
|
-
const isControlled = checkedProp !== void 0;
|
1370
|
-
const isChecked = isControlled ? checkedProp : checkedState;
|
1371
|
-
const handleChange = useCallback4(
|
1372
|
-
(event) => {
|
1373
|
-
if (isReadOnly || isDisabled) {
|
1374
|
-
event.preventDefault();
|
1375
|
-
return;
|
1376
|
-
}
|
1377
|
-
if (!isControlled) {
|
1378
|
-
if (isChecked) {
|
1379
|
-
setCheckedState(event.target.checked);
|
1380
|
-
} else {
|
1381
|
-
setCheckedState(isIndeterminate ? true : event.target.checked);
|
1382
|
-
}
|
1383
|
-
}
|
1384
|
-
onChangeProp == null ? void 0 : onChangeProp(event);
|
1385
|
-
},
|
1386
|
-
[
|
1387
|
-
isReadOnly,
|
1388
|
-
isDisabled,
|
1389
|
-
isChecked,
|
1390
|
-
isControlled,
|
1391
|
-
isIndeterminate,
|
1392
|
-
onChangeProp
|
1393
|
-
]
|
1394
|
-
);
|
1395
|
-
useSafeLayoutEffect2(() => {
|
1396
|
-
if (inputRef.current) {
|
1397
|
-
inputRef.current.indeterminate = Boolean(isIndeterminate);
|
1398
|
-
}
|
1399
|
-
}, [isIndeterminate]);
|
1400
|
-
useUpdateEffect(() => {
|
1401
|
-
if (isDisabled) {
|
1402
|
-
setFocused(false);
|
1403
|
-
}
|
1404
|
-
}, [isDisabled, setFocused]);
|
1405
|
-
useSafeLayoutEffect2(() => {
|
1406
|
-
const el = inputRef.current;
|
1407
|
-
if (!(el == null ? void 0 : el.form))
|
1408
|
-
return;
|
1409
|
-
el.form.onreset = () => {
|
1410
|
-
setCheckedState(!!defaultChecked);
|
1411
|
-
};
|
1412
|
-
}, []);
|
1413
|
-
const trulyDisabled = isDisabled && !isFocusable;
|
1414
|
-
const onKeyDown = useCallback4(
|
1415
|
-
(event) => {
|
1416
|
-
if (event.key === " ") {
|
1417
|
-
setActive(true);
|
1418
|
-
}
|
1419
|
-
},
|
1420
|
-
[setActive]
|
1421
|
-
);
|
1422
|
-
const onKeyUp = useCallback4(
|
1423
|
-
(event) => {
|
1424
|
-
if (event.key === " ") {
|
1425
|
-
setActive(false);
|
1426
|
-
}
|
1427
|
-
},
|
1428
|
-
[setActive]
|
1429
|
-
);
|
1430
|
-
useSafeLayoutEffect2(() => {
|
1431
|
-
if (!inputRef.current)
|
1432
|
-
return;
|
1433
|
-
const notInSync = inputRef.current.checked !== isChecked;
|
1434
|
-
if (notInSync) {
|
1435
|
-
setCheckedState(inputRef.current.checked);
|
1436
|
-
}
|
1437
|
-
}, [inputRef.current]);
|
1438
|
-
const getCheckboxProps = useCallback4(
|
1439
|
-
(props2 = {}, forwardedRef = null) => {
|
1440
|
-
const onPressDown = (event) => {
|
1441
|
-
if (isFocused) {
|
1442
|
-
event.preventDefault();
|
1443
|
-
}
|
1444
|
-
setActive(true);
|
1445
|
-
};
|
1446
|
-
return {
|
1447
|
-
...props2,
|
1448
|
-
ref: forwardedRef,
|
1449
|
-
"data-active": dataAttr(isActive),
|
1450
|
-
"data-hover": dataAttr(isHovered),
|
1451
|
-
"data-checked": dataAttr(isChecked),
|
1452
|
-
"data-focus": dataAttr(isFocused),
|
1453
|
-
"data-focus-visible": dataAttr(isFocused && isFocusVisible2),
|
1454
|
-
"data-indeterminate": dataAttr(isIndeterminate),
|
1455
|
-
"data-disabled": dataAttr(isDisabled),
|
1456
|
-
"data-invalid": dataAttr(isInvalid),
|
1457
|
-
"data-readonly": dataAttr(isReadOnly),
|
1458
|
-
"aria-hidden": true,
|
1459
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, onPressDown),
|
1460
|
-
onMouseUp: callAllHandlers(props2.onMouseUp, () => setActive(false)),
|
1461
|
-
onMouseEnter: callAllHandlers(
|
1462
|
-
props2.onMouseEnter,
|
1463
|
-
() => setHovered(true)
|
1464
|
-
),
|
1465
|
-
onMouseLeave: callAllHandlers(
|
1466
|
-
props2.onMouseLeave,
|
1467
|
-
() => setHovered(false)
|
1468
|
-
)
|
1469
|
-
};
|
1470
|
-
},
|
1471
|
-
[
|
1472
|
-
isActive,
|
1473
|
-
isChecked,
|
1474
|
-
isDisabled,
|
1475
|
-
isFocused,
|
1476
|
-
isFocusVisible2,
|
1477
|
-
isHovered,
|
1478
|
-
isIndeterminate,
|
1479
|
-
isInvalid,
|
1480
|
-
isReadOnly
|
1481
|
-
]
|
1482
|
-
);
|
1483
|
-
const getRootProps = useCallback4(
|
1484
|
-
(props2 = {}, forwardedRef = null) => ({
|
1485
|
-
...htmlProps,
|
1486
|
-
...props2,
|
1487
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
1488
|
-
if (!node)
|
1489
|
-
return;
|
1490
|
-
setRootIsLabelElement(node.tagName === "LABEL");
|
1491
|
-
}),
|
1492
|
-
onClick: callAllHandlers(props2.onClick, () => {
|
1493
|
-
var _a;
|
1494
|
-
if (!rootIsLabelElement) {
|
1495
|
-
(_a = inputRef.current) == null ? void 0 : _a.click();
|
1496
|
-
requestAnimationFrame(() => {
|
1497
|
-
var _a2;
|
1498
|
-
(_a2 = inputRef.current) == null ? void 0 : _a2.focus({ preventScroll: true });
|
1499
|
-
});
|
1500
|
-
}
|
1501
|
-
}),
|
1502
|
-
"data-disabled": dataAttr(isDisabled),
|
1503
|
-
"data-checked": dataAttr(isChecked),
|
1504
|
-
"data-invalid": dataAttr(isInvalid)
|
1505
|
-
}),
|
1506
|
-
[htmlProps, isDisabled, isChecked, isInvalid, rootIsLabelElement]
|
1507
|
-
);
|
1508
|
-
const getInputProps = useCallback4(
|
1509
|
-
(props2 = {}, forwardedRef = null) => {
|
1510
|
-
return {
|
1511
|
-
...props2,
|
1512
|
-
ref: mergeRefs(inputRef, forwardedRef),
|
1513
|
-
type: "checkbox",
|
1514
|
-
name,
|
1515
|
-
value,
|
1516
|
-
id,
|
1517
|
-
tabIndex,
|
1518
|
-
onChange: callAllHandlers(props2.onChange, handleChange),
|
1519
|
-
onBlur: callAllHandlers(
|
1520
|
-
props2.onBlur,
|
1521
|
-
onBlurProp,
|
1522
|
-
() => setFocused(false)
|
1523
|
-
),
|
1524
|
-
onFocus: callAllHandlers(
|
1525
|
-
props2.onFocus,
|
1526
|
-
onFocusProp,
|
1527
|
-
() => setFocused(true)
|
1528
|
-
),
|
1529
|
-
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),
|
1530
|
-
onKeyUp: callAllHandlers(props2.onKeyUp, onKeyUp),
|
1531
|
-
required: isRequired,
|
1532
|
-
checked: isChecked,
|
1533
|
-
disabled: trulyDisabled,
|
1534
|
-
readOnly: isReadOnly,
|
1535
|
-
"aria-label": ariaLabel,
|
1536
|
-
"aria-labelledby": ariaLabelledBy,
|
1537
|
-
"aria-invalid": ariaInvalid ? Boolean(ariaInvalid) : isInvalid,
|
1538
|
-
"aria-describedby": ariaDescribedBy,
|
1539
|
-
"aria-disabled": isDisabled,
|
1540
|
-
style: visuallyHiddenStyle
|
1541
|
-
};
|
1542
|
-
},
|
1543
|
-
[
|
1544
|
-
name,
|
1545
|
-
value,
|
1546
|
-
id,
|
1547
|
-
handleChange,
|
1548
|
-
onBlurProp,
|
1549
|
-
onFocusProp,
|
1550
|
-
onKeyDown,
|
1551
|
-
onKeyUp,
|
1552
|
-
isRequired,
|
1553
|
-
isChecked,
|
1554
|
-
trulyDisabled,
|
1555
|
-
isReadOnly,
|
1556
|
-
ariaLabel,
|
1557
|
-
ariaLabelledBy,
|
1558
|
-
ariaInvalid,
|
1559
|
-
isInvalid,
|
1560
|
-
ariaDescribedBy,
|
1561
|
-
isDisabled,
|
1562
|
-
tabIndex
|
1563
|
-
]
|
1564
|
-
);
|
1565
|
-
const getLabelProps = useCallback4(
|
1566
|
-
(props2 = {}, forwardedRef = null) => ({
|
1567
|
-
...props2,
|
1568
|
-
ref: forwardedRef,
|
1569
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, stopEvent),
|
1570
|
-
"data-disabled": dataAttr(isDisabled),
|
1571
|
-
"data-checked": dataAttr(isChecked),
|
1572
|
-
"data-invalid": dataAttr(isInvalid)
|
1573
|
-
}),
|
1574
|
-
[isChecked, isDisabled, isInvalid]
|
1575
|
-
);
|
1576
|
-
const state = {
|
1577
|
-
isInvalid,
|
1578
|
-
isFocused,
|
1579
|
-
isChecked,
|
1580
|
-
isActive,
|
1581
|
-
isHovered,
|
1582
|
-
isIndeterminate,
|
1583
|
-
isDisabled,
|
1584
|
-
isReadOnly,
|
1585
|
-
isRequired
|
1586
|
-
};
|
1587
|
-
return {
|
1588
|
-
state,
|
1589
|
-
getRootProps,
|
1590
|
-
getCheckboxProps,
|
1591
|
-
getInputProps,
|
1592
|
-
getLabelProps,
|
1593
|
-
htmlProps
|
1594
|
-
};
|
1595
|
-
}
|
1596
|
-
function stopEvent(event) {
|
1597
|
-
event.preventDefault();
|
1598
|
-
event.stopPropagation();
|
1599
|
-
}
|
535
|
+
CheckboxGroupContext,
|
536
|
+
CheckboxGroupProps,
|
537
|
+
CheckboxIcon,
|
538
|
+
CheckboxIconProps,
|
539
|
+
CheckboxState,
|
540
|
+
useCheckbox,
|
541
|
+
useCheckboxGroup,
|
542
|
+
UseCheckboxGroupProps,
|
543
|
+
UseCheckboxGroupReturn,
|
544
|
+
UseCheckboxProps,
|
545
|
+
UseCheckboxReturn
|
546
|
+
} from "@chakra-ui/react";
|
1600
547
|
|
1601
548
|
// src/components/chips/components/chips.tsx
|
1602
|
-
import { Box as
|
549
|
+
import { Box as Box8, useStyleConfig as useStyleConfig3 } from "@chakra-ui/react";
|
1603
550
|
import { Close as Close2 } from "@ctlyst.id/internal-icon";
|
1604
|
-
import { useMemo
|
1605
|
-
import { jsx as
|
551
|
+
import { useMemo } from "react";
|
552
|
+
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
1606
553
|
var Chips = ({ children, ...rest }) => {
|
1607
554
|
const { isActive, isDisabled, onClose } = rest;
|
1608
|
-
const styles =
|
1609
|
-
const closeColor =
|
555
|
+
const styles = useStyleConfig3("Chips", rest);
|
556
|
+
const closeColor = useMemo(() => {
|
1610
557
|
if (isActive) return "white.high";
|
1611
558
|
if (isDisabled) return "black.low";
|
1612
559
|
return "primary.500";
|
1613
560
|
}, [isActive, isDisabled]);
|
1614
|
-
return /* @__PURE__ */ jsxs5(
|
561
|
+
return /* @__PURE__ */ jsxs5(Box8, { __css: styles, display: "inline-flex", alignItems: "center", justifyContent: "center", ...rest, children: [
|
1615
562
|
children,
|
1616
|
-
onClose && /* @__PURE__ */
|
1617
|
-
|
563
|
+
onClose && /* @__PURE__ */ jsx18(
|
564
|
+
Box8,
|
1618
565
|
{
|
1619
566
|
onClick: isDisabled ? void 0 : onClose,
|
1620
567
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
@@ -1622,7 +569,7 @@ var Chips = ({ children, ...rest }) => {
|
|
1622
569
|
display: "flex",
|
1623
570
|
alignItems: "center",
|
1624
571
|
justifyContent: "center",
|
1625
|
-
children: /* @__PURE__ */
|
572
|
+
children: /* @__PURE__ */ jsx18(Close2, { color: closeColor, size: 4 })
|
1626
573
|
}
|
1627
574
|
)
|
1628
575
|
] });
|
@@ -1637,17 +584,17 @@ Chips.defaultProps = {
|
|
1637
584
|
var chips_default = Chips;
|
1638
585
|
|
1639
586
|
// src/components/counter/components/counter.tsx
|
1640
|
-
import { Box as
|
587
|
+
import { Box as Box11, HStack, IconButton as IconButton2, Text as Text3 } from "@chakra-ui/react";
|
1641
588
|
import { FiMinus, FiPlus } from "react-icons/fi";
|
1642
589
|
|
1643
590
|
// src/components/form/components/input-addon.tsx
|
1644
591
|
import { InputLeftAddon, InputRightAddon } from "@chakra-ui/react";
|
1645
|
-
import { jsx as
|
592
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
1646
593
|
var InputAddonLeft = ({ children }) => {
|
1647
|
-
return /* @__PURE__ */
|
594
|
+
return /* @__PURE__ */ jsx19(InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
|
1648
595
|
};
|
1649
596
|
var InputAddonRight = ({ children }) => {
|
1650
|
-
return /* @__PURE__ */
|
597
|
+
return /* @__PURE__ */ jsx19(InputRightAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineStart: 0 }, children });
|
1651
598
|
};
|
1652
599
|
|
1653
600
|
// src/components/form/components/input-element.tsx
|
@@ -1655,9 +602,9 @@ import { InputLeftElement } from "@chakra-ui/react";
|
|
1655
602
|
import { InputRightElement } from "@chakra-ui/react";
|
1656
603
|
|
1657
604
|
// src/components/form/components/input-field.tsx
|
1658
|
-
import { Box as
|
1659
|
-
import { Close as Close3, Eye, EyeOff } from "@ctlyst.id/internal-icon";
|
1660
|
-
import React3, { useMemo as
|
605
|
+
import { Box as Box9, Input as ChakraInput, InputGroup } from "@chakra-ui/react";
|
606
|
+
import { Close as Close3, Eye as Eye2, EyeOff } from "@ctlyst.id/internal-icon";
|
607
|
+
import React3, { useMemo as useMemo2, useState } from "react";
|
1661
608
|
|
1662
609
|
// src/components/form/styles/input-field.ts
|
1663
610
|
import { defineStyle } from "@chakra-ui/react";
|
@@ -1692,7 +639,7 @@ var getWrapperStyle = (props) => {
|
|
1692
639
|
var input_field_default = getWrapperStyle;
|
1693
640
|
|
1694
641
|
// src/components/form/components/input-field.tsx
|
1695
|
-
import { jsx as
|
642
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
1696
643
|
var InputField = React3.forwardRef((props, ref) => {
|
1697
644
|
const {
|
1698
645
|
value,
|
@@ -1714,20 +661,20 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1714
661
|
...inputProps
|
1715
662
|
} = props;
|
1716
663
|
const wrapperStyle = input_field_default(props);
|
1717
|
-
const [isShowPassword, setIsShowPassword] =
|
1718
|
-
const inputType =
|
664
|
+
const [isShowPassword, setIsShowPassword] = useState(false);
|
665
|
+
const inputType = useMemo2(() => {
|
1719
666
|
return type === "password" && isShowPassword ? "text" : type;
|
1720
667
|
}, [isShowPassword, type]);
|
1721
|
-
const fontSize =
|
668
|
+
const fontSize = useMemo2(() => {
|
1722
669
|
if (type === "password") {
|
1723
670
|
if (!isShowPassword && value) return "text.xl";
|
1724
671
|
}
|
1725
672
|
return "text.sm";
|
1726
673
|
}, [isShowPassword, type, value]);
|
1727
|
-
const iconColor =
|
674
|
+
const iconColor = useMemo2(() => {
|
1728
675
|
return isDisabled ? "black.low" : "black.medium";
|
1729
676
|
}, [isDisabled]);
|
1730
|
-
return /* @__PURE__ */
|
677
|
+
return /* @__PURE__ */ jsx20(
|
1731
678
|
field_default,
|
1732
679
|
{
|
1733
680
|
label,
|
@@ -1737,7 +684,7 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1737
684
|
leftHelperText,
|
1738
685
|
rightHelperText,
|
1739
686
|
isRequired,
|
1740
|
-
children: /* @__PURE__ */
|
687
|
+
children: /* @__PURE__ */ jsx20(Box9, { __css: wrapperStyle, children: /* @__PURE__ */ jsxs6(
|
1741
688
|
InputGroup,
|
1742
689
|
{
|
1743
690
|
size: size2,
|
@@ -1746,7 +693,7 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1746
693
|
cursor: isDisabled ? "not-allowed" : "default",
|
1747
694
|
children: [
|
1748
695
|
addOnLeft,
|
1749
|
-
/* @__PURE__ */
|
696
|
+
/* @__PURE__ */ jsx20(
|
1750
697
|
ChakraInput,
|
1751
698
|
{
|
1752
699
|
ref,
|
@@ -1759,7 +706,7 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1759
706
|
}
|
1760
707
|
),
|
1761
708
|
(withClear || isLoading || type === "password") && /* @__PURE__ */ jsxs6(
|
1762
|
-
|
709
|
+
Box9,
|
1763
710
|
{
|
1764
711
|
"data-test-id": "CT_Component_ClearInput",
|
1765
712
|
display: "flex",
|
@@ -1768,18 +715,18 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1768
715
|
width: "16px",
|
1769
716
|
mr: "10px",
|
1770
717
|
children: [
|
1771
|
-
withClear && !isLoading && /* @__PURE__ */
|
1772
|
-
|
718
|
+
withClear && !isLoading && /* @__PURE__ */ jsx20(
|
719
|
+
Box9,
|
1773
720
|
{
|
1774
721
|
display: "flex",
|
1775
722
|
justifyContent: "center",
|
1776
723
|
onClick: !isDisabled ? onClear : void 0,
|
1777
724
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1778
|
-
children: /* @__PURE__ */
|
725
|
+
children: /* @__PURE__ */ jsx20(Close3, { size: 4, color: iconColor })
|
1779
726
|
}
|
1780
727
|
),
|
1781
|
-
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */
|
1782
|
-
|
728
|
+
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ jsx20(
|
729
|
+
Box9,
|
1783
730
|
{
|
1784
731
|
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
1785
732
|
onClick: () => {
|
@@ -1788,11 +735,11 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1788
735
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1789
736
|
display: "flex",
|
1790
737
|
justifyContent: "center",
|
1791
|
-
children: /* @__PURE__ */
|
738
|
+
children: /* @__PURE__ */ jsx20(EyeOff, { size: 4, color: iconColor })
|
1792
739
|
}
|
1793
740
|
),
|
1794
|
-
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */
|
1795
|
-
|
741
|
+
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ jsx20(
|
742
|
+
Box9,
|
1796
743
|
{
|
1797
744
|
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
1798
745
|
onClick: () => {
|
@@ -1801,10 +748,10 @@ var InputField = React3.forwardRef((props, ref) => {
|
|
1801
748
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1802
749
|
display: "flex",
|
1803
750
|
justifyContent: "center",
|
1804
|
-
children: /* @__PURE__ */
|
751
|
+
children: /* @__PURE__ */ jsx20(Eye2, { size: 4, color: iconColor })
|
1805
752
|
}
|
1806
753
|
),
|
1807
|
-
isLoading && /* @__PURE__ */
|
754
|
+
isLoading && /* @__PURE__ */ jsx20(loader_default, { size: "sm" })
|
1808
755
|
]
|
1809
756
|
}
|
1810
757
|
),
|
@@ -1825,14 +772,14 @@ InputField.defaultProps = {
|
|
1825
772
|
var input_field_default2 = InputField;
|
1826
773
|
|
1827
774
|
// src/components/form/components/textarea.tsx
|
1828
|
-
import { Box as
|
775
|
+
import { Box as Box10, Textarea as ChakraTextarea } from "@chakra-ui/react";
|
1829
776
|
import React4 from "react";
|
1830
|
-
import { jsx as
|
777
|
+
import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
|
1831
778
|
var TextareaField = React4.forwardRef((props, ref) => {
|
1832
779
|
const { value, isLoading, ...inputProps } = props;
|
1833
|
-
return /* @__PURE__ */
|
1834
|
-
/* @__PURE__ */
|
1835
|
-
isLoading && /* @__PURE__ */
|
780
|
+
return /* @__PURE__ */ jsx21(field_default, { ...inputProps, children: /* @__PURE__ */ jsxs7(Box10, { position: "relative", children: [
|
781
|
+
/* @__PURE__ */ jsx21(ChakraTextarea, { ref, value, ...inputProps }),
|
782
|
+
isLoading && /* @__PURE__ */ jsx21(Box10, { zIndex: 999, top: 2, right: 2, position: "absolute", children: /* @__PURE__ */ jsx21(loader_default, { size: "sm" }) })
|
1836
783
|
] }) });
|
1837
784
|
});
|
1838
785
|
TextareaField.defaultProps = {
|
@@ -1842,10 +789,10 @@ var textarea_default = TextareaField;
|
|
1842
789
|
|
1843
790
|
// src/components/form/index.ts
|
1844
791
|
import {
|
1845
|
-
FormControl as
|
792
|
+
FormControl as FormControl2,
|
1846
793
|
FormControlProps,
|
1847
794
|
FormErrorMessage as FormErrorMessage2,
|
1848
|
-
FormHelperText as
|
795
|
+
FormHelperText as FormHelperText2,
|
1849
796
|
FormLabel as FormLabel2,
|
1850
797
|
FormLabelProps,
|
1851
798
|
InputGroup as InputGroup2,
|
@@ -1864,7 +811,7 @@ import {
|
|
1864
811
|
} from "@chakra-ui/react";
|
1865
812
|
|
1866
813
|
// src/components/counter/components/counter.tsx
|
1867
|
-
import { jsx as
|
814
|
+
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
1868
815
|
var Counter = ({
|
1869
816
|
value,
|
1870
817
|
size: size2 = "xs",
|
@@ -1892,9 +839,9 @@ var Counter = ({
|
|
1892
839
|
const handleChange = (e) => {
|
1893
840
|
onChange(+e.target.value);
|
1894
841
|
};
|
1895
|
-
return /* @__PURE__ */ jsxs8(
|
1896
|
-
/* @__PURE__ */ jsxs8(HStack, { children: [
|
1897
|
-
/* @__PURE__ */
|
842
|
+
return /* @__PURE__ */ jsxs8(Box11, { children: [
|
843
|
+
/* @__PURE__ */ jsxs8(HStack, { gap: "1", children: [
|
844
|
+
/* @__PURE__ */ jsx22(
|
1898
845
|
IconButton2,
|
1899
846
|
{
|
1900
847
|
"aria-label": "minus",
|
@@ -1902,10 +849,10 @@ var Counter = ({
|
|
1902
849
|
onClick: decrement,
|
1903
850
|
isDisabled: disabled || +value <= min,
|
1904
851
|
size: size2,
|
1905
|
-
icon: /* @__PURE__ */
|
852
|
+
icon: /* @__PURE__ */ jsx22(FiMinus, {})
|
1906
853
|
}
|
1907
854
|
),
|
1908
|
-
/* @__PURE__ */
|
855
|
+
/* @__PURE__ */ jsx22(
|
1909
856
|
input_field_default2,
|
1910
857
|
{
|
1911
858
|
"data-test-id": "CT_Component_Counter_input",
|
@@ -1919,10 +866,11 @@ var Counter = ({
|
|
1919
866
|
onChange: handleChange,
|
1920
867
|
isReadOnly,
|
1921
868
|
width: 12,
|
1922
|
-
type: "number"
|
869
|
+
type: "number",
|
870
|
+
borderColor: "neutral.200"
|
1923
871
|
}
|
1924
872
|
),
|
1925
|
-
/* @__PURE__ */
|
873
|
+
/* @__PURE__ */ jsx22(
|
1926
874
|
IconButton2,
|
1927
875
|
{
|
1928
876
|
"aria-label": "plus",
|
@@ -1930,11 +878,11 @@ var Counter = ({
|
|
1930
878
|
onClick: increment,
|
1931
879
|
isDisabled: disabled || +value >= max,
|
1932
880
|
size: size2,
|
1933
|
-
icon: /* @__PURE__ */
|
881
|
+
icon: /* @__PURE__ */ jsx22(FiPlus, {})
|
1934
882
|
}
|
1935
883
|
)
|
1936
884
|
] }),
|
1937
|
-
!isError ? /* @__PURE__ */
|
885
|
+
!isError ? /* @__PURE__ */ jsx22(Text3, { mt: 1, color: "black.medium", textStyle: "text.xs", children: helperText }) : /* @__PURE__ */ jsx22(Text3, { mt: 1, color: "danger.500", textStyle: "text.xs", children: error })
|
1938
886
|
] });
|
1939
887
|
};
|
1940
888
|
var counter_default = Counter;
|
@@ -1942,7 +890,7 @@ var counter_default = Counter;
|
|
1942
890
|
// src/components/data-table/components/data-table.tsx
|
1943
891
|
import { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from "@chakra-ui/icons";
|
1944
892
|
import {
|
1945
|
-
Box as
|
893
|
+
Box as Box12,
|
1946
894
|
Checkbox as Checkbox2,
|
1947
895
|
Flex,
|
1948
896
|
Skeleton as Skeleton2,
|
@@ -1958,8 +906,8 @@ import {
|
|
1958
906
|
import { css } from "@emotion/react";
|
1959
907
|
import { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
1960
908
|
import * as React5 from "react";
|
1961
|
-
import { useRef
|
1962
|
-
import { jsx as
|
909
|
+
import { useRef } from "react";
|
910
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
1963
911
|
var getCommonPinningStyles = (column) => {
|
1964
912
|
const isPinned = column.getIsPinned();
|
1965
913
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
@@ -1995,7 +943,7 @@ var useDataTable = ({
|
|
1995
943
|
{
|
1996
944
|
id: "select",
|
1997
945
|
size: 32,
|
1998
|
-
header: ({ table: table2 }) => /* @__PURE__ */
|
946
|
+
header: ({ table: table2 }) => /* @__PURE__ */ jsx23(
|
1999
947
|
Checkbox2,
|
2000
948
|
{
|
2001
949
|
"data-test-id": "select-header-data-table",
|
@@ -2006,7 +954,7 @@ var useDataTable = ({
|
|
2006
954
|
}
|
2007
955
|
}
|
2008
956
|
),
|
2009
|
-
cell: ({ row }) => /* @__PURE__ */
|
957
|
+
cell: ({ row }) => /* @__PURE__ */ jsx23(
|
2010
958
|
Checkbox2,
|
2011
959
|
{
|
2012
960
|
"data-test-id": `select-data-table-${row.index}`,
|
@@ -2039,9 +987,9 @@ var useDataTable = ({
|
|
2039
987
|
manualSorting,
|
2040
988
|
sortDescFirst,
|
2041
989
|
state: {
|
2042
|
-
columnPinning,
|
2043
990
|
sorting,
|
2044
|
-
rowSelection
|
991
|
+
rowSelection,
|
992
|
+
...columnPinning ? { columnPinning } : {}
|
2045
993
|
},
|
2046
994
|
onRowSelectionChange,
|
2047
995
|
onSortingChange
|
@@ -2074,15 +1022,15 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2074
1022
|
React5.useImperativeHandle(ref, () => ({
|
2075
1023
|
toggleAllRowsSelected
|
2076
1024
|
}));
|
2077
|
-
return /* @__PURE__ */ jsxs9(
|
1025
|
+
return /* @__PURE__ */ jsxs9(Box12, { ...props, children: [
|
2078
1026
|
isLoading && /* @__PURE__ */ jsxs9(Table, { ...styles == null ? void 0 : styles.table, children: [
|
2079
|
-
/* @__PURE__ */
|
1027
|
+
/* @__PURE__ */ jsx23(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx23(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx23(
|
2080
1028
|
Th,
|
2081
1029
|
{
|
2082
1030
|
colSpan: header.colSpan,
|
2083
1031
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
2084
1032
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
2085
|
-
children: /* @__PURE__ */
|
1033
|
+
children: /* @__PURE__ */ jsx23(
|
2086
1034
|
Flex,
|
2087
1035
|
{
|
2088
1036
|
"data-test-id": "CT_component_data-table_loader",
|
@@ -2095,12 +1043,12 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2095
1043
|
},
|
2096
1044
|
header.id
|
2097
1045
|
)) }, headerGroup.id)) }),
|
2098
|
-
/* @__PURE__ */
|
1046
|
+
/* @__PURE__ */ jsx23(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx23(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx23(Td, { width: 210, children: /* @__PURE__ */ jsx23(Skeleton2, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
2099
1047
|
] }),
|
2100
1048
|
/* @__PURE__ */ jsxs9(Table, { ...styles == null ? void 0 : styles.table, children: [
|
2101
|
-
/* @__PURE__ */
|
1049
|
+
/* @__PURE__ */ jsx23(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx23(Tr, { bg: useColorModeValue("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
2102
1050
|
var _a;
|
2103
|
-
return /* @__PURE__ */
|
1051
|
+
return /* @__PURE__ */ jsx23(
|
2104
1052
|
Th,
|
2105
1053
|
{
|
2106
1054
|
colSpan: header.colSpan,
|
@@ -2116,18 +1064,18 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2116
1064
|
align: "center",
|
2117
1065
|
gap: 2,
|
2118
1066
|
children: [
|
2119
|
-
/* @__PURE__ */
|
2120
|
-
/* @__PURE__ */
|
2121
|
-
|
1067
|
+
/* @__PURE__ */ jsx23(Text4, { children: flexRender(header.column.columnDef.header, header.getContext()) }),
|
1068
|
+
/* @__PURE__ */ jsx23(
|
1069
|
+
Box12,
|
2122
1070
|
{
|
2123
1071
|
as: "span",
|
2124
1072
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
2125
1073
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
2126
1074
|
onClick: header.column.getToggleSortingHandler(),
|
2127
1075
|
children: (_a = header.column.getCanSort() && {
|
2128
|
-
asc: /* @__PURE__ */
|
2129
|
-
desc: /* @__PURE__ */
|
2130
|
-
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */
|
1076
|
+
asc: /* @__PURE__ */ jsx23(ChevronUpIcon, {}),
|
1077
|
+
desc: /* @__PURE__ */ jsx23(ChevronDownIcon, {})
|
1078
|
+
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ jsx23(UpDownIcon, { h: 2 })
|
2131
1079
|
}
|
2132
1080
|
)
|
2133
1081
|
]
|
@@ -2137,9 +1085,9 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2137
1085
|
header.id
|
2138
1086
|
);
|
2139
1087
|
}) }, headerGroup.id)) }),
|
2140
|
-
/* @__PURE__ */
|
2141
|
-
const trRef =
|
2142
|
-
return /* @__PURE__ */
|
1088
|
+
/* @__PURE__ */ jsx23(Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1089
|
+
const trRef = useRef();
|
1090
|
+
return /* @__PURE__ */ jsx23(
|
2143
1091
|
Tr,
|
2144
1092
|
{
|
2145
1093
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
@@ -2166,7 +1114,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2166
1114
|
onRowClick(row.original);
|
2167
1115
|
}
|
2168
1116
|
},
|
2169
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */
|
1117
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx23(
|
2170
1118
|
Td,
|
2171
1119
|
{
|
2172
1120
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
@@ -2174,8 +1122,8 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
2174
1122
|
color: useColorModeValue("dark.800", "dark.300"),
|
2175
1123
|
style: { ...getCommonPinningStyles(cell.column) },
|
2176
1124
|
...styles == null ? void 0 : styles.tableCell,
|
2177
|
-
children: /* @__PURE__ */
|
2178
|
-
|
1125
|
+
children: /* @__PURE__ */ jsx23(
|
1126
|
+
Box12,
|
2179
1127
|
{
|
2180
1128
|
tabIndex: 0,
|
2181
1129
|
display: "inline-block",
|
@@ -2221,25 +1169,25 @@ var data_table_default = DataTable;
|
|
2221
1169
|
|
2222
1170
|
// src/components/datepicker/components/datepicker.tsx
|
2223
1171
|
import {
|
2224
|
-
FormControl as
|
1172
|
+
FormControl as FormControl3,
|
2225
1173
|
FormErrorMessage as FormErrorMessage3,
|
2226
|
-
FormHelperText as
|
1174
|
+
FormHelperText as FormHelperText3,
|
2227
1175
|
FormLabel as FormLabel3,
|
2228
1176
|
Input as Input2,
|
2229
1177
|
InputGroup as InputGroup4,
|
2230
1178
|
InputRightElement as InputRightElement3
|
2231
1179
|
} from "@chakra-ui/react";
|
2232
|
-
import { cx as
|
1180
|
+
import { cx as cx8 } from "@chakra-ui/shared-utils";
|
2233
1181
|
import ReactDatePicker from "react-datepicker";
|
2234
1182
|
import { FiCalendar, FiX } from "react-icons/fi";
|
2235
1183
|
|
2236
1184
|
// src/components/datepicker/components/styles.tsx
|
2237
1185
|
import { useColorMode } from "@chakra-ui/system";
|
2238
1186
|
import { Global } from "@emotion/react";
|
2239
|
-
import { jsx as
|
1187
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
2240
1188
|
var Styles = () => {
|
2241
1189
|
const { colorMode } = useColorMode();
|
2242
|
-
return /* @__PURE__ */
|
1190
|
+
return /* @__PURE__ */ jsx24(
|
2243
1191
|
Global,
|
2244
1192
|
{
|
2245
1193
|
styles: `
|
@@ -3053,7 +2001,7 @@ var styles_default = Styles;
|
|
3053
2001
|
// src/components/datepicker/components/time-input.tsx
|
3054
2002
|
import { Flex as Flex2, Input, InputGroup as InputGroup3, InputRightAddon as InputRightAddon3, Text as Text5 } from "@chakra-ui/react";
|
3055
2003
|
import React6 from "react";
|
3056
|
-
import { jsx as
|
2004
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
3057
2005
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
3058
2006
|
const [time, setTime] = React6.useState(value || "00:00");
|
3059
2007
|
const handleChange = (e) => {
|
@@ -3062,10 +2010,10 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
3062
2010
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
3063
2011
|
};
|
3064
2012
|
return /* @__PURE__ */ jsxs10(Flex2, { flexDir: "column", alignItems: "center", justifyContent: "center", p: 4, pt: 0, children: [
|
3065
|
-
/* @__PURE__ */
|
2013
|
+
/* @__PURE__ */ jsx25(Text5, { mb: 2, children: label }),
|
3066
2014
|
/* @__PURE__ */ jsxs10(InputGroup3, { alignItems: "center", justifyContent: "center", children: [
|
3067
|
-
/* @__PURE__ */
|
3068
|
-
rightAddon && /* @__PURE__ */
|
2015
|
+
/* @__PURE__ */ jsx25(Input, { onChange: handleChange, type: "time", value: time, "data-test-id": "CT_Component_datepicker_input_time" }),
|
2016
|
+
rightAddon && /* @__PURE__ */ jsx25(InputRightAddon3, { children: rightAddon })
|
3069
2017
|
] })
|
3070
2018
|
] });
|
3071
2019
|
};
|
@@ -3079,7 +2027,7 @@ TimeInput.defaultProps = {
|
|
3079
2027
|
var time_input_default = TimeInput;
|
3080
2028
|
|
3081
2029
|
// src/components/datepicker/components/datepicker.tsx
|
3082
|
-
import { Fragment, jsx as
|
2030
|
+
import { Fragment, jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
3083
2031
|
var Datepicker = ({
|
3084
2032
|
id,
|
3085
2033
|
label,
|
@@ -3104,21 +2052,21 @@ var Datepicker = ({
|
|
3104
2052
|
return {
|
3105
2053
|
timeInputLabel: "",
|
3106
2054
|
showTimeInput: true,
|
3107
|
-
customTimeInput: /* @__PURE__ */
|
2055
|
+
customTimeInput: /* @__PURE__ */ jsx26(time_input_default, {})
|
3108
2056
|
};
|
3109
2057
|
};
|
3110
2058
|
const component = /* @__PURE__ */ jsxs11(Fragment, { children: [
|
3111
|
-
/* @__PURE__ */
|
3112
|
-
/* @__PURE__ */
|
2059
|
+
/* @__PURE__ */ jsx26(styles_default, {}),
|
2060
|
+
/* @__PURE__ */ jsx26(
|
3113
2061
|
ReactDatePicker,
|
3114
2062
|
{
|
3115
2063
|
id,
|
3116
2064
|
name,
|
3117
2065
|
selected,
|
3118
|
-
customInput: /* @__PURE__ */
|
2066
|
+
customInput: /* @__PURE__ */ jsx26(Input2, { autoComplete: "off", ...wrapperStyle }),
|
3119
2067
|
dateFormat,
|
3120
2068
|
showPopperArrow: false,
|
3121
|
-
calendarClassName:
|
2069
|
+
calendarClassName: cx8({ inline: props.inline }),
|
3122
2070
|
showMonthDropdown: showMonth,
|
3123
2071
|
useShortMonthInDropdown: showMonth ? shortMonth : false,
|
3124
2072
|
...getTimeProps(),
|
@@ -3129,16 +2077,16 @@ var Datepicker = ({
|
|
3129
2077
|
if (props.inline) {
|
3130
2078
|
return component;
|
3131
2079
|
}
|
3132
|
-
return /* @__PURE__ */ jsxs11(
|
3133
|
-
label && /* @__PURE__ */
|
2080
|
+
return /* @__PURE__ */ jsxs11(FormControl3, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2081
|
+
label && /* @__PURE__ */ jsx26(FormLabel3, { fontSize: "text.sm", children: label }),
|
3134
2082
|
/* @__PURE__ */ jsxs11(InputGroup4, { children: [
|
3135
2083
|
component,
|
3136
2084
|
/* @__PURE__ */ jsxs11(InputRightElement3, { children: [
|
3137
|
-
!value && /* @__PURE__ */
|
3138
|
-
value && /* @__PURE__ */
|
2085
|
+
!value && /* @__PURE__ */ jsx26(FiCalendar, {}),
|
2086
|
+
value && /* @__PURE__ */ jsx26(FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
3139
2087
|
] })
|
3140
2088
|
] }),
|
3141
|
-
!isError ? /* @__PURE__ */
|
2089
|
+
!isError ? /* @__PURE__ */ jsx26(FormHelperText3, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ jsx26(FormErrorMessage3, { fontSize: "text.xs", mt: 1, children: error })
|
3142
2090
|
] });
|
3143
2091
|
};
|
3144
2092
|
Datepicker.defaultProps = {
|
@@ -3156,14 +2104,14 @@ Datepicker.defaultProps = {
|
|
3156
2104
|
var datepicker_default = Datepicker;
|
3157
2105
|
|
3158
2106
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
3159
|
-
import { Box as
|
2107
|
+
import { Box as Box13, Input as Input3 } from "@chakra-ui/react";
|
3160
2108
|
import { css as css2 } from "@emotion/react";
|
3161
2109
|
import React7 from "react";
|
3162
|
-
import { jsx as
|
2110
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
3163
2111
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
3164
2112
|
const [date, setDate] = React7.useState(null);
|
3165
|
-
return /* @__PURE__ */
|
3166
|
-
|
2113
|
+
return /* @__PURE__ */ jsx27(
|
2114
|
+
Box13,
|
3167
2115
|
{
|
3168
2116
|
fontSize: "12px",
|
3169
2117
|
lineHeight: "18px",
|
@@ -3177,7 +2125,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
3177
2125
|
width: 58px;
|
3178
2126
|
}
|
3179
2127
|
`,
|
3180
|
-
children: /* @__PURE__ */
|
2128
|
+
children: /* @__PURE__ */ jsx27(
|
3181
2129
|
Input3,
|
3182
2130
|
{
|
3183
2131
|
"data-test-id": props["data-test-id"],
|
@@ -3215,11 +2163,11 @@ DatePickerMonth.defaultProps = {
|
|
3215
2163
|
var datepicker_month_default = DatePickerMonth;
|
3216
2164
|
|
3217
2165
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
3218
|
-
import { Box as
|
2166
|
+
import { Box as Box14 } from "@chakra-ui/react";
|
3219
2167
|
import styled from "@emotion/styled";
|
3220
2168
|
import React8 from "react";
|
3221
|
-
import { jsx as
|
3222
|
-
var MultiDateWrapper = styled(
|
2169
|
+
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
2170
|
+
var MultiDateWrapper = styled(Box14)`
|
3223
2171
|
display: flex;
|
3224
2172
|
align-items: center;
|
3225
2173
|
width: fit-content;
|
@@ -3236,7 +2184,7 @@ var MultiDatePickerMonth = ({
|
|
3236
2184
|
}) => {
|
3237
2185
|
const [date, setDate] = React8.useState([null, null]);
|
3238
2186
|
return /* @__PURE__ */ jsxs12(MultiDateWrapper, { isError, children: [
|
3239
|
-
/* @__PURE__ */
|
2187
|
+
/* @__PURE__ */ jsx28(
|
3240
2188
|
datepicker_month_default,
|
3241
2189
|
{
|
3242
2190
|
"data-test-id": "CT_DatePickerMonth_StartDate",
|
@@ -3248,8 +2196,8 @@ var MultiDatePickerMonth = ({
|
|
3248
2196
|
max
|
3249
2197
|
}
|
3250
2198
|
),
|
3251
|
-
/* @__PURE__ */
|
3252
|
-
/* @__PURE__ */
|
2199
|
+
/* @__PURE__ */ jsx28(Box14, { children: "-" }),
|
2200
|
+
/* @__PURE__ */ jsx28(
|
3253
2201
|
datepicker_month_default,
|
3254
2202
|
{
|
3255
2203
|
"data-test-id": "CT_DatePickerMonth_EndDate",
|
@@ -3272,7 +2220,7 @@ var multi_datepicker_month_default = MultiDatePickerMonth;
|
|
3272
2220
|
|
3273
2221
|
// src/components/dialog/components/dialog.tsx
|
3274
2222
|
import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Text as Text6 } from "@chakra-ui/react";
|
3275
|
-
import { jsx as
|
2223
|
+
import { jsx as jsx29, jsxs as jsxs13 } from "react/jsx-runtime";
|
3276
2224
|
var Dialog = ({
|
3277
2225
|
title,
|
3278
2226
|
content,
|
@@ -3283,11 +2231,11 @@ var Dialog = ({
|
|
3283
2231
|
...props
|
3284
2232
|
}) => {
|
3285
2233
|
return /* @__PURE__ */ jsxs13(Modal, { ...props, children: [
|
3286
|
-
isModalOverlay && /* @__PURE__ */
|
2234
|
+
isModalOverlay && /* @__PURE__ */ jsx29(ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
3287
2235
|
/* @__PURE__ */ jsxs13(ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, children: [
|
3288
|
-
/* @__PURE__ */
|
3289
|
-
/* @__PURE__ */
|
3290
|
-
/* @__PURE__ */
|
2236
|
+
/* @__PURE__ */ jsx29(ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ jsx29(Text6, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2237
|
+
/* @__PURE__ */ jsx29(ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2238
|
+
/* @__PURE__ */ jsx29(ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
3291
2239
|
] })
|
3292
2240
|
] });
|
3293
2241
|
};
|
@@ -3302,12 +2250,12 @@ var dialog_default = Dialog;
|
|
3302
2250
|
import { Flex as Flex4, HStack as HStack3 } from "@chakra-ui/react";
|
3303
2251
|
|
3304
2252
|
// src/components/header/components/logo.tsx
|
3305
|
-
import { Box as
|
3306
|
-
import { jsx as
|
2253
|
+
import { Box as Box15, Image, useColorModeValue as useColorModeValue2 } from "@chakra-ui/react";
|
2254
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
3307
2255
|
var Logo = ({ url, imageUrl, height }) => {
|
3308
2256
|
if (url)
|
3309
|
-
return /* @__PURE__ */
|
3310
|
-
return /* @__PURE__ */
|
2257
|
+
return /* @__PURE__ */ jsx30(Box15, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ jsx30(Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
|
2258
|
+
return /* @__PURE__ */ jsx30(Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
|
3311
2259
|
};
|
3312
2260
|
Logo.defaultProps = {
|
3313
2261
|
url: void 0,
|
@@ -3317,7 +2265,7 @@ Logo.defaultProps = {
|
|
3317
2265
|
// src/components/header/components/profile.tsx
|
3318
2266
|
import {
|
3319
2267
|
Avatar,
|
3320
|
-
Box as
|
2268
|
+
Box as Box16,
|
3321
2269
|
Flex as Flex3,
|
3322
2270
|
HStack as HStack2,
|
3323
2271
|
Popover,
|
@@ -3331,13 +2279,13 @@ import {
|
|
3331
2279
|
VStack
|
3332
2280
|
} from "@chakra-ui/react";
|
3333
2281
|
import { FiPower } from "react-icons/fi";
|
3334
|
-
import { Fragment as Fragment2, jsx as
|
2282
|
+
import { Fragment as Fragment2, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
3335
2283
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
3336
2284
|
var _a;
|
3337
2285
|
const { isOpen, onToggle, onClose } = useDisclosure();
|
3338
2286
|
return /* @__PURE__ */ jsxs14(Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
3339
|
-
/* @__PURE__ */
|
3340
|
-
|
2287
|
+
/* @__PURE__ */ jsx31(
|
2288
|
+
Box16,
|
3341
2289
|
{
|
3342
2290
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
3343
2291
|
as: "button",
|
@@ -3349,20 +2297,20 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
3349
2297
|
color,
|
3350
2298
|
children: /* @__PURE__ */ jsxs14(HStack2, { children: [
|
3351
2299
|
/* @__PURE__ */ jsxs14(VStack, { alignItems: "flex-end", spacing: 0, ml: "2", color, children: [
|
3352
|
-
/* @__PURE__ */
|
2300
|
+
/* @__PURE__ */ jsx31(Text7, { textStyle: "text.xs", mb: 1, children: data == null ? void 0 : data.email }),
|
3353
2301
|
/* @__PURE__ */ jsxs14(Flex3, { alignItems: "center", children: [
|
3354
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */
|
3355
|
-
/* @__PURE__ */
|
2302
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ jsx31(Text7, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2303
|
+
/* @__PURE__ */ jsx31(Box16, { h: "3", mx: "1", borderLeft: "1px solid", borderColor: "neutral.400" }),
|
3356
2304
|
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ jsxs14(Fragment2, { children: [
|
3357
|
-
/* @__PURE__ */
|
2305
|
+
/* @__PURE__ */ jsx31(Text7, { textStyle: "text.xs", children: data.office[0] }),
|
3358
2306
|
data.office.length > 1 && /* @__PURE__ */ jsxs14(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
3359
2307
|
data.office.length - 1,
|
3360
2308
|
"+"
|
3361
2309
|
] })
|
3362
|
-
] }) : /* @__PURE__ */
|
2310
|
+
] }) : /* @__PURE__ */ jsx31(Text7, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
3363
2311
|
] })
|
3364
2312
|
] }),
|
3365
|
-
/* @__PURE__ */
|
2313
|
+
/* @__PURE__ */ jsx31(PopoverTrigger, { children: /* @__PURE__ */ jsx31(
|
3366
2314
|
Avatar,
|
3367
2315
|
{
|
3368
2316
|
size: "sm",
|
@@ -3379,8 +2327,8 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
3379
2327
|
}
|
3380
2328
|
),
|
3381
2329
|
/* @__PURE__ */ jsxs14(PopoverContent, { bg: "white", maxW: 200, children: [
|
3382
|
-
/* @__PURE__ */
|
3383
|
-
/* @__PURE__ */
|
2330
|
+
/* @__PURE__ */ jsx31(PopoverArrow, { bg: "white" }),
|
2331
|
+
/* @__PURE__ */ jsx31(PopoverBody, { p: 1, children: /* @__PURE__ */ jsxs14(
|
3384
2332
|
Flex3,
|
3385
2333
|
{
|
3386
2334
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
@@ -3393,8 +2341,8 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
3393
2341
|
onClick: onLogout,
|
3394
2342
|
textStyle: "text.xs",
|
3395
2343
|
children: [
|
3396
|
-
/* @__PURE__ */
|
3397
|
-
/* @__PURE__ */
|
2344
|
+
/* @__PURE__ */ jsx31(FiPower, {}),
|
2345
|
+
/* @__PURE__ */ jsx31(Text7, { ml: 2, children: "Logout" })
|
3398
2346
|
]
|
3399
2347
|
}
|
3400
2348
|
) })
|
@@ -3410,17 +2358,17 @@ Profile.defaultProps = {
|
|
3410
2358
|
var profile_default = Profile;
|
3411
2359
|
|
3412
2360
|
// src/components/header/components/switch-mode.tsx
|
3413
|
-
import { Box as
|
2361
|
+
import { Box as Box17, useColorMode as useColorMode2 } from "@chakra-ui/react";
|
3414
2362
|
import { FiMoon, FiSun } from "react-icons/fi";
|
3415
|
-
import { jsx as
|
2363
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
3416
2364
|
var SwitchMode = () => {
|
3417
2365
|
const { colorMode, toggleColorMode } = useColorMode2();
|
3418
|
-
return /* @__PURE__ */
|
2366
|
+
return /* @__PURE__ */ jsx32(Box17, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ jsx32(FiMoon, { size: 20 }) : /* @__PURE__ */ jsx32(FiSun, { size: 20 }) });
|
3419
2367
|
};
|
3420
2368
|
var switch_mode_default = SwitchMode;
|
3421
2369
|
|
3422
2370
|
// src/components/header/components/version.tsx
|
3423
|
-
import { Box as
|
2371
|
+
import { Box as Box18 } from "@chakra-ui/react";
|
3424
2372
|
|
3425
2373
|
// src/components/header/utils/formatter.ts
|
3426
2374
|
function environmentName(env) {
|
@@ -3435,9 +2383,9 @@ function environmentName(env) {
|
|
3435
2383
|
}
|
3436
2384
|
|
3437
2385
|
// src/components/header/components/version.tsx
|
3438
|
-
import { Fragment as Fragment3, jsx as
|
2386
|
+
import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
3439
2387
|
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ jsxs15(Fragment3, { children: [
|
3440
|
-
version && /* @__PURE__ */
|
2388
|
+
version && /* @__PURE__ */ jsx33(
|
3441
2389
|
badge_default,
|
3442
2390
|
{
|
3443
2391
|
fontSize: "8px",
|
@@ -3448,8 +2396,8 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
3448
2396
|
children: version
|
3449
2397
|
}
|
3450
2398
|
),
|
3451
|
-
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */
|
3452
|
-
|
2399
|
+
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ jsx33(
|
2400
|
+
Box18,
|
3453
2401
|
{
|
3454
2402
|
background: "primary.50",
|
3455
2403
|
color: "primary.500",
|
@@ -3471,7 +2419,7 @@ Version.defaultProps = {
|
|
3471
2419
|
var version_default = Version;
|
3472
2420
|
|
3473
2421
|
// src/components/header/components/header.tsx
|
3474
|
-
import { jsx as
|
2422
|
+
import { jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
|
3475
2423
|
var Header = ({
|
3476
2424
|
brandColor,
|
3477
2425
|
data,
|
@@ -3488,14 +2436,14 @@ var Header = ({
|
|
3488
2436
|
profile,
|
3489
2437
|
bg = "white",
|
3490
2438
|
...props
|
3491
|
-
}) => /* @__PURE__ */
|
2439
|
+
}) => /* @__PURE__ */ jsx34(Flex4, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ jsxs16(Flex4, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
3492
2440
|
mainLogo && /* @__PURE__ */ jsxs16(Flex4, { alignItems: "center", children: [
|
3493
|
-
/* @__PURE__ */
|
2441
|
+
/* @__PURE__ */ jsx34(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
3494
2442
|
children && children
|
3495
2443
|
] }),
|
3496
2444
|
centerLogo && /* @__PURE__ */ jsxs16(HStack3, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
3497
|
-
/* @__PURE__ */
|
3498
|
-
/* @__PURE__ */
|
2445
|
+
/* @__PURE__ */ jsx34(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
2446
|
+
/* @__PURE__ */ jsx34(
|
3499
2447
|
version_default,
|
3500
2448
|
{
|
3501
2449
|
hideEnv,
|
@@ -3506,8 +2454,8 @@ var Header = ({
|
|
3506
2454
|
)
|
3507
2455
|
] }),
|
3508
2456
|
profile || /* @__PURE__ */ jsxs16(Flex4, { alignItems: "center", children: [
|
3509
|
-
!hideSwitchMode && /* @__PURE__ */
|
3510
|
-
/* @__PURE__ */
|
2457
|
+
!hideSwitchMode && /* @__PURE__ */ jsx34(switch_mode_default, {}),
|
2458
|
+
/* @__PURE__ */ jsx34(profile_default, { color: props.color, brandColor, data, onLogout })
|
3511
2459
|
] })
|
3512
2460
|
] }) });
|
3513
2461
|
Header.defaultProps = {
|
@@ -3531,7 +2479,7 @@ import { Icon, IconProps, Image as Image2, ImageProps } from "@chakra-ui/react";
|
|
3531
2479
|
|
3532
2480
|
// src/components/layouting/index.ts
|
3533
2481
|
import {
|
3534
|
-
Box as
|
2482
|
+
Box as Box19,
|
3535
2483
|
BoxProps,
|
3536
2484
|
Center,
|
3537
2485
|
Container,
|
@@ -3559,27 +2507,53 @@ import {
|
|
3559
2507
|
// src/components/list/index.tsx
|
3560
2508
|
import { List, ListIcon, ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from "@chakra-ui/react";
|
3561
2509
|
|
2510
|
+
// src/components/modal/components/modal-back-button.tsx
|
2511
|
+
import { ChevronLeftIcon } from "@chakra-ui/icons";
|
2512
|
+
import { IconButton as IconButton3 } from "@chakra-ui/react";
|
2513
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
2514
|
+
var ModalBackButton = ({ onClick }) => {
|
2515
|
+
return /* @__PURE__ */ jsx35(
|
2516
|
+
IconButton3,
|
2517
|
+
{
|
2518
|
+
icon: /* @__PURE__ */ jsx35(ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
2519
|
+
size: "sm",
|
2520
|
+
minW: "6",
|
2521
|
+
h: "6",
|
2522
|
+
rounded: "sm",
|
2523
|
+
variant: "solid",
|
2524
|
+
bg: "white",
|
2525
|
+
onClick,
|
2526
|
+
_hover: { bg: "white" },
|
2527
|
+
color: "black",
|
2528
|
+
"aria-label": "Back",
|
2529
|
+
"data-test-id": "modal-back-button"
|
2530
|
+
}
|
2531
|
+
);
|
2532
|
+
};
|
2533
|
+
var modal_back_button_default = ModalBackButton;
|
2534
|
+
|
3562
2535
|
// src/components/modal/components/modal-body.tsx
|
3563
2536
|
import { ModalBody as ChakraModalBody, useColorModeValue as useColorModeValue4 } from "@chakra-ui/react";
|
3564
2537
|
import React9 from "react";
|
3565
|
-
import { jsx as
|
2538
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
3566
2539
|
var ModalBody2 = React9.forwardRef(({ children, ...rest }, ref) => {
|
3567
|
-
return /* @__PURE__ */
|
2540
|
+
return /* @__PURE__ */ jsx36(ChakraModalBody, { px: 4, py: 2, ref, background: useColorModeValue4("white", "mirage.900"), ...rest, children });
|
3568
2541
|
});
|
3569
2542
|
var modal_body_default = ModalBody2;
|
3570
2543
|
|
3571
2544
|
// src/components/modal/components/modal-close-button.tsx
|
3572
2545
|
import { ModalCloseButton as ChakraModalCloseButton, useColorModeValue as useColorModeValue5 } from "@chakra-ui/react";
|
3573
|
-
import { forwardRef as
|
3574
|
-
import { jsx as
|
3575
|
-
var ModalCloseButton =
|
3576
|
-
return /* @__PURE__ */
|
2546
|
+
import { forwardRef as forwardRef9 } from "react";
|
2547
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
2548
|
+
var ModalCloseButton = forwardRef9((props, ref) => {
|
2549
|
+
return /* @__PURE__ */ jsx37(
|
3577
2550
|
ChakraModalCloseButton,
|
3578
2551
|
{
|
3579
2552
|
ref,
|
3580
|
-
top:
|
3581
|
-
right:
|
2553
|
+
top: 2,
|
2554
|
+
right: 2,
|
3582
2555
|
size: "sm",
|
2556
|
+
"data-test-id": "modal-close-button",
|
3583
2557
|
background: useColorModeValue5("neutral.50", "mirage.900"),
|
3584
2558
|
...props
|
3585
2559
|
}
|
@@ -3589,10 +2563,10 @@ var modal_close_button_default = ModalCloseButton;
|
|
3589
2563
|
|
3590
2564
|
// src/components/modal/components/modal-footer.tsx
|
3591
2565
|
import { ModalFooter as ChakraModalFooter, useColorModeValue as useColorModeValue6 } from "@chakra-ui/react";
|
3592
|
-
import { forwardRef as
|
3593
|
-
import { jsx as
|
3594
|
-
var ModalFooter2 =
|
3595
|
-
return /* @__PURE__ */
|
2566
|
+
import { forwardRef as forwardRef10 } from "react";
|
2567
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
2568
|
+
var ModalFooter2 = forwardRef10(({ children, ...rest }, ref) => {
|
2569
|
+
return /* @__PURE__ */ jsx38(
|
3596
2570
|
ChakraModalFooter,
|
3597
2571
|
{
|
3598
2572
|
ref,
|
@@ -3607,16 +2581,19 @@ var modal_footer_default = ModalFooter2;
|
|
3607
2581
|
|
3608
2582
|
// src/components/modal/components/modal-header.tsx
|
3609
2583
|
import { ModalHeader as ChakraModalHeader, useColorModeValue as useColorModeValue7 } from "@chakra-ui/react";
|
3610
|
-
import { forwardRef as
|
3611
|
-
import { jsx as
|
3612
|
-
var ModalHeader2 =
|
3613
|
-
return /* @__PURE__ */
|
2584
|
+
import { forwardRef as forwardRef11 } from "react";
|
2585
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
2586
|
+
var ModalHeader2 = forwardRef11(({ children, ...rest }, ref) => {
|
2587
|
+
return /* @__PURE__ */ jsx39(
|
3614
2588
|
ChakraModalHeader,
|
3615
2589
|
{
|
3616
2590
|
ref,
|
3617
2591
|
background: useColorModeValue7("neutral.200", "mirage.900"),
|
3618
2592
|
borderTopRadius: "sm",
|
3619
|
-
|
2593
|
+
fontSize: "text.lg",
|
2594
|
+
fontWeight: "400",
|
2595
|
+
px: 4,
|
2596
|
+
py: 2,
|
3620
2597
|
...rest,
|
3621
2598
|
children
|
3622
2599
|
}
|
@@ -3665,11 +2642,11 @@ import {
|
|
3665
2642
|
// src/components/navigation/components/navigation.tsx
|
3666
2643
|
import { ChevronDownIcon as ChevronDownIcon2 } from "@chakra-ui/icons";
|
3667
2644
|
import {
|
3668
|
-
Box as
|
2645
|
+
Box as Box20,
|
3669
2646
|
Flex as Flex6,
|
3670
2647
|
HStack as HStack5,
|
3671
2648
|
Icon as Icon2,
|
3672
|
-
Link as
|
2649
|
+
Link as Link2,
|
3673
2650
|
Popover as Popover2,
|
3674
2651
|
PopoverContent as PopoverContent2,
|
3675
2652
|
PopoverTrigger as PopoverTrigger2,
|
@@ -3696,12 +2673,12 @@ import {
|
|
3696
2673
|
|
3697
2674
|
// src/components/navigation/components/customer-icon.tsx
|
3698
2675
|
import { createIcon } from "@chakra-ui/react";
|
3699
|
-
import { jsx as
|
2676
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
3700
2677
|
var CustomerIcon = createIcon({
|
3701
2678
|
displayName: "CustomerIcon",
|
3702
2679
|
viewBox: "0 0 16 16",
|
3703
2680
|
path: [
|
3704
|
-
/* @__PURE__ */
|
2681
|
+
/* @__PURE__ */ jsx40(
|
3705
2682
|
"path",
|
3706
2683
|
{
|
3707
2684
|
fill: "currentColor",
|
@@ -3710,14 +2687,14 @@ var CustomerIcon = createIcon({
|
|
3710
2687
|
clipRule: "inherit"
|
3711
2688
|
}
|
3712
2689
|
),
|
3713
|
-
/* @__PURE__ */
|
2690
|
+
/* @__PURE__ */ jsx40(
|
3714
2691
|
"path",
|
3715
2692
|
{
|
3716
2693
|
fill: "currentColor",
|
3717
2694
|
d: "M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"
|
3718
2695
|
}
|
3719
2696
|
),
|
3720
|
-
/* @__PURE__ */
|
2697
|
+
/* @__PURE__ */ jsx40(
|
3721
2698
|
"path",
|
3722
2699
|
{
|
3723
2700
|
fill: "currentColor",
|
@@ -3747,22 +2724,22 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
3747
2724
|
]);
|
3748
2725
|
|
3749
2726
|
// src/components/navigation/components/navigation.tsx
|
3750
|
-
import { Fragment as Fragment4, jsx as
|
2727
|
+
import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
3751
2728
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
3752
|
-
return /* @__PURE__ */
|
3753
|
-
|
2729
|
+
return /* @__PURE__ */ jsx41(
|
2730
|
+
Box20,
|
3754
2731
|
{
|
3755
2732
|
bg: useColorModeValue8("white", "ebony-clay.800"),
|
3756
2733
|
boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
|
3757
2734
|
borderRadius: "md",
|
3758
2735
|
overflowX: "auto",
|
3759
2736
|
...props,
|
3760
|
-
children: /* @__PURE__ */
|
2737
|
+
children: /* @__PURE__ */ jsx41(Flex6, { alignItems: "center", p: 2, children: /* @__PURE__ */ jsx41(HStack5, { spacing: 2, children: navigations == null ? void 0 : navigations.map((navigation) => {
|
3761
2738
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
3762
2739
|
const activeBg = isActive ? "primary.500" : void 0;
|
3763
|
-
return /* @__PURE__ */
|
3764
|
-
/* @__PURE__ */
|
3765
|
-
|
2740
|
+
return /* @__PURE__ */ jsx41(Popover2, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
2741
|
+
/* @__PURE__ */ jsx41(PopoverTrigger2, { children: /* @__PURE__ */ jsxs17(
|
2742
|
+
Box20,
|
3766
2743
|
{
|
3767
2744
|
display: "flex",
|
3768
2745
|
alignItems: "center",
|
@@ -3775,13 +2752,13 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3775
2752
|
color: isActive ? "white" : "inherit",
|
3776
2753
|
p: 2,
|
3777
2754
|
children: [
|
3778
|
-
/* @__PURE__ */
|
3779
|
-
/* @__PURE__ */
|
3780
|
-
/* @__PURE__ */
|
2755
|
+
/* @__PURE__ */ jsx41(Icon2, { as: mappingIcon.get(navigation.title), mr: 2 }),
|
2756
|
+
/* @__PURE__ */ jsx41(Text8, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
2757
|
+
/* @__PURE__ */ jsx41(ChevronDownIcon2, { ml: 2 })
|
3781
2758
|
]
|
3782
2759
|
}
|
3783
2760
|
) }),
|
3784
|
-
navigation.children && /* @__PURE__ */
|
2761
|
+
navigation.children && /* @__PURE__ */ jsx41(Portal, { children: /* @__PURE__ */ jsx41(Box20, { zIndex: "popover", children: /* @__PURE__ */ jsx41(
|
3785
2762
|
PopoverContent2,
|
3786
2763
|
{
|
3787
2764
|
bg: useColorModeValue8("white", "ebony-clay.800"),
|
@@ -3793,8 +2770,8 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3793
2770
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
3794
2771
|
const isLocalLink = host === navHost;
|
3795
2772
|
const isActiveSub = activePath === navLink;
|
3796
|
-
return /* @__PURE__ */
|
3797
|
-
|
2773
|
+
return /* @__PURE__ */ jsx41(
|
2774
|
+
Link2,
|
3798
2775
|
{
|
3799
2776
|
as: isLocalLink ? as : void 0,
|
3800
2777
|
href: link,
|
@@ -3802,7 +2779,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3802
2779
|
textDecoration: "none"
|
3803
2780
|
},
|
3804
2781
|
children: /* @__PURE__ */ jsxs17(
|
3805
|
-
|
2782
|
+
Box20,
|
3806
2783
|
{
|
3807
2784
|
display: "flex",
|
3808
2785
|
position: "relative",
|
@@ -3824,10 +2801,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3824
2801
|
px: 6,
|
3825
2802
|
py: 4,
|
3826
2803
|
children: [
|
3827
|
-
/* @__PURE__ */
|
3828
|
-
/* @__PURE__ */
|
3829
|
-
isActiveSub && /* @__PURE__ */
|
3830
|
-
|
2804
|
+
/* @__PURE__ */ jsx41(Icon2, { as: mappingIcon.get(navigation.title), mr: 3 }),
|
2805
|
+
/* @__PURE__ */ jsx41(Text8, { fontSize: "text.sm", children: title }),
|
2806
|
+
isActiveSub && /* @__PURE__ */ jsx41(
|
2807
|
+
Box20,
|
3831
2808
|
{
|
3832
2809
|
width: 0.5,
|
3833
2810
|
height: 8,
|
@@ -3860,9 +2837,9 @@ Navigation.defaultProps = {
|
|
3860
2837
|
var navigation_default = Navigation;
|
3861
2838
|
|
3862
2839
|
// src/components/navigation/components/navigation-bar.tsx
|
3863
|
-
import { Box as
|
2840
|
+
import { Box as Box21, Button as Button2, Flex as Flex7, Link as Link3, Popover as Popover3, PopoverContent as PopoverContent3, PopoverTrigger as PopoverTrigger3, Text as Text9 } from "@chakra-ui/react";
|
3864
2841
|
import * as Icon3 from "@ctlyst.id/internal-icon";
|
3865
|
-
import { Fragment as Fragment5, jsx as
|
2842
|
+
import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
3866
2843
|
var NavigationBar = ({
|
3867
2844
|
navigations,
|
3868
2845
|
isFetched,
|
@@ -3877,14 +2854,14 @@ var NavigationBar = ({
|
|
3877
2854
|
}
|
3878
2855
|
return subMenu.navHost + subMenu.navLink;
|
3879
2856
|
};
|
3880
|
-
return /* @__PURE__ */
|
3881
|
-
|
2857
|
+
return /* @__PURE__ */ jsx42(
|
2858
|
+
Box21,
|
3882
2859
|
{
|
3883
2860
|
hidden: isFetched && navigations === void 0,
|
3884
2861
|
backgroundRepeat: "repeat-x",
|
3885
2862
|
"data-test-id": "CT_component_navigation_cms",
|
3886
2863
|
...props,
|
3887
|
-
children: /* @__PURE__ */
|
2864
|
+
children: /* @__PURE__ */ jsx42(
|
3888
2865
|
Flex7,
|
3889
2866
|
{
|
3890
2867
|
bg: "white",
|
@@ -3901,8 +2878,8 @@ var NavigationBar = ({
|
|
3901
2878
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3902
2879
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3903
2880
|
const activeBg = isActive ? "primary.500" : void 0;
|
3904
|
-
return /* @__PURE__ */
|
3905
|
-
/* @__PURE__ */
|
2881
|
+
return /* @__PURE__ */ jsx42(Popover3, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
2882
|
+
/* @__PURE__ */ jsx42(PopoverTrigger3, { children: /* @__PURE__ */ jsx42(
|
3906
2883
|
Button2,
|
3907
2884
|
{
|
3908
2885
|
h: 7.5,
|
@@ -3916,12 +2893,12 @@ var NavigationBar = ({
|
|
3916
2893
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3917
2894
|
color: isActive ? "primary.50" : "black.high",
|
3918
2895
|
leftIcon: mappingIcon2.get(item.title),
|
3919
|
-
rightIcon: /* @__PURE__ */
|
2896
|
+
rightIcon: /* @__PURE__ */ jsx42(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
3920
2897
|
children: item.title
|
3921
2898
|
}
|
3922
2899
|
) }),
|
3923
|
-
item.children && /* @__PURE__ */
|
3924
|
-
|
2900
|
+
item.children && /* @__PURE__ */ jsx42(PopoverContent3, { border: "none", shadow: "raised", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ jsxs18(
|
2901
|
+
Link3,
|
3925
2902
|
{
|
3926
2903
|
href: urlMenu(subMenu),
|
3927
2904
|
display: "flex",
|
@@ -3940,7 +2917,7 @@ var NavigationBar = ({
|
|
3940
2917
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3941
2918
|
children: [
|
3942
2919
|
mappingIcon2.get(item.title),
|
3943
|
-
/* @__PURE__ */
|
2920
|
+
/* @__PURE__ */ jsx42(Text9, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3944
2921
|
]
|
3945
2922
|
},
|
3946
2923
|
subMenu.id
|
@@ -3958,18 +2935,18 @@ NavigationBar.defaultProps = {
|
|
3958
2935
|
var navigation_bar_default = NavigationBar;
|
3959
2936
|
|
3960
2937
|
// src/components/pagination/components/pagination.tsx
|
3961
|
-
import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
|
3962
|
-
import { Box as
|
2938
|
+
import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon } from "@chakra-ui/icons";
|
2939
|
+
import { Box as Box22, Text as Text10, useColorModeValue as useColorModeValue10 } from "@chakra-ui/react";
|
3963
2940
|
|
3964
2941
|
// src/components/pagination/components/pagination-button.tsx
|
3965
|
-
import { Button as Button3, forwardRef as
|
3966
|
-
import { jsx as
|
3967
|
-
var PaginationButton =
|
2942
|
+
import { Button as Button3, forwardRef as forwardRef12, useColorModeValue as useColorModeValue9 } from "@chakra-ui/react";
|
2943
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
2944
|
+
var PaginationButton = forwardRef12(({ className, style, isActive, children, ...rest }, ref) => {
|
3968
2945
|
const btnBg = useColorModeValue9("neutral.300", "mirage.900");
|
3969
2946
|
const btnColor = useColorModeValue9("black.high", "primary.300");
|
3970
2947
|
const btnNotActiveBg = useColorModeValue9("secondary.50", "primary.500");
|
3971
2948
|
const btnNotActiveColor = useColorModeValue9("primary.500", "white");
|
3972
|
-
return /* @__PURE__ */
|
2949
|
+
return /* @__PURE__ */ jsx43(
|
3973
2950
|
Button3,
|
3974
2951
|
{
|
3975
2952
|
"data-test-id": "Pagination-Button",
|
@@ -4008,7 +2985,7 @@ var pagination_button_default = PaginationButton;
|
|
4008
2985
|
|
4009
2986
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
4010
2987
|
import { VisuallyHidden } from "@chakra-ui/react";
|
4011
|
-
import { jsx as
|
2988
|
+
import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
|
4012
2989
|
var PaginationButtonTrigger = ({
|
4013
2990
|
color,
|
4014
2991
|
isDisabled,
|
@@ -4016,7 +2993,7 @@ var PaginationButtonTrigger = ({
|
|
4016
2993
|
visuallyHidden,
|
4017
2994
|
icon
|
4018
2995
|
}) => /* @__PURE__ */ jsxs19(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
4019
|
-
/* @__PURE__ */
|
2996
|
+
/* @__PURE__ */ jsx44(VisuallyHidden, { children: visuallyHidden }),
|
4020
2997
|
icon
|
4021
2998
|
] });
|
4022
2999
|
PaginationButtonTrigger.defaultProps = {
|
@@ -4029,7 +3006,7 @@ PaginationButtonTrigger.defaultProps = {
|
|
4029
3006
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
4030
3007
|
|
4031
3008
|
// src/components/pagination/components/pagination.tsx
|
4032
|
-
import { jsx as
|
3009
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
4033
3010
|
var Pagination = ({ className, current, total, onSelect }) => {
|
4034
3011
|
const btnColorDisabled = useColorModeValue10("secondary.100", "primary.500");
|
4035
3012
|
const btnColor = useColorModeValue10("primary.500", "secondary.100");
|
@@ -4059,8 +3036,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4059
3036
|
}
|
4060
3037
|
return pageButtons;
|
4061
3038
|
};
|
4062
|
-
return /* @__PURE__ */ jsxs20(
|
4063
|
-
/* @__PURE__ */
|
3039
|
+
return /* @__PURE__ */ jsxs20(Box22, { className, display: "inline-flex", alignItems: "center", children: [
|
3040
|
+
/* @__PURE__ */ jsx45(Box22, { mr: 1, children: /* @__PURE__ */ jsx45(
|
4064
3041
|
pagination_button_trigger_default,
|
4065
3042
|
{
|
4066
3043
|
"data-test-id": "Pagination-Button",
|
@@ -4068,11 +3045,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4068
3045
|
isDisabled: disabledPrevious,
|
4069
3046
|
onClick: () => handleSelectPage(1),
|
4070
3047
|
visuallyHidden: "First Page",
|
4071
|
-
icon: /* @__PURE__ */
|
3048
|
+
icon: /* @__PURE__ */ jsx45(ArrowLeftIcon, { width: 2 })
|
4072
3049
|
}
|
4073
3050
|
) }),
|
4074
|
-
/* @__PURE__ */ jsxs20(
|
4075
|
-
/* @__PURE__ */
|
3051
|
+
/* @__PURE__ */ jsxs20(Box22, { bg: "neutral.300", borderRadius: "full", children: [
|
3052
|
+
/* @__PURE__ */ jsx45(
|
4076
3053
|
pagination_button_trigger_default,
|
4077
3054
|
{
|
4078
3055
|
"data-test-id": "Pagination-Button",
|
@@ -4080,22 +3057,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4080
3057
|
isDisabled: disabledPrevious,
|
4081
3058
|
onClick: () => handleSelectPage(current - 1),
|
4082
3059
|
visuallyHidden: "Previous Page",
|
4083
|
-
icon: /* @__PURE__ */
|
3060
|
+
icon: /* @__PURE__ */ jsx45(ChevronLeftIcon2, {})
|
4084
3061
|
}
|
4085
3062
|
),
|
4086
3063
|
generatePages().map((page) => {
|
4087
|
-
return /* @__PURE__ */
|
3064
|
+
return /* @__PURE__ */ jsx45(
|
4088
3065
|
pagination_button_default,
|
4089
3066
|
{
|
4090
3067
|
"data-test-id": "Pagination-Button",
|
4091
3068
|
isActive: page === current,
|
4092
3069
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
4093
|
-
children: /* @__PURE__ */
|
3070
|
+
children: /* @__PURE__ */ jsx45(Text10, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
4094
3071
|
},
|
4095
3072
|
page
|
4096
3073
|
);
|
4097
3074
|
}),
|
4098
|
-
/* @__PURE__ */
|
3075
|
+
/* @__PURE__ */ jsx45(
|
4099
3076
|
pagination_button_trigger_default,
|
4100
3077
|
{
|
4101
3078
|
"data-test-id": "Pagination-Button",
|
@@ -4103,11 +3080,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4103
3080
|
isDisabled: disabledNext,
|
4104
3081
|
onClick: () => handleSelectPage(current + 1),
|
4105
3082
|
visuallyHidden: "Next Page",
|
4106
|
-
icon: /* @__PURE__ */
|
3083
|
+
icon: /* @__PURE__ */ jsx45(ChevronRightIcon, {})
|
4107
3084
|
}
|
4108
3085
|
)
|
4109
3086
|
] }),
|
4110
|
-
/* @__PURE__ */
|
3087
|
+
/* @__PURE__ */ jsx45(Box22, { ml: 1, children: /* @__PURE__ */ jsx45(
|
4111
3088
|
pagination_button_trigger_default,
|
4112
3089
|
{
|
4113
3090
|
"data-test-id": "Pagination-Button",
|
@@ -4115,7 +3092,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4115
3092
|
isDisabled: disabledNext,
|
4116
3093
|
onClick: () => handleSelectPage(total),
|
4117
3094
|
visuallyHidden: "Last Page",
|
4118
|
-
icon: /* @__PURE__ */
|
3095
|
+
icon: /* @__PURE__ */ jsx45(ArrowRightIcon, { width: 2 })
|
4119
3096
|
}
|
4120
3097
|
) })
|
4121
3098
|
] });
|
@@ -4129,7 +3106,7 @@ var pagination_default = Pagination;
|
|
4129
3106
|
|
4130
3107
|
// src/components/pagination/components/pagination-detail.tsx
|
4131
3108
|
import { Text as Text11 } from "@chakra-ui/react";
|
4132
|
-
import { jsx as
|
3109
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
4133
3110
|
var PaginationDetail = ({
|
4134
3111
|
page,
|
4135
3112
|
limit,
|
@@ -4139,15 +3116,15 @@ var PaginationDetail = ({
|
|
4139
3116
|
lineHeight = 18,
|
4140
3117
|
...rest
|
4141
3118
|
}) => {
|
4142
|
-
return /* @__PURE__ */
|
3119
|
+
return /* @__PURE__ */ jsx46(Text11, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
4143
3120
|
};
|
4144
3121
|
var pagination_detail_default = PaginationDetail;
|
4145
3122
|
|
4146
3123
|
// src/components/pagination/components/pagination-filter.tsx
|
4147
|
-
import { Box as
|
3124
|
+
import { Box as Box23, Select, Text as Text12, useColorModeValue as useColorModeValue11 } from "@chakra-ui/react";
|
4148
3125
|
import * as React13 from "react";
|
4149
3126
|
import { FiChevronDown } from "react-icons/fi";
|
4150
|
-
import { jsx as
|
3127
|
+
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
4151
3128
|
var PaginationFilter = ({
|
4152
3129
|
limit,
|
4153
3130
|
label = "Baris per halaman:",
|
@@ -4156,9 +3133,9 @@ var PaginationFilter = ({
|
|
4156
3133
|
...rest
|
4157
3134
|
}) => {
|
4158
3135
|
const [value, setValue] = React13.useState(limit);
|
4159
|
-
return /* @__PURE__ */ jsxs21(
|
4160
|
-
/* @__PURE__ */
|
4161
|
-
/* @__PURE__ */
|
3136
|
+
return /* @__PURE__ */ jsxs21(Box23, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3137
|
+
/* @__PURE__ */ jsx47(Text12, { fontSize: "text.sm", lineHeight: 18, color: useColorModeValue11("neutral.900", "white"), ...rest, children: label }),
|
3138
|
+
/* @__PURE__ */ jsx47(
|
4162
3139
|
Select,
|
4163
3140
|
{
|
4164
3141
|
textAlign: "center",
|
@@ -4167,7 +3144,7 @@ var PaginationFilter = ({
|
|
4167
3144
|
border: "none",
|
4168
3145
|
boxShadow: "none",
|
4169
3146
|
width: 18,
|
4170
|
-
icon: /* @__PURE__ */
|
3147
|
+
icon: /* @__PURE__ */ jsx47(FiChevronDown, {}),
|
4171
3148
|
_focusVisible: { boxShadow: "none" },
|
4172
3149
|
onChange: (e) => {
|
4173
3150
|
const numberValue = Number(e.target.value);
|
@@ -4176,7 +3153,7 @@ var PaginationFilter = ({
|
|
4176
3153
|
},
|
4177
3154
|
value,
|
4178
3155
|
children: items.map((item) => {
|
4179
|
-
return /* @__PURE__ */
|
3156
|
+
return /* @__PURE__ */ jsx47("option", { value: item, children: item }, item);
|
4180
3157
|
})
|
4181
3158
|
}
|
4182
3159
|
)
|
@@ -4210,8 +3187,8 @@ import {
|
|
4210
3187
|
} from "@chakra-ui/react";
|
4211
3188
|
|
4212
3189
|
// src/components/radio/components/radio.tsx
|
4213
|
-
import { Box as
|
4214
|
-
import { jsx as
|
3190
|
+
import { Box as Box24, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
|
3191
|
+
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
4215
3192
|
var Radio = ({
|
4216
3193
|
isError = false,
|
4217
3194
|
helpText = "",
|
@@ -4221,9 +3198,9 @@ var Radio = ({
|
|
4221
3198
|
...rest
|
4222
3199
|
}) => {
|
4223
3200
|
const variant = isError ? "errors" : "unstyled";
|
4224
|
-
return /* @__PURE__ */ jsxs22(
|
4225
|
-
/* @__PURE__ */
|
4226
|
-
/* @__PURE__ */
|
3201
|
+
return /* @__PURE__ */ jsxs22(Box24, { children: [
|
3202
|
+
/* @__PURE__ */ jsx48(Box24, { display: "flex", children: /* @__PURE__ */ jsx48(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3203
|
+
/* @__PURE__ */ jsx48(Box24, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
4227
3204
|
] });
|
4228
3205
|
};
|
4229
3206
|
Radio.displayName = "Radio";
|
@@ -4234,8 +3211,8 @@ Radio.defaultProps = {
|
|
4234
3211
|
};
|
4235
3212
|
|
4236
3213
|
// src/components/radio/components/radio-group.tsx
|
4237
|
-
import { Box as
|
4238
|
-
import { jsx as
|
3214
|
+
import { Box as Box25, RadioGroup as ChakraRadioGroup, Stack as Stack3 } from "@chakra-ui/react";
|
3215
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
4239
3216
|
var RadioGroup = ({
|
4240
3217
|
children,
|
4241
3218
|
label,
|
@@ -4244,7 +3221,7 @@ var RadioGroup = ({
|
|
4244
3221
|
errorMessage,
|
4245
3222
|
...props
|
4246
3223
|
}) => {
|
4247
|
-
return /* @__PURE__ */
|
3224
|
+
return /* @__PURE__ */ jsx49(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx49(Box25, { mt: "12px", children: /* @__PURE__ */ jsx49(ChakraRadioGroup, { ...props, children: /* @__PURE__ */ jsx49(Stack3, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
4248
3225
|
};
|
4249
3226
|
RadioGroup.displayName = "RadioGroup";
|
4250
3227
|
RadioGroup.defaultProps = {
|
@@ -4253,365 +3230,23 @@ RadioGroup.defaultProps = {
|
|
4253
3230
|
errorMessage: ""
|
4254
3231
|
};
|
4255
3232
|
|
4256
|
-
//
|
4257
|
-
import { useCallback as useCallback5, useRef as useRef6, useState as useState8, useId as useId2 } from "react";
|
4258
|
-
function isInputEvent2(value) {
|
4259
|
-
return value && isObject(value) && isObject(value.target);
|
4260
|
-
}
|
4261
|
-
function useRadioGroup(props = {}) {
|
4262
|
-
const {
|
4263
|
-
onChange: onChangeProp,
|
4264
|
-
value: valueProp,
|
4265
|
-
defaultValue,
|
4266
|
-
name: nameProp,
|
4267
|
-
isDisabled,
|
4268
|
-
isFocusable,
|
4269
|
-
isNative,
|
4270
|
-
...htmlProps
|
4271
|
-
} = props;
|
4272
|
-
const [valueState, setValue] = useState8(defaultValue || "");
|
4273
|
-
const isControlled = typeof valueProp !== "undefined";
|
4274
|
-
const value = isControlled ? valueProp : valueState;
|
4275
|
-
const ref = useRef6(null);
|
4276
|
-
const focus = useCallback5(() => {
|
4277
|
-
const rootNode = ref.current;
|
4278
|
-
if (!rootNode)
|
4279
|
-
return;
|
4280
|
-
let query = `input:not(:disabled):checked`;
|
4281
|
-
const firstEnabledAndCheckedInput = rootNode.querySelector(
|
4282
|
-
query
|
4283
|
-
);
|
4284
|
-
if (firstEnabledAndCheckedInput) {
|
4285
|
-
firstEnabledAndCheckedInput.focus();
|
4286
|
-
return;
|
4287
|
-
}
|
4288
|
-
query = `input:not(:disabled)`;
|
4289
|
-
const firstEnabledInput = rootNode.querySelector(query);
|
4290
|
-
firstEnabledInput == null ? void 0 : firstEnabledInput.focus();
|
4291
|
-
}, []);
|
4292
|
-
const uuid = useId2();
|
4293
|
-
const fallbackName = `radio-${uuid}`;
|
4294
|
-
const name = nameProp || fallbackName;
|
4295
|
-
const onChange = useCallback5(
|
4296
|
-
(eventOrValue) => {
|
4297
|
-
const nextValue = isInputEvent2(eventOrValue) ? eventOrValue.target.value : eventOrValue;
|
4298
|
-
if (!isControlled) {
|
4299
|
-
setValue(nextValue);
|
4300
|
-
}
|
4301
|
-
onChangeProp == null ? void 0 : onChangeProp(String(nextValue));
|
4302
|
-
},
|
4303
|
-
[onChangeProp, isControlled]
|
4304
|
-
);
|
4305
|
-
const getRootProps = useCallback5(
|
4306
|
-
(props2 = {}, forwardedRef = null) => ({
|
4307
|
-
...props2,
|
4308
|
-
ref: mergeRefs(forwardedRef, ref),
|
4309
|
-
role: "radiogroup"
|
4310
|
-
}),
|
4311
|
-
[]
|
4312
|
-
);
|
4313
|
-
const getRadioProps = useCallback5(
|
4314
|
-
(props2 = {}, ref2 = null) => {
|
4315
|
-
const checkedKey = isNative ? "checked" : "isChecked";
|
4316
|
-
return {
|
4317
|
-
...props2,
|
4318
|
-
ref: ref2,
|
4319
|
-
name,
|
4320
|
-
[checkedKey]: value != null ? props2.value === value : void 0,
|
4321
|
-
onChange(event) {
|
4322
|
-
onChange(event);
|
4323
|
-
},
|
4324
|
-
"data-radiogroup": true
|
4325
|
-
};
|
4326
|
-
},
|
4327
|
-
[isNative, name, onChange, value]
|
4328
|
-
);
|
4329
|
-
return {
|
4330
|
-
getRootProps,
|
4331
|
-
getRadioProps,
|
4332
|
-
name,
|
4333
|
-
ref,
|
4334
|
-
focus,
|
4335
|
-
setValue,
|
4336
|
-
value,
|
4337
|
-
onChange,
|
4338
|
-
isDisabled,
|
4339
|
-
isFocusable,
|
4340
|
-
htmlProps
|
4341
|
-
};
|
4342
|
-
}
|
4343
|
-
|
4344
|
-
// ../../node_modules/@chakra-ui/radio/dist/chunk-QUJ23J4G.mjs
|
3233
|
+
// src/components/radio/index.ts
|
4345
3234
|
import {
|
4346
|
-
|
4347
|
-
|
4348
|
-
|
4349
|
-
|
4350
|
-
|
4351
|
-
|
4352
|
-
|
4353
|
-
|
4354
|
-
});
|
4355
|
-
var RadioGroup2 = forwardRef15((props, ref) => {
|
4356
|
-
const {
|
4357
|
-
colorScheme,
|
4358
|
-
size: size2,
|
4359
|
-
variant,
|
4360
|
-
children,
|
4361
|
-
className,
|
4362
|
-
isDisabled,
|
4363
|
-
isFocusable,
|
4364
|
-
...rest
|
4365
|
-
} = props;
|
4366
|
-
const { value, onChange, getRootProps, name, htmlProps } = useRadioGroup(rest);
|
4367
|
-
const group = useMemo6(
|
4368
|
-
() => ({
|
4369
|
-
name,
|
4370
|
-
size: size2,
|
4371
|
-
onChange,
|
4372
|
-
colorScheme,
|
4373
|
-
value,
|
4374
|
-
variant,
|
4375
|
-
isDisabled,
|
4376
|
-
isFocusable
|
4377
|
-
}),
|
4378
|
-
[
|
4379
|
-
name,
|
4380
|
-
size2,
|
4381
|
-
onChange,
|
4382
|
-
colorScheme,
|
4383
|
-
value,
|
4384
|
-
variant,
|
4385
|
-
isDisabled,
|
4386
|
-
isFocusable
|
4387
|
-
]
|
4388
|
-
);
|
4389
|
-
return /* @__PURE__ */ jsx51(RadioGroupProvider, { value: group, children: /* @__PURE__ */ jsx51(
|
4390
|
-
chakra9.div,
|
4391
|
-
{
|
4392
|
-
...getRootProps(htmlProps, ref),
|
4393
|
-
className: cx("chakra-radio-group", className),
|
4394
|
-
children
|
4395
|
-
}
|
4396
|
-
) });
|
4397
|
-
});
|
4398
|
-
RadioGroup2.displayName = "RadioGroup";
|
4399
|
-
|
4400
|
-
// ../../node_modules/@chakra-ui/radio/dist/chunk-5XCGGO7V.mjs
|
4401
|
-
import { useCallback as useCallback6, useEffect as useEffect7, useState as useState9, useId as useId3 } from "react";
|
4402
|
-
var visuallyHiddenStyle2 = {
|
4403
|
-
border: "0",
|
4404
|
-
clip: "rect(0, 0, 0, 0)",
|
4405
|
-
height: "1px",
|
4406
|
-
width: "1px",
|
4407
|
-
margin: "-1px",
|
4408
|
-
padding: "0",
|
4409
|
-
overflow: "hidden",
|
4410
|
-
whiteSpace: "nowrap",
|
4411
|
-
position: "absolute"
|
4412
|
-
};
|
4413
|
-
function useRadio(props = {}) {
|
4414
|
-
const {
|
4415
|
-
defaultChecked,
|
4416
|
-
isChecked: isCheckedProp,
|
4417
|
-
isFocusable,
|
4418
|
-
isDisabled: isDisabledProp,
|
4419
|
-
isReadOnly: isReadOnlyProp,
|
4420
|
-
isRequired: isRequiredProp,
|
4421
|
-
onChange,
|
4422
|
-
isInvalid: isInvalidProp,
|
4423
|
-
name,
|
4424
|
-
value,
|
4425
|
-
id: idProp,
|
4426
|
-
"data-radiogroup": dataRadioGroup,
|
4427
|
-
"aria-describedby": ariaDescribedBy,
|
4428
|
-
...htmlProps
|
4429
|
-
} = props;
|
4430
|
-
const uuid = `radio-${useId3()}`;
|
4431
|
-
const formControl = useFormControlContext();
|
4432
|
-
const group = useRadioGroupContext();
|
4433
|
-
const isWithinRadioGroup = !!group || !!dataRadioGroup;
|
4434
|
-
const isWithinFormControl = !!formControl;
|
4435
|
-
let id = isWithinFormControl && !isWithinRadioGroup ? formControl.id : uuid;
|
4436
|
-
id = idProp != null ? idProp : id;
|
4437
|
-
const isDisabled = isDisabledProp != null ? isDisabledProp : formControl == null ? void 0 : formControl.isDisabled;
|
4438
|
-
const isReadOnly = isReadOnlyProp != null ? isReadOnlyProp : formControl == null ? void 0 : formControl.isReadOnly;
|
4439
|
-
const isRequired = isRequiredProp != null ? isRequiredProp : formControl == null ? void 0 : formControl.isRequired;
|
4440
|
-
const isInvalid = isInvalidProp != null ? isInvalidProp : formControl == null ? void 0 : formControl.isInvalid;
|
4441
|
-
const [isFocusVisible2, setIsFocusVisible] = useState9(false);
|
4442
|
-
const [isFocused, setFocused] = useState9(false);
|
4443
|
-
const [isHovered, setHovering] = useState9(false);
|
4444
|
-
const [isActive, setActive] = useState9(false);
|
4445
|
-
const [isCheckedState, setChecked] = useState9(Boolean(defaultChecked));
|
4446
|
-
const isControlled = typeof isCheckedProp !== "undefined";
|
4447
|
-
const isChecked = isControlled ? isCheckedProp : isCheckedState;
|
4448
|
-
useEffect7(() => {
|
4449
|
-
return trackFocusVisible(setIsFocusVisible);
|
4450
|
-
}, []);
|
4451
|
-
const handleChange = useCallback6(
|
4452
|
-
(event) => {
|
4453
|
-
if (isReadOnly || isDisabled) {
|
4454
|
-
event.preventDefault();
|
4455
|
-
return;
|
4456
|
-
}
|
4457
|
-
if (!isControlled) {
|
4458
|
-
setChecked(event.target.checked);
|
4459
|
-
}
|
4460
|
-
onChange == null ? void 0 : onChange(event);
|
4461
|
-
},
|
4462
|
-
[isControlled, isDisabled, isReadOnly, onChange]
|
4463
|
-
);
|
4464
|
-
const onKeyDown = useCallback6(
|
4465
|
-
(event) => {
|
4466
|
-
if (event.key === " ") {
|
4467
|
-
setActive(true);
|
4468
|
-
}
|
4469
|
-
},
|
4470
|
-
[setActive]
|
4471
|
-
);
|
4472
|
-
const onKeyUp = useCallback6(
|
4473
|
-
(event) => {
|
4474
|
-
if (event.key === " ") {
|
4475
|
-
setActive(false);
|
4476
|
-
}
|
4477
|
-
},
|
4478
|
-
[setActive]
|
4479
|
-
);
|
4480
|
-
const getRadioProps = useCallback6(
|
4481
|
-
(props2 = {}, ref = null) => ({
|
4482
|
-
...props2,
|
4483
|
-
ref,
|
4484
|
-
"data-active": dataAttr(isActive),
|
4485
|
-
"data-hover": dataAttr(isHovered),
|
4486
|
-
"data-disabled": dataAttr(isDisabled),
|
4487
|
-
"data-invalid": dataAttr(isInvalid),
|
4488
|
-
"data-checked": dataAttr(isChecked),
|
4489
|
-
"data-focus": dataAttr(isFocused),
|
4490
|
-
"data-focus-visible": dataAttr(isFocused && isFocusVisible2),
|
4491
|
-
"data-readonly": dataAttr(isReadOnly),
|
4492
|
-
"aria-hidden": true,
|
4493
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, () => setActive(true)),
|
4494
|
-
onMouseUp: callAllHandlers(props2.onMouseUp, () => setActive(false)),
|
4495
|
-
onMouseEnter: callAllHandlers(
|
4496
|
-
props2.onMouseEnter,
|
4497
|
-
() => setHovering(true)
|
4498
|
-
),
|
4499
|
-
onMouseLeave: callAllHandlers(
|
4500
|
-
props2.onMouseLeave,
|
4501
|
-
() => setHovering(false)
|
4502
|
-
)
|
4503
|
-
}),
|
4504
|
-
[
|
4505
|
-
isActive,
|
4506
|
-
isHovered,
|
4507
|
-
isDisabled,
|
4508
|
-
isInvalid,
|
4509
|
-
isChecked,
|
4510
|
-
isFocused,
|
4511
|
-
isReadOnly,
|
4512
|
-
isFocusVisible2
|
4513
|
-
]
|
4514
|
-
);
|
4515
|
-
const { onFocus, onBlur } = formControl != null ? formControl : {};
|
4516
|
-
const getInputProps = useCallback6(
|
4517
|
-
(props2 = {}, ref = null) => {
|
4518
|
-
const trulyDisabled = isDisabled && !isFocusable;
|
4519
|
-
return {
|
4520
|
-
...props2,
|
4521
|
-
id,
|
4522
|
-
ref,
|
4523
|
-
type: "radio",
|
4524
|
-
name,
|
4525
|
-
value,
|
4526
|
-
onChange: callAllHandlers(props2.onChange, handleChange),
|
4527
|
-
onBlur: callAllHandlers(
|
4528
|
-
onBlur,
|
4529
|
-
props2.onBlur,
|
4530
|
-
() => setFocused(false)
|
4531
|
-
),
|
4532
|
-
onFocus: callAllHandlers(
|
4533
|
-
onFocus,
|
4534
|
-
props2.onFocus,
|
4535
|
-
() => setFocused(true)
|
4536
|
-
),
|
4537
|
-
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),
|
4538
|
-
onKeyUp: callAllHandlers(props2.onKeyUp, onKeyUp),
|
4539
|
-
checked: isChecked,
|
4540
|
-
disabled: trulyDisabled,
|
4541
|
-
readOnly: isReadOnly,
|
4542
|
-
required: isRequired,
|
4543
|
-
"aria-invalid": ariaAttr(isInvalid),
|
4544
|
-
"aria-disabled": ariaAttr(trulyDisabled),
|
4545
|
-
"aria-required": ariaAttr(isRequired),
|
4546
|
-
"data-readonly": dataAttr(isReadOnly),
|
4547
|
-
"aria-describedby": ariaDescribedBy,
|
4548
|
-
style: visuallyHiddenStyle2
|
4549
|
-
};
|
4550
|
-
},
|
4551
|
-
[
|
4552
|
-
isDisabled,
|
4553
|
-
isFocusable,
|
4554
|
-
id,
|
4555
|
-
name,
|
4556
|
-
value,
|
4557
|
-
handleChange,
|
4558
|
-
onBlur,
|
4559
|
-
onFocus,
|
4560
|
-
onKeyDown,
|
4561
|
-
onKeyUp,
|
4562
|
-
isChecked,
|
4563
|
-
isReadOnly,
|
4564
|
-
isRequired,
|
4565
|
-
isInvalid,
|
4566
|
-
ariaDescribedBy
|
4567
|
-
]
|
4568
|
-
);
|
4569
|
-
const getLabelProps = (props2 = {}, ref = null) => ({
|
4570
|
-
...props2,
|
4571
|
-
ref,
|
4572
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, stopEvent2),
|
4573
|
-
"data-disabled": dataAttr(isDisabled),
|
4574
|
-
"data-checked": dataAttr(isChecked),
|
4575
|
-
"data-invalid": dataAttr(isInvalid)
|
4576
|
-
});
|
4577
|
-
const getRootProps = (props2, ref = null) => ({
|
4578
|
-
...props2,
|
4579
|
-
ref,
|
4580
|
-
"data-disabled": dataAttr(isDisabled),
|
4581
|
-
"data-checked": dataAttr(isChecked),
|
4582
|
-
"data-invalid": dataAttr(isInvalid)
|
4583
|
-
});
|
4584
|
-
const state = {
|
4585
|
-
isInvalid,
|
4586
|
-
isFocused,
|
4587
|
-
isChecked,
|
4588
|
-
isActive,
|
4589
|
-
isHovered,
|
4590
|
-
isDisabled,
|
4591
|
-
isReadOnly,
|
4592
|
-
isRequired
|
4593
|
-
};
|
4594
|
-
return {
|
4595
|
-
state,
|
4596
|
-
getCheckboxProps: getRadioProps,
|
4597
|
-
getRadioProps,
|
4598
|
-
getInputProps,
|
4599
|
-
getLabelProps,
|
4600
|
-
getRootProps,
|
4601
|
-
htmlProps
|
4602
|
-
};
|
4603
|
-
}
|
4604
|
-
function stopEvent2(event) {
|
4605
|
-
event.preventDefault();
|
4606
|
-
event.stopPropagation();
|
4607
|
-
}
|
3235
|
+
RadioGroupContext,
|
3236
|
+
useRadio,
|
3237
|
+
useRadioGroup,
|
3238
|
+
useRadioGroupContext,
|
3239
|
+
UseRadioGroupReturn,
|
3240
|
+
UseRadioProps,
|
3241
|
+
UseRadioReturn
|
3242
|
+
} from "@chakra-ui/react";
|
4608
3243
|
|
4609
3244
|
// src/components/rating/components/rating.tsx
|
4610
3245
|
import { Grid as Grid2 } from "@chakra-ui/react";
|
4611
3246
|
import { Rating as RatingIcon } from "@ctlyst.id/internal-icon";
|
4612
|
-
import { jsx as
|
3247
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
4613
3248
|
var Rating = ({ value }) => {
|
4614
|
-
return /* @__PURE__ */
|
3249
|
+
return /* @__PURE__ */ jsx50(Grid2, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx50(RatingIcon, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
4615
3250
|
};
|
4616
3251
|
var rating_default = Rating;
|
4617
3252
|
|
@@ -4620,10 +3255,10 @@ import { useColorMode as useColorMode3 } from "@chakra-ui/system";
|
|
4620
3255
|
import ReactSelect from "react-select";
|
4621
3256
|
|
4622
3257
|
// src/components/select/components/select-wrapper.tsx
|
4623
|
-
import { Box as
|
4624
|
-
import { jsx as
|
3258
|
+
import { Box as Box26 } from "@chakra-ui/react";
|
3259
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
4625
3260
|
var SelectWrapper = ({ children }) => {
|
4626
|
-
return /* @__PURE__ */
|
3261
|
+
return /* @__PURE__ */ jsx51(Box26, { children });
|
4627
3262
|
};
|
4628
3263
|
SelectWrapper.defaultProps = {
|
4629
3264
|
isError: false
|
@@ -4959,14 +3594,14 @@ var themeSelect = (theme6) => {
|
|
4959
3594
|
};
|
4960
3595
|
|
4961
3596
|
// src/components/select/components/select.tsx
|
4962
|
-
import { jsx as
|
3597
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
4963
3598
|
function Select2({
|
4964
3599
|
styles,
|
4965
3600
|
isError = false,
|
4966
3601
|
...rest
|
4967
3602
|
}) {
|
4968
3603
|
const { colorMode } = useColorMode3();
|
4969
|
-
return /* @__PURE__ */
|
3604
|
+
return /* @__PURE__ */ jsx52(select_wrapper_default, { isError, children: /* @__PURE__ */ jsx52(
|
4970
3605
|
ReactSelect,
|
4971
3606
|
{
|
4972
3607
|
classNamePrefix: "react-select",
|
@@ -4981,14 +3616,14 @@ var select_default = Select2;
|
|
4981
3616
|
// src/components/select/components/select-async.tsx
|
4982
3617
|
import { useColorMode as useColorMode4 } from "@chakra-ui/system";
|
4983
3618
|
import { AsyncPaginate } from "react-select-async-paginate";
|
4984
|
-
import { jsx as
|
3619
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
4985
3620
|
function SelectAsync({
|
4986
3621
|
styles,
|
4987
3622
|
isError = false,
|
4988
3623
|
...rest
|
4989
3624
|
}) {
|
4990
3625
|
const { colorMode } = useColorMode4();
|
4991
|
-
return /* @__PURE__ */
|
3626
|
+
return /* @__PURE__ */ jsx53(select_wrapper_default, { isError, children: /* @__PURE__ */ jsx53(
|
4992
3627
|
AsyncPaginate,
|
4993
3628
|
{
|
4994
3629
|
classNamePrefix: "react-select",
|
@@ -5003,10 +3638,10 @@ var select_async_default = SelectAsync;
|
|
5003
3638
|
// src/components/select/components/select-async-creatable.tsx
|
5004
3639
|
import { useColorMode as useColorMode5 } from "@chakra-ui/system";
|
5005
3640
|
import ReactSelectAsyncCreatable from "react-select/async-creatable";
|
5006
|
-
import { jsx as
|
3641
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
5007
3642
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
5008
3643
|
const { colorMode } = useColorMode5();
|
5009
|
-
return /* @__PURE__ */
|
3644
|
+
return /* @__PURE__ */ jsx54(select_wrapper_default, { isError, children: /* @__PURE__ */ jsx54(
|
5010
3645
|
ReactSelectAsyncCreatable,
|
5011
3646
|
{
|
5012
3647
|
classNamePrefix: "react-select",
|
@@ -5020,10 +3655,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
5020
3655
|
// src/components/select/components/select-creatable.tsx
|
5021
3656
|
import { useColorMode as useColorMode6 } from "@chakra-ui/system";
|
5022
3657
|
import ReactSelectCreatable from "react-select/creatable";
|
5023
|
-
import { jsx as
|
3658
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
5024
3659
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
5025
3660
|
const { colorMode } = useColorMode6();
|
5026
|
-
return /* @__PURE__ */
|
3661
|
+
return /* @__PURE__ */ jsx55(select_wrapper_default, { isError, children: /* @__PURE__ */ jsx55(
|
5027
3662
|
ReactSelectCreatable,
|
5028
3663
|
{
|
5029
3664
|
classNamePrefix: "react-select",
|
@@ -5035,15 +3670,16 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
5035
3670
|
}
|
5036
3671
|
|
5037
3672
|
// src/components/switch/components/switch.tsx
|
5038
|
-
import { chakra as
|
3673
|
+
import { chakra as chakra6, Flex as Flex8, forwardRef as forwardRef13, omitThemingProps as omitThemingProps2, useCheckbox as useCheckbox2, useMultiStyleConfig as useMultiStyleConfig2 } from "@chakra-ui/react";
|
3674
|
+
import { cx as cx9, dataAttr } from "@chakra-ui/shared-utils";
|
5039
3675
|
import { Check, Close as Close4 } from "@ctlyst.id/internal-icon";
|
5040
|
-
import { useMemo as
|
5041
|
-
import { jsx as
|
5042
|
-
var Switch =
|
5043
|
-
const styles =
|
5044
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } =
|
3676
|
+
import { useMemo as useMemo4 } from "react";
|
3677
|
+
import { jsx as jsx56, jsxs as jsxs23 } from "react/jsx-runtime";
|
3678
|
+
var Switch = forwardRef13(function Switch2(props, ref) {
|
3679
|
+
const styles = useMultiStyleConfig2("Switch", props);
|
3680
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = omitThemingProps2(props);
|
5045
3681
|
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = useCheckbox2(ownProps);
|
5046
|
-
const containerStyles =
|
3682
|
+
const containerStyles = useMemo4(
|
5047
3683
|
() => ({
|
5048
3684
|
display: "inline-block",
|
5049
3685
|
position: "relative",
|
@@ -5053,7 +3689,7 @@ var Switch = forwardRef16(function Switch2(props, ref) {
|
|
5053
3689
|
}),
|
5054
3690
|
[styles.container]
|
5055
3691
|
);
|
5056
|
-
const trackStyles =
|
3692
|
+
const trackStyles = useMemo4(
|
5057
3693
|
() => ({
|
5058
3694
|
display: "inline-flex",
|
5059
3695
|
flexShrink: 0,
|
@@ -5065,7 +3701,7 @@ var Switch = forwardRef16(function Switch2(props, ref) {
|
|
5065
3701
|
}),
|
5066
3702
|
[styles.track]
|
5067
3703
|
);
|
5068
|
-
const labelStyles =
|
3704
|
+
const labelStyles = useMemo4(
|
5069
3705
|
() => ({
|
5070
3706
|
userSelect: "none",
|
5071
3707
|
marginStart: spacing2,
|
@@ -5082,22 +3718,22 @@ var Switch = forwardRef16(function Switch2(props, ref) {
|
|
5082
3718
|
return iconSize[value];
|
5083
3719
|
};
|
5084
3720
|
return /* @__PURE__ */ jsxs23(
|
5085
|
-
|
3721
|
+
chakra6.label,
|
5086
3722
|
{
|
5087
3723
|
...getRootProps(),
|
5088
3724
|
display: "flex",
|
5089
3725
|
alignItems: "center",
|
5090
|
-
className:
|
3726
|
+
className: cx9("chakra-switch", props.className),
|
5091
3727
|
__css: containerStyles,
|
5092
3728
|
children: [
|
5093
|
-
/* @__PURE__ */
|
5094
|
-
/* @__PURE__ */ jsxs23(
|
3729
|
+
/* @__PURE__ */ jsx56("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3730
|
+
/* @__PURE__ */ jsxs23(chakra6.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
5095
3731
|
/* @__PURE__ */ jsxs23(Flex8, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
5096
|
-
/* @__PURE__ */
|
5097
|
-
/* @__PURE__ */
|
3732
|
+
/* @__PURE__ */ jsx56(Check, { color: "white", size: getIconSize(props.size) }),
|
3733
|
+
/* @__PURE__ */ jsx56(Close4, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
5098
3734
|
] }),
|
5099
|
-
/* @__PURE__ */
|
5100
|
-
|
3735
|
+
/* @__PURE__ */ jsx56(
|
3736
|
+
chakra6.span,
|
5101
3737
|
{
|
5102
3738
|
__css: styles.thumb,
|
5103
3739
|
className: "chakra-switch__thumb",
|
@@ -5106,8 +3742,8 @@ var Switch = forwardRef16(function Switch2(props, ref) {
|
|
5106
3742
|
}
|
5107
3743
|
)
|
5108
3744
|
] }),
|
5109
|
-
children && /* @__PURE__ */
|
5110
|
-
|
3745
|
+
children && /* @__PURE__ */ jsx56(
|
3746
|
+
chakra6.span,
|
5111
3747
|
{
|
5112
3748
|
className: "chakra-switch__label",
|
5113
3749
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -5142,14 +3778,14 @@ import {
|
|
5142
3778
|
} from "@chakra-ui/react";
|
5143
3779
|
|
5144
3780
|
// src/components/tabs/components/tab.tsx
|
5145
|
-
import { Button as Button4, Flex as Flex9, forwardRef as
|
5146
|
-
import { jsx as
|
5147
|
-
var Tab =
|
3781
|
+
import { Button as Button4, Flex as Flex9, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
|
3782
|
+
import { jsx as jsx57, jsxs as jsxs24 } from "react/jsx-runtime";
|
3783
|
+
var Tab = forwardRef14((props, ref) => {
|
5148
3784
|
var _a, _b;
|
5149
3785
|
const tabProps = useTab({ ...props, ref });
|
5150
3786
|
const isSelected = !!tabProps["aria-selected"];
|
5151
|
-
const styles =
|
5152
|
-
return /* @__PURE__ */
|
3787
|
+
const styles = useMultiStyleConfig3("Tabs", tabProps);
|
3788
|
+
return /* @__PURE__ */ jsx57(
|
5153
3789
|
Button4,
|
5154
3790
|
{
|
5155
3791
|
"data-test-id": props["data-test-id"],
|
@@ -5221,7 +3857,7 @@ import {
|
|
5221
3857
|
} from "@chakra-ui/react";
|
5222
3858
|
|
5223
3859
|
// src/components/text/index.ts
|
5224
|
-
import { Code, CodeProps, Heading, HeadingProps, Link as
|
3860
|
+
import { Code, CodeProps, Heading, HeadingProps, Link as Link4, LinkProps, Text as Text14, TextProps } from "@chakra-ui/react";
|
5225
3861
|
|
5226
3862
|
// src/components/tooltip/index.ts
|
5227
3863
|
import { Tooltip, TooltipProps } from "@chakra-ui/react";
|
@@ -5241,7 +3877,7 @@ var messages = {
|
|
5241
3877
|
};
|
5242
3878
|
|
5243
3879
|
// src/components/uploader/components/uploader.tsx
|
5244
|
-
import { jsx as
|
3880
|
+
import { jsx as jsx58, jsxs as jsxs25 } from "react/jsx-runtime";
|
5245
3881
|
var Uploader = ({
|
5246
3882
|
onHandleUploadFile,
|
5247
3883
|
onHandleRejections,
|
@@ -5302,11 +3938,11 @@ var Uploader = ({
|
|
5302
3938
|
...props,
|
5303
3939
|
...getRootProps(),
|
5304
3940
|
children: [
|
5305
|
-
/* @__PURE__ */
|
5306
|
-
isDragActive ? /* @__PURE__ */
|
5307
|
-
!multiple && isSelected && /* @__PURE__ */
|
5308
|
-
!isSelected && /* @__PURE__ */
|
5309
|
-
isSelected ? /* @__PURE__ */
|
3941
|
+
/* @__PURE__ */ jsx58("input", { ...getInputProps() }),
|
3942
|
+
isDragActive ? /* @__PURE__ */ jsx58(Text15, { children: messages.dragActive }) : /* @__PURE__ */ jsxs25(Flex10, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
3943
|
+
!multiple && isSelected && /* @__PURE__ */ jsx58(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
3944
|
+
!isSelected && /* @__PURE__ */ jsx58(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
3945
|
+
isSelected ? /* @__PURE__ */ jsx58(Text15, { children: messages.dragReplace }) : /* @__PURE__ */ jsx58(Text15, { children: messages.dragInActive })
|
5310
3946
|
] })
|
5311
3947
|
]
|
5312
3948
|
}
|
@@ -5357,14 +3993,11 @@ import {
|
|
5357
3993
|
StepTitle,
|
5358
3994
|
useBreakpoint,
|
5359
3995
|
UseBreakpointOptions,
|
5360
|
-
useBreakpointValue,
|
5361
3996
|
useColorModePreference,
|
5362
3997
|
useImage,
|
5363
3998
|
UseImageProps,
|
5364
3999
|
UseImageReturn,
|
5365
|
-
useMediaQuery,
|
5366
4000
|
UseMediaQueryOptions,
|
5367
|
-
usePrefersReducedMotion,
|
5368
4001
|
useQuery,
|
5369
4002
|
UseQueryProps,
|
5370
4003
|
useSteps,
|
@@ -5388,12 +4021,13 @@ __export(components_exports, {
|
|
5388
4021
|
FormLabel: () => form_label_default,
|
5389
4022
|
Input: () => input_default,
|
5390
4023
|
LoaderStyle: () => loader_default2,
|
5391
|
-
|
4024
|
+
Modal: () => modal_default,
|
5392
4025
|
Radio: () => radio_default,
|
5393
4026
|
Switch: () => switch_default2,
|
5394
4027
|
Table: () => table_default,
|
5395
4028
|
Tabs: () => tabs_default,
|
5396
|
-
Textarea: () => textarea_default2
|
4029
|
+
Textarea: () => textarea_default2,
|
4030
|
+
Tooltip: () => tooltip_default
|
5397
4031
|
});
|
5398
4032
|
|
5399
4033
|
// src/config/theme/components/accordion.ts
|
@@ -5414,7 +4048,12 @@ var baseStyleButton = defineStyle2({
|
|
5414
4048
|
bg: "neutral.100"
|
5415
4049
|
},
|
5416
4050
|
_hover: {
|
5417
|
-
bg: "neutral.100"
|
4051
|
+
bg: "neutral.100",
|
4052
|
+
".eye-icon": {
|
4053
|
+
display: "block",
|
4054
|
+
opacity: 1,
|
4055
|
+
visibility: "visible"
|
4056
|
+
}
|
5418
4057
|
},
|
5419
4058
|
_disabled: {
|
5420
4059
|
opacity: 0.4,
|
@@ -5422,7 +4061,10 @@ var baseStyleButton = defineStyle2({
|
|
5422
4061
|
},
|
5423
4062
|
py: 2,
|
5424
4063
|
px: 4,
|
5425
|
-
position: "relative"
|
4064
|
+
position: "relative",
|
4065
|
+
".eye-icon": {
|
4066
|
+
visibility: "hidden"
|
4067
|
+
}
|
5426
4068
|
});
|
5427
4069
|
var baseStylePanel = defineStyle2({
|
5428
4070
|
pt: "2",
|
@@ -6276,25 +4918,25 @@ var LoaderStyle = defineStyleConfig5({
|
|
6276
4918
|
});
|
6277
4919
|
var loader_default2 = LoaderStyle;
|
6278
4920
|
|
6279
|
-
// src/config/theme/components/
|
6280
|
-
import {
|
6281
|
-
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
|
6287
|
-
|
6288
|
-
|
6289
|
-
}
|
6290
|
-
};
|
6291
|
-
var
|
4921
|
+
// src/config/theme/components/modal.ts
|
4922
|
+
import { defineStyleConfig as defineStyleConfig6 } from "@chakra-ui/styled-system";
|
4923
|
+
var Modal3 = defineStyleConfig6({
|
4924
|
+
sizes: {
|
4925
|
+
sm: { dialog: { minW: 400 } },
|
4926
|
+
md: { dialog: { minW: 600 } },
|
4927
|
+
lg: { dialog: { minW: 800 } }
|
4928
|
+
},
|
4929
|
+
defaultProps: {
|
4930
|
+
size: "md"
|
4931
|
+
}
|
4932
|
+
});
|
4933
|
+
var modal_default = Modal3;
|
6292
4934
|
|
6293
4935
|
// src/config/theme/components/radio.ts
|
6294
4936
|
import { radioAnatomy } from "@chakra-ui/anatomy";
|
6295
|
-
import { createMultiStyleConfigHelpers as
|
6296
|
-
var { definePartsStyle:
|
6297
|
-
var baseStyle6 =
|
4937
|
+
import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers5 } from "@chakra-ui/react";
|
4938
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = createMultiStyleConfigHelpers5(radioAnatomy.keys);
|
4939
|
+
var baseStyle6 = definePartsStyle5({
|
6298
4940
|
control: {
|
6299
4941
|
border: "1px solid",
|
6300
4942
|
width: "16px",
|
@@ -6310,7 +4952,7 @@ var baseStyle6 = definePartsStyle6({
|
|
6310
4952
|
}
|
6311
4953
|
}
|
6312
4954
|
});
|
6313
|
-
var errors2 =
|
4955
|
+
var errors2 = definePartsStyle5({
|
6314
4956
|
control: {
|
6315
4957
|
borderColor: "danger.500",
|
6316
4958
|
_checked: {
|
@@ -6345,7 +4987,7 @@ var errors2 = definePartsStyle6({
|
|
6345
4987
|
fontSize: "12px"
|
6346
4988
|
}
|
6347
4989
|
});
|
6348
|
-
var unstyled3 =
|
4990
|
+
var unstyled3 = definePartsStyle5({
|
6349
4991
|
control: {
|
6350
4992
|
borderColor: "neutral.600",
|
6351
4993
|
_checked: {
|
@@ -6394,10 +5036,10 @@ var Radio2 = defineMultiStyleConfig5({
|
|
6394
5036
|
var radio_default = Radio2;
|
6395
5037
|
|
6396
5038
|
// src/config/theme/components/switch.ts
|
6397
|
-
import { switchAnatomy as
|
6398
|
-
import { createMultiStyleConfigHelpers as
|
5039
|
+
import { switchAnatomy as parts4 } from "@chakra-ui/anatomy";
|
5040
|
+
import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
|
6399
5041
|
import { calc, cssVar as cssVar2 } from "@chakra-ui/theme-tools";
|
6400
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle:
|
5042
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = createMultiStyleConfigHelpers6(parts4.keys);
|
6401
5043
|
var $width = cssVar2("switch-track-width");
|
6402
5044
|
var $height = cssVar2("switch-track-height");
|
6403
5045
|
var $diff = cssVar2("switch-track-diff");
|
@@ -6414,7 +5056,7 @@ var baseStyleThumb = defineStyle5({
|
|
6414
5056
|
transform: `translateX(${$translateX.reference})`
|
6415
5057
|
}
|
6416
5058
|
});
|
6417
|
-
var baseStyle7 =
|
5059
|
+
var baseStyle7 = definePartsStyle6(() => ({
|
6418
5060
|
container: {
|
6419
5061
|
[$diff.variable]: diffValue,
|
6420
5062
|
[$translateX.variable]: $diff.reference,
|
@@ -6439,7 +5081,7 @@ var baseStyle7 = definePartsStyle7(() => ({
|
|
6439
5081
|
thumb: baseStyleThumb
|
6440
5082
|
}));
|
6441
5083
|
var sizes3 = {
|
6442
|
-
sm:
|
5084
|
+
sm: definePartsStyle6({
|
6443
5085
|
container: {
|
6444
5086
|
[$width.variable]: "1.875rem",
|
6445
5087
|
[$height.variable]: "0.75rem"
|
@@ -6449,7 +5091,7 @@ var sizes3 = {
|
|
6449
5091
|
[$height.variable]: "0.75rem"
|
6450
5092
|
}
|
6451
5093
|
}),
|
6452
|
-
md:
|
5094
|
+
md: definePartsStyle6({
|
6453
5095
|
container: {
|
6454
5096
|
[$width.variable]: "2.375rem",
|
6455
5097
|
[$height.variable]: "1rem"
|
@@ -6459,7 +5101,7 @@ var sizes3 = {
|
|
6459
5101
|
[$height.variable]: "1rem"
|
6460
5102
|
}
|
6461
5103
|
}),
|
6462
|
-
lg:
|
5104
|
+
lg: definePartsStyle6({
|
6463
5105
|
container: {
|
6464
5106
|
[$width.variable]: "3.25rem",
|
6465
5107
|
[$height.variable]: "1.375rem"
|
@@ -6480,11 +5122,11 @@ var Switch3 = defineMultiStyleConfig6({
|
|
6480
5122
|
var switch_default2 = Switch3;
|
6481
5123
|
|
6482
5124
|
// src/config/theme/components/table.ts
|
6483
|
-
import { tableAnatomy as
|
6484
|
-
import { createMultiStyleConfigHelpers as
|
6485
|
-
import { mode as
|
6486
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle:
|
6487
|
-
var baseStyle8 =
|
5125
|
+
import { tableAnatomy as parts5 } from "@chakra-ui/anatomy";
|
5126
|
+
import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle6 } from "@chakra-ui/styled-system";
|
5127
|
+
import { mode as mode2 } from "@chakra-ui/theme-tools";
|
5128
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
|
5129
|
+
var baseStyle8 = definePartsStyle7({
|
6488
5130
|
table: {
|
6489
5131
|
fontVariantNumeric: "lining-nums tabular-nums",
|
6490
5132
|
borderCollapse: "collapse",
|
@@ -6498,7 +5140,7 @@ var baseStyle8 = definePartsStyle8({
|
|
6498
5140
|
letterSpacing: "normal",
|
6499
5141
|
textAlign: "start",
|
6500
5142
|
height: "50px",
|
6501
|
-
color:
|
5143
|
+
color: mode2("neutral.900", "white"),
|
6502
5144
|
fontSize: "text.sm",
|
6503
5145
|
lineHeight: "18px",
|
6504
5146
|
backgroundColor: "neutral.50",
|
@@ -6546,22 +5188,22 @@ var numericStyles = defineStyle6({
|
|
6546
5188
|
textAlign: "end"
|
6547
5189
|
}
|
6548
5190
|
});
|
6549
|
-
var variantSimple =
|
5191
|
+
var variantSimple = definePartsStyle7((props) => {
|
6550
5192
|
const { colorScheme: c } = props;
|
6551
5193
|
return {
|
6552
5194
|
th: {
|
6553
|
-
color:
|
5195
|
+
color: mode2("gray.600", "gray.400")(props),
|
6554
5196
|
borderBottom: "1px",
|
6555
|
-
borderColor:
|
5197
|
+
borderColor: mode2(`${c}.100`, `${c}.700`)(props),
|
6556
5198
|
...numericStyles
|
6557
5199
|
},
|
6558
5200
|
td: {
|
6559
5201
|
borderBottom: "1px",
|
6560
|
-
borderColor:
|
5202
|
+
borderColor: mode2(`${c}.100`, `${c}.700`)(props),
|
6561
5203
|
...numericStyles
|
6562
5204
|
},
|
6563
5205
|
caption: {
|
6564
|
-
color:
|
5206
|
+
color: mode2("gray.600", "gray.100")(props)
|
6565
5207
|
},
|
6566
5208
|
tfoot: {
|
6567
5209
|
tr: {
|
@@ -6572,32 +5214,32 @@ var variantSimple = definePartsStyle8((props) => {
|
|
6572
5214
|
}
|
6573
5215
|
};
|
6574
5216
|
});
|
6575
|
-
var variantStripe =
|
5217
|
+
var variantStripe = definePartsStyle7((props) => {
|
6576
5218
|
const { colorScheme: c } = props;
|
6577
5219
|
return {
|
6578
5220
|
th: {
|
6579
|
-
color:
|
5221
|
+
color: mode2("gray.600", "gray.400")(props),
|
6580
5222
|
borderBottom: "1px",
|
6581
|
-
borderColor:
|
5223
|
+
borderColor: mode2(`${c}.100`, `${c}.700`)(props),
|
6582
5224
|
...numericStyles
|
6583
5225
|
},
|
6584
5226
|
td: {
|
6585
5227
|
borderBottom: "1px",
|
6586
|
-
borderColor:
|
5228
|
+
borderColor: mode2(`${c}.100`, `${c}.700`)(props),
|
6587
5229
|
...numericStyles
|
6588
5230
|
},
|
6589
5231
|
caption: {
|
6590
|
-
color:
|
5232
|
+
color: mode2("gray.600", "gray.100")(props)
|
6591
5233
|
},
|
6592
5234
|
tbody: {
|
6593
5235
|
tr: {
|
6594
5236
|
"&:nth-of-type(odd)": {
|
6595
5237
|
"th, td": {
|
6596
5238
|
borderBottomWidth: "1px",
|
6597
|
-
borderColor:
|
5239
|
+
borderColor: mode2(`${c}.100`, `${c}.700`)(props)
|
6598
5240
|
},
|
6599
5241
|
td: {
|
6600
|
-
background:
|
5242
|
+
background: mode2(`${c}.100`, `${c}.700`)(props)
|
6601
5243
|
}
|
6602
5244
|
}
|
6603
5245
|
}
|
@@ -6617,7 +5259,7 @@ var variants5 = {
|
|
6617
5259
|
unstyled: defineStyle6({})
|
6618
5260
|
};
|
6619
5261
|
var sizes4 = {
|
6620
|
-
sm:
|
5262
|
+
sm: definePartsStyle7({
|
6621
5263
|
th: {
|
6622
5264
|
px: "2",
|
6623
5265
|
py: "4",
|
@@ -6636,7 +5278,7 @@ var sizes4 = {
|
|
6636
5278
|
fontSize: "xs"
|
6637
5279
|
}
|
6638
5280
|
}),
|
6639
|
-
md:
|
5281
|
+
md: definePartsStyle7({
|
6640
5282
|
th: {
|
6641
5283
|
px: "2",
|
6642
5284
|
py: "4",
|
@@ -6654,7 +5296,7 @@ var sizes4 = {
|
|
6654
5296
|
fontSize: "sm"
|
6655
5297
|
}
|
6656
5298
|
}),
|
6657
|
-
lg:
|
5299
|
+
lg: definePartsStyle7({
|
6658
5300
|
th: {
|
6659
5301
|
px: "2",
|
6660
5302
|
py: "4",
|
@@ -6686,10 +5328,10 @@ var tableTheme = defineMultiStyleConfig7({
|
|
6686
5328
|
var table_default = tableTheme;
|
6687
5329
|
|
6688
5330
|
// src/config/theme/components/tabs.ts
|
6689
|
-
import { tabsAnatomy as
|
6690
|
-
import { createMultiStyleConfigHelpers as
|
6691
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle:
|
6692
|
-
var variantLine =
|
5331
|
+
import { tabsAnatomy as parts6 } from "@chakra-ui/anatomy";
|
5332
|
+
import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers8 } from "@chakra-ui/styled-system";
|
5333
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = createMultiStyleConfigHelpers8(parts6.keys);
|
5334
|
+
var variantLine = definePartsStyle8((props) => {
|
6693
5335
|
const { orientation } = props;
|
6694
5336
|
const isVertical = orientation === "vertical";
|
6695
5337
|
const borderProp = isVertical ? "borderStart" : "borderBottom";
|
@@ -6706,7 +5348,7 @@ var variantLine = definePartsStyle9((props) => {
|
|
6706
5348
|
}
|
6707
5349
|
};
|
6708
5350
|
});
|
6709
|
-
var variantUnstyled =
|
5351
|
+
var variantUnstyled = definePartsStyle8({});
|
6710
5352
|
var variants6 = {
|
6711
5353
|
line: variantLine,
|
6712
5354
|
unstyled: variantUnstyled
|
@@ -6721,7 +5363,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
6721
5363
|
var tabs_default = tabsTheme;
|
6722
5364
|
|
6723
5365
|
// src/config/theme/components/textarea.ts
|
6724
|
-
import { defineStyle as defineStyle7, defineStyleConfig as
|
5366
|
+
import { defineStyle as defineStyle7, defineStyleConfig as defineStyleConfig7 } from "@chakra-ui/react";
|
6725
5367
|
var getProps = (props) => {
|
6726
5368
|
const { isError, isSuccess, isDisabled } = props;
|
6727
5369
|
let borderColor = "neutral.400";
|
@@ -6785,7 +5427,7 @@ var outline2 = defineStyle7((props) => {
|
|
6785
5427
|
}
|
6786
5428
|
};
|
6787
5429
|
});
|
6788
|
-
var Textarea =
|
5430
|
+
var Textarea = defineStyleConfig7({
|
6789
5431
|
variants: { outline: outline2 },
|
6790
5432
|
defaultProps: {
|
6791
5433
|
variant: "outline"
|
@@ -6793,6 +5435,17 @@ var Textarea = defineStyleConfig6({
|
|
6793
5435
|
});
|
6794
5436
|
var textarea_default2 = Textarea;
|
6795
5437
|
|
5438
|
+
// src/config/theme/components/tooltip.ts
|
5439
|
+
import { cssVar as cssVar3, defineStyleConfig as defineStyleConfig8 } from "@chakra-ui/react";
|
5440
|
+
var $arrowBg = cssVar3("popper-arrow-bg");
|
5441
|
+
var baseStyle9 = {
|
5442
|
+
bg: "neutral.700",
|
5443
|
+
fontSize: "text.sm",
|
5444
|
+
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5445
|
+
};
|
5446
|
+
var Tooltip2 = defineStyleConfig8({ baseStyle: baseStyle9 });
|
5447
|
+
var tooltip_default = Tooltip2;
|
5448
|
+
|
6796
5449
|
// src/config/theme/themeConfiguration.ts
|
6797
5450
|
import { ThemeTypings } from "@chakra-ui/styled-system";
|
6798
5451
|
var config = {
|
@@ -6836,13 +5489,13 @@ var theme5 = extendTheme({
|
|
6836
5489
|
|
6837
5490
|
// src/hooks/useFetcher.ts
|
6838
5491
|
import axios2 from "axios";
|
6839
|
-
import { useMemo as
|
5492
|
+
import { useMemo as useMemo7 } from "react";
|
6840
5493
|
|
6841
5494
|
// src/provider/components/provider.tsx
|
6842
5495
|
import axios from "axios";
|
6843
|
-
import { createContext as createContext2, useContext, useEffect as
|
5496
|
+
import { createContext as createContext2, useContext, useEffect as useEffect3, useMemo as useMemo6, useRef as useRef2 } from "react";
|
6844
5497
|
import { ToastContainer } from "react-toastify";
|
6845
|
-
import { jsx as
|
5498
|
+
import { jsx as jsx59, jsxs as jsxs26 } from "react/jsx-runtime";
|
6846
5499
|
var ProviderContext = createContext2({
|
6847
5500
|
instance: void 0
|
6848
5501
|
});
|
@@ -6851,8 +5504,8 @@ var useInternalUI = () => {
|
|
6851
5504
|
return { instance };
|
6852
5505
|
};
|
6853
5506
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
6854
|
-
const instanceRef =
|
6855
|
-
|
5507
|
+
const instanceRef = useRef2(axios.create(config2));
|
5508
|
+
useEffect3(() => {
|
6856
5509
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
6857
5510
|
instanceRef.current.interceptors.request.use(interceptor);
|
6858
5511
|
});
|
@@ -6860,9 +5513,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
6860
5513
|
instanceRef.current.interceptors.response.use(interceptor);
|
6861
5514
|
});
|
6862
5515
|
}, [requestInterceptors, responseInterceptors]);
|
6863
|
-
const provider =
|
5516
|
+
const provider = useMemo6(() => ({ instance: instanceRef.current }), []);
|
6864
5517
|
return /* @__PURE__ */ jsxs26(ProviderContext.Provider, { value: provider, children: [
|
6865
|
-
/* @__PURE__ */
|
5518
|
+
/* @__PURE__ */ jsx59(ToastContainer, {}),
|
6866
5519
|
children
|
6867
5520
|
] });
|
6868
5521
|
};
|
@@ -6881,7 +5534,7 @@ import {
|
|
6881
5534
|
// src/hooks/useFetcher.ts
|
6882
5535
|
function useFetcher() {
|
6883
5536
|
const { instance } = useInternalUI();
|
6884
|
-
const axiosInstance =
|
5537
|
+
const axiosInstance = useMemo7(() => instance || axios2, [instance]);
|
6885
5538
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
6886
5539
|
const response = await axiosInstance.request({
|
6887
5540
|
data,
|
@@ -6908,7 +5561,7 @@ import {
|
|
6908
5561
|
useColorModeValue as useColorModeValue12,
|
6909
5562
|
useConst,
|
6910
5563
|
useControllableProp,
|
6911
|
-
useControllableState
|
5564
|
+
useControllableState,
|
6912
5565
|
useDimensions,
|
6913
5566
|
useDisclosure as useDisclosure2,
|
6914
5567
|
UseDisclosureProps,
|
@@ -6919,11 +5572,12 @@ import {
|
|
6919
5572
|
} from "@chakra-ui/react";
|
6920
5573
|
|
6921
5574
|
// src/index.ts
|
6922
|
-
import { extendTheme as extendTheme2, forwardRef as
|
5575
|
+
import { extendTheme as extendTheme2, forwardRef as forwardRef15 } from "@chakra-ui/react";
|
6923
5576
|
export {
|
6924
5577
|
Accordion,
|
6925
5578
|
AccordionButton,
|
6926
5579
|
AccordionButtonProps,
|
5580
|
+
AccordionEye,
|
6927
5581
|
AccordionIcon,
|
6928
5582
|
AccordionIconProps,
|
6929
5583
|
AccordionIndicator,
|
@@ -6955,7 +5609,7 @@ export {
|
|
6955
5609
|
AvatarGroupProps,
|
6956
5610
|
AvatarProps,
|
6957
5611
|
badge_default as Badge,
|
6958
|
-
|
5612
|
+
Box19 as Box,
|
6959
5613
|
BoxProps,
|
6960
5614
|
bread_crumb_default as BreadCrumb,
|
6961
5615
|
button_default as Button,
|
@@ -6968,7 +5622,11 @@ export {
|
|
6968
5622
|
Table2 as ChakraTable,
|
6969
5623
|
checkbox_default as Checkbox,
|
6970
5624
|
checkbox_group_default as CheckboxGroup,
|
5625
|
+
CheckboxGroupContext,
|
5626
|
+
CheckboxGroupProps,
|
6971
5627
|
CheckboxIcon,
|
5628
|
+
CheckboxIconProps,
|
5629
|
+
CheckboxState,
|
6972
5630
|
chips_default as Chips,
|
6973
5631
|
CloseButton,
|
6974
5632
|
CloseButtonProps,
|
@@ -7002,10 +5660,10 @@ export {
|
|
7002
5660
|
field_default as Field,
|
7003
5661
|
Flex5 as Flex,
|
7004
5662
|
FlexProps,
|
7005
|
-
|
5663
|
+
FormControl2 as FormControl,
|
7006
5664
|
FormControlProps,
|
7007
5665
|
FormErrorMessage2 as FormErrorMessage,
|
7008
|
-
|
5666
|
+
FormHelperText2 as FormHelperText,
|
7009
5667
|
FormLabel2 as FormLabel,
|
7010
5668
|
FormLabelProps,
|
7011
5669
|
Grid,
|
@@ -7042,7 +5700,7 @@ export {
|
|
7042
5700
|
InputRightAddonProps,
|
7043
5701
|
InputRightElement2 as InputRightElement,
|
7044
5702
|
InputRightElementProps,
|
7045
|
-
|
5703
|
+
Link4 as Link,
|
7046
5704
|
LinkProps,
|
7047
5705
|
List,
|
7048
5706
|
ListIcon,
|
@@ -7052,6 +5710,7 @@ export {
|
|
7052
5710
|
loader_default as Loader,
|
7053
5711
|
navigation_default as MainMenu,
|
7054
5712
|
Modal2 as Modal,
|
5713
|
+
modal_back_button_default as ModalBackButton,
|
7055
5714
|
modal_body_default as ModalBody,
|
7056
5715
|
ModalBodyProps,
|
7057
5716
|
modal_close_button_default as ModalCloseButton,
|
@@ -7093,6 +5752,7 @@ export {
|
|
7093
5752
|
ProviderContext,
|
7094
5753
|
Radio,
|
7095
5754
|
RadioGroup,
|
5755
|
+
RadioGroupContext,
|
7096
5756
|
rating_default as Rating,
|
7097
5757
|
RequiredIndicator,
|
7098
5758
|
RequiredIndicatorProps,
|
@@ -7161,6 +5821,10 @@ export {
|
|
7161
5821
|
UseAccordionProps,
|
7162
5822
|
UseAccordionReturn,
|
7163
5823
|
UseBreakpointOptions,
|
5824
|
+
UseCheckboxGroupProps,
|
5825
|
+
UseCheckboxGroupReturn,
|
5826
|
+
UseCheckboxProps,
|
5827
|
+
UseCheckboxReturn,
|
7164
5828
|
UseDisclosureProps,
|
7165
5829
|
UseImageProps,
|
7166
5830
|
UseImageReturn,
|
@@ -7168,6 +5832,9 @@ export {
|
|
7168
5832
|
UseModalProps,
|
7169
5833
|
UseModalReturn,
|
7170
5834
|
UseQueryProps,
|
5835
|
+
UseRadioGroupReturn,
|
5836
|
+
UseRadioProps,
|
5837
|
+
UseRadioReturn,
|
7171
5838
|
UseTabListProps,
|
7172
5839
|
UseTabListReturn,
|
7173
5840
|
UseTabOptions,
|
@@ -7183,18 +5850,17 @@ export {
|
|
7183
5850
|
WrapItemProps,
|
7184
5851
|
WrapProps,
|
7185
5852
|
extendTheme2 as extendTheme,
|
7186
|
-
|
5853
|
+
forwardRef15 as forwardRef,
|
7187
5854
|
getTheme,
|
7188
5855
|
theme5 as theme,
|
7189
5856
|
useAccordion,
|
7190
5857
|
useAccordionContext,
|
7191
5858
|
useAccordionItem,
|
7192
5859
|
useAccordionItemState2 as useAccordionItemState,
|
7193
|
-
|
5860
|
+
useAccordionStyles,
|
7194
5861
|
useAlertStyles,
|
7195
5862
|
useBoolean,
|
7196
5863
|
useBreakpoint,
|
7197
|
-
useBreakpointValue,
|
7198
5864
|
useCheckbox,
|
7199
5865
|
useCheckboxGroup,
|
7200
5866
|
useClipboard,
|
@@ -7203,7 +5869,7 @@ export {
|
|
7203
5869
|
useColorModeValue12 as useColorModeValue,
|
7204
5870
|
useConst,
|
7205
5871
|
useControllableProp,
|
7206
|
-
|
5872
|
+
useControllableState,
|
7207
5873
|
useDataTable,
|
7208
5874
|
useDimensions,
|
7209
5875
|
useDisclosure2 as useDisclosure,
|
@@ -7211,13 +5877,11 @@ export {
|
|
7211
5877
|
useFetcher,
|
7212
5878
|
useImage,
|
7213
5879
|
useInternalUI,
|
7214
|
-
useMediaQuery,
|
7215
5880
|
useMergeRefs,
|
7216
5881
|
useModal,
|
7217
5882
|
useModalContext,
|
7218
5883
|
useModalStyles,
|
7219
5884
|
useOutsideClick,
|
7220
|
-
usePrefersReducedMotion,
|
7221
5885
|
useQuery,
|
7222
5886
|
useRadio,
|
7223
5887
|
useRadioGroup,
|