@jars-labs/jars-components 1.1.6 → 1.1.8
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-D6OoXp0A.js → index-BswprZpZ.js} +175 -141
- package/dist/index-BswprZpZ.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{lottie-C2fOezZO.js → lottie-CzEUvYDu.js} +2 -2
- package/dist/{lottie-C2fOezZO.js.map → lottie-CzEUvYDu.js.map} +1 -1
- package/dist/types/Button/Button.d.ts +1 -1
- package/dist/types/Button/Button.d.ts.map +1 -1
- package/dist/types/Icons/Bell.d.ts +1 -1
- package/dist/types/Icons/Bell.d.ts.map +1 -1
- package/dist/types/Icons/CreditCard.d.ts +1 -1
- package/dist/types/Icons/CreditCard.d.ts.map +1 -1
- package/dist/types/Icons/HouseCheck.d.ts +6 -0
- package/dist/types/Icons/HouseCheck.d.ts.map +1 -0
- package/dist/types/Icons/Plus.d.ts +4 -1
- package/dist/types/Icons/Plus.d.ts.map +1 -1
- package/dist/types/Icons/Remove.d.ts +4 -1
- package/dist/types/Icons/Remove.d.ts.map +1 -1
- package/dist/types/Icons/Search.d.ts.map +1 -1
- package/dist/types/ProgressStepper/ProgressStepper.d.ts +18 -0
- package/dist/types/ProgressStepper/ProgressStepper.d.ts.map +1 -0
- package/dist/types/Stepper/Stepper.d.ts +2 -0
- package/dist/types/Stepper/Stepper.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-D6OoXp0A.js.map +0 -1
|
@@ -59,7 +59,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
59
59
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
var styles$
|
|
62
|
+
var styles$s = {"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
63
|
|
|
64
64
|
var serverSideRenderSVG = function (_a, children) {
|
|
65
65
|
var width = _a.width, height = _a.height, viewBox = _a.viewBox, fill = _a.fill, rotate = _a.rotate;
|
|
@@ -131,30 +131,30 @@ var Accordion = function (_a) {
|
|
|
131
131
|
return child;
|
|
132
132
|
});
|
|
133
133
|
return (jsx(Accordion$1, { variant: "unstyled", chevron: jsx(Chevron, { rotate: 270, width: "24px", height: "24px" }), chevronSize: 24, classNames: {
|
|
134
|
-
root: styles$
|
|
135
|
-
chevron: "".concat(styles$
|
|
134
|
+
root: styles$s.accordion,
|
|
135
|
+
chevron: "".concat(styles$s.chevron, " ").concat(styles$s[customChevronPosition]),
|
|
136
136
|
}, multiple: true, children: childrenWithColor }));
|
|
137
137
|
};
|
|
138
138
|
Accordion.displayName = 'Accordion';
|
|
139
139
|
var AccordionItem = function (_a) {
|
|
140
140
|
var children = _a.children, value = _a.value, _b = _a.bgColor, bgColor = _b === undefined ? 'neutral' : _b, props = __rest(_a, ["children", "value", "bgColor"]);
|
|
141
141
|
return (jsx(AccordionItem$1, __assign({ classNames: {
|
|
142
|
-
item: "".concat(styles$
|
|
142
|
+
item: "".concat(styles$s.item, " ").concat(bgColor === 'white' ? styles$s['item-white'] : styles$s['item-neutral']),
|
|
143
143
|
}, value: value }, props, { children: children })));
|
|
144
144
|
};
|
|
145
145
|
AccordionItem.displayName = 'AccordionItem';
|
|
146
146
|
var AccordionControl = function (_a) {
|
|
147
147
|
var children = _a.children;
|
|
148
|
-
return (jsx(AccordionControl$1, { classNames: { label: styles$
|
|
148
|
+
return (jsx(AccordionControl$1, { classNames: { label: styles$s.label, control: styles$s.control }, children: children }));
|
|
149
149
|
};
|
|
150
150
|
AccordionControl.displayName = 'AccordionControl';
|
|
151
151
|
var AccordionPanel = function (_a) {
|
|
152
152
|
var children = _a.children;
|
|
153
|
-
return (jsx(AccordionPanel$1, { classNames: { content: styles$
|
|
153
|
+
return (jsx(AccordionPanel$1, { classNames: { content: styles$s.content }, children: children }));
|
|
154
154
|
};
|
|
155
155
|
AccordionPanel.displayName = 'AccordionPanel';
|
|
156
156
|
|
|
157
|
-
var styles$
|
|
157
|
+
var styles$r = {"root":"ActionIcon-module_root__orJKP"};
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* ActionIcon component to display an icon with a clickable action.
|
|
@@ -173,7 +173,7 @@ var styles$q = {"root":"ActionIcon-module_root__orJKP"};
|
|
|
173
173
|
var ActionIcon = forwardRef(function (_a, ref) {
|
|
174
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
175
|
return (jsx(ActionIcon$1, __assign({ onClick: onClick && onClick, radius: radius, variant: variant, size: size, disabled: disabled, classNames: {
|
|
176
|
-
root: styles$
|
|
176
|
+
root: styles$r.root,
|
|
177
177
|
}, color: color, ref: ref }, rest, { children: jsx(Group, { children: children }) })));
|
|
178
178
|
});
|
|
179
179
|
ActionIcon.displayName = 'ActionIcon';
|
|
@@ -183,7 +183,7 @@ var Animation = function (_a) {
|
|
|
183
183
|
var refVector = useRef(null);
|
|
184
184
|
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
185
185
|
useEffect(function () {
|
|
186
|
-
import('./lottie-
|
|
186
|
+
import('./lottie-CzEUvYDu.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
187
187
|
}, []);
|
|
188
188
|
useEffect(function () {
|
|
189
189
|
if (lottie && refVector.current) {
|
|
@@ -201,7 +201,7 @@ var Animation = function (_a) {
|
|
|
201
201
|
};
|
|
202
202
|
Animation.displayName = 'Animation';
|
|
203
203
|
|
|
204
|
-
var styles$
|
|
204
|
+
var styles$q = {"dropdown":"Dropdown-module_dropdown__Pf3Aj","option":"Dropdown-module_option__5-7L7"};
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
*
|
|
@@ -241,7 +241,7 @@ var Dropdown = function (_a) {
|
|
|
241
241
|
store.selectOption(index);
|
|
242
242
|
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(option);
|
|
243
243
|
closeOnSelect && store.closeDropdown();
|
|
244
|
-
}, className: styles$
|
|
244
|
+
}, className: styles$q.option, children: option }, index));
|
|
245
245
|
}
|
|
246
246
|
return option;
|
|
247
247
|
});
|
|
@@ -249,7 +249,7 @@ var Dropdown = function (_a) {
|
|
|
249
249
|
return (jsxs(Combobox, __assign({ store: store, onOptionSubmit: function (value) {
|
|
250
250
|
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(value);
|
|
251
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$
|
|
252
|
+
} }, rest, { children: [jsx(Combobox.Target, { children: jsx(Flex, { w: "100%", children: typeof children === 'function' ? children(store) : children }) }), jsxs(Combobox.Dropdown, { classNames: { dropdown: styles$q.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
253
|
};
|
|
254
254
|
Dropdown.displayName = 'Dropdown';
|
|
255
255
|
Dropdown.Option = Combobox.Option;
|
|
@@ -263,7 +263,7 @@ var Close = function (_a) {
|
|
|
263
263
|
Close.displayName = 'Close';
|
|
264
264
|
|
|
265
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:
|
|
266
|
+
return (jsxs(Icon, __assign({}, props, { viewBox: props.viewBox || '0 0 22 22', width: props.width || '22', height: props.height || '22', stroke: props.stroke || 'var(--color-neutral-600)', 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: props.stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M21 21L15.6154 15.6154", stroke: props.stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
267
267
|
};
|
|
268
268
|
Search.displayName = 'Search';
|
|
269
269
|
|
|
@@ -358,11 +358,11 @@ function requireClassnames () {
|
|
|
358
358
|
var classnamesExports = requireClassnames();
|
|
359
359
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
360
360
|
|
|
361
|
-
var styles$
|
|
361
|
+
var styles$p = {"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
362
|
|
|
363
363
|
var inputWrapperSlotElement = { component: 'div' };
|
|
364
|
-
var inputDescriptionProps = __assign({ className: styles$
|
|
365
|
-
var inputErrorProps = __assign({ className: styles$
|
|
364
|
+
var inputDescriptionProps = __assign({ className: styles$p.description }, inputWrapperSlotElement);
|
|
365
|
+
var inputErrorProps = __assign({ className: styles$p.error }, inputWrapperSlotElement);
|
|
366
366
|
|
|
367
367
|
var Info = function (_a) {
|
|
368
368
|
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;
|
|
@@ -370,7 +370,7 @@ var Info = function (_a) {
|
|
|
370
370
|
};
|
|
371
371
|
Info.displayName = 'Info';
|
|
372
372
|
|
|
373
|
-
var styles$
|
|
373
|
+
var styles$o = {"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"};
|
|
374
374
|
|
|
375
375
|
var elementType = {
|
|
376
376
|
h1: 'h1',
|
|
@@ -381,7 +381,7 @@ var elementType = {
|
|
|
381
381
|
var Text = React.forwardRef(function (props, ref) {
|
|
382
382
|
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"]);
|
|
383
383
|
var combinedStyle = __assign(__assign({}, style), { color: color });
|
|
384
|
-
var combinedClassName = classNames(className, styles$
|
|
384
|
+
var combinedClassName = classNames(className, styles$o['text'], styles$o[variant || ''], styles$o[weight || '']);
|
|
385
385
|
return React.createElement(as || elementType[variant] || 'p', __assign({ ref: ref, className: combinedClassName, style: combinedStyle }, rest), children);
|
|
386
386
|
});
|
|
387
387
|
Text.displayName = 'Text';
|
|
@@ -451,19 +451,19 @@ var Input = function (_a) {
|
|
|
451
451
|
var showLabel = !hideLabel && (isFocused || value.trim());
|
|
452
452
|
var placeHolderValue = placeholder && isFocused ? placeholder : (label !== null && label !== undefined ? label : placeholder);
|
|
453
453
|
var ErrorSection = useMemo(function () {
|
|
454
|
-
return holdSpace && (jsxs(Flex, { className: classNames(styles$
|
|
454
|
+
return holdSpace && (jsxs(Flex, { className: classNames(styles$p.error, error ? styles$p.errorVisible : styles$p.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$p.errorText), as: "span", children: capitalizeFirstSentenceLetter(error) })] }));
|
|
455
455
|
}, [error]);
|
|
456
|
-
return (jsxs("div", { className: styles$
|
|
457
|
-
_b[styles$
|
|
458
|
-
_b[styles$
|
|
459
|
-
_b[styles$
|
|
456
|
+
return (jsxs("div", { className: styles$p.container, children: [showLabel && (jsx("label", { className: classNames(styles$p.label, (_b = {},
|
|
457
|
+
_b[styles$p.labelError] = error && !isFocused,
|
|
458
|
+
_b[styles$p.labelFocused] = isFocused || isHovered,
|
|
459
|
+
_b[styles$p.labelDisabled] = disabled,
|
|
460
460
|
_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: {
|
|
461
|
-
input: classNames(styles$
|
|
462
|
-
_c[styles$
|
|
463
|
-
_c[styles$
|
|
464
|
-
_c[styles$
|
|
461
|
+
input: classNames(styles$p.input, (_c = {},
|
|
462
|
+
_c[styles$p.inputLeftIcon] = leftSection,
|
|
463
|
+
_c[styles$p.inputRightIcon] = rightSection,
|
|
464
|
+
_c[styles$p.inputError] = error,
|
|
465
465
|
_c)),
|
|
466
|
-
}, placeholder: placeHolderValue, name: name, error: ErrorSection, description: !error && jsx(Text, { variant: "xs", children: description }), descriptionProps: inputDescriptionProps, errorProps: inputErrorProps, inputWrapperOrder: ['label', 'input', 'description', 'error'], value: value, onChange: onChange, leftSection: leftSection, rightSection: rightSection, leftSectionProps: { className: styles$
|
|
466
|
+
}, placeholder: placeHolderValue, name: name, error: ErrorSection, description: !error && jsx(Text, { variant: "xs", children: description }), descriptionProps: inputDescriptionProps, errorProps: inputErrorProps, inputWrapperOrder: ['label', 'input', 'description', 'error'], value: value, onChange: onChange, leftSection: leftSection, rightSection: rightSection, leftSectionProps: { className: styles$p.leftSection }, rightSectionProps: { className: styles$p.rightSection }, type: type, disabled: disabled }, rest)) })] }));
|
|
467
467
|
};
|
|
468
468
|
Input.displayName = 'Input';
|
|
469
469
|
|
|
@@ -556,7 +556,7 @@ var Autocomplete = function (_a) {
|
|
|
556
556
|
};
|
|
557
557
|
Autocomplete.displayName = 'Autocomplete';
|
|
558
558
|
|
|
559
|
-
var styles$
|
|
559
|
+
var styles$n = {"avatar":"Avatar-module_avatar__QJpdG","placeholder":"Avatar-module_placeholder__9AtPN"};
|
|
560
560
|
|
|
561
561
|
var AvatarPlaceholder = function (_a) {
|
|
562
562
|
var width = _a.width, height = _a.height, _b = _a.viewBox, viewBox = _b === undefined ? '0 0 24 24' : _b, rotate = _a.rotate, rest = __rest(_a, ["width", "height", "viewBox", "rotate"]);
|
|
@@ -584,8 +584,8 @@ var Avatar = function (_a) {
|
|
|
584
584
|
minHeight: sizeMapping[size],
|
|
585
585
|
},
|
|
586
586
|
}, classNames: {
|
|
587
|
-
root: styles$
|
|
588
|
-
placeholder: styles$
|
|
587
|
+
root: styles$n.avatar,
|
|
588
|
+
placeholder: styles$n.placeholder,
|
|
589
589
|
} }, rest, { children: jsx(AvatarPlaceholder, { role: "img", "aria-label": alt, "data-testid": testId ? "".concat(testId, "-placeholder") : undefined, width: placeholderSizeMapping[size], height: placeholderSizeMapping[size] }) })));
|
|
590
590
|
};
|
|
591
591
|
Avatar.displayName = 'Avatar';
|
|
@@ -656,19 +656,19 @@ var Badge = forwardRef(function (_a, ref) {
|
|
|
656
656
|
});
|
|
657
657
|
Badge.displayName = 'Badge';
|
|
658
658
|
|
|
659
|
-
var styles$
|
|
659
|
+
var styles$m = {"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--secondary":"Button-module_button--secondary__GKHCb","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--outlined-error":"Button-module_button--outlined-error__xR07R","label-color--outlined-error":"Button-module_label-color--outlined-error__-2cf9","label-color--outlined-error--disabled":"Button-module_label-color--outlined-error--disabled__LZB7z","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"};
|
|
660
660
|
|
|
661
661
|
var Button = forwardRef(function (_a, ref) {
|
|
662
662
|
var _b;
|
|
663
663
|
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"]);
|
|
664
|
-
var mode = styles$
|
|
665
|
-
return (jsx("button", __assign({ ref: ref, type: submit ? 'submit' : 'button', style: __assign(__assign({}, props.style), { backgroundColor: backgroundColor, width: fullWidth ? '100%' : 'auto' }) }, props, { className: [styles$
|
|
666
|
-
_b[styles$
|
|
664
|
+
var mode = styles$m["button--".concat(variant)];
|
|
665
|
+
return (jsx("button", __assign({ ref: ref, type: submit ? 'submit' : 'button', style: __assign(__assign({}, props.style), { backgroundColor: backgroundColor, width: fullWidth ? '100%' : 'auto' }) }, props, { className: [styles$m.button, styles$m["button--".concat(size)], mode].join(' '), children: jsxs("div", { className: styles$m['button-flex'], children: [!!icon && icon, label ? (jsx(Text, { className: classNames(styles$m.label, styles$m["label-color--".concat(variant)], (_b = {},
|
|
666
|
+
_b[styles$m["label-color--".concat(variant, "--disabled")]] = props.disabled,
|
|
667
667
|
_b)), children: label })) : (children)] }) })));
|
|
668
668
|
});
|
|
669
669
|
Button.displayName = 'Button';
|
|
670
670
|
|
|
671
|
-
var styles$
|
|
671
|
+
var styles$l = {"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","variantNotice":"Card-module_variantNotice__C7UUh","variantInfo":"Card-module_variantInfo__B26E9","variantPrimary":"Card-module_variantPrimary__9E-0B","variantCaution":"Card-module_variantCaution__-p-t8","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"};
|
|
672
672
|
|
|
673
673
|
var capitalize = function (value) {
|
|
674
674
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
@@ -676,15 +676,15 @@ var capitalize = function (value) {
|
|
|
676
676
|
var Card = function (_a) {
|
|
677
677
|
var _b;
|
|
678
678
|
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;
|
|
679
|
-
var cardClassName = classNames(styles$
|
|
680
|
-
_b[styles$
|
|
681
|
-
_b[styles$
|
|
682
|
-
_b), styles$
|
|
683
|
-
return (jsxs("div", { className: cardClassName, style: style, children: [header, children, footer && jsx("div", { className: styles$
|
|
679
|
+
var cardClassName = classNames(styles$l.card, (_b = {},
|
|
680
|
+
_b[styles$l.mdShadow] = shadow === 'md',
|
|
681
|
+
_b[styles$l.lgShadow] = shadow === 'lg',
|
|
682
|
+
_b), styles$l["variant".concat(capitalize(variant))], styles$l["appearance".concat(capitalize(appearance))], styles$l["padding".concat(capitalize(padding))], styles$l["borderWidth".concat(capitalize(borderWidth))]);
|
|
683
|
+
return (jsxs("div", { className: cardClassName, style: style, children: [header, children, footer && jsx("div", { className: styles$l.footerDivider }), footer] }));
|
|
684
684
|
};
|
|
685
685
|
Card.displayName = 'Card';
|
|
686
686
|
|
|
687
|
-
var styles$
|
|
687
|
+
var styles$k = {"cardStatus":"CardStatus-module_cardStatus__5T4aF","cardStatus--leftIcon":"CardStatus-module_cardStatus--leftIcon__ULp9A"};
|
|
688
688
|
|
|
689
689
|
var cardStatusVariantMap = {
|
|
690
690
|
notes: {
|
|
@@ -721,11 +721,11 @@ var CardStatus = function (_a) {
|
|
|
721
721
|
? (_b = cardStatusVariantMap[variant]) === null || _b === undefined ? undefined : _b.backgroundColor
|
|
722
722
|
: undefined;
|
|
723
723
|
var sizeStyles = sizeMap[size || 'small'];
|
|
724
|
-
return (jsxs("div", { className: "".concat(styles$
|
|
724
|
+
return (jsxs("div", { className: "".concat(styles$k.cardStatus, " ").concat(leftIcon ? styles$k['cardStatus--leftIcon'] : ''), style: backgroundColor ? { backgroundColor: backgroundColor } : undefined, children: [leftIcon && icon, jsx(Text, { variant: sizeStyles.textVariant, color: 'var(--color-neutral-600)', children: label }), !leftIcon && icon] }));
|
|
725
725
|
};
|
|
726
726
|
CardStatus.displayName = 'CardStatus';
|
|
727
727
|
|
|
728
|
-
var styles$
|
|
728
|
+
var styles$j = {"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"};
|
|
729
729
|
|
|
730
730
|
/**
|
|
731
731
|
* Checkbox component for selecting multiple options from a set.
|
|
@@ -743,20 +743,20 @@ var Checkbox = function (_a) {
|
|
|
743
743
|
var _b, _c;
|
|
744
744
|
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"]);
|
|
745
745
|
return (jsx(Checkbox$1, __assign({ checked: checked, label: label, disabled: disabled, onChange: onChange, id: id, color: "var(--color-primary-300)", classNames: {
|
|
746
|
-
labelWrapper: styles$
|
|
747
|
-
label: classNames(styles$
|
|
748
|
-
_b[styles$
|
|
746
|
+
labelWrapper: styles$j.labelWrapper,
|
|
747
|
+
label: classNames(styles$j.label, (_b = {},
|
|
748
|
+
_b[styles$j['label-disabled']] = disabled,
|
|
749
749
|
_b)),
|
|
750
|
-
input: styles$
|
|
751
|
-
inner: styles$
|
|
750
|
+
input: styles$j.input,
|
|
751
|
+
inner: styles$j.inner,
|
|
752
752
|
icon: classNames((_c = {},
|
|
753
|
-
_c[styles$
|
|
753
|
+
_c[styles$j['icon-disabled']] = disabled,
|
|
754
754
|
_c)),
|
|
755
755
|
} }, rest)));
|
|
756
756
|
};
|
|
757
757
|
Checkbox.displayName = 'Checkbox';
|
|
758
758
|
|
|
759
|
-
var styles$
|
|
759
|
+
var styles$i = {"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"};
|
|
760
760
|
|
|
761
761
|
var ChevronCollapse = function (_a) {
|
|
762
762
|
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;
|
|
@@ -780,10 +780,10 @@ var Chip = function (_a) {
|
|
|
780
780
|
return null;
|
|
781
781
|
// Just one filter
|
|
782
782
|
if (itemGroup.length === 1) {
|
|
783
|
-
return (jsxs(Flex, { className: styles$
|
|
783
|
+
return (jsxs(Flex, { className: styles$i['chip-wrapper'], children: [jsx(Text, { variant: "xs", weight: "regular", className: styles$i['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" }) })] }));
|
|
784
784
|
}
|
|
785
785
|
// More than one filter
|
|
786
|
-
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$
|
|
786
|
+
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$i['chip-wrapper'], children: [jsxs(Flex, { className: styles$i['chip-wrapper-menu-text'], children: [jsx(Text, { variant: "xs", weight: "regular", children: item }), jsx(Flex, { className: "".concat(styles$i['chip-number'], " ").concat(itemGroup.length > 9 ? styles$i['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$i['chip-menu-dropdown'], children: itemGroup.map(function (f) { return (jsx(Menu$1.Item, { className: styles$i['chip-menu-item'], children: jsx(Checkbox, { label: jsxs(Flex, { className: styles$i['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)); }) })] }));
|
|
787
787
|
};
|
|
788
788
|
Chip.displayName = 'Chip';
|
|
789
789
|
|
|
@@ -874,10 +874,10 @@ var DateInput = function (_a) {
|
|
|
874
874
|
var showLabel = !hideLabel && (isFocused || value);
|
|
875
875
|
var placeHolderValue = placeholder && isFocused ? placeholder : (label !== null && label !== undefined ? label : placeholder);
|
|
876
876
|
var ErrorSection = useMemo(function () {
|
|
877
|
-
return holdSpace && (jsxs(Flex, { className: styles$
|
|
877
|
+
return holdSpace && (jsxs(Flex, { className: styles$p.error, gap: 4, ml: 16, style: {
|
|
878
878
|
visibility: error ? 'visible' : 'hidden',
|
|
879
879
|
alignItems: 'flex-start',
|
|
880
|
-
}, 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$
|
|
880
|
+
}, 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$p.errorText), children: capitalizeFirstSentenceLetter(error || '') })] }));
|
|
881
881
|
}, [error, holdSpace]);
|
|
882
882
|
var handleBlur = function (e) {
|
|
883
883
|
setIsFocused(false);
|
|
@@ -885,36 +885,36 @@ var DateInput = function (_a) {
|
|
|
885
885
|
onBlur(e);
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
return (jsxs("div", { className: styles$
|
|
889
|
-
_b[styles$
|
|
890
|
-
_b[styles$
|
|
891
|
-
_b[styles$
|
|
888
|
+
return (jsxs("div", { className: styles$p.container, children: [showLabel && (jsx("label", { className: classNames(styles$p.label, (_b = {},
|
|
889
|
+
_b[styles$p.labelError] = error && !isFocused,
|
|
890
|
+
_b[styles$p.labelFocused] = isFocused || isHovered,
|
|
891
|
+
_b[styles$p.labelDisabled] = disabled,
|
|
892
892
|
_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: {
|
|
893
|
-
input: classNames(styles$
|
|
894
|
-
_c[styles$
|
|
895
|
-
_c[styles$
|
|
893
|
+
input: classNames(styles$p.input, (_c = {},
|
|
894
|
+
_c[styles$p.inputError] = error,
|
|
895
|
+
_c[styles$p.inputRightIcon] = true,
|
|
896
896
|
_c)),
|
|
897
|
-
}, 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$
|
|
897
|
+
}, 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$p.rightSection }, placeholder: placeHolderValue, value: value, onChange: onChange, onBlur: handleBlur, error: ErrorSection, errorProps: inputErrorProps, inputWrapperOrder: ['label', 'input', 'error'], disabled: disabled }, rest)) })] }));
|
|
898
898
|
};
|
|
899
899
|
DateInput.displayName = 'DateInput';
|
|
900
900
|
|
|
901
|
-
var styles$
|
|
901
|
+
var styles$h = {"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"};
|
|
902
902
|
|
|
903
903
|
var EnterCodeInput = React.forwardRef(function (props, ref) {
|
|
904
904
|
var className = [
|
|
905
|
-
styles$
|
|
906
|
-
styles$
|
|
905
|
+
styles$h['code-input'],
|
|
906
|
+
styles$h["code-input--".concat(props.inline)],
|
|
907
907
|
].join(' ');
|
|
908
908
|
if (props.error) {
|
|
909
|
-
className = [className, styles$
|
|
909
|
+
className = [className, styles$h['code-input-error']].join(' ');
|
|
910
910
|
}
|
|
911
911
|
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 })));
|
|
912
912
|
});
|
|
913
913
|
EnterCodeInput.displayName = 'EnterCodeInput';
|
|
914
914
|
|
|
915
|
-
var styles$
|
|
915
|
+
var styles$g = {"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"};
|
|
916
916
|
|
|
917
|
-
var styles$
|
|
917
|
+
var styles$f = {"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"};
|
|
918
918
|
|
|
919
919
|
var Clock = function (_a) {
|
|
920
920
|
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;
|
|
@@ -970,25 +970,25 @@ var getMessage = function (status, message, progress) {
|
|
|
970
970
|
if (status === 'failed') {
|
|
971
971
|
if (message === null || message === undefined ? undefined : message.includes('-')) {
|
|
972
972
|
var _a = message.split('-'), errorReason = _a[0], errorMessage = _a[1];
|
|
973
|
-
return (jsxs(Text, { className: styles$
|
|
973
|
+
return (jsxs(Text, { className: styles$f.fileMessage, color: "var(--color-red-400)", children: [jsx("strong", { children: errorReason }), " - ", errorMessage] }));
|
|
974
974
|
}
|
|
975
|
-
return (jsx(Text, { className: styles$
|
|
975
|
+
return (jsx(Text, { className: styles$f.fileMessage, color: "var(--color-red-400)", children: message }));
|
|
976
976
|
}
|
|
977
977
|
if (status === 'duplicate') {
|
|
978
978
|
if (message === null || message === undefined ? undefined : message.includes('-')) {
|
|
979
979
|
var _b = message.split('-'), errorReason = _b[0], errorMessage = _b[1];
|
|
980
|
-
return (jsxs(Text, { className: styles$
|
|
980
|
+
return (jsxs(Text, { className: styles$f.fileMessage, color: "var(--color-orange-400)", children: [jsx("strong", { children: errorReason }), " - ", errorMessage] }));
|
|
981
981
|
}
|
|
982
|
-
return (jsx(Text, { className: styles$
|
|
982
|
+
return (jsx(Text, { className: styles$f.fileMessage, color: "var(--color-orange-400)", children: message }));
|
|
983
983
|
}
|
|
984
984
|
if (status === 'uploading') {
|
|
985
|
-
return (jsxs(Flex, { align: "center", gap: 24, children: [jsx(Flex, { className: styles$
|
|
985
|
+
return (jsxs(Flex, { align: "center", gap: 24, children: [jsx(Flex, { className: styles$f.progressBar, children: jsx(Flex, { className: styles$f.progress, w: "".concat(progress, "%") }) }), jsxs(Text, { color: "var(--color-neutral-500)", variant: "m", style: { margin: 0 }, children: [progress, "%"] })] }));
|
|
986
986
|
}
|
|
987
987
|
if (status === 'previously-uploaded') {
|
|
988
|
-
return (jsx(Text, { className: styles$
|
|
988
|
+
return (jsx(Text, { className: styles$f.fileMessage, color: "var(--color-green-400)", children: message }));
|
|
989
989
|
}
|
|
990
990
|
if (status === 'uploaded') {
|
|
991
|
-
return (jsx(Text, { className: styles$
|
|
991
|
+
return (jsx(Text, { className: styles$f.fileMessage, color: "var(--color-green-400)", children: message }));
|
|
992
992
|
}
|
|
993
993
|
return null;
|
|
994
994
|
};
|
|
@@ -1004,7 +1004,7 @@ var parseFileSize = function (size) {
|
|
|
1004
1004
|
|
|
1005
1005
|
var FileUpload = function (_a) {
|
|
1006
1006
|
var id = _a.id, name = _a.name, size = _a.size, status = _a.status, message = _a.message, progress = _a.progress, removeFile = _a.removeFile;
|
|
1007
|
-
return (jsxs(Fragment, { children: [jsx(Divider, { color: "var(--color-neutral-300)" }), jsxs("div", { className: styles$
|
|
1007
|
+
return (jsxs(Fragment, { children: [jsx(Divider, { color: "var(--color-neutral-300)" }), jsxs("div", { className: styles$f.fileItem, children: [jsxs("div", { className: styles$f.fileInfo, children: [getIcon$1(status), jsxs(Flex, { direction: "column", w: "100%", children: [jsx(Text, { className: styles$f.fileName, children: name }), jsx(Text, { className: styles$f.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))] }));
|
|
1008
1008
|
};
|
|
1009
1009
|
FileUpload.displayName = 'FileUpload';
|
|
1010
1010
|
|
|
@@ -1062,34 +1062,34 @@ var FileInput = function (_a) {
|
|
|
1062
1062
|
.join(', ')
|
|
1063
1063
|
.slice('.'.length)
|
|
1064
1064
|
.toUpperCase(), ". Max file size: ").concat(maxSize, "MB");
|
|
1065
|
-
return (jsxs(Fragment, { children: [jsx("div", { className: styles$
|
|
1066
|
-
_b[styles$
|
|
1067
|
-
_b[styles$
|
|
1068
|
-
_b)), onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [jsx("input", { type: "file", accept: acceptedFormats.join(','), onChange: handleFileInput, className: styles$
|
|
1065
|
+
return (jsxs(Fragment, { children: [jsx("div", { className: styles$g.container, children: jsxs("div", { className: classNames(styles$g.dropzone, (_b = {},
|
|
1066
|
+
_b[styles$g.dragging] = isDragging,
|
|
1067
|
+
_b[styles$g.disabled] = disabled,
|
|
1068
|
+
_b)), onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, children: [jsx("input", { type: "file", accept: acceptedFormats.join(','), onChange: handleFileInput, className: styles$g.input, "aria-label": label, disabled: disabled, multiple: true }), jsx("div", { className: styles$g.icon, children: jsx(Upload, { stroke: color, width: "2.6rem", height: "2.6rem", viewBox: "0 0 40 40" }) }), jsxs("div", { className: styles$g.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$g.fileFormatText, color: color, children: fileFormatText })] })] }) }), files.some(function (f) { return f.status === 'failed'; }) ? (jsx(Text, { variant: "xs", className: styles$g.helper, children: errorMessage })) : (jsx(Text, { variant: "xs", className: styles$g.helper, children: helperText })), files.length > 0 && (jsx(Flex, { className: styles$g.fileList, children: files.map(function (_a, index) {
|
|
1069
1069
|
var file = _a.file, rest = __rest(_a, ["file"]);
|
|
1070
1070
|
return (jsx(FileUpload, __assign({ file: file, removeFile: removeFile }, rest), "".concat(file.name, "-").concat(index)));
|
|
1071
1071
|
}) }))] }));
|
|
1072
1072
|
};
|
|
1073
1073
|
FileInput.displayName = 'FileInput';
|
|
1074
1074
|
|
|
1075
|
-
var styles$
|
|
1075
|
+
var styles$e = {"flex":"IncrementNumber-module_flex__Zo8-v","increment-button":"IncrementNumber-module_increment-button__qpw2X"};
|
|
1076
1076
|
|
|
1077
1077
|
var IncrementNumber = function (props) {
|
|
1078
1078
|
var formatter = new Intl.NumberFormat('en-US', {
|
|
1079
1079
|
style: 'currency',
|
|
1080
1080
|
currency: 'USD',
|
|
1081
1081
|
});
|
|
1082
|
-
return (jsxs("div", { className: styles$
|
|
1082
|
+
return (jsxs("div", { className: styles$e['flex'], children: [props.disableDecrease ? (jsx("div", { style: { width: 24 } })) : (jsx("button", { className: styles$e['increment-button'], onClick: function () { return props.handleDecrease(props.value); }, children: jsx("img", { src: props.minusIconPath, width: 24, height: 24, alt: "-", style: {
|
|
1083
1083
|
maxWidth: '100%',
|
|
1084
1084
|
height: 'auto',
|
|
1085
|
-
} }) })), 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$
|
|
1085
|
+
} }) })), 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$e['increment-button'], onClick: function () { return props.handleIncrease(props.value); }, children: jsx("img", { src: props.plusIconPath, width: 24, height: 24, alt: "+", style: {
|
|
1086
1086
|
maxWidth: '100%',
|
|
1087
1087
|
height: 'auto',
|
|
1088
1088
|
} }) }))] }));
|
|
1089
1089
|
};
|
|
1090
1090
|
IncrementNumber.displayName = 'IncrementNumber';
|
|
1091
1091
|
|
|
1092
|
-
var styles$
|
|
1092
|
+
var styles$d = {"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"};
|
|
1093
1093
|
|
|
1094
1094
|
/**
|
|
1095
1095
|
*
|
|
@@ -1119,15 +1119,15 @@ var styles$c = {"link":"Link-module_link__8oxip","s":"Link-module_s__YsU8H","m":
|
|
|
1119
1119
|
var Link = function (_a) {
|
|
1120
1120
|
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"]);
|
|
1121
1121
|
return (jsx("a", __assign({}, rest, { href: href || '#', target: target, rel: rel, className: [
|
|
1122
|
-
styles$
|
|
1123
|
-
styles$
|
|
1124
|
-
styles$
|
|
1125
|
-
disabledUnderlined ? styles$
|
|
1122
|
+
styles$d['link'],
|
|
1123
|
+
styles$d[variant || ''],
|
|
1124
|
+
styles$d[weight || ''],
|
|
1125
|
+
disabledUnderlined ? styles$d['disabledUnderlined'] : '',
|
|
1126
1126
|
].join(' '), children: children })));
|
|
1127
1127
|
};
|
|
1128
1128
|
Link.displayName = 'Link';
|
|
1129
1129
|
|
|
1130
|
-
var styles$
|
|
1130
|
+
var styles$c = {"modal":"Modal-module_modal__gMPgi","body":"Modal-module_body__OhLb0","header":"Modal-module_header__5sBzU"};
|
|
1131
1131
|
|
|
1132
1132
|
var Modal = function (_a) {
|
|
1133
1133
|
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, _e = _a.disabled, disabled = _e === undefined ? false : _e;
|
|
@@ -1152,9 +1152,9 @@ var Modal = function (_a) {
|
|
|
1152
1152
|
title: 'Close modal',
|
|
1153
1153
|
icon: jsx(Close, { fill: "var(--color-neutral-200)" }),
|
|
1154
1154
|
}, classNames: {
|
|
1155
|
-
content: styles$
|
|
1156
|
-
body: styles$
|
|
1157
|
-
header: styles$
|
|
1155
|
+
content: styles$c.modal,
|
|
1156
|
+
body: styles$c.body,
|
|
1157
|
+
header: styles$c.header,
|
|
1158
1158
|
}, styles: {
|
|
1159
1159
|
body: {
|
|
1160
1160
|
padding: paddingMap[padding],
|
|
@@ -1180,7 +1180,7 @@ var Warning = function (_a) {
|
|
|
1180
1180
|
};
|
|
1181
1181
|
Warning.displayName = 'Warning';
|
|
1182
1182
|
|
|
1183
|
-
var styles$
|
|
1183
|
+
var styles$b = {"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","success":"Message-module_success__08wEY","center":"Message-module_center__Y4KjG","top":"Message-module_top__J-o9d","bottom":"Message-module_bottom__2p2bW"};
|
|
1184
1184
|
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Message component for displaying feedback to the user.
|
|
@@ -1211,18 +1211,18 @@ var getIcon = function (status) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
var Message = function (_a) {
|
|
1213
1213
|
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;
|
|
1214
|
-
return (jsxs(Flex, { className: classNames(styles$
|
|
1214
|
+
return (jsxs(Flex, { className: classNames(styles$b.message, styles$b[status], styles$b[variant]), children: [jsx(Flex, { className: styles$b[iconAlignment], children: getIcon(status) }), typeof content === 'string' ? (jsx(Text, { variant: "xs", children: content })) : (content)] }));
|
|
1215
1215
|
};
|
|
1216
1216
|
Message.displayName = 'Message';
|
|
1217
1217
|
|
|
1218
1218
|
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"};
|
|
1219
1219
|
|
|
1220
|
-
var styles$
|
|
1220
|
+
var styles$a = {"tooltip":"Tooltip-module_tooltip__Q1YfF"};
|
|
1221
1221
|
|
|
1222
1222
|
var Tooltip = function (_a) {
|
|
1223
1223
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
1224
1224
|
return (jsx(Tooltip$1, __assign({}, props, { classNames: {
|
|
1225
|
-
tooltip: styles$
|
|
1225
|
+
tooltip: styles$a.tooltip,
|
|
1226
1226
|
}, offset: 4, children: children })));
|
|
1227
1227
|
};
|
|
1228
1228
|
Tooltip.displayName = 'Tooltip';
|
|
@@ -1373,17 +1373,17 @@ var MultiselectInternal = function (_a) {
|
|
|
1373
1373
|
}, onClick: function (e) { return e.stopPropagation(); } }))] }));
|
|
1374
1374
|
};
|
|
1375
1375
|
PillAndSearchSection.displayName = 'PillAndSearchSection';
|
|
1376
|
-
var ErrorSection = (jsxs(Flex, { className: styles$
|
|
1377
|
-
var DescriptionSection = (jsx(Flex, { className: styles$
|
|
1376
|
+
var ErrorSection = (jsxs(Flex, { className: styles$p.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$p.errorText), children: error })] }));
|
|
1377
|
+
var DescriptionSection = (jsx(Flex, { className: styles$p.description, gap: 4, ml: 16, mt: 8, style: { visibility: description ? 'visible' : 'hidden' }, children: jsx(Text, { variant: "xs", children: description }) }));
|
|
1378
1378
|
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); } })] })); };
|
|
1379
1379
|
return (jsx(Dropdown, { options: dropdownOptions, maxHeight: 300, footer: dropdownFooter, children: function (store) {
|
|
1380
1380
|
var _a, _b;
|
|
1381
1381
|
var floatLabel = store.dropdownOpened || hasSelectedOptions;
|
|
1382
|
-
return (jsxs("div", { className: styles$
|
|
1383
|
-
_a[styles$
|
|
1384
|
-
_a[styles$
|
|
1385
|
-
_a)), children: label })), jsxs(Box, { className: classNames(styles$
|
|
1386
|
-
_b[styles$
|
|
1382
|
+
return (jsxs("div", { className: styles$p.container, children: [floatLabel && (jsx("label", { className: classNames(styles$p.label, (_a = {},
|
|
1383
|
+
_a[styles$p.labelError] = error && !isFocused,
|
|
1384
|
+
_a[styles$p.labelFocused] = isFocused || isHovered,
|
|
1385
|
+
_a)), children: label })), jsxs(Box, { className: classNames(styles$p.input, multiselectStyles.input, (_b = {},
|
|
1386
|
+
_b[styles$p.inputError] = error && !isFocused,
|
|
1387
1387
|
_b[multiselectStyles.inputFocused] = isFocused || store.dropdownOpened,
|
|
1388
1388
|
_b[multiselectStyles.disabled] = disabled,
|
|
1389
1389
|
_b)), onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onClick: function () { return store.toggleDropdown(); }, onFocus: function () { return setIsFocused(true); }, onBlur: handleBlur, children: [jsx(PillAndSearchSection, { store: store, maxPills: maxPills }), jsx(Chevron, { rotate: store.dropdownOpened ? 90 : 270 })] }), error ? ErrorSection : DescriptionSection] }));
|
|
@@ -1471,15 +1471,15 @@ var NavBar = function (_a) {
|
|
|
1471
1471
|
};
|
|
1472
1472
|
NavBar.displayName = 'NavBar';
|
|
1473
1473
|
|
|
1474
|
-
var styles$
|
|
1474
|
+
var styles$9 = {"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"};
|
|
1475
1475
|
|
|
1476
1476
|
var NavBarSide = function (_a) {
|
|
1477
1477
|
var tabs = _a.tabs, onChange = _a.onChange, value = _a.value;
|
|
1478
|
-
return (jsx("div", { className: styles$
|
|
1479
|
-
list: styles$
|
|
1480
|
-
tab: styles$
|
|
1481
|
-
panel: styles$
|
|
1482
|
-
root: styles$
|
|
1478
|
+
return (jsx("div", { className: styles$9.navbarSideContainer, children: jsxs(Tabs$1, { value: value, onChange: onChange, orientation: "vertical", keepMounted: false, classNames: {
|
|
1479
|
+
list: styles$9.tabsList,
|
|
1480
|
+
tab: styles$9.tab,
|
|
1481
|
+
panel: styles$9.tabsPanel,
|
|
1482
|
+
root: styles$9.tabsRoot,
|
|
1483
1483
|
}, 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)); })] }) }));
|
|
1484
1484
|
};
|
|
1485
1485
|
NavBarSide.displayName = 'NavBarSide';
|
|
@@ -1542,7 +1542,7 @@ var PasswordInput = function (_a) {
|
|
|
1542
1542
|
};
|
|
1543
1543
|
PasswordInput.displayName = 'PasswordInput';
|
|
1544
1544
|
|
|
1545
|
-
var styles$
|
|
1545
|
+
var styles$8 = {"pill":"Pill-module_pill__LeCgu","badge":"Pill-module_badge__DN2xw","secondary":"Pill-module_secondary__gu5Nq","text":"Pill-module_text__kUgzL","secondarySelected":"Pill-module_secondarySelected__-f9tB","primary":"Pill-module_primary__ZlP8y","primarySelected":"Pill-module_primarySelected__JC8JY","disabled":"Pill-module_disabled__1KocP"};
|
|
1546
1546
|
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Pill component is used to display a pill with a label and an optional icon
|
|
@@ -1560,12 +1560,40 @@ var styles$7 = {"pill":"Pill-module_pill__LeCgu","badge":"Pill-module_badge__DN2
|
|
|
1560
1560
|
var Pill = function (_a) {
|
|
1561
1561
|
var label = _a.label, rightIcon = _a.rightIcon, leftIcon = _a.leftIcon, _b = _a.isSelected, isSelected = _b === undefined ? false : _b, onClick = _a.onClick, _c = _a.disabled, disabled = _c === undefined ? false : _c, _d = _a.className, className = _d === undefined ? '' : _d, dataFsElement = _a.dataFsElement, _e = _a.variant, variant = _e === undefined ? 'secondary' : _e;
|
|
1562
1562
|
var variantClass = isSelected
|
|
1563
|
-
? styles$
|
|
1564
|
-
: styles$
|
|
1565
|
-
return (jsxs("div", __assign({ className: classNames(styles$
|
|
1563
|
+
? styles$8["".concat(variant, "Selected")]
|
|
1564
|
+
: styles$8[variant];
|
|
1565
|
+
return (jsxs("div", __assign({ className: classNames(styles$8.pill, variantClass, disabled && styles$8.disabled, className), onClick: disabled ? undefined : onClick }, (dataFsElement ? { 'data-fs-element': dataFsElement } : {}), { children: [leftIcon, jsx(Text, { variant: "xs", weight: "medium", className: "\n ".concat(styles$8.text, "\n ").concat(isSelected ? styles$8.selectedText : '', "\n ").concat(disabled ? styles$8.disabledText : '', "\n "), children: label }), rightIcon] })));
|
|
1566
1566
|
};
|
|
1567
1567
|
Pill.displayName = 'Pill';
|
|
1568
1568
|
|
|
1569
|
+
var StepIndicator = function (_a) {
|
|
1570
|
+
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"]);
|
|
1571
|
+
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 })] })));
|
|
1572
|
+
};
|
|
1573
|
+
StepIndicator.displayName = 'StepIndicator';
|
|
1574
|
+
|
|
1575
|
+
var styles$7 = {"wrapper":"ProgressStepper-module_wrapper__ELFBB","circle":"ProgressStepper-module_circle__MaKFo","line":"ProgressStepper-module_line__pQ1eN"};
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* ProgressStepper component, use it to show progress across a fixed number
|
|
1579
|
+
* of steps as a horizontal line of circular indicators
|
|
1580
|
+
*
|
|
1581
|
+
* @param {number} totalSteps - Total number of steps to render
|
|
1582
|
+
* @param {number} active - Current active step (0-indexed)
|
|
1583
|
+
*
|
|
1584
|
+
* @returns {React.ReactElement} The ProgressStepper component
|
|
1585
|
+
*
|
|
1586
|
+
*/
|
|
1587
|
+
var ProgressStepper = function (_a) {
|
|
1588
|
+
var totalSteps = _a.totalSteps, active = _a.active, className = _a.className;
|
|
1589
|
+
return (jsx("div", { className: "".concat(styles$7.wrapper, " ").concat(className !== null && className !== undefined ? className : ''), children: Array.from({ length: totalSteps }).map(function (_, index) {
|
|
1590
|
+
var state = index < active ? 'completed' : index === active ? 'active' : 'pending';
|
|
1591
|
+
var isLast = index === totalSteps - 1;
|
|
1592
|
+
return (jsxs(React.Fragment, { children: [jsxs("div", { className: styles$7.circle, "data-state": state, children: [state === 'completed' && (jsx(Tick, { width: "14px", height: "14px", viewBox: "0 0 32 32", stroke: "var(--color-primary-300)", strokeWidth: 3 })), state === 'active' && (jsx(StepIndicator, { width: "24px", height: "24px" }))] }), !isLast && (jsx("div", { className: styles$7.line, "data-state": index < active ? 'completed' : 'pending' }))] }, index));
|
|
1593
|
+
}) }));
|
|
1594
|
+
};
|
|
1595
|
+
ProgressStepper.displayName = 'ProgressStepper';
|
|
1596
|
+
|
|
1569
1597
|
var styles$6 = {"radio":"RadioButton-module_radio__0A47m","label":"RadioButton-module_label__4gTzQ","disabled-label":"RadioButton-module_disabled-label__Nk0NW"};
|
|
1570
1598
|
|
|
1571
1599
|
/**
|
|
@@ -1724,12 +1752,6 @@ var Arrow = function (_a) {
|
|
|
1724
1752
|
};
|
|
1725
1753
|
Arrow.displayName = 'Arrow';
|
|
1726
1754
|
|
|
1727
|
-
var StepIndicator = function (_a) {
|
|
1728
|
-
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"]);
|
|
1729
|
-
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 })] })));
|
|
1730
|
-
};
|
|
1731
|
-
StepIndicator.displayName = 'StepIndicator';
|
|
1732
|
-
|
|
1733
1755
|
/**
|
|
1734
1756
|
* Stepper component, use it to select an option from a list of options
|
|
1735
1757
|
* For selecting multiple options, use the MultipleSelect component
|
|
@@ -1741,6 +1763,7 @@ StepIndicator.displayName = 'StepIndicator';
|
|
|
1741
1763
|
* @param {React.ReactNode} backButton - Custom back button
|
|
1742
1764
|
* @param {React.ReactNode} nextButton - Custom next button
|
|
1743
1765
|
* @param {boolean} allowNextStepsSelect - Whether to allow selecting next steps
|
|
1766
|
+
* @param {'full' | 'half'} progressBarVariant - 'full' fills progress bar for the active step (default), 'half' fills only halfway through it
|
|
1744
1767
|
* @param {Step[]} stepCompleted - Content to show when all steps are completed
|
|
1745
1768
|
*
|
|
1746
1769
|
* @returns {React.ReactElement} The Stepper component
|
|
@@ -1748,9 +1771,9 @@ StepIndicator.displayName = 'StepIndicator';
|
|
|
1748
1771
|
*/
|
|
1749
1772
|
var Stepper = function (_a) {
|
|
1750
1773
|
var _b, _c, _d;
|
|
1751
|
-
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"]);
|
|
1752
|
-
var
|
|
1753
|
-
var
|
|
1774
|
+
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, _h = _a.progressBarVariant, progressBarVariant = _h === undefined ? 'full' : _h, stepCompleted = _a.stepCompleted, completedComponent = _a.completedComponent, props = __rest(_a, ["steps", "active", "fullSize", "onStepChange", "showControls", "backButton", "nextButton", "allowNextStepsSelect", "progressBarVariant", "stepCompleted", "completedComponent"]);
|
|
1775
|
+
var _j = useState(0), internalActive = _j[0], setInternalActive = _j[1];
|
|
1776
|
+
var _k = useState(false), isCompleted = _k[0], setIsCompleted = _k[1];
|
|
1754
1777
|
var active = controlledActive !== null && controlledActive !== undefined ? controlledActive : internalActive;
|
|
1755
1778
|
var setActive = function (step) {
|
|
1756
1779
|
if (controlledActive === undefined) {
|
|
@@ -1767,6 +1790,9 @@ var Stepper = function (_a) {
|
|
|
1767
1790
|
}
|
|
1768
1791
|
};
|
|
1769
1792
|
var prevStep = function () { return setActive(active > 0 ? active - 1 : active); };
|
|
1793
|
+
var progressValue = progressBarVariant === 'half'
|
|
1794
|
+
? ((active + 0.5) / steps.length) * 100
|
|
1795
|
+
: ((active + 1) / steps.length) * 100;
|
|
1770
1796
|
if (isCompleted) {
|
|
1771
1797
|
return (jsx(Flex, { justify: "center", children: completedComponent || (jsx("div", { children: stepCompleted
|
|
1772
1798
|
? stepCompleted.map(function (step, idx) { return (jsx("div", { children: step.content || step.label }, idx)); })
|
|
@@ -1781,7 +1807,7 @@ var Stepper = function (_a) {
|
|
|
1781
1807
|
step: styles$3.step,
|
|
1782
1808
|
}, children: steps.map(function (step, index) { return (jsx(StepperStep, { label: step.label, classNames: {
|
|
1783
1809
|
stepLabel: index === active ? styles$3.stepLabelInactive : styles$3.stepLabel,
|
|
1784
|
-
}, icon: jsx(Notification, { width: "32px", height: "32px", fill: "var(--color-white)" }) }, index)); }) })), jsx(Flex, { className: styles$3.progressWrapper, children: jsx(Progress, { value:
|
|
1810
|
+
}, icon: jsx(Notification, { width: "32px", height: "32px", fill: "var(--color-white)" }) }, index)); }) })), jsx(Flex, { className: styles$3.progressWrapper, children: jsx(Progress, { value: progressValue, size: 10, radius: "xl", color: "var(--color-primary-200)", w: fullSize ? '100%' : '60%' }) }), jsx(Flex, { className: styles$3.stepWrapper, children: (_b = steps[active]) === null || _b === undefined ? undefined : _b.content }), showControls && (jsxs(Flex, { className: styles$3.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({
|
|
1785
1811
|
nextStep: nextStep,
|
|
1786
1812
|
active: active,
|
|
1787
1813
|
disabled: ((_c = steps[active]) === null || _c === undefined ? undefined : _c.isValid) === false,
|
|
@@ -1889,14 +1915,14 @@ var Textarea = function (_a) {
|
|
|
1889
1915
|
var _j = useState(false), isHovered = _j[0], setIsHovered = _j[1];
|
|
1890
1916
|
var showLabel = !hideLabel && (isFocused || value.trim());
|
|
1891
1917
|
var ErrorSection = useMemo(function () {
|
|
1892
|
-
return holdSpace && (jsxs(Flex, { className: styles$
|
|
1918
|
+
return holdSpace && (jsxs(Flex, { className: styles$p.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$p.errorText), as: "span", children: capitalizeFirstSentenceLetter(error) })] }));
|
|
1893
1919
|
}, [error]);
|
|
1894
|
-
return (jsxs("div", { className: styles$
|
|
1895
|
-
_b[styles$
|
|
1896
|
-
_b[styles$
|
|
1920
|
+
return (jsxs("div", { className: styles$p.container, children: [showLabel && (jsx("label", { className: classNames(styles$p.label, (_b = {},
|
|
1921
|
+
_b[styles$p.labelError] = error && !isFocused,
|
|
1922
|
+
_b[styles$p.labelFocused] = isFocused || isHovered,
|
|
1897
1923
|
_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: {
|
|
1898
|
-
input: classNames(styles$
|
|
1899
|
-
_c[styles$
|
|
1924
|
+
input: classNames(styles$p.input, (_c = {},
|
|
1925
|
+
_c[styles$p.inputError] = error,
|
|
1900
1926
|
_c)),
|
|
1901
1927
|
}, placeholder: placeholder !== null && placeholder !== undefined ? placeholder : label, name: name, error: ErrorSection, description: !error && jsx(Text, { variant: "xs", children: description }), descriptionProps: inputDescriptionProps, errorProps: inputErrorProps, inputWrapperOrder: ['label', 'input', 'description', 'error'], value: value, onChange: onChange, autosize: rest.h ? false : rest.autosize, minRows: 2 }, rest, { styles: {
|
|
1902
1928
|
input: {
|
|
@@ -1954,8 +1980,8 @@ var Attachment = function (props) {
|
|
|
1954
1980
|
Attachment.displayName = 'Attachment';
|
|
1955
1981
|
|
|
1956
1982
|
var Bell = function (_a) {
|
|
1957
|
-
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 =
|
|
1958
|
-
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, children: [jsx("path", { d: "M14.1429 27.8572H17.5714", stroke:
|
|
1983
|
+
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.alert, alert = _f === undefined ? false : _f;
|
|
1984
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, stroke: stroke, children: [jsx("path", { d: "M14.1429 27.8572H17.5714", stroke: stroke, 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: stroke, 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: stroke, 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: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), alert && (jsx("circle", { cx: "22.2857", cy: "9.14282", r: "5.5", fill: "#7B34D6", stroke: "white" }))] }));
|
|
1959
1985
|
};
|
|
1960
1986
|
Bell.displayName = 'Bell';
|
|
1961
1987
|
|
|
@@ -2001,8 +2027,8 @@ var CloudUpload = function (_a) {
|
|
|
2001
2027
|
CloudUpload.displayName = 'CloudUpload';
|
|
2002
2028
|
|
|
2003
2029
|
var CreditCard = function (_a) {
|
|
2004
|
-
var _b = _a.width, width = _b === undefined ? '25px' : _b, _c = _a.height, height = _c === undefined ? '25px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 25 25' : _d, _e = _a.fill, fill =
|
|
2005
|
-
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { d: "M22.2222 3.66406H2.67005C1.68838 3.66406 0.892578 4.44814 0.892578 5.41534V18.5499C0.892578 19.5171 1.68838 20.3012 2.67005 20.3012H22.2222C23.2039 20.3012 23.9997 19.5171 23.9997 18.5499V5.41534C23.9997 4.44814 23.2039 3.66406 22.2222 3.66406Z", stroke:
|
|
2030
|
+
var _b = _a.width, width = _b === undefined ? '25px' : _b, _c = _a.height, height = _c === undefined ? '25px' : _c, _d = _a.viewBox, viewBox = _d === undefined ? '0 0 25 25' : _d, _e = _a.stroke, stroke = _e === undefined ? 'currentColor' : _e, _f = _a.fill, fill = _f === undefined ? 'none' : _f;
|
|
2031
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { d: "M22.2222 3.66406H2.67005C1.68838 3.66406 0.892578 4.44814 0.892578 5.41534V18.5499C0.892578 19.5171 1.68838 20.3012 2.67005 20.3012H22.2222C23.2039 20.3012 23.9997 19.5171 23.9997 18.5499V5.41534C23.9997 4.44814 23.2039 3.66406 22.2222 3.66406Z", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M0.892578 9.20996H23.9997", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M16.6055 15.6797H19.3783", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
2006
2032
|
};
|
|
2007
2033
|
CreditCard.displayName = 'CreditCard';
|
|
2008
2034
|
|
|
@@ -2061,6 +2087,12 @@ var House = function (_a) {
|
|
|
2061
2087
|
};
|
|
2062
2088
|
House.displayName = 'House';
|
|
2063
2089
|
|
|
2090
|
+
var HouseCheck = function (_a) {
|
|
2091
|
+
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.fill, fill = _g === undefined ? 'none' : _g;
|
|
2092
|
+
return (jsx(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: jsxs("g", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, 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.667M19 20.286l1.875 1.714 3.125-4M9.732 23.669v-6.91c0-.602.488-1.09 1.09-1.09h2.183M2.715 9.82v13.85M13 23.67H1" })] }) }));
|
|
2093
|
+
};
|
|
2094
|
+
HouseCheck.displayName = 'HouseCheck';
|
|
2095
|
+
|
|
2064
2096
|
var HouseTime = function (_a) {
|
|
2065
2097
|
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;
|
|
2066
2098
|
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" })] }) }));
|
|
@@ -2119,19 +2151,21 @@ var Plaid = function (props) {
|
|
|
2119
2151
|
Plaid.displayName = 'Plaid';
|
|
2120
2152
|
|
|
2121
2153
|
var Plus = function (_a) {
|
|
2122
|
-
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 =
|
|
2123
|
-
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth:
|
|
2154
|
+
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.fill, fill = _g === undefined ? 'none' : _g, _h = _a.outlined, outlined = _h === undefined ? true : _h;
|
|
2155
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [outlined && (jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, 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: strokeWidth, d: outlined
|
|
2156
|
+
? 'M16 10.667v10.666M21.333 16H10.667'
|
|
2157
|
+
: 'M16 9.5v13M22.5 16H9.5' })] }));
|
|
2124
2158
|
};
|
|
2125
2159
|
Plus.displayName = 'Plus';
|
|
2126
2160
|
|
|
2127
2161
|
var Refresh = function (props) {
|
|
2128
|
-
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M20.3846 16.5176L24.077 15.5945L25 19.2869", stroke:
|
|
2162
|
+
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { d: "M20.3846 16.5176L24.077 15.5945L25 19.2869", stroke: props.stroke, strokeWidth: props.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: props.stroke, strokeWidth: props.strokeWidth || '1.5', strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M5.61538 9.133L1.92308 10.0561L1 6.36377", stroke: props.stroke, strokeWidth: props.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: props.stroke, strokeWidth: props.strokeWidth || '1.5', strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
2129
2163
|
};
|
|
2130
2164
|
Refresh.displayName = 'Refresh';
|
|
2131
2165
|
|
|
2132
2166
|
var Remove = function (_a) {
|
|
2133
|
-
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 =
|
|
2134
|
-
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth:
|
|
2167
|
+
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.fill, fill = _g === undefined ? 'none' : _g, _h = _a.outlined, outlined = _h === undefined ? true : _h;
|
|
2168
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, fill: fill, children: [jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, d: outlined ? 'M21.333 16H10.667' : 'M22.5 16H9.5' }), outlined && (jsx("path", { stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: strokeWidth, 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" }))] }));
|
|
2135
2169
|
};
|
|
2136
2170
|
Remove.displayName = 'Remove';
|
|
2137
2171
|
|
|
@@ -2162,5 +2196,5 @@ var World = function (_a) {
|
|
|
2162
2196
|
};
|
|
2163
2197
|
World.displayName = 'World';
|
|
2164
2198
|
|
|
2165
|
-
export {
|
|
2166
|
-
//# sourceMappingURL=index-
|
|
2199
|
+
export { Arrow as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, StatusBadge as G, Stepper as H, IncrementNumber as I, Tabs as J, Text as K, Link as L, Message as M, NavBar as N, Textarea as O, Pagination as P, ToastContainer as Q, RadioButton as R, SegmentedControl as S, Table as T, Tooltip as U, AIGenerate as V, AIPrompt as W, AIRedo as X, AISearch as Y, Alert as Z, Archive as _, AccordionItem as a, Attachment as a0, AvatarPlaceholder as a1, Bell as a2, Calendar as a3, Camera as a4, Cat as a5, Chat as a6, Check as a7, CheckSquare as a8, Chevron as a9, MenuTouched as aA, Notification as aB, Open as aC, Pets as aD, Phone as aE, Plaid as aF, Plus as aG, Refresh as aH, Remove as aI, Search as aJ, Shield as aK, StepIndicator as aL, ThreeDots as aM, ThumbsDown as aN, Tick as aO, Umbrello as aP, Upload as aQ, Visa as aR, Warning as aS, World as aT, capitalizeFirstSentenceLetter as aU, ChevronCollapse as aa, Clock as ab, Close as ac, Cloud as ad, CloudUpload as ae, CreditCard as af, Curriculum as ag, Delete as ah, Document as ai, Dog as aj, EyeHide as ak, EyeShow as al, Fingerprint as am, Flash as an, Google as ao, Grid as ap, Hamburger as aq, HappyFace as ar, House as as, HouseCheck as at, HouseTime as au, Identification as av, Info as aw, Location as ax, Mail as ay, Menu as az, AccordionControl as b, AccordionPanel as c, ActionIcon as d, Animation as e, Autocomplete as f, getDefaultExportFromCjs as g, Avatar as h, badgeVariantMap as i, Button as j, cardStatusVariantMap as k, CardStatus as l, Checkbox as m, Chip as n, Dropdown as o, FileUpload as p, Input as q, LinkModal as r, Loader as s, Modal as t, Multiselect as u, NavBarSide as v, PasswordInput as w, Pill as x, ProgressStepper as y, Select as z };
|
|
2200
|
+
//# sourceMappingURL=index-BswprZpZ.js.map
|