@jars-labs/jars-components 1.0.8 → 1.0.9
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-CB6XdFf2.js → index-Bsn_EcYJ.js} +12 -12
- package/dist/index-Bsn_EcYJ.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-BT6f-yv1.js → lottie-uxb8tIPw.js} +2 -2
- package/dist/{lottie-BT6f-yv1.js.map → lottie-uxb8tIPw.js.map} +1 -1
- package/dist/types/Badge/Badge.d.ts.map +1 -1
- package/dist/types/Icons/Icon.d.ts.map +1 -1
- package/dist/types/LinkModal/LinkModal.d.ts.map +1 -1
- package/dist/types/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/types/Text/Text.d.ts +1 -1
- package/dist/types/Text/Text.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-CB6XdFf2.js.map +0 -1
|
@@ -85,7 +85,8 @@ var Icon = function (_a) {
|
|
|
85
85
|
var parent_1 = svgRef.current.parentElement;
|
|
86
86
|
var isParentContent = false;
|
|
87
87
|
while (parent_1) {
|
|
88
|
-
if (parent_1.classList.contains('mantine-Accordion-root')
|
|
88
|
+
if (parent_1.classList.contains('mantine-Accordion-root') ||
|
|
89
|
+
parent_1.classList.contains('mantine-Tabs-panel')) {
|
|
89
90
|
isParentContent = true;
|
|
90
91
|
break;
|
|
91
92
|
}
|
|
@@ -160,7 +161,7 @@ var Animation = function (_a) {
|
|
|
160
161
|
var refVector = useRef(null);
|
|
161
162
|
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
162
163
|
useEffect(function () {
|
|
163
|
-
import('./lottie-
|
|
164
|
+
import('./lottie-uxb8tIPw.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
164
165
|
}, []);
|
|
165
166
|
useEffect(function () {
|
|
166
167
|
if (lottie && refVector.current) {
|
|
@@ -337,7 +338,7 @@ var Info = function (props) {
|
|
|
337
338
|
return (jsxs(Icon, __assign({}, props, { children: [jsx("path", { stroke: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", 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: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", 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: props.stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 12V17" })] })));
|
|
338
339
|
};
|
|
339
340
|
|
|
340
|
-
var styles$j = {"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"
|
|
341
|
+
var styles$j = {"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"};
|
|
341
342
|
|
|
342
343
|
var elementType = {
|
|
343
344
|
h1: 'h1',
|
|
@@ -524,7 +525,7 @@ var badgeVariantMap = {
|
|
|
524
525
|
var sizeMap$1 = {
|
|
525
526
|
small: {
|
|
526
527
|
textVariant: 'xxs',
|
|
527
|
-
padding: '
|
|
528
|
+
padding: '4px 12px',
|
|
528
529
|
},
|
|
529
530
|
medium: {
|
|
530
531
|
textVariant: 'xs',
|
|
@@ -532,7 +533,7 @@ var sizeMap$1 = {
|
|
|
532
533
|
},
|
|
533
534
|
large: {
|
|
534
535
|
textVariant: 's',
|
|
535
|
-
padding: '
|
|
536
|
+
padding: '10px 16px',
|
|
536
537
|
},
|
|
537
538
|
};
|
|
538
539
|
var Badge = forwardRef(function (_a, ref) {
|
|
@@ -541,7 +542,7 @@ var Badge = forwardRef(function (_a, ref) {
|
|
|
541
542
|
var backgroundColor = (_b = badgeVariantMap[variant]) === null || _b === undefined ? undefined : _b.backgroundColor;
|
|
542
543
|
var color = (_c = badgeVariantMap[variant]) === null || _c === undefined ? undefined : _c.color;
|
|
543
544
|
var sizeStyles = sizeMap$1[size || 'small'];
|
|
544
|
-
return (jsxs(Flex, { gap: 8, w: 'fit-content', bg: backgroundColor, p: sizeStyles.padding, style: __assign(__assign({}, style), { borderRadius: 999, alignItems: 'center' }), ref: ref, children: [icon, jsx(Text, { variant: sizeStyles.textVariant, color: color, children: label })] }));
|
|
545
|
+
return (jsxs(Flex, { gap: 8, w: 'fit-content', bg: backgroundColor, p: sizeStyles.padding, style: __assign(__assign({}, style), { borderRadius: 999, alignItems: 'center' }), ref: ref, children: [icon, jsx(Text, { variant: sizeStyles.textVariant, weight: "regular", color: color, style: { lineHeight: 'normal' }, children: label })] }));
|
|
545
546
|
});
|
|
546
547
|
|
|
547
548
|
var styles$i = {"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"};
|
|
@@ -880,7 +881,7 @@ var IncrementNumber = function (props) {
|
|
|
880
881
|
return (jsxs("div", { className: styles$a['flex'], children: [props.disableDecrease ? (jsx("div", { style: { width: 24 } })) : (jsx("button", { className: styles$a['increment-button'], onClick: function () { return props.handleDecrease(props.value); }, children: jsx("img", { src: props.minusIconPath, width: 24, height: 24, alt: "-", style: {
|
|
881
882
|
maxWidth: '100%',
|
|
882
883
|
height: 'auto',
|
|
883
|
-
} }) })), jsx(Text, { variant: "m
|
|
884
|
+
} }) })), 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$a['increment-button'], onClick: function () { return props.handleIncrease(props.value); }, children: jsx("img", { src: props.plusIconPath, width: 24, height: 24, alt: "+", style: {
|
|
884
885
|
maxWidth: '100%',
|
|
885
886
|
height: 'auto',
|
|
886
887
|
} }) }))] }));
|
|
@@ -977,8 +978,7 @@ var Modal = function (_a) {
|
|
|
977
978
|
|
|
978
979
|
var LinkModal = function (props) {
|
|
979
980
|
var _a = t.useState(false), modalIsOpen = _a[0], setModalIsOpen = _a[1];
|
|
980
|
-
return (jsxs(Fragment, { children: [jsx("a", { onClick: function () { return setModalIsOpen(!modalIsOpen); }, children: jsx(Text, { variant: "xs-
|
|
981
|
-
color: 'var(--color-primary-300)',
|
|
981
|
+
return (jsxs(Fragment, { children: [jsx("a", { onClick: function () { return setModalIsOpen(!modalIsOpen); }, children: jsx(Text, { variant: "xs", weight: "regular", color: "var(--color-primary-300)", style: {
|
|
982
982
|
textDecoration: 'underline',
|
|
983
983
|
}, children: props.label }) }), jsx(Modal, { isOpen: modalIsOpen, onClose: function () { return setModalIsOpen(false); }, children: props.children })] }));
|
|
984
984
|
};
|
|
@@ -1163,7 +1163,7 @@ var StatusBadge = function (props) {
|
|
|
1163
1163
|
var _a, _b;
|
|
1164
1164
|
var backgroundColor = ((_a = variantMap[props.variant]) === null || _a === undefined ? undefined : _a.backgroundColor) || 'var(--color-neutral-400)';
|
|
1165
1165
|
var color = ((_b = variantMap[props.variant]) === null || _b === undefined ? undefined : _b.color) || 'var(--color-jet-black)';
|
|
1166
|
-
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: "
|
|
1166
|
+
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: {
|
|
1167
1167
|
color: color,
|
|
1168
1168
|
lineHeight: '16px',
|
|
1169
1169
|
margin: '8px 0',
|
|
@@ -1413,7 +1413,7 @@ var Attachment = function (props) {
|
|
|
1413
1413
|
|
|
1414
1414
|
var Bell = function (_a) {
|
|
1415
1415
|
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;
|
|
1416
|
-
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: "
|
|
1416
|
+
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: "var(--color-primary-300)", stroke: "white" }))] }));
|
|
1417
1417
|
};
|
|
1418
1418
|
|
|
1419
1419
|
var Cat = function (props) {
|
|
@@ -1535,4 +1535,4 @@ var World = function (_a) {
|
|
|
1535
1535
|
};
|
|
1536
1536
|
|
|
1537
1537
|
export { Document as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, Multiselect as G, Alert as H, IncrementNumber as I, Arrow as J, Attachment as K, Link as L, Message as M, NavBar as N, AvatarPlaceholder as O, PasswordInput as P, Bell as Q, RadioButton as R, SegmentedControl as S, Table as T, Calendar as U, Cat as V, Chevron as W, Clock as X, Close as Y, Cloud as Z, Delete as _, AccordionItem as a, Dog as a0, EyeHide as a1, EyeShow as a2, Fingerprint as a3, Google as a4, Grid as a5, HappyFace as a6, House as a7, HouseTime as a8, Identification as a9, Info as aa, Location as ab, Mail as ac, Menu as ad, MenuTouched as ae, Notification as af, Open as ag, Pets as ah, Phone as ai, Plaid as aj, Plus as ak, Remove as al, Search as am, ThreeDots as an, ThumbsDown as ao, Tick as ap, Umbrello as aq, Upload as ar, Visa as as, Warning as at, World as au, capitalizeFirstSentenceLetter as av, 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, Dropdown as m, FileUpload as n, Input as o, LinkModal as p, Loader as q, Modal as r, Pagination as s, Select as t, StatusBadge as u, Tabs as v, Text as w, Textarea as x, ToastContainer as y, Tooltip as z };
|
|
1538
|
-
//# sourceMappingURL=index-
|
|
1538
|
+
//# sourceMappingURL=index-Bsn_EcYJ.js.map
|