@cashub/ui 0.48.20 → 0.48.22
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/Tab/TabList.js +26 -38
- package/Tab/TabPanel.js +20 -13
- package/Tab/TabTab.js +25 -37
- package/Tab/index.js +6 -3
- package/Tab/subComponent/TabListV2.js +18 -11
- package/Tab/subComponent/TabPanelV2.js +20 -16
- package/Tab/subComponent/TabTabV2.js +21 -33
- package/VerticalTab/TabList.js +18 -13
- package/VerticalTab/TabPanel.js +20 -16
- package/VerticalTab/TabTab.js +21 -40
- package/VerticalTab/VerticalTab.js +4 -8
- package/alert/Alert.js +5 -12
- package/animate/Collapse.js +7 -5
- package/animate/Loader.js +7 -18
- package/animate/PulseRing.js +5 -18
- package/animate/Spinner.js +3 -8
- package/backdrop/BaseBackdrop.js +3 -9
- package/backdrop/LoadingBackdrop.js +3 -7
- package/backdrop/ModalBackdrop.js +3 -5
- package/badge/Badge.js +3 -15
- package/badge/BadgeDot.js +3 -8
- package/badge/BadgeFill.js +6 -24
- package/badge/BadgeWithText.js +3 -13
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +3 -42
- package/button/Button.js +22 -102
- package/button/ButtonGroup.js +9 -33
- package/button/IconButton.js +10 -37
- package/button/ScrollToTopButton.js +4 -12
- package/callout/Callout.js +8 -37
- package/chart/BarChart.js +21 -13
- package/chart/DoughnutChart.js +20 -34
- package/chart/LineChart.js +21 -13
- package/chart/SingleBarChart.js +5 -22
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +8 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +1 -1
- package/container/FlexContainer.js +7 -15
- package/cropper/Cropper.js +2 -1
- package/datetimePicker/DatePicker.js +26 -80
- package/datetimePicker/DatePickerV2.js +36 -95
- package/datetimePicker/DatetimePicker.js +11 -174
- package/datetimePicker/DatetimePickerV2.js +33 -87
- package/datetimePicker/DatetimePickerV3.js +11 -174
- package/datetimePicker/TimeInput.js +10 -35
- package/datetimePicker/TimePicker.js +22 -77
- package/datetimePicker/TimePickerStyle.js +3 -53
- package/datetimePicker/TimePickerV2.js +21 -54
- package/datetimePicker/accordion/Month.js +16 -93
- package/datetimePicker/accordion/Year.js +18 -96
- package/datetimePicker/hooks/useChangeNumber.js +6 -3
- package/datetimePicker/hooks/useDecrease.js +6 -3
- package/datetimePicker/hooks/useIncrease.js +6 -3
- package/datetimePicker/subComponent/Accordion.js +20 -101
- package/descriptionList/DescriptionDetail.js +4 -15
- package/descriptionList/DescriptionList.js +4 -12
- package/descriptionList/DescriptionTerm.js +3 -5
- package/divider/Divider.js +6 -15
- package/dropdown/DropdownButtonOption.js +6 -22
- package/dropdown/DropdownContent.js +15 -29
- package/dropdown/DropdownDivOption.js +3 -17
- package/dropdown/DropdownLinkOption.js +3 -14
- package/dropdown/DropdownToggle.js +15 -7
- package/dropzone/FileDropzone.js +22 -121
- package/dropzone/ImageDropzone.js +14 -83
- package/dropzone/subComponent/Message.js +4 -11
- package/figure/IconFigure.js +7 -16
- package/figure/ImageFigure.js +6 -19
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +16 -81
- package/form/Fieldset.js +3 -9
- package/form/FormItem.js +5 -10
- package/form/Input.js +7 -40
- package/form/Label.js +10 -34
- package/form/MutedText.js +4 -8
- package/form/PasswordInput.js +13 -20
- package/form/RadioButton.js +8 -55
- package/form/SearchSelect.js +12 -64
- package/form/Searchbox.js +19 -45
- package/form/Slider.js +10 -28
- package/form/SwitchButton.js +14 -48
- package/form/Textarea.js +3 -30
- package/form/TreeView.js +6 -13
- package/grid/Column.js +10 -23
- package/grid/Grid.js +6 -14
- package/heading/Heading1.js +4 -8
- package/heading/Heading2.js +5 -11
- package/heading/Heading3.js +8 -20
- package/iconbox/ApplicationIconBox.js +12 -48
- package/iconbox/IconBox.js +7 -31
- package/iconbox/IconBoxV2.js +10 -45
- package/iconbox/subComponent/IconBoxFigure.js +9 -17
- package/iconbox/subComponent/IconBoxImage.js +8 -21
- package/image/ImageFluid.js +3 -7
- package/image/UploadImage.js +18 -66
- package/jsoneditor/JsonEditor.js +15 -121
- package/keyframe/Pulse.js +3 -13
- package/keyframe/Spin.js +3 -5
- package/layout/Aside.js +5 -30
- package/layout/Backdrop.js +4 -8
- package/layout/Container.js +5 -21
- package/layout/Footer.js +7 -26
- package/link/LinkSpan.js +19 -37
- package/map/GoogleMap.js +7 -3
- package/map/GoogleReverseGeolocation.js +3 -6
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +4 -16
- package/map/subComponent/GoogleMapPopup.js +10 -7
- package/map/subComponent/GoogleMapWrapper.js +15 -8
- package/map/subComponent/LeafletDrawControl.js +7 -9
- package/map/subComponent/LeafletMapContainer.js +4 -159
- package/modal/StateModal.js +38 -62
- package/modal/TitleModal.js +29 -70
- package/package.json +1 -1
- package/page/Disclaimer.js +3 -119
- package/paginate/Paginate.js +12 -54
- package/popover/Popover.js +25 -30
- package/qrcode/QRCode.js +6 -20
- package/qrcode/QRCodeContainter.js +4 -12
- package/ribbon/Ribbon.js +4 -29
- package/section/Section.js +20 -68
- package/section/SectionBody.js +8 -29
- package/section/SectionHeader.js +11 -36
- package/section/SectionToolbar.js +3 -9
- package/section/SectionToolbarItem.js +3 -8
- package/select/InputSelect.js +23 -16
- package/select/Select.js +54 -123
- package/select/subComponent/Checkbox.js +5 -24
- package/select/subComponent/Footer.js +3 -4
- package/select/subComponent/ListBox.js +5 -12
- package/select/subComponent/Option.js +7 -27
- package/select/subComponent/OptionGroup.js +3 -13
- package/select/subComponent/Options.js +5 -18
- package/select/subComponent/SearchBox.js +12 -34
- package/select/subComponent/SelectedMultipleTags.js +3 -21
- package/select/subComponent/SelectedMultipleText.js +4 -20
- package/select/subComponent/SelectedSingle.js +3 -7
- package/styles/GlobalStyle.js +45 -156
- package/styles/mixin/backgroundColor.js +8 -16
- package/styles/mixin/borderColor.js +7 -13
- package/styles/mixin/color.js +7 -13
- package/styles/mixin/colorOnBackground.js +7 -13
- package/styles/mixin/inputPlaceholder.js +3 -20
- package/styles/mixin/media.js +3 -5
- package/styles/mixin/rounded.js +6 -10
- package/styles/mixin/scrollbar.js +3 -13
- package/styles/theme/dark.theme.js +14 -15
- package/styles/theme/light.theme.js +14 -15
- package/styles/theme/white.theme.js +14 -15
- package/table/GridTable.js +33 -71
- package/table/ImageBox.js +5 -15
- package/table/InfiniteGridTable.js +46 -92
- package/table/PermissionTable.js +10 -32
- package/table/SimpleGridTable.js +17 -52
- package/table/Table.js +48 -198
- package/table/__mock__/columns.js +1 -1
- package/table/subComponent/BaseTableHeadCell.js +8 -37
- package/table/subComponent/GridTableFooter.js +4 -10
- package/table/subComponent/GridTableHeadCell.js +4 -6
- package/table/subComponent/Resizer.js +4 -19
- package/table/subComponent/TableFooter.js +6 -15
- package/table/subComponent/TableFooterInfo.js +3 -4
- package/table/subComponent/TableFooterPager.js +6 -19
- package/table/subComponent/TableHeadCell.js +3 -9
- package/table/subComponent/TableSort.js +7 -17
- package/tagify/TagifyStyle.js +3 -49
- package/tagify/Tags.js +21 -37
- package/tagify/templates/getCreateButtonTemplate.js +2 -5
- package/text/Paragraph.js +12 -50
- package/timeline/Timeline.js +17 -94
- package/toast/CustomToastContainer.js +3 -35
- package/toast/MessageContainer.js +4 -22
- package/tooltip/Tooltip.js +26 -52
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +3 -38
- package/wizard/Wizard.js +6 -115
package/dropzone/FileDropzone.js
CHANGED
|
@@ -14,7 +14,14 @@ var _file = _interopRequireDefault(require("../assets/icons/file.svg"));
|
|
|
14
14
|
var _HiddenFileInput = _interopRequireDefault(require("../file/HiddenFileInput"));
|
|
15
15
|
var _Message = _interopRequireDefault(require("./subComponent/Message"));
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
17
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
25
|
const FileDropzone = _ref => {
|
|
19
26
|
let {
|
|
20
27
|
message,
|
|
@@ -51,10 +58,7 @@ const FileDropzone = _ref => {
|
|
|
51
58
|
Resume: 'Resume Upload',
|
|
52
59
|
Retry: 'Retry Upload'
|
|
53
60
|
};
|
|
54
|
-
return {
|
|
55
|
-
...defaultTexts,
|
|
56
|
-
...translation
|
|
57
|
-
};
|
|
61
|
+
return _objectSpread(_objectSpread({}, defaultTexts), translation);
|
|
58
62
|
}, [translation]);
|
|
59
63
|
const handleClick = (0, _react.useCallback)(() => {
|
|
60
64
|
if (files.length > 0) return;
|
|
@@ -335,145 +339,42 @@ const FileDropzone = _ref => {
|
|
|
335
339
|
}), files.length === 0 ? messageItem : previewItem]
|
|
336
340
|
});
|
|
337
341
|
};
|
|
338
|
-
const Dropzone = _styledComponents.default.div
|
|
339
|
-
min-height: 200px;
|
|
340
|
-
border: 4px dashed var(--border-color);
|
|
341
|
-
border-radius: var(--border-radius);
|
|
342
|
-
color: var(--font-on-background);
|
|
343
|
-
display: flex;
|
|
344
|
-
flex-direction: column;
|
|
345
|
-
justify-content: center;
|
|
346
|
-
align-items: center;
|
|
347
|
-
padding: 0 var(--spacing-s);
|
|
348
|
-
cursor: ${_ref2 => {
|
|
342
|
+
const Dropzone = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: 200px;\n border: 4px dashed var(--border-color);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 0 var(--spacing-s);\n cursor: ", ";\n\n ", ";\n\n &:focus {\n border-color: var(--color-primary);\n }\n"])), _ref2 => {
|
|
349
343
|
let {
|
|
350
344
|
reachedLimit
|
|
351
345
|
} = _ref2;
|
|
352
346
|
return reachedLimit ? 'default' : 'pointer';
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
${_ref3 => {
|
|
347
|
+
}, _ref3 => {
|
|
356
348
|
let {
|
|
357
349
|
dragging
|
|
358
350
|
} = _ref3;
|
|
359
351
|
return dragging && 'border-color: var(--color-primary);';
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&:focus {
|
|
363
|
-
border-color: var(--color-primary);
|
|
364
|
-
}
|
|
365
|
-
`;
|
|
352
|
+
});
|
|
366
353
|
Dropzone.displayName = 'Dropzone';
|
|
367
|
-
const Preview = _styledComponents.default.div
|
|
368
|
-
max-width: 50%;
|
|
369
|
-
display: flex;
|
|
370
|
-
align-items: center;
|
|
371
|
-
text-align: center;
|
|
372
|
-
|
|
373
|
-
${_media.default.laptop`
|
|
374
|
-
max-width: 75%;
|
|
375
|
-
`}
|
|
376
|
-
|
|
377
|
-
${_media.default.tablet`
|
|
378
|
-
max-width: 100%;
|
|
379
|
-
`}
|
|
380
|
-
`;
|
|
354
|
+
const Preview = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-width: 50%;\n display: flex;\n align-items: center;\n text-align: center;\n\n ", "\n\n ", "\n"])), _media.default.laptop(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n max-width: 75%;\n "]))), _media.default.tablet(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-width: 100%;\n "]))));
|
|
381
355
|
Preview.displayName = 'Preview';
|
|
382
|
-
const PreviewImage = _styledComponents.default.div
|
|
383
|
-
margin-right: var(--spacing-xs);
|
|
384
|
-
|
|
385
|
-
> img {
|
|
386
|
-
width: 120px;
|
|
387
|
-
margin-bottom: var(--spacing-xs);
|
|
388
|
-
}
|
|
389
|
-
`;
|
|
356
|
+
const PreviewImage = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: var(--spacing-xs);\n\n > img {\n width: 120px;\n margin-bottom: var(--spacing-xs);\n }\n"])));
|
|
390
357
|
PreviewImage.displayName = 'PreviewImage';
|
|
391
|
-
const PreviewDetails = _styledComponents.default.div
|
|
392
|
-
overflow: hidden;
|
|
393
|
-
min-width: 200px;
|
|
394
|
-
|
|
395
|
-
> * {
|
|
396
|
-
margin-bottom: var(--spacing-xs);
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
> .ellipsis {
|
|
400
|
-
overflow: hidden;
|
|
401
|
-
white-space: nowrap;
|
|
402
|
-
text-overflow: ellipsis;
|
|
403
|
-
}
|
|
404
|
-
`;
|
|
358
|
+
const PreviewDetails = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow: hidden;\n min-width: 200px;\n\n > * {\n margin-bottom: var(--spacing-xs);\n }\n\n > .ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n"])));
|
|
405
359
|
PreviewDetails.displayName = 'PreviewDetails';
|
|
406
|
-
const Progress = _styledComponents.default.div
|
|
407
|
-
display: flex;
|
|
408
|
-
justify-content: center;
|
|
409
|
-
align-items: center;
|
|
410
|
-
`;
|
|
360
|
+
const Progress = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
411
361
|
|
|
412
362
|
// fix:color
|
|
413
|
-
const ProgressBar = _styledComponents.default.div
|
|
414
|
-
flex: 1;
|
|
415
|
-
height: 1.25rem;
|
|
416
|
-
border-radius: var(--border-radius);
|
|
417
|
-
position: relative;
|
|
418
|
-
overflow: hidden;
|
|
419
|
-
border: 1px solid var(--color-primary);
|
|
420
|
-
|
|
421
|
-
&::before {
|
|
422
|
-
position: absolute;
|
|
423
|
-
content: '';
|
|
424
|
-
width: ${_ref4 => {
|
|
363
|
+
const ProgressBar = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n flex: 1;\n height: 1.25rem;\n border-radius: var(--border-radius);\n position: relative;\n overflow: hidden;\n border: 1px solid var(--color-primary);\n\n &::before {\n position: absolute;\n content: '';\n width: ", "%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(to bottom, #00bdff, #597ef7);\n transition: width 300ms ease-in-out;\n }\n\n > span {\n position: absolute;\n width: 100%;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n"])), _ref4 => {
|
|
425
364
|
let {
|
|
426
365
|
percentage
|
|
427
366
|
} = _ref4;
|
|
428
367
|
return percentage;
|
|
429
|
-
}
|
|
430
|
-
top: 0;
|
|
431
|
-
bottom: 0;
|
|
432
|
-
left: 0;
|
|
433
|
-
right: 0;
|
|
434
|
-
background: linear-gradient(to bottom, #00bdff, #597ef7);
|
|
435
|
-
transition: width 300ms ease-in-out;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
> span {
|
|
439
|
-
position: absolute;
|
|
440
|
-
width: 100%;
|
|
441
|
-
top: 0;
|
|
442
|
-
bottom: 0;
|
|
443
|
-
left: 0;
|
|
444
|
-
right: 0;
|
|
445
|
-
}
|
|
446
|
-
`;
|
|
368
|
+
});
|
|
447
369
|
ProgressBar.displayName = 'ProgressBar';
|
|
448
370
|
const Button = _styledComponents.default.span.attrs(() => ({
|
|
449
371
|
role: 'button'
|
|
450
|
-
}))
|
|
451
|
-
display: flex;
|
|
452
|
-
justify-content: center;
|
|
453
|
-
align-items: center;
|
|
454
|
-
flex: 0 0 auto;
|
|
455
|
-
cursor: pointer;
|
|
456
|
-
width: 1.25rem;
|
|
457
|
-
height: 1.25rem;
|
|
458
|
-
color: var(--font-on-primary);
|
|
459
|
-
background: var(--color-primary);
|
|
460
|
-
border-radius: var(--border-radius);
|
|
461
|
-
margin-left: var(--spacing-xs);
|
|
462
|
-
padding: 0.25rem;
|
|
463
|
-
|
|
464
|
-
${_ref5 => {
|
|
372
|
+
}))(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex: 0 0 auto;\n cursor: pointer;\n width: 1.25rem;\n height: 1.25rem;\n color: var(--font-on-primary);\n background: var(--color-primary);\n border-radius: var(--border-radius);\n margin-left: var(--spacing-xs);\n padding: 0.25rem;\n\n ", "\n"])), _ref5 => {
|
|
465
373
|
let {
|
|
466
374
|
danger
|
|
467
375
|
} = _ref5;
|
|
468
|
-
return danger &&
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
`;
|
|
473
|
-
const PauseButton = (0, _styledComponents.default)(Button)`
|
|
474
|
-
padding: 5px;
|
|
475
|
-
`;
|
|
476
|
-
const ResumeButton = (0, _styledComponents.default)(Button)`
|
|
477
|
-
padding: 5px 5px 5px 6px;
|
|
478
|
-
`;
|
|
376
|
+
return danger && "\n background: var(--color-danger);\n ";
|
|
377
|
+
});
|
|
378
|
+
const PauseButton = (0, _styledComponents.default)(Button)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: 5px;\n"])));
|
|
379
|
+
const ResumeButton = (0, _styledComponents.default)(Button)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: 5px 5px 5px 6px;\n"])));
|
|
479
380
|
var _default = exports.default = FileDropzone;
|
|
@@ -12,7 +12,9 @@ var _utils = require("@cashub/utils");
|
|
|
12
12
|
var _HiddenFileInput = _interopRequireDefault(require("../file/HiddenFileInput"));
|
|
13
13
|
var _Message = _interopRequireDefault(require("./subComponent/Message"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
18
|
const ImageDropzone = _ref => {
|
|
17
19
|
let {
|
|
18
20
|
width = 180,
|
|
@@ -219,116 +221,45 @@ const ImageDropzone = _ref => {
|
|
|
219
221
|
}), files.length === 0 ? messageItem : previewItem()]
|
|
220
222
|
});
|
|
221
223
|
};
|
|
222
|
-
const Wrapper = _styledComponents.default.div
|
|
223
|
-
min-height: 200px;
|
|
224
|
-
border: 4px dashed var(--border-color);
|
|
225
|
-
border-radius: var(--border-radius-l);
|
|
226
|
-
color: var(--font-on-background);
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-wrap: wrap;
|
|
229
|
-
justify-content: center;
|
|
230
|
-
align-items: center;
|
|
231
|
-
padding: var(--spacing-xs);
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
|
|
234
|
-
${_ref2 => {
|
|
224
|
+
const Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: 200px;\n border: 4px dashed var(--border-color);\n border-radius: var(--border-radius-l);\n color: var(--font-on-background);\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n padding: var(--spacing-xs);\n cursor: pointer;\n\n ", ";\n\n ", ";\n\n ", ";\n\n &:focus {\n border-color: var(--color-primary);\n }\n"])), _ref2 => {
|
|
235
225
|
let {
|
|
236
226
|
reachedLimit
|
|
237
227
|
} = _ref2;
|
|
238
228
|
return reachedLimit && 'cursor:default;';
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
${_ref3 => {
|
|
229
|
+
}, _ref3 => {
|
|
242
230
|
let {
|
|
243
231
|
disabled
|
|
244
232
|
} = _ref3;
|
|
245
233
|
return disabled && 'cursor:not-allowed; opacity: 0.5;';
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
${_ref4 => {
|
|
234
|
+
}, _ref4 => {
|
|
249
235
|
let {
|
|
250
236
|
dragging
|
|
251
237
|
} = _ref4;
|
|
252
238
|
return dragging && 'border-color: var(--color-primary);';
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&:focus {
|
|
256
|
-
border-color: var(--color-primary);
|
|
257
|
-
}
|
|
258
|
-
`;
|
|
259
|
-
const Image = _styledComponents.default.figure`
|
|
260
|
-
position: relative;
|
|
261
|
-
margin: var(--spacing-xs);
|
|
262
|
-
|
|
263
|
-
${_ref5 => {
|
|
239
|
+
});
|
|
240
|
+
const Image = _styledComponents.default.figure(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n margin: var(--spacing-xs);\n\n ", "\n\n > img {\n width: 100%;\n height: 100%;\n border-radius: var(--border-radius);\n }\n"])), _ref5 => {
|
|
264
241
|
let {
|
|
265
242
|
width,
|
|
266
243
|
height,
|
|
267
244
|
fixedSize
|
|
268
245
|
} = _ref5;
|
|
269
246
|
if (fixedSize) {
|
|
270
|
-
return
|
|
271
|
-
width: ${width}px;
|
|
272
|
-
height: ${height}px;
|
|
273
|
-
`;
|
|
247
|
+
return "\n width: ".concat(width, "px;\n height: ").concat(height, "px;\n ");
|
|
274
248
|
}
|
|
275
249
|
if (width < height) {
|
|
276
|
-
return
|
|
277
|
-
width: ${width}px;
|
|
278
|
-
max-width: ${width}px;
|
|
279
|
-
max-height: ${height}px;
|
|
280
|
-
`;
|
|
250
|
+
return "\n width: ".concat(width, "px;\n max-width: ").concat(width, "px;\n max-height: ").concat(height, "px;\n ");
|
|
281
251
|
}
|
|
282
252
|
if (height < width) {
|
|
283
|
-
return
|
|
284
|
-
height: ${height}px;
|
|
285
|
-
max-width: ${width}px;
|
|
286
|
-
max-height: ${height}px;
|
|
287
|
-
`;
|
|
288
|
-
}
|
|
289
|
-
}}
|
|
290
|
-
|
|
291
|
-
> img {
|
|
292
|
-
width: 100%;
|
|
293
|
-
height: 100%;
|
|
294
|
-
border-radius: var(--border-radius);
|
|
253
|
+
return "\n height: ".concat(height, "px;\n max-width: ").concat(width, "px;\n max-height: ").concat(height, "px;\n ");
|
|
295
254
|
}
|
|
296
|
-
|
|
297
|
-
const ButtonGroup = _styledComponents.default.div
|
|
298
|
-
position: absolute;
|
|
299
|
-
right: calc(var(--spacing-xs) * -1);
|
|
300
|
-
top: calc(var(--spacing-xs) * -1);
|
|
301
|
-
`;
|
|
255
|
+
});
|
|
256
|
+
const ButtonGroup = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: calc(var(--spacing-xs) * -1);\n top: calc(var(--spacing-xs) * -1);\n"])));
|
|
302
257
|
const Button = _styledComponents.default.div.attrs(() => ({
|
|
303
258
|
role: 'button'
|
|
304
|
-
}))
|
|
305
|
-
display: inline-block;
|
|
306
|
-
width: 32px;
|
|
307
|
-
height: 32px;
|
|
308
|
-
color: var(--color-white);
|
|
309
|
-
background: var(--color-primary);
|
|
310
|
-
border-radius: var(--border-radius-round);
|
|
311
|
-
cursor: pointer;
|
|
312
|
-
|
|
313
|
-
> svg {
|
|
314
|
-
color: var(--color-white);
|
|
315
|
-
margin: 0 auto;
|
|
316
|
-
position: relative;
|
|
317
|
-
top: 50%;
|
|
318
|
-
transform: translateY(-50%);
|
|
319
|
-
margin: 0 auto;
|
|
320
|
-
display: block;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&:not(:first-child) {
|
|
324
|
-
margin-left: var(--spacing-xs);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
${_ref6 => {
|
|
259
|
+
}))(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n width: 32px;\n height: 32px;\n color: var(--color-white);\n background: var(--color-primary);\n border-radius: var(--border-radius-round);\n cursor: pointer;\n\n > svg {\n color: var(--color-white);\n margin: 0 auto;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n margin: 0 auto;\n display: block;\n }\n\n &:not(:first-child) {\n margin-left: var(--spacing-xs);\n }\n\n ", "\n"])), _ref6 => {
|
|
328
260
|
let {
|
|
329
261
|
danger
|
|
330
262
|
} = _ref6;
|
|
331
263
|
return danger && 'background: var(--color-danger);';
|
|
332
|
-
}
|
|
333
|
-
`;
|
|
264
|
+
});
|
|
334
265
|
var _default = exports.default = ImageDropzone;
|
|
@@ -5,22 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
11
|
const Message = _styledComponents.default.div.attrs(() => ({
|
|
10
12
|
'data-testid': 'message-container'
|
|
11
|
-
}))
|
|
12
|
-
text-align: center;
|
|
13
|
-
|
|
14
|
-
> svg {
|
|
15
|
-
margin-bottom: var(--spacing-s);
|
|
16
|
-
font-size: var(--font-h2);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
${_ref => {
|
|
13
|
+
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n\n > svg {\n margin-bottom: var(--spacing-s);\n font-size: var(--font-h2);\n }\n\n ", ";\n"])), _ref => {
|
|
20
14
|
let {
|
|
21
15
|
dragging
|
|
22
16
|
} = _ref;
|
|
23
17
|
return dragging ? 'opacity: 0.5' : '';
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
18
|
+
});
|
|
26
19
|
var _default = exports.default = Message;
|
package/figure/IconFigure.js
CHANGED
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
11
|
const IconFigure = _styledComponents.default.figure.attrs(_ref => {
|
|
10
12
|
let {
|
|
11
13
|
size
|
|
@@ -13,30 +15,19 @@ const IconFigure = _styledComponents.default.figure.attrs(_ref => {
|
|
|
13
15
|
return {
|
|
14
16
|
size: size || 'medium'
|
|
15
17
|
};
|
|
16
|
-
})
|
|
17
|
-
${_ref2 => {
|
|
18
|
+
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), _ref2 => {
|
|
18
19
|
let {
|
|
19
20
|
size
|
|
20
21
|
} = _ref2;
|
|
21
22
|
switch (size) {
|
|
22
23
|
case 'small':
|
|
23
|
-
return
|
|
24
|
-
width: 16px;
|
|
25
|
-
height: 16px;
|
|
26
|
-
`;
|
|
24
|
+
return "\n width: 16px;\n height: 16px;\n ";
|
|
27
25
|
case 'medium':
|
|
28
|
-
return
|
|
29
|
-
width: 24px;
|
|
30
|
-
height: 24px;
|
|
31
|
-
`;
|
|
26
|
+
return "\n width: 24px;\n height: 24px;\n ";
|
|
32
27
|
case 'large':
|
|
33
|
-
return
|
|
34
|
-
width: 32px;
|
|
35
|
-
height: 32px;
|
|
36
|
-
`;
|
|
28
|
+
return "\n width: 32px;\n height: 32px;\n ";
|
|
37
29
|
default:
|
|
38
30
|
break;
|
|
39
31
|
}
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
32
|
+
});
|
|
42
33
|
var _default = exports.default = IconFigure;
|
package/figure/ImageFigure.js
CHANGED
|
@@ -6,33 +6,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
var _rounded = _interopRequireDefault(require("../styles/mixin/rounded"));
|
|
9
|
+
var _templateObject;
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
12
|
const ImageFigure = _styledComponents.default.figure.attrs(() => ({
|
|
11
13
|
rounded: true
|
|
12
|
-
}))
|
|
13
|
-
width: 160px;
|
|
14
|
-
height: 160px;
|
|
15
|
-
border: 4px dashed var(--border-color);
|
|
16
|
-
padding: var(--spacing-xs);
|
|
17
|
-
margin-left: var(--spacing);
|
|
18
|
-
|
|
19
|
-
${_ref => {
|
|
14
|
+
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 160px;\n height: 160px;\n border: 4px dashed var(--border-color);\n padding: var(--spacing-xs);\n margin-left: var(--spacing);\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
20
15
|
let {
|
|
21
16
|
small
|
|
22
17
|
} = _ref;
|
|
23
|
-
return small &&
|
|
24
|
-
|
|
25
|
-
height: 40px;
|
|
26
|
-
`;
|
|
27
|
-
}}
|
|
28
|
-
|
|
29
|
-
${_rounded.default}
|
|
30
|
-
|
|
31
|
-
${_ref2 => {
|
|
18
|
+
return small && "\n width: 40px;\n height: 40px;\n ";
|
|
19
|
+
}, _rounded.default, _ref2 => {
|
|
32
20
|
let {
|
|
33
21
|
noBorder
|
|
34
22
|
} = _ref2;
|
|
35
23
|
return noBorder && 'border: none;';
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
24
|
+
});
|
|
38
25
|
var _default = exports.default = ImageFigure;
|
package/file/HiddenFileInput.js
CHANGED
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
11
|
const HiddenFileInput = _styledComponents.default.input.attrs(() => ({
|
|
10
12
|
'data-testid': 'hiddenFileInput',
|
|
11
13
|
type: 'file'
|
|
12
|
-
}))
|
|
13
|
-
display: none;
|
|
14
|
-
`;
|
|
14
|
+
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n"])));
|
|
15
15
|
var _default = exports.default = HiddenFileInput;
|
package/form/Checkbox.js
CHANGED
|
@@ -10,9 +10,11 @@ var _Input = _interopRequireDefault(require("./Input"));
|
|
|
10
10
|
var _Label = _interopRequireDefault(require("./Label"));
|
|
11
11
|
var _md = require("react-icons/md");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
18
|
const Checkbox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
17
19
|
let {
|
|
18
20
|
htmlFor,
|
|
@@ -56,111 +58,44 @@ const Checkbox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
56
58
|
})]
|
|
57
59
|
});
|
|
58
60
|
});
|
|
59
|
-
const StyledCheckbox = (0, _styledComponents.default)(_Input.default)
|
|
60
|
-
display: none
|
|
61
|
-
|
|
62
|
-
&:checked + span {
|
|
63
|
-
> div:last-of-type {
|
|
64
|
-
display: block;
|
|
65
|
-
color: var(--color-primary);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
> div:first-of-type {
|
|
69
|
-
display: none;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
const StyledLabel = (0, _styledComponents.default)(_Label.default)`
|
|
74
|
-
display: inline-block;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
vertical-align: middle;
|
|
77
|
-
|
|
78
|
-
${_ref2 => {
|
|
61
|
+
const StyledCheckbox = (0, _styledComponents.default)(_Input.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n\n &:checked + span {\n > div:last-of-type {\n display: block;\n color: var(--color-primary);\n }\n\n > div:first-of-type {\n display: none;\n }\n }\n"])));
|
|
62
|
+
const StyledLabel = (0, _styledComponents.default)(_Label.default)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n cursor: pointer;\n vertical-align: middle;\n\n ", "\n\n > span {\n ", "\n\n display: flex;\n align-items: center;\n\n > div {\n margin-right: var(--spacing-xs);\n width: 24px;\n height: 24px;\n border-radius: ", ";\n }\n\n > div:last-of-type {\n display: none;\n }\n }\n\n ", "\n\n ", "\n"])), _ref2 => {
|
|
79
63
|
let {
|
|
80
64
|
marginRight
|
|
81
65
|
} = _ref2;
|
|
82
|
-
return marginRight && (0, _styledComponents.css)
|
|
83
|
-
|
|
84
|
-
`;
|
|
85
|
-
}}
|
|
86
|
-
|
|
87
|
-
> span {
|
|
88
|
-
${_ref3 => {
|
|
66
|
+
return marginRight && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: var(--spacing-l);\n "])));
|
|
67
|
+
}, _ref3 => {
|
|
89
68
|
let {
|
|
90
69
|
disabled
|
|
91
70
|
} = _ref3;
|
|
92
|
-
return disabled && (0, _styledComponents.css)
|
|
93
|
-
|
|
94
|
-
cursor: not-allowed;
|
|
95
|
-
`;
|
|
96
|
-
}}
|
|
97
|
-
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
|
|
101
|
-
> div {
|
|
102
|
-
margin-right: var(--spacing-xs);
|
|
103
|
-
width: 24px;
|
|
104
|
-
height: 24px;
|
|
105
|
-
border-radius: ${_ref4 => {
|
|
71
|
+
return disabled && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n opacity: 0.5;\n cursor: not-allowed;\n "])));
|
|
72
|
+
}, _ref4 => {
|
|
106
73
|
let {
|
|
107
74
|
variant
|
|
108
75
|
} = _ref4;
|
|
109
76
|
return variant === 'circle' ? '50%' : '4px';
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
> div:last-of-type {
|
|
114
|
-
display: none;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
${_ref5 => {
|
|
77
|
+
}, _ref5 => {
|
|
119
78
|
let {
|
|
120
79
|
fontSizeBig
|
|
121
80
|
} = _ref5;
|
|
122
81
|
return fontSizeBig && 'font-size: var(--font-h3);';
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
${_ref6 => {
|
|
82
|
+
}, _ref6 => {
|
|
126
83
|
let {
|
|
127
84
|
noMargin
|
|
128
85
|
} = _ref6;
|
|
129
86
|
return noMargin && 'margin: 0;';
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const Unchecked = _styledComponents.default.div`
|
|
133
|
-
flex: 0 0 auto;
|
|
134
|
-
border: var(--border-width) solid var(--border-color);
|
|
135
|
-
border-radius: ${_ref7 => {
|
|
87
|
+
});
|
|
88
|
+
const Unchecked = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n border: var(--border-width) solid var(--border-color);\n border-radius: ", ";\n"])), _ref7 => {
|
|
136
89
|
let {
|
|
137
90
|
variant
|
|
138
91
|
} = _ref7;
|
|
139
92
|
return variant === 'circle' ? '50%' : '4px';
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const Checked = _styledComponents.default.div`
|
|
143
|
-
flex: 0 0 auto;
|
|
144
|
-
border: var(--border-width) solid var(--color-primary);
|
|
145
|
-
background: var(--color-primary);
|
|
146
|
-
position: relative;
|
|
147
|
-
border-radius: ${_ref8 => {
|
|
93
|
+
});
|
|
94
|
+
const Checked = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n border: var(--border-width) solid var(--color-primary);\n background: var(--color-primary);\n position: relative;\n border-radius: ", ";\n\n > svg {\n position: absolute;\n color: var(--font-on-primary);\n font-size: var(--font-h3);\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n"])), _ref8 => {
|
|
148
95
|
let {
|
|
149
96
|
variant
|
|
150
97
|
} = _ref8;
|
|
151
98
|
return variant === 'circle' ? '50%' : '4px';
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
> svg {
|
|
155
|
-
position: absolute;
|
|
156
|
-
color: var(--font-on-primary);
|
|
157
|
-
font-size: var(--font-h3);
|
|
158
|
-
top: 50%;
|
|
159
|
-
left: 50%;
|
|
160
|
-
transform: translate(-50%, -50%);
|
|
161
|
-
}
|
|
162
|
-
`;
|
|
163
|
-
const Text = _styledComponents.default.p`
|
|
164
|
-
word-break: break-all;
|
|
165
|
-
`;
|
|
99
|
+
});
|
|
100
|
+
const Text = _styledComponents.default.p(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n word-break: break-all;\n"])));
|
|
166
101
|
var _default = exports.default = Checkbox;
|
package/form/Fieldset.js
CHANGED
|
@@ -5,14 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
border: var(--border-width) solid var(--border-color);
|
|
11
|
-
border-radius: var(--border-radius-s);
|
|
12
|
-
padding: var(--spacing-s);
|
|
13
|
-
|
|
14
|
-
&[disabled] {
|
|
15
|
-
border-color: var(--border-color-transparent);
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const Fieldset = _styledComponents.default.fieldset(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius-s);\n padding: var(--spacing-s);\n\n &[disabled] {\n border-color: var(--border-color-transparent);\n }\n"])));
|
|
18
12
|
var _default = exports.default = Fieldset;
|
package/form/FormItem.js
CHANGED
|
@@ -5,18 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _templateObject;
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
|
|
10
|
-
margin-bottom: var(--spacing)
|
|
11
|
-
|
|
12
|
-
${_ref => {
|
|
10
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
+
const FormItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-bottom: var(--spacing);\n\n ", "\n"])), _ref => {
|
|
13
12
|
let {
|
|
14
13
|
alignCenter
|
|
15
14
|
} = _ref;
|
|
16
|
-
return alignCenter &&
|
|
17
|
-
|
|
18
|
-
align-items: center;
|
|
19
|
-
`;
|
|
20
|
-
}}
|
|
21
|
-
`;
|
|
15
|
+
return alignCenter && "\n display: flex;\n align-items: center;\n ";
|
|
16
|
+
});
|
|
22
17
|
var _default = exports.default = FormItem;
|