@mw-kit/mw-ui 1.7.69 → 1.7.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Form/context.d.ts +10 -0
- package/dist/components/Form/index.d.ts +10 -0
- package/dist/components/Form/types.d.ts +5 -0
- package/dist/components/Input/components/Checkbox/interfaces.d.ts +8 -6
- package/dist/components/Input/components/Checkbox/styles.d.ts +3 -1
- package/dist/components/Input/components/Input/interfaces.d.ts +15 -13
- package/dist/components/Input/components/Input/styles.d.ts +1 -0
- package/dist/components/Input/components/Range/interfaces.d.ts +1 -0
- package/dist/components/Input/components/Range/styles/Label/index.d.ts +3 -2
- package/dist/components/Input/components/Range/styles/ViewModeContainer/index.d.ts +2 -0
- package/dist/components/Input/components/Range/styles/index.d.ts +1 -0
- package/dist/components/Input/components/Select/hooks/interfaces.d.ts +1 -1
- package/dist/components/Input/components/Switch/interfaces.d.ts +6 -3
- package/dist/components/Tabs/interfaces.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +432 -282
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +432 -283
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12207,7 +12207,7 @@ var EllipsisContainer$1 = function EllipsisContainer$1(props) {
|
|
|
12207
12207
|
}));
|
|
12208
12208
|
};
|
|
12209
12209
|
|
|
12210
|
-
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1;
|
|
12210
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1;
|
|
12211
12211
|
var IconContainer = styled.button(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 17px;\n\n background-color: transparent;\n border: none;\n box-shadow: none;\n padding: 0;\n\n ", "\n"])), function (_ref) {
|
|
12212
12212
|
var onClick = _ref.onClick,
|
|
12213
12213
|
disabled = _ref.disabled;
|
|
@@ -12223,11 +12223,11 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
|
|
|
12223
12223
|
return theme.useTypography('p');
|
|
12224
12224
|
}, function (_ref4) {
|
|
12225
12225
|
var theme = _ref4.theme,
|
|
12226
|
-
invalid = _ref4
|
|
12226
|
+
invalid = _ref4.$invalid;
|
|
12227
12227
|
return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
|
|
12228
12228
|
}, function (_ref5) {
|
|
12229
12229
|
var theme = _ref5.theme,
|
|
12230
|
-
invalid = _ref5
|
|
12230
|
+
invalid = _ref5.$invalid;
|
|
12231
12231
|
return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
|
|
12232
12232
|
}, function (_ref6) {
|
|
12233
12233
|
var placeholder = _ref6.placeholder;
|
|
@@ -12242,7 +12242,7 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
|
|
|
12242
12242
|
return css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
|
|
12243
12243
|
}, function (_ref8) {
|
|
12244
12244
|
var theme = _ref8.theme,
|
|
12245
|
-
paddingless = _ref8
|
|
12245
|
+
paddingless = _ref8.$paddingless;
|
|
12246
12246
|
|
|
12247
12247
|
if (paddingless) {
|
|
12248
12248
|
return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n padding: 0;\n "])));
|
|
@@ -12251,17 +12251,17 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
|
|
|
12251
12251
|
return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n ~ ", " {\n padding: ", " ", ";\n }\n "])), theme.spacings.s2, theme.spacings.s3, ChildrenContainer, theme.spacings.s2, theme.spacings.s3);
|
|
12252
12252
|
}, function (_ref9) {
|
|
12253
12253
|
var theme = _ref9.theme,
|
|
12254
|
-
invalid = _ref9
|
|
12255
|
-
borderless = _ref9
|
|
12254
|
+
invalid = _ref9.$invalid,
|
|
12255
|
+
borderless = _ref9.$borderless;
|
|
12256
12256
|
if (borderless) return 'transparent';
|
|
12257
12257
|
return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
|
|
12258
12258
|
}, function (_ref10) {
|
|
12259
12259
|
var theme = _ref10.theme,
|
|
12260
|
-
invalid = _ref10
|
|
12260
|
+
invalid = _ref10.$invalid;
|
|
12261
12261
|
var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
|
|
12262
12262
|
return css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, color);
|
|
12263
12263
|
}, function (_ref11) {
|
|
12264
|
-
var arrows = _ref11
|
|
12264
|
+
var arrows = _ref11.$arrows;
|
|
12265
12265
|
if (arrows) return;
|
|
12266
12266
|
return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
|
|
12267
12267
|
}, function (_ref12) {
|
|
@@ -12275,33 +12275,33 @@ var InputContainer = styled.div(_templateObject12$1 || (_templateObject12$1 = _t
|
|
|
12275
12275
|
var width = _ref13.width;
|
|
12276
12276
|
return width || '100%';
|
|
12277
12277
|
});
|
|
12278
|
-
var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
|
|
12278
|
+
var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
|
|
12279
12279
|
var theme = _ref14.theme;
|
|
12280
12280
|
return theme.useTypography('p');
|
|
12281
12281
|
}, function (_ref15) {
|
|
12282
12282
|
var theme = _ref15.theme;
|
|
12283
12283
|
return theme.colors.greyishBlue;
|
|
12284
12284
|
}, function (_ref16) {
|
|
12285
|
-
var width = _ref16
|
|
12285
|
+
var width = _ref16.$width;
|
|
12286
12286
|
return width || '100%';
|
|
12287
12287
|
}, function (_ref17) {
|
|
12288
|
-
var disabled = _ref17
|
|
12288
|
+
var disabled = _ref17.$disabled;
|
|
12289
12289
|
if (!disabled) return;
|
|
12290
12290
|
return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12291
12291
|
}, InputContainer, IconContainer, function (_ref18) {
|
|
12292
12292
|
var theme = _ref18.theme,
|
|
12293
|
-
paddingless = _ref18
|
|
12293
|
+
paddingless = _ref18.$paddingless;
|
|
12294
12294
|
return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
|
|
12295
12295
|
}, function (_ref19) {
|
|
12296
|
-
var readOnly = _ref19
|
|
12297
|
-
disabled = _ref19
|
|
12298
|
-
loading = _ref19
|
|
12296
|
+
var readOnly = _ref19.$readOnly,
|
|
12297
|
+
disabled = _ref19.$disabled,
|
|
12298
|
+
loading = _ref19.$loading;
|
|
12299
12299
|
if (loading || readOnly || disabled) return;
|
|
12300
12300
|
return css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12301
12301
|
}, function (_ref20) {
|
|
12302
12302
|
var theme = _ref20.theme,
|
|
12303
|
-
icon = _ref20
|
|
12304
|
-
paddingless = _ref20
|
|
12303
|
+
icon = _ref20.$icon,
|
|
12304
|
+
paddingless = _ref20.$paddingless;
|
|
12305
12305
|
if (!icon) return;
|
|
12306
12306
|
var width = icon.width,
|
|
12307
12307
|
position = icon.position;
|
|
@@ -12314,36 +12314,123 @@ var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTe
|
|
|
12314
12314
|
return css(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-left: calc(", " + ", ");\n ~ ", " {\n padding-left: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
|
|
12315
12315
|
});
|
|
12316
12316
|
var LabelText = styled.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
|
|
12317
|
-
var theme = _ref21.theme
|
|
12318
|
-
|
|
12317
|
+
var theme = _ref21.theme,
|
|
12318
|
+
viewMode = _ref21.$viewMode;
|
|
12319
|
+
return theme.spacings[viewMode ? 's3' : 's1'];
|
|
12319
12320
|
}, function (_ref22) {
|
|
12320
|
-
var required = _ref22
|
|
12321
|
-
|
|
12321
|
+
var required = _ref22.$required,
|
|
12322
|
+
viewMode = _ref22.$viewMode;
|
|
12323
|
+
if (!required || viewMode) return;
|
|
12322
12324
|
return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12323
12325
|
});
|
|
12326
|
+
var ViewModeContainer = styled.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref23) {
|
|
12327
|
+
var children = _ref23.children;
|
|
12328
|
+
if (children) return;
|
|
12329
|
+
return css(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n :before {\n content: ' ';\n white-space: pre;\n }\n "])));
|
|
12330
|
+
});
|
|
12331
|
+
|
|
12332
|
+
var defaultValue = {
|
|
12333
|
+
isRequired: function isRequired() {
|
|
12334
|
+
return false;
|
|
12335
|
+
},
|
|
12336
|
+
isInvalid: function isInvalid() {
|
|
12337
|
+
return false;
|
|
12338
|
+
},
|
|
12339
|
+
isViewMode: function isViewMode() {
|
|
12340
|
+
return false;
|
|
12341
|
+
},
|
|
12342
|
+
isDisabled: function isDisabled() {
|
|
12343
|
+
return false;
|
|
12344
|
+
}
|
|
12345
|
+
};
|
|
12346
|
+
var Context = React__default.createContext(_extends({}, defaultValue));
|
|
12347
|
+
|
|
12348
|
+
var useContext = function useContext(name) {
|
|
12349
|
+
var context = React__default.useContext(Context);
|
|
12350
|
+
return _extends({
|
|
12351
|
+
isRequired: function isRequired() {
|
|
12352
|
+
return false;
|
|
12353
|
+
},
|
|
12354
|
+
isInvalid: function isInvalid() {
|
|
12355
|
+
return false;
|
|
12356
|
+
},
|
|
12357
|
+
isViewMode: function isViewMode() {
|
|
12358
|
+
return false;
|
|
12359
|
+
},
|
|
12360
|
+
isDisabled: function isDisabled() {
|
|
12361
|
+
return false;
|
|
12362
|
+
}
|
|
12363
|
+
}, name ? {
|
|
12364
|
+
isRequired: function isRequired() {
|
|
12365
|
+
return context.isRequired(name);
|
|
12366
|
+
},
|
|
12367
|
+
isInvalid: function isInvalid() {
|
|
12368
|
+
return context.isInvalid(name);
|
|
12369
|
+
},
|
|
12370
|
+
isViewMode: function isViewMode() {
|
|
12371
|
+
return context.isViewMode(name);
|
|
12372
|
+
},
|
|
12373
|
+
isDisabled: function isDisabled() {
|
|
12374
|
+
return context.isDisabled(name);
|
|
12375
|
+
}
|
|
12376
|
+
} : {});
|
|
12377
|
+
};
|
|
12378
|
+
|
|
12379
|
+
var Provider = function Provider(props) {
|
|
12380
|
+
return React__default.createElement(Context.Provider, Object.assign({}, props, {
|
|
12381
|
+
value: _extends({}, defaultValue, props.value)
|
|
12382
|
+
}));
|
|
12383
|
+
};
|
|
12384
|
+
|
|
12385
|
+
var Form = Object.assign(React__default.forwardRef(Object.assign(function (props, ref) {
|
|
12386
|
+
var formProps = filterObject(props, ['isRequired', 'isInvalid', 'isViewMode', 'isDisabled']);
|
|
12387
|
+
return React__default.createElement(Provider, {
|
|
12388
|
+
value: _extends({}, props.isRequired ? {
|
|
12389
|
+
isRequired: props.isRequired
|
|
12390
|
+
} : {}, props.isInvalid ? {
|
|
12391
|
+
isInvalid: props.isInvalid
|
|
12392
|
+
} : {}, props.isViewMode ? {
|
|
12393
|
+
isViewMode: props.isViewMode
|
|
12394
|
+
} : {}, props.isDisabled ? {
|
|
12395
|
+
isDisabled: props.isDisabled
|
|
12396
|
+
} : {})
|
|
12397
|
+
}, React__default.createElement("form", Object.assign({
|
|
12398
|
+
ref: ref
|
|
12399
|
+
}, formProps)));
|
|
12400
|
+
}, {
|
|
12401
|
+
displayName: 'Form'
|
|
12402
|
+
})), {
|
|
12403
|
+
useContext: useContext
|
|
12404
|
+
});
|
|
12324
12405
|
|
|
12325
12406
|
var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
12326
12407
|
var _props = _extends({}, props),
|
|
12327
12408
|
label = _props.label,
|
|
12328
12409
|
loading = _props.loading,
|
|
12410
|
+
readOnly = _props.readOnly,
|
|
12411
|
+
arrows = _props.arrows,
|
|
12412
|
+
borderless = _props.borderless,
|
|
12413
|
+
paddingless = _props.paddingless,
|
|
12329
12414
|
clearable = _props.clearable,
|
|
12330
12415
|
onPressEnter = _props.onPressEnter,
|
|
12331
12416
|
width = _props.width;
|
|
12332
12417
|
|
|
12418
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
12419
|
+
isRequired = _Form$useContext.isRequired,
|
|
12420
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
12421
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
12422
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
12423
|
+
|
|
12333
12424
|
var mask = getMask(props.mask);
|
|
12334
12425
|
useEffect(function () {
|
|
12335
12426
|
if (!isString(props.value)) return;
|
|
12336
12427
|
var masked = mask(props.value);
|
|
12337
12428
|
if (masked !== props.value) setValue(masked);
|
|
12338
12429
|
}, [props.value]);
|
|
12339
|
-
var
|
|
12340
|
-
var
|
|
12341
|
-
var
|
|
12342
|
-
var
|
|
12343
|
-
var intReadOnly = props.readOnly ? 1 : 0;
|
|
12344
|
-
var intArrows = props.arrows ? 1 : 0;
|
|
12345
|
-
var intBorderless = props.borderless ? 1 : 0;
|
|
12346
|
-
var intPaddingless = props.paddingless ? 1 : 0;
|
|
12430
|
+
var invalid = isInvalid() || props.invalid;
|
|
12431
|
+
var required = isRequired() || props.required;
|
|
12432
|
+
var disabled = isDisabled() || props.disabled;
|
|
12433
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
12347
12434
|
var position;
|
|
12348
12435
|
var iconWidth;
|
|
12349
12436
|
var iconSubmit;
|
|
@@ -12353,18 +12440,18 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12353
12440
|
if (props.icon) {
|
|
12354
12441
|
icon = _extends({}, props.icon.icon);
|
|
12355
12442
|
position = props.icon.position || 'right';
|
|
12356
|
-
if (
|
|
12443
|
+
if (invalid) icon.color = 'warningRed';
|
|
12357
12444
|
iconWidth = icon.width;
|
|
12358
12445
|
iconSubmit = props.icon.submit;
|
|
12359
12446
|
iconOnClick = props.icon.onClick;
|
|
12360
12447
|
}
|
|
12361
12448
|
|
|
12362
|
-
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12363
|
-
invalid:
|
|
12449
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'viewMode', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12450
|
+
$invalid: invalid,
|
|
12364
12451
|
type: 'text',
|
|
12365
|
-
arrows:
|
|
12366
|
-
borderless:
|
|
12367
|
-
paddingless:
|
|
12452
|
+
$arrows: arrows,
|
|
12453
|
+
$borderless: borderless,
|
|
12454
|
+
$paddingless: paddingless
|
|
12368
12455
|
});
|
|
12369
12456
|
|
|
12370
12457
|
var onChange = inputProps.onChange || function () {};
|
|
@@ -12455,16 +12542,19 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12455
12542
|
if (props.htmlDisabled) inputProps.disabled = true;
|
|
12456
12543
|
if (props.htmlReadOnly) inputProps.readOnly = true;
|
|
12457
12544
|
return React__default.createElement(Label, {
|
|
12458
|
-
readOnly:
|
|
12459
|
-
disabled:
|
|
12460
|
-
loading:
|
|
12461
|
-
invalid:
|
|
12462
|
-
paddingless:
|
|
12463
|
-
icon: iconProps,
|
|
12464
|
-
width: width
|
|
12545
|
+
"$readOnly": readOnly || viewMode,
|
|
12546
|
+
"$disabled": disabled,
|
|
12547
|
+
"$loading": loading,
|
|
12548
|
+
"$invalid": invalid,
|
|
12549
|
+
"$paddingless": paddingless,
|
|
12550
|
+
"$icon": iconProps,
|
|
12551
|
+
"$width": width
|
|
12465
12552
|
}, label && React__default.createElement(LabelText, {
|
|
12466
|
-
required:
|
|
12467
|
-
|
|
12553
|
+
"$required": required,
|
|
12554
|
+
"$viewMode": viewMode
|
|
12555
|
+
}, label), viewMode ? React__default.createElement(ViewModeContainer, {
|
|
12556
|
+
children: inputProps.value || props.children
|
|
12557
|
+
}) : React__default.createElement(InputContainer, {
|
|
12468
12558
|
width: props.inputWidth
|
|
12469
12559
|
}, React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12470
12560
|
ref: ref
|
|
@@ -12484,17 +12574,18 @@ var Checkmark = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemp
|
|
|
12484
12574
|
var theme = _ref.theme;
|
|
12485
12575
|
return theme.colors.white;
|
|
12486
12576
|
}, function (_ref2) {
|
|
12487
|
-
var theme = _ref2.theme
|
|
12488
|
-
|
|
12577
|
+
var theme = _ref2.theme,
|
|
12578
|
+
viewMode = _ref2.$viewMode;
|
|
12579
|
+
return viewMode ? 'transparent' : theme.colors.blue;
|
|
12489
12580
|
}, function (_ref3) {
|
|
12490
12581
|
var theme = _ref3.theme;
|
|
12491
12582
|
return theme.colors.blue;
|
|
12492
12583
|
});
|
|
12493
|
-
var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n
|
|
12584
|
+
var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (_ref4) {
|
|
12494
12585
|
var theme = _ref4.theme;
|
|
12495
12586
|
return theme.useTypography('p');
|
|
12496
12587
|
}, function (_ref5) {
|
|
12497
|
-
var padding = _ref5
|
|
12588
|
+
var padding = _ref5.$padding,
|
|
12498
12589
|
theme = _ref5.theme;
|
|
12499
12590
|
if (!padding) return;
|
|
12500
12591
|
var _padding = {
|
|
@@ -12538,17 +12629,19 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
|
|
|
12538
12629
|
|
|
12539
12630
|
return css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n "])), _padding.top, _padding.left, _padding.right, _padding.bottom);
|
|
12540
12631
|
}, function (_ref6) {
|
|
12541
|
-
var disabled = _ref6
|
|
12632
|
+
var disabled = _ref6.$disabled,
|
|
12633
|
+
readOnly = _ref6.$readOnly;
|
|
12542
12634
|
|
|
12543
|
-
if (
|
|
12544
|
-
return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n
|
|
12635
|
+
if (disabled) {
|
|
12636
|
+
return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12545
12637
|
}
|
|
12546
12638
|
|
|
12547
|
-
|
|
12639
|
+
if (readOnly) return;
|
|
12640
|
+
return css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12548
12641
|
}, function (_ref7) {
|
|
12549
12642
|
var theme = _ref7.theme,
|
|
12550
|
-
bordered = _ref7
|
|
12551
|
-
invalid = _ref7
|
|
12643
|
+
bordered = _ref7.$bordered,
|
|
12644
|
+
invalid = _ref7.$invalid;
|
|
12552
12645
|
if (!bordered) return;
|
|
12553
12646
|
return css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n "])), theme.spacings.s2, theme.spacings.s3, theme.colors[invalid ? 'warningRed' : 'lightGrey']);
|
|
12554
12647
|
}, size, size, function (_ref8) {
|
|
@@ -12558,32 +12651,38 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
|
|
|
12558
12651
|
var theme = _ref9.theme;
|
|
12559
12652
|
return theme.colors.iceWhite;
|
|
12560
12653
|
}, Checkmark, function (_ref10) {
|
|
12561
|
-
var theme = _ref10.theme
|
|
12562
|
-
|
|
12563
|
-
}, function (_ref11) {
|
|
12564
|
-
var theme = _ref11.theme,
|
|
12565
|
-
invalid = _ref11.invalid;
|
|
12654
|
+
var theme = _ref10.theme,
|
|
12655
|
+
invalid = _ref10.$invalid;
|
|
12566
12656
|
if (!invalid) return;
|
|
12567
12657
|
return css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", ",\n > input:checked ~ ", ", \n > input:checked ~ ", ":after {\n border-color: ", ";\n }\n "])), Checkmark, Checkmark, Checkmark, theme.colors.warningRed);
|
|
12568
|
-
}, function (
|
|
12569
|
-
var width =
|
|
12658
|
+
}, function (_ref11) {
|
|
12659
|
+
var width = _ref11.$width;
|
|
12570
12660
|
return width && css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
12571
12661
|
});
|
|
12572
|
-
var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (
|
|
12573
|
-
var theme =
|
|
12662
|
+
var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref12) {
|
|
12663
|
+
var theme = _ref12.theme;
|
|
12574
12664
|
return theme.useTypography('p');
|
|
12575
|
-
}, function (
|
|
12576
|
-
var required =
|
|
12577
|
-
|
|
12665
|
+
}, function (_ref13) {
|
|
12666
|
+
var required = _ref13.required,
|
|
12667
|
+
viewMode = _ref13.viewMode;
|
|
12668
|
+
if (!required || viewMode) return;
|
|
12578
12669
|
return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12579
12670
|
});
|
|
12580
12671
|
|
|
12581
12672
|
var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
12582
|
-
var
|
|
12583
|
-
required = props.required,
|
|
12584
|
-
invalid = props.invalid,
|
|
12585
|
-
padding = props.padding,
|
|
12673
|
+
var padding = props.padding,
|
|
12586
12674
|
bordered = props.bordered;
|
|
12675
|
+
|
|
12676
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
12677
|
+
isRequired = _Form$useContext.isRequired,
|
|
12678
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
12679
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
12680
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
12681
|
+
|
|
12682
|
+
var invalid = isInvalid() || props.invalid;
|
|
12683
|
+
var required = isRequired() || props.required;
|
|
12684
|
+
var disabled = isDisabled() || props.disabled;
|
|
12685
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
12587
12686
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'padding', 'bordered']);
|
|
12588
12687
|
|
|
12589
12688
|
var _ref = function () {
|
|
@@ -12599,18 +12698,23 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12599
12698
|
children = _ref[1];
|
|
12600
12699
|
|
|
12601
12700
|
return React__default.createElement(Label$1, {
|
|
12602
|
-
disabled: disabled
|
|
12603
|
-
required: required
|
|
12604
|
-
invalid: invalid
|
|
12605
|
-
bordered:
|
|
12606
|
-
padding: padding,
|
|
12607
|
-
|
|
12701
|
+
"$disabled": disabled,
|
|
12702
|
+
"$required": required,
|
|
12703
|
+
"$invalid": invalid,
|
|
12704
|
+
"$bordered": !viewMode && bordered,
|
|
12705
|
+
"$padding": padding,
|
|
12706
|
+
"$readOnly": props.readOnly || viewMode,
|
|
12707
|
+
"$width": props.width
|
|
12608
12708
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
12609
12709
|
type: 'checkbox',
|
|
12610
|
-
ref: ref
|
|
12611
|
-
|
|
12710
|
+
ref: ref,
|
|
12711
|
+
disabled: htmlProps.disabled || viewMode
|
|
12712
|
+
})), React__default.createElement(Checkmark, {
|
|
12713
|
+
"$viewMode": viewMode
|
|
12714
|
+
}), React__default.createElement(LabelComponent, Object.assign({}, {
|
|
12612
12715
|
disabled: disabled,
|
|
12613
12716
|
required: required,
|
|
12717
|
+
viewMode: viewMode,
|
|
12614
12718
|
invalid: invalid,
|
|
12615
12719
|
bordered: bordered,
|
|
12616
12720
|
padding: padding,
|
|
@@ -14460,9 +14564,9 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14460
14564
|
});
|
|
14461
14565
|
Date$1.displayName = 'Date';
|
|
14462
14566
|
|
|
14463
|
-
var Provider = React__default.createContext({});
|
|
14464
|
-
var useContext = function useContext() {
|
|
14465
|
-
return React__default.useContext(Provider);
|
|
14567
|
+
var Provider$1 = React__default.createContext({});
|
|
14568
|
+
var useContext$1 = function useContext() {
|
|
14569
|
+
return React__default.useContext(Provider$1);
|
|
14466
14570
|
};
|
|
14467
14571
|
|
|
14468
14572
|
var _templateObject$l, _templateObject2$f;
|
|
@@ -14472,7 +14576,7 @@ var HeaderContainer = styled.div(_templateObject$l || (_templateObject$l = _tagg
|
|
|
14472
14576
|
});
|
|
14473
14577
|
|
|
14474
14578
|
var Header$1 = function Header() {
|
|
14475
|
-
var context = useContext();
|
|
14579
|
+
var context = useContext$1();
|
|
14476
14580
|
|
|
14477
14581
|
if (!context.props.search) {
|
|
14478
14582
|
return React__default.createElement(React__default.Fragment, null);
|
|
@@ -14585,7 +14689,7 @@ var useSelect = function useSelect(props) {
|
|
|
14585
14689
|
maxHeight: props.maxHeight || '180px'
|
|
14586
14690
|
},
|
|
14587
14691
|
getContext: function getContext(base, children) {
|
|
14588
|
-
return React__default.createElement(Provider.Provider, {
|
|
14692
|
+
return React__default.createElement(Provider$1.Provider, {
|
|
14589
14693
|
value: _extends({}, base, {
|
|
14590
14694
|
props: props,
|
|
14591
14695
|
options: options
|
|
@@ -14600,13 +14704,13 @@ var useSelect = function useSelect(props) {
|
|
|
14600
14704
|
return parsed;
|
|
14601
14705
|
};
|
|
14602
14706
|
|
|
14603
|
-
var Provider$
|
|
14604
|
-
var useContext$
|
|
14605
|
-
return React__default.useContext(Provider$
|
|
14707
|
+
var Provider$2 = React__default.createContext({});
|
|
14708
|
+
var useContext$2 = function useContext() {
|
|
14709
|
+
return React__default.useContext(Provider$2);
|
|
14606
14710
|
};
|
|
14607
14711
|
|
|
14608
14712
|
var Footer$1 = function Footer() {
|
|
14609
|
-
var context = useContext$
|
|
14713
|
+
var context = useContext$2();
|
|
14610
14714
|
var _context$props = context.props,
|
|
14611
14715
|
value = _context$props.value,
|
|
14612
14716
|
setValue = _context$props.setValue,
|
|
@@ -14668,7 +14772,7 @@ var SelectAllContainer = styled.div(_templateObject3$e || (_templateObject3$e =
|
|
|
14668
14772
|
});
|
|
14669
14773
|
|
|
14670
14774
|
var Header$2 = function Header() {
|
|
14671
|
-
var context = useContext$
|
|
14775
|
+
var context = useContext$2();
|
|
14672
14776
|
|
|
14673
14777
|
if (!context.props.search) {
|
|
14674
14778
|
return React__default.createElement(React__default.Fragment, null);
|
|
@@ -14717,7 +14821,7 @@ var Header$2 = function Header() {
|
|
|
14717
14821
|
};
|
|
14718
14822
|
|
|
14719
14823
|
var Label$2 = function Label(props) {
|
|
14720
|
-
var context = useContext$
|
|
14824
|
+
var context = useContext$2();
|
|
14721
14825
|
var _context$checked = context.checked,
|
|
14722
14826
|
checked = _context$checked[0],
|
|
14723
14827
|
setChecked = _context$checked[1];
|
|
@@ -14816,7 +14920,7 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
14816
14920
|
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
|
|
14817
14921
|
},
|
|
14818
14922
|
getContext: function getContext(base, children) {
|
|
14819
|
-
return React__default.createElement(Provider$
|
|
14923
|
+
return React__default.createElement(Provider$2.Provider, {
|
|
14820
14924
|
value: _extends({}, base, {
|
|
14821
14925
|
props: props,
|
|
14822
14926
|
options: options,
|
|
@@ -15574,86 +15678,107 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
15574
15678
|
});
|
|
15575
15679
|
DatePicker.displayName = 'DatePicker';
|
|
15576
15680
|
|
|
15577
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$9;
|
|
15578
|
-
var LabelContainer$3 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n"])), function (_ref) {
|
|
15681
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$9, _templateObject8$8;
|
|
15682
|
+
var LabelContainer$3 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
15579
15683
|
var theme = _ref.theme;
|
|
15580
15684
|
return theme.useTypography('p');
|
|
15581
15685
|
}, function (_ref2) {
|
|
15582
|
-
var required = _ref2
|
|
15583
|
-
|
|
15686
|
+
var required = _ref2.$required,
|
|
15687
|
+
viewMode = _ref2.$viewMode;
|
|
15688
|
+
if (!required || viewMode) return;
|
|
15584
15689
|
return css(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n :after {\n content: '*';\n }\n "])));
|
|
15690
|
+
}, function (_ref3) {
|
|
15691
|
+
var keepSpace = _ref3.$keepSpace,
|
|
15692
|
+
children = _ref3.children;
|
|
15693
|
+
if (!keepSpace || children) return;
|
|
15694
|
+
return css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n :before {\n content: '';\n white-space: pre;\n }\n "])));
|
|
15585
15695
|
});
|
|
15586
|
-
var Label$4 = styled.label(
|
|
15587
|
-
var theme =
|
|
15696
|
+
var Label$4 = styled.label(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n position: relative;\n align-items: center;\n\n ", "\n\n ", "\n\n > input {\n position: absolute;\n height: 0%;\n width: 0%;\n opacity: 0;\n }\n\n > span {\n position: relative;\n width: 50px;\n height: calc(", " + 1px);\n background-color: ", ";\n border-radius: 20px;\n transition-property: background-color;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n box-sizing: content-box;\n :before {\n content: '';\n transition-property: left;\n transition-duration: 0.4s;\n transition-timing-function: ease-in-out;\n position: absolute;\n border-width: 1px;\n border-style: solid;\n border-radius: 100%;\n left: 0;\n box-shadow: 0px 1px 3px ", ";\n width: calc(", " - 1px);\n height: calc(", " - 1px);\n background-color: ", ";\n }\n }\n\n > input:checked + span {\n :before {\n left: calc(100% - ", " - 1px);\n }\n }\n"])), function (_ref4) {
|
|
15697
|
+
var theme = _ref4.theme;
|
|
15588
15698
|
return theme.spacings.s1;
|
|
15589
|
-
}, function (
|
|
15590
|
-
var disabled =
|
|
15699
|
+
}, function (_ref5) {
|
|
15700
|
+
var disabled = _ref5.$disabled;
|
|
15591
15701
|
|
|
15592
15702
|
if (!disabled) {
|
|
15593
|
-
return css(
|
|
15703
|
+
return css(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
15594
15704
|
}
|
|
15595
15705
|
|
|
15596
|
-
return css(
|
|
15597
|
-
}, function (
|
|
15598
|
-
var invalid =
|
|
15706
|
+
return css(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15707
|
+
}, function (_ref6) {
|
|
15708
|
+
var invalid = _ref6.$invalid;
|
|
15599
15709
|
|
|
15600
15710
|
if (!invalid) {
|
|
15601
|
-
return css(
|
|
15602
|
-
var theme = _ref6.theme;
|
|
15603
|
-
return theme.colors.lightGrey;
|
|
15604
|
-
}, function (_ref7) {
|
|
15711
|
+
return css(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n > span:before {\n border-color: ", ";\n }\n > input:checked + span {\n background-color: ", ";\n }\n "])), function (_ref7) {
|
|
15605
15712
|
var theme = _ref7.theme;
|
|
15713
|
+
return theme.colors.lightGrey;
|
|
15714
|
+
}, function (_ref8) {
|
|
15715
|
+
var theme = _ref8.theme;
|
|
15606
15716
|
return theme.colors.blue;
|
|
15607
15717
|
});
|
|
15608
15718
|
}
|
|
15609
15719
|
|
|
15610
|
-
return css(
|
|
15611
|
-
var theme = _ref8.theme;
|
|
15612
|
-
return theme.colors.warningRed;
|
|
15613
|
-
}, function (_ref9) {
|
|
15720
|
+
return css(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n > span:before {\n border-color: ", ";\n }\n > input:checked + span {\n background-color: ", ";\n }\n "])), function (_ref9) {
|
|
15614
15721
|
var theme = _ref9.theme;
|
|
15615
15722
|
return theme.colors.warningRed;
|
|
15723
|
+
}, function (_ref10) {
|
|
15724
|
+
var theme = _ref10.theme;
|
|
15725
|
+
return theme.colors.warningRed;
|
|
15616
15726
|
});
|
|
15617
|
-
}, function (_ref10) {
|
|
15618
|
-
var theme = _ref10.theme;
|
|
15619
|
-
return theme.spacings.s4;
|
|
15620
15727
|
}, function (_ref11) {
|
|
15621
15728
|
var theme = _ref11.theme;
|
|
15622
|
-
return theme.
|
|
15729
|
+
return theme.spacings.s4;
|
|
15623
15730
|
}, function (_ref12) {
|
|
15624
15731
|
var theme = _ref12.theme;
|
|
15625
|
-
return theme.
|
|
15732
|
+
return theme.colors.warningGray;
|
|
15626
15733
|
}, function (_ref13) {
|
|
15627
15734
|
var theme = _ref13.theme;
|
|
15628
|
-
return theme.
|
|
15735
|
+
return theme.getColor('black', 10);
|
|
15629
15736
|
}, function (_ref14) {
|
|
15630
15737
|
var theme = _ref14.theme;
|
|
15631
15738
|
return theme.spacings.s4;
|
|
15632
15739
|
}, function (_ref15) {
|
|
15633
15740
|
var theme = _ref15.theme;
|
|
15634
|
-
return theme.
|
|
15741
|
+
return theme.spacings.s4;
|
|
15635
15742
|
}, function (_ref16) {
|
|
15636
15743
|
var theme = _ref16.theme;
|
|
15744
|
+
return theme.colors.white;
|
|
15745
|
+
}, function (_ref17) {
|
|
15746
|
+
var theme = _ref17.theme;
|
|
15637
15747
|
return theme.spacings.s4;
|
|
15638
15748
|
});
|
|
15639
15749
|
|
|
15640
15750
|
var Switch = function Switch(props) {
|
|
15641
|
-
var
|
|
15642
|
-
|
|
15643
|
-
|
|
15751
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
15752
|
+
isRequired = _Form$useContext.isRequired,
|
|
15753
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
15754
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
15755
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
15756
|
+
|
|
15757
|
+
var invalid = isInvalid() || props.invalid;
|
|
15758
|
+
var required = isRequired() || props.required;
|
|
15759
|
+
var disabled = isDisabled() || props.disabled;
|
|
15760
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
15644
15761
|
var label = isObject(props.label) ? props.label : {
|
|
15645
15762
|
label: props.label
|
|
15646
15763
|
};
|
|
15647
|
-
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
|
|
15764
|
+
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps', 'viewMode']);
|
|
15648
15765
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
15649
15766
|
return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
|
|
15650
|
-
disabled: disabled
|
|
15651
|
-
invalid: invalid
|
|
15767
|
+
"$disabled": disabled,
|
|
15768
|
+
"$invalid": invalid
|
|
15652
15769
|
}), label.label && React__default.createElement(LabelContainer$3, {
|
|
15653
|
-
required: required
|
|
15654
|
-
|
|
15770
|
+
"$required": required,
|
|
15771
|
+
"$viewMode": viewMode
|
|
15772
|
+
}, label.label), viewMode ? React__default.createElement(LabelContainer$3, {
|
|
15773
|
+
"$keepSpace": true,
|
|
15774
|
+
children: label[props.checked ? 'after' : 'before']
|
|
15775
|
+
}) : React__default.createElement(React__default.Fragment, null, label.before && React__default.createElement(LabelContainer$3, {
|
|
15776
|
+
children: label.before
|
|
15777
|
+
}), React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
15655
15778
|
type: 'checkbox'
|
|
15656
|
-
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3,
|
|
15779
|
+
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, {
|
|
15780
|
+
children: label.after
|
|
15781
|
+
})));
|
|
15657
15782
|
};
|
|
15658
15783
|
|
|
15659
15784
|
var _templateObject$t, _templateObject2$n;
|
|
@@ -15727,20 +15852,27 @@ var NavBar = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplat
|
|
|
15727
15852
|
return theme.colors.blue;
|
|
15728
15853
|
});
|
|
15729
15854
|
|
|
15730
|
-
var _templateObject$y, _templateObject2$q, _templateObject3$l;
|
|
15731
|
-
var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height:
|
|
15855
|
+
var _templateObject$y, _templateObject2$q, _templateObject3$l, _templateObject4$d, _templateObject5$b;
|
|
15856
|
+
var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n\n :not(:hover) ", " {\n height: 0;\n }\n"])), function (_ref) {
|
|
15732
15857
|
var theme = _ref.theme;
|
|
15733
15858
|
return theme.useTypography('p');
|
|
15734
15859
|
}, function (_ref2) {
|
|
15735
|
-
var width = _ref2.width
|
|
15736
|
-
|
|
15860
|
+
var width = _ref2.width,
|
|
15861
|
+
viewMode = _ref2.$viewMode;
|
|
15862
|
+
|
|
15863
|
+
if (width) {
|
|
15864
|
+
return css(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
15865
|
+
}
|
|
15866
|
+
|
|
15867
|
+
return !viewMode && css(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n "])));
|
|
15737
15868
|
}, function (_ref3) {
|
|
15738
|
-
var disabled = _ref3
|
|
15869
|
+
var disabled = _ref3.$disabled;
|
|
15739
15870
|
if (!disabled) return;
|
|
15740
|
-
return css(
|
|
15871
|
+
return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
15741
15872
|
}, LabelContainer$4, function (_ref4) {
|
|
15742
|
-
var required = _ref4
|
|
15743
|
-
|
|
15873
|
+
var required = _ref4.$required,
|
|
15874
|
+
viewMode = _ref4.$viewMode;
|
|
15875
|
+
return required && !viewMode && css(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
15744
15876
|
}, NavBar);
|
|
15745
15877
|
|
|
15746
15878
|
var _templateObject$z, _templateObject2$r;
|
|
@@ -15762,15 +15894,18 @@ var LabelsContainer = styled.div(_templateObject$B || (_templateObject$B = _tagg
|
|
|
15762
15894
|
var position = _ref.position;
|
|
15763
15895
|
|
|
15764
15896
|
if (position === 'bottom') {
|
|
15765
|
-
return css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% +
|
|
15897
|
+
return css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 9px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
|
|
15766
15898
|
}
|
|
15767
15899
|
|
|
15768
|
-
return css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% +
|
|
15900
|
+
return css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
|
|
15769
15901
|
});
|
|
15770
15902
|
|
|
15771
15903
|
var _templateObject$C;
|
|
15772
15904
|
var MarkersContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
|
|
15773
15905
|
|
|
15906
|
+
var _templateObject$D;
|
|
15907
|
+
var ViewModeContainer$1 = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
|
|
15908
|
+
|
|
15774
15909
|
var getMarkers = function getMarkers(props) {
|
|
15775
15910
|
if (props.markers && 'markers' in props.markers) {
|
|
15776
15911
|
var _strict = props.markers.strict;
|
|
@@ -15869,12 +16004,20 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15869
16004
|
var label = props.label,
|
|
15870
16005
|
minLabel = props.minLabel,
|
|
15871
16006
|
maxLabel = props.maxLabel,
|
|
15872
|
-
invalid = props.invalid,
|
|
15873
|
-
disabled = props.disabled,
|
|
15874
|
-
required = props.required,
|
|
15875
16007
|
width = props.width,
|
|
15876
16008
|
setValue = props.setValue;
|
|
15877
16009
|
|
|
16010
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
16011
|
+
isRequired = _Form$useContext.isRequired,
|
|
16012
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
16013
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
16014
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
16015
|
+
|
|
16016
|
+
var invalid = isInvalid() || props.invalid;
|
|
16017
|
+
var required = isRequired() || props.required;
|
|
16018
|
+
var disabled = isDisabled() || props.disabled;
|
|
16019
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
16020
|
+
|
|
15878
16021
|
var _getMarkers = getMarkers(props),
|
|
15879
16022
|
min = _getMarkers.min,
|
|
15880
16023
|
max = _getMarkers.max,
|
|
@@ -15965,12 +16108,15 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15965
16108
|
});
|
|
15966
16109
|
var bulletSize = strict === true ? 22 : 14;
|
|
15967
16110
|
return React__default.createElement(Label$5, {
|
|
15968
|
-
required: required
|
|
15969
|
-
disabled: disabled
|
|
16111
|
+
"$required": required,
|
|
16112
|
+
"$disabled": disabled,
|
|
16113
|
+
"$viewMode": viewMode,
|
|
15970
16114
|
width: width
|
|
15971
16115
|
}, label && React__default.createElement("div", {
|
|
15972
16116
|
children: label
|
|
15973
|
-
}), React__default.createElement(
|
|
16117
|
+
}), viewMode ? React__default.createElement(ViewModeContainer$1, {
|
|
16118
|
+
children: currentValue
|
|
16119
|
+
}) : React__default.createElement(LabelsContainer, {
|
|
15974
16120
|
position: position
|
|
15975
16121
|
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15976
16122
|
invalid: invalid ? 1 : 0
|
|
@@ -16024,8 +16170,8 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16024
16170
|
});
|
|
16025
16171
|
Range.displayName = 'input';
|
|
16026
16172
|
|
|
16027
|
-
var _templateObject$
|
|
16028
|
-
var LabelContainer$5 = styled.div(_templateObject$
|
|
16173
|
+
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$e, _templateObject5$c, _templateObject6$a, _templateObject7$a;
|
|
16174
|
+
var LabelContainer$5 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
16029
16175
|
var theme = _ref.theme;
|
|
16030
16176
|
return theme.useTypography('p');
|
|
16031
16177
|
});
|
|
@@ -16039,11 +16185,11 @@ var Label$6 = styled.label(_templateObject2$t || (_templateObject2$t = _taggedTe
|
|
|
16039
16185
|
return css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
16040
16186
|
}
|
|
16041
16187
|
|
|
16042
|
-
return css(_templateObject4$
|
|
16188
|
+
return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16043
16189
|
}, function (_ref4) {
|
|
16044
16190
|
var required = _ref4.required;
|
|
16045
16191
|
if (!required) return;
|
|
16046
|
-
return css(_templateObject5$
|
|
16192
|
+
return css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n > ", " {\n :after {\n content: ' *';\n }\n }\n "])), LabelContainer$5);
|
|
16047
16193
|
}, function (_ref5) {
|
|
16048
16194
|
var invalid = _ref5.invalid;
|
|
16049
16195
|
|
|
@@ -16267,8 +16413,8 @@ var parse = function parse(value) {
|
|
|
16267
16413
|
});
|
|
16268
16414
|
};
|
|
16269
16415
|
|
|
16270
|
-
var _templateObject$
|
|
16271
|
-
var RelativeContainer$5 = styled.div(_templateObject$
|
|
16416
|
+
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$f, _templateObject5$d, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
|
|
16417
|
+
var RelativeContainer$5 = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
|
|
16272
16418
|
var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
|
|
16273
16419
|
var theme = _ref.theme;
|
|
16274
16420
|
return theme.useTypography('p');
|
|
@@ -16282,9 +16428,9 @@ var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _t
|
|
|
16282
16428
|
}, function (_ref4) {
|
|
16283
16429
|
var onClick = _ref4.onClick;
|
|
16284
16430
|
if (!onClick) return;
|
|
16285
|
-
return css(_templateObject4$
|
|
16431
|
+
return css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16286
16432
|
});
|
|
16287
|
-
var Container$6 = styled.div(_templateObject5$
|
|
16433
|
+
var Container$6 = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n white-space: nowrap;\n gap: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n\n width: 100%;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref5) {
|
|
16288
16434
|
var theme = _ref5.theme;
|
|
16289
16435
|
return theme.spacings.s1;
|
|
16290
16436
|
}, function (_ref6) {
|
|
@@ -16310,7 +16456,7 @@ var Container$6 = styled.div(_templateObject5$c || (_templateObject5$c = _tagged
|
|
|
16310
16456
|
}, function (_ref10) {
|
|
16311
16457
|
var disabled = _ref10.disabled;
|
|
16312
16458
|
if (!disabled) return;
|
|
16313
|
-
return css(_templateObject8$
|
|
16459
|
+
return css(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16314
16460
|
});
|
|
16315
16461
|
var Button$4 = styled.button(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n background-color: transparent;\n border: none;\n padding: 0;\n box-shadow: none;\n\n ", ";\n"])), function (_ref11) {
|
|
16316
16462
|
var onClick = _ref11.onClick;
|
|
@@ -16555,8 +16701,8 @@ var DatePicker$1 = Object.assign(Component$1, {
|
|
|
16555
16701
|
useDefaultDateIntervalState: useDefaultDateIntervalState
|
|
16556
16702
|
});
|
|
16557
16703
|
|
|
16558
|
-
var _templateObject$
|
|
16559
|
-
var Input$3 = styled.input(_templateObject$
|
|
16704
|
+
var _templateObject$G;
|
|
16705
|
+
var Input$3 = styled.input(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n ", ";\n opacity: 1;\n }\n\n display: block;\n box-sizing: border-box;\n flex: 1;\n min-width: ", ";\n\n padding: calc(", " / 2) 0;\n\n box-shadow: none;\n outline: none;\n border: 1px solid transparent;\n"])), function (_ref) {
|
|
16560
16706
|
var theme = _ref.theme;
|
|
16561
16707
|
return theme.useTypography('p');
|
|
16562
16708
|
}, function (_ref2) {
|
|
@@ -16619,8 +16765,8 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
16619
16765
|
});
|
|
16620
16766
|
Input$4.displayName = 'Input';
|
|
16621
16767
|
|
|
16622
|
-
var _templateObject$
|
|
16623
|
-
var Label$7 = styled.div(_templateObject$
|
|
16768
|
+
var _templateObject$H, _templateObject2$v;
|
|
16769
|
+
var Label$7 = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
16624
16770
|
var theme = _ref.theme;
|
|
16625
16771
|
return theme.spacings.s1;
|
|
16626
16772
|
}, function (_ref2) {
|
|
@@ -16633,8 +16779,8 @@ var Label$8 = function Label(props) {
|
|
|
16633
16779
|
return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
|
|
16634
16780
|
};
|
|
16635
16781
|
|
|
16636
|
-
var _templateObject$
|
|
16637
|
-
var Tag = styled.div(_templateObject$
|
|
16782
|
+
var _templateObject$I;
|
|
16783
|
+
var Tag = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n\n background-color: ", ";\n color: ", ";\n padding: calc(", " / 2);\n\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n display: flex;\n align-items: center;\n gap: ", ";\n\n > div:last-child {\n cursor: pointer;\n }\n"])), function (_ref) {
|
|
16638
16784
|
var theme = _ref.theme;
|
|
16639
16785
|
return theme.useTypography('p');
|
|
16640
16786
|
}, function (_ref2) {
|
|
@@ -16667,8 +16813,8 @@ var Tag$1 = function Tag$1(props) {
|
|
|
16667
16813
|
})));
|
|
16668
16814
|
};
|
|
16669
16815
|
|
|
16670
|
-
var _templateObject$
|
|
16671
|
-
var Label$9 = styled.label(_templateObject$
|
|
16816
|
+
var _templateObject$J, _templateObject2$w, _templateObject3$p;
|
|
16817
|
+
var Label$9 = styled.label(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
|
|
16672
16818
|
var theme = _ref.theme;
|
|
16673
16819
|
return theme.useTypography('p');
|
|
16674
16820
|
}, function (_ref2) {
|
|
@@ -16762,8 +16908,8 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
16762
16908
|
});
|
|
16763
16909
|
Tags.displayName = 'Tags';
|
|
16764
16910
|
|
|
16765
|
-
var _templateObject$
|
|
16766
|
-
var RelativeContainer$6 = styled.div(_templateObject$
|
|
16911
|
+
var _templateObject$K;
|
|
16912
|
+
var RelativeContainer$6 = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
16767
16913
|
|
|
16768
16914
|
var isLeapYear$1 = function isLeapYear(year) {
|
|
16769
16915
|
if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
|
|
@@ -17164,8 +17310,8 @@ var Input$5 = Object.assign(Component$2, {
|
|
|
17164
17310
|
getPhoneDetails: Phone.getPhoneDetails
|
|
17165
17311
|
});
|
|
17166
17312
|
|
|
17167
|
-
var _templateObject$
|
|
17168
|
-
var Container$7 = styled(AbsoluteContainer)(_templateObject$
|
|
17313
|
+
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$g;
|
|
17314
|
+
var Container$7 = styled(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
|
|
17169
17315
|
var theme = _ref.theme;
|
|
17170
17316
|
return theme.colors.white;
|
|
17171
17317
|
}, function (_ref2) {
|
|
@@ -17188,7 +17334,7 @@ var Title = styled.div(_templateObject3$q || (_templateObject3$q = _taggedTempla
|
|
|
17188
17334
|
var getColor = _ref6.theme.getColor;
|
|
17189
17335
|
return getColor('greyishBlue', 50);
|
|
17190
17336
|
});
|
|
17191
|
-
var Item = styled.div(_templateObject4$
|
|
17337
|
+
var Item = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n padding: ", ";\n display: flex;\n align-items: center;\n\n :not(:last-child) {\n border-bottom: 1px solid\n ", ";\n }\n\n > div:nth-child(1) {\n flex: 1;\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n > div:nth-child(2) {\n ", "\n }\n }\n > div:nth-child(2) {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n"])), function (_ref7) {
|
|
17192
17338
|
var s1 = _ref7.theme.spacings.s1;
|
|
17193
17339
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17194
17340
|
}, function (_ref8) {
|
|
@@ -17302,8 +17448,8 @@ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
|
|
|
17302
17448
|
}))));
|
|
17303
17449
|
};
|
|
17304
17450
|
|
|
17305
|
-
var _templateObject$
|
|
17306
|
-
var Container$8 = styled.div(_templateObject$
|
|
17451
|
+
var _templateObject$M, _templateObject2$y, _templateObject3$r;
|
|
17452
|
+
var Container$8 = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
17307
17453
|
var theme = _ref.theme,
|
|
17308
17454
|
gap = _ref.$gap;
|
|
17309
17455
|
return gap === '0' ? '0' : theme.spacings[gap];
|
|
@@ -17369,21 +17515,21 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
17369
17515
|
Menu: AppliedFiltersMenu
|
|
17370
17516
|
});
|
|
17371
17517
|
|
|
17372
|
-
var _templateObject$
|
|
17373
|
-
var Container$9 = styled.div(_templateObject$
|
|
17518
|
+
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$h, _templateObject5$e, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$8;
|
|
17519
|
+
var Container$9 = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
|
|
17374
17520
|
return props.size === 'mini' && css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
17375
17521
|
}, function (props) {
|
|
17376
17522
|
return props.size === 'small' && css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
17377
17523
|
}, function (props) {
|
|
17378
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
17524
|
+
return props.size === 'medium' && css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
17379
17525
|
}, function (props) {
|
|
17380
|
-
return props.size === 'big' && css(_templateObject5$
|
|
17526
|
+
return props.size === 'big' && css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
17381
17527
|
}, function (props) {
|
|
17382
17528
|
return props.borderType === 'info' && css(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n border-left-color: #4d6dbe;\n "])));
|
|
17383
17529
|
}, function (props) {
|
|
17384
17530
|
return props.borderType === 'success' && css(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n border-left-color: #66bb6a;\n "])));
|
|
17385
17531
|
}, function (props) {
|
|
17386
|
-
return props.borderType === 'warning' && css(_templateObject8$
|
|
17532
|
+
return props.borderType === 'warning' && css(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n border-left-color: #fbcb01;\n "])));
|
|
17387
17533
|
}, function (props) {
|
|
17388
17534
|
return props.borderType === 'danger' && css(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n border-left-color: #e23851;\n "])));
|
|
17389
17535
|
}, function (props) {
|
|
@@ -17399,8 +17545,8 @@ var Card = function Card(_ref) {
|
|
|
17399
17545
|
return React__default.createElement(Container$9, Object.assign({}, rest), children);
|
|
17400
17546
|
};
|
|
17401
17547
|
|
|
17402
|
-
var _templateObject$
|
|
17403
|
-
var Container$a = styled.div(_templateObject$
|
|
17548
|
+
var _templateObject$O;
|
|
17549
|
+
var Container$a = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
|
|
17404
17550
|
var s1 = _ref.theme.spacings.s1;
|
|
17405
17551
|
return "0 0 " + s1 + " " + s1;
|
|
17406
17552
|
}, function (_ref2) {
|
|
@@ -17461,8 +17607,8 @@ var Header$4 = function Header(props) {
|
|
|
17461
17607
|
}));
|
|
17462
17608
|
};
|
|
17463
17609
|
|
|
17464
|
-
var _templateObject$
|
|
17465
|
-
var EmptyMessage = styled.div(_templateObject$
|
|
17610
|
+
var _templateObject$P;
|
|
17611
|
+
var EmptyMessage = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
|
|
17466
17612
|
var lightGrey = _ref.theme.colors.lightGrey;
|
|
17467
17613
|
return lightGrey;
|
|
17468
17614
|
});
|
|
@@ -17803,14 +17949,14 @@ var Filters = Object.assign(function (props) {
|
|
|
17803
17949
|
Menu: FiltersMenu
|
|
17804
17950
|
});
|
|
17805
17951
|
|
|
17806
|
-
var Provider$
|
|
17952
|
+
var Provider$3 = React__default.createContext({
|
|
17807
17953
|
cols: {}
|
|
17808
17954
|
});
|
|
17809
|
-
var useContext$
|
|
17810
|
-
return React__default.useContext(Provider$
|
|
17955
|
+
var useContext$3 = function useContext() {
|
|
17956
|
+
return React__default.useContext(Provider$3);
|
|
17811
17957
|
};
|
|
17812
17958
|
|
|
17813
|
-
var _templateObject$
|
|
17959
|
+
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$i, _templateObject5$f, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a, _templateObject10$9, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2;
|
|
17814
17960
|
var aligns = {
|
|
17815
17961
|
self: {
|
|
17816
17962
|
horizontal: {
|
|
@@ -17839,7 +17985,7 @@ var aligns = {
|
|
|
17839
17985
|
}
|
|
17840
17986
|
}
|
|
17841
17987
|
};
|
|
17842
|
-
var Col = styled.div(_templateObject$
|
|
17988
|
+
var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17843
17989
|
var width = _ref.width;
|
|
17844
17990
|
|
|
17845
17991
|
if (width === undefined) {
|
|
@@ -17849,7 +17995,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17849
17995
|
}
|
|
17850
17996
|
|
|
17851
17997
|
var w = parseFloat(width) * 100 / 12;
|
|
17852
|
-
return css(_templateObject4$
|
|
17998
|
+
return css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
17853
17999
|
}, function (_ref2) {
|
|
17854
18000
|
var spacing = _ref2.spacing;
|
|
17855
18001
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -17857,7 +18003,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17857
18003
|
}, function (_ref3) {
|
|
17858
18004
|
var spacingAround = _ref3.spacingAround;
|
|
17859
18005
|
if (spacingAround) return;
|
|
17860
|
-
return css(_templateObject5$
|
|
18006
|
+
return css(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n :first-child {\n padding-left: 0;\n }\n :last-child {\n padding-right: 0;\n }\n "])));
|
|
17861
18007
|
}, function (_ref4) {
|
|
17862
18008
|
var align = _ref4.align;
|
|
17863
18009
|
if (align === undefined) return;
|
|
@@ -17881,7 +18027,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17881
18027
|
if (align.content.horizontal !== undefined) {
|
|
17882
18028
|
var _v2 = align.content.horizontal;
|
|
17883
18029
|
var _a2 = aligns.content.horizontal;
|
|
17884
|
-
styles.push(css(_templateObject8$
|
|
18030
|
+
styles.push(css(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), _a2[_v2]));
|
|
17885
18031
|
}
|
|
17886
18032
|
|
|
17887
18033
|
if (align.content.vertical !== undefined) {
|
|
@@ -17928,7 +18074,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17928
18074
|
});
|
|
17929
18075
|
|
|
17930
18076
|
var Col$1 = React__default.forwardRef(function (props, ref) {
|
|
17931
|
-
var context = useContext$
|
|
18077
|
+
var context = useContext$3();
|
|
17932
18078
|
|
|
17933
18079
|
var _props = _extends({}, context.cols, props);
|
|
17934
18080
|
|
|
@@ -17939,16 +18085,16 @@ var Col$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17939
18085
|
});
|
|
17940
18086
|
Col$1.displayName = 'Col';
|
|
17941
18087
|
|
|
17942
|
-
var Provider$
|
|
18088
|
+
var Provider$4 = React__default.createContext({
|
|
17943
18089
|
rows: {},
|
|
17944
18090
|
cols: {}
|
|
17945
18091
|
});
|
|
17946
|
-
var useContext$
|
|
17947
|
-
return React__default.useContext(Provider$
|
|
18092
|
+
var useContext$4 = function useContext() {
|
|
18093
|
+
return React__default.useContext(Provider$4);
|
|
17948
18094
|
};
|
|
17949
18095
|
|
|
17950
|
-
var _templateObject$
|
|
17951
|
-
var Grid = styled.div(_templateObject$
|
|
18096
|
+
var _templateObject$R, _templateObject2$B, _templateObject3$u;
|
|
18097
|
+
var Grid = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17952
18098
|
var spacing = _ref.spacing;
|
|
17953
18099
|
if (spacing === undefined) return;
|
|
17954
18100
|
var padding = getSpacings(spacing);
|
|
@@ -17964,7 +18110,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17964
18110
|
var cols = props.cols || {};
|
|
17965
18111
|
var rows = props.rows || {};
|
|
17966
18112
|
var gridProps = filterObject(props, ['cols', 'rows']);
|
|
17967
|
-
return React__default.createElement(Provider$
|
|
18113
|
+
return React__default.createElement(Provider$4.Provider, {
|
|
17968
18114
|
value: {
|
|
17969
18115
|
rows: rows,
|
|
17970
18116
|
cols: cols
|
|
@@ -17975,7 +18121,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17975
18121
|
});
|
|
17976
18122
|
Grid$1.displayName = 'Grid';
|
|
17977
18123
|
|
|
17978
|
-
var _templateObject$
|
|
18124
|
+
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$j, _templateObject5$g, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b, _templateObject10$a;
|
|
17979
18125
|
var horizontalAligns = {
|
|
17980
18126
|
around: 'space-around',
|
|
17981
18127
|
between: 'space-between',
|
|
@@ -17988,7 +18134,7 @@ var verticalAligns = {
|
|
|
17988
18134
|
top: 'start',
|
|
17989
18135
|
bottom: 'end'
|
|
17990
18136
|
};
|
|
17991
|
-
var Row = styled.div(_templateObject$
|
|
18137
|
+
var Row = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
17992
18138
|
var spacing = _ref.spacing;
|
|
17993
18139
|
if (spacing === undefined) return;
|
|
17994
18140
|
var padding = getSpacings(spacing);
|
|
@@ -18000,11 +18146,11 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
|
|
|
18000
18146
|
}, function (_ref3) {
|
|
18001
18147
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
18002
18148
|
if (horizontalAlign === undefined) return;
|
|
18003
|
-
return css(_templateObject4$
|
|
18149
|
+
return css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
18004
18150
|
}, function (_ref4) {
|
|
18005
18151
|
var verticalAlign = _ref4.verticalAlign;
|
|
18006
18152
|
if (verticalAlign === undefined) return;
|
|
18007
|
-
return css(_templateObject5$
|
|
18153
|
+
return css(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n align-items: ", ";\n "])), verticalAligns[verticalAlign]);
|
|
18008
18154
|
}, function (_ref5) {
|
|
18009
18155
|
var striped = _ref5.striped,
|
|
18010
18156
|
backgroundColor = _ref5.backgroundColor,
|
|
@@ -18032,7 +18178,7 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
|
|
|
18032
18178
|
even: theme.colors.white,
|
|
18033
18179
|
odd: theme.colors.white
|
|
18034
18180
|
});
|
|
18035
|
-
return css(_templateObject8$
|
|
18181
|
+
return css(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose(["\n :nth-child(even) {\n background-color: ", ";\n }\n :nth-child(odd) {\n background-color: ", ";\n }\n "])), colors.even, colors.odd);
|
|
18036
18182
|
}, function (_ref6) {
|
|
18037
18183
|
var fontColor = _ref6.fontColor,
|
|
18038
18184
|
theme = _ref6.theme;
|
|
@@ -18054,12 +18200,12 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
|
|
|
18054
18200
|
});
|
|
18055
18201
|
|
|
18056
18202
|
var Row$1 = React__default.forwardRef(function (props, ref) {
|
|
18057
|
-
var context = useContext$
|
|
18203
|
+
var context = useContext$4();
|
|
18058
18204
|
|
|
18059
18205
|
var cols = _extends({}, context.cols, props.cols || {});
|
|
18060
18206
|
|
|
18061
18207
|
var rowProps = filterObject(props, ['cols'], _extends({}, context.rows));
|
|
18062
|
-
return React__default.createElement(Provider$
|
|
18208
|
+
return React__default.createElement(Provider$3.Provider, {
|
|
18063
18209
|
value: {
|
|
18064
18210
|
cols: cols
|
|
18065
18211
|
}
|
|
@@ -18106,8 +18252,8 @@ var widths = {
|
|
|
18106
18252
|
default: '642.5px'
|
|
18107
18253
|
};
|
|
18108
18254
|
|
|
18109
|
-
var _templateObject$
|
|
18110
|
-
var Background = styled.div(_templateObject$
|
|
18255
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$k, _templateObject5$h, _templateObject6$f, _templateObject7$f, _templateObject8$d, _templateObject9$c, _templateObject10$b;
|
|
18256
|
+
var Background = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
|
|
18111
18257
|
var theme = _ref.theme;
|
|
18112
18258
|
return theme.getColor('black', 25);
|
|
18113
18259
|
});
|
|
@@ -18117,9 +18263,9 @@ var Header$5 = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTem
|
|
|
18117
18263
|
colors = _ref2$theme.colors,
|
|
18118
18264
|
spacings = _ref2$theme.spacings,
|
|
18119
18265
|
useTypography = _ref2$theme.useTypography;
|
|
18120
|
-
return css(_templateObject4$
|
|
18266
|
+
return css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
18121
18267
|
});
|
|
18122
|
-
var Footer$2 = styled.div(_templateObject5$
|
|
18268
|
+
var Footer$2 = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
18123
18269
|
var _ref3$theme = _ref3.theme,
|
|
18124
18270
|
spacings = _ref3$theme.spacings,
|
|
18125
18271
|
colors = _ref3$theme.colors;
|
|
@@ -18129,7 +18275,7 @@ var FooterMessage = styled.div(_templateObject7$f || (_templateObject7$f = _tagg
|
|
|
18129
18275
|
var theme = _ref4.theme;
|
|
18130
18276
|
return theme.getColor('darkBlue', 75);
|
|
18131
18277
|
});
|
|
18132
|
-
var FooterButtons = styled.div(_templateObject8$
|
|
18278
|
+
var FooterButtons = styled.div(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: ", ";\n"])), function (_ref5) {
|
|
18133
18279
|
var theme = _ref5.theme;
|
|
18134
18280
|
return theme.spacings.s3;
|
|
18135
18281
|
});
|
|
@@ -18215,8 +18361,8 @@ var Modal = function Modal(props) {
|
|
|
18215
18361
|
}))))));
|
|
18216
18362
|
};
|
|
18217
18363
|
|
|
18218
|
-
var _templateObject$
|
|
18219
|
-
var Content$1 = styled.div(_templateObject$
|
|
18364
|
+
var _templateObject$U;
|
|
18365
|
+
var Content$1 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18220
18366
|
var theme = _ref.theme;
|
|
18221
18367
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18222
18368
|
});
|
|
@@ -18253,8 +18399,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
|
|
|
18253
18399
|
}, React__default.createElement(Content$1, null, children || content));
|
|
18254
18400
|
};
|
|
18255
18401
|
|
|
18256
|
-
var _templateObject$
|
|
18257
|
-
var Content$2 = styled.div(_templateObject$
|
|
18402
|
+
var _templateObject$V;
|
|
18403
|
+
var Content$2 = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18258
18404
|
var theme = _ref.theme;
|
|
18259
18405
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18260
18406
|
});
|
|
@@ -18294,8 +18440,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
|
|
|
18294
18440
|
}, React__default.createElement(Content$2, null, children || content));
|
|
18295
18441
|
};
|
|
18296
18442
|
|
|
18297
|
-
var _templateObject$
|
|
18298
|
-
var Content$3 = styled.div(_templateObject$
|
|
18443
|
+
var _templateObject$W;
|
|
18444
|
+
var Content$3 = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18299
18445
|
var theme = _ref.theme;
|
|
18300
18446
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18301
18447
|
});
|
|
@@ -18336,18 +18482,18 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18336
18482
|
Audit: Audit
|
|
18337
18483
|
});
|
|
18338
18484
|
|
|
18339
|
-
var _templateObject$
|
|
18340
|
-
var Container$c = styled.div(_templateObject$
|
|
18485
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$l, _templateObject5$i, _templateObject6$g, _templateObject7$g, _templateObject8$e, _templateObject9$d, _templateObject10$c, _templateObject11$5;
|
|
18486
|
+
var Container$c = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18341
18487
|
var Header$6 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18342
18488
|
var HeaderImage = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18343
|
-
var HeaderContent = styled.div(_templateObject4$
|
|
18344
|
-
var MainContent = styled.div(_templateObject5$
|
|
18489
|
+
var HeaderContent = styled.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18490
|
+
var MainContent = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18345
18491
|
var HeaderLine = styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18346
18492
|
return props.height;
|
|
18347
18493
|
}, function (props) {
|
|
18348
18494
|
return props.size === 'mini' && css(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18349
18495
|
}, function (props) {
|
|
18350
|
-
return props.size === 'small' && css(_templateObject8$
|
|
18496
|
+
return props.size === 'small' && css(_templateObject8$e || (_templateObject8$e = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18351
18497
|
}, function (props) {
|
|
18352
18498
|
return props.size === 'medium' && css(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18353
18499
|
}, function (props) {
|
|
@@ -18388,28 +18534,28 @@ var Template1 = function Template1(props) {
|
|
|
18388
18534
|
})));
|
|
18389
18535
|
};
|
|
18390
18536
|
|
|
18391
|
-
var _templateObject$
|
|
18392
|
-
var HeaderLine$1 = styled.div(_templateObject$
|
|
18537
|
+
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$m, _templateObject5$j;
|
|
18538
|
+
var HeaderLine$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18393
18539
|
return props.height;
|
|
18394
18540
|
}, function (props) {
|
|
18395
18541
|
return props.size === 'mini' && css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18396
18542
|
}, function (props) {
|
|
18397
18543
|
return props.size === 'small' && css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18398
18544
|
}, function (props) {
|
|
18399
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
18545
|
+
return props.size === 'medium' && css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18400
18546
|
}, function (props) {
|
|
18401
|
-
return props.size === 'large' && css(_templateObject5$
|
|
18547
|
+
return props.size === 'large' && css(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18402
18548
|
});
|
|
18403
18549
|
|
|
18404
|
-
var _templateObject$
|
|
18405
|
-
var Container$d = styled.div(_templateObject$
|
|
18550
|
+
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$n, _templateObject5$k, _templateObject6$h, _templateObject7$h, _templateObject8$f;
|
|
18551
|
+
var Container$d = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18406
18552
|
var Template2Container = styled(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
18407
18553
|
var Header$7 = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18408
|
-
var HeaderImage$1 = styled.div(_templateObject4$
|
|
18409
|
-
var HeaderContent$1 = styled.div(_templateObject5$
|
|
18554
|
+
var HeaderImage$1 = styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18555
|
+
var HeaderContent$1 = styled.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18410
18556
|
var MainContent$1 = styled.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18411
18557
|
var MainLine$1 = styled(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
18412
|
-
var HeaderLine$2 = styled(HeaderLine$1)(_templateObject8$
|
|
18558
|
+
var HeaderLine$2 = styled(HeaderLine$1)(_templateObject8$f || (_templateObject8$f = _taggedTemplateLiteralLoose([""])));
|
|
18413
18559
|
|
|
18414
18560
|
var Template2 = function Template2(props) {
|
|
18415
18561
|
if (!props.loading) return React__default.createElement(React__default.Fragment, null);
|
|
@@ -18432,8 +18578,8 @@ var Template2 = function Template2(props) {
|
|
|
18432
18578
|
})));
|
|
18433
18579
|
};
|
|
18434
18580
|
|
|
18435
|
-
var _templateObject$
|
|
18436
|
-
var Container$e = styled.div(_templateObject$
|
|
18581
|
+
var _templateObject$_, _templateObject2$H, _templateObject3$A;
|
|
18582
|
+
var Container$e = styled.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18437
18583
|
var Template3Container = styled(Container$e)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose([""])));
|
|
18438
18584
|
var Template3Line = styled(HeaderLine$1)(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
|
|
18439
18585
|
return props.height;
|
|
@@ -18464,21 +18610,21 @@ var Template3 = function Template3(props) {
|
|
|
18464
18610
|
}));
|
|
18465
18611
|
};
|
|
18466
18612
|
|
|
18467
|
-
var _templateObject
|
|
18468
|
-
var Container$f = styled.div(_templateObject
|
|
18613
|
+
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$o, _templateObject5$l, _templateObject6$i, _templateObject7$i, _templateObject8$g;
|
|
18614
|
+
var Container$f = styled.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18469
18615
|
var HeaderLine$3 = styled.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18470
18616
|
return props.height;
|
|
18471
18617
|
}, function (props) {
|
|
18472
18618
|
return props.size === 'mini' && css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18473
18619
|
}, function (props) {
|
|
18474
|
-
return props.size === 'small' && css(_templateObject4$
|
|
18620
|
+
return props.size === 'small' && css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18475
18621
|
}, function (props) {
|
|
18476
|
-
return props.size === 'medium' && css(_templateObject5$
|
|
18622
|
+
return props.size === 'medium' && css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18477
18623
|
}, function (props) {
|
|
18478
18624
|
return props.size === 'large' && css(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18479
18625
|
});
|
|
18480
18626
|
var Template4Container = styled(Container$f)(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n"])));
|
|
18481
|
-
var CustomLine = styled(HeaderLine$3)(_templateObject8$
|
|
18627
|
+
var CustomLine = styled(HeaderLine$3)(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
18482
18628
|
return props.width;
|
|
18483
18629
|
}, function (props) {
|
|
18484
18630
|
return props.height;
|
|
@@ -18531,21 +18677,21 @@ var Template4 = function Template4(props) {
|
|
|
18531
18677
|
}));
|
|
18532
18678
|
};
|
|
18533
18679
|
|
|
18534
|
-
var _templateObject
|
|
18535
|
-
var Container$g = styled.div(_templateObject
|
|
18680
|
+
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$p, _templateObject5$m, _templateObject6$j, _templateObject7$j, _templateObject8$h, _templateObject9$e;
|
|
18681
|
+
var Container$g = styled.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
18536
18682
|
var Circle = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
18537
18683
|
var HeaderLine$4 = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18538
18684
|
return props.height;
|
|
18539
18685
|
}, function (props) {
|
|
18540
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18686
|
+
return props.size === 'mini' && css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18541
18687
|
}, function (props) {
|
|
18542
|
-
return props.size === 'small' && css(_templateObject5$
|
|
18688
|
+
return props.size === 'small' && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18543
18689
|
}, function (props) {
|
|
18544
18690
|
return props.size === 'medium' && css(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18545
18691
|
}, function (props) {
|
|
18546
18692
|
return props.size === 'large' && css(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18547
18693
|
});
|
|
18548
|
-
var CustomLine$1 = styled(HeaderLine$4)(_templateObject8$
|
|
18694
|
+
var CustomLine$1 = styled(HeaderLine$4)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n"])), function (props) {
|
|
18549
18695
|
return props.width;
|
|
18550
18696
|
}, function (props) {
|
|
18551
18697
|
return props.height;
|
|
@@ -18579,20 +18725,20 @@ var Template5 = function Template5(props) {
|
|
|
18579
18725
|
})));
|
|
18580
18726
|
};
|
|
18581
18727
|
|
|
18582
|
-
var _templateObject$
|
|
18583
|
-
var Container$h = styled.div(_templateObject$
|
|
18728
|
+
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$q, _templateObject5$n, _templateObject6$k, _templateObject7$k, _templateObject8$i, _templateObject9$f;
|
|
18729
|
+
var Container$h = styled.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
|
|
18584
18730
|
var Header$8 = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
|
|
18585
18731
|
var Footer$3 = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
18586
|
-
var HeaderLine$5 = styled.div(_templateObject4$
|
|
18732
|
+
var HeaderLine$5 = styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18587
18733
|
return props.height;
|
|
18588
18734
|
}, function (props) {
|
|
18589
|
-
return props.size === 'mini' && css(_templateObject5$
|
|
18735
|
+
return props.size === 'mini' && css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18590
18736
|
}, function (props) {
|
|
18591
18737
|
return props.size === 'small' && css(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18592
18738
|
}, function (props) {
|
|
18593
18739
|
return props.size === 'medium' && css(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18594
18740
|
}, function (props) {
|
|
18595
|
-
return props.size === 'large' && css(_templateObject8$
|
|
18741
|
+
return props.size === 'large' && css(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18596
18742
|
});
|
|
18597
18743
|
var CustomLine$2 = styled(HeaderLine$5)(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
18598
18744
|
return props.width;
|
|
@@ -18622,21 +18768,21 @@ var Template6 = function Template6(props) {
|
|
|
18622
18768
|
})));
|
|
18623
18769
|
};
|
|
18624
18770
|
|
|
18625
|
-
var _templateObject$
|
|
18626
|
-
var Container$i = styled.div(_templateObject$
|
|
18771
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$r, _templateObject5$o, _templateObject6$l, _templateObject7$l, _templateObject8$j, _templateObject9$g, _templateObject10$d;
|
|
18772
|
+
var Container$i = styled.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18627
18773
|
var Header$9 = styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18628
18774
|
var HeaderLine$6 = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18629
18775
|
return props.height;
|
|
18630
18776
|
}, function (props) {
|
|
18631
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18777
|
+
return props.size === 'mini' && css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18632
18778
|
}, function (props) {
|
|
18633
|
-
return props.size === 'small' && css(_templateObject5$
|
|
18779
|
+
return props.size === 'small' && css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18634
18780
|
}, function (props) {
|
|
18635
18781
|
return props.size === 'medium' && css(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18636
18782
|
}, function (props) {
|
|
18637
18783
|
return props.size === 'large' && css(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18638
18784
|
});
|
|
18639
|
-
var CustomLine$3 = styled(HeaderLine$6)(_templateObject8$
|
|
18785
|
+
var CustomLine$3 = styled(HeaderLine$6)(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
18640
18786
|
return props.width;
|
|
18641
18787
|
}, function (props) {
|
|
18642
18788
|
return props.height;
|
|
@@ -18656,21 +18802,21 @@ var Template7 = function Template7(props) {
|
|
|
18656
18802
|
})), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
|
|
18657
18803
|
};
|
|
18658
18804
|
|
|
18659
|
-
var _templateObject$
|
|
18660
|
-
var Container$j = styled.div(_templateObject$
|
|
18805
|
+
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$s, _templateObject5$p, _templateObject6$m, _templateObject7$m, _templateObject8$k, _templateObject9$h;
|
|
18806
|
+
var Container$j = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18661
18807
|
var Header$a = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18662
18808
|
var HeaderLine$7 = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18663
18809
|
return props.height;
|
|
18664
18810
|
}, function (props) {
|
|
18665
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18811
|
+
return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18666
18812
|
}, function (props) {
|
|
18667
|
-
return props.size === 'small' && css(_templateObject5$
|
|
18813
|
+
return props.size === 'small' && css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18668
18814
|
}, function (props) {
|
|
18669
18815
|
return props.size === 'medium' && css(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18670
18816
|
}, function (props) {
|
|
18671
18817
|
return props.size === 'large' && css(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18672
18818
|
});
|
|
18673
|
-
var CustomLine$4 = styled(HeaderLine$7)(_templateObject8$
|
|
18819
|
+
var CustomLine$4 = styled(HeaderLine$7)(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
18674
18820
|
return props.width;
|
|
18675
18821
|
}, function (props) {
|
|
18676
18822
|
return props.height;
|
|
@@ -18699,21 +18845,21 @@ var Template8 = function Template8(props) {
|
|
|
18699
18845
|
})));
|
|
18700
18846
|
};
|
|
18701
18847
|
|
|
18702
|
-
var _templateObject$
|
|
18703
|
-
var Container$k = styled.div(_templateObject$
|
|
18848
|
+
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$t, _templateObject5$q, _templateObject6$n, _templateObject7$n, _templateObject8$l, _templateObject9$i, _templateObject10$e;
|
|
18849
|
+
var Container$k = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18704
18850
|
var Header$b = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18705
18851
|
var HeaderLine$8 = styled.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18706
18852
|
return props.height;
|
|
18707
18853
|
}, function (props) {
|
|
18708
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18854
|
+
return props.size === 'mini' && css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18709
18855
|
}, function (props) {
|
|
18710
|
-
return props.size === 'small' && css(_templateObject5$
|
|
18856
|
+
return props.size === 'small' && css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18711
18857
|
}, function (props) {
|
|
18712
18858
|
return props.size === 'medium' && css(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18713
18859
|
}, function (props) {
|
|
18714
18860
|
return props.size === 'large' && css(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18715
18861
|
});
|
|
18716
|
-
var CustomLine$5 = styled(HeaderLine$8)(_templateObject8$
|
|
18862
|
+
var CustomLine$5 = styled(HeaderLine$8)(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
18717
18863
|
return props.width;
|
|
18718
18864
|
}, function (props) {
|
|
18719
18865
|
return props.height;
|
|
@@ -18738,21 +18884,21 @@ var Template8$1 = function Template8(props) {
|
|
|
18738
18884
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18739
18885
|
};
|
|
18740
18886
|
|
|
18741
|
-
var _templateObject$
|
|
18742
|
-
var Container$l = styled.div(_templateObject$
|
|
18887
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$u, _templateObject5$r, _templateObject6$o, _templateObject7$o, _templateObject8$m, _templateObject9$j, _templateObject10$f, _templateObject11$6;
|
|
18888
|
+
var Container$l = styled.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
|
|
18743
18889
|
var Header$c = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
|
|
18744
18890
|
var HeaderLine$9 = styled.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
|
|
18745
18891
|
return props.height;
|
|
18746
18892
|
}, function (props) {
|
|
18747
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18893
|
+
return props.size === 'mini' && css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18748
18894
|
}, function (props) {
|
|
18749
|
-
return props.size === 'small' && css(_templateObject5$
|
|
18895
|
+
return props.size === 'small' && css(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18750
18896
|
}, function (props) {
|
|
18751
18897
|
return props.size === 'medium' && css(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18752
18898
|
}, function (props) {
|
|
18753
18899
|
return props.size === 'large' && css(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18754
18900
|
});
|
|
18755
|
-
var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$
|
|
18901
|
+
var CustomLine$6 = styled(HeaderLine$9)(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n background-color: ", ";\n border: 1px solid #dedede5e;\n"])), function (props) {
|
|
18756
18902
|
return props.width;
|
|
18757
18903
|
}, function (props) {
|
|
18758
18904
|
return props.height;
|
|
@@ -18882,8 +19028,8 @@ var Placeholder = function Placeholder(props) {
|
|
|
18882
19028
|
}
|
|
18883
19029
|
};
|
|
18884
19030
|
|
|
18885
|
-
var _templateObject$
|
|
18886
|
-
var Container$m = styled.div(_templateObject$
|
|
19031
|
+
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$v, _templateObject5$s, _templateObject6$p, _templateObject7$p;
|
|
19032
|
+
var Container$m = styled.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
|
|
18887
19033
|
var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
|
|
18888
19034
|
return props.value + "%";
|
|
18889
19035
|
}, function (props) {
|
|
@@ -18892,12 +19038,12 @@ var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTem
|
|
|
18892
19038
|
return theme.colors.warningGray;
|
|
18893
19039
|
});
|
|
18894
19040
|
}, function (props) {
|
|
18895
|
-
return props.type === 'info' && css(_templateObject4$
|
|
19041
|
+
return props.type === 'info' && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
|
|
18896
19042
|
var theme = _ref2.theme;
|
|
18897
19043
|
return theme.colors.blue;
|
|
18898
19044
|
});
|
|
18899
19045
|
}, function (props) {
|
|
18900
|
-
return props.type === 'danger' && css(_templateObject5$
|
|
19046
|
+
return props.type === 'danger' && css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref3) {
|
|
18901
19047
|
var theme = _ref3.theme;
|
|
18902
19048
|
return theme.colors.warningRed;
|
|
18903
19049
|
});
|
|
@@ -18917,8 +19063,8 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
18917
19063
|
return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
|
|
18918
19064
|
};
|
|
18919
19065
|
|
|
18920
|
-
var _templateObject$
|
|
18921
|
-
var Container$n = styled.div(_templateObject$
|
|
19066
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$w, _templateObject5$t, _templateObject6$q, _templateObject7$q, _templateObject8$n;
|
|
19067
|
+
var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
18922
19068
|
var delimiters = {
|
|
18923
19069
|
blue: ['blue'],
|
|
18924
19070
|
grey: ['warningGray']
|
|
@@ -18951,20 +19097,20 @@ var Tabs = styled.ul(_templateObject2$Q || (_templateObject2$Q = _taggedTemplate
|
|
|
18951
19097
|
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
18952
19098
|
}();
|
|
18953
19099
|
|
|
18954
|
-
return css(_templateObject4$
|
|
19100
|
+
return css(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n border-bottom: ", ";\n\n + div {\n border: 1px solid ", ";\n border-top-width: 0px;\n border-radius: 0px 0px 2px 2px;\n padding: ", ";\n }\n "])), border, theme.getColor.apply(theme, delimiters.grey), theme.spacings.s3);
|
|
18955
19101
|
}, function (_ref3) {
|
|
18956
19102
|
var theme = _ref3.theme,
|
|
18957
19103
|
internal = _ref3.$internal;
|
|
18958
19104
|
return internal ? theme.spacings.s6 : 0;
|
|
18959
19105
|
});
|
|
18960
|
-
var Tab = styled.li(_templateObject5$
|
|
19106
|
+
var Tab = styled.li(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n ", "\n"])), function (_ref4) {
|
|
18961
19107
|
var theme = _ref4.theme,
|
|
18962
19108
|
active = _ref4.$active,
|
|
18963
19109
|
internal = _ref4.$internal;
|
|
18964
19110
|
return css(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: ", ";\n gap: ", ";\n\n ", "\n\n span {\n color: ", ";\n }\n "])), theme.colors[active ? 'blue' : 'white'], theme.spacings.s3, theme.spacings.s3, internal ? css(_templateObject7$q || (_templateObject7$q = _taggedTemplateLiteralLoose(["\n border-radius: 4px 4px 0 0;\n\n > span {\n ", "\n line-height: 17px;\n }\n "])), function (_ref5) {
|
|
18965
19111
|
var theme = _ref5.theme;
|
|
18966
19112
|
return theme.useTypography('h4');
|
|
18967
|
-
}) : css(_templateObject8$
|
|
19113
|
+
}) : css(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n box-shadow: 0px 3px 6px ", ";\n\n > span {\n ", "\n line-height: 19px;\n }\n "])), theme.getColor('black', 15), function (_ref6) {
|
|
18968
19114
|
var theme = _ref6.theme;
|
|
18969
19115
|
return theme.useTypography('h2');
|
|
18970
19116
|
}), theme.colors[active ? 'white' : 'darkBlue']);
|
|
@@ -18986,6 +19132,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
18986
19132
|
status = _useState[0],
|
|
18987
19133
|
setStatus = _useState[1];
|
|
18988
19134
|
|
|
19135
|
+
var onClose = props.onClose || function () {};
|
|
19136
|
+
|
|
18989
19137
|
var activate = function activate(active, length) {
|
|
18990
19138
|
setStatus(function (prev) {
|
|
18991
19139
|
if (length !== undefined && length !== prev.length) {
|
|
@@ -19029,7 +19177,7 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19029
19177
|
activate(index);
|
|
19030
19178
|
};
|
|
19031
19179
|
|
|
19032
|
-
var onClickClose = function onClickClose(index) {
|
|
19180
|
+
var onClickClose = function onClickClose(index, tab, event) {
|
|
19033
19181
|
var getActive = function getActive(removed, prev) {
|
|
19034
19182
|
for (var i = index - 1; i > -1; i--) {
|
|
19035
19183
|
if (removed[i] !== 'closed') {
|
|
@@ -19062,9 +19210,10 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19062
19210
|
|
|
19063
19211
|
return status;
|
|
19064
19212
|
});
|
|
19213
|
+
onClose(index, tab, event);
|
|
19065
19214
|
};
|
|
19066
19215
|
|
|
19067
|
-
var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'alwaysOpen', 'delimiter', 'spacing']);
|
|
19216
|
+
var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'onClose', 'alwaysOpen', 'delimiter', 'spacing']);
|
|
19068
19217
|
return React__default.createElement(Container$n, Object.assign({}, divProps), React__default.createElement(Tabs, {
|
|
19069
19218
|
"$internal": props.internal,
|
|
19070
19219
|
"$delimiter": props.delimiter,
|
|
@@ -19081,8 +19230,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19081
19230
|
}, React__default.createElement("span", null, tab.label), !props.alwaysOpen && React__default.createElement(Icon, {
|
|
19082
19231
|
type: 'feather',
|
|
19083
19232
|
icon: 'x',
|
|
19084
|
-
onClick: function onClick() {
|
|
19085
|
-
return onClickClose(index);
|
|
19233
|
+
onClick: function onClick(e) {
|
|
19234
|
+
return onClickClose(index, tab, e);
|
|
19086
19235
|
},
|
|
19087
19236
|
width: '14px',
|
|
19088
19237
|
height: '14px',
|
|
@@ -19094,8 +19243,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19094
19243
|
}));
|
|
19095
19244
|
};
|
|
19096
19245
|
|
|
19097
|
-
var _templateObject$
|
|
19098
|
-
var Container$o = styled.textarea(_templateObject$
|
|
19246
|
+
var _templateObject$18;
|
|
19247
|
+
var Container$o = styled.textarea(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n resize: none;\n outline: 0;\n border: 1px solid #c8c8c8;\n padding: 14px;\n border-radius: 4px;\n color: #192338;\n"])), function (props) {
|
|
19099
19248
|
return "" + props.width;
|
|
19100
19249
|
}, function (props) {
|
|
19101
19250
|
return "" + props.height;
|
|
@@ -19105,17 +19254,17 @@ var TextArea = function TextArea(props) {
|
|
|
19105
19254
|
return React__default.createElement(Container$o, Object.assign({}, props));
|
|
19106
19255
|
};
|
|
19107
19256
|
|
|
19108
|
-
var _templateObject$
|
|
19109
|
-
var Container$p = styled.div(_templateObject$
|
|
19257
|
+
var _templateObject$19, _templateObject2$R, _templateObject3$K, _templateObject4$x, _templateObject5$u, _templateObject6$r;
|
|
19258
|
+
var Container$p = styled.div(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
|
|
19110
19259
|
return props.size === 'large' ? '837px' : '460px';
|
|
19111
19260
|
}, function (props) {
|
|
19112
19261
|
return props.color === 'success' && css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
|
|
19113
19262
|
}, function (props) {
|
|
19114
19263
|
return props.color === 'error' && css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
|
|
19115
19264
|
}, function (props) {
|
|
19116
|
-
return props.color === 'warning' && css(_templateObject4$
|
|
19265
|
+
return props.color === 'warning' && css(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n background-color: #fffaf3;\n opacity: 1;\n border-color: #ccbea0;\n h4 {\n color: #7a4d05;\n }\n p {\n color: #7a4d05cc;\n }\n "])));
|
|
19117
19266
|
});
|
|
19118
|
-
var IconContainer$2 = styled.div(_templateObject5$
|
|
19267
|
+
var IconContainer$2 = styled.div(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 14px 14px 0 0;\n margin: 0;\n"])));
|
|
19119
19268
|
var IconContent = styled.div(_templateObject6$r || (_templateObject6$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 13px 0 21px 28px;\n display: flex;\n flex: 1;\n flex-direction: column;\n\n h4 {\n margin-bottom: 7px;\n font-size: 18p;\n }\n p {\n margin: 0;\n font-size: 14px;\n max-width: 380px;\n }\n"])));
|
|
19120
19269
|
|
|
19121
19270
|
var Toast = function Toast(props) {
|
|
@@ -19128,8 +19277,8 @@ var Toast = function Toast(props) {
|
|
|
19128
19277
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19129
19278
|
};
|
|
19130
19279
|
|
|
19131
|
-
var _templateObject$
|
|
19132
|
-
var Image = styled.img(_templateObject$
|
|
19280
|
+
var _templateObject$1a, _templateObject2$S, _templateObject3$L, _templateObject4$y, _templateObject5$v;
|
|
19281
|
+
var Image = styled.img(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19133
19282
|
var Container$q = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
|
|
19134
19283
|
var width = _ref.width;
|
|
19135
19284
|
|
|
@@ -19161,11 +19310,11 @@ var Dimmer = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTempl
|
|
|
19161
19310
|
var theme = _ref3.theme;
|
|
19162
19311
|
return theme.getColor('greyishBlue', 50);
|
|
19163
19312
|
});
|
|
19164
|
-
var Button$6 = styled(Button$1)(_templateObject4$
|
|
19313
|
+
var Button$6 = styled(Button$1)(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19165
19314
|
var theme = _ref4.theme;
|
|
19166
19315
|
return theme.getColor('white', 50);
|
|
19167
19316
|
});
|
|
19168
|
-
var ModalContent = styled.div(_templateObject5$
|
|
19317
|
+
var ModalContent = styled.div(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n\n img {\n max-height: 100%;\n max-width: 100%;\n }\n"])));
|
|
19169
19318
|
|
|
19170
19319
|
var _excluded$3 = ["src", "defaultClickOptions"];
|
|
19171
19320
|
|
|
@@ -19201,5 +19350,5 @@ var Zoom = function Zoom(props) {
|
|
|
19201
19350
|
}))));
|
|
19202
19351
|
};
|
|
19203
19352
|
|
|
19204
|
-
export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button$1 as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer$1 as MwEllipsisContainer, Filters as MwFilters, Grid$2 as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input$5 as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, useTransition as useMwTransition };
|
|
19353
|
+
export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button$1 as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer$1 as MwEllipsisContainer, Filters as MwFilters, Form as MwForm, Grid$2 as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input$5 as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, useTransition as useMwTransition };
|
|
19205
19354
|
//# sourceMappingURL=index.modern.js.map
|