@jars-labs/jars-components 1.0.70 → 1.0.71
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-BeIykrFW.js +2027 -0
- package/dist/index-BeIykrFW.js.map +1 -0
- package/dist/index.js +5 -22142
- package/dist/index.js.map +1 -1
- package/dist/lottie-kZLiJLNw.js +20120 -0
- package/dist/lottie-kZLiJLNw.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2027 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Accordion as Accordion$1, AccordionItem as AccordionItem$1, AccordionControl as AccordionControl$1, AccordionPanel as AccordionPanel$1, ActionIcon as ActionIcon$1, Group, Combobox, useCombobox, Flex, TextInput, Loader as Loader$1, Checkbox as Checkbox$1, Menu as Menu$1, Divider, Modal as Modal$1, Box, Pagination as Pagination$1, Radio, SegmentedControl as SegmentedControl$1, Select as Select$1, Stepper as Stepper$1, StepperStep, Progress, Table as Table$1, Tabs as Tabs$1, Textarea as Textarea$1, Tooltip as Tooltip$1 } from '@mantine/core';
|
|
3
|
+
import React, { useRef, useState, useEffect, forwardRef, useMemo, useLayoutEffect } from 'react';
|
|
4
|
+
import { DateInput as DateInput$1 } from '@mantine/dates';
|
|
5
|
+
import { ToastContainer as ToastContainer$1 } from 'react-toastify';
|
|
6
|
+
|
|
7
|
+
/******************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var __assign = function() {
|
|
25
|
+
__assign = Object.assign || function __assign(t) {
|
|
26
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
+
s = arguments[i];
|
|
28
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
};
|
|
32
|
+
return __assign.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
function __rest(s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
+
t[p] = s[p];
|
|
39
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
+
t[p[i]] = s[p[i]];
|
|
43
|
+
}
|
|
44
|
+
return t;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function __spreadArray(to, from, pack) {
|
|
48
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
49
|
+
if (ar || !(i in from)) {
|
|
50
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
51
|
+
ar[i] = from[i];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
58
|
+
var e = new Error(message);
|
|
59
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var styles$p = {"accordion":"Accordion-module_accordion__Nl0Vb","item":"Accordion-module_item__85Qrt","item-neutral":"Accordion-module_item-neutral__c06SU","item-white":"Accordion-module_item-white__l-DtA","chevron":"Accordion-module_chevron__kqKKx","bottom-right":"Accordion-module_bottom-right__2C-t6","control":"Accordion-module_control__92uvC","content":"Accordion-module_content__LkKAo","label":"Accordion-module_label__VkyEF"};
|
|
63
|
+
|
|
64
|
+
var serverSideRenderSVG = function (_a, children) {
|
|
65
|
+
var width = _a.width, height = _a.height, viewBox = _a.viewBox, fill = _a.fill, rotate = _a.rotate;
|
|
66
|
+
return (jsx("svg", { width: width, height: height, viewBox: viewBox, fill: fill, preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", transform: "rotate(".concat(rotate, ")"), children: children }));
|
|
67
|
+
};
|
|
68
|
+
var Icon = function (_a) {
|
|
69
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, viewBox = _a.viewBox, _d = _a.fill, fill = _d === undefined ? 'none' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.rotate, rotate = _f === undefined ? 0 : _f, _g = _a.style, style = _g === undefined ? {} : _g, children = _a.children;
|
|
70
|
+
if (typeof window === 'undefined') {
|
|
71
|
+
serverSideRenderSVG({
|
|
72
|
+
width: width,
|
|
73
|
+
height: height,
|
|
74
|
+
viewBox: viewBox,
|
|
75
|
+
fill: fill,
|
|
76
|
+
rotate: rotate,
|
|
77
|
+
}, children);
|
|
78
|
+
}
|
|
79
|
+
var svgRef = useRef(null);
|
|
80
|
+
var _h = useState(null), transform = _h[0], setTransform = _h[1];
|
|
81
|
+
useEffect(function () {
|
|
82
|
+
var centerSvgInViewBox = function () {
|
|
83
|
+
if (svgRef.current) {
|
|
84
|
+
var content = svgRef.current.querySelector('g') || svgRef.current;
|
|
85
|
+
// Check if one of the parent elements is an accordion content
|
|
86
|
+
var parent_1 = svgRef.current.parentElement;
|
|
87
|
+
var isParentContent = false;
|
|
88
|
+
while (parent_1) {
|
|
89
|
+
if (parent_1.classList.contains('mantine-Accordion-root') ||
|
|
90
|
+
parent_1.classList.contains('mantine-Tabs-panel')) {
|
|
91
|
+
isParentContent = true;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
parent_1 = parent_1.parentElement;
|
|
95
|
+
}
|
|
96
|
+
if (isParentContent) {
|
|
97
|
+
// Don't center it
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
var bbox = content.getBBox();
|
|
101
|
+
var viewBoxValues = (viewBox === null || viewBox === undefined ? undefined : viewBox.split(' ').map(Number)) || [0, 0, 32, 32];
|
|
102
|
+
var viewBoxWidth = viewBoxValues[2];
|
|
103
|
+
var viewBoxHeight = viewBoxValues[3];
|
|
104
|
+
var dx = (viewBoxWidth - bbox.width) / 2 - bbox.x;
|
|
105
|
+
var dy = (viewBoxHeight - bbox.height) / 2 - bbox.y;
|
|
106
|
+
setTransform("translate(".concat(dx, ", ").concat(dy, ")"));
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
centerSvgInViewBox();
|
|
110
|
+
}, [viewBox]);
|
|
111
|
+
return (jsx("svg", { ref: svgRef, width: width, height: height, viewBox: viewBox, fill: fill, stroke: stroke, preserveAspectRatio: "xMidYMid meet", style: __assign(__assign({}, style), { transform: "rotate(".concat(rotate, "deg)"), transformOrigin: 'center' }), children: jsx("g", { transform: transform || undefined, children: children }) }));
|
|
112
|
+
};
|
|
113
|
+
Icon.displayName = 'Icon';
|
|
114
|
+
|
|
115
|
+
var Chevron = function (_a) {
|
|
116
|
+
var props = __rest(_a, []);
|
|
117
|
+
return (jsx(Icon, __assign({}, props, { style: {
|
|
118
|
+
transition: 'transform 0.25s ease',
|
|
119
|
+
}, children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M15.75 19.5L8.25 12l7.5-7.5" }) })));
|
|
120
|
+
};
|
|
121
|
+
Chevron.displayName = 'Chevron';
|
|
122
|
+
|
|
123
|
+
var Accordion = function (_a) {
|
|
124
|
+
var _b = _a.customChevronPosition, customChevronPosition = _b === undefined ? 'center-right' : _b, _c = _a.bgColor, bgColor = _c === undefined ? 'neutral' : _c, children = _a.children;
|
|
125
|
+
var childrenWithColor = React.Children.map(children, function (child) {
|
|
126
|
+
if (React.isValidElement(child)) {
|
|
127
|
+
return React.cloneElement(child, {
|
|
128
|
+
bgColor: bgColor,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return child;
|
|
132
|
+
});
|
|
133
|
+
return (jsx(Accordion$1, { variant: "unstyled", chevron: jsx(Chevron, { rotate: 270, width: "24px", height: "24px" }), chevronSize: 24, classNames: {
|
|
134
|
+
root: styles$p.accordion,
|
|
135
|
+
chevron: "".concat(styles$p.chevron, " ").concat(styles$p[customChevronPosition]),
|
|
136
|
+
}, multiple: true, children: childrenWithColor }));
|
|
137
|
+
};
|
|
138
|
+
Accordion.displayName = 'Accordion';
|
|
139
|
+
var AccordionItem = function (_a) {
|
|
140
|
+
var children = _a.children, value = _a.value, _b = _a.bgColor, bgColor = _b === undefined ? 'neutral' : _b, props = __rest(_a, ["children", "value", "bgColor"]);
|
|
141
|
+
return (jsx(AccordionItem$1, __assign({ classNames: {
|
|
142
|
+
item: "".concat(styles$p.item, " ").concat(bgColor === 'white' ? styles$p['item-white'] : styles$p['item-neutral']),
|
|
143
|
+
}, value: value }, props, { children: children })));
|
|
144
|
+
};
|
|
145
|
+
AccordionItem.displayName = 'AccordionItem';
|
|
146
|
+
var AccordionControl = function (_a) {
|
|
147
|
+
var children = _a.children;
|
|
148
|
+
return (jsx(AccordionControl$1, { classNames: { label: styles$p.label, control: styles$p.control }, children: children }));
|
|
149
|
+
};
|
|
150
|
+
AccordionControl.displayName = 'AccordionControl';
|
|
151
|
+
var AccordionPanel = function (_a) {
|
|
152
|
+
var children = _a.children;
|
|
153
|
+
return (jsx(AccordionPanel$1, { classNames: { content: styles$p.content }, children: children }));
|
|
154
|
+
};
|
|
155
|
+
AccordionPanel.displayName = 'AccordionPanel';
|
|
156
|
+
|
|
157
|
+
var styles$o = {"root":"ActionIcon-module_root__orJKP"};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* ActionIcon component to display an icon with a clickable action.
|
|
161
|
+
* Use Button component if you need to display an icon with a label, or any other variants.
|
|
162
|
+
* Use light variant when you dont want it to have a background.
|
|
163
|
+
*
|
|
164
|
+
* @param onClick - Function to call when icon is clicked
|
|
165
|
+
* @param radius - Radius of the background
|
|
166
|
+
* @param color - Color of the icon
|
|
167
|
+
* @param variant - Variant of the icon (filled, light, outline)
|
|
168
|
+
* @param size - Size of the icon
|
|
169
|
+
* @param disabled - If true, icon will be disabled
|
|
170
|
+
* @param children - Icon to display
|
|
171
|
+
* @returns React component
|
|
172
|
+
*/
|
|
173
|
+
var ActionIcon = forwardRef(function (_a, ref) {
|
|
174
|
+
var onClick = _a.onClick, _b = _a.radius, radius = _b === undefined ? 'xl' : _b, _c = _a.color, color = _c === undefined ? 'var(--color-neutral-200)' : _c, _d = _a.variant, variant = _d === undefined ? 'filled' : _d, _e = _a.size, size = _e === undefined ? 'md' : _e, _f = _a.disabled, disabled = _f === undefined ? false : _f, children = _a.children, rest = __rest(_a, ["onClick", "radius", "color", "variant", "size", "disabled", "children"]);
|
|
175
|
+
return (jsx(ActionIcon$1, __assign({ onClick: onClick && onClick, radius: radius, variant: variant, size: size, disabled: disabled, classNames: {
|
|
176
|
+
root: styles$o.root,
|
|
177
|
+
}, color: color, ref: ref }, rest, { children: jsx(Group, { children: children }) })));
|
|
178
|
+
});
|
|
179
|
+
ActionIcon.displayName = 'ActionIcon';
|
|
180
|
+
|
|
181
|
+
var Animation = function (_a) {
|
|
182
|
+
var animationData = _a.animationData, loop = _a.loop, props = __rest(_a, ["animationData", "loop"]);
|
|
183
|
+
var refVector = useRef(null);
|
|
184
|
+
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
185
|
+
useEffect(function () {
|
|
186
|
+
import('./lottie-kZLiJLNw.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
187
|
+
}, []);
|
|
188
|
+
useEffect(function () {
|
|
189
|
+
if (lottie && refVector.current) {
|
|
190
|
+
var Animation_1 = lottie.loadAnimation({
|
|
191
|
+
container: refVector.current,
|
|
192
|
+
renderer: 'svg',
|
|
193
|
+
loop: loop,
|
|
194
|
+
autoplay: true,
|
|
195
|
+
path: animationData,
|
|
196
|
+
});
|
|
197
|
+
return function () { return Animation_1.destroy(); };
|
|
198
|
+
}
|
|
199
|
+
}, [lottie, animationData]);
|
|
200
|
+
return (jsx("div", __assign({ ref: refVector }, props, { style: { width: '100%', height: '100%' } })));
|
|
201
|
+
};
|
|
202
|
+
Animation.displayName = 'Animation';
|
|
203
|
+
|
|
204
|
+
var styles$n = {"dropdown":"Dropdown-module_dropdown__Pf3Aj","option":"Dropdown-module_option__5-7L7"};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* Dropdown component
|
|
209
|
+
* Used to Create custom select, autocomplete or multiselect inputs
|
|
210
|
+
*
|
|
211
|
+
* @param options - list of options to display in dropdown
|
|
212
|
+
* @param onOptionSubmit - function to call when option is selected by click or enter
|
|
213
|
+
* @param children - dropdown target element (the dropdown will be attached to this element)
|
|
214
|
+
* @param footer - footer element to display at the bottom of the dropdown
|
|
215
|
+
* @param storeOptions - useCombobox options
|
|
216
|
+
* @param maxHeight - max height of dropdown
|
|
217
|
+
* @param closeOnSelect - close dropdown on option select
|
|
218
|
+
* @param rest - rest of the props to pass to Combobox component
|
|
219
|
+
*
|
|
220
|
+
* @return Attaches dropdown to target element and displays options
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* <Dropdown
|
|
224
|
+
* options={['Option 1', 'Option 2', 'Option 3']}
|
|
225
|
+
* onOptionSubmit={(value) => console.log(value)}
|
|
226
|
+
* >
|
|
227
|
+
* <Button label="Click Me!">
|
|
228
|
+
* </Dropdown>
|
|
229
|
+
*
|
|
230
|
+
*/
|
|
231
|
+
var Dropdown = function (_a) {
|
|
232
|
+
var options = _a.options, children = _a.children, footer = _a.footer, storeOptions = _a.storeOptions, onOptionSubmit = _a.onOptionSubmit, maxHeight = _a.maxHeight, _b = _a.closeOnSelect, closeOnSelect = _b === undefined ? false : _b, rest = __rest(_a, ["options", "children", "footer", "storeOptions", "onOptionSubmit", "maxHeight", "closeOnSelect"]);
|
|
233
|
+
var store = useCombobox(__assign({}, storeOptions));
|
|
234
|
+
var renderOptions = function (options, onOptionSubmit) {
|
|
235
|
+
if (!Array.isArray(options)) {
|
|
236
|
+
return options;
|
|
237
|
+
}
|
|
238
|
+
return options.map(function (option, index) {
|
|
239
|
+
if (typeof option === 'string') {
|
|
240
|
+
return (jsx(Combobox.Option, { value: option, onClick: function () {
|
|
241
|
+
store.selectOption(index);
|
|
242
|
+
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(option);
|
|
243
|
+
closeOnSelect && store.closeDropdown();
|
|
244
|
+
}, className: styles$n.option, children: option }, index));
|
|
245
|
+
}
|
|
246
|
+
return option;
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
return (jsxs(Combobox, __assign({ store: store, onOptionSubmit: function (value) {
|
|
250
|
+
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(value);
|
|
251
|
+
closeOnSelect && store.closeDropdown();
|
|
252
|
+
} }, rest, { children: [jsx(Combobox.Target, { children: jsx(Flex, { w: "100%", children: typeof children === 'function' ? children(store) : children }) }), jsxs(Combobox.Dropdown, { classNames: { dropdown: styles$n.dropdown }, children: [jsx(Combobox.Options, { mah: maxHeight, style: { overflow: maxHeight ? 'auto' : 'unset' }, children: renderOptions(options, onOptionSubmit) }), footer && (jsx(Combobox.Footer, { children: typeof footer === 'function' ? footer(store) : footer }))] })] })));
|
|
253
|
+
};
|
|
254
|
+
Dropdown.displayName = 'Dropdown';
|
|
255
|
+
Dropdown.Option = Combobox.Option;
|
|
256
|
+
Dropdown.Options = Combobox.Options;
|
|
257
|
+
Dropdown.OptionGroup = Combobox.Group;
|
|
258
|
+
|
|
259
|
+
var Close = function (_a) {
|
|
260
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.fill, fill = _e === undefined ? 'transparent' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f, _g = _a.outlined, outlined = _g === undefined ? false : _g;
|
|
261
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, children: outlined ? (jsxs(Fragment, { children: [jsx("path", { fillRule: "evenodd", stroke: stroke, fill: fill, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M12 21v0a9 9 0 01-9-9v0a9 9 0 019-9v0a9 9 0 019 9v0a9 9 0 01-9 9z", clipRule: "evenodd" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M9.172 9.172l5.656 5.656M14.829 9.172l-5.657 5.656" })] })) : (jsx(Fragment, { children: jsxs("g", { stroke: "none", fill: fill, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [jsx("path", { d: "m9.364 9.364 12.728 12.728", stroke: stroke }), jsx("path", { d: "M22.092 9.364 9.364 22.092", stroke: stroke })] }) })) }));
|
|
262
|
+
};
|
|
263
|
+
Close.displayName = 'Close';
|
|
264
|
+
|
|
265
|
+
var Search = function (props) {
|
|
266
|
+
return (jsxs(Icon, __assign({}, props, { viewBox: props.viewBox || '0 0 22 22', width: props.width || '22', height: props.height || '22', children: [jsx("path", { d: "M9.46154 17.9231C14.1347 17.9231 17.9231 14.1347 17.9231 9.46154C17.9231 4.78835 14.1347 1 9.46154 1C4.78835 1 1 4.78835 1 9.46154C1 14.1347 4.78835 17.9231 9.46154 17.9231Z", stroke: "var(--color-neutral-600)", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M21 21L15.6154 15.6154", stroke: "var(--color-neutral-600)", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
267
|
+
};
|
|
268
|
+
Search.displayName = 'Search';
|
|
269
|
+
|
|
270
|
+
function getDefaultExportFromCjs (x) {
|
|
271
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
var classnames = {exports: {}};
|
|
275
|
+
|
|
276
|
+
/*!
|
|
277
|
+
Copyright (c) 2018 Jed Watson.
|
|
278
|
+
Licensed under the MIT License (MIT), see
|
|
279
|
+
http://jedwatson.github.io/classnames
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
var hasRequiredClassnames;
|
|
283
|
+
|
|
284
|
+
function requireClassnames () {
|
|
285
|
+
if (hasRequiredClassnames) return classnames.exports;
|
|
286
|
+
hasRequiredClassnames = 1;
|
|
287
|
+
(function (module) {
|
|
288
|
+
/* global define */
|
|
289
|
+
|
|
290
|
+
(function () {
|
|
291
|
+
|
|
292
|
+
var hasOwn = {}.hasOwnProperty;
|
|
293
|
+
|
|
294
|
+
function classNames () {
|
|
295
|
+
var classes = '';
|
|
296
|
+
|
|
297
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
298
|
+
var arg = arguments[i];
|
|
299
|
+
if (arg) {
|
|
300
|
+
classes = appendClass(classes, parseValue(arg));
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return classes;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
function parseValue (arg) {
|
|
308
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
309
|
+
return arg;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (typeof arg !== 'object') {
|
|
313
|
+
return '';
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (Array.isArray(arg)) {
|
|
317
|
+
return classNames.apply(null, arg);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
321
|
+
return arg.toString();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
var classes = '';
|
|
325
|
+
|
|
326
|
+
for (var key in arg) {
|
|
327
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
328
|
+
classes = appendClass(classes, key);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
return classes;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function appendClass (value, newClass) {
|
|
336
|
+
if (!newClass) {
|
|
337
|
+
return value;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
if (value) {
|
|
341
|
+
return value + ' ' + newClass;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
return value + newClass;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (module.exports) {
|
|
348
|
+
classNames.default = classNames;
|
|
349
|
+
module.exports = classNames;
|
|
350
|
+
} else {
|
|
351
|
+
window.classNames = classNames;
|
|
352
|
+
}
|
|
353
|
+
}());
|
|
354
|
+
} (classnames));
|
|
355
|
+
return classnames.exports;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
var classnamesExports = requireClassnames();
|
|
359
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
360
|
+
|
|
361
|
+
var styles$m = {"container":"Input-module_container__zzWGm","input":"Input-module_input__aRXjR","inputError":"Input-module_inputError__s3cRz","inputLeftIcon":"Input-module_inputLeftIcon__gObSe","inputRightIcon":"Input-module_inputRightIcon__hWB1a","label":"Input-module_label__HtZ2L","labelFocused":"Input-module_labelFocused__3-p5R","labelError":"Input-module_labelError__MA8Ti","labelDisabled":"Input-module_labelDisabled__lhjNw","description":"Input-module_description__Q1Rbw","error":"Input-module_error__yiAgw","errorVisible":"Input-module_errorVisible__IS7J2","errorHidden":"Input-module_errorHidden__8-hAw","errorText":"Input-module_errorText__wKZ67","leftSection":"Input-module_leftSection__YyGeo","rightSection":"Input-module_rightSection__zMH-z"};
|
|
362
|
+
|
|
363
|
+
var Info = function (_a) {
|
|
364
|
+
var width = _a.width, height = _a.height, viewBox = _a.viewBox, _b = _a.stroke, stroke = _b === undefined ? 'currentColor' : _b, _c = _a.strokeWidth, strokeWidth = _c === undefined ? 1.5 : _c;
|
|
365
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M11.999 8C11.861 8 11.749 8.112 11.75 8.25C11.75 8.388 11.862 8.5 12 8.5C12.138 8.5 12.25 8.388 12.25 8.25C12.25 8.112 12.138 8 11.999 8" }), jsx("path", { fillRule: "evenodd", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M12 21V21C7.029 21 3 16.971 3 12V12C3 7.029 7.029 3 12 3V3C16.971 3 21 7.029 21 12V12C21 16.971 16.971 21 12 21Z", clipRule: "evenodd" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M12 12V17" })] }));
|
|
366
|
+
};
|
|
367
|
+
Info.displayName = 'Info';
|
|
368
|
+
|
|
369
|
+
var styles$l = {"text":"Text-module_text__3xRq3","h1":"Text-module_h1__RkLfx","h2":"Text-module_h2__fAm7L","h3":"Text-module_h3__o11c2","h4":"Text-module_h4__RIwZg","m":"Text-module_m__nlfmp","s":"Text-module_s__t9q3d","xs":"Text-module_xs__ZU2jV","xxs":"Text-module_xxs__hmZHQ","bold":"Text-module_bold__N75tZ","medium":"Text-module_medium__Q8kf4","regular":"Text-module_regular__-EdPk"};
|
|
370
|
+
|
|
371
|
+
var elementType = {
|
|
372
|
+
h1: 'h1',
|
|
373
|
+
h2: 'h2',
|
|
374
|
+
h3: 'h3',
|
|
375
|
+
h4: 'h4',
|
|
376
|
+
};
|
|
377
|
+
var Text = React.forwardRef(function (props, ref) {
|
|
378
|
+
var as = props.as, children = props.children, className = props.className, color = props.color, style = props.style, variant = props.variant, weight = props.weight, rest = __rest(props, ["as", "children", "className", "color", "style", "variant", "weight"]);
|
|
379
|
+
var combinedStyle = __assign(__assign({}, style), { color: color });
|
|
380
|
+
var combinedClassName = classNames(className, styles$l['text'], styles$l[variant || ''], styles$l[weight || '']);
|
|
381
|
+
return React.createElement(as || elementType[variant] || 'p', __assign({ ref: ref, className: combinedClassName, style: combinedStyle }, rest), children);
|
|
382
|
+
});
|
|
383
|
+
Text.displayName = 'Text';
|
|
384
|
+
|
|
385
|
+
function smartLowercase(str) {
|
|
386
|
+
return str
|
|
387
|
+
.split(/\b/)
|
|
388
|
+
.map(function (word) {
|
|
389
|
+
if (/^[A-Z]{2,}$/.test(word))
|
|
390
|
+
return word;
|
|
391
|
+
return word.toLowerCase();
|
|
392
|
+
})
|
|
393
|
+
.join('');
|
|
394
|
+
}
|
|
395
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
396
|
+
function capitalizeFirstSentenceLetter(input) {
|
|
397
|
+
var str;
|
|
398
|
+
if (typeof input !== 'string') {
|
|
399
|
+
if (Array.isArray(input)) {
|
|
400
|
+
str = input.join(' ');
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
return String(input);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
str = input;
|
|
408
|
+
}
|
|
409
|
+
return smartLowercase(str.replace(/_/g, ' ')).replace(/(^\s*[a-z])|([.!?]\s*[a-z])/g, function (match) { return match.toUpperCase(); });
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Input component that extends the TextInput component from Mantine.
|
|
414
|
+
* It includes additional features like error handling, description, and label visibility.
|
|
415
|
+
*
|
|
416
|
+
* @param {string} name - The name of the input field.
|
|
417
|
+
* @param {string} label - The label for the input field.
|
|
418
|
+
* @param {string} placeholder - The placeholder text for the input field.
|
|
419
|
+
* @param {string} value - The value of the input field.
|
|
420
|
+
* @param {function} onChange - The function to call when the input value changes.
|
|
421
|
+
* @param {function} onBlur - The function to call when the input loses focus.
|
|
422
|
+
* @param {string} error - The error message to display.
|
|
423
|
+
* @param {string} description - The description text to display below the input field.
|
|
424
|
+
* @param {boolean} holdSpace - Whether to hold space for the error message even when there is no error.
|
|
425
|
+
* @param {React.ReactNode} leftSection - The icon to display on the left side of the input field.
|
|
426
|
+
* @param {React.ReactNode} rightSection - The icon to display on the right side of the input field.
|
|
427
|
+
* @param {boolean} hideLabel - Whether to hide the label when it's not required.
|
|
428
|
+
* @param {string} type - The type of the input field (default is 'text').
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* <Input
|
|
432
|
+
* name="username"
|
|
433
|
+
* label="Username"
|
|
434
|
+
* placeholder="Enter your username"
|
|
435
|
+
* value={username}
|
|
436
|
+
* onChange={(e) => setUsername(e.target.value)}
|
|
437
|
+
* onBlur={() => console.log('Input blurred')}
|
|
438
|
+
* error="Username is required"
|
|
439
|
+
* description="Your unique username"
|
|
440
|
+
* />
|
|
441
|
+
*/
|
|
442
|
+
var Input = function (_a) {
|
|
443
|
+
var _b, _c;
|
|
444
|
+
var _d = _a.error, error = _d === undefined ? '' : _d, name = _a.name, placeholder = _a.placeholder, _e = _a.value, value = _e === undefined ? '' : _e, onChange = _a.onChange, label = _a.label, description = _a.description, leftSection = _a.leftSection, rightSection = _a.rightSection, _f = _a.type, type = _f === undefined ? 'text' : _f, _g = _a.holdSpace, holdSpace = _g === undefined ? true : _g, _h = _a.hideLabel, hideLabel = _h === undefined ? false : _h, _j = _a.disabled, disabled = _j === undefined ? false : _j, rest = __rest(_a, ["error", "name", "placeholder", "value", "onChange", "label", "description", "leftSection", "rightSection", "type", "holdSpace", "hideLabel", "disabled"]);
|
|
445
|
+
var _k = useState(false), isFocused = _k[0], setIsFocused = _k[1];
|
|
446
|
+
var _l = useState(false), isHovered = _l[0], setIsHovered = _l[1];
|
|
447
|
+
var showLabel = !hideLabel && (isFocused || value.trim());
|
|
448
|
+
var placeHolderValue = placeholder || label;
|
|
449
|
+
var ErrorSection = useMemo(function () {
|
|
450
|
+
return holdSpace && (jsxs(Flex, { className: classNames(styles$m.error, error ? styles$m.errorVisible : styles$m.errorHidden), gap: 4, ml: 0, style: { alignItems: 'flex-start' }, children: [jsx(Flex, { style: { flexShrink: 0 }, children: jsx(Info, { width: "18px", height: "18px", viewBox: "0 0 24 24", stroke: "var(--color-red-300)" }) }), jsx(Text, { variant: "xs", className: classNames(styles$m.errorText), as: "span", children: capitalizeFirstSentenceLetter(error) })] }));
|
|
451
|
+
}, [error]);
|
|
452
|
+
return (jsxs("div", { className: styles$m.container, children: [showLabel && (jsx("label", { className: classNames(styles$m.label, (_b = {},
|
|
453
|
+
_b[styles$m.labelError] = error && !isFocused,
|
|
454
|
+
_b[styles$m.labelFocused] = isFocused || isHovered,
|
|
455
|
+
_b[styles$m.labelDisabled] = disabled,
|
|
456
|
+
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onFocus: function () { return setIsFocused(true); }, onBlur: function () { return setIsFocused(false); }, children: jsx(TextInput, __assign({ classNames: {
|
|
457
|
+
input: classNames(styles$m.input, (_c = {},
|
|
458
|
+
_c[styles$m.inputLeftIcon] = leftSection,
|
|
459
|
+
_c[styles$m.inputRightIcon] = rightSection,
|
|
460
|
+
_c[styles$m.inputError] = error,
|
|
461
|
+
_c)),
|
|
462
|
+
}, placeholder: placeHolderValue, name: name, error: ErrorSection, description: !error && jsx(Text, { variant: "xs", children: description }), descriptionProps: { className: styles$m.description }, errorProps: { className: styles$m.error }, inputWrapperOrder: ['label', 'input', 'description', 'error'], value: value, onChange: onChange, leftSection: leftSection, rightSection: rightSection, leftSectionProps: { className: styles$m.leftSection }, rightSectionProps: { className: styles$m.rightSection }, type: type, disabled: disabled }, rest)) })] }));
|
|
463
|
+
};
|
|
464
|
+
Input.displayName = 'Input';
|
|
465
|
+
|
|
466
|
+
var Loader = function (props) {
|
|
467
|
+
return jsx(Loader$1, __assign({ color: "var(--color-primary-300)" }, props));
|
|
468
|
+
};
|
|
469
|
+
Loader.displayName = 'Loader';
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* Autocomplete component
|
|
474
|
+
* Autocomplete user input with any list of options
|
|
475
|
+
*
|
|
476
|
+
* @param options - list of options to display in dropdown (array of AutocompleteOption)
|
|
477
|
+
* @param label - input label
|
|
478
|
+
* @param placeholder - input placeholder
|
|
479
|
+
* @param onOptionSubmit - function to call when option is selected by click or enter (option: AutocompleteOption | null)
|
|
480
|
+
* @param onClear - function to call when clear button is clicked
|
|
481
|
+
* @param disabled - disable input
|
|
482
|
+
* @param onSearchChange - function to call when search value changes
|
|
483
|
+
* @param searchValue - search value
|
|
484
|
+
* @param loading - show loading spinner
|
|
485
|
+
* @param minCharactersToShowDropdown - minimum characters to show dropdown options
|
|
486
|
+
* @param style - custom styles for the input
|
|
487
|
+
* @param initialValue - default value for the input (AutocompleteOption)
|
|
488
|
+
*
|
|
489
|
+
* @return Autocomplete component with dropdown
|
|
490
|
+
*/
|
|
491
|
+
var Autocomplete = function (_a) {
|
|
492
|
+
var options = _a.options, _b = _a.placeholder, placeholder = _b === undefined ? 'Search' : _b, onOptionSubmit = _a.onOptionSubmit, _c = _a.disabled, disabled = _c === undefined ? false : _c, onClear = _a.onClear, onSearchChange = _a.onSearchChange, searchValue = _a.searchValue, _d = _a.loading, loading = _d === undefined ? false : _d, _e = _a.minCharactersToShowDropdown, minCharactersToShowDropdown = _e === undefined ? 2 : _e, style = _a.style, initialValue = _a.initialValue;
|
|
493
|
+
var handleOptionSubmit = function (option) {
|
|
494
|
+
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(option);
|
|
495
|
+
};
|
|
496
|
+
var searchTrimmed = searchValue.trim();
|
|
497
|
+
var boldedOptions = options.map(function (option) {
|
|
498
|
+
var index = option.label
|
|
499
|
+
.toLowerCase()
|
|
500
|
+
.indexOf(searchTrimmed.toLowerCase());
|
|
501
|
+
if (index === -1)
|
|
502
|
+
return (jsx(Dropdown.Option, { value: option.label, onClick: function () { return handleOptionSubmit(option); }, children: option.label }, option.id));
|
|
503
|
+
return (jsxs(Dropdown.Option, { value: option.label, onClick: function () { return handleOptionSubmit(option); }, children: [option.label.slice(0, index), jsx("strong", { children: option.label.slice(index, index + searchTrimmed.length) }), option.label.slice(index + searchTrimmed.length)] }, option.id));
|
|
504
|
+
});
|
|
505
|
+
var emptyOptions = (jsx(Dropdown.Option, { value: "No options found", style: { cursor: 'not-allowed', pointerEvents: 'none' }, children: "No matches found, try something else." }));
|
|
506
|
+
var loadingOptions = (jsx(Dropdown.Option, { value: "Loading...", disabled: true, style: { display: 'flex', justifyContent: 'center' }, children: jsx(Loader, {}) }));
|
|
507
|
+
var renderOptions = function () {
|
|
508
|
+
if (loading)
|
|
509
|
+
return loadingOptions;
|
|
510
|
+
return boldedOptions.length > 0 ? boldedOptions : emptyOptions;
|
|
511
|
+
};
|
|
512
|
+
var _f = useState(false), touched = _f[0], setTouched = _f[1];
|
|
513
|
+
var _g = useState(false), hasClearedInitial = _g[0], setHasClearedInitial = _g[1];
|
|
514
|
+
var inputValue = touched || hasClearedInitial ? searchValue : initialValue || '';
|
|
515
|
+
return (jsx(Dropdown, { options: renderOptions(), maxHeight: 250, closeOnSelect: true, children: function (store) { return (jsx(Input, { hideLabel: true, label: "Search", placeholder: placeholder, onClick: function () {
|
|
516
|
+
return !disabled &&
|
|
517
|
+
searchValue.length >= minCharactersToShowDropdown &&
|
|
518
|
+
store.toggleDropdown();
|
|
519
|
+
}, value: inputValue, onChange: function (event) {
|
|
520
|
+
setTouched(true);
|
|
521
|
+
setHasClearedInitial(true);
|
|
522
|
+
var value = event.currentTarget.value;
|
|
523
|
+
onSearchChange(value);
|
|
524
|
+
if (!store.dropdownOpened &&
|
|
525
|
+
value.length >= minCharactersToShowDropdown) {
|
|
526
|
+
store.openDropdown();
|
|
527
|
+
}
|
|
528
|
+
if (value === '') {
|
|
529
|
+
store.resetSelectedOption();
|
|
530
|
+
store.closeDropdown();
|
|
531
|
+
}
|
|
532
|
+
}, holdSpace: false, leftSection: jsx(Search, {}), rightSection: jsx(ActionIcon, { radius: "sm", variant: "light", onClick: function () {
|
|
533
|
+
setHasClearedInitial(true);
|
|
534
|
+
setTouched(true);
|
|
535
|
+
onSearchChange('');
|
|
536
|
+
onClear === null || onClear === undefined ? undefined : onClear();
|
|
537
|
+
store.resetSelectedOption();
|
|
538
|
+
store.closeDropdown();
|
|
539
|
+
}, style: { visibility: inputValue ? 'visible' : 'hidden' }, children: jsx(Close, {}) }), onKeyDown: function (event) {
|
|
540
|
+
if (event.key !== 'Enter')
|
|
541
|
+
return;
|
|
542
|
+
onOptionSubmit(null);
|
|
543
|
+
store.closeDropdown();
|
|
544
|
+
}, style: style })); } }));
|
|
545
|
+
};
|
|
546
|
+
Autocomplete.displayName = 'Autocomplete';
|
|
547
|
+
|
|
548
|
+
var AvatarPlaceholder = function (_a) {
|
|
549
|
+
var width = _a.width, height = _a.height, viewBox = _a.viewBox, rotate = _a.rotate;
|
|
550
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, rotate: rotate, stroke: "none", children: [jsx("ellipse", { cx: "11.755", cy: "5.818", fill: "var(--color-tertiary-200)", rx: "5.878", ry: "5.818" }), jsx("path", { fill: "var(--color-primary-300)", d: "M24 24H12 0c0-6.56 5.373-11.879 12-11.879s12 5.319 12 11.88z" })] }));
|
|
551
|
+
};
|
|
552
|
+
AvatarPlaceholder.displayName = 'AvatarPlaceholder';
|
|
553
|
+
|
|
554
|
+
var badgeVariantMap = {
|
|
555
|
+
notes: {
|
|
556
|
+
backgroundColor: 'var(--color-neutral-100)',
|
|
557
|
+
color: 'var(--color-neutral-600)',
|
|
558
|
+
},
|
|
559
|
+
notice: {
|
|
560
|
+
backgroundColor: 'var(--color-yellow-100)',
|
|
561
|
+
color: 'var(--color-yellow-400)',
|
|
562
|
+
},
|
|
563
|
+
neutral: {
|
|
564
|
+
backgroundColor: 'var(--color-neutral-200)',
|
|
565
|
+
color: 'var(--color-neutral-600)',
|
|
566
|
+
},
|
|
567
|
+
info: {
|
|
568
|
+
backgroundColor: 'var(--color-orange-100)',
|
|
569
|
+
color: 'var(--color-orange-400)',
|
|
570
|
+
},
|
|
571
|
+
success: {
|
|
572
|
+
backgroundColor: 'var(--color-green-100)',
|
|
573
|
+
color: 'var(--color-green-400)',
|
|
574
|
+
},
|
|
575
|
+
warning: {
|
|
576
|
+
backgroundColor: 'var(--color-red-100)',
|
|
577
|
+
color: 'var(--color-red-400)',
|
|
578
|
+
},
|
|
579
|
+
primary: {
|
|
580
|
+
backgroundColor: 'var(--color-primary-50)',
|
|
581
|
+
color: 'var(--color-primary-300)',
|
|
582
|
+
},
|
|
583
|
+
positive: {
|
|
584
|
+
backgroundColor: 'var(--color-mint-200)',
|
|
585
|
+
color: 'var(--color-green-400)',
|
|
586
|
+
},
|
|
587
|
+
caution: {
|
|
588
|
+
backgroundColor: 'var(--color-copper-100)',
|
|
589
|
+
color: 'var(--color-yellow-400)',
|
|
590
|
+
},
|
|
591
|
+
};
|
|
592
|
+
var sizeMap$1 = {
|
|
593
|
+
small: {
|
|
594
|
+
textVariant: 'xxs',
|
|
595
|
+
padding: '4px 12px',
|
|
596
|
+
},
|
|
597
|
+
medium: {
|
|
598
|
+
textVariant: 'xs',
|
|
599
|
+
padding: '5px 12px',
|
|
600
|
+
},
|
|
601
|
+
large: {
|
|
602
|
+
textVariant: 's',
|
|
603
|
+
padding: '10px 16px 9px 16px',
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
var Badge = forwardRef(function (_a, ref) {
|
|
607
|
+
var _b, _c;
|
|
608
|
+
var style = _a.style, icon = _a.icon, variant = _a.variant, size = _a.size, label = _a.label;
|
|
609
|
+
var backgroundColor = (_b = badgeVariantMap[variant]) === null || _b === undefined ? undefined : _b.backgroundColor;
|
|
610
|
+
var color = (_c = badgeVariantMap[variant]) === null || _c === undefined ? undefined : _c.color;
|
|
611
|
+
var sizeStyles = sizeMap$1[size || 'small'];
|
|
612
|
+
return (jsxs(Flex, { gap: 8, w: "fit-content", bg: backgroundColor, p: sizeStyles.padding, align: "center", style: __assign(__assign({}, style), { borderRadius: 999, height: 'fit-content' }), ref: ref, children: [icon, jsx(Text, { variant: sizeStyles.textVariant, color: color, style: { lineHeight: 'normal' }, children: label })] }));
|
|
613
|
+
});
|
|
614
|
+
Badge.displayName = 'Badge';
|
|
615
|
+
|
|
616
|
+
var styles$k = {"button":"Button-module_button__7BLGt","label":"Button-module_label__447Ll","button-flex":"Button-module_button-flex__bzVRB","button--filled":"Button-module_button--filled__BKGu2","label-color--filled":"Button-module_label-color--filled__wJHlw","label-color--filled--disabled":"Button-module_label-color--filled--disabled__BbMbV","button--outlined":"Button-module_button--outlined__QZysw","label-color--outlined":"Button-module_label-color--outlined__seGi5","label-color--outlined--disabled":"Button-module_label-color--outlined--disabled__qXPjI","button--underlined":"Button-module_button--underlined__BsY5s","label-color--underlined":"Button-module_label-color--underlined__ymMfq","label-color--underlined--disabled":"Button-module_label-color--underlined--disabled__TBDd8","button--underlined-neutral":"Button-module_button--underlined-neutral__30A91","label-color--underlined-neutral":"Button-module_label-color--underlined-neutral__1xWMY","label-color--underlined-neutral--disabled":"Button-module_label-color--underlined-neutral--disabled__RQKW7","button--delete":"Button-module_button--delete__Xqpbl","label-color--delete":"Button-module_label-color--delete__iPB3X","label-color--delete--disabled":"Button-module_label-color--delete--disabled__lJkM6","button--small":"Button-module_button--small__3npYU","button--medium":"Button-module_button--medium__WRSIQ","button--large":"Button-module_button--large__bGVS1"};
|
|
617
|
+
|
|
618
|
+
var Button = forwardRef(function (_a, ref) {
|
|
619
|
+
var _b;
|
|
620
|
+
var _c = _a.variant, variant = _c === undefined ? 'filled' : _c, submit = _a.submit, _d = _a.size, size = _d === undefined ? 'medium' : _d, fullWidth = _a.fullWidth, backgroundColor = _a.backgroundColor, label = _a.label, icon = _a.icon, children = _a.children, props = __rest(_a, ["variant", "submit", "size", "fullWidth", "backgroundColor", "label", "icon", "children"]);
|
|
621
|
+
var mode = styles$k["button--".concat(variant)];
|
|
622
|
+
return (jsx("button", __assign({ ref: ref, type: submit ? 'submit' : 'button', style: __assign(__assign({}, props.style), { backgroundColor: backgroundColor, width: fullWidth ? '100%' : 'auto' }) }, props, { className: [styles$k.button, styles$k["button--".concat(size)], mode].join(' '), children: jsxs("div", { className: styles$k['button-flex'], children: [!!icon && icon, label ? (jsx(Text, { className: classNames(styles$k.label, styles$k["label-color--".concat(variant)], (_b = {},
|
|
623
|
+
_b[styles$k["label-color--".concat(variant, "--disabled")]] = props.disabled,
|
|
624
|
+
_b)), children: label })) : (children)] }) })));
|
|
625
|
+
});
|
|
626
|
+
Button.displayName = 'Button';
|
|
627
|
+
|
|
628
|
+
var styles$j = {"card":"Card-module_card__-PlHa","footerDivider":"Card-module_footerDivider__nt5J7","mdShadow":"Card-module_mdShadow__yft6m","lgShadow":"Card-module_lgShadow__WzWj7","variantDefault":"Card-module_variantDefault__AIy3D","variantPlain":"Card-module_variantPlain__MOaH5","variantNeutral":"Card-module_variantNeutral__OAsYA","variantSuccess":"Card-module_variantSuccess__GWiOd","variantWarning":"Card-module_variantWarning__jappm","variantNotes":"Card-module_variantNotes__ijG05","variantInfo":"Card-module_variantInfo__B26E9","variantPrimary":"Card-module_variantPrimary__9E-0B","paddingMd":"Card-module_paddingMd__i1uBq","paddingXs":"Card-module_paddingXs__9BSaQ","paddingCustom":"Card-module_paddingCustom__km95M","appearanceFilled":"Card-module_appearanceFilled__r6-rn","appearanceOutline":"Card-module_appearanceOutline__tseCa","borderWidthDefault":"Card-module_borderWidthDefault__QblrJ","borderWidthMd":"Card-module_borderWidthMd__lCL3w"};
|
|
629
|
+
|
|
630
|
+
var capitalize = function (value) {
|
|
631
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
632
|
+
};
|
|
633
|
+
var Card = function (_a) {
|
|
634
|
+
var _b;
|
|
635
|
+
var header = _a.header, children = _a.children, footer = _a.footer, style = _a.style, _c = _a.shadow, shadow = _c === undefined ? 'md' : _c, _d = _a.variant, variant = _d === undefined ? 'default' : _d, _e = _a.appearance, appearance = _e === undefined ? 'filled' : _e, _f = _a.padding, padding = _f === undefined ? 'md' : _f, _g = _a.borderWidth, borderWidth = _g === undefined ? 'default' : _g;
|
|
636
|
+
var cardClassName = classNames(styles$j.card, (_b = {},
|
|
637
|
+
_b[styles$j.mdShadow] = shadow === 'md',
|
|
638
|
+
_b[styles$j.lgShadow] = shadow === 'lg',
|
|
639
|
+
_b), styles$j["variant".concat(capitalize(variant))], styles$j["appearance".concat(capitalize(appearance))], styles$j["padding".concat(capitalize(padding))], styles$j["borderWidth".concat(capitalize(borderWidth))]);
|
|
640
|
+
return (jsxs("div", { className: cardClassName, style: style, children: [header, children, footer && jsx("div", { className: styles$j.footerDivider }), footer] }));
|
|
641
|
+
};
|
|
642
|
+
Card.displayName = 'Card';
|
|
643
|
+
|
|
644
|
+
var styles$i = {"cardStatus":"CardStatus-module_cardStatus__5T4aF","cardStatus--leftIcon":"CardStatus-module_cardStatus--leftIcon__ULp9A"};
|
|
645
|
+
|
|
646
|
+
var cardStatusVariantMap = {
|
|
647
|
+
notes: {
|
|
648
|
+
backgroundColor: 'var(--color-neutral-100)',
|
|
649
|
+
},
|
|
650
|
+
info: {
|
|
651
|
+
backgroundColor: 'var(--color-orange-100)',
|
|
652
|
+
},
|
|
653
|
+
success: {
|
|
654
|
+
backgroundColor: 'var(--color-green-100)',
|
|
655
|
+
},
|
|
656
|
+
warning: {
|
|
657
|
+
backgroundColor: 'var(--color-red-100)',
|
|
658
|
+
},
|
|
659
|
+
};
|
|
660
|
+
var sizeMap = {
|
|
661
|
+
small: {
|
|
662
|
+
textVariant: 'xxs',
|
|
663
|
+
padding: '8px 12px',
|
|
664
|
+
},
|
|
665
|
+
medium: {
|
|
666
|
+
textVariant: 'xs',
|
|
667
|
+
padding: '8px 12px',
|
|
668
|
+
},
|
|
669
|
+
large: {
|
|
670
|
+
textVariant: 's',
|
|
671
|
+
padding: '8px 16px',
|
|
672
|
+
},
|
|
673
|
+
};
|
|
674
|
+
var CardStatus = function (_a) {
|
|
675
|
+
var _b;
|
|
676
|
+
var icon = _a.icon, variant = _a.variant, size = _a.size, label = _a.label, leftIcon = _a.leftIcon;
|
|
677
|
+
var backgroundColor = variant
|
|
678
|
+
? (_b = cardStatusVariantMap[variant]) === null || _b === undefined ? undefined : _b.backgroundColor
|
|
679
|
+
: undefined;
|
|
680
|
+
var sizeStyles = sizeMap[size || 'small'];
|
|
681
|
+
return (jsxs("div", { className: "".concat(styles$i.cardStatus, " ").concat(leftIcon ? styles$i['cardStatus--leftIcon'] : ''), style: backgroundColor ? { backgroundColor: backgroundColor } : undefined, children: [leftIcon && icon, jsx(Text, { variant: sizeStyles.textVariant, color: 'var(--color-neutral-600)', children: label }), !leftIcon && icon] }));
|
|
682
|
+
};
|
|
683
|
+
CardStatus.displayName = 'CardStatus';
|
|
684
|
+
|
|
685
|
+
var styles$h = {"inner":"Checkbox-module_inner__R7olC","input":"Checkbox-module_input__XnCmS","label":"Checkbox-module_label__l8z5T","label-disabled":"Checkbox-module_label-disabled__fXIgW","icon-disabled":"Checkbox-module_icon-disabled__Nw0dG"};
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Checkbox component for selecting multiple options from a set.
|
|
689
|
+
* For single selections, use the RadioButton component.
|
|
690
|
+
*
|
|
691
|
+
* @param {boolean} checked - Indicates if the checkbox is checked.
|
|
692
|
+
* @param {string | JSX.Element} label - The label displayed next to the checkbox.
|
|
693
|
+
* @param {boolean} disabled - Whether the checkbox is disabled.
|
|
694
|
+
* @param {(e: React.ChangeEvent<HTMLInputElement>) => void} onChange - Callback fired when the selection changes.
|
|
695
|
+
* @param {string} id - The id of the checkbox.
|
|
696
|
+
*
|
|
697
|
+
* @returns {JSX.Element} The rendered Checkbox component adhering to the design system.
|
|
698
|
+
*/
|
|
699
|
+
var Checkbox = function (_a) {
|
|
700
|
+
var _b, _c;
|
|
701
|
+
var _d = _a.checked, checked = _d === undefined ? false : _d, _e = _a.disabled, disabled = _e === undefined ? false : _e, label = _a.label, onChange = _a.onChange, id = _a.id, rest = __rest(_a, ["checked", "disabled", "label", "onChange", "id"]);
|
|
702
|
+
return (jsx(Checkbox$1, __assign({ checked: checked, label: label, disabled: disabled, onChange: onChange, id: id, color: "var(--color-primary-300)", classNames: {
|
|
703
|
+
labelWrapper: styles$h.labelWrapper,
|
|
704
|
+
label: classNames(styles$h.label, (_b = {},
|
|
705
|
+
_b[styles$h['label-disabled']] = disabled,
|
|
706
|
+
_b)),
|
|
707
|
+
input: styles$h.input,
|
|
708
|
+
inner: styles$h.inner,
|
|
709
|
+
icon: classNames((_c = {},
|
|
710
|
+
_c[styles$h['icon-disabled']] = disabled,
|
|
711
|
+
_c)),
|
|
712
|
+
} }, rest)));
|
|
713
|
+
};
|
|
714
|
+
Checkbox.displayName = 'Checkbox';
|
|
715
|
+
|
|
716
|
+
var styles$g = {"chip-wrapper":"Chip-module_chip-wrapper__XcAWQ","chip-wrapper-text":"Chip-module_chip-wrapper-text__MGQ2X","chip-wrapper-menu-text":"Chip-module_chip-wrapper-menu-text__6-ZGF","chip-number":"Chip-module_chip-number__Y2-Tg","chip-number-wide":"Chip-module_chip-number-wide__qIVlX","chip-menu-dropdown":"Chip-module_chip-menu-dropdown__36ced","chip-menu-item":"Chip-module_chip-menu-item__-u2K-","chip-wrapper-filter":"Chip-module_chip-wrapper-filter__0GhdM"};
|
|
717
|
+
|
|
718
|
+
var ChevronCollapse = function (_a) {
|
|
719
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
720
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { d: "M19 9.69743L13.875 4.57242C13.815 4.50977 13.7429 4.4599 13.6631 4.42583C13.5833 4.39177 13.4975 4.37421 13.4107 4.37421C13.324 4.37421 13.2381 4.39177 13.1583 4.42583C13.0785 4.4599 13.0064 4.50977 12.9464 4.57242L7.82146 9.69743", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M19 17.2688L13.875 22.3938C13.815 22.4565 13.7429 22.5063 13.6631 22.5404C13.5833 22.5745 13.4975 22.592 13.4107 22.592C13.324 22.592 13.2381 22.5745 13.1583 22.5404C13.0785 22.5063 13.0064 22.4565 12.9464 22.3938L7.82146 17.2688", stroke: "#332F37", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
721
|
+
};
|
|
722
|
+
ChevronCollapse.displayName = 'ChevronCollapse';
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Chip component .
|
|
726
|
+
*
|
|
727
|
+
* @param {string} item - The item text or itemGroup displayed in the chip.
|
|
728
|
+
* @param {string[]} itemGroup - The filter items displayed in the dropdown menu.
|
|
729
|
+
* @param {(filter?: string) => void} handleDelete - Callback to chip deletion.
|
|
730
|
+
*
|
|
731
|
+
* @returns {JSX.Element} The rendered Chip component adhering to the design system.
|
|
732
|
+
*/
|
|
733
|
+
var Chip = function (_a) {
|
|
734
|
+
var item = _a.item, itemGroup = _a.itemGroup, handleDelete = _a.handleDelete;
|
|
735
|
+
var _b = useState(false), opened = _b[0], setOpened = _b[1];
|
|
736
|
+
if (itemGroup.length === 0)
|
|
737
|
+
return null;
|
|
738
|
+
// Just one filter
|
|
739
|
+
if (itemGroup.length === 1) {
|
|
740
|
+
return (jsxs(Flex, { className: styles$g['chip-wrapper'], children: [jsx(Text, { variant: "xs", weight: "regular", className: styles$g['chip-wrapper-text'], children: itemGroup[0] }), jsx(ActionIcon, { variant: "light", size: "xs", onClick: function () { return handleDelete(itemGroup[0]); }, children: jsx(Close, { width: "18px", height: "18px" }) })] }));
|
|
741
|
+
}
|
|
742
|
+
// More than one filter
|
|
743
|
+
return (jsxs(Menu$1, { opened: opened, onChange: setOpened, withinPortal: true, position: "bottom-start", closeOnItemClick: false, children: [jsx(Menu$1.Target, { children: jsxs(Flex, { className: styles$g['chip-wrapper'], children: [jsxs(Flex, { className: styles$g['chip-wrapper-menu-text'], children: [jsx(Text, { variant: "xs", weight: "regular", children: item }), jsx(Flex, { className: "".concat(styles$g['chip-number'], " ").concat(itemGroup.length > 9 ? styles$g['chip-number-wide'] : ''), children: jsx(Text, { variant: "xxs", weight: "bold", color: "var(--color-white)", style: { lineHeight: 1 }, children: itemGroup.length }) })] }), jsx(ActionIcon, { variant: "light", size: "xs", onClick: function () { return setOpened(function (o) { return !o; }); }, children: jsx(ChevronCollapse, { width: "24px", height: "24px" }) })] }) }), jsx(Menu$1.Dropdown, { className: styles$g['chip-menu-dropdown'], children: itemGroup.map(function (f) { return (jsx(Menu$1.Item, { className: styles$g['chip-menu-item'], children: jsx(Checkbox, { label: jsxs(Flex, { className: styles$g['chip-wrapper-filter'], children: [jsx(Text, { variant: "xs", weight: "regular", children: f }), jsxs(Text, { variant: "xs", weight: "regular", children: ["(", f.length, ")"] })] }), checked: itemGroup.includes(f), onChange: function () { return handleDelete(f); } }) }, f)); }) })] }));
|
|
744
|
+
};
|
|
745
|
+
Chip.displayName = 'Chip';
|
|
746
|
+
|
|
747
|
+
var dayjs_min$1 = {exports: {}};
|
|
748
|
+
|
|
749
|
+
var dayjs_min = dayjs_min$1.exports;
|
|
750
|
+
|
|
751
|
+
var hasRequiredDayjs_min;
|
|
752
|
+
|
|
753
|
+
function requireDayjs_min () {
|
|
754
|
+
if (hasRequiredDayjs_min) return dayjs_min$1.exports;
|
|
755
|
+
hasRequiredDayjs_min = 1;
|
|
756
|
+
(function (module, exports) {
|
|
757
|
+
!function(t,e){module.exports=e();}(dayjs_min,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return undefined===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
758
|
+
} (dayjs_min$1));
|
|
759
|
+
return dayjs_min$1.exports;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
var dayjs_minExports = requireDayjs_min();
|
|
763
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
764
|
+
|
|
765
|
+
var customParseFormat$2 = {exports: {}};
|
|
766
|
+
|
|
767
|
+
var customParseFormat$1 = customParseFormat$2.exports;
|
|
768
|
+
|
|
769
|
+
var hasRequiredCustomParseFormat;
|
|
770
|
+
|
|
771
|
+
function requireCustomParseFormat () {
|
|
772
|
+
if (hasRequiredCustomParseFormat) return customParseFormat$2.exports;
|
|
773
|
+
hasRequiredCustomParseFormat = 1;
|
|
774
|
+
(function (module, exports) {
|
|
775
|
+
!function(e,t){module.exports=t();}(customParseFormat$1,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return (e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t;}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},c={A:[o,function(e){this.afternoon=d(e,false);}],a:[o,function(e){this.afternoon=d(e,true);}],Q:[n,function(e){this.month=3*(e-1)+1;}],S:[n,function(e){this.milliseconds=100*+e;}],SS:[r,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[r,f("day")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],w:[i,f("week")],ww:[r,f("week")],M:[i,f("month")],MM:[r,f("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(e){this.year=a(e);}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else {var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(undefined!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=true,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if("string"==typeof a){var f=true===o[2],h=true===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date("")}}(t,a,r,n),this.init(),d&&true!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={};}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
776
|
+
} (customParseFormat$2));
|
|
777
|
+
return customParseFormat$2.exports;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
var customParseFormatExports = requireCustomParseFormat();
|
|
781
|
+
var customParseFormat = /*@__PURE__*/getDefaultExportFromCjs(customParseFormatExports);
|
|
782
|
+
|
|
783
|
+
var Calendar = function (props) {
|
|
784
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, d: "M9.58333 5V7.75M22.4167 5V7.75M5 24.25V10.5C5 8.98122 6.23122 7.75 7.75 7.75H24.25C25.7688 7.75 27 8.98122 27 10.5V24.25M5 24.25C5 25.7688 6.23122 27 7.75 27H24.25C25.7688 27 27 25.7688 27 24.25M5 24.25V15.0833C5 13.5646 6.23122 12.3333 7.75 12.3333H24.25C25.7688 12.3333 27 13.5646 27 15.0833V24.25M16 16.9167H16.0092V16.9258H16V16.9167ZM16 19.6667H16.0092V19.6758H16V19.6667ZM16 22.4167H16.0092V22.4258H16V22.4167ZM13.25 19.6667H13.2592V19.6758H13.25V19.6667ZM13.25 22.4167H13.2592V22.4258H13.25V22.4167ZM10.5 19.6667H10.5092V19.6758H10.5V19.6667ZM10.5 22.4167H10.5092V22.4258H10.5V22.4167ZM18.75 16.9167H18.7592V16.9258H18.75V16.9167ZM18.75 19.6667H18.7592V19.6758H18.75V19.6667ZM18.75 22.4167H18.7592V22.4258H18.75V22.4167ZM21.5 16.9167H21.5092V16.9258H21.5V16.9167ZM21.5 19.6667H21.5092V19.6758H21.5V19.6667Z", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
785
|
+
};
|
|
786
|
+
Calendar.displayName = 'Calendar';
|
|
787
|
+
|
|
788
|
+
dayjs.extend(customParseFormat);
|
|
789
|
+
var dateParser = function (value) {
|
|
790
|
+
if (!value || value.length < 6)
|
|
791
|
+
return null;
|
|
792
|
+
var formats = [
|
|
793
|
+
'MMDDYYYY',
|
|
794
|
+
'MM DD YYYY',
|
|
795
|
+
'MM/DD/YYYY',
|
|
796
|
+
'MM / DD / YYYY',
|
|
797
|
+
'M D YYYY',
|
|
798
|
+
'M/D/YYYY',
|
|
799
|
+
];
|
|
800
|
+
var parsedDate = dayjs(value, formats, true);
|
|
801
|
+
return parsedDate.isValid() ? parsedDate.toDate() : null;
|
|
802
|
+
};
|
|
803
|
+
/**
|
|
804
|
+
* DateInput component that extends the Mantine DateInput component.
|
|
805
|
+
*
|
|
806
|
+
* @param {string} placeholder - The placeholder text shown when no date is selected
|
|
807
|
+
* @param {string} name - The name of the input field.
|
|
808
|
+
* @param {Date | null} value - The selected date value.
|
|
809
|
+
* @param {string} label - The label text for the input field
|
|
810
|
+
* @param {Function} onChange - The function to call when the input value changes.
|
|
811
|
+
* @param {string} error - The error message to display below the input.
|
|
812
|
+
* @param {Function} onBlur - Callback function triggered when input loses focus.
|
|
813
|
+
* @param {boolean} holdSpace - Whether to reserve space for error message when no error is present.
|
|
814
|
+
* @param {boolean} hideLabel - Whether to hide the label when it's not required.
|
|
815
|
+
*
|
|
816
|
+
* @example
|
|
817
|
+
* <DateInput
|
|
818
|
+
* label="Select Date"
|
|
819
|
+
* placeholder="Select a date"
|
|
820
|
+
* name="birthDate"
|
|
821
|
+
* value={date}
|
|
822
|
+
* onChange={(newDate) => setDate(newDate)}
|
|
823
|
+
* error={date === null ? "Date is required" : undefined}
|
|
824
|
+
* />
|
|
825
|
+
*/
|
|
826
|
+
var DateInput = function (_a) {
|
|
827
|
+
var _b, _c;
|
|
828
|
+
var _d = _a.disabled, disabled = _d === undefined ? false : _d, error = _a.error, label = _a.label, onBlur = _a.onBlur, onChange = _a.onChange, placeholder = _a.placeholder, value = _a.value, _e = _a.holdSpace, holdSpace = _e === undefined ? true : _e, name = _a.name, _f = _a.hideLabel, hideLabel = _f === undefined ? false : _f, rest = __rest(_a, ["disabled", "error", "label", "onBlur", "onChange", "placeholder", "value", "holdSpace", "name", "hideLabel"]);
|
|
829
|
+
var _g = useState(false), isFocused = _g[0], setIsFocused = _g[1];
|
|
830
|
+
var _h = useState(false), isHovered = _h[0], setIsHovered = _h[1];
|
|
831
|
+
var showLabel = !hideLabel && (isFocused || value);
|
|
832
|
+
var placeHolderValue = showLabel ? placeholder : label;
|
|
833
|
+
var ErrorSection = useMemo(function () {
|
|
834
|
+
return holdSpace && (jsxs(Flex, { className: styles$m.error, gap: 4, ml: 16, style: {
|
|
835
|
+
visibility: error ? 'visible' : 'hidden',
|
|
836
|
+
alignItems: 'flex-start',
|
|
837
|
+
}, children: [jsx(Flex, { style: { flexShrink: 0 }, children: jsx(Info, { width: "18px", height: "18px", viewBox: "0 0 24 24", stroke: "var(--color-red-300)" }) }), jsx(Text, { variant: "xs", className: classNames(styles$m.errorText), children: capitalizeFirstSentenceLetter(error || '') })] }));
|
|
838
|
+
}, [error, holdSpace]);
|
|
839
|
+
var handleBlur = function (e) {
|
|
840
|
+
setIsFocused(false);
|
|
841
|
+
if (onBlur) {
|
|
842
|
+
onBlur(e);
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
return (jsxs("div", { className: styles$m.container, children: [showLabel && (jsx("label", { className: classNames(styles$m.label, (_b = {},
|
|
846
|
+
_b[styles$m.labelError] = error && !isFocused,
|
|
847
|
+
_b[styles$m.labelFocused] = isFocused || isHovered,
|
|
848
|
+
_b[styles$m.labelDisabled] = disabled,
|
|
849
|
+
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onFocus: function () { return setIsFocused(true); }, onBlur: function () { return setIsFocused(false); }, children: jsx(DateInput$1, __assign({ name: name, classNames: {
|
|
850
|
+
input: classNames(styles$m.input, (_c = {},
|
|
851
|
+
_c[styles$m.inputError] = error,
|
|
852
|
+
_c[styles$m.inputRightIcon] = true,
|
|
853
|
+
_c)),
|
|
854
|
+
}, valueFormat: "MM/DD/YYYY", dateParser: dateParser, rightSection: jsx(Calendar, { stroke: "var(--color-neutral-600)", width: "18px", height: "18px", viewBox: "0 0 24 24" }), rightSectionProps: { className: styles$m.rightSection }, placeholder: placeHolderValue, value: value, onChange: onChange, onBlur: handleBlur, error: ErrorSection, inputWrapperOrder: ['label', 'input', 'error'], disabled: disabled }, rest)) })] }));
|
|
855
|
+
};
|
|
856
|
+
DateInput.displayName = 'DateInput';
|
|
857
|
+
|
|
858
|
+
var styles$f = {"code-input":"EnterCodeInput-module_code-input__bCj-T","code-input--2":"EnterCodeInput-module_code-input--2__yoYWJ","code-input--3":"EnterCodeInput-module_code-input--3__0xXFa","code-input--4":"EnterCodeInput-module_code-input--4__stWlP","code-input-error":"EnterCodeInput-module_code-input-error__l8yKQ"};
|
|
859
|
+
|
|
860
|
+
var EnterCodeInput = React.forwardRef(function (props, ref) {
|
|
861
|
+
var className = [
|
|
862
|
+
styles$f['code-input'],
|
|
863
|
+
styles$f["code-input--".concat(props.inline)],
|
|
864
|
+
].join(' ');
|
|
865
|
+
if (props.error) {
|
|
866
|
+
className = [className, styles$f['code-input-error']].join(' ');
|
|
867
|
+
}
|
|
868
|
+
return (jsx("input", __assign({}, (typeof props.field === 'object' ? props.field : {}), props, { ref: ref, name: props.name, autoFocus: true, className: className, type: props.type, maxLength: 6, placeholder: props.placeholder, onChange: props.onChange, onBlur: props.onBlur, onKeyUp: props.onKeyUp, value: props.value })));
|
|
869
|
+
});
|
|
870
|
+
EnterCodeInput.displayName = 'EnterCodeInput';
|
|
871
|
+
|
|
872
|
+
var styles$e = {"container":"FileInput-module_container__PUDhK","dropzone":"FileInput-module_dropzone__y5BNo","dragging":"FileInput-module_dragging__DoJPz","disabled":"FileInput-module_disabled__2Vlih","input":"FileInput-module_input__xiCkj","icon":"FileInput-module_icon__lXNr-","content":"FileInput-module_content__V9dYE","label":"FileInput-module_label__3DYWx","helper":"FileInput-module_helper__vVlYi","fileFormatText":"FileInput-module_fileFormatText__3E24H","fileList":"FileInput-module_fileList__xwhfk"};
|
|
873
|
+
|
|
874
|
+
var styles$d = {"fileItem":"FileUpload-module_fileItem__TQAj3","fileInfo":"FileUpload-module_fileInfo__0Rsbg","successIcon":"FileUpload-module_successIcon__P4ekl","errorIcon":"FileUpload-module_errorIcon__3IUcP","fileName":"FileUpload-module_fileName__iE6N7","fileSize":"FileUpload-module_fileSize__BuAI5","fileMessage":"FileUpload-module_fileMessage__ymYSV","progressBar":"FileUpload-module_progressBar__MYqP0","progress":"FileUpload-module_progress__eXpUX"};
|
|
875
|
+
|
|
876
|
+
var Clock = function (_a) {
|
|
877
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e;
|
|
878
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, stroke: stroke, children: jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M16 8v8h6m6 0c0 6.627-5.373 12-12 12S4 22.627 4 16 9.373 4 16 4s12 5.373 12 12z" }) }));
|
|
879
|
+
};
|
|
880
|
+
Clock.displayName = 'Clock';
|
|
881
|
+
|
|
882
|
+
var Document = function (props) {
|
|
883
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M24.885 8.552l-3.77-3.77c-.5-.5-1.179-.782-1.886-.782H9.667A2.666 2.666 0 007 6.667v18.666A2.666 2.666 0 009.667 28H23a2.666 2.666 0 002.667-2.667V10.437c0-.706-.282-1.385-.782-1.885v0z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M25.667 10.667h-5.334A1.334 1.334 0 0119 9.333V4" })] })));
|
|
884
|
+
};
|
|
885
|
+
Document.displayName = 'Document';
|
|
886
|
+
|
|
887
|
+
var Tick = function (_a) {
|
|
888
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.strokeWidth, strokeWidth = _f === undefined ? 1.5 : _f, _g = _a.outlined, outlined = _g === undefined ? false : _g;
|
|
889
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, children: outlined ? (jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" })) : (jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M26.667 8.667L12 23.333l-6.667-6.666" })) }));
|
|
890
|
+
};
|
|
891
|
+
Tick.displayName = 'Tick';
|
|
892
|
+
|
|
893
|
+
var validateFile = function (file, maxSize, acceptedFormats) {
|
|
894
|
+
var _a;
|
|
895
|
+
if (file.size > maxSize * 1024 * 1024) {
|
|
896
|
+
return {
|
|
897
|
+
isValid: false,
|
|
898
|
+
error: "File size must be less than ".concat(maxSize, "MB"),
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
var fileExtension = '.' + ((_a = file.name.split('.').pop()) === null || _a === undefined ? undefined : _a.toLowerCase());
|
|
902
|
+
if (!acceptedFormats.includes(fileExtension)) {
|
|
903
|
+
return {
|
|
904
|
+
isValid: false,
|
|
905
|
+
error: "File must be ".concat(acceptedFormats.join(', ')),
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
return { isValid: true };
|
|
909
|
+
};
|
|
910
|
+
var getIcon$1 = function (status) {
|
|
911
|
+
switch (status) {
|
|
912
|
+
case 'uploaded':
|
|
913
|
+
return (jsx(Tick, { outlined: true, stroke: "var(--color-green-400)", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24" }));
|
|
914
|
+
case 'failed':
|
|
915
|
+
return (jsx(Info, { stroke: "var(--color-red-400)", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24" }));
|
|
916
|
+
case 'duplicate':
|
|
917
|
+
return (jsx(Info, { stroke: "var(--color-orange-400)", width: "1.5rem", height: "1.5rem", viewBox: "0 0 24 24" }));
|
|
918
|
+
case 'uploading':
|
|
919
|
+
return (jsx(Clock, { stroke: "var(--color-neutral-400)", width: "1.5rem", height: "1.5rem", viewBox: "0 0 32 32" }));
|
|
920
|
+
case 'previously-uploaded':
|
|
921
|
+
return (jsx(Document, { stroke: "var(--color-neutral-600)", width: "1.5rem", height: "1.5rem", viewBox: "0 0 32 32" }));
|
|
922
|
+
default:
|
|
923
|
+
return null;
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
var getMessage = function (status, message, progress) {
|
|
927
|
+
if (status === 'failed') {
|
|
928
|
+
if (message === null || message === undefined ? undefined : message.includes('-')) {
|
|
929
|
+
var _a = message.split('-'), errorReason = _a[0], errorMessage = _a[1];
|
|
930
|
+
return (jsxs(Text, { className: styles$d.fileMessage, color: "var(--color-red-400)", children: [jsx("strong", { children: errorReason }), " - ", errorMessage] }));
|
|
931
|
+
}
|
|
932
|
+
return (jsx(Text, { className: styles$d.fileMessage, color: "var(--color-red-400)", children: message }));
|
|
933
|
+
}
|
|
934
|
+
if (status === 'duplicate') {
|
|
935
|
+
if (message === null || message === undefined ? undefined : message.includes('-')) {
|
|
936
|
+
var _b = message.split('-'), errorReason = _b[0], errorMessage = _b[1];
|
|
937
|
+
return (jsxs(Text, { className: styles$d.fileMessage, color: "var(--color-orange-400)", children: [jsx("strong", { children: errorReason }), " - ", errorMessage] }));
|
|
938
|
+
}
|
|
939
|
+
return (jsx(Text, { className: styles$d.fileMessage, color: "var(--color-orange-400)", children: message }));
|
|
940
|
+
}
|
|
941
|
+
if (status === 'uploading') {
|
|
942
|
+
return (jsxs(Flex, { align: "center", gap: 24, children: [jsx(Flex, { className: styles$d.progressBar, children: jsx(Flex, { className: styles$d.progress, w: "".concat(progress, "%") }) }), jsxs(Text, { color: "var(--color-neutral-500)", variant: "m", style: { margin: 0 }, children: [progress, "%"] })] }));
|
|
943
|
+
}
|
|
944
|
+
if (status === 'previously-uploaded') {
|
|
945
|
+
return (jsx(Text, { className: styles$d.fileMessage, color: "var(--color-green-400)", children: message }));
|
|
946
|
+
}
|
|
947
|
+
if (status === 'uploaded') {
|
|
948
|
+
return (jsx(Text, { className: styles$d.fileMessage, color: "var(--color-green-400)", children: message }));
|
|
949
|
+
}
|
|
950
|
+
return null;
|
|
951
|
+
};
|
|
952
|
+
var parseFileSize = function (size) {
|
|
953
|
+
if (size < 1024) {
|
|
954
|
+
return "".concat(size, " B");
|
|
955
|
+
}
|
|
956
|
+
if (size < 1024 * 1024) {
|
|
957
|
+
return "".concat((size / 1024).toFixed(2), " KB");
|
|
958
|
+
}
|
|
959
|
+
return "".concat((size / (1024 * 1024)).toFixed(2), " MB");
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
var FileUpload = function (_a) {
|
|
963
|
+
var id = _a.id, name = _a.name, size = _a.size, status = _a.status, message = _a.message, progress = _a.progress, removeFile = _a.removeFile;
|
|
964
|
+
return (jsxs(Fragment, { children: [jsx(Divider, { color: "var(--color-neutral-300)" }), jsxs("div", { className: styles$d.fileItem, children: [jsxs("div", { className: styles$d.fileInfo, children: [getIcon$1(status), jsxs(Flex, { direction: "column", w: "100%", children: [jsx(Text, { className: styles$d.fileName, children: name }), jsx(Text, { className: styles$d.fileSize, color: "var(--color-neutral-500)", children: parseFileSize(size) }), getMessage(status, message, progress)] })] }), removeFile && (jsx(ActionIcon, { variant: "light", size: 'md', onClick: function () { return removeFile(id); }, "aria-label": "Remove ".concat(name), children: jsx(Close, {}) }))] }, "".concat(name, "-").concat(id))] }));
|
|
965
|
+
};
|
|
966
|
+
FileUpload.displayName = 'FileUpload';
|
|
967
|
+
|
|
968
|
+
var Upload = function (props) {
|
|
969
|
+
return (jsxs(Icon, __assign({}, props, { viewBox: props.viewBox || '0 0 42 42', stroke: props.stroke || 'currentColor', children: [jsx("path", { d: "M16.5007 25.8333V16.5", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M13.6113 19.1667L16.5007 16.2773L19.39 19.1667", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M21.8326 25.8334H25.2459C27.8166 25.8334 29.9126 23.7374 29.9126 21.1667C29.9126 18.5961 27.8166 16.5001 25.2459 16.5001H24.6659V15.1667C24.6659 10.7534 21.0793 7.16675 16.6659 7.16675C12.6966 7.16675 9.40594 10.0707 8.78194 13.8641C5.6126 14.0254 3.08594 16.6241 3.08594 19.8334C3.08594 23.1467 5.7726 25.8334 9.08594 25.8334H11.1659", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
970
|
+
};
|
|
971
|
+
Upload.displayName = 'Upload';
|
|
972
|
+
|
|
973
|
+
var FileInput = function (_a) {
|
|
974
|
+
var _b;
|
|
975
|
+
var _c = _a === undefined ? {} : _a, _d = _c.files, files = _d === undefined ? [] : _d, _e = _c.maxSize, maxSize = _e === undefined ? 25 : _e, _f = _c.acceptedFormats, acceptedFormats = _f === undefined ? ['.pdf', '.jpg', '.jpeg', '.png'] : _f, onFileSelect = _c.onFileSelect, onFileRemove = _c.onFileRemove, _g = _c.label, label = _g === undefined ? 'documents' : _g, _h = _c.helperText, helperText = _h === undefined ? '' : _h, _j = _c.errorMessage, errorMessage = _j === undefined ? 'Please remove failed document and try again' : _j, disabled = _c.disabled;
|
|
976
|
+
var _k = useState(false), isDragging = _k[0], setIsDragging = _k[1];
|
|
977
|
+
var handleFiles = function (newFiles) {
|
|
978
|
+
var newFilesArray = Array.from(newFiles);
|
|
979
|
+
var newFileUploads = newFilesArray.map(function (file) {
|
|
980
|
+
var checkedFile = validateFile(file, maxSize, acceptedFormats);
|
|
981
|
+
return {
|
|
982
|
+
file: file,
|
|
983
|
+
id: "".concat(file.name, "-").concat(Date.now()),
|
|
984
|
+
name: file.name,
|
|
985
|
+
size: file.size,
|
|
986
|
+
status: checkedFile.isValid
|
|
987
|
+
? 'uploading'
|
|
988
|
+
: 'failed',
|
|
989
|
+
message: checkedFile.isValid ? 'Uploading...' : checkedFile.error,
|
|
990
|
+
progress: checkedFile.isValid ? 0 : undefined,
|
|
991
|
+
};
|
|
992
|
+
});
|
|
993
|
+
onFileSelect === null || onFileSelect === undefined ? undefined : onFileSelect(__spreadArray(__spreadArray([], files, true), newFileUploads, true));
|
|
994
|
+
};
|
|
995
|
+
var handleDragOver = function (e) {
|
|
996
|
+
e.preventDefault();
|
|
997
|
+
setIsDragging(true);
|
|
998
|
+
};
|
|
999
|
+
var handleDragLeave = function (e) {
|
|
1000
|
+
e.preventDefault();
|
|
1001
|
+
setIsDragging(false);
|
|
1002
|
+
};
|
|
1003
|
+
var handleDrop = function (e) {
|
|
1004
|
+
e.preventDefault();
|
|
1005
|
+
setIsDragging(false);
|
|
1006
|
+
handleFiles(e.dataTransfer.files);
|
|
1007
|
+
};
|
|
1008
|
+
var handleFileInput = function (e) {
|
|
1009
|
+
var _a;
|
|
1010
|
+
if ((_a = e.target.files) === null || _a === undefined ? undefined : _a.length) {
|
|
1011
|
+
handleFiles(e.target.files);
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
var removeFile = function (fileId) {
|
|
1015
|
+
onFileRemove === null || onFileRemove === undefined ? undefined : onFileRemove(fileId);
|
|
1016
|
+
};
|
|
1017
|
+
var color = "var(--color-neutral-".concat(disabled ? 500 : 600, ")");
|
|
1018
|
+
var fileFormatText = "File format must be ".concat(acceptedFormats
|
|
1019
|
+
.join(', ')
|
|
1020
|
+
.slice('.'.length)
|
|
1021
|
+
.toUpperCase(), ". Max file size: ").concat(maxSize, "MB");
|
|
1022
|
+
return (jsxs(Fragment, { children: [jsx("div", { className: styles$e.container, children: jsxs("div", { className: classNames(styles$e.dropzone, (_b = {},
|
|
1023
|
+
_b[styles$e.dragging] = isDragging,
|
|
1024
|
+
_b[styles$e.disabled] = disabled,
|
|
1025
|
+
_b)), onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [jsx("input", { type: "file", accept: acceptedFormats.join(','), onChange: handleFileInput, className: styles$e.input, "aria-label": label, disabled: disabled, multiple: true }), jsx("div", { className: styles$e.icon, children: jsx(Upload, { stroke: color, width: "2.6rem", height: "2.6rem", viewBox: "0 0 40 40" }) }), jsxs("div", { className: styles$e.content, children: [jsxs(Flex, { gap: 4, children: [jsx(Text, { variant: "m", weight: "medium", color: color, children: "Drag or" }), jsxs(Text, { variant: "m", weight: "medium", color: color, style: { textDecoration: 'underline' }, children: ["click to upload ", label] })] }), jsx(Text, { className: styles$e.fileFormatText, color: color, children: fileFormatText })] })] }) }), files.some(function (f) { return f.status === 'failed'; }) ? (jsx(Text, { variant: "xs", className: styles$e.helper, children: errorMessage })) : (jsx(Text, { variant: "xs", className: styles$e.helper, children: helperText })), files.length > 0 && (jsx(Flex, { className: styles$e.fileList, children: files.map(function (_a, index) {
|
|
1026
|
+
var file = _a.file, rest = __rest(_a, ["file"]);
|
|
1027
|
+
return (jsx(FileUpload, __assign({ file: file, removeFile: removeFile }, rest), "".concat(file.name, "-").concat(index)));
|
|
1028
|
+
}) }))] }));
|
|
1029
|
+
};
|
|
1030
|
+
FileInput.displayName = 'FileInput';
|
|
1031
|
+
|
|
1032
|
+
var styles$c = {"flex":"IncrementNumber-module_flex__Zo8-v","increment-button":"IncrementNumber-module_increment-button__qpw2X"};
|
|
1033
|
+
|
|
1034
|
+
var IncrementNumber = function (props) {
|
|
1035
|
+
var formatter = new Intl.NumberFormat('en-US', {
|
|
1036
|
+
style: 'currency',
|
|
1037
|
+
currency: 'USD',
|
|
1038
|
+
});
|
|
1039
|
+
return (jsxs("div", { className: styles$c['flex'], children: [props.disableDecrease ? (jsx("div", { style: { width: 24 } })) : (jsx("button", { className: styles$c['increment-button'], onClick: function () { return props.handleDecrease(props.value); }, children: jsx("img", { src: props.minusIconPath, width: 24, height: 24, alt: "-", style: {
|
|
1040
|
+
maxWidth: '100%',
|
|
1041
|
+
height: 'auto',
|
|
1042
|
+
} }) })), jsx(Text, { variant: "m", weight: "regular", style: { minWidth: 120 }, children: formatter.format(props.value) }), props.disableIncrease ? (jsx("div", { style: { width: 24 } })) : (jsx("button", { className: styles$c['increment-button'], onClick: function () { return props.handleIncrease(props.value); }, children: jsx("img", { src: props.plusIconPath, width: 24, height: 24, alt: "+", style: {
|
|
1043
|
+
maxWidth: '100%',
|
|
1044
|
+
height: 'auto',
|
|
1045
|
+
} }) }))] }));
|
|
1046
|
+
};
|
|
1047
|
+
IncrementNumber.displayName = 'IncrementNumber';
|
|
1048
|
+
|
|
1049
|
+
var EyeHide = function (props) {
|
|
1050
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M16 25.333c-1.123 0-2.247-.237-3.339-.66M16 25.333c4.66 0 9.32-4.044 11.843-8.709.209-.388.209-.859 0-1.247a20.174 20.174 0 00-2.404-3.482M6.667 25.333L25.333 6.667M13.031 18.969a4.2 4.2 0 015.94-5.94m3.754-3.754C20.663 7.679 18.331 6.667 16 6.667c-4.66 0-9.32 4.044-11.843 8.71-.209.388-.209.859 0 1.247 1.262 2.332 3.056 4.508 5.118 6.103" }) })));
|
|
1051
|
+
};
|
|
1052
|
+
EyeHide.displayName = 'EyeHide';
|
|
1053
|
+
|
|
1054
|
+
var EyeShow = function (props) {
|
|
1055
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M18.83 13.173a4.005 4.005 0 010 5.66 4.005 4.005 0 01-5.66 0 4.005 4.005 0 010-5.66 4 4 0 015.66 0z", clipRule: "evenodd" }), jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M4 16c0-.879.203-1.748.595-2.55C6.615 9.322 11.079 6.668 16 6.668c4.921 0 9.385 2.654 11.405 6.784.392.801.595 1.67.595 2.549s-.203 1.748-.595 2.55c-2.02 4.129-6.484 6.783-11.405 6.783-4.921 0-9.385-2.654-11.405-6.784A5.795 5.795 0 014 16z", clipRule: "evenodd" })] })));
|
|
1056
|
+
};
|
|
1057
|
+
EyeShow.displayName = 'EyeShow';
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* PasswordInput component
|
|
1061
|
+
* It allows toggling visibility of the password.
|
|
1062
|
+
* It extends the Input component.
|
|
1063
|
+
*
|
|
1064
|
+
* @param {string} name - The name of the input password field.
|
|
1065
|
+
* @param {string} label - The label for the input password field.
|
|
1066
|
+
* @param {string} placeholder - The placeholder text for the input password field.
|
|
1067
|
+
* @param {string} value - The value of the input password field.
|
|
1068
|
+
* @param {function} onChange - The function to call when the input password value changes.
|
|
1069
|
+
* @param {function} onBlur - The function to call when the input password loses focus.
|
|
1070
|
+
* @param {string} error - The error message to display.
|
|
1071
|
+
* @param {boolean} disabled - Whether to disable the input password field.
|
|
1072
|
+
* @param {boolean} defaultVisible - Whether to show the password by default.
|
|
1073
|
+
*
|
|
1074
|
+
* @return Attaches PasswordInput to target element and displays options
|
|
1075
|
+
*
|
|
1076
|
+
* @example
|
|
1077
|
+
* <PasswordInput
|
|
1078
|
+
* name="password"
|
|
1079
|
+
* label="Password"
|
|
1080
|
+
* placeholder="Password"
|
|
1081
|
+
* value={password}
|
|
1082
|
+
* onChange={(e) => setPassword(e.target.value)}
|
|
1083
|
+
* onBlur={() => console.log('Password blurred')}
|
|
1084
|
+
* error="Password is required"
|
|
1085
|
+
* />
|
|
1086
|
+
*
|
|
1087
|
+
*/
|
|
1088
|
+
var PasswordInput = function (_a) {
|
|
1089
|
+
var name = _a.name, label = _a.label, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, error = _a.error, _b = _a.disabled, disabled = _b === undefined ? false : _b, _c = _a.defaultVisible, defaultVisible = _c === undefined ? false : _c, rest = __rest(_a, ["name", "label", "placeholder", "value", "onChange", "onBlur", "error", "disabled", "defaultVisible"]);
|
|
1090
|
+
var _d = useState(defaultVisible), showPassword = _d[0], setShowPassword = _d[1];
|
|
1091
|
+
var togglePasswordVisibility = function () {
|
|
1092
|
+
setShowPassword(function (prevShowPassword) { return !prevShowPassword; });
|
|
1093
|
+
};
|
|
1094
|
+
return (jsx(Input, __assign({ "data-testid": name, name: name, label: label, disabled: disabled, placeholder: placeholder, type: showPassword ? 'text' : 'password', value: value, onChange: onChange, onBlur: onBlur, error: error, rightSection: jsx(Flex, { onClick: !disabled ? togglePasswordVisibility : undefined, align: 'center', style: {
|
|
1095
|
+
cursor: !disabled ? 'pointer' : 'default',
|
|
1096
|
+
opacity: disabled ? 0.5 : 1,
|
|
1097
|
+
}, children: showPassword ? (jsx(EyeShow, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) : (jsx(EyeHide, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) }) }, rest)));
|
|
1098
|
+
};
|
|
1099
|
+
PasswordInput.displayName = 'PasswordInput';
|
|
1100
|
+
|
|
1101
|
+
var styles$b = {"link":"Link-module_link__8oxip","s":"Link-module_s__YsU8H","m":"Link-module_m__8-UFj","bold":"Link-module_bold__H3baG","medium":"Link-module_medium__nuncU","regular":"Link-module_regular__4VBH2","disabledUnderlined":"Link-module_disabledUnderlined__rLghi"};
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
*
|
|
1105
|
+
* Link component is used to create hyperlinks to navigate to different URLs
|
|
1106
|
+
* You can control the appearance and behavior of the link using various props
|
|
1107
|
+
*
|
|
1108
|
+
* @param variant - Link variant (e.g., 's', 'm')
|
|
1109
|
+
* @param weight - Link weight (e.g., 'medium')
|
|
1110
|
+
* @param href - URL the link points to
|
|
1111
|
+
* @param target - Specifies where to open the linked document (e.g., '_self', '_blank')
|
|
1112
|
+
* @param disabledUnderlined - If true, the link will not be underlined
|
|
1113
|
+
* @param rel - Specifies the relationship between the current document and the linked document
|
|
1114
|
+
* @param children - The content of the link
|
|
1115
|
+
*
|
|
1116
|
+
* @example
|
|
1117
|
+
* <Link href="https://example.com" target="_blank" rel="noopener noreferrer">
|
|
1118
|
+
* Visit Example
|
|
1119
|
+
* </Link>
|
|
1120
|
+
*
|
|
1121
|
+
* @example
|
|
1122
|
+
* <Link href="https://example.com" noUnderline>
|
|
1123
|
+
* Visit Example without Underline
|
|
1124
|
+
* </Link>
|
|
1125
|
+
*
|
|
1126
|
+
* @returns Rendered Link component
|
|
1127
|
+
*/
|
|
1128
|
+
var Link = function (_a) {
|
|
1129
|
+
var children = _a.children, variant = _a.variant, weight = _a.weight, href = _a.href, target = _a.target, _b = _a.disabledUnderlined, disabledUnderlined = _b === undefined ? false : _b, rel = _a.rel, rest = __rest(_a, ["children", "variant", "weight", "href", "target", "disabledUnderlined", "rel"]);
|
|
1130
|
+
return (jsx("a", __assign({}, rest, { href: href || '#', target: target, rel: rel, className: [
|
|
1131
|
+
styles$b['link'],
|
|
1132
|
+
styles$b[variant || ''],
|
|
1133
|
+
styles$b[weight || ''],
|
|
1134
|
+
disabledUnderlined ? styles$b['disabledUnderlined'] : '',
|
|
1135
|
+
].join(' '), children: children })));
|
|
1136
|
+
};
|
|
1137
|
+
Link.displayName = 'Link';
|
|
1138
|
+
|
|
1139
|
+
var styles$a = {"modal":"Modal-module_modal__gMPgi","body":"Modal-module_body__OhLb0","header":"Modal-module_header__5sBzU"};
|
|
1140
|
+
|
|
1141
|
+
var Modal = function (_a) {
|
|
1142
|
+
var isOpen = _a.isOpen, onClose = _a.onClose, noLabel = _a.noLabel, yesLabel = _a.yesLabel, invertColors = _a.invertColors, underButton = _a.underButton, no = _a.no, yes = _a.yes, _b = _a.size, size = _b === undefined ? 'sm' : _b, _c = _a.padding, padding = _c === undefined ? 'sm' : _c, _d = _a.customRadius, customRadius = _d === undefined ? 16 : _d, children = _a.children;
|
|
1143
|
+
var handleClose = function () {
|
|
1144
|
+
if (onClose) {
|
|
1145
|
+
onClose();
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
var sizeMap = {
|
|
1149
|
+
sm: '512px',
|
|
1150
|
+
md: '646px',
|
|
1151
|
+
lg: '780px',
|
|
1152
|
+
xl: '900px',
|
|
1153
|
+
full: '100%',
|
|
1154
|
+
};
|
|
1155
|
+
var paddingMap = {
|
|
1156
|
+
sm: '4px 24px 32px 24px',
|
|
1157
|
+
md: '4px 64px 64px 64px',
|
|
1158
|
+
};
|
|
1159
|
+
return (jsxs(Modal$1, { opened: isOpen, onClose: handleClose, withCloseButton: onClose !== undefined, size: sizeMap[size], fullScreen: size === 'full', radius: customRadius, closeButtonProps: {
|
|
1160
|
+
'aria-label': 'Close modal',
|
|
1161
|
+
title: 'Close modal',
|
|
1162
|
+
icon: jsx(Close, { fill: "var(--color-neutral-200)" }),
|
|
1163
|
+
}, classNames: {
|
|
1164
|
+
content: styles$a.modal,
|
|
1165
|
+
body: styles$a.body,
|
|
1166
|
+
header: styles$a.header,
|
|
1167
|
+
}, styles: {
|
|
1168
|
+
body: {
|
|
1169
|
+
padding: paddingMap[padding],
|
|
1170
|
+
},
|
|
1171
|
+
}, centered: true, children: [children, jsxs(Flex, { direction: 'column', gap: 16, w: 312, children: [noLabel && (jsx(Button, { variant: invertColors ? 'filled' : 'outlined', onClick: no, label: noLabel })), yesLabel && (jsx(Button, { variant: invertColors ? 'outlined' : 'filled', onClick: yes, label: yesLabel }))] }), underButton] }));
|
|
1172
|
+
};
|
|
1173
|
+
Modal.displayName = 'Modal';
|
|
1174
|
+
|
|
1175
|
+
var LinkModal = function (props) {
|
|
1176
|
+
var _a = React.useState(false), modalIsOpen = _a[0], setModalIsOpen = _a[1];
|
|
1177
|
+
return (jsxs(Fragment, { children: [jsx("a", { onClick: function () { return setModalIsOpen(!modalIsOpen); }, children: jsx(Text, { variant: "xs", weight: "regular", color: "var(--color-primary-300)", style: {
|
|
1178
|
+
textDecoration: 'underline',
|
|
1179
|
+
}, children: props.label }) }), jsx(Modal, { isOpen: modalIsOpen, onClose: function () { return setModalIsOpen(false); }, children: props.children })] }));
|
|
1180
|
+
};
|
|
1181
|
+
LinkModal.displayName = 'LinkModal';
|
|
1182
|
+
|
|
1183
|
+
var Warning = function (_a) {
|
|
1184
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.fill, fill = _e === undefined ? 'transparent' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f, _g = _a.rotate, rotate = _g === undefined ? 0 : _g, _h = _a.strokeWidth, strokeWidth = _h === undefined ? 1.5 : _h;
|
|
1185
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, style: {
|
|
1186
|
+
transition: 'transform 0.25s ease',
|
|
1187
|
+
transform: "rotate(".concat(rotate, "deg)"),
|
|
1188
|
+
}, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M12.001 16a.25.25 0 10-.002-.5.25.25 0 00.002.5" }), jsx("path", { fillRule: "evenodd", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M12 3v0a9 9 0 019 9v0a9 9 0 01-9 9v0a9 9 0 01-9-9v0a9 9 0 019-9z", clipRule: "evenodd" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M12 12V7" })] }));
|
|
1189
|
+
};
|
|
1190
|
+
Warning.displayName = 'Warning';
|
|
1191
|
+
|
|
1192
|
+
var styles$9 = {"message":"Message-module_message__HyLo0","general":"Message-module_general__jNnP2","alert":"Message-module_alert__3mQLB","negative":"Message-module_negative__H-tsT","positive":"Message-module_positive__CU0EL","center":"Message-module_center__Y4KjG","top":"Message-module_top__J-o9d","bottom":"Message-module_bottom__2p2bW"};
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Message component for displaying feedback to the user.
|
|
1196
|
+
* The message can be positive, negative, alert, or general.
|
|
1197
|
+
*
|
|
1198
|
+
* @param {string | ReactNode} content - The message to display, or a ReactNode for more complex messages.
|
|
1199
|
+
* @param {string} variant - The variant of the message (currently only in form).
|
|
1200
|
+
* @param {string} status - The status of the message, controls the icon and colors used.
|
|
1201
|
+
* @param {string} iconAlignment - The alignment of the icon (top, center, bottom).
|
|
1202
|
+
*
|
|
1203
|
+
* @returns {JSX.Element} The rendered Message component with one of the status icons and the message text.
|
|
1204
|
+
*
|
|
1205
|
+
*/
|
|
1206
|
+
var getIcon = function (status) {
|
|
1207
|
+
switch (status) {
|
|
1208
|
+
case 'positive':
|
|
1209
|
+
return (jsx(Tick, { outlined: true, height: "1.5rem", width: "1.5rem", viewBox: "0 0 24 24", stroke: "var(--color-secondary-500)" }));
|
|
1210
|
+
case 'negative':
|
|
1211
|
+
return (jsx(Close, { height: "1.5rem", width: "1.5rem", viewBox: "0 0 24 24", stroke: "var(--color-red-400)", outlined: true }));
|
|
1212
|
+
case 'alert':
|
|
1213
|
+
return (jsx(Warning, { height: "1.5rem", width: "1.5rem", viewBox: "0 0 24 24", stroke: "var(--color-orange-400)" }));
|
|
1214
|
+
case 'general':
|
|
1215
|
+
return (jsx(Info, { height: "1.5rem", width: "1.5rem", viewBox: "0 0 24 24", stroke: "var(--color-primary-400)" }));
|
|
1216
|
+
default:
|
|
1217
|
+
return (jsx(Info, { height: "1.5rem", width: "1.5rem", viewBox: "0 0 24 24", stroke: "var(--color-primary-400)" }));
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
var Message = function (_a) {
|
|
1221
|
+
var content = _a.content, _b = _a.variant, variant = _b === undefined ? 'form' : _b, _c = _a.status, status = _c === undefined ? 'general' : _c, _d = _a.iconAlignment, iconAlignment = _d === undefined ? 'center' : _d;
|
|
1222
|
+
return (jsxs(Flex, { className: classNames(styles$9.message, styles$9[status], styles$9[variant]), children: [jsx(Flex, { className: styles$9[iconAlignment], children: getIcon(status) }), typeof content === 'string' ? (jsx(Text, { variant: "xs", children: content })) : (content)] }));
|
|
1223
|
+
};
|
|
1224
|
+
Message.displayName = 'Message';
|
|
1225
|
+
|
|
1226
|
+
var navBarStyles = {"navbar":"NavBar-module_navbar__3OCDa","navbar--dropdown-open":"NavBar-module_navbar--dropdown-open__TvIog","menu":"NavBar-module_menu__fGeeH","menuItem":"NavBar-module_menuItem__8KGYg","menuItemText":"NavBar-module_menuItemText__Kxzya","menuItemText--bold":"NavBar-module_menuItemText--bold__yk0mx","subnav":"NavBar-module_subnav__La94z","subnavItem":"NavBar-module_subnavItem__5tx9r","rightContent":"NavBar-module_rightContent__0OzKi","overlay":"NavBar-module_overlay__vFvhS"};
|
|
1227
|
+
|
|
1228
|
+
var Umbrello = function (props) {
|
|
1229
|
+
return (jsx(Icon, __assign({}, props, { stroke: "none", children: jsx("path", { fill: props.fill, d: "M69.83 6.6h-3.982v8.951c0 2.41-1.554 4.167-3.788 4.167-2.007 0-3.4-1.563-3.4-3.809V6.6h-3.95v10.157c0 3.841 2.397 6.51 6.055 6.51 2.331 0 4.177-1.009 5.083-2.8v2.54h3.982V6.599zM72.263 23.006h3.982v-9.408c0-2.311 1.327-3.841 3.431-3.841 1.91 0 3.109 1.53 3.109 3.841v9.408h3.95v-9.408c0-2.311 1.327-3.841 3.464-3.841 1.91 0 3.108 1.53 3.108 3.841v9.408h3.95V12.394c0-3.483-2.267-6.055-5.796-6.055-2.59 0-4.662 1.432-5.406 3.125-.713-2.018-2.493-3.125-5.084-3.125-2.298 0-3.917 1.172-4.726 2.832V6.599h-3.983v16.407zM108.583 23.266c4.888 0 7.77-3.45 7.77-8.463 0-5.014-2.882-8.464-7.706-8.464-2.104 0-3.852.911-4.791 2.246V.733h-3.95v22.273h3.95v-2.05c.939 1.431 2.752 2.31 4.727 2.31zm-.583-3.45c-2.655 0-4.403-1.986-4.403-5.013 0-3.028 1.748-5.014 4.403-5.014 2.655 0 4.403 1.986 4.403 5.014 0 3.027-1.748 5.013-4.403 5.013zM127.996 9.952V6.6h-1.91c-2.105 0-3.367.814-4.177 2.897V6.6h-3.982v16.407h3.982v-7.748c0-3.125 1.004-5.306 3.529-5.306h2.558zM139.79 17.537c-.421 1.563-1.749 2.409-3.788 2.409-2.525 0-4.209-1.693-4.5-4.33h12.043c.033-.325.065-.813.065-1.367 0-3.906-2.46-7.91-7.932-7.91-5.342 0-7.997 4.069-7.997 8.399 0 4.296 2.979 8.528 8.321 8.528 4.014 0 7.058-2.246 7.673-5.729h-3.885zm-4.112-8.203c2.363 0 3.788 1.562 3.95 3.646h-8.029c.421-2.474 1.845-3.646 4.079-3.646zM145.449 23.006h3.95V.733h-3.95v22.273zM152.283 23.006h3.95V.733h-3.95v22.273zM166.564 23.266c4.954 0 8.515-3.58 8.515-8.463 0-4.883-3.561-8.464-8.515-8.464-4.986 0-8.547 3.58-8.547 8.464 0 4.883 3.561 8.463 8.547 8.463zm0-3.45c-2.719 0-4.532-2.051-4.532-5.013 0-2.963 1.813-5.014 4.532-5.014 2.687 0 4.5 2.051 4.5 5.014 0 2.962-1.813 5.013-4.5 5.013zM.004 23.266a22.293 22.293 0 011.541-8.59A22.123 22.123 0 016.26 7.36a21.876 21.876 0 017.152-4.903 21.7 21.7 0 0116.948 0 21.876 21.876 0 017.152 4.903 22.126 22.126 0 014.714 7.317 22.295 22.295 0 011.541 8.59H.004z" }) })));
|
|
1230
|
+
};
|
|
1231
|
+
Umbrello.displayName = 'Umbrello';
|
|
1232
|
+
|
|
1233
|
+
var NavBar = function (_a) {
|
|
1234
|
+
var _b;
|
|
1235
|
+
var homePath = _a.homePath, logo = _a.logo, links = _a.links, rightContent = _a.rightContent, currentPath = _a.currentPath, onLinkClick = _a.onLinkClick, rest = __rest(_a, ["homePath", "logo", "links", "rightContent", "currentPath", "onLinkClick"]);
|
|
1236
|
+
var _c = useState(null), expandedIdx = _c[0], setExpandedIdx = _c[1];
|
|
1237
|
+
var _d = useState(0), dropdownHeight = _d[0], setDropdownHeight = _d[1];
|
|
1238
|
+
var dropdownRef = useRef(null);
|
|
1239
|
+
useLayoutEffect(function () {
|
|
1240
|
+
if (expandedIdx !== null && dropdownRef.current) {
|
|
1241
|
+
setDropdownHeight(dropdownRef.current.offsetHeight);
|
|
1242
|
+
}
|
|
1243
|
+
else {
|
|
1244
|
+
setDropdownHeight(0);
|
|
1245
|
+
}
|
|
1246
|
+
}, [expandedIdx, links]);
|
|
1247
|
+
var isSubitemActive = function (item) { var _a; return (_a = item.subitems) === null || _a === undefined ? undefined : _a.some(function (sub) { return currentPath === null || currentPath === undefined ? undefined : currentPath.startsWith(sub.href); }); };
|
|
1248
|
+
var handleNavigation = function (e, href) {
|
|
1249
|
+
if (!href)
|
|
1250
|
+
return;
|
|
1251
|
+
if (onLinkClick) {
|
|
1252
|
+
e.preventDefault();
|
|
1253
|
+
onLinkClick(href);
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
return (jsxs(Fragment, { children: [expandedIdx !== null && jsx(Box, { className: navBarStyles.overlay }), jsxs(Flex, __assign({ bg: "var(--color-white)", align: "center", justify: "space-between", component: "nav", gap: 16, className: navBarStyles.navbar +
|
|
1257
|
+
(expandedIdx !== null
|
|
1258
|
+
? ' ' + navBarStyles['navbar--dropdown-open']
|
|
1259
|
+
: '') }, rest, { style: __assign({ position: 'relative' }, (expandedIdx !== null
|
|
1260
|
+
? (_b = {}, _b['--navbar-dropdown-height'] = "".concat(dropdownHeight, "px"), _b) : {})), children: [jsx("a", { href: homePath || '/', style: { zIndex: 999 }, children: logo || (jsx(Umbrello, { fill: "var(--color-neutral-600)", width: "200", height: "40", viewBox: "0 0 200 40" })) }), jsxs(Flex, { align: "center", role: "menubar", className: navBarStyles.menu, children: [jsx(Flex, { role: "menu", gap: 24, children: links === null || links === undefined ? undefined : links.map(function (item, idx) {
|
|
1261
|
+
var _a, _b, _c;
|
|
1262
|
+
var hasSubitems = !!((_a = item.subitems) === null || _a === undefined ? undefined : _a.length);
|
|
1263
|
+
var subActive = isSubitemActive(item);
|
|
1264
|
+
return (jsxs(Box, { className: navBarStyles.menuItem, onMouseEnter: function () {
|
|
1265
|
+
hasSubitems && setExpandedIdx(idx);
|
|
1266
|
+
}, onMouseLeave: function () {
|
|
1267
|
+
setExpandedIdx(null);
|
|
1268
|
+
}, children: [hasSubitems ? (jsx(Text, { className: navBarStyles.menuItemText +
|
|
1269
|
+
(subActive
|
|
1270
|
+
? ' ' + navBarStyles['menuItemText--bold']
|
|
1271
|
+
: ''), "data-text": item.title, children: item.title })) : (jsx("a", { onClick: function (e) {
|
|
1272
|
+
setExpandedIdx(null);
|
|
1273
|
+
handleNavigation(e, item.href);
|
|
1274
|
+
}, className: navBarStyles.menuItemText, href: (_b = item.href) !== null && _b !== undefined ? _b : '', "data-text": item.title, children: item.title })), expandedIdx === idx && hasSubitems && (jsx(Flex, { className: navBarStyles.subnav, direction: "column", ref: dropdownRef, children: (_c = item === null || item === undefined ? undefined : item.subitems) === null || _c === undefined ? undefined : _c.map(function (sub) { return (jsx("a", { href: sub.href, onClick: function (e) {
|
|
1275
|
+
setExpandedIdx(null);
|
|
1276
|
+
handleNavigation(e, sub.href);
|
|
1277
|
+
}, className: navBarStyles.subnavItem +
|
|
1278
|
+
((currentPath === null || currentPath === undefined ? undefined : currentPath.startsWith(sub.href))
|
|
1279
|
+
? ' ' + navBarStyles['menuItemText--bold']
|
|
1280
|
+
: ''), children: sub.title }, sub.href)); }) }))] }, item.title));
|
|
1281
|
+
}) }), jsx(Box, { className: navBarStyles.rightContent, children: rightContent })] })] }))] }));
|
|
1282
|
+
};
|
|
1283
|
+
NavBar.displayName = 'NavBar';
|
|
1284
|
+
|
|
1285
|
+
var Pagination = function (_a) {
|
|
1286
|
+
var onChange = _a.onChange, value = _a.value, total = _a.total, disabled = _a.disabled;
|
|
1287
|
+
return (jsx(Pagination$1, { radius: "xl", previousIcon: function () { return jsx(Chevron, {}); }, nextIcon: function () { return jsx(Chevron, { rotate: 180 }); }, onChange: onChange, value: value, total: total, styles: { control: { border: 'none', color: 'black' } }, color: "var(--color-neutral-300)", disabled: disabled }));
|
|
1288
|
+
};
|
|
1289
|
+
Pagination.displayName = 'Pagination';
|
|
1290
|
+
|
|
1291
|
+
var styles$8 = {"radio":"RadioButton-module_radio__0A47m","label":"RadioButton-module_label__4gTzQ","disabled-label":"RadioButton-module_disabled-label__Nk0NW"};
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* RadioButton component for selecting a single option from a set (mutually exclusive options).
|
|
1295
|
+
* For multiple selections, use the Checkbox component.
|
|
1296
|
+
*
|
|
1297
|
+
* @param {string} label - The label displayed next to the radio button.
|
|
1298
|
+
* @param {string} value - The value associated with the radio button.
|
|
1299
|
+
* @param {boolean} selected - Indicates if the radio button is selected.
|
|
1300
|
+
* @param {(value: string) => void} onChange - Callback fired when the selection changes.
|
|
1301
|
+
* @param {boolean} [disabled] - Whether the radio button is disabled.
|
|
1302
|
+
* @returns {JSX.Element} The rendered RadioButton component adhering to the design system.
|
|
1303
|
+
*/
|
|
1304
|
+
var RadioButton = function (_a) {
|
|
1305
|
+
var _b;
|
|
1306
|
+
var label = _a.label, value = _a.value, selected = _a.selected, onChange = _a.onChange, disabled = _a.disabled;
|
|
1307
|
+
return (jsx(Radio, { label: label, value: value, checked: selected, disabled: disabled, onChange: function () { return onChange(value); }, variant: "outline", color: "var(--color-primary-300)", classNames: {
|
|
1308
|
+
radio: styles$8.radio,
|
|
1309
|
+
label: classNames(styles$8.label, (_b = {},
|
|
1310
|
+
_b[styles$8['disabled-label']] = disabled,
|
|
1311
|
+
_b)),
|
|
1312
|
+
} }));
|
|
1313
|
+
};
|
|
1314
|
+
RadioButton.displayName = 'RadioButton';
|
|
1315
|
+
|
|
1316
|
+
var styles$7 = {"root":"SegmentedControl-module_root__iVJTH","control":"SegmentedControl-module_control__siwFH","input":"SegmentedControl-module_input__HW-AN","label":"SegmentedControl-module_label__V69j4","indicator":"SegmentedControl-module_indicator__IxU-O"};
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* SegmentedControl component for selecting a single option from a set (mutually exclusive options).
|
|
1320
|
+
* This is variant of the RadioButton component that can use icons and has a card like styling.
|
|
1321
|
+
* For multiple selections, use the Checkbox component.
|
|
1322
|
+
*
|
|
1323
|
+
* @param {SegmentedControlItem[]} data - An array of objects containing value, label, icon and disabled status for each option.
|
|
1324
|
+
* @param {string} value - The value associated with the selected option.
|
|
1325
|
+
* @param {(value: string) => void} onChange - Callback fired when the selection changes.
|
|
1326
|
+
* @returns {JSX.Element} The rendered SegmentedControl component adhering to the design system.
|
|
1327
|
+
*/
|
|
1328
|
+
var SegmentedControl = function (_a) {
|
|
1329
|
+
var data = _a.data, value = _a.value, onChange = _a.onChange;
|
|
1330
|
+
return (jsx(SegmentedControl$1, { classNames: {
|
|
1331
|
+
root: styles$7.root,
|
|
1332
|
+
control: styles$7.control,
|
|
1333
|
+
input: styles$7.input,
|
|
1334
|
+
label: styles$7.label,
|
|
1335
|
+
indicator: styles$7.indicator,
|
|
1336
|
+
}, data: data.map(function (item) { return (__assign(__assign({}, item), { label: typeof item.label === 'string' ? (jsxs(Flex, { align: "center", direction: "column", gap: 8, children: [item.icon, jsx(Text, { variant: "m", color: item.disabled
|
|
1337
|
+
? 'var(--color-neutral-500)'
|
|
1338
|
+
: 'var(--color-neutral-600)', style: { margin: 0 }, children: item.label })] })) : (item.label) })); }), value: value, onChange: onChange, fullWidth: true }));
|
|
1339
|
+
};
|
|
1340
|
+
SegmentedControl.displayName = 'SegmentedControl';
|
|
1341
|
+
|
|
1342
|
+
var styles$6 = {"container":"Select-module_container__T9nVd","input":"Select-module_input__9enOc","inputError":"Select-module_inputError__gLKOh","chevron":"Select-module_chevron__L2z6W","default-label":"Select-module_default-label__wOXLe","label":"Select-module_label__M1IjA","labelFocused":"Select-module_labelFocused__fd8Sl","labelError":"Select-module_labelError__GbSpn","dropdown":"Select-module_dropdown__H0jM5","option":"Select-module_option__cTFdq","description":"Select-module_description__buJVC","error":"Select-module_error__-VDAX","errorText":"Select-module_errorText__nNHjr"};
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* Select component, use it to select an option from a list of options
|
|
1346
|
+
* For selecting multiple options, use the MultipleSelect component
|
|
1347
|
+
*
|
|
1348
|
+
* @param {string} label - The label of the select
|
|
1349
|
+
* @param {string} placeholder - The placeholder of the select
|
|
1350
|
+
* @param {string} value - The value of the select
|
|
1351
|
+
* @param {(value: string) => void} onChange - The function to call when the value changes
|
|
1352
|
+
* @param {string} error - The error message to display
|
|
1353
|
+
* @param {string} description - The description to display
|
|
1354
|
+
* @param {OptionsType[]} data - The data to display in the select
|
|
1355
|
+
* @param {boolean} disabled - Disable the entire select
|
|
1356
|
+
* @param {boolean} searchale - Enable searching in the select
|
|
1357
|
+
*
|
|
1358
|
+
* @returns {React.ReactElement} The Select component
|
|
1359
|
+
*
|
|
1360
|
+
*/
|
|
1361
|
+
var Select = function (_a) {
|
|
1362
|
+
var _b, _c;
|
|
1363
|
+
var error = _a.error, description = _a.description, label = _a.label, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, name = _a.name, data = _a.data, _d = _a.disabled, disabled = _d === undefined ? false : _d, _e = _a.searchable, searchable = _e === undefined ? true : _e, renderOption = _a.renderOption;
|
|
1364
|
+
var _f = useState(false), isFocused = _f[0], setIsFocused = _f[1];
|
|
1365
|
+
var _g = useState(false), isHovered = _g[0], setIsHovered = _g[1];
|
|
1366
|
+
var _h = useState(false), isOpen = _h[0], setIsOpen = _h[1];
|
|
1367
|
+
var allowedValues = useMemo(function () { return data.map(function (option) { return option.value; }); }, [data]);
|
|
1368
|
+
var showLabel = isFocused || value;
|
|
1369
|
+
var placeHolderValue = showLabel ? placeholder : label;
|
|
1370
|
+
var ErrorSection = useMemo(function () { return (jsxs(Flex, { className: styles$6.error, gap: 4, ml: 0, style: { visibility: error ? 'visible' : 'hidden' }, children: [jsx(Info, { width: "18px", height: "18px", viewBox: "0 0 24 24", stroke: "var(--color-red-300)" }), jsx(Text, { variant: "xs", className: classNames(styles$6.errorText), children: error })] })); }, [error]);
|
|
1371
|
+
var handleBlur = function () {
|
|
1372
|
+
setIsFocused(false);
|
|
1373
|
+
if (onBlur) {
|
|
1374
|
+
onBlur();
|
|
1375
|
+
}
|
|
1376
|
+
if (value && !allowedValues.includes(value)) {
|
|
1377
|
+
onChange === null || onChange === undefined ? undefined : onChange(null);
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
return (jsxs("div", { className: styles$6.container, children: [showLabel && (jsx("label", { className: classNames(styles$6.label, (_b = {},
|
|
1381
|
+
_b[styles$6.labelError] = error && !isFocused,
|
|
1382
|
+
_b[styles$6.labelFocused] = isFocused || isHovered,
|
|
1383
|
+
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, children: jsx(Select$1, { classNames: {
|
|
1384
|
+
input: classNames(styles$6.input, (_c = {},
|
|
1385
|
+
_c[styles$6.inputError] = error,
|
|
1386
|
+
_c)),
|
|
1387
|
+
label: styles$6['default-label'],
|
|
1388
|
+
dropdown: styles$6.dropdown,
|
|
1389
|
+
option: styles$6.option,
|
|
1390
|
+
}, data: data, placeholder: placeHolderValue, value: value, name: name || '', onChange: onChange, comboboxProps: { zIndex: 1000 }, error: ErrorSection, onFocus: function () { return setIsFocused(true); }, onBlur: handleBlur, inputWrapperOrder: ['label', 'input', 'description', 'error'], description: !error && description && jsx(Text, { variant: "xs", children: description }), descriptionProps: { className: styles$6.description }, errorProps: { className: styles$6.error }, rightSection: jsx(Chevron, { rotate: isOpen ? 90 : 270 }), rightSectionPointerEvents: "none", rightSectionProps: {
|
|
1391
|
+
className: styles$6.chevron,
|
|
1392
|
+
}, withCheckIcon: false, onDropdownOpen: function () { return setIsOpen(true); }, onDropdownClose: function () { return setIsOpen(false); }, disabled: disabled, searchable: searchable, allowDeselect: false, autoComplete: "new-password", renderOption: renderOption }) })] }));
|
|
1393
|
+
};
|
|
1394
|
+
Select.displayName = 'Select';
|
|
1395
|
+
|
|
1396
|
+
var variantMap = {
|
|
1397
|
+
gray: {
|
|
1398
|
+
backgroundColor: 'var(--color-neutral-200)',
|
|
1399
|
+
color: 'var(--color-neutral-500)',
|
|
1400
|
+
},
|
|
1401
|
+
green: {
|
|
1402
|
+
backgroundColor: 'var(--color-green-100)',
|
|
1403
|
+
color: 'var(--color-green-400)',
|
|
1404
|
+
},
|
|
1405
|
+
purple: {
|
|
1406
|
+
backgroundColor: 'var(--color-primary-50)',
|
|
1407
|
+
color: 'var(--color-primary-300)',
|
|
1408
|
+
},
|
|
1409
|
+
orange: {
|
|
1410
|
+
backgroundColor: 'var(--color-orange-100)',
|
|
1411
|
+
color: 'var(--color-orange-400)',
|
|
1412
|
+
},
|
|
1413
|
+
red: {
|
|
1414
|
+
backgroundColor: 'var(--color-red-100)',
|
|
1415
|
+
color: 'var(--color-red-400)',
|
|
1416
|
+
},
|
|
1417
|
+
};
|
|
1418
|
+
var StatusBadge = function (props) {
|
|
1419
|
+
var _a, _b;
|
|
1420
|
+
var backgroundColor = ((_a = variantMap[props.variant]) === null || _a === undefined ? undefined : _a.backgroundColor) || 'var(--color-neutral-400)';
|
|
1421
|
+
var color = ((_b = variantMap[props.variant]) === null || _b === undefined ? undefined : _b.color) || 'var(--color-jet-black)';
|
|
1422
|
+
return (jsxs("div", { style: __assign(__assign({}, props.style), { backgroundColor: backgroundColor, padding: "".concat(props.small ? 0 : 6, "px 14px"), borderRadius: 999, width: 'fit-content', display: 'flex', alignItems: 'center', gap: 8 }), children: [props.icon, jsx(Text, { variant: "s", weight: "regular", style: {
|
|
1423
|
+
color: color,
|
|
1424
|
+
lineHeight: '16px',
|
|
1425
|
+
margin: '8px 0',
|
|
1426
|
+
}, children: props.label })] }));
|
|
1427
|
+
};
|
|
1428
|
+
StatusBadge.displayName = 'StatusBadge';
|
|
1429
|
+
|
|
1430
|
+
var Notification = function (_a) {
|
|
1431
|
+
var _b = _a.width, width = _b === undefined ? '18px' : _b, _c = _a.height, height = _c === undefined ? '18px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 18 18' : _d, _e = _a.fill, fill = _e === undefined ? 'var(--color-red-300)' : _e, _f = _a.stroke, stroke = _f === undefined ? 'var(--color-white)' : _f;
|
|
1432
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, children: jsx("circle", { cx: "9", cy: "9", r: "8.5", fill: fill, stroke: stroke }) }));
|
|
1433
|
+
};
|
|
1434
|
+
Notification.displayName = 'Notification';
|
|
1435
|
+
|
|
1436
|
+
var styles$5 = {"steps":"Stepper-module_steps__QbYie","stepsFullSize":"Stepper-module_stepsFullSize__MAKHa","content":"Stepper-module_content__gqqdr","stepDescription":"Stepper-module_stepDescription__LVenC","step":"Stepper-module_step__JTnoH","separator":"Stepper-module_separator__sl1Pn","stepBody":"Stepper-module_stepBody__Bjf-Q","stepLabel":"Stepper-module_stepLabel__hEYGw","stepLabelInactive":"Stepper-module_stepLabelInactive__wcqpv","progressWrapper":"Stepper-module_progressWrapper__ncYqZ","stepWrapper":"Stepper-module_stepWrapper__k43mM","buttonsWrapper":"Stepper-module_buttonsWrapper__tya3o"};
|
|
1437
|
+
|
|
1438
|
+
var Arrow = function (_a) {
|
|
1439
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.rotate, rotate = _e === undefined ? 0 : _e, props = __rest(_a, ["width", "height", "viewBox", "rotate"]);
|
|
1440
|
+
return (jsx(Icon, __assign({ width: width, height: height, viewBox: viewBox, rotate: rotate }, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M25.333 16H6.667M18.667 22.667L25.333 16M18.667 9.333L25.333 16" }) })));
|
|
1441
|
+
};
|
|
1442
|
+
Arrow.displayName = 'Arrow';
|
|
1443
|
+
|
|
1444
|
+
var StepIndicator = function (_a) {
|
|
1445
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'var(--color-primary-300)' : _e, _f = _a.fill, fill = _f === undefined ? 'var(--color-primary-50)' : _f, _g = _a.rotate, rotate = _g === undefined ? 0 : _g, props = __rest(_a, ["width", "height", "viewBox", "stroke", "fill", "rotate"]);
|
|
1446
|
+
return (jsxs(Icon, __assign({}, props, { width: width, height: height, viewBox: viewBox, rotate: rotate, stroke: "var(--color-primary-50)", children: [jsx("circle", { cx: "16", cy: "16", r: "16", fill: "var(--color-primary-50)" }), jsx("path", { d: "M16 25C20.9706 25 25 20.9706 25 16C25 11.0294 20.9706 7 16 7C11.0294 7 7 11.0294 7 16C7 20.9706 11.0294 25 16 25Z", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("circle", { cx: "16", cy: "16", r: "1.25", stroke: stroke, strokeWidth: "1.5", fill: fill })] })));
|
|
1447
|
+
};
|
|
1448
|
+
StepIndicator.displayName = 'StepIndicator';
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Stepper component, use it to select an option from a list of options
|
|
1452
|
+
* For selecting multiple options, use the MultipleSelect component
|
|
1453
|
+
*
|
|
1454
|
+
* @param {Step[]} steps - Array of steps (label, description, content)
|
|
1455
|
+
* @param {number} active - Current active step (controlled)
|
|
1456
|
+
* @param {function} onStepChange - Callback when step changes
|
|
1457
|
+
* @param {boolean} showControls - Whether to show back/next buttons
|
|
1458
|
+
* @param {React.ReactNode} backButton - Custom back button
|
|
1459
|
+
* @param {React.ReactNode} nextButton - Custom next button
|
|
1460
|
+
* @param {boolean} allowNextStepsSelect - Whether to allow selecting next steps
|
|
1461
|
+
* @param {Step[]} stepCompleted - Content to show when all steps are completed
|
|
1462
|
+
*
|
|
1463
|
+
* @returns {React.ReactElement} The Stepper component
|
|
1464
|
+
*
|
|
1465
|
+
*/
|
|
1466
|
+
var Stepper = function (_a) {
|
|
1467
|
+
var _b, _c, _d;
|
|
1468
|
+
var steps = _a.steps, controlledActive = _a.active, _e = _a.fullSize, fullSize = _e === undefined ? false : _e, onStepChange = _a.onStepChange, _f = _a.showControls, showControls = _f === undefined ? true : _f, backButton = _a.backButton, nextButton = _a.nextButton, _g = _a.allowNextStepsSelect, allowNextStepsSelect = _g === undefined ? false : _g, stepCompleted = _a.stepCompleted, completedComponent = _a.completedComponent, props = __rest(_a, ["steps", "active", "fullSize", "onStepChange", "showControls", "backButton", "nextButton", "allowNextStepsSelect", "stepCompleted", "completedComponent"]);
|
|
1469
|
+
var _h = useState(0), internalActive = _h[0], setInternalActive = _h[1];
|
|
1470
|
+
var _j = useState(false), isCompleted = _j[0], setIsCompleted = _j[1];
|
|
1471
|
+
var active = controlledActive !== null && controlledActive !== undefined ? controlledActive : internalActive;
|
|
1472
|
+
var setActive = function (step) {
|
|
1473
|
+
if (controlledActive === undefined) {
|
|
1474
|
+
setInternalActive(step);
|
|
1475
|
+
}
|
|
1476
|
+
onStepChange === null || onStepChange === undefined ? undefined : onStepChange(step);
|
|
1477
|
+
};
|
|
1478
|
+
var nextStep = function () {
|
|
1479
|
+
if (active === steps.length - 1) {
|
|
1480
|
+
setIsCompleted(true);
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
setActive(active + 1);
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1486
|
+
var prevStep = function () { return setActive(active > 0 ? active - 1 : active); };
|
|
1487
|
+
if (isCompleted) {
|
|
1488
|
+
return (jsx(Flex, { justify: "center", children: completedComponent || (jsx("div", { children: stepCompleted
|
|
1489
|
+
? stepCompleted.map(function (step, idx) { return (jsx("div", { children: step.content || step.label }, idx)); })
|
|
1490
|
+
: 'XXX!' })) }));
|
|
1491
|
+
}
|
|
1492
|
+
return (jsxs(Fragment, { children: [jsx(Stepper$1, __assign({ active: active, allowNextStepsSelect: allowNextStepsSelect, size: "sm", color: "var(--color-primary-50)", icon: jsx(Notification, { stroke: "var(--color-primary-300)" }), progressIcon: jsx(StepIndicator, { fill: "var(--color-primary-300)", width: "32px", height: "32px", stroke: "var(--color-primary-300)" }), completedIcon: jsx(Tick, { width: "16px", height: "16px", stroke: "var(--color-primary-300)", strokeWidth: 3, fill: "var(--color-primary-50)" }) }, props, { classNames: {
|
|
1493
|
+
steps: fullSize ? styles$5.stepsFullSize : styles$5.steps,
|
|
1494
|
+
stepDescription: styles$5.stepDescription,
|
|
1495
|
+
stepBody: styles$5.stepBody,
|
|
1496
|
+
separator: styles$5.separator,
|
|
1497
|
+
content: styles$5.content,
|
|
1498
|
+
step: styles$5.step,
|
|
1499
|
+
}, children: steps.map(function (step, index) { return (jsx(StepperStep, { label: step.label, classNames: {
|
|
1500
|
+
stepLabel: index === active ? styles$5.stepLabelInactive : styles$5.stepLabel,
|
|
1501
|
+
}, icon: jsx(Notification, { width: "32px", height: "32px", fill: "var(--color-white)" }) }, index)); }) })), jsx(Flex, { className: styles$5.progressWrapper, children: jsx(Progress, { value: ((active + 1) / steps.length) * 100, size: 10, radius: "xl", color: "var(--color-primary-200)", w: fullSize ? '100%' : '60%' }) }), jsx(Flex, { className: styles$5.stepWrapper, children: (_b = steps[active]) === null || _b === undefined ? undefined : _b.content }), showControls && (jsxs(Flex, { className: styles$5.buttonsWrapper, children: [active > 0 ? (backButton ? (backButton({ prevStep: prevStep, active: active })) : (jsx(Button, { variant: "outlined", size: "medium", onClick: prevStep, icon: jsx(Arrow, { width: "18px", height: "18px", rotate: 180 }), children: "Back" }))) : (jsx("div", {})), nextButton ? (nextButton({
|
|
1502
|
+
nextStep: nextStep,
|
|
1503
|
+
active: active,
|
|
1504
|
+
disabled: ((_c = steps[active]) === null || _c === undefined ? undefined : _c.isValid) === false,
|
|
1505
|
+
})) : (jsx(Button, { onClick: nextStep, size: "medium", icon: jsx(Arrow, { width: "18px", height: "18px" }), disabled: ((_d = steps[active]) === null || _d === undefined ? undefined : _d.isValid) === false, children: "Next step" }))] }))] }));
|
|
1506
|
+
};
|
|
1507
|
+
Stepper.displayName = 'Stepper';
|
|
1508
|
+
|
|
1509
|
+
var styles$4 = {"table":"Table-module_table__7Pagp","tableHeaderCell":"Table-module_tableHeaderCell__Wd4IN","tableRow":"Table-module_tableRow__GzCm4","withCheckbox":"Table-module_withCheckbox__DOucz","empty":"Table-module_empty__Dvxh9","emptyWrapperMessage":"Table-module_emptyWrapperMessage__hWoae","paginationWrapper":"Table-module_paginationWrapper__S88Dr","loaderWrapper":"Table-module_loaderWrapper__Fkp8F","tableWrapper":"Table-module_tableWrapper__ITO0y","disabled":"Table-module_disabled__OcI6u","disabledOverlay":"Table-module_disabledOverlay__QR6SB","disabledRow":"Table-module_disabledRow__QKivc"};
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
*
|
|
1513
|
+
* Table component that displays data in a table format, with support for pagination and row selection.
|
|
1514
|
+
*
|
|
1515
|
+
* @param data - The data to be displayed in the table
|
|
1516
|
+
* @param columns - The columns to be displayed in the table
|
|
1517
|
+
* @param itemsPerPage - The number of items to display per page
|
|
1518
|
+
* @param totalRecords - The total number of records
|
|
1519
|
+
* @param currentPage - The current page
|
|
1520
|
+
* @param showCheckboxes - Whether to show checkboxes for selecting rows
|
|
1521
|
+
* @param onSelectionChange - Callback function that is called when the selection changes
|
|
1522
|
+
* @param loading - Whether the table is in a loading state
|
|
1523
|
+
* @param disabled - Whether the table is disabled
|
|
1524
|
+
* @param disabledMessage - Message to display when the table is disabled
|
|
1525
|
+
* @returns Render table with theme styles
|
|
1526
|
+
*/
|
|
1527
|
+
function Table(_a) {
|
|
1528
|
+
var data = _a.data, columns = _a.columns, _b = _a.itemsPerPage, itemsPerPage = _b === undefined ? 10 : _b, totalRecords = _a.totalRecords, currentPage = _a.currentPage, onPageChange = _a.onPageChange, _c = _a.showCheckboxes, showCheckboxes = _c === undefined ? false : _c, onSelectionChange = _a.onSelectionChange, _d = _a.loading, loading = _d === undefined ? false : _d, _e = _a.disabled, disabled = _e === undefined ? false : _e, disabledMessage = _a.disabledMessage;
|
|
1529
|
+
var _f = useState([]), selectedItems = _f[0], setSelectedItems = _f[1];
|
|
1530
|
+
var renderCell = function (item, column) {
|
|
1531
|
+
var value = item[column.key];
|
|
1532
|
+
return column.render ? column.render(value, item) : String(value);
|
|
1533
|
+
};
|
|
1534
|
+
var handleCheckboxChange = function (item) {
|
|
1535
|
+
var updatedSelection = selectedItems.includes(item)
|
|
1536
|
+
? selectedItems.filter(function (selectedItem) { return selectedItem !== item; })
|
|
1537
|
+
: __spreadArray(__spreadArray([], selectedItems, true), [item], false);
|
|
1538
|
+
setSelectedItems(updatedSelection);
|
|
1539
|
+
onSelectionChange === null || onSelectionChange === undefined ? undefined : onSelectionChange(updatedSelection);
|
|
1540
|
+
};
|
|
1541
|
+
var handleSelectAll = function () {
|
|
1542
|
+
var newSelectedItems = selectedItems.length === data.length ? [] : data;
|
|
1543
|
+
setSelectedItems(newSelectedItems);
|
|
1544
|
+
onSelectionChange === null || onSelectionChange === undefined ? undefined : onSelectionChange(newSelectedItems);
|
|
1545
|
+
};
|
|
1546
|
+
return (jsxs(Fragment, { children: [jsxs(Table$1, { className: "".concat(styles$4.table, " ").concat(showCheckboxes ? styles$4.withCheckbox : ''), highlightOnHover: true, highlightOnHoverColor: "var(--color-neutral-100)", children: [jsx(Table$1.Thead, { children: jsxs(Table$1.Tr, { children: [showCheckboxes && (jsx(Table$1.Th, { className: styles$4.tableHeaderCell, children: jsx(Checkbox, { checked: selectedItems.length === data.length, onChange: handleSelectAll }) })), columns.map(function (column) { return (jsx(Table$1.Th, { className: styles$4.tableHeaderCell, children: column.header }, column.key)); })] }) }), loading ? (jsx(Table$1.Tbody, { children: jsxs(Table$1.Tr, { children: [jsx(Table$1.Td, { colSpan: columns.length / 2 }), jsx(Table$1.Td, { colSpan: columns.length / 2, className: styles$4.loaderWrapper, children: jsx(Loader, { size: "lg" }) })] }) })) : (jsx(Table$1.Tbody, { children: (data === null || data === undefined ? undefined : data.length) > 0 &&
|
|
1547
|
+
data.map(function (item, index) { return (jsxs(Table$1.Tr, { className: "".concat(styles$4.tableRow, " ").concat(disabled ? styles$4.disabledRow : ''), onClick: !disabled ? item.handleClick : undefined, children: [showCheckboxes && (jsx(Table$1.Td, { className: styles$4.tableRow, children: jsx(Checkbox, { checked: selectedItems.includes(item), onChange: function () { return handleCheckboxChange(item); } }) })), columns.map(function (column) { return (jsx(Table$1.Td, { className: styles$4.tableRow, children: renderCell(item, column) }, column.key)); })] }, index)); }) })), disabled && (jsx("div", { className: styles$4.disabledOverlay, children: disabledMessage !== null && disabledMessage !== undefined ? disabledMessage : (jsx(Text, { children: "This table is temporarily disabled." })) })), data.length === 0 && !loading && (jsx(Table$1.Tbody, { children: jsx(Table$1.Tr, { children: jsx(Table$1.Td, { colSpan: columns.length + (showCheckboxes ? 1 : 0), className: styles$4.empty, children: jsxs(Flex, { className: styles$4.emptyWrapperMessage, children: [jsx(Text, { variant: "m", weight: "medium", children: "No results match your search or selected filters." }), jsx(Text, { variant: "m", weight: "medium", children: "Please adjust your criteria and try again" })] }) }) }) }))] }), totalRecords > itemsPerPage && (jsx("div", { className: styles$4.paginationWrapper, children: jsx(Pagination, { total: Math.ceil(totalRecords / itemsPerPage), value: currentPage, onChange: onPageChange, disabled: disabled }) }))] }));
|
|
1548
|
+
}
|
|
1549
|
+
Table.displayName = 'Table';
|
|
1550
|
+
|
|
1551
|
+
var styles$3 = {"list":"Tabs-module_list__tJ8dS","tab":"Tabs-module_tab__DEdzi","panel":"Tabs-module_panel__hp43N","tabSm":"Tabs-module_tabSm__E7WFL","tabXs":"Tabs-module_tabXs__rXqxS"};
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
*
|
|
1555
|
+
* Tabs component is used to switch between different sections of content
|
|
1556
|
+
* To control active tab, use `value` and `onChange` props
|
|
1557
|
+
* To disable a single tab, use `disabled` prop on Tabs.Tab component
|
|
1558
|
+
*
|
|
1559
|
+
* @param size - Tabs size
|
|
1560
|
+
* @param defaultValue - Default active tab value
|
|
1561
|
+
* @param children - Tabs.List, Tabs.Tab and Tabs.Panel components
|
|
1562
|
+
* @param onChange - Called when tab changes
|
|
1563
|
+
* @param value - Active tab value
|
|
1564
|
+
*
|
|
1565
|
+
* @example
|
|
1566
|
+
* <Tabs defaultValue="gallery">
|
|
1567
|
+
* <Tabs.List>
|
|
1568
|
+
* <Tabs.Tab value="gallery">Gallery</Tabs.Tab>
|
|
1569
|
+
* <Tabs.Tab value="messages" disabled>Messages</Tabs.Tab>
|
|
1570
|
+
* <Tabs.Tab value="settings">Settings</Tabs.Tab>
|
|
1571
|
+
* </Tabs.List>
|
|
1572
|
+
* </Tabs>
|
|
1573
|
+
*
|
|
1574
|
+
* @returns Rendered Tabs component
|
|
1575
|
+
*/
|
|
1576
|
+
var Tabs = function (_a) {
|
|
1577
|
+
var _b;
|
|
1578
|
+
var _c = _a.size, size = _c === undefined ? 'sm' : _c, props = __rest(_a, ["size"]);
|
|
1579
|
+
return (jsx(Tabs$1, __assign({ variant: "pills", classNames: {
|
|
1580
|
+
list: styles$3.list,
|
|
1581
|
+
panel: styles$3.panel,
|
|
1582
|
+
tab: classNames(styles$3.tab, (_b = {},
|
|
1583
|
+
_b[styles$3.tabXs] = size === 'xs',
|
|
1584
|
+
_b[styles$3.tabSm] = size === 'sm',
|
|
1585
|
+
_b)),
|
|
1586
|
+
} }, props)));
|
|
1587
|
+
};
|
|
1588
|
+
Tabs.displayName = 'Tabs';
|
|
1589
|
+
Tabs.List = Tabs$1.List;
|
|
1590
|
+
Tabs.Tab = Tabs$1.Tab;
|
|
1591
|
+
Tabs.Panel = Tabs$1.Panel;
|
|
1592
|
+
|
|
1593
|
+
var Textarea = function (_a) {
|
|
1594
|
+
var _b, _c;
|
|
1595
|
+
var _d = _a.error, error = _d === undefined ? '' : _d, name = _a.name, placeholder = _a.placeholder, _e = _a.value, value = _e === undefined ? '' : _e, onChange = _a.onChange, label = _a.label, description = _a.description, _f = _a.holdSpace, holdSpace = _f === undefined ? true : _f, _g = _a.hideLabel, hideLabel = _g === undefined ? false : _g, rest = __rest(_a, ["error", "name", "placeholder", "value", "onChange", "label", "description", "holdSpace", "hideLabel"]);
|
|
1596
|
+
var _h = useState(false), isFocused = _h[0], setIsFocused = _h[1];
|
|
1597
|
+
var _j = useState(false), isHovered = _j[0], setIsHovered = _j[1];
|
|
1598
|
+
var showLabel = !hideLabel && (isFocused || value.trim());
|
|
1599
|
+
var ErrorSection = useMemo(function () {
|
|
1600
|
+
return holdSpace && (jsxs(Flex, { className: styles$m.error, gap: 4, ml: 0, style: { visibility: error ? 'visible' : 'hidden' }, children: [jsx(Info, { width: "18px", height: "18px", viewBox: "0 0 24 24", stroke: "var(--color-red-300)" }), jsx(Text, { variant: "xs", className: classNames(styles$m.errorText), children: error })] }));
|
|
1601
|
+
}, [error]);
|
|
1602
|
+
return (jsxs("div", { className: styles$m.container, children: [showLabel && (jsx("label", { className: classNames(styles$m.label, (_b = {},
|
|
1603
|
+
_b[styles$m.labelError] = error && !isFocused,
|
|
1604
|
+
_b[styles$m.labelFocused] = isFocused || isHovered,
|
|
1605
|
+
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onFocus: function () { return setIsFocused(true); }, onBlur: function () { return setIsFocused(false); }, children: jsx(Textarea$1, __assign({ classNames: {
|
|
1606
|
+
input: classNames(styles$m.input, (_c = {},
|
|
1607
|
+
_c[styles$m.inputError] = error,
|
|
1608
|
+
_c)),
|
|
1609
|
+
}, placeholder: placeholder !== null && placeholder !== undefined ? placeholder : label, name: name, error: ErrorSection, description: !error && jsx(Text, { variant: "xs", children: description }), descriptionProps: { className: styles$m.description }, errorProps: { className: styles$m.error }, inputWrapperOrder: ['label', 'input', 'description', 'error'], value: value, onChange: onChange, autosize: rest.h ? false : rest.autosize, minRows: 2 }, rest, { styles: {
|
|
1610
|
+
input: {
|
|
1611
|
+
height: typeof rest.h === 'string' || typeof rest.h === 'number'
|
|
1612
|
+
? rest.h
|
|
1613
|
+
: 'auto',
|
|
1614
|
+
},
|
|
1615
|
+
} })) })] }));
|
|
1616
|
+
};
|
|
1617
|
+
Textarea.displayName = 'Textarea';
|
|
1618
|
+
|
|
1619
|
+
var styles$2 = {"toast-container":"ToastContainer-module_toast-container__4KBx3"};
|
|
1620
|
+
|
|
1621
|
+
var ToastContainer = function () {
|
|
1622
|
+
return (jsx(ToastContainer$1, { theme: "dark", className: styles$2['toast-container'], progressStyle: {
|
|
1623
|
+
borderRadius: 999,
|
|
1624
|
+
}, closeButton: false, autoClose: 300000 }));
|
|
1625
|
+
};
|
|
1626
|
+
ToastContainer.displayName = 'ToastContainer';
|
|
1627
|
+
|
|
1628
|
+
var styles$1 = {"tooltip":"Tooltip-module_tooltip__Q1YfF"};
|
|
1629
|
+
|
|
1630
|
+
var Tooltip = function (_a) {
|
|
1631
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
1632
|
+
return (jsx(Tooltip$1, __assign({}, props, { classNames: {
|
|
1633
|
+
tooltip: styles$1.tooltip,
|
|
1634
|
+
}, offset: 4, children: children })));
|
|
1635
|
+
};
|
|
1636
|
+
Tooltip.displayName = 'Tooltip';
|
|
1637
|
+
|
|
1638
|
+
var multiselectStyles = {"input":"Multiselect-module_input__lwmrJ","inputFocused":"Multiselect-module_inputFocused__rm-OP","disabled":"Multiselect-module_disabled__DyqLt","pill":"Multiselect-module_pill__NwXcT","pillText":"Multiselect-module_pillText__6hobG"};
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* MultiSelect component, use it to select multiple options from a list of options
|
|
1642
|
+
* For selecting a single option, use the Select component
|
|
1643
|
+
*
|
|
1644
|
+
* @param {MultiSelectOptionsType[]} data - The data to display in the select
|
|
1645
|
+
* @param {(options: MultiSelectOptionsType[]) => void} onApply - The function to call when the selected items change by clicking the 'Apply' button
|
|
1646
|
+
* @param {string} label - The label of the select
|
|
1647
|
+
* @param {string} placeholder - The placeholder of the select
|
|
1648
|
+
* @param {string} error - The error message to display
|
|
1649
|
+
* @param {string} description - The description to display
|
|
1650
|
+
* @param {boolean} disabled - Whether the select is disabled
|
|
1651
|
+
* @param {number} maxPills - The maximum number of pills to display, the rest will be displayed as a single pill with the number of remaining items
|
|
1652
|
+
*
|
|
1653
|
+
* @returns {React.ReactElement} The MultiSelect component
|
|
1654
|
+
*
|
|
1655
|
+
*/
|
|
1656
|
+
var Multiselect = function (_a) {
|
|
1657
|
+
var data = _a.data, onApply = _a.onApply, error = _a.error, description = _a.description, label = _a.label, placeholder = _a.placeholder, onBlur = _a.onBlur, _b = _a.disabled, disabled = _b === undefined ? false : _b, _c = _a.maxPills, maxPills = _c === undefined ? 3 : _c;
|
|
1658
|
+
var dataKey = useMemo(function () { return data.map(function (o) { return o.value; }).join('_'); }, [data]);
|
|
1659
|
+
return (jsx(MultiselectInternal, { data: data, onApply: onApply, error: error, description: description, label: label, placeholder: placeholder, onBlur: onBlur, disabled: disabled, maxPills: maxPills }, dataKey));
|
|
1660
|
+
};
|
|
1661
|
+
Multiselect.displayName = 'Multiselect';
|
|
1662
|
+
/**
|
|
1663
|
+
* The internal component that maintains:
|
|
1664
|
+
* - committedOptions (pills shown when dropdown is closed)
|
|
1665
|
+
* - temporaryOptions (draft selection while dropdown is open)
|
|
1666
|
+
* - searchTerm (to filter the dropdown’s list)
|
|
1667
|
+
*/
|
|
1668
|
+
var MultiselectInternal = function (_a) {
|
|
1669
|
+
var data = _a.data, onApply = _a.onApply, error = _a.error, description = _a.description, label = _a.label, placeholder = _a.placeholder, onBlur = _a.onBlur, disabled = _a.disabled, maxPills = _a.maxPills;
|
|
1670
|
+
// Final selection that shows up as pills when closed / after Apply
|
|
1671
|
+
var _b = useState(data), committedOptions = _b[0], setCommittedOptions = _b[1];
|
|
1672
|
+
// Draft selection while dropdown is open
|
|
1673
|
+
var _c = useState(data), temporaryOptions = _c[0], setTemporaryOptions = _c[1];
|
|
1674
|
+
var _d = useState(''), searchTerm = _d[0], setSearchTerm = _d[1];
|
|
1675
|
+
var _e = useState(false), isFocused = _e[0], setIsFocused = _e[1];
|
|
1676
|
+
var _f = useState(false), isHovered = _f[0], setIsHovered = _f[1];
|
|
1677
|
+
var hasSelectedOptions = committedOptions.some(function (opt) { return opt.selected; });
|
|
1678
|
+
/* -----------------------------------
|
|
1679
|
+
* Handlers
|
|
1680
|
+
* ----------------------------------- */
|
|
1681
|
+
var handleBlur = function () {
|
|
1682
|
+
setIsFocused(false);
|
|
1683
|
+
onBlur === null || onBlur === undefined ? undefined : onBlur();
|
|
1684
|
+
};
|
|
1685
|
+
/** Toggle a checkbox in the *draft* list */
|
|
1686
|
+
var handleDraftToggle = function (option) {
|
|
1687
|
+
setTemporaryOptions(function (prev) {
|
|
1688
|
+
return prev.map(function (o) {
|
|
1689
|
+
return o.value === option.value ? __assign(__assign({}, o), { selected: !o.selected }) : o;
|
|
1690
|
+
});
|
|
1691
|
+
});
|
|
1692
|
+
};
|
|
1693
|
+
/** Click "Apply" => copy draft to pills (committed) and call onApply */
|
|
1694
|
+
var handleApply = function (closeDropdown) {
|
|
1695
|
+
setCommittedOptions(temporaryOptions);
|
|
1696
|
+
onApply(temporaryOptions);
|
|
1697
|
+
closeDropdown();
|
|
1698
|
+
};
|
|
1699
|
+
/** Click "Clear" => reset the *draft* selection (not pills yet) */
|
|
1700
|
+
var handleClear = function () {
|
|
1701
|
+
var reset = data.map(function (o) { return (__assign(__assign({}, o), { selected: false })); });
|
|
1702
|
+
setTemporaryOptions(reset);
|
|
1703
|
+
};
|
|
1704
|
+
/** Clicking the "X" on a pill => remove from *committed* immediately */
|
|
1705
|
+
var handleDeselectPill = function (optionId) {
|
|
1706
|
+
var newCommitted = committedOptions.map(function (o) {
|
|
1707
|
+
return o.value === optionId ? __assign(__assign({}, o), { selected: false }) : o;
|
|
1708
|
+
});
|
|
1709
|
+
setCommittedOptions(newCommitted);
|
|
1710
|
+
setTemporaryOptions(newCommitted);
|
|
1711
|
+
onApply(newCommitted);
|
|
1712
|
+
};
|
|
1713
|
+
/* -----------------------------------
|
|
1714
|
+
* Search / Filtering
|
|
1715
|
+
* ----------------------------------- */
|
|
1716
|
+
var filteredTempOptions = useMemo(function () {
|
|
1717
|
+
if (!searchTerm.trim())
|
|
1718
|
+
return temporaryOptions;
|
|
1719
|
+
return temporaryOptions.filter(function (o) {
|
|
1720
|
+
return o.label.toLowerCase().includes(searchTerm.toLowerCase());
|
|
1721
|
+
});
|
|
1722
|
+
}, [searchTerm, temporaryOptions]);
|
|
1723
|
+
// Build the actual dropdown checkboxes from the filtered list
|
|
1724
|
+
var dropdownOptions = useMemo(function () {
|
|
1725
|
+
var allSelected = filteredTempOptions.length > 0 &&
|
|
1726
|
+
filteredTempOptions.every(function (o) { return o.selected; });
|
|
1727
|
+
var selectAllOption = (jsx(Dropdown.Option, { value: "select_all", py: 12, onClick: function (e) { return e.stopPropagation(); }, children: jsx(Checkbox, { label: "Select All", checked: allSelected, onChange: function (e) {
|
|
1728
|
+
e.stopPropagation();
|
|
1729
|
+
setTemporaryOptions(function (prev) {
|
|
1730
|
+
return prev.map(function (item) { return (__assign(__assign({}, item), { selected: !allSelected })); });
|
|
1731
|
+
});
|
|
1732
|
+
}, w: "100%" }) }, "select_all"));
|
|
1733
|
+
// Now build the rest of the normal checkboxes
|
|
1734
|
+
var normalOptions = filteredTempOptions.map(function (option) { return (jsx(Dropdown.Option, { value: option.value, py: 12, disabled: option.disabled,
|
|
1735
|
+
// Don’t close on click
|
|
1736
|
+
onClick: function (e) { return e.stopPropagation(); }, children: jsx(Checkbox, { label: option.label, checked: option.selected, disabled: option.disabled, onChange: function (e) {
|
|
1737
|
+
e.stopPropagation();
|
|
1738
|
+
handleDraftToggle(option);
|
|
1739
|
+
}, w: "100%" }, option.value) }, option.value)); });
|
|
1740
|
+
var emptyOptions = (jsx(Dropdown.Option, { value: "No options found", style: { cursor: 'not-allowed', pointerEvents: 'none' }, children: "No matches found, try something else." }));
|
|
1741
|
+
return normalOptions.length > 0
|
|
1742
|
+
? __spreadArray([selectAllOption], normalOptions, true) : [emptyOptions];
|
|
1743
|
+
}, [filteredTempOptions]);
|
|
1744
|
+
/* -----------------------------------
|
|
1745
|
+
* Sections
|
|
1746
|
+
* ----------------------------------- */
|
|
1747
|
+
/**
|
|
1748
|
+
* The main "input" area, showing:
|
|
1749
|
+
* - Pills (from committedOptions) if the dropdown is closed (or open),
|
|
1750
|
+
* but we specifically adjust layout if open.
|
|
1751
|
+
* - If the dropdown is open, also show a search input alongside the pills.
|
|
1752
|
+
*/
|
|
1753
|
+
var PillAndSearchSection = function (_a) {
|
|
1754
|
+
var store = _a.store, _b = _a.maxPills, maxPills = _b === undefined ? 3 : _b;
|
|
1755
|
+
var selected = committedOptions.filter(function (opt) { return opt.selected; });
|
|
1756
|
+
var dropdownOpened = store.dropdownOpened;
|
|
1757
|
+
var allSelected = selected.length === data.length;
|
|
1758
|
+
var searchInputRef = useRef(null);
|
|
1759
|
+
useEffect(function () {
|
|
1760
|
+
var _a;
|
|
1761
|
+
if (dropdownOpened) {
|
|
1762
|
+
(_a = searchInputRef.current) === null || _a === undefined ? undefined : _a.focus();
|
|
1763
|
+
}
|
|
1764
|
+
}, [dropdownOpened]);
|
|
1765
|
+
// If the dropdown is closed and everything is selected => single "All {placeholder}" pill
|
|
1766
|
+
if (!dropdownOpened && allSelected) {
|
|
1767
|
+
return (jsx(Flex, { gap: 8, align: "center", wrap: "wrap", style: { flexGrow: 1, minHeight: 32 }, children: jsxs("span", { className: multiselectStyles.pill, children: [jsxs(Text, { variant: "xs", children: ["All ", placeholder] }), jsx(ActionIcon$1, { variant: "transparent", onClick: function (e) {
|
|
1768
|
+
e.stopPropagation();
|
|
1769
|
+
var newCommitted = committedOptions.map(function (o) { return (__assign(__assign({}, o), { selected: false })); });
|
|
1770
|
+
setCommittedOptions(newCommitted);
|
|
1771
|
+
setTemporaryOptions(newCommitted);
|
|
1772
|
+
onApply(newCommitted);
|
|
1773
|
+
}, children: jsx(Close, { height: "20px", width: "20px", stroke: "var(--color-neutral-600)" }) })] }) }));
|
|
1774
|
+
}
|
|
1775
|
+
// Otherwise, render original logic:
|
|
1776
|
+
return (jsxs(Flex, { gap: 8, align: "center", wrap: "wrap", style: { flexGrow: 1, minHeight: 32 }, children: [selected.length === 0 && !dropdownOpened && (jsx(Text, { variant: "s", children: label })), selected.slice(0, maxPills).map(function (option) { return (jsxs("span", { className: multiselectStyles.pill, title: option.label, children: [jsx(Text, { variant: "xs", className: multiselectStyles.pillText, children: option.label }), jsx(ActionIcon$1, { variant: "transparent", onClick: function (e) {
|
|
1777
|
+
e.stopPropagation();
|
|
1778
|
+
handleDeselectPill(option.value);
|
|
1779
|
+
}, children: jsx(Close, { height: "20px", width: "20px", stroke: "var(--color-neutral-600)" }) })] }, option.value)); }), selected.length > maxPills && (jsx(Tooltip, { label: selected
|
|
1780
|
+
.slice(maxPills, selected.length)
|
|
1781
|
+
.map(function (o) { return o.label; })
|
|
1782
|
+
.join(', '), position: "bottom", children: jsx("span", { className: multiselectStyles.pill, children: jsxs(Text, { variant: "xs", children: ["+", selected.length - maxPills] }) }, "more") })), dropdownOpened && (jsx("input", { ref: searchInputRef, type: "text", placeholder: "Search ".concat(placeholder, "..."), value: searchTerm, onChange: function (e) { return setSearchTerm(e.target.value); }, style: {
|
|
1783
|
+
flexGrow: 1,
|
|
1784
|
+
minWidth: 80,
|
|
1785
|
+
border: '1px solid var(--color-gray-200)',
|
|
1786
|
+
borderRadius: 4,
|
|
1787
|
+
padding: '4px 8px',
|
|
1788
|
+
outline: 'none',
|
|
1789
|
+
}, onClick: function (e) { return e.stopPropagation(); } }))] }));
|
|
1790
|
+
};
|
|
1791
|
+
PillAndSearchSection.displayName = 'PillAndSearchSection';
|
|
1792
|
+
var ErrorSection = (jsxs(Flex, { className: styles$m.error, gap: 4, ml: 16, mt: 8, style: { visibility: error ? 'visible' : 'hidden' }, children: [jsx(Info, { width: "18px", height: "18px", viewBox: "0 0 24 24", stroke: "var(--color-red-300)" }), jsx(Text, { variant: "xs", className: classNames(styles$m.errorText), children: error })] }));
|
|
1793
|
+
var DescriptionSection = (jsx(Flex, { className: styles$m.description, gap: 4, ml: 16, mt: 8, style: { visibility: description ? 'visible' : 'hidden' }, children: jsx(Text, { variant: "xs", children: description }) }));
|
|
1794
|
+
var dropdownFooter = function (store) { return (jsxs(Flex, { justify: "flex-end", py: 8, gap: 8, children: [jsx(Button, { variant: "outlined", label: "Clear", size: "small", onClick: handleClear }), jsx(Button, { variant: "filled", label: "Apply", size: "small", onClick: function () { return handleApply(store.closeDropdown); } })] })); };
|
|
1795
|
+
return (jsx(Dropdown, { options: dropdownOptions, maxHeight: 300, footer: dropdownFooter, children: function (store) {
|
|
1796
|
+
var _a, _b;
|
|
1797
|
+
var floatLabel = store.dropdownOpened || hasSelectedOptions;
|
|
1798
|
+
return (jsxs("div", { className: styles$m.container, children: [floatLabel && (jsx("label", { className: classNames(styles$m.label, (_a = {},
|
|
1799
|
+
_a[styles$m.labelError] = error && !isFocused,
|
|
1800
|
+
_a[styles$m.labelFocused] = isFocused || isHovered,
|
|
1801
|
+
_a)), children: label })), jsxs(Box, { className: classNames(styles$m.input, multiselectStyles.input, (_b = {},
|
|
1802
|
+
_b[styles$m.inputError] = error && !isFocused,
|
|
1803
|
+
_b[multiselectStyles.inputFocused] = isFocused || store.dropdownOpened,
|
|
1804
|
+
_b[multiselectStyles.disabled] = disabled,
|
|
1805
|
+
_b)), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onClick: function () { return store.toggleDropdown(); }, onFocus: function () { return setIsFocused(true); }, onBlur: handleBlur, tabIndex: 0, children: [jsx(PillAndSearchSection, { store: store, maxPills: maxPills }), jsx(Chevron, { rotate: store.dropdownOpened ? 90 : 270 })] }), error ? ErrorSection : DescriptionSection] }));
|
|
1806
|
+
} }));
|
|
1807
|
+
};
|
|
1808
|
+
MultiselectInternal.displayName = 'MultiselectInternal';
|
|
1809
|
+
|
|
1810
|
+
var styles = {"navbarSideContainer":"NavBarSide-module_navbarSideContainer__P8vLp","tabsRoot":"NavBarSide-module_tabsRoot__AAHNn","tabsList":"NavBarSide-module_tabsList__q9npG","tab":"NavBarSide-module_tab__i8yDE","tabsPanel":"NavBarSide-module_tabsPanel__-JWPo"};
|
|
1811
|
+
|
|
1812
|
+
var NavBarSide = function (_a) {
|
|
1813
|
+
var tabs = _a.tabs, onChange = _a.onChange, value = _a.value;
|
|
1814
|
+
return (jsx("div", { className: styles.navbarSideContainer, children: jsxs(Tabs$1, { value: value, onChange: onChange, orientation: "vertical", keepMounted: false, classNames: {
|
|
1815
|
+
list: styles.tabsList,
|
|
1816
|
+
tab: styles.tab,
|
|
1817
|
+
panel: styles.tabsPanel,
|
|
1818
|
+
root: styles.tabsRoot,
|
|
1819
|
+
}, children: [jsx(Tabs$1.List, { children: tabs.map(function (tab) { return (jsx(Tabs$1.Tab, { value: tab.value, "data-active": undefined, children: tab.label }, tab.value)); }) }), tabs.map(function (tab) { return (jsx(Tabs$1.Panel, { value: tab.value, children: tab.content }, tab.value)); })] }) }));
|
|
1820
|
+
};
|
|
1821
|
+
NavBarSide.displayName = 'NavBarSide';
|
|
1822
|
+
|
|
1823
|
+
var Alert = function (props) {
|
|
1824
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M15.5 14.374v4.098m-10.167 3.69c-.946 1.639.237 3.687 2.13 3.687h16.074c1.893 0 3.076-2.048 2.13-3.687L17.63 8.23c-.946-1.64-3.314-1.64-4.26 0L5.333 22.162zm10.167-.41h.008v.007H15.5v-.008z" }) })));
|
|
1825
|
+
};
|
|
1826
|
+
Alert.displayName = 'Alert';
|
|
1827
|
+
|
|
1828
|
+
var Attachment = function (props) {
|
|
1829
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M20.04 12.542v8.947a3.7 3.7 0 01-7.401 0V8.767a2.467 2.467 0 014.934 0V21.5m0-.01v.01m-2.467-9.095v9.084a1.233 1.233 0 002.467.01" }) })));
|
|
1830
|
+
};
|
|
1831
|
+
Attachment.displayName = 'Attachment';
|
|
1832
|
+
|
|
1833
|
+
var Bell = function (_a) {
|
|
1834
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.alert, alert = _e === undefined ? false : _e;
|
|
1835
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, children: [jsx("path", { d: "M14.1429 27.8572H17.5714", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M22.7143 15C22.7143 13.1813 21.9919 11.4372 20.7059 10.1512C19.4199 8.86527 17.6758 8.14282 15.8572 8.14282C14.0385 8.14282 12.2944 8.86527 11.0084 10.1512C9.72247 11.4372 9.00002 13.1813 9.00002 15V21C9.00002 21.6819 8.72909 22.3361 8.24686 22.8183C7.76463 23.3005 7.11057 23.5714 6.42859 23.5714H25.2857C24.6038 23.5714 23.9496 23.3005 23.4674 22.8183C22.9852 22.3361 22.7143 21.6819 22.7143 21V15Z", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M4.71429 14.777C4.71522 13.1453 5.10435 11.5372 5.84956 10.0855C6.59476 8.63384 7.67464 7.38032 9.00001 6.42847", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M25.8648 10.0855C25.1196 8.63384 24.0396 7.38032 22.7143 6.42847", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), alert && (jsx("circle", { cx: "22.2857", cy: "9.14282", r: "5.5", fill: "#7B34D6", stroke: "white" }))] }));
|
|
1836
|
+
};
|
|
1837
|
+
Bell.displayName = 'Bell';
|
|
1838
|
+
|
|
1839
|
+
var Cat = function (props) {
|
|
1840
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M19.651 8.556l3.115-2.73a1.97 1.97 0 012.142-.305 2.054 2.054 0 011.167 1.862v9.95c0 5.894-4.67 10.672-10.433 10.672v0c-5.761 0-10.432-4.778-10.432-10.671v-9.95c0-.801.455-1.529 1.167-1.863a1.97 1.97 0 012.142.305l3.114 2.73a11.774 11.774 0 018.018 0z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M13.36 14.333a.33.33 0 01-.326.333.33.33 0 01-.326-.333.33.33 0 01.326-.334c.086 0 .17.035.23.098a.338.338 0 01.096.236M18.577 14.333a.33.33 0 01-.327.333.33.33 0 01-.326-.333.33.33 0 01.326-.334c.087 0 .17.035.231.098a.338.338 0 01.096.236" }), jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M15.642 19.335v0a.66.66 0 01-.652-.667v0a.22.22 0 01.218-.223h.87c.12 0 .216.1.216.223v0a.66.66 0 01-.652.667z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M12.79 22.836c.314.32.739.501 1.182.5v0c.922 0 1.67-.765 1.67-1.708a1.71 1.71 0 001.032 1.578 1.643 1.643 0 001.82-.37M15.642 19.335v2.293M22.163 17.076l5.216-.89M27.38 21.336l-5.217-.89M9.122 17.076l-5.216-.89M3.906 21.336l5.216-.89" })] })));
|
|
1841
|
+
};
|
|
1842
|
+
Cat.displayName = 'Cat';
|
|
1843
|
+
|
|
1844
|
+
var Chat = function (_a) {
|
|
1845
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1846
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { d: "M11.7143 25.4285L4.85712 27.1428L6.5714 22V6.5714C6.5714 6.11674 6.75202 5.68071 7.0735 5.35922C7.395 5.03773 7.83103 4.85712 8.28569 4.85712H25.4285C25.8832 4.85712 26.3193 5.03773 26.6407 5.35922C26.9621 5.68071 27.1428 6.11674 27.1428 6.5714V23.7143C27.1428 24.1689 26.9621 24.605 26.6407 24.9264C26.3193 25.2479 25.8832 25.4285 25.4285 25.4285H11.7143Z", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M11.7142 12.5714H21.9999", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M11.7142 17.7142H18.5714", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
1847
|
+
};
|
|
1848
|
+
Chat.displayName = 'Chat';
|
|
1849
|
+
|
|
1850
|
+
var Check = function (_a) {
|
|
1851
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.fill, fill = _e === undefined ? 'none' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f, _g = _a.strokeWidth, strokeWidth = _g === undefined ? 1.5 : _g;
|
|
1852
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("circle", { cx: "16", cy: "16", r: "12", fill: "none", stroke: stroke, strokeWidth: strokeWidth }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: "M10 16.5l4.5 4.5L22 11.5" })] }));
|
|
1853
|
+
};
|
|
1854
|
+
Check.displayName = 'Check';
|
|
1855
|
+
|
|
1856
|
+
var Cloud = function (_a) {
|
|
1857
|
+
var _b = _a.width, width = _b === undefined ? '28' : _b, _c = _a.height, height = _c === undefined ? '21' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 28 21' : _d, _e = _a.fill, fill = _e === undefined ? 'none' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f, _g = _a.strokeWidth, strokeWidth = _g === undefined ? 1.5 : _g;
|
|
1858
|
+
return (jsx(Icon, { width: width, height: height, fill: fill, viewBox: viewBox, children: jsx("path", { d: "M0.75 14.05C0.75 17.198 3.43629 19.75 6.75 19.75H21.75C24.5114 19.75 26.75 17.6234 26.75 15C26.75 12.9707 25.4104 11.2386 23.5255 10.5582C23.6709 10.1644 23.75 9.74098 23.75 9.3C23.75 7.20132 21.9591 5.5 19.75 5.5C19.319 5.5 18.9039 5.56477 18.5149 5.68461C17.7186 2.8433 14.9916 0.75 11.75 0.75C7.88401 0.75 4.75 3.72731 4.75 7.4C4.75 7.82209 4.79139 8.23499 4.87053 8.63524C2.4774 9.38448 0.75 11.5256 0.75 14.05Z", stroke: stroke, strokeWidth: strokeWidth, strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
1859
|
+
};
|
|
1860
|
+
Cloud.displayName = 'Cloud';
|
|
1861
|
+
|
|
1862
|
+
var Delete = function (props) {
|
|
1863
|
+
return (jsx(Icon, __assign({}, props, { viewBox: props.viewBox || '0 0 32 32', children: jsx("path", { d: "M26.671 8.4965H5.32874M18.6259 14.499V22.0021M13.3738 14.499V22.0021M20.7237 28.0046H11.276C9.70771 28.0046 8.40385 26.7972 8.28357 25.2336L6.9961 8.4965H25.0036L23.7161 25.2336C23.5958 26.7972 22.292 28.0046 20.7237 28.0046ZM12.2483 3.99463H19.7514C20.5802 3.99463 21.252 4.66648 21.252 5.49525V8.4965H10.7477V5.49525C10.7477 4.66648 11.4195 3.99463 12.2483 3.99463Z", stroke: props.stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
1864
|
+
};
|
|
1865
|
+
Delete.displayName = 'Delete';
|
|
1866
|
+
|
|
1867
|
+
var Dog = function (props) {
|
|
1868
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M15.642 18.223v0a.66.66 0 01-.652-.667v0a.22.22 0 01.218-.222h.87c.12 0 .216.1.216.222v0a.66.66 0 01-.652.667z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M23.467 17.334c0 .737.584 1.334 1.304 1.334v0c1.44 0 2.608-1.195 2.608-2.668v-4.002c0-2.21-1.752-4.001-3.912-4.001h-.544M10.493 23.798l-1.371 4.207M20.792 23.798l1.37 4.207M8.362 7.997h-.544c-2.16 0-3.912 1.791-3.912 4.001V16c0 1.473 1.167 2.668 2.608 2.668v0c.72 0 1.304-.597 1.304-1.334M18.25 23.775v.895c0 1.105-.875 2.001-1.956 2.001H14.99c-1.08 0-1.956-.896-1.956-2v-.896" }), jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M15.642 18.223v1.779c0 2.21-1.751 4.001-3.912 4.001v0c-2.16 0-3.912-1.791-3.912-4.001v-9.338c0-3.683 2.92-6.669 6.52-6.669h2.609c3.6 0 6.52 2.986 6.52 6.67v9.337c0 2.21-1.752 4.001-3.912 4.001v0c-2.161 0-3.913-1.791-3.913-4.001v-1.779z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M18.577 12.666a.33.33 0 01-.327.333.33.33 0 01-.326-.334.33.33 0 01.326-.333c.087 0 .17.035.231.098a.337.337 0 01.096.236M13.36 12.666a.33.33 0 01-.326.333.33.33 0 01-.326-.334.33.33 0 01.326-.333c.086 0 .17.035.23.098a.337.337 0 01.096.236" })] })));
|
|
1869
|
+
};
|
|
1870
|
+
Dog.displayName = 'Dog';
|
|
1871
|
+
|
|
1872
|
+
var Fingerprint = function (_a) {
|
|
1873
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1874
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M10.272 23.728l.452-.452A3.22 3.22 0 0113 22.333v0c.854 0 1.672.34 2.276.943l.452.452A4.342 4.342 0 0018.798 25h.526a4.343 4.343 0 004.343-4.343v0a4.343 4.343 0 00-1.934-3.613v0a10.638 10.638 0 01-3.31-3.527l-1.226-2.122A4.793 4.793 0 0013.047 9v0a4.793 4.793 0 00-4.11 2.327l-1.373 2.288a10.637 10.637 0 01-3.22 3.378l-.077.051a4.343 4.343 0 00-1.934 3.613v0A4.343 4.343 0 006.676 25H7.2a4.343 4.343 0 003.07-1.272v0z", clipRule: "evenodd" }), jsx("circle", { cx: "3", cy: "9.667", r: "2", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5" }), jsx("circle", { cx: "23", cy: "9.667", r: "2", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5" }), jsx("ellipse", { cx: "8.714", cy: "3", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", rx: "2", ry: "2" }), jsx("circle", { cx: "17.286", cy: "3", r: "2", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5" })] }));
|
|
1875
|
+
};
|
|
1876
|
+
Fingerprint.displayName = 'Fingerprint';
|
|
1877
|
+
|
|
1878
|
+
var Google = function (props) {
|
|
1879
|
+
return (jsxs(Icon, __assign({}, props, { stroke: "none", children: [jsx("path", { fill: "#4285F4", d: "M22 11.453c0-.83-.069-1.628-.196-2.394H11.647v4.532h5.804c-.255 1.457-1.02 2.691-2.167 3.521v2.947h3.5C20.824 18.016 22 15.016 22 11.452z" }), jsx("path", { fill: "#34A853", d: "M11.327 22.647c3.034 0 5.578-.997 7.438-2.707l-3.648-2.82c-1 .672-2.278 1.08-3.79 1.08-2.922 0-5.405-1.965-6.294-4.612H1.294v2.89a11.232 11.232 0 0010.033 6.169z" }), jsx("path", { fill: "#FBBC05", d: "M5.176 13.38a6.024 6.024 0 01-.374-2.057c0-.718.14-1.407.374-2.057V6.471H1.262A10.01 10.01 0 000 11.323c0 1.753.46 3.397 1.262 4.854L4.31 13.99l.866-.61z" }), jsx("path", { fill: "#EA4335", d: "M11.28 4.453c1.648 0 3.112.57 4.281 1.668l3.204-3.203C16.822 1.108 14.3 0 11.28 0 6.908 0 3.135 2.511 1.294 6.171L5.016 9.06c.885-2.644 3.356-4.606 6.264-4.606z" })] })));
|
|
1880
|
+
};
|
|
1881
|
+
Google.displayName = 'Google';
|
|
1882
|
+
|
|
1883
|
+
var Grid = function (props) {
|
|
1884
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M3 3h7v7H3V3zM14 3h7v7h-7V3zM3 14h7v7H3v-7zM14 14h7v7h-7v-7z", clipRule: "evenodd" }) })));
|
|
1885
|
+
};
|
|
1886
|
+
Grid.displayName = 'Grid';
|
|
1887
|
+
|
|
1888
|
+
var Hamburger = function (_a) {
|
|
1889
|
+
var _b = _a.width, width = _b === undefined ? '32' : _b, _c = _a.height, height = _c === undefined ? '32' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.fill, fill = _e === undefined ? 'none' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f;
|
|
1890
|
+
return (jsxs(Icon, { width: width, height: height, fill: fill, viewBox: viewBox, children: [jsx("path", { d: "M6 8.25H26", stroke: stroke, strokeWidth: 1.5, strokeLinecap: "round" }), jsx("path", { d: "M6 16.25H26", stroke: stroke, strokeWidth: 1.5, strokeLinecap: "round" }), jsx("path", { d: "M6 24.25H26", stroke: stroke, strokeWidth: 1.5, strokeLinecap: "round" })] }));
|
|
1891
|
+
};
|
|
1892
|
+
Hamburger.displayName = 'Hamburger';
|
|
1893
|
+
|
|
1894
|
+
var HappyFace = function (props) {
|
|
1895
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M20.212 20.212a5.25 5.25 0 01-7.424 0M27 16.5C27 22.299 22.299 27 16.5 27S6 22.299 6 16.5 10.701 6 16.5 6 27 10.701 27 16.5zm-13.125-2.625c0 .483-.196.875-.438.875-.241 0-.437-.392-.437-.875s.196-.875.438-.875c.241 0 .437.392.437.875zm-.438 0h.01v.018h-.01v-.018zm6.563 0c0 .483-.196.875-.438.875-.241 0-.437-.392-.437-.875s.196-.875.438-.875c.241 0 .437.392.437.875zm-.438 0h.01v.018h-.01v-.018z" }) })));
|
|
1896
|
+
};
|
|
1897
|
+
HappyFace.displayName = 'HappyFace';
|
|
1898
|
+
|
|
1899
|
+
var House = function (_a) {
|
|
1900
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1901
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsxs("g", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", opacity: "0.9", children: [jsx("path", { d: "M1 11.262l10.58-9.069c.817-.7 2.023-.7 2.84 0L25 11.263" }), jsx("path", { d: "M23.288 9.817V2.09A1.09 1.09 0 0022.197 1h-3.273a1.09 1.09 0 00-1.09 1.09v3.051M9.732 23.669v-6.91c0-.602.488-1.09 1.09-1.09h2.183" }), jsx("path", { d: "M16.273 23.669v-6.91c0-.602-.489-1.09-1.091-1.09H13M2.715 9.82v13.85M23.167 10v13M25 23.67H1" })] }) }));
|
|
1902
|
+
};
|
|
1903
|
+
House.displayName = 'House';
|
|
1904
|
+
|
|
1905
|
+
var HouseTime = function (_a) {
|
|
1906
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1907
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsxs("g", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", opacity: "0.9", children: [jsx("path", { d: "M1 11.262l10.58-9.069c.817-.7 2.023-.7 2.84 0L25 11.263" }), jsx("path", { d: "M23.288 9.817V2.09A1.09 1.09 0 0022.197 1h-3.273a1.09 1.09 0 00-1.09 1.09v3.051M21 14.333A5.333 5.333 0 1121 25a5.333 5.333 0 010-10.667M23.432 19.947h-2.59M20.84 19.946v-3.121M9.732 23.669v-6.91c0-.602.488-1.09 1.09-1.09h2.183M2.715 9.82v13.85M13 23.67H1" })] }) }));
|
|
1908
|
+
};
|
|
1909
|
+
HouseTime.displayName = 'HouseTime';
|
|
1910
|
+
|
|
1911
|
+
var Identification = function (props) {
|
|
1912
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { d: "M20 12H25M20 16H25M20 20H25M6 26H26C27.6569 26 29 24.6569 29 23V9C29 7.34315 27.6569 6 26 6H6C4.34315 6 3 7.34315 3 9V23C3 24.6569 4.34315 26 6 26ZM14 12.5C14 13.8807 12.8807 15 11.5 15C10.1193 15 9 13.8807 9 12.5C9 11.1193 10.1193 10 11.5 10C12.8807 10 14 11.1193 14 12.5ZM15.7252 20.9485C14.4653 21.6196 13.0269 22 11.4998 22C9.97264 22 8.53432 21.6196 7.27441 20.9485C7.90648 19.2277 9.55977 18 11.4998 18C13.4398 18 15.0931 19.2277 15.7252 20.9485Z", stroke: props.stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
1913
|
+
};
|
|
1914
|
+
Identification.displayName = 'Identification';
|
|
1915
|
+
|
|
1916
|
+
var Location = function (_a) {
|
|
1917
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1918
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M9.308 1C4.721 1 1 4.542 1 8.904c0 5.02 5.539 12.974 7.572 15.722a.91.91 0 001.472 0c2.034-2.747 7.572-10.698 7.572-15.722C17.616 4.542 13.895 1 9.308 1z" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M9.31 12.08a2.771 2.771 0 100-5.541 2.771 2.771 0 000 5.542z" })] }));
|
|
1919
|
+
};
|
|
1920
|
+
Location.displayName = 'Location';
|
|
1921
|
+
|
|
1922
|
+
var Mail = function (_a) {
|
|
1923
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1924
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, stroke: stroke, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M25.692 7H6.308A2.308 2.308 0 004 9.308v13.846a2.308 2.308 0 002.308 2.308h19.384A2.308 2.308 0 0028 23.154V9.308A2.308 2.308 0 0025.692 7z" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M7.692 10.692l8.307 6.462 8.308-6.462" })] }));
|
|
1925
|
+
};
|
|
1926
|
+
Mail.displayName = 'Mail';
|
|
1927
|
+
|
|
1928
|
+
var Menu = function (_a) {
|
|
1929
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1930
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M14 8h13M14 8a2 2 0 11-4 0m4 0a2 2 0 10-4 0M5 8h5m4 16h13m-13 0a2 2 0 11-4 0m4 0a2 2 0 10-4 0m-5 0h5m12-8h5m-5 0a2 2 0 11-4 0m4 0a2 2 0 10-4 0M5 16h13" }) }));
|
|
1931
|
+
};
|
|
1932
|
+
Menu.displayName = 'Menu';
|
|
1933
|
+
|
|
1934
|
+
var MenuTouched = function (_a) {
|
|
1935
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1936
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { d: "M14 8L27 8M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8M14 8C14 6.89543 13.1046 6 12 6C10.8954 6 10 6.89543 10 8M5 8H10M14 24H27M14 24C14 25.1046 13.1046 26 12 26C10.8954 26 10 25.1046 10 24M14 24C14 22.8954 13.1046 22 12 22C10.8954 22 10 22.8954 10 24M5 24L10 24M22 16L27 16M22 16C22 17.1046 21.1046 18 20 18C18.8954 18 18 17.1046 18 16M22 16C22 14.8954 21.1046 14 20 14C18.8954 14 18 14.8954 18 16M5 16H18", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("circle", { cx: "26", cy: "6", r: "5.5", fill: "#7B34D6", stroke: "white" })] }));
|
|
1937
|
+
};
|
|
1938
|
+
MenuTouched.displayName = 'MenuTouched';
|
|
1939
|
+
|
|
1940
|
+
var Open = function (_a) {
|
|
1941
|
+
var _b = _a.width, width = _b === undefined ? '16' : _b, _c = _a.height, height = _c === undefined ? '16' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 16 16' : _d, _e = _a.fill, fill = _e === undefined ? 'none' : _e, _f = _a.stroke, stroke = _f === undefined ? 'currentColor' : _f;
|
|
1942
|
+
return (jsx(Icon, { width: width, height: height, fill: fill, viewBox: viewBox, children: jsx("path", { d: "M9 4H3.5C2.67157 4 2 4.67157 2 5.5V12.5C2 13.3284 2.67157 14 3.5 14H10.5C11.3284 14 12 13.3284 12 12.5V7M6.33333 9.66667L14 2M14 2L10.5 2M14 2V5.5", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
1943
|
+
};
|
|
1944
|
+
Open.displayName = 'Open';
|
|
1945
|
+
|
|
1946
|
+
var Pets = function (props) {
|
|
1947
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M27.037 14.667c.216-.813.33-1.65.337-2.493a6.804 6.804 0 00-1.922-4.87 6.497 6.497 0 00-4.76-1.97 5.979 5.979 0 00-5.05 2.562 5.979 5.979 0 00-5.048-2.563c-1.783-.03-3.501.68-4.761 1.97a6.804 6.804 0 00-1.922 4.871 12.954 12.954 0 003.305 8.066 21.288 21.288 0 005.615 4.716c.471.272.98.47 1.508.588" }), jsx("path", { fillRule: "evenodd", stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M23.137 22.667v0c2.16 0 3.91 1.79 3.91 4v0c0 .736-.583 1.333-1.303 1.333H20.53c-.72 0-1.303-.597-1.303-1.333v0c0-2.21 1.75-4 3.91-4z", clipRule: "evenodd" }), jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M23.463 18.667a.33.33 0 01-.326.333.33.33 0 01-.325-.333.33.33 0 01.325-.334c.087 0 .17.035.231.098a.337.337 0 01.096.236M27.374 20a.33.33 0 01-.326.333.33.33 0 01-.326-.333.33.33 0 01.326-.333c.087 0 .17.035.23.097a.337.337 0 01.096.236M19.553 20a.33.33 0 01-.326.333.33.33 0 01-.326-.333.33.33 0 01.326-.333c.086 0 .17.035.23.097a.337.337 0 01.096.236" })] })));
|
|
1948
|
+
};
|
|
1949
|
+
Pets.displayName = 'Pets';
|
|
1950
|
+
|
|
1951
|
+
var Phone = function (_a) {
|
|
1952
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1953
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M1 6.538C1 16.735 9.266 25 19.462 25h2.769A2.77 2.77 0 0025 22.23v-1.687c0-.636-.432-1.19-1.049-1.344l-5.444-1.36a1.384 1.384 0 00-1.443.512l-1.194 1.592c-.347.462-.946.666-1.489.468a14.813 14.813 0 01-8.792-8.792c-.198-.543.006-1.142.468-1.489l1.592-1.194c.446-.334.648-.903.513-1.443L6.8 2.049A1.385 1.385 0 005.457 1H3.77A2.77 2.77 0 001 3.77v2.768z" }) }));
|
|
1954
|
+
};
|
|
1955
|
+
Phone.displayName = 'Phone';
|
|
1956
|
+
|
|
1957
|
+
var Plaid = function (props) {
|
|
1958
|
+
return (jsx(Icon, __assign({}, props, { stroke: "none", children: jsx("path", { fill: props.fill || 'var(--color-neutral-600)', fillRule: "evenodd", d: "M12.705 2L4.35 4.189l-2.302 8.403 2.88 2.957L2 18.457l2.167 8.44 8.32 2.325 2.927-2.91 2.88 2.957 8.357-2.188 2.302-8.404-2.88-2.956L29 12.813l-2.167-8.44-8.321-2.325-2.926 2.908L12.706 2zM7.578 5.805l4.401-1.153 1.925 1.976-2.807 2.789-3.52-3.612zm9.663.849l1.955-1.943 4.383 1.224-3.577 3.554-2.761-2.835zM4.684 11.902l1.212-4.426 3.519 3.612-2.807 2.79L4.684 11.9zm16.972-.714l3.577-3.555 1.14 4.446-1.955 1.944-2.762-2.835zm-8.905-.073l2.808-2.79 2.76 2.836-2.806 2.79-2.762-2.836zm-4.488 4.46l2.806-2.79 2.763 2.836-2.807 2.79-2.762-2.836zm8.905.073l2.807-2.79 2.761 2.836-2.807 2.79-2.76-2.836zM4.625 19.191l1.957-1.945 2.76 2.836-3.575 3.553-1.142-4.444zm8.054.918l2.807-2.79 2.762 2.835-2.807 2.79-2.762-2.835zm8.905.073l2.807-2.79 1.925 1.976-1.212 4.426-3.52-3.612zM7.42 25.335l3.576-3.556 2.763 2.836-1.956 1.944-4.383-1.224zm9.675-.693l2.806-2.79 3.52 3.613-4.402 1.153-1.924-1.976z", clipRule: "evenodd" }) })));
|
|
1959
|
+
};
|
|
1960
|
+
Plaid.displayName = 'Plaid';
|
|
1961
|
+
|
|
1962
|
+
var Plus = function (_a) {
|
|
1963
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1964
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M16 28v0C9.372 28 4 22.628 4 16v0C4 9.372 9.372 4 16 4v0c6.628 0 12 5.372 12 12v0c0 6.628-5.372 12-12 12z", clipRule: "evenodd" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M16 10.667v10.666M21.333 16H10.667" })] }));
|
|
1965
|
+
};
|
|
1966
|
+
Plus.displayName = 'Plus';
|
|
1967
|
+
|
|
1968
|
+
var Remove = function (_a) {
|
|
1969
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1970
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M21.333 16H10.667" }), jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M16 28v0C9.372 28 4 22.628 4 16v0C4 9.372 9.372 4 16 4v0c6.628 0 12 5.372 12 12v0c0 6.628-5.372 12-12 12z", clipRule: "evenodd" })] }));
|
|
1971
|
+
};
|
|
1972
|
+
Remove.displayName = 'Remove';
|
|
1973
|
+
|
|
1974
|
+
var Shield = function (_a) {
|
|
1975
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
1976
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsx("path", { d: "M11.953 17.3024L14.9354 20.2847L19.906 13.3259M15.9295 4C13.079 6.69954 9.22993 8.35526 4.99412 8.35526C4.92682 8.35526 4.85961 8.35484 4.79251 8.35401C4.27822 9.91824 4 11.5896 4 13.3259C4 20.7375 9.06913 26.9651 15.9295 28.7308C22.7899 26.9651 27.859 20.7375 27.859 13.3259C27.859 11.5896 27.5808 9.91824 27.0665 8.35401C26.9994 8.35484 26.9322 8.35526 26.8649 8.35526C22.6291 8.35526 18.78 6.69954 15.9295 4Z", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
1977
|
+
};
|
|
1978
|
+
Shield.displayName = 'Shield';
|
|
1979
|
+
|
|
1980
|
+
var ThreeDots = function (props) {
|
|
1981
|
+
return (jsxs(Icon, __assign({}, props, { fill: props.fill || 'var(--color-neutral-600)', stroke: "none", children: [jsx("path", { d: "M2.14285 3.04239e-05C3.32632 3.04756e-05 4.28571 0.95942 4.28571 2.14289C4.28571 3.32635 3.32632 4.28574 2.14285 4.28574C0.959382 4.28574 -7.77479e-06 3.32635 -7.72306e-06 2.14289C-7.67133e-06 0.95942 0.959382 3.03722e-05 2.14285 3.04239e-05Z", fill: props.fill }), jsx("path", { d: "M2.14285 7.85717C3.32632 7.85717 4.28571 8.81656 4.28571 10C4.28571 11.1835 3.32632 12.1429 2.14285 12.1429C0.959381 12.1429 -8.11824e-06 11.1835 -8.06651e-06 10C-8.01478e-06 8.81656 0.959381 7.85717 2.14285 7.85717Z", fill: props.fill }), jsx("path", { d: "M4.2857 17.8572C4.2857 16.6737 3.32632 15.7143 2.14285 15.7143C0.959381 15.7143 -8.35822e-06 16.6737 -8.40996e-06 17.8572C-8.46169e-06 19.0406 0.959381 20 2.14285 20C3.32632 20 4.2857 19.0406 4.2857 17.8572Z", fill: props.fill })] })));
|
|
1982
|
+
};
|
|
1983
|
+
ThreeDots.displayName = 'ThreeDots';
|
|
1984
|
+
|
|
1985
|
+
var ThumbsDown = function (props) {
|
|
1986
|
+
return (jsx(Icon, __assign({}, props, { children: jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M22.606 17c-.992 0-1.888.549-2.5 1.33a11.127 11.127 0 01-3.522 2.953c-.889.473-1.66 1.176-2.034 2.111a5.538 5.538 0 00-.396 2.057v.78c0 .51-.413.923-.923.923a2.77 2.77 0 01-2.77-2.77c0-1.417.32-2.76.89-3.96.328-.687-.13-1.578-.892-1.578m0 0H6.612c-1.264 0-2.395-.854-2.528-2.11A14.937 14.937 0 014 15.154c0-3.505 1.22-6.725 3.26-9.257C7.737 5.305 8.475 5 9.235 5h4.943a5.54 5.54 0 011.752.284l3.833 1.278a5.54 5.54 0 001.751.284h1.989m-13.044 12h2.772m10.272-12a11.007 11.007 0 00-.333-.741c-.243-.492.096-1.105.645-1.105h1.117c1.094 0 2.108.638 2.427 1.684C27.776 8.049 28 9.498 28 11c0 1.91-.363 3.737-1.023 5.413-.376.953-1.337 1.51-2.36 1.51H23.32c-.58 0-.917-.684-.615-1.18A11.026 11.026 0 0024.308 11c0-1.469-.286-2.871-.805-4.154z" }) })));
|
|
1987
|
+
};
|
|
1988
|
+
ThumbsDown.displayName = 'ThumbsDown';
|
|
1989
|
+
|
|
1990
|
+
var Visa = function (props) {
|
|
1991
|
+
return (jsxs(Icon, __assign({}, props, { stroke: "none", children: [jsx("rect", { width: "27", height: "18", fill: "#1434CB", rx: "2" }), jsx("rect", { width: "26", height: "17", x: "0.5", y: "0.5", stroke: "#000", strokeOpacity: "0.2", rx: "1.5" }), jsx("path", { fill: "#fff", d: "M16.678 5.486c-1.491 0-2.824.773-2.824 2.2 0 1.638 2.364 1.751 2.364 2.574 0 .347-.397.656-1.075.656-.962 0-1.682-.433-1.682-.433l-.307 1.441s.828.366 1.928.366c1.63 0 2.913-.81 2.913-2.263 0-1.73-2.373-1.84-2.373-2.604 0-.271.326-.568 1.002-.568.763 0 1.385.315 1.385.315l.301-1.392s-.677-.292-1.632-.292zm-13.642.105L3 5.801s.627.115 1.192.344c.728.263.78.415.902.89l1.335 5.147h1.79l2.757-6.59H9.19l-1.771 4.48-.723-3.798c-.066-.435-.402-.683-.813-.683H3.036zm8.658 0l-1.4 6.59h1.702l1.396-6.59h-1.698zm9.496 0c-.41 0-.628.22-.787.604l-2.495 5.987h1.786l.345-.998h2.175l.21.998H24l-1.375-6.59H21.19zm.233 1.78l.529 2.474h-1.418l.889-2.473z" })] })));
|
|
1992
|
+
};
|
|
1993
|
+
Visa.displayName = 'Visa';
|
|
1994
|
+
|
|
1995
|
+
var World = function (_a) {
|
|
1996
|
+
var _b = _a.width, width = _b === undefined ? '32px' : _b, _c = _a.height, height = _c === undefined ? '32px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 32 32' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e;
|
|
1997
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, children: jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M17.375 5.036v.662c0 .39.173.759.472 1.008l1.247 1.039c.515.43.624 1.178.252 1.736l-.596.895c-.324.485-.8.85-1.354 1.034l-.166.055a1.292 1.292 0 00-.667 1.942 1.292 1.292 0 01-.497 1.873L13 16.813l.494 1.234a1.115 1.115 0 01-1.927 1.084l-.793-1.057a1.313 1.313 0 00-2.224.2l-.8 1.601-.714.178M17.375 5.037A10.64 10.64 0 0016.5 5C10.701 5 6 9.701 6 15.5c0 1.631.372 3.176 1.036 4.553M17.375 5.037C22.765 5.48 27 9.996 27 15.5c0 2.192-.672 4.228-1.821 5.912m0 0l-.206-.617A2.625 2.625 0 0022.483 19h-.733l-.378-.378a1.695 1.695 0 00-2.716.44l-.042.085a1.85 1.85 0 01-1.146.952l-1.154.33a1.313 1.313 0 00-.934 1.477l.085.51c.092.554.57.959 1.132.959.987 0 1.864.632 2.176 1.569l.25.75m6.156-4.282a10.513 10.513 0 01-6.156 4.283m0 0c-.808.2-1.653.305-2.523.305a10.5 10.5 0 01-9.464-5.947M20.875 12a3.492 3.492 0 01-1.185 2.625" }) }));
|
|
1998
|
+
};
|
|
1999
|
+
World.displayName = 'World';
|
|
2000
|
+
|
|
2001
|
+
var AISearch = function (props) {
|
|
2002
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M15.1428 25.4284C20.8235 25.4284 25.4285 20.8234 25.4285 15.1427C25.4285 9.46206 20.8235 4.85699 15.1428 4.85699C9.46219 4.85699 4.85712 9.46206 4.85712 15.1427C4.85712 20.8234 9.46219 25.4284 15.1428 25.4284Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M22.4113 22.4116L27.1427 27.1431", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M9.91351 15.7052C9.28298 15.5955 9.28298 14.6903 9.91351 14.5806C12.1978 14.1832 14.0146 12.4433 14.5105 10.1784L14.5485 10.0047C14.6849 9.38158 15.5722 9.37771 15.714 9.99965L15.7602 10.202C16.2744 12.4563 18.0917 14.1815 20.3696 14.5778C21.0034 14.688 21.0034 15.5978 20.3696 15.7081C18.0917 16.1043 16.2744 17.8295 15.7602 20.0838L15.714 20.2862C15.5722 20.9081 14.6849 20.9042 14.5485 20.2811L14.5105 20.1075C14.0146 17.8425 12.1978 16.1026 9.91351 15.7052Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2003
|
+
};
|
|
2004
|
+
AISearch.displayName = 'AI Search';
|
|
2005
|
+
|
|
2006
|
+
var AIGenerate = function (props) {
|
|
2007
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M13.053 18.1102H5.93945C5.47726 18.1102 5.10257 18.4849 5.10257 18.9471V26.0606C5.10257 26.5228 5.47726 26.8976 5.93945 26.8976H13.053C13.5152 26.8976 13.8899 26.5228 13.8899 26.0606V18.9471C13.8899 18.4849 13.5152 18.1102 13.053 18.1102Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M26.0606 18.1102H18.947C18.4848 18.1102 18.1101 18.4849 18.1101 18.9471V26.0606C18.1101 26.5228 18.4848 26.8976 18.947 26.8976H26.0606C26.5228 26.8976 26.8973 26.5228 26.8973 26.0606V18.9471C26.8973 18.4849 26.5228 18.1102 26.0606 18.1102Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M13.053 5.10242H5.93945C5.47726 5.10242 5.10257 5.47711 5.10257 5.9393V13.0529C5.10257 13.5151 5.47726 13.8898 5.93945 13.8898H13.053C13.5152 13.8898 13.8899 13.5151 13.8899 13.0529V5.9393C13.8899 5.47711 13.5152 5.10242 13.053 5.10242Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M17.9639 10.1447C17.4486 10.055 17.4486 9.31531 17.9639 9.22567C19.8307 8.9009 21.3154 7.47899 21.7207 5.62798L21.7517 5.48609C21.8632 4.97681 22.5883 4.97364 22.7042 5.48192L22.7419 5.64728C23.1622 7.48957 24.6473 8.89946 26.509 9.22333C27.0269 9.31343 27.0269 10.0569 26.509 10.147C24.6473 10.4709 23.1622 11.8808 22.7419 13.7231L22.7042 13.8884C22.5883 14.3967 21.8632 14.3936 21.7517 13.8843L21.7207 13.7424C21.3154 11.8914 19.8307 10.4695 17.9639 10.1447Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2008
|
+
};
|
|
2009
|
+
AIGenerate.displayName = 'AI Generate';
|
|
2010
|
+
|
|
2011
|
+
var AIPrompt = function (props) {
|
|
2012
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M12.6057 9.97479H6.6057C6.15104 9.97479 5.71501 10.1554 5.39352 10.4769C5.07203 10.7984 4.89142 11.2344 4.89142 11.6891V25.4035C4.89142 25.8581 5.07203 26.294 5.39352 26.6156C5.71501 26.9371 6.15104 27.1177 6.6057 27.1177H22.0342C22.981 27.1177 23.7485 26.3501 23.7485 25.4035V18.5462", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M4.89142 14.2605H16.0343", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M9.17712 22.832L11.7486 20.2605L9.17712 17.689", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M14.3199 22.8319H16.8914", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M16.6788 10.769C16.0772 10.6643 16.0772 9.8007 16.6788 9.69604C18.8583 9.31687 20.5917 7.65681 21.0648 5.49578L21.1011 5.33013C21.2312 4.73556 22.0778 4.73186 22.2132 5.32527L22.2572 5.51832C22.7477 7.66915 24.4817 9.31519 26.6551 9.6933C27.2597 9.7985 27.2597 10.6665 26.6551 10.7717C24.4817 11.1498 22.7477 12.7959 22.2572 14.9467L22.2132 15.1397C22.0778 15.7332 21.2312 15.7294 21.1011 15.1349L21.0648 14.9692C20.5917 12.8082 18.8583 11.1481 16.6788 10.769Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2013
|
+
};
|
|
2014
|
+
AIPrompt.displayName = 'AI Prompt';
|
|
2015
|
+
|
|
2016
|
+
var AIRedo = function (props) {
|
|
2017
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M7.49634 27.0544V22.8028H11.748", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M26.8667 13.9685C27.9245 19.5942 24.4819 25.1715 18.8611 26.6776C14.5591 27.8303 10.1697 26.2798 7.49634 23.0672", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M5.13338 18.0315C4.07549 12.4058 7.5182 6.82849 13.139 5.32241C17.4406 4.16978 21.8298 5.72006 24.5032 8.93219", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M24.503 4.94592V9.19761H20.2514", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M11.0108 16.572C10.4092 16.4673 10.4092 15.6037 11.0108 15.499C13.1902 15.1199 14.9237 13.4598 15.3968 11.2988L15.433 11.1331C15.5632 10.5385 16.4098 10.5348 16.5451 11.1282L16.5892 11.3213C17.0797 13.4721 18.8136 15.1182 20.9871 15.4963C21.5917 15.6015 21.5917 16.4695 20.9871 16.5747C18.8136 16.9528 17.0797 18.5988 16.5892 20.7497L16.5451 20.9427C16.4098 21.5362 15.5632 21.5324 15.433 20.9379L15.3968 20.7722C14.9237 18.6112 13.1902 16.9511 11.0108 16.572Z", stroke: props.stroke || 'black', strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2018
|
+
};
|
|
2019
|
+
AIRedo.displayName = 'AI Redo';
|
|
2020
|
+
|
|
2021
|
+
var Refresh = function (props) {
|
|
2022
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M20.3846 16.5176L24.077 15.5945L25 19.2869", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M24.077 15.5945C23.292 17.9399 21.8117 19.9908 19.8332 21.4747C17.8546 22.9587 15.4713 23.8053 13 23.9022C10.7258 23.9026 8.5065 23.2031 6.64367 21.8984C4.78085 20.5937 3.36474 18.7474 2.58771 16.6099", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M5.61538 9.133L1.92308 10.0561L1 6.36377", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M1.92303 10.0561C2.74932 7.73647 4.24047 5.71157 6.21039 4.23411C8.18031 2.75667 10.5417 1.89214 13 1.74841C15.2853 1.75484 17.5127 2.46797 19.3768 3.79004C21.241 5.11211 22.6505 6.97838 23.4123 9.13303", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2023
|
+
};
|
|
2024
|
+
Refresh.displayName = 'Refresh';
|
|
2025
|
+
|
|
2026
|
+
export { Check as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, ToastContainer as G, Tooltip as H, IncrementNumber as I, Multiselect as J, NavBarSide as K, Link as L, Message as M, NavBar as N, Alert as O, PasswordInput as P, Arrow as Q, RadioButton as R, SegmentedControl as S, Table as T, Attachment as U, AvatarPlaceholder as V, Bell as W, Calendar as X, Cat as Y, Chat as Z, Chevron as _, AccordionItem as a, ChevronCollapse as a0, Clock as a1, Close as a2, Cloud as a3, Delete as a4, Document as a5, Dog as a6, EyeHide as a7, EyeShow as a8, Fingerprint as a9, Upload as aA, Visa as aB, Warning as aC, World as aD, AISearch as aE, AIGenerate as aF, AIPrompt as aG, AIRedo as aH, Refresh as aI, capitalizeFirstSentenceLetter as aJ, Google as aa, Grid as ab, Hamburger as ac, HappyFace as ad, House as ae, HouseTime as af, Identification as ag, Info as ah, Location as ai, Mail as aj, Menu as ak, MenuTouched as al, Notification as am, Open as an, Pets as ao, Phone as ap, Plaid as aq, Plus as ar, Remove as as, Search as at, Shield as au, StepIndicator as av, ThreeDots as aw, ThumbsDown as ax, Tick as ay, Umbrello as az, AccordionControl as b, AccordionPanel as c, ActionIcon as d, Animation as e, Autocomplete as f, getDefaultExportFromCjs as g, badgeVariantMap as h, Button as i, cardStatusVariantMap as j, CardStatus as k, Checkbox as l, Chip as m, Dropdown as n, FileUpload as o, Input as p, LinkModal as q, Loader as r, Modal as s, Pagination as t, Select as u, StatusBadge as v, Stepper as w, Tabs as x, Text as y, Textarea as z };
|
|
2027
|
+
//# sourceMappingURL=index-BeIykrFW.js.map
|