@jars-labs/jars-components 1.2.0 → 1.2.1
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-CAIOxTa3.js → index-imn0YJFq.js} +7 -13
- package/dist/index-imn0YJFq.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-B049-AA6.js → lottie-rfC_wLbF.js} +2 -2
- package/dist/{lottie-B049-AA6.js.map → lottie-rfC_wLbF.js.map} +1 -1
- package/dist/types/Modal/Modal.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-CAIOxTa3.js.map +0 -1
|
@@ -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-rfC_wLbF.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) {
|
|
@@ -1127,7 +1127,7 @@ var Link = function (_a) {
|
|
|
1127
1127
|
};
|
|
1128
1128
|
Link.displayName = 'Link';
|
|
1129
1129
|
|
|
1130
|
-
var styles$c = {"modal":"Modal-module_modal__gMPgi","body":"Modal-module_body__OhLb0","header":"Modal-module_header__5sBzU"};
|
|
1130
|
+
var styles$c = {"modal":"Modal-module_modal__gMPgi","body":"Modal-module_body__OhLb0","body--sm":"Modal-module_body--sm__PDhpT","body--md":"Modal-module_body--md__n3n3a","header":"Modal-module_header__5sBzU","actions":"Modal-module_actions__SzSYl","root":"Modal-module_root__8jbgq","inner":"Modal-module_inner__hm2ft","slide-up":"Modal-module_slide-up__mghqt"};
|
|
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;
|
|
@@ -1143,23 +1143,17 @@ var Modal = function (_a) {
|
|
|
1143
1143
|
xl: '900px',
|
|
1144
1144
|
full: '100%',
|
|
1145
1145
|
};
|
|
1146
|
-
var paddingMap = {
|
|
1147
|
-
sm: '4px 24px 32px 24px',
|
|
1148
|
-
md: '4px 64px 64px 64px',
|
|
1149
|
-
};
|
|
1150
1146
|
return (jsxs(Modal$1, { opened: isOpen, onClose: handleClose, withCloseButton: onClose !== undefined, size: sizeMap[size], fullScreen: size === 'full', radius: customRadius, closeButtonProps: {
|
|
1151
1147
|
'aria-label': 'Close modal',
|
|
1152
1148
|
title: 'Close modal',
|
|
1153
1149
|
icon: jsx(Close, { fill: "var(--color-neutral-200)" }),
|
|
1154
1150
|
}, classNames: {
|
|
1151
|
+
root: styles$c.root,
|
|
1152
|
+
inner: styles$c.inner,
|
|
1155
1153
|
content: styles$c.modal,
|
|
1156
|
-
body: styles$c.body,
|
|
1154
|
+
body: classNames(styles$c.body, styles$c["body--".concat(padding)]),
|
|
1157
1155
|
header: styles$c.header,
|
|
1158
|
-
}, styles: {
|
|
1159
|
-
body: {
|
|
1160
|
-
padding: paddingMap[padding],
|
|
1161
|
-
},
|
|
1162
|
-
}, centered: true, children: [children, jsxs(Flex, { direction: 'column', gap: 16, w: 312, children: [noLabel && (jsx(Button, { disabled: disabled, variant: invertColors ? 'filled' : 'outlined', onClick: no, label: noLabel })), yesLabel && (jsx(Button, { disabled: disabled, variant: invertColors ? 'outlined' : 'filled', onClick: yes, label: yesLabel }))] }), underButton] }));
|
|
1156
|
+
}, centered: true, children: [children, jsxs(Flex, { className: styles$c.actions, children: [noLabel && (jsx(Button, { disabled: disabled, variant: invertColors ? 'filled' : 'outlined', onClick: no, label: noLabel })), yesLabel && (jsx(Button, { disabled: disabled, variant: invertColors ? 'outlined' : 'filled', onClick: yes, label: yesLabel }))] }), underButton] }));
|
|
1163
1157
|
};
|
|
1164
1158
|
Modal.displayName = 'Modal';
|
|
1165
1159
|
|
|
@@ -2259,4 +2253,4 @@ var World = function (_a) {
|
|
|
2259
2253
|
World.displayName = 'World';
|
|
2260
2254
|
|
|
2261
2255
|
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 };
|
|
2262
|
-
//# sourceMappingURL=index-
|
|
2256
|
+
//# sourceMappingURL=index-imn0YJFq.js.map
|