@mw-kit/mw-ui 1.7.68 → 1.7.70
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/Range/interfaces.d.ts +1 -0
- 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 +1 -0
- package/dist/components/Tabs/interfaces.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +362 -233
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +362 -234
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -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,117 @@ 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
|
+
var required = _ref22.$required;
|
|
12321
12322
|
if (!required) return;
|
|
12322
12323
|
return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12323
12324
|
});
|
|
12324
12325
|
|
|
12326
|
+
var defaultValue = {
|
|
12327
|
+
isRequired: function isRequired() {
|
|
12328
|
+
return false;
|
|
12329
|
+
},
|
|
12330
|
+
isInvalid: function isInvalid() {
|
|
12331
|
+
return false;
|
|
12332
|
+
},
|
|
12333
|
+
isViewMode: function isViewMode() {
|
|
12334
|
+
return false;
|
|
12335
|
+
},
|
|
12336
|
+
isDisabled: function isDisabled() {
|
|
12337
|
+
return false;
|
|
12338
|
+
}
|
|
12339
|
+
};
|
|
12340
|
+
var Context = React__default.createContext(_extends({}, defaultValue));
|
|
12341
|
+
|
|
12342
|
+
var useContext = function useContext(name) {
|
|
12343
|
+
var context = React__default.useContext(Context);
|
|
12344
|
+
return _extends({
|
|
12345
|
+
isRequired: function isRequired() {
|
|
12346
|
+
return false;
|
|
12347
|
+
},
|
|
12348
|
+
isInvalid: function isInvalid() {
|
|
12349
|
+
return false;
|
|
12350
|
+
},
|
|
12351
|
+
isViewMode: function isViewMode() {
|
|
12352
|
+
return false;
|
|
12353
|
+
},
|
|
12354
|
+
isDisabled: function isDisabled() {
|
|
12355
|
+
return false;
|
|
12356
|
+
}
|
|
12357
|
+
}, name ? {
|
|
12358
|
+
isRequired: function isRequired() {
|
|
12359
|
+
return context.isRequired(name);
|
|
12360
|
+
},
|
|
12361
|
+
isInvalid: function isInvalid() {
|
|
12362
|
+
return context.isInvalid(name);
|
|
12363
|
+
},
|
|
12364
|
+
isViewMode: function isViewMode() {
|
|
12365
|
+
return context.isViewMode(name);
|
|
12366
|
+
},
|
|
12367
|
+
isDisabled: function isDisabled() {
|
|
12368
|
+
return context.isDisabled(name);
|
|
12369
|
+
}
|
|
12370
|
+
} : {});
|
|
12371
|
+
};
|
|
12372
|
+
|
|
12373
|
+
var Provider = function Provider(props) {
|
|
12374
|
+
return React__default.createElement(Context.Provider, Object.assign({}, props, {
|
|
12375
|
+
value: _extends({}, defaultValue, props.value)
|
|
12376
|
+
}));
|
|
12377
|
+
};
|
|
12378
|
+
|
|
12379
|
+
var Form = Object.assign(React__default.forwardRef(Object.assign(function (props, ref) {
|
|
12380
|
+
var formProps = filterObject(props, ['isRequired', 'isInvalid', 'isViewMode', 'isDisabled']);
|
|
12381
|
+
return React__default.createElement(Provider, {
|
|
12382
|
+
value: _extends({}, props.isRequired ? {
|
|
12383
|
+
isRequired: props.isRequired
|
|
12384
|
+
} : {}, props.isInvalid ? {
|
|
12385
|
+
isInvalid: props.isInvalid
|
|
12386
|
+
} : {}, props.isViewMode ? {
|
|
12387
|
+
isViewMode: props.isViewMode
|
|
12388
|
+
} : {}, props.isDisabled ? {
|
|
12389
|
+
isDisabled: props.isDisabled
|
|
12390
|
+
} : {})
|
|
12391
|
+
}, React__default.createElement("form", Object.assign({
|
|
12392
|
+
ref: ref
|
|
12393
|
+
}, formProps)));
|
|
12394
|
+
}, {
|
|
12395
|
+
displayName: 'Form'
|
|
12396
|
+
})), {
|
|
12397
|
+
useContext: useContext
|
|
12398
|
+
});
|
|
12399
|
+
|
|
12325
12400
|
var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
12326
12401
|
var _props = _extends({}, props),
|
|
12327
12402
|
label = _props.label,
|
|
12328
12403
|
loading = _props.loading,
|
|
12404
|
+
readOnly = _props.readOnly,
|
|
12405
|
+
arrows = _props.arrows,
|
|
12406
|
+
borderless = _props.borderless,
|
|
12407
|
+
paddingless = _props.paddingless,
|
|
12329
12408
|
clearable = _props.clearable,
|
|
12330
12409
|
onPressEnter = _props.onPressEnter,
|
|
12331
12410
|
width = _props.width;
|
|
12332
12411
|
|
|
12412
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
12413
|
+
isRequired = _Form$useContext.isRequired,
|
|
12414
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
12415
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
12416
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
12417
|
+
|
|
12333
12418
|
var mask = getMask(props.mask);
|
|
12334
12419
|
useEffect(function () {
|
|
12335
12420
|
if (!isString(props.value)) return;
|
|
12336
12421
|
var masked = mask(props.value);
|
|
12337
12422
|
if (masked !== props.value) setValue(masked);
|
|
12338
12423
|
}, [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;
|
|
12424
|
+
var invalid = isInvalid() || props.invalid;
|
|
12425
|
+
var required = isRequired() || props.required;
|
|
12426
|
+
var disabled = isDisabled() || props.disabled;
|
|
12427
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
12347
12428
|
var position;
|
|
12348
12429
|
var iconWidth;
|
|
12349
12430
|
var iconSubmit;
|
|
@@ -12353,18 +12434,18 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12353
12434
|
if (props.icon) {
|
|
12354
12435
|
icon = _extends({}, props.icon.icon);
|
|
12355
12436
|
position = props.icon.position || 'right';
|
|
12356
|
-
if (
|
|
12437
|
+
if (invalid) icon.color = 'warningRed';
|
|
12357
12438
|
iconWidth = icon.width;
|
|
12358
12439
|
iconSubmit = props.icon.submit;
|
|
12359
12440
|
iconOnClick = props.icon.onClick;
|
|
12360
12441
|
}
|
|
12361
12442
|
|
|
12362
|
-
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12363
|
-
invalid:
|
|
12443
|
+
var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'viewMode', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
|
|
12444
|
+
$invalid: invalid,
|
|
12364
12445
|
type: 'text',
|
|
12365
|
-
arrows:
|
|
12366
|
-
borderless:
|
|
12367
|
-
paddingless:
|
|
12446
|
+
$arrows: arrows,
|
|
12447
|
+
$borderless: borderless,
|
|
12448
|
+
$paddingless: paddingless
|
|
12368
12449
|
});
|
|
12369
12450
|
|
|
12370
12451
|
var onChange = inputProps.onChange || function () {};
|
|
@@ -12455,16 +12536,19 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
|
|
|
12455
12536
|
if (props.htmlDisabled) inputProps.disabled = true;
|
|
12456
12537
|
if (props.htmlReadOnly) inputProps.readOnly = true;
|
|
12457
12538
|
return React__default.createElement(Label, {
|
|
12458
|
-
readOnly:
|
|
12459
|
-
disabled:
|
|
12460
|
-
loading:
|
|
12461
|
-
invalid:
|
|
12462
|
-
paddingless:
|
|
12463
|
-
icon: iconProps,
|
|
12464
|
-
width: width
|
|
12539
|
+
"$readOnly": readOnly || viewMode,
|
|
12540
|
+
"$disabled": disabled,
|
|
12541
|
+
"$loading": loading,
|
|
12542
|
+
"$invalid": invalid,
|
|
12543
|
+
"$paddingless": paddingless,
|
|
12544
|
+
"$icon": iconProps,
|
|
12545
|
+
"$width": width
|
|
12465
12546
|
}, label && React__default.createElement(LabelText, {
|
|
12466
|
-
required:
|
|
12467
|
-
|
|
12547
|
+
"$required": required,
|
|
12548
|
+
"$viewMode": viewMode
|
|
12549
|
+
}, label), viewMode ? React__default.createElement("div", {
|
|
12550
|
+
children: inputProps.value || props.children
|
|
12551
|
+
}) : React__default.createElement(InputContainer, {
|
|
12468
12552
|
width: props.inputWidth
|
|
12469
12553
|
}, React__default.createElement(Input, Object.assign({}, inputProps, {
|
|
12470
12554
|
ref: ref
|
|
@@ -12484,17 +12568,18 @@ var Checkmark = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemp
|
|
|
12484
12568
|
var theme = _ref.theme;
|
|
12485
12569
|
return theme.colors.white;
|
|
12486
12570
|
}, function (_ref2) {
|
|
12487
|
-
var theme = _ref2.theme
|
|
12488
|
-
|
|
12571
|
+
var theme = _ref2.theme,
|
|
12572
|
+
viewMode = _ref2.$viewMode;
|
|
12573
|
+
return viewMode ? 'transparent' : theme.colors.blue;
|
|
12489
12574
|
}, function (_ref3) {
|
|
12490
12575
|
var theme = _ref3.theme;
|
|
12491
12576
|
return theme.colors.blue;
|
|
12492
12577
|
});
|
|
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
|
|
12578
|
+
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
12579
|
var theme = _ref4.theme;
|
|
12495
12580
|
return theme.useTypography('p');
|
|
12496
12581
|
}, function (_ref5) {
|
|
12497
|
-
var padding = _ref5
|
|
12582
|
+
var padding = _ref5.$padding,
|
|
12498
12583
|
theme = _ref5.theme;
|
|
12499
12584
|
if (!padding) return;
|
|
12500
12585
|
var _padding = {
|
|
@@ -12538,17 +12623,19 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
|
|
|
12538
12623
|
|
|
12539
12624
|
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
12625
|
}, function (_ref6) {
|
|
12541
|
-
var disabled = _ref6
|
|
12626
|
+
var disabled = _ref6.$disabled,
|
|
12627
|
+
readOnly = _ref6.$readOnly;
|
|
12542
12628
|
|
|
12543
|
-
if (
|
|
12544
|
-
return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n
|
|
12629
|
+
if (disabled) {
|
|
12630
|
+
return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
12545
12631
|
}
|
|
12546
12632
|
|
|
12547
|
-
|
|
12633
|
+
if (readOnly) return;
|
|
12634
|
+
return css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
|
|
12548
12635
|
}, function (_ref7) {
|
|
12549
12636
|
var theme = _ref7.theme,
|
|
12550
|
-
bordered = _ref7
|
|
12551
|
-
invalid = _ref7
|
|
12637
|
+
bordered = _ref7.$bordered,
|
|
12638
|
+
invalid = _ref7.$invalid;
|
|
12552
12639
|
if (!bordered) return;
|
|
12553
12640
|
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
12641
|
}, size, size, function (_ref8) {
|
|
@@ -12558,32 +12645,37 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
|
|
|
12558
12645
|
var theme = _ref9.theme;
|
|
12559
12646
|
return theme.colors.iceWhite;
|
|
12560
12647
|
}, Checkmark, function (_ref10) {
|
|
12561
|
-
var theme = _ref10.theme
|
|
12562
|
-
|
|
12563
|
-
}, function (_ref11) {
|
|
12564
|
-
var theme = _ref11.theme,
|
|
12565
|
-
invalid = _ref11.invalid;
|
|
12648
|
+
var theme = _ref10.theme,
|
|
12649
|
+
invalid = _ref10.$invalid;
|
|
12566
12650
|
if (!invalid) return;
|
|
12567
12651
|
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 =
|
|
12652
|
+
}, function (_ref11) {
|
|
12653
|
+
var width = _ref11.$width;
|
|
12570
12654
|
return width && css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
|
|
12571
12655
|
});
|
|
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 =
|
|
12656
|
+
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) {
|
|
12657
|
+
var theme = _ref12.theme;
|
|
12574
12658
|
return theme.useTypography('p');
|
|
12575
|
-
}, function (
|
|
12576
|
-
var required =
|
|
12659
|
+
}, function (_ref13) {
|
|
12660
|
+
var required = _ref13.required;
|
|
12577
12661
|
if (!required) return;
|
|
12578
12662
|
return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
|
|
12579
12663
|
});
|
|
12580
12664
|
|
|
12581
12665
|
var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
12582
|
-
var
|
|
12583
|
-
required = props.required,
|
|
12584
|
-
invalid = props.invalid,
|
|
12585
|
-
padding = props.padding,
|
|
12666
|
+
var padding = props.padding,
|
|
12586
12667
|
bordered = props.bordered;
|
|
12668
|
+
|
|
12669
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
12670
|
+
isRequired = _Form$useContext.isRequired,
|
|
12671
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
12672
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
12673
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
12674
|
+
|
|
12675
|
+
var invalid = isInvalid() || props.invalid;
|
|
12676
|
+
var required = isRequired() || props.required;
|
|
12677
|
+
var disabled = isDisabled() || props.disabled;
|
|
12678
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
12587
12679
|
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'padding', 'bordered']);
|
|
12588
12680
|
|
|
12589
12681
|
var _ref = function () {
|
|
@@ -12599,16 +12691,20 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
|
|
|
12599
12691
|
children = _ref[1];
|
|
12600
12692
|
|
|
12601
12693
|
return React__default.createElement(Label$1, {
|
|
12602
|
-
disabled: disabled
|
|
12603
|
-
required: required
|
|
12604
|
-
invalid: invalid
|
|
12605
|
-
bordered:
|
|
12606
|
-
padding: padding,
|
|
12607
|
-
|
|
12694
|
+
"$disabled": disabled,
|
|
12695
|
+
"$required": required,
|
|
12696
|
+
"$invalid": invalid,
|
|
12697
|
+
"$bordered": !viewMode && bordered,
|
|
12698
|
+
"$padding": padding,
|
|
12699
|
+
"$readOnly": props.readOnly || viewMode,
|
|
12700
|
+
"$width": props.width
|
|
12608
12701
|
}, React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
12609
12702
|
type: 'checkbox',
|
|
12610
|
-
ref: ref
|
|
12611
|
-
|
|
12703
|
+
ref: ref,
|
|
12704
|
+
disabled: htmlProps.disabled || viewMode
|
|
12705
|
+
})), React__default.createElement(Checkmark, {
|
|
12706
|
+
"$viewMode": viewMode
|
|
12707
|
+
}), React__default.createElement(LabelComponent, Object.assign({}, {
|
|
12612
12708
|
disabled: disabled,
|
|
12613
12709
|
required: required,
|
|
12614
12710
|
invalid: invalid,
|
|
@@ -12684,27 +12780,30 @@ var Container$1 = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTe
|
|
|
12684
12780
|
return theme.spacings.s1;
|
|
12685
12781
|
});
|
|
12686
12782
|
|
|
12687
|
-
var _templateObject$9, _templateObject2$8, _templateObject3$8;
|
|
12688
|
-
var OverflowContainer = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n width: 100%;\n position: relative;\n\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ", ";\n
|
|
12689
|
-
var height = _ref.$height
|
|
12690
|
-
|
|
12783
|
+
var _templateObject$9, _templateObject2$8, _templateObject3$8, _templateObject4$5;
|
|
12784
|
+
var OverflowContainer = styled.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n overflow-y: scroll;\n overflow-y: overlay;\n width: 100%;\n position: relative;\n\n flex: 1;\n display: flex;\n flex-direction: column;\n\n ", ";\n\n scrollbar-color: ", ";\n scrollbar-width: thin;\n\n ::-webkit-scrollbar {\n width: 7px;\n }\n ::-webkit-scrollbar-thumb {\n background: ", ";\n }\n ::-webkit-scrollbar-track {\n background: ", ";\n }\n\n ", ";\n"])), function (_ref) {
|
|
12785
|
+
var height = _ref.$height,
|
|
12786
|
+
maxHeight = _ref.$maxHeight;
|
|
12787
|
+
|
|
12788
|
+
if (height) {
|
|
12789
|
+
return css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n min-height: ", ";\n max-height: ", ";\n "])), height, maxHeight || height);
|
|
12790
|
+
}
|
|
12791
|
+
|
|
12792
|
+
return css(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-height: ", ";\n "])), maxHeight || '100%');
|
|
12691
12793
|
}, function (_ref2) {
|
|
12692
|
-
var
|
|
12693
|
-
return
|
|
12794
|
+
var theme = _ref2.theme;
|
|
12795
|
+
return theme.colors.grey + " " + theme.colors.white;
|
|
12694
12796
|
}, function (_ref3) {
|
|
12695
12797
|
var theme = _ref3.theme;
|
|
12696
|
-
return theme.colors.grey
|
|
12798
|
+
return theme.colors.grey;
|
|
12697
12799
|
}, function (_ref4) {
|
|
12698
12800
|
var theme = _ref4.theme;
|
|
12699
|
-
return theme.colors.grey;
|
|
12700
|
-
}, function (_ref5) {
|
|
12701
|
-
var theme = _ref5.theme;
|
|
12702
12801
|
return theme.colors.white;
|
|
12703
|
-
}, function (
|
|
12704
|
-
var spacing =
|
|
12705
|
-
theme =
|
|
12802
|
+
}, function (_ref5) {
|
|
12803
|
+
var spacing = _ref5.$spacing,
|
|
12804
|
+
theme = _ref5.theme;
|
|
12706
12805
|
var value = getSpacings(spacing || '0', '0').split(' ');
|
|
12707
|
-
return css(
|
|
12806
|
+
return css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
|
|
12708
12807
|
});
|
|
12709
12808
|
|
|
12710
12809
|
var _templateObject$a;
|
|
@@ -12776,7 +12875,7 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
|
|
|
12776
12875
|
});
|
|
12777
12876
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
12778
12877
|
|
|
12779
|
-
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$
|
|
12878
|
+
var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
|
|
12780
12879
|
var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: ", ";\n color: ", ";\n display: flex;\n gap: ", ";\n\n > :nth-child(1) {\n display: flex;\n align-items: center;\n flex: 1;\n max-width: 100%;\n }\n\n ", ";\n\n ", ";\n\n :hover {\n background-color: ", ";\n }\n"])), function (_ref) {
|
|
12781
12880
|
var theme = _ref.theme;
|
|
12782
12881
|
return theme.useTypography('p');
|
|
@@ -12809,7 +12908,7 @@ var Option = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplat
|
|
|
12809
12908
|
var width = cfg.width || '1px';
|
|
12810
12909
|
var style = cfg.style || 'solid';
|
|
12811
12910
|
var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
|
|
12812
|
-
return css(_templateObject4$
|
|
12911
|
+
return css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
|
|
12813
12912
|
});
|
|
12814
12913
|
}, function (_ref7) {
|
|
12815
12914
|
var theme = _ref7.theme;
|
|
@@ -12954,7 +13053,7 @@ var MenuComponent = function MenuComponent(props, ref) {
|
|
|
12954
13053
|
|
|
12955
13054
|
var Menu = React__default.forwardRef(MenuComponent);
|
|
12956
13055
|
|
|
12957
|
-
var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$
|
|
13056
|
+
var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$7, _templateObject5$6, _templateObject6$5, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$4;
|
|
12958
13057
|
var Container$3 = styled.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: ", ";\n background-color: ", ";\n position: relative;\n\n ", ";\n"])), function (_ref) {
|
|
12959
13058
|
var theme = _ref.theme;
|
|
12960
13059
|
return theme.spacings.s3;
|
|
@@ -12975,7 +13074,7 @@ var LabelContainer = styled.div(_templateObject3$a || (_templateObject3$a = _tag
|
|
|
12975
13074
|
var theme = _ref5.theme;
|
|
12976
13075
|
return theme.spacings.s3;
|
|
12977
13076
|
});
|
|
12978
|
-
var CalendarContainer = styled.div(_templateObject4$
|
|
13077
|
+
var CalendarContainer = styled.div(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n"])), function (_ref6) {
|
|
12979
13078
|
var theme = _ref6.theme;
|
|
12980
13079
|
return theme.colors.lightestGrey;
|
|
12981
13080
|
});
|
|
@@ -13115,7 +13214,7 @@ var Indicator = function Indicator(props) {
|
|
|
13115
13214
|
}, props)));
|
|
13116
13215
|
};
|
|
13117
13216
|
|
|
13118
|
-
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$
|
|
13217
|
+
var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$2;
|
|
13119
13218
|
var Footer = styled.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > button:last-child {\n margin-left: auto;\n }\n"])));
|
|
13120
13219
|
var WeekContainer = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n\n :not(:first-child) {\n border-top: 1px solid ", ";\n }\n\n > * {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n width: 32px;\n height: 32px;\n\n color: ", ";\n box-shadow: none;\n\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n border: 1px solid transparent;\n :not(:last-child) {\n border-right-color: ", ";\n }\n }\n"])), function (_ref) {
|
|
13121
13220
|
var theme = _ref.theme;
|
|
@@ -13140,7 +13239,7 @@ var Header = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTempl
|
|
|
13140
13239
|
var theme = _ref7.theme;
|
|
13141
13240
|
return theme.getColor('lightestGrey', 40);
|
|
13142
13241
|
}, WeekContainer);
|
|
13143
|
-
var DayContainer = styled.button(_templateObject4$
|
|
13242
|
+
var DayContainer = styled.button(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n\n ", ";\n\n :disabled {\n color: ", ";\n }\n\n &,\n :after {\n transition-property: background-color, color, border-color;\n transition-timing-function: ease-in-out;\n transition-duration: 0.25s;\n }\n\n ", "\n"])), function (_ref8) {
|
|
13144
13243
|
var theme = _ref8.theme,
|
|
13145
13244
|
appearance = _ref8.appearance,
|
|
13146
13245
|
activeColor = _ref8.activeColor,
|
|
@@ -13775,7 +13874,7 @@ var getTimeProps = function getTimeProps(time, value) {
|
|
|
13775
13874
|
});
|
|
13776
13875
|
};
|
|
13777
13876
|
|
|
13778
|
-
var _templateObject$h, _templateObject2$d, _templateObject3$c, _templateObject4$
|
|
13877
|
+
var _templateObject$h, _templateObject2$d, _templateObject3$c, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
|
|
13779
13878
|
var Button = styled.button(_templateObject$h || (_templateObject$h = _taggedTemplateLiteralLoose(["\n padding: 0\n ", ";\n font-family: 'Lato', sans-serif;\n font-weight: ", ";\n border-radius: 4px;\n position: relative;\n user-select: none;\n\n ", ";\n\n ", ";\n\n color: ", ";\n\n :disabled {\n opacity: 0.5;\n pointer-events: none;\n }\n\n :hover {\n cursor: ", ";\n\n ", "\n }\n\n :active {\n ", ";\n }\n\n ", "\n"])), function (_ref) {
|
|
13780
13879
|
var theme = _ref.theme,
|
|
13781
13880
|
appearance = _ref.appearance;
|
|
@@ -13821,7 +13920,7 @@ var Button = styled.button(_templateObject$h || (_templateObject$h = _taggedTemp
|
|
|
13821
13920
|
theme = _ref7.theme;
|
|
13822
13921
|
|
|
13823
13922
|
if (appearance === 'bordered') {
|
|
13824
|
-
return css(_templateObject4$
|
|
13923
|
+
return css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
|
|
13825
13924
|
} else if (['link', 'borderless'].includes(appearance)) {
|
|
13826
13925
|
return css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
|
|
13827
13926
|
}
|
|
@@ -14457,9 +14556,9 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
|
|
|
14457
14556
|
});
|
|
14458
14557
|
Date$1.displayName = 'Date';
|
|
14459
14558
|
|
|
14460
|
-
var Provider = React__default.createContext({});
|
|
14461
|
-
var useContext = function useContext() {
|
|
14462
|
-
return React__default.useContext(Provider);
|
|
14559
|
+
var Provider$1 = React__default.createContext({});
|
|
14560
|
+
var useContext$1 = function useContext() {
|
|
14561
|
+
return React__default.useContext(Provider$1);
|
|
14463
14562
|
};
|
|
14464
14563
|
|
|
14465
14564
|
var _templateObject$l, _templateObject2$f;
|
|
@@ -14469,7 +14568,7 @@ var HeaderContainer = styled.div(_templateObject$l || (_templateObject$l = _tagg
|
|
|
14469
14568
|
});
|
|
14470
14569
|
|
|
14471
14570
|
var Header$1 = function Header() {
|
|
14472
|
-
var context = useContext();
|
|
14571
|
+
var context = useContext$1();
|
|
14473
14572
|
|
|
14474
14573
|
if (!context.props.search) {
|
|
14475
14574
|
return React__default.createElement(React__default.Fragment, null);
|
|
@@ -14582,7 +14681,7 @@ var useSelect = function useSelect(props) {
|
|
|
14582
14681
|
maxHeight: props.maxHeight || '180px'
|
|
14583
14682
|
},
|
|
14584
14683
|
getContext: function getContext(base, children) {
|
|
14585
|
-
return React__default.createElement(Provider.Provider, {
|
|
14684
|
+
return React__default.createElement(Provider$1.Provider, {
|
|
14586
14685
|
value: _extends({}, base, {
|
|
14587
14686
|
props: props,
|
|
14588
14687
|
options: options
|
|
@@ -14597,13 +14696,13 @@ var useSelect = function useSelect(props) {
|
|
|
14597
14696
|
return parsed;
|
|
14598
14697
|
};
|
|
14599
14698
|
|
|
14600
|
-
var Provider$
|
|
14601
|
-
var useContext$
|
|
14602
|
-
return React__default.useContext(Provider$
|
|
14699
|
+
var Provider$2 = React__default.createContext({});
|
|
14700
|
+
var useContext$2 = function useContext() {
|
|
14701
|
+
return React__default.useContext(Provider$2);
|
|
14603
14702
|
};
|
|
14604
14703
|
|
|
14605
14704
|
var Footer$1 = function Footer() {
|
|
14606
|
-
var context = useContext$
|
|
14705
|
+
var context = useContext$2();
|
|
14607
14706
|
var _context$props = context.props,
|
|
14608
14707
|
value = _context$props.value,
|
|
14609
14708
|
setValue = _context$props.setValue,
|
|
@@ -14630,7 +14729,7 @@ var Footer$1 = function Footer() {
|
|
|
14630
14729
|
});
|
|
14631
14730
|
};
|
|
14632
14731
|
|
|
14633
|
-
var _templateObject$m, _templateObject2$g, _templateObject3$d, _templateObject4$
|
|
14732
|
+
var _templateObject$m, _templateObject2$g, _templateObject3$d, _templateObject4$a;
|
|
14634
14733
|
var Link = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
|
|
14635
14734
|
var size = _ref.size;
|
|
14636
14735
|
var _sizes = sizes$1[size || 'small'],
|
|
@@ -14649,7 +14748,7 @@ var Link = styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateL
|
|
|
14649
14748
|
disabled = _ref3.disabled,
|
|
14650
14749
|
theme = _ref3.theme,
|
|
14651
14750
|
colorSetting = _ref3.colorSetting;
|
|
14652
|
-
return disabled ? css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? css(_templateObject4$
|
|
14751
|
+
return disabled ? css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
|
|
14653
14752
|
hover: 'blue'
|
|
14654
14753
|
}, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
|
|
14655
14754
|
});
|
|
@@ -14665,7 +14764,7 @@ var SelectAllContainer = styled.div(_templateObject3$e || (_templateObject3$e =
|
|
|
14665
14764
|
});
|
|
14666
14765
|
|
|
14667
14766
|
var Header$2 = function Header() {
|
|
14668
|
-
var context = useContext$
|
|
14767
|
+
var context = useContext$2();
|
|
14669
14768
|
|
|
14670
14769
|
if (!context.props.search) {
|
|
14671
14770
|
return React__default.createElement(React__default.Fragment, null);
|
|
@@ -14714,7 +14813,7 @@ var Header$2 = function Header() {
|
|
|
14714
14813
|
};
|
|
14715
14814
|
|
|
14716
14815
|
var Label$2 = function Label(props) {
|
|
14717
|
-
var context = useContext$
|
|
14816
|
+
var context = useContext$2();
|
|
14718
14817
|
var _context$checked = context.checked,
|
|
14719
14818
|
checked = _context$checked[0],
|
|
14720
14819
|
setChecked = _context$checked[1];
|
|
@@ -14813,7 +14912,7 @@ var useSelectMultiple = function useSelectMultiple(props) {
|
|
|
14813
14912
|
maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
|
|
14814
14913
|
},
|
|
14815
14914
|
getContext: function getContext(base, children) {
|
|
14816
|
-
return React__default.createElement(Provider$
|
|
14915
|
+
return React__default.createElement(Provider$2.Provider, {
|
|
14817
14916
|
value: _extends({}, base, {
|
|
14818
14917
|
props: props,
|
|
14819
14918
|
options: options,
|
|
@@ -15421,7 +15520,7 @@ var Phone = Object.assign(Component, {
|
|
|
15421
15520
|
getPhoneDetails: getPhoneDetails
|
|
15422
15521
|
});
|
|
15423
15522
|
|
|
15424
|
-
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$
|
|
15523
|
+
var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$b, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
|
|
15425
15524
|
var RelativeContainer$4 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
|
|
15426
15525
|
var LabelContainer$2 = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
|
|
15427
15526
|
var theme = _ref.theme;
|
|
@@ -15437,7 +15536,7 @@ var Container$5 = styled.div(_templateObject3$h || (_templateObject3$h = _tagged
|
|
|
15437
15536
|
var borderwidth = 1;
|
|
15438
15537
|
|
|
15439
15538
|
if (paddingless) {
|
|
15440
|
-
return css(_templateObject4$
|
|
15539
|
+
return css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(100% - ", "px - ", ");\n height: calc(17px + ", "px);\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, borderwidth * 2);
|
|
15441
15540
|
}
|
|
15442
15541
|
|
|
15443
15542
|
return css(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n bottom: ", "px;\n left: ", "px;\n width: calc(\n 100% - ", "px - ", " - ", "\n );\n height: calc(31px + ", "px);\n padding: ", " 0 ", " ", ";\n "])), borderwidth, borderwidth, borderwidth * 2, iconWidth, theme.spacings.s3, borderwidth * 2, theme.spacings.s2, theme.spacings.s2, theme.spacings.s3);
|
|
@@ -15571,7 +15670,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
|
|
|
15571
15670
|
});
|
|
15572
15671
|
DatePicker.displayName = 'DatePicker';
|
|
15573
15672
|
|
|
15574
|
-
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$
|
|
15673
|
+
var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$9;
|
|
15575
15674
|
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) {
|
|
15576
15675
|
var theme = _ref.theme;
|
|
15577
15676
|
return theme.useTypography('p');
|
|
@@ -15587,7 +15686,7 @@ var Label$4 = styled.label(_templateObject3$i || (_templateObject3$i = _taggedTe
|
|
|
15587
15686
|
var disabled = _ref4.disabled;
|
|
15588
15687
|
|
|
15589
15688
|
if (!disabled) {
|
|
15590
|
-
return css(_templateObject4$
|
|
15689
|
+
return css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
15591
15690
|
}
|
|
15592
15691
|
|
|
15593
15692
|
return css(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
@@ -15635,22 +15734,35 @@ var Label$4 = styled.label(_templateObject3$i || (_templateObject3$i = _taggedTe
|
|
|
15635
15734
|
});
|
|
15636
15735
|
|
|
15637
15736
|
var Switch = function Switch(props) {
|
|
15638
|
-
var
|
|
15639
|
-
|
|
15640
|
-
|
|
15737
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
15738
|
+
isRequired = _Form$useContext.isRequired,
|
|
15739
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
15740
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
15741
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
15742
|
+
|
|
15743
|
+
var invalid = isInvalid() || props.invalid;
|
|
15744
|
+
var required = isRequired() || props.required;
|
|
15745
|
+
var disabled = isDisabled() || props.disabled;
|
|
15746
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
15641
15747
|
var label = isObject(props.label) ? props.label : {
|
|
15642
15748
|
label: props.label
|
|
15643
15749
|
};
|
|
15644
|
-
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
|
|
15750
|
+
var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps', 'viewMode']);
|
|
15645
15751
|
htmlProps.disabled = props.disabled || props.htmlDisabled;
|
|
15646
15752
|
return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
|
|
15647
15753
|
disabled: disabled ? 1 : 0,
|
|
15648
15754
|
invalid: invalid ? 1 : 0
|
|
15649
15755
|
}), label.label && React__default.createElement(LabelContainer$3, {
|
|
15650
15756
|
required: required ? 1 : 0
|
|
15651
|
-
}, label.label),
|
|
15757
|
+
}, label.label), viewMode ? React__default.createElement(LabelContainer$3, {
|
|
15758
|
+
children: label[props.checked ? 'after' : 'before']
|
|
15759
|
+
}) : React__default.createElement(React__default.Fragment, null, label.before && React__default.createElement(LabelContainer$3, {
|
|
15760
|
+
children: label.before
|
|
15761
|
+
}), React__default.createElement("input", Object.assign({}, htmlProps, {
|
|
15652
15762
|
type: 'checkbox'
|
|
15653
|
-
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3,
|
|
15763
|
+
})), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, {
|
|
15764
|
+
children: label.after
|
|
15765
|
+
})));
|
|
15654
15766
|
};
|
|
15655
15767
|
|
|
15656
15768
|
var _templateObject$t, _templateObject2$n;
|
|
@@ -15725,7 +15837,7 @@ var NavBar = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplat
|
|
|
15725
15837
|
});
|
|
15726
15838
|
|
|
15727
15839
|
var _templateObject$y, _templateObject2$q, _templateObject3$l;
|
|
15728
|
-
var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height:
|
|
15840
|
+
var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n width: ", ";\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) {
|
|
15729
15841
|
var theme = _ref.theme;
|
|
15730
15842
|
return theme.useTypography('p');
|
|
15731
15843
|
}, function (_ref2) {
|
|
@@ -15759,15 +15871,18 @@ var LabelsContainer = styled.div(_templateObject$B || (_templateObject$B = _tagg
|
|
|
15759
15871
|
var position = _ref.position;
|
|
15760
15872
|
|
|
15761
15873
|
if (position === 'bottom') {
|
|
15762
|
-
return css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% +
|
|
15874
|
+
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);
|
|
15763
15875
|
}
|
|
15764
15876
|
|
|
15765
|
-
return css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% +
|
|
15877
|
+
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);
|
|
15766
15878
|
});
|
|
15767
15879
|
|
|
15768
15880
|
var _templateObject$C;
|
|
15769
15881
|
var MarkersContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
|
|
15770
15882
|
|
|
15883
|
+
var _templateObject$D;
|
|
15884
|
+
var ViewModeContainer = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
|
|
15885
|
+
|
|
15771
15886
|
var getMarkers = function getMarkers(props) {
|
|
15772
15887
|
if (props.markers && 'markers' in props.markers) {
|
|
15773
15888
|
var _strict = props.markers.strict;
|
|
@@ -15866,12 +15981,20 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15866
15981
|
var label = props.label,
|
|
15867
15982
|
minLabel = props.minLabel,
|
|
15868
15983
|
maxLabel = props.maxLabel,
|
|
15869
|
-
invalid = props.invalid,
|
|
15870
|
-
disabled = props.disabled,
|
|
15871
|
-
required = props.required,
|
|
15872
15984
|
width = props.width,
|
|
15873
15985
|
setValue = props.setValue;
|
|
15874
15986
|
|
|
15987
|
+
var _Form$useContext = Form.useContext(props.name),
|
|
15988
|
+
isRequired = _Form$useContext.isRequired,
|
|
15989
|
+
isInvalid = _Form$useContext.isInvalid,
|
|
15990
|
+
isViewMode = _Form$useContext.isViewMode,
|
|
15991
|
+
isDisabled = _Form$useContext.isDisabled;
|
|
15992
|
+
|
|
15993
|
+
var invalid = isInvalid() || props.invalid;
|
|
15994
|
+
var required = isRequired() || props.required;
|
|
15995
|
+
var disabled = isDisabled() || props.disabled;
|
|
15996
|
+
var viewMode = isViewMode() || props.viewMode;
|
|
15997
|
+
|
|
15875
15998
|
var _getMarkers = getMarkers(props),
|
|
15876
15999
|
min = _getMarkers.min,
|
|
15877
16000
|
max = _getMarkers.max,
|
|
@@ -15967,7 +16090,9 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
15967
16090
|
width: width
|
|
15968
16091
|
}, label && React__default.createElement("div", {
|
|
15969
16092
|
children: label
|
|
15970
|
-
}), React__default.createElement(
|
|
16093
|
+
}), viewMode ? React__default.createElement(ViewModeContainer, {
|
|
16094
|
+
children: currentValue
|
|
16095
|
+
}) : React__default.createElement(LabelsContainer, {
|
|
15971
16096
|
position: position
|
|
15972
16097
|
}, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
|
|
15973
16098
|
invalid: invalid ? 1 : 0
|
|
@@ -16021,8 +16146,8 @@ var Range = React__default.forwardRef(function (props, ref) {
|
|
|
16021
16146
|
});
|
|
16022
16147
|
Range.displayName = 'input';
|
|
16023
16148
|
|
|
16024
|
-
var _templateObject$
|
|
16025
|
-
var LabelContainer$5 = styled.div(_templateObject$
|
|
16149
|
+
var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a;
|
|
16150
|
+
var LabelContainer$5 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
|
|
16026
16151
|
var theme = _ref.theme;
|
|
16027
16152
|
return theme.useTypography('p');
|
|
16028
16153
|
});
|
|
@@ -16036,7 +16161,7 @@ var Label$6 = styled.label(_templateObject2$t || (_templateObject2$t = _taggedTe
|
|
|
16036
16161
|
return css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
|
|
16037
16162
|
}
|
|
16038
16163
|
|
|
16039
|
-
return css(_templateObject4$
|
|
16164
|
+
return css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
|
|
16040
16165
|
}, function (_ref4) {
|
|
16041
16166
|
var required = _ref4.required;
|
|
16042
16167
|
if (!required) return;
|
|
@@ -16264,8 +16389,8 @@ var parse = function parse(value) {
|
|
|
16264
16389
|
});
|
|
16265
16390
|
};
|
|
16266
16391
|
|
|
16267
|
-
var _templateObject$
|
|
16268
|
-
var RelativeContainer$5 = styled.div(_templateObject$
|
|
16392
|
+
var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
|
|
16393
|
+
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"])));
|
|
16269
16394
|
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) {
|
|
16270
16395
|
var theme = _ref.theme;
|
|
16271
16396
|
return theme.useTypography('p');
|
|
@@ -16279,7 +16404,7 @@ var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _t
|
|
|
16279
16404
|
}, function (_ref4) {
|
|
16280
16405
|
var onClick = _ref4.onClick;
|
|
16281
16406
|
if (!onClick) return;
|
|
16282
|
-
return css(_templateObject4$
|
|
16407
|
+
return css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
|
|
16283
16408
|
});
|
|
16284
16409
|
var Container$6 = styled.div(_templateObject5$c || (_templateObject5$c = _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) {
|
|
16285
16410
|
var theme = _ref5.theme;
|
|
@@ -16552,8 +16677,8 @@ var DatePicker$1 = Object.assign(Component$1, {
|
|
|
16552
16677
|
useDefaultDateIntervalState: useDefaultDateIntervalState
|
|
16553
16678
|
});
|
|
16554
16679
|
|
|
16555
|
-
var _templateObject$
|
|
16556
|
-
var Input$3 = styled.input(_templateObject$
|
|
16680
|
+
var _templateObject$G;
|
|
16681
|
+
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) {
|
|
16557
16682
|
var theme = _ref.theme;
|
|
16558
16683
|
return theme.useTypography('p');
|
|
16559
16684
|
}, function (_ref2) {
|
|
@@ -16616,8 +16741,8 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
|
|
|
16616
16741
|
});
|
|
16617
16742
|
Input$4.displayName = 'Input';
|
|
16618
16743
|
|
|
16619
|
-
var _templateObject$
|
|
16620
|
-
var Label$7 = styled.div(_templateObject$
|
|
16744
|
+
var _templateObject$H, _templateObject2$v;
|
|
16745
|
+
var Label$7 = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
|
|
16621
16746
|
var theme = _ref.theme;
|
|
16622
16747
|
return theme.spacings.s1;
|
|
16623
16748
|
}, function (_ref2) {
|
|
@@ -16630,8 +16755,8 @@ var Label$8 = function Label(props) {
|
|
|
16630
16755
|
return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
|
|
16631
16756
|
};
|
|
16632
16757
|
|
|
16633
|
-
var _templateObject$
|
|
16634
|
-
var Tag = styled.div(_templateObject$
|
|
16758
|
+
var _templateObject$I;
|
|
16759
|
+
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) {
|
|
16635
16760
|
var theme = _ref.theme;
|
|
16636
16761
|
return theme.useTypography('p');
|
|
16637
16762
|
}, function (_ref2) {
|
|
@@ -16664,8 +16789,8 @@ var Tag$1 = function Tag$1(props) {
|
|
|
16664
16789
|
})));
|
|
16665
16790
|
};
|
|
16666
16791
|
|
|
16667
|
-
var _templateObject$
|
|
16668
|
-
var Label$9 = styled.label(_templateObject$
|
|
16792
|
+
var _templateObject$J, _templateObject2$w, _templateObject3$p;
|
|
16793
|
+
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) {
|
|
16669
16794
|
var theme = _ref.theme;
|
|
16670
16795
|
return theme.useTypography('p');
|
|
16671
16796
|
}, function (_ref2) {
|
|
@@ -16759,8 +16884,8 @@ var Tags = React__default.forwardRef(function (props, ref) {
|
|
|
16759
16884
|
});
|
|
16760
16885
|
Tags.displayName = 'Tags';
|
|
16761
16886
|
|
|
16762
|
-
var _templateObject$
|
|
16763
|
-
var RelativeContainer$6 = styled.div(_templateObject$
|
|
16887
|
+
var _templateObject$K;
|
|
16888
|
+
var RelativeContainer$6 = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
16764
16889
|
|
|
16765
16890
|
var isLeapYear$1 = function isLeapYear(year) {
|
|
16766
16891
|
if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
|
|
@@ -17161,8 +17286,8 @@ var Input$5 = Object.assign(Component$2, {
|
|
|
17161
17286
|
getPhoneDetails: Phone.getPhoneDetails
|
|
17162
17287
|
});
|
|
17163
17288
|
|
|
17164
|
-
var _templateObject$
|
|
17165
|
-
var Container$7 = styled(AbsoluteContainer)(_templateObject$
|
|
17289
|
+
var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$f;
|
|
17290
|
+
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) {
|
|
17166
17291
|
var theme = _ref.theme;
|
|
17167
17292
|
return theme.colors.white;
|
|
17168
17293
|
}, function (_ref2) {
|
|
@@ -17185,7 +17310,7 @@ var Title = styled.div(_templateObject3$q || (_templateObject3$q = _taggedTempla
|
|
|
17185
17310
|
var getColor = _ref6.theme.getColor;
|
|
17186
17311
|
return getColor('greyishBlue', 50);
|
|
17187
17312
|
});
|
|
17188
|
-
var Item = styled.div(_templateObject4$
|
|
17313
|
+
var Item = styled.div(_templateObject4$f || (_templateObject4$f = _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) {
|
|
17189
17314
|
var s1 = _ref7.theme.spacings.s1;
|
|
17190
17315
|
return s1 + " " + s1 + " " + s1 + " 0";
|
|
17191
17316
|
}, function (_ref8) {
|
|
@@ -17299,8 +17424,8 @@ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
|
|
|
17299
17424
|
}))));
|
|
17300
17425
|
};
|
|
17301
17426
|
|
|
17302
|
-
var _templateObject$
|
|
17303
|
-
var Container$8 = styled.div(_templateObject$
|
|
17427
|
+
var _templateObject$M, _templateObject2$y, _templateObject3$r;
|
|
17428
|
+
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) {
|
|
17304
17429
|
var theme = _ref.theme,
|
|
17305
17430
|
gap = _ref.$gap;
|
|
17306
17431
|
return gap === '0' ? '0' : theme.spacings[gap];
|
|
@@ -17366,13 +17491,13 @@ var AppliedFilters = Object.assign(function (props) {
|
|
|
17366
17491
|
Menu: AppliedFiltersMenu
|
|
17367
17492
|
});
|
|
17368
17493
|
|
|
17369
|
-
var _templateObject$
|
|
17370
|
-
var Container$9 = styled.div(_templateObject$
|
|
17494
|
+
var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$g, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$8;
|
|
17495
|
+
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) {
|
|
17371
17496
|
return props.size === 'mini' && css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
|
|
17372
17497
|
}, function (props) {
|
|
17373
17498
|
return props.size === 'small' && css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
|
|
17374
17499
|
}, function (props) {
|
|
17375
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
17500
|
+
return props.size === 'medium' && css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
|
|
17376
17501
|
}, function (props) {
|
|
17377
17502
|
return props.size === 'big' && css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
|
|
17378
17503
|
}, function (props) {
|
|
@@ -17396,8 +17521,8 @@ var Card = function Card(_ref) {
|
|
|
17396
17521
|
return React__default.createElement(Container$9, Object.assign({}, rest), children);
|
|
17397
17522
|
};
|
|
17398
17523
|
|
|
17399
|
-
var _templateObject$
|
|
17400
|
-
var Container$a = styled.div(_templateObject$
|
|
17524
|
+
var _templateObject$O;
|
|
17525
|
+
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) {
|
|
17401
17526
|
var s1 = _ref.theme.spacings.s1;
|
|
17402
17527
|
return "0 0 " + s1 + " " + s1;
|
|
17403
17528
|
}, function (_ref2) {
|
|
@@ -17458,8 +17583,8 @@ var Header$4 = function Header(props) {
|
|
|
17458
17583
|
}));
|
|
17459
17584
|
};
|
|
17460
17585
|
|
|
17461
|
-
var _templateObject$
|
|
17462
|
-
var EmptyMessage = styled.div(_templateObject$
|
|
17586
|
+
var _templateObject$P;
|
|
17587
|
+
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) {
|
|
17463
17588
|
var lightGrey = _ref.theme.colors.lightGrey;
|
|
17464
17589
|
return lightGrey;
|
|
17465
17590
|
});
|
|
@@ -17800,14 +17925,14 @@ var Filters = Object.assign(function (props) {
|
|
|
17800
17925
|
Menu: FiltersMenu
|
|
17801
17926
|
});
|
|
17802
17927
|
|
|
17803
|
-
var Provider$
|
|
17928
|
+
var Provider$3 = React__default.createContext({
|
|
17804
17929
|
cols: {}
|
|
17805
17930
|
});
|
|
17806
|
-
var useContext$
|
|
17807
|
-
return React__default.useContext(Provider$
|
|
17931
|
+
var useContext$3 = function useContext() {
|
|
17932
|
+
return React__default.useContext(Provider$3);
|
|
17808
17933
|
};
|
|
17809
17934
|
|
|
17810
|
-
var _templateObject$
|
|
17935
|
+
var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2;
|
|
17811
17936
|
var aligns = {
|
|
17812
17937
|
self: {
|
|
17813
17938
|
horizontal: {
|
|
@@ -17836,7 +17961,7 @@ var aligns = {
|
|
|
17836
17961
|
}
|
|
17837
17962
|
}
|
|
17838
17963
|
};
|
|
17839
|
-
var Col = styled.div(_templateObject$
|
|
17964
|
+
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) {
|
|
17840
17965
|
var width = _ref.width;
|
|
17841
17966
|
|
|
17842
17967
|
if (width === undefined) {
|
|
@@ -17846,7 +17971,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17846
17971
|
}
|
|
17847
17972
|
|
|
17848
17973
|
var w = parseFloat(width) * 100 / 12;
|
|
17849
|
-
return css(_templateObject4$
|
|
17974
|
+
return css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
|
|
17850
17975
|
}, function (_ref2) {
|
|
17851
17976
|
var spacing = _ref2.spacing;
|
|
17852
17977
|
var padding = getSpacings(spacing === undefined ? 's1' : spacing);
|
|
@@ -17925,7 +18050,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
|
|
|
17925
18050
|
});
|
|
17926
18051
|
|
|
17927
18052
|
var Col$1 = React__default.forwardRef(function (props, ref) {
|
|
17928
|
-
var context = useContext$
|
|
18053
|
+
var context = useContext$3();
|
|
17929
18054
|
|
|
17930
18055
|
var _props = _extends({}, context.cols, props);
|
|
17931
18056
|
|
|
@@ -17936,16 +18061,16 @@ var Col$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17936
18061
|
});
|
|
17937
18062
|
Col$1.displayName = 'Col';
|
|
17938
18063
|
|
|
17939
|
-
var Provider$
|
|
18064
|
+
var Provider$4 = React__default.createContext({
|
|
17940
18065
|
rows: {},
|
|
17941
18066
|
cols: {}
|
|
17942
18067
|
});
|
|
17943
|
-
var useContext$
|
|
17944
|
-
return React__default.useContext(Provider$
|
|
18068
|
+
var useContext$4 = function useContext() {
|
|
18069
|
+
return React__default.useContext(Provider$4);
|
|
17945
18070
|
};
|
|
17946
18071
|
|
|
17947
|
-
var _templateObject$
|
|
17948
|
-
var Grid = styled.div(_templateObject$
|
|
18072
|
+
var _templateObject$R, _templateObject2$B, _templateObject3$u;
|
|
18073
|
+
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) {
|
|
17949
18074
|
var spacing = _ref.spacing;
|
|
17950
18075
|
if (spacing === undefined) return;
|
|
17951
18076
|
var padding = getSpacings(spacing);
|
|
@@ -17961,7 +18086,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17961
18086
|
var cols = props.cols || {};
|
|
17962
18087
|
var rows = props.rows || {};
|
|
17963
18088
|
var gridProps = filterObject(props, ['cols', 'rows']);
|
|
17964
|
-
return React__default.createElement(Provider$
|
|
18089
|
+
return React__default.createElement(Provider$4.Provider, {
|
|
17965
18090
|
value: {
|
|
17966
18091
|
rows: rows,
|
|
17967
18092
|
cols: cols
|
|
@@ -17972,7 +18097,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
|
|
|
17972
18097
|
});
|
|
17973
18098
|
Grid$1.displayName = 'Grid';
|
|
17974
18099
|
|
|
17975
|
-
var _templateObject$
|
|
18100
|
+
var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
|
|
17976
18101
|
var horizontalAligns = {
|
|
17977
18102
|
around: 'space-around',
|
|
17978
18103
|
between: 'space-between',
|
|
@@ -17985,7 +18110,7 @@ var verticalAligns = {
|
|
|
17985
18110
|
top: 'start',
|
|
17986
18111
|
bottom: 'end'
|
|
17987
18112
|
};
|
|
17988
|
-
var Row = styled.div(_templateObject$
|
|
18113
|
+
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) {
|
|
17989
18114
|
var spacing = _ref.spacing;
|
|
17990
18115
|
if (spacing === undefined) return;
|
|
17991
18116
|
var padding = getSpacings(spacing);
|
|
@@ -17997,7 +18122,7 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
|
|
|
17997
18122
|
}, function (_ref3) {
|
|
17998
18123
|
var horizontalAlign = _ref3.horizontalAlign;
|
|
17999
18124
|
if (horizontalAlign === undefined) return;
|
|
18000
|
-
return css(_templateObject4$
|
|
18125
|
+
return css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
|
|
18001
18126
|
}, function (_ref4) {
|
|
18002
18127
|
var verticalAlign = _ref4.verticalAlign;
|
|
18003
18128
|
if (verticalAlign === undefined) return;
|
|
@@ -18051,12 +18176,12 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
|
|
|
18051
18176
|
});
|
|
18052
18177
|
|
|
18053
18178
|
var Row$1 = React__default.forwardRef(function (props, ref) {
|
|
18054
|
-
var context = useContext$
|
|
18179
|
+
var context = useContext$4();
|
|
18055
18180
|
|
|
18056
18181
|
var cols = _extends({}, context.cols, props.cols || {});
|
|
18057
18182
|
|
|
18058
18183
|
var rowProps = filterObject(props, ['cols'], _extends({}, context.rows));
|
|
18059
|
-
return React__default.createElement(Provider$
|
|
18184
|
+
return React__default.createElement(Provider$3.Provider, {
|
|
18060
18185
|
value: {
|
|
18061
18186
|
cols: cols
|
|
18062
18187
|
}
|
|
@@ -18103,8 +18228,8 @@ var widths = {
|
|
|
18103
18228
|
default: '642.5px'
|
|
18104
18229
|
};
|
|
18105
18230
|
|
|
18106
|
-
var _templateObject$
|
|
18107
|
-
var Background = styled.div(_templateObject$
|
|
18231
|
+
var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$j, _templateObject5$g, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$c, _templateObject10$b;
|
|
18232
|
+
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) {
|
|
18108
18233
|
var theme = _ref.theme;
|
|
18109
18234
|
return theme.getColor('black', 25);
|
|
18110
18235
|
});
|
|
@@ -18114,7 +18239,7 @@ var Header$5 = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTem
|
|
|
18114
18239
|
colors = _ref2$theme.colors,
|
|
18115
18240
|
spacings = _ref2$theme.spacings,
|
|
18116
18241
|
useTypography = _ref2$theme.useTypography;
|
|
18117
|
-
return css(_templateObject4$
|
|
18242
|
+
return css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
|
|
18118
18243
|
});
|
|
18119
18244
|
var Footer$2 = styled.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
|
|
18120
18245
|
var _ref3$theme = _ref3.theme,
|
|
@@ -18212,8 +18337,8 @@ var Modal = function Modal(props) {
|
|
|
18212
18337
|
}))))));
|
|
18213
18338
|
};
|
|
18214
18339
|
|
|
18215
|
-
var _templateObject$
|
|
18216
|
-
var Content$1 = styled.div(_templateObject$
|
|
18340
|
+
var _templateObject$U;
|
|
18341
|
+
var Content$1 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18217
18342
|
var theme = _ref.theme;
|
|
18218
18343
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18219
18344
|
});
|
|
@@ -18250,8 +18375,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
|
|
|
18250
18375
|
}, React__default.createElement(Content$1, null, children || content));
|
|
18251
18376
|
};
|
|
18252
18377
|
|
|
18253
|
-
var _templateObject$
|
|
18254
|
-
var Content$2 = styled.div(_templateObject$
|
|
18378
|
+
var _templateObject$V;
|
|
18379
|
+
var Content$2 = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18255
18380
|
var theme = _ref.theme;
|
|
18256
18381
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18257
18382
|
});
|
|
@@ -18291,8 +18416,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
|
|
|
18291
18416
|
}, React__default.createElement(Content$2, null, children || content));
|
|
18292
18417
|
};
|
|
18293
18418
|
|
|
18294
|
-
var _templateObject$
|
|
18295
|
-
var Content$3 = styled.div(_templateObject$
|
|
18419
|
+
var _templateObject$W;
|
|
18420
|
+
var Content$3 = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
|
|
18296
18421
|
var theme = _ref.theme;
|
|
18297
18422
|
return theme.spacings.s5 + " " + theme.spacings.s4;
|
|
18298
18423
|
});
|
|
@@ -18333,11 +18458,11 @@ var Modal$1 = Object.assign(Modal, {
|
|
|
18333
18458
|
Audit: Audit
|
|
18334
18459
|
});
|
|
18335
18460
|
|
|
18336
|
-
var _templateObject$
|
|
18337
|
-
var Container$c = styled.div(_templateObject$
|
|
18461
|
+
var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
|
|
18462
|
+
var Container$c = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
|
|
18338
18463
|
var Header$6 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18339
18464
|
var HeaderImage = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18340
|
-
var HeaderContent = styled.div(_templateObject4$
|
|
18465
|
+
var HeaderContent = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18341
18466
|
var MainContent = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18342
18467
|
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) {
|
|
18343
18468
|
return props.height;
|
|
@@ -18385,24 +18510,24 @@ var Template1 = function Template1(props) {
|
|
|
18385
18510
|
})));
|
|
18386
18511
|
};
|
|
18387
18512
|
|
|
18388
|
-
var _templateObject$
|
|
18389
|
-
var HeaderLine$1 = styled.div(_templateObject$
|
|
18513
|
+
var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$l, _templateObject5$i;
|
|
18514
|
+
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) {
|
|
18390
18515
|
return props.height;
|
|
18391
18516
|
}, function (props) {
|
|
18392
18517
|
return props.size === 'mini' && css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18393
18518
|
}, function (props) {
|
|
18394
18519
|
return props.size === 'small' && css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18395
18520
|
}, function (props) {
|
|
18396
|
-
return props.size === 'medium' && css(_templateObject4$
|
|
18521
|
+
return props.size === 'medium' && css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18397
18522
|
}, function (props) {
|
|
18398
18523
|
return props.size === 'large' && css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
|
|
18399
18524
|
});
|
|
18400
18525
|
|
|
18401
|
-
var _templateObject$
|
|
18402
|
-
var Container$d = styled.div(_templateObject$
|
|
18526
|
+
var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$m, _templateObject5$j, _templateObject6$h, _templateObject7$h, _templateObject8$e;
|
|
18527
|
+
var Container$d = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18403
18528
|
var Template2Container = styled(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
|
|
18404
18529
|
var Header$7 = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
18405
|
-
var HeaderImage$1 = styled.div(_templateObject4$
|
|
18530
|
+
var HeaderImage$1 = styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
|
|
18406
18531
|
var HeaderContent$1 = styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
|
|
18407
18532
|
var MainContent$1 = styled.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
|
|
18408
18533
|
var MainLine$1 = styled(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
|
|
@@ -18429,8 +18554,8 @@ var Template2 = function Template2(props) {
|
|
|
18429
18554
|
})));
|
|
18430
18555
|
};
|
|
18431
18556
|
|
|
18432
|
-
var _templateObject$
|
|
18433
|
-
var Container$e = styled.div(_templateObject$
|
|
18557
|
+
var _templateObject$_, _templateObject2$H, _templateObject3$A;
|
|
18558
|
+
var Container$e = styled.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18434
18559
|
var Template3Container = styled(Container$e)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose([""])));
|
|
18435
18560
|
var Template3Line = styled(HeaderLine$1)(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
|
|
18436
18561
|
return props.height;
|
|
@@ -18461,14 +18586,14 @@ var Template3 = function Template3(props) {
|
|
|
18461
18586
|
}));
|
|
18462
18587
|
};
|
|
18463
18588
|
|
|
18464
|
-
var _templateObject
|
|
18465
|
-
var Container$f = styled.div(_templateObject
|
|
18589
|
+
var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$n, _templateObject5$k, _templateObject6$i, _templateObject7$i, _templateObject8$f;
|
|
18590
|
+
var Container$f = styled.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
|
|
18466
18591
|
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) {
|
|
18467
18592
|
return props.height;
|
|
18468
18593
|
}, function (props) {
|
|
18469
18594
|
return props.size === 'mini' && css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18470
18595
|
}, function (props) {
|
|
18471
|
-
return props.size === 'small' && css(_templateObject4$
|
|
18596
|
+
return props.size === 'small' && css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18472
18597
|
}, function (props) {
|
|
18473
18598
|
return props.size === 'medium' && css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
|
|
18474
18599
|
}, function (props) {
|
|
@@ -18528,13 +18653,13 @@ var Template4 = function Template4(props) {
|
|
|
18528
18653
|
}));
|
|
18529
18654
|
};
|
|
18530
18655
|
|
|
18531
|
-
var _templateObject
|
|
18532
|
-
var Container$g = styled.div(_templateObject
|
|
18656
|
+
var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$o, _templateObject5$l, _templateObject6$j, _templateObject7$j, _templateObject8$g, _templateObject9$e;
|
|
18657
|
+
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"])));
|
|
18533
18658
|
var Circle = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
|
|
18534
18659
|
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) {
|
|
18535
18660
|
return props.height;
|
|
18536
18661
|
}, function (props) {
|
|
18537
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18662
|
+
return props.size === 'mini' && css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18538
18663
|
}, function (props) {
|
|
18539
18664
|
return props.size === 'small' && css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18540
18665
|
}, function (props) {
|
|
@@ -18576,11 +18701,11 @@ var Template5 = function Template5(props) {
|
|
|
18576
18701
|
})));
|
|
18577
18702
|
};
|
|
18578
18703
|
|
|
18579
|
-
var _templateObject$
|
|
18580
|
-
var Container$h = styled.div(_templateObject$
|
|
18704
|
+
var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$p, _templateObject5$m, _templateObject6$k, _templateObject7$k, _templateObject8$h, _templateObject9$f;
|
|
18705
|
+
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"])));
|
|
18581
18706
|
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"])));
|
|
18582
18707
|
var Footer$3 = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
|
|
18583
|
-
var HeaderLine$5 = styled.div(_templateObject4$
|
|
18708
|
+
var HeaderLine$5 = styled.div(_templateObject4$p || (_templateObject4$p = _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) {
|
|
18584
18709
|
return props.height;
|
|
18585
18710
|
}, function (props) {
|
|
18586
18711
|
return props.size === 'mini' && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
@@ -18619,13 +18744,13 @@ var Template6 = function Template6(props) {
|
|
|
18619
18744
|
})));
|
|
18620
18745
|
};
|
|
18621
18746
|
|
|
18622
|
-
var _templateObject$
|
|
18623
|
-
var Container$i = styled.div(_templateObject$
|
|
18747
|
+
var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$q, _templateObject5$n, _templateObject6$l, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject10$d;
|
|
18748
|
+
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"])));
|
|
18624
18749
|
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"])));
|
|
18625
18750
|
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) {
|
|
18626
18751
|
return props.height;
|
|
18627
18752
|
}, function (props) {
|
|
18628
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18753
|
+
return props.size === 'mini' && css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18629
18754
|
}, function (props) {
|
|
18630
18755
|
return props.size === 'small' && css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18631
18756
|
}, function (props) {
|
|
@@ -18653,13 +18778,13 @@ var Template7 = function Template7(props) {
|
|
|
18653
18778
|
})), 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)));
|
|
18654
18779
|
};
|
|
18655
18780
|
|
|
18656
|
-
var _templateObject$
|
|
18657
|
-
var Container$j = styled.div(_templateObject$
|
|
18781
|
+
var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$r, _templateObject5$o, _templateObject6$m, _templateObject7$m, _templateObject8$j, _templateObject9$h;
|
|
18782
|
+
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"])));
|
|
18658
18783
|
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"])));
|
|
18659
18784
|
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) {
|
|
18660
18785
|
return props.height;
|
|
18661
18786
|
}, function (props) {
|
|
18662
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18787
|
+
return props.size === 'mini' && css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18663
18788
|
}, function (props) {
|
|
18664
18789
|
return props.size === 'small' && css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18665
18790
|
}, function (props) {
|
|
@@ -18696,13 +18821,13 @@ var Template8 = function Template8(props) {
|
|
|
18696
18821
|
})));
|
|
18697
18822
|
};
|
|
18698
18823
|
|
|
18699
|
-
var _templateObject$
|
|
18700
|
-
var Container$k = styled.div(_templateObject$
|
|
18824
|
+
var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$s, _templateObject5$p, _templateObject6$n, _templateObject7$n, _templateObject8$k, _templateObject9$i, _templateObject10$e;
|
|
18825
|
+
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"])));
|
|
18701
18826
|
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"])));
|
|
18702
18827
|
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) {
|
|
18703
18828
|
return props.height;
|
|
18704
18829
|
}, function (props) {
|
|
18705
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18830
|
+
return props.size === 'mini' && css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18706
18831
|
}, function (props) {
|
|
18707
18832
|
return props.size === 'small' && css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18708
18833
|
}, function (props) {
|
|
@@ -18735,13 +18860,13 @@ var Template8$1 = function Template8(props) {
|
|
|
18735
18860
|
})), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
|
|
18736
18861
|
};
|
|
18737
18862
|
|
|
18738
|
-
var _templateObject$
|
|
18739
|
-
var Container$l = styled.div(_templateObject$
|
|
18863
|
+
var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
|
|
18864
|
+
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"])));
|
|
18740
18865
|
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"])));
|
|
18741
18866
|
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) {
|
|
18742
18867
|
return props.height;
|
|
18743
18868
|
}, function (props) {
|
|
18744
|
-
return props.size === 'mini' && css(_templateObject4$
|
|
18869
|
+
return props.size === 'mini' && css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
|
|
18745
18870
|
}, function (props) {
|
|
18746
18871
|
return props.size === 'small' && css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
|
|
18747
18872
|
}, function (props) {
|
|
@@ -18879,8 +19004,8 @@ var Placeholder = function Placeholder(props) {
|
|
|
18879
19004
|
}
|
|
18880
19005
|
};
|
|
18881
19006
|
|
|
18882
|
-
var _templateObject$
|
|
18883
|
-
var Container$m = styled.div(_templateObject$
|
|
19007
|
+
var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$u, _templateObject5$r, _templateObject6$p, _templateObject7$p;
|
|
19008
|
+
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"])));
|
|
18884
19009
|
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) {
|
|
18885
19010
|
return props.value + "%";
|
|
18886
19011
|
}, function (props) {
|
|
@@ -18889,7 +19014,7 @@ var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTem
|
|
|
18889
19014
|
return theme.colors.warningGray;
|
|
18890
19015
|
});
|
|
18891
19016
|
}, function (props) {
|
|
18892
|
-
return props.type === 'info' && css(_templateObject4$
|
|
19017
|
+
return props.type === 'info' && css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
|
|
18893
19018
|
var theme = _ref2.theme;
|
|
18894
19019
|
return theme.colors.blue;
|
|
18895
19020
|
});
|
|
@@ -18914,8 +19039,8 @@ var ProgressBar = function ProgressBar(props) {
|
|
|
18914
19039
|
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', "%"));
|
|
18915
19040
|
};
|
|
18916
19041
|
|
|
18917
|
-
var _templateObject$
|
|
18918
|
-
var Container$n = styled.div(_templateObject$
|
|
19042
|
+
var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$v, _templateObject5$s, _templateObject6$q, _templateObject7$q, _templateObject8$m;
|
|
19043
|
+
var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
18919
19044
|
var delimiters = {
|
|
18920
19045
|
blue: ['blue'],
|
|
18921
19046
|
grey: ['warningGray']
|
|
@@ -18948,7 +19073,7 @@ var Tabs = styled.ul(_templateObject2$Q || (_templateObject2$Q = _taggedTemplate
|
|
|
18948
19073
|
return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
|
|
18949
19074
|
}();
|
|
18950
19075
|
|
|
18951
|
-
return css(_templateObject4$
|
|
19076
|
+
return css(_templateObject4$v || (_templateObject4$v = _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);
|
|
18952
19077
|
}, function (_ref3) {
|
|
18953
19078
|
var theme = _ref3.theme,
|
|
18954
19079
|
internal = _ref3.$internal;
|
|
@@ -18983,6 +19108,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
18983
19108
|
status = _useState[0],
|
|
18984
19109
|
setStatus = _useState[1];
|
|
18985
19110
|
|
|
19111
|
+
var onClose = props.onClose || function () {};
|
|
19112
|
+
|
|
18986
19113
|
var activate = function activate(active, length) {
|
|
18987
19114
|
setStatus(function (prev) {
|
|
18988
19115
|
if (length !== undefined && length !== prev.length) {
|
|
@@ -19026,7 +19153,7 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19026
19153
|
activate(index);
|
|
19027
19154
|
};
|
|
19028
19155
|
|
|
19029
|
-
var onClickClose = function onClickClose(index) {
|
|
19156
|
+
var onClickClose = function onClickClose(index, tab, event) {
|
|
19030
19157
|
var getActive = function getActive(removed, prev) {
|
|
19031
19158
|
for (var i = index - 1; i > -1; i--) {
|
|
19032
19159
|
if (removed[i] !== 'closed') {
|
|
@@ -19059,9 +19186,10 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19059
19186
|
|
|
19060
19187
|
return status;
|
|
19061
19188
|
});
|
|
19189
|
+
onClose(index, tab, event);
|
|
19062
19190
|
};
|
|
19063
19191
|
|
|
19064
|
-
var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'alwaysOpen', 'delimiter', 'spacing']);
|
|
19192
|
+
var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'onClose', 'alwaysOpen', 'delimiter', 'spacing']);
|
|
19065
19193
|
return React__default.createElement(Container$n, Object.assign({}, divProps), React__default.createElement(Tabs, {
|
|
19066
19194
|
"$internal": props.internal,
|
|
19067
19195
|
"$delimiter": props.delimiter,
|
|
@@ -19078,8 +19206,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19078
19206
|
}, React__default.createElement("span", null, tab.label), !props.alwaysOpen && React__default.createElement(Icon, {
|
|
19079
19207
|
type: 'feather',
|
|
19080
19208
|
icon: 'x',
|
|
19081
|
-
onClick: function onClick() {
|
|
19082
|
-
return onClickClose(index);
|
|
19209
|
+
onClick: function onClick(e) {
|
|
19210
|
+
return onClickClose(index, tab, e);
|
|
19083
19211
|
},
|
|
19084
19212
|
width: '14px',
|
|
19085
19213
|
height: '14px',
|
|
@@ -19091,8 +19219,8 @@ var Tabs$1 = function Tabs$1(props) {
|
|
|
19091
19219
|
}));
|
|
19092
19220
|
};
|
|
19093
19221
|
|
|
19094
|
-
var _templateObject$
|
|
19095
|
-
var Container$o = styled.textarea(_templateObject$
|
|
19222
|
+
var _templateObject$18;
|
|
19223
|
+
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) {
|
|
19096
19224
|
return "" + props.width;
|
|
19097
19225
|
}, function (props) {
|
|
19098
19226
|
return "" + props.height;
|
|
@@ -19102,15 +19230,15 @@ var TextArea = function TextArea(props) {
|
|
|
19102
19230
|
return React__default.createElement(Container$o, Object.assign({}, props));
|
|
19103
19231
|
};
|
|
19104
19232
|
|
|
19105
|
-
var _templateObject$
|
|
19106
|
-
var Container$p = styled.div(_templateObject$
|
|
19233
|
+
var _templateObject$19, _templateObject2$R, _templateObject3$K, _templateObject4$w, _templateObject5$t, _templateObject6$r;
|
|
19234
|
+
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) {
|
|
19107
19235
|
return props.size === 'large' ? '837px' : '460px';
|
|
19108
19236
|
}, function (props) {
|
|
19109
19237
|
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 "])));
|
|
19110
19238
|
}, function (props) {
|
|
19111
19239
|
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 "])));
|
|
19112
19240
|
}, function (props) {
|
|
19113
|
-
return props.color === 'warning' && css(_templateObject4$
|
|
19241
|
+
return props.color === 'warning' && css(_templateObject4$w || (_templateObject4$w = _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 "])));
|
|
19114
19242
|
});
|
|
19115
19243
|
var IconContainer$2 = styled.div(_templateObject5$t || (_templateObject5$t = _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"])));
|
|
19116
19244
|
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"])));
|
|
@@ -19125,8 +19253,8 @@ var Toast = function Toast(props) {
|
|
|
19125
19253
|
})), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
|
|
19126
19254
|
};
|
|
19127
19255
|
|
|
19128
|
-
var _templateObject$
|
|
19129
|
-
var Image = styled.img(_templateObject$
|
|
19256
|
+
var _templateObject$1a, _templateObject2$S, _templateObject3$L, _templateObject4$x, _templateObject5$u;
|
|
19257
|
+
var Image = styled.img(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
|
|
19130
19258
|
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) {
|
|
19131
19259
|
var width = _ref.width;
|
|
19132
19260
|
|
|
@@ -19158,7 +19286,7 @@ var Dimmer = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTempl
|
|
|
19158
19286
|
var theme = _ref3.theme;
|
|
19159
19287
|
return theme.getColor('greyishBlue', 50);
|
|
19160
19288
|
});
|
|
19161
|
-
var Button$6 = styled(Button$1)(_templateObject4$
|
|
19289
|
+
var Button$6 = styled(Button$1)(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
|
|
19162
19290
|
var theme = _ref4.theme;
|
|
19163
19291
|
return theme.getColor('white', 50);
|
|
19164
19292
|
});
|
|
@@ -19198,5 +19326,5 @@ var Zoom = function Zoom(props) {
|
|
|
19198
19326
|
}))));
|
|
19199
19327
|
};
|
|
19200
19328
|
|
|
19201
|
-
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 };
|
|
19329
|
+
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 };
|
|
19202
19330
|
//# sourceMappingURL=index.modern.js.map
|