@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/index.js CHANGED
@@ -12226,11 +12226,11 @@ var Input = styled__default.input(_templateObject4$3 || (_templateObject4$3 = _t
12226
12226
  return theme.useTypography('p');
12227
12227
  }, function (_ref4) {
12228
12228
  var theme = _ref4.theme,
12229
- invalid = _ref4.invalid;
12229
+ invalid = _ref4.$invalid;
12230
12230
  return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
12231
12231
  }, function (_ref5) {
12232
12232
  var theme = _ref5.theme,
12233
- invalid = _ref5.invalid;
12233
+ invalid = _ref5.$invalid;
12234
12234
  return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
12235
12235
  }, function (_ref6) {
12236
12236
  var placeholder = _ref6.placeholder;
@@ -12245,7 +12245,7 @@ var Input = styled__default.input(_templateObject4$3 || (_templateObject4$3 = _t
12245
12245
  return styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12246
12246
  }, function (_ref8) {
12247
12247
  var theme = _ref8.theme,
12248
- paddingless = _ref8.paddingless;
12248
+ paddingless = _ref8.$paddingless;
12249
12249
 
12250
12250
  if (paddingless) {
12251
12251
  return styled.css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n padding: 0;\n "])));
@@ -12254,17 +12254,17 @@ var Input = styled__default.input(_templateObject4$3 || (_templateObject4$3 = _t
12254
12254
  return styled.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);
12255
12255
  }, function (_ref9) {
12256
12256
  var theme = _ref9.theme,
12257
- invalid = _ref9.invalid,
12258
- borderless = _ref9.borderless;
12257
+ invalid = _ref9.$invalid,
12258
+ borderless = _ref9.$borderless;
12259
12259
  if (borderless) return 'transparent';
12260
12260
  return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
12261
12261
  }, function (_ref10) {
12262
12262
  var theme = _ref10.theme,
12263
- invalid = _ref10.invalid;
12263
+ invalid = _ref10.$invalid;
12264
12264
  var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12265
12265
  return styled.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);
12266
12266
  }, function (_ref11) {
12267
- var arrows = _ref11.arrows;
12267
+ var arrows = _ref11.$arrows;
12268
12268
  if (arrows) return;
12269
12269
  return styled.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 "])));
12270
12270
  }, function (_ref12) {
@@ -12278,33 +12278,33 @@ var InputContainer = styled__default.div(_templateObject12$1 || (_templateObject
12278
12278
  var width = _ref13.width;
12279
12279
  return width || '100%';
12280
12280
  });
12281
- var Label = styled__default.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) {
12281
+ var Label = styled__default.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) {
12282
12282
  var theme = _ref14.theme;
12283
12283
  return theme.useTypography('p');
12284
12284
  }, function (_ref15) {
12285
12285
  var theme = _ref15.theme;
12286
12286
  return theme.colors.greyishBlue;
12287
12287
  }, function (_ref16) {
12288
- var width = _ref16.width;
12288
+ var width = _ref16.$width;
12289
12289
  return width || '100%';
12290
12290
  }, function (_ref17) {
12291
- var disabled = _ref17.disabled;
12291
+ var disabled = _ref17.$disabled;
12292
12292
  if (!disabled) return;
12293
12293
  return styled.css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12294
12294
  }, InputContainer, IconContainer, function (_ref18) {
12295
12295
  var theme = _ref18.theme,
12296
- paddingless = _ref18.paddingless;
12296
+ paddingless = _ref18.$paddingless;
12297
12297
  return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12298
12298
  }, function (_ref19) {
12299
- var readOnly = _ref19.readOnly,
12300
- disabled = _ref19.disabled,
12301
- loading = _ref19.loading;
12299
+ var readOnly = _ref19.$readOnly,
12300
+ disabled = _ref19.$disabled,
12301
+ loading = _ref19.$loading;
12302
12302
  if (loading || readOnly || disabled) return;
12303
12303
  return styled.css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12304
12304
  }, function (_ref20) {
12305
12305
  var theme = _ref20.theme,
12306
- icon = _ref20.icon,
12307
- paddingless = _ref20.paddingless;
12306
+ icon = _ref20.$icon,
12307
+ paddingless = _ref20.$paddingless;
12308
12308
  if (!icon) return;
12309
12309
  var width = icon.width,
12310
12310
  position = icon.position;
@@ -12317,36 +12317,117 @@ var Label = styled__default.label(_templateObject13$1 || (_templateObject13$1 =
12317
12317
  return styled.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);
12318
12318
  });
12319
12319
  var LabelText = styled__default.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
12320
- var theme = _ref21.theme;
12321
- return theme.spacings.s1;
12320
+ var theme = _ref21.theme,
12321
+ viewMode = _ref21.$viewMode;
12322
+ return theme.spacings[viewMode ? 's3' : 's1'];
12322
12323
  }, function (_ref22) {
12323
- var required = _ref22.required;
12324
+ var required = _ref22.$required;
12324
12325
  if (!required) return;
12325
12326
  return styled.css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12326
12327
  });
12327
12328
 
12329
+ var defaultValue = {
12330
+ isRequired: function isRequired() {
12331
+ return false;
12332
+ },
12333
+ isInvalid: function isInvalid() {
12334
+ return false;
12335
+ },
12336
+ isViewMode: function isViewMode() {
12337
+ return false;
12338
+ },
12339
+ isDisabled: function isDisabled() {
12340
+ return false;
12341
+ }
12342
+ };
12343
+ var Context = React__default.createContext(_extends({}, defaultValue));
12344
+
12345
+ var useContext = function useContext(name) {
12346
+ var context = React__default.useContext(Context);
12347
+ return _extends({
12348
+ isRequired: function isRequired() {
12349
+ return false;
12350
+ },
12351
+ isInvalid: function isInvalid() {
12352
+ return false;
12353
+ },
12354
+ isViewMode: function isViewMode() {
12355
+ return false;
12356
+ },
12357
+ isDisabled: function isDisabled() {
12358
+ return false;
12359
+ }
12360
+ }, name ? {
12361
+ isRequired: function isRequired() {
12362
+ return context.isRequired(name);
12363
+ },
12364
+ isInvalid: function isInvalid() {
12365
+ return context.isInvalid(name);
12366
+ },
12367
+ isViewMode: function isViewMode() {
12368
+ return context.isViewMode(name);
12369
+ },
12370
+ isDisabled: function isDisabled() {
12371
+ return context.isDisabled(name);
12372
+ }
12373
+ } : {});
12374
+ };
12375
+
12376
+ var Provider = function Provider(props) {
12377
+ return React__default.createElement(Context.Provider, Object.assign({}, props, {
12378
+ value: _extends({}, defaultValue, props.value)
12379
+ }));
12380
+ };
12381
+
12382
+ var Form = Object.assign(React__default.forwardRef(Object.assign(function (props, ref) {
12383
+ var formProps = filterObject(props, ['isRequired', 'isInvalid', 'isViewMode', 'isDisabled']);
12384
+ return React__default.createElement(Provider, {
12385
+ value: _extends({}, props.isRequired ? {
12386
+ isRequired: props.isRequired
12387
+ } : {}, props.isInvalid ? {
12388
+ isInvalid: props.isInvalid
12389
+ } : {}, props.isViewMode ? {
12390
+ isViewMode: props.isViewMode
12391
+ } : {}, props.isDisabled ? {
12392
+ isDisabled: props.isDisabled
12393
+ } : {})
12394
+ }, React__default.createElement("form", Object.assign({
12395
+ ref: ref
12396
+ }, formProps)));
12397
+ }, {
12398
+ displayName: 'Form'
12399
+ })), {
12400
+ useContext: useContext
12401
+ });
12402
+
12328
12403
  var Input$1 = React__default.forwardRef(function (props, ref) {
12329
12404
  var _props = _extends({}, props),
12330
12405
  label = _props.label,
12331
12406
  loading = _props.loading,
12407
+ readOnly = _props.readOnly,
12408
+ arrows = _props.arrows,
12409
+ borderless = _props.borderless,
12410
+ paddingless = _props.paddingless,
12332
12411
  clearable = _props.clearable,
12333
12412
  onPressEnter = _props.onPressEnter,
12334
12413
  width = _props.width;
12335
12414
 
12415
+ var _Form$useContext = Form.useContext(props.name),
12416
+ isRequired = _Form$useContext.isRequired,
12417
+ isInvalid = _Form$useContext.isInvalid,
12418
+ isViewMode = _Form$useContext.isViewMode,
12419
+ isDisabled = _Form$useContext.isDisabled;
12420
+
12336
12421
  var mask = getMask(props.mask);
12337
12422
  React.useEffect(function () {
12338
12423
  if (!isString(props.value)) return;
12339
12424
  var masked = mask(props.value);
12340
12425
  if (masked !== props.value) setValue(masked);
12341
12426
  }, [props.value]);
12342
- var intInvalid = props.invalid ? 1 : 0;
12343
- var intLoading = props.loading ? 1 : 0;
12344
- var intRequired = props.required ? 1 : 0;
12345
- var intDisabled = props.disabled ? 1 : 0;
12346
- var intReadOnly = props.readOnly ? 1 : 0;
12347
- var intArrows = props.arrows ? 1 : 0;
12348
- var intBorderless = props.borderless ? 1 : 0;
12349
- var intPaddingless = props.paddingless ? 1 : 0;
12427
+ var invalid = isInvalid() || props.invalid;
12428
+ var required = isRequired() || props.required;
12429
+ var disabled = isDisabled() || props.disabled;
12430
+ var viewMode = isViewMode() || props.viewMode;
12350
12431
  var position;
12351
12432
  var iconWidth;
12352
12433
  var iconSubmit;
@@ -12356,18 +12437,18 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12356
12437
  if (props.icon) {
12357
12438
  icon = _extends({}, props.icon.icon);
12358
12439
  position = props.icon.position || 'right';
12359
- if (intInvalid) icon.color = 'warningRed';
12440
+ if (invalid) icon.color = 'warningRed';
12360
12441
  iconWidth = icon.width;
12361
12442
  iconSubmit = props.icon.submit;
12362
12443
  iconOnClick = props.icon.onClick;
12363
12444
  }
12364
12445
 
12365
- var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
12366
- invalid: intInvalid,
12446
+ var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'viewMode', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
12447
+ $invalid: invalid,
12367
12448
  type: 'text',
12368
- arrows: intArrows,
12369
- borderless: intBorderless,
12370
- paddingless: intPaddingless
12449
+ $arrows: arrows,
12450
+ $borderless: borderless,
12451
+ $paddingless: paddingless
12371
12452
  });
12372
12453
 
12373
12454
  var onChange = inputProps.onChange || function () {};
@@ -12458,16 +12539,19 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12458
12539
  if (props.htmlDisabled) inputProps.disabled = true;
12459
12540
  if (props.htmlReadOnly) inputProps.readOnly = true;
12460
12541
  return React__default.createElement(Label, {
12461
- readOnly: intReadOnly,
12462
- disabled: intDisabled,
12463
- loading: intLoading,
12464
- invalid: intInvalid,
12465
- paddingless: intPaddingless,
12466
- icon: iconProps,
12467
- width: width
12542
+ "$readOnly": readOnly || viewMode,
12543
+ "$disabled": disabled,
12544
+ "$loading": loading,
12545
+ "$invalid": invalid,
12546
+ "$paddingless": paddingless,
12547
+ "$icon": iconProps,
12548
+ "$width": width
12468
12549
  }, label && React__default.createElement(LabelText, {
12469
- required: intRequired
12470
- }, label), React__default.createElement(InputContainer, {
12550
+ "$required": required,
12551
+ "$viewMode": viewMode
12552
+ }, label), viewMode ? React__default.createElement("div", {
12553
+ children: inputProps.value || props.children
12554
+ }) : React__default.createElement(InputContainer, {
12471
12555
  width: props.inputWidth
12472
12556
  }, React__default.createElement(Input, Object.assign({}, inputProps, {
12473
12557
  ref: ref
@@ -12487,17 +12571,18 @@ var Checkmark = styled__default.div(_templateObject$6 || (_templateObject$6 = _t
12487
12571
  var theme = _ref.theme;
12488
12572
  return theme.colors.white;
12489
12573
  }, function (_ref2) {
12490
- var theme = _ref2.theme;
12491
- return theme.colors.lightGrey;
12574
+ var theme = _ref2.theme,
12575
+ viewMode = _ref2.$viewMode;
12576
+ return viewMode ? 'transparent' : theme.colors.blue;
12492
12577
  }, function (_ref3) {
12493
12578
  var theme = _ref3.theme;
12494
12579
  return theme.colors.blue;
12495
12580
  });
12496
- var Label$1 = styled__default.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 border-color: ", ";\n\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) {
12581
+ var Label$1 = styled__default.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) {
12497
12582
  var theme = _ref4.theme;
12498
12583
  return theme.useTypography('p');
12499
12584
  }, function (_ref5) {
12500
- var padding = _ref5.padding,
12585
+ var padding = _ref5.$padding,
12501
12586
  theme = _ref5.theme;
12502
12587
  if (!padding) return;
12503
12588
  var _padding = {
@@ -12541,17 +12626,19 @@ var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 =
12541
12626
 
12542
12627
  return styled.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);
12543
12628
  }, function (_ref6) {
12544
- var disabled = _ref6.disabled;
12629
+ var disabled = _ref6.$disabled,
12630
+ readOnly = _ref6.$readOnly;
12545
12631
 
12546
- if (!disabled) {
12547
- return styled.css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12632
+ if (disabled) {
12633
+ return styled.css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12548
12634
  }
12549
12635
 
12550
- return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12636
+ if (readOnly) return;
12637
+ return styled.css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12551
12638
  }, function (_ref7) {
12552
12639
  var theme = _ref7.theme,
12553
- bordered = _ref7.bordered,
12554
- invalid = _ref7.invalid;
12640
+ bordered = _ref7.$bordered,
12641
+ invalid = _ref7.$invalid;
12555
12642
  if (!bordered) return;
12556
12643
  return styled.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']);
12557
12644
  }, size, size, function (_ref8) {
@@ -12561,32 +12648,37 @@ var Label$1 = styled__default.label(_templateObject2$6 || (_templateObject2$6 =
12561
12648
  var theme = _ref9.theme;
12562
12649
  return theme.colors.iceWhite;
12563
12650
  }, Checkmark, function (_ref10) {
12564
- var theme = _ref10.theme;
12565
- return theme.colors.blue;
12566
- }, function (_ref11) {
12567
- var theme = _ref11.theme,
12568
- invalid = _ref11.invalid;
12651
+ var theme = _ref10.theme,
12652
+ invalid = _ref10.$invalid;
12569
12653
  if (!invalid) return;
12570
12654
  return styled.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);
12571
- }, function (_ref12) {
12572
- var width = _ref12.width;
12655
+ }, function (_ref11) {
12656
+ var width = _ref11.$width;
12573
12657
  return width && styled.css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
12574
12658
  });
12575
- var LabelContent = styled__default.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 (_ref13) {
12576
- var theme = _ref13.theme;
12659
+ var LabelContent = styled__default.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) {
12660
+ var theme = _ref12.theme;
12577
12661
  return theme.useTypography('p');
12578
- }, function (_ref14) {
12579
- var required = _ref14.required;
12662
+ }, function (_ref13) {
12663
+ var required = _ref13.required;
12580
12664
  if (!required) return;
12581
12665
  return styled.css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12582
12666
  });
12583
12667
 
12584
12668
  var Checkbox = React__default.forwardRef(function (props, ref) {
12585
- var disabled = props.disabled,
12586
- required = props.required,
12587
- invalid = props.invalid,
12588
- padding = props.padding,
12669
+ var padding = props.padding,
12589
12670
  bordered = props.bordered;
12671
+
12672
+ var _Form$useContext = Form.useContext(props.name),
12673
+ isRequired = _Form$useContext.isRequired,
12674
+ isInvalid = _Form$useContext.isInvalid,
12675
+ isViewMode = _Form$useContext.isViewMode,
12676
+ isDisabled = _Form$useContext.isDisabled;
12677
+
12678
+ var invalid = isInvalid() || props.invalid;
12679
+ var required = isRequired() || props.required;
12680
+ var disabled = isDisabled() || props.disabled;
12681
+ var viewMode = isViewMode() || props.viewMode;
12590
12682
  var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'padding', 'bordered']);
12591
12683
 
12592
12684
  var _ref = function () {
@@ -12602,16 +12694,20 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
12602
12694
  children = _ref[1];
12603
12695
 
12604
12696
  return React__default.createElement(Label$1, {
12605
- disabled: disabled ? 1 : 0,
12606
- required: required ? 1 : 0,
12607
- invalid: invalid ? 1 : 0,
12608
- bordered: bordered ? 1 : 0,
12609
- padding: padding,
12610
- width: props.width
12697
+ "$disabled": disabled,
12698
+ "$required": required,
12699
+ "$invalid": invalid,
12700
+ "$bordered": !viewMode && bordered,
12701
+ "$padding": padding,
12702
+ "$readOnly": props.readOnly || viewMode,
12703
+ "$width": props.width
12611
12704
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
12612
12705
  type: 'checkbox',
12613
- ref: ref
12614
- })), React__default.createElement(Checkmark, null), React__default.createElement(LabelComponent, Object.assign({}, {
12706
+ ref: ref,
12707
+ disabled: htmlProps.disabled || viewMode
12708
+ })), React__default.createElement(Checkmark, {
12709
+ "$viewMode": viewMode
12710
+ }), React__default.createElement(LabelComponent, Object.assign({}, {
12615
12711
  disabled: disabled,
12616
12712
  required: required,
12617
12713
  invalid: invalid,
@@ -12687,27 +12783,30 @@ var Container$1 = styled__default.div(_templateObject$8 || (_templateObject$8 =
12687
12783
  return theme.spacings.s1;
12688
12784
  });
12689
12785
 
12690
- var _templateObject$9, _templateObject2$8, _templateObject3$8;
12691
- var OverflowContainer = styled__default.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 max-height: ", ";\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) {
12692
- var height = _ref.$height;
12693
- return height && styled.css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n height: ", ";\n "])), height);
12786
+ var _templateObject$9, _templateObject2$8, _templateObject3$8, _templateObject4$5;
12787
+ var OverflowContainer = styled__default.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) {
12788
+ var height = _ref.$height,
12789
+ maxHeight = _ref.$maxHeight;
12790
+
12791
+ if (height) {
12792
+ return styled.css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n min-height: ", ";\n max-height: ", ";\n "])), height, maxHeight || height);
12793
+ }
12794
+
12795
+ return styled.css(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-height: ", ";\n "])), maxHeight || '100%');
12694
12796
  }, function (_ref2) {
12695
- var maxHeight = _ref2.$maxHeight;
12696
- return maxHeight || '100%';
12797
+ var theme = _ref2.theme;
12798
+ return theme.colors.grey + " " + theme.colors.white;
12697
12799
  }, function (_ref3) {
12698
12800
  var theme = _ref3.theme;
12699
- return theme.colors.grey + " " + theme.colors.white;
12801
+ return theme.colors.grey;
12700
12802
  }, function (_ref4) {
12701
12803
  var theme = _ref4.theme;
12702
- return theme.colors.grey;
12703
- }, function (_ref5) {
12704
- var theme = _ref5.theme;
12705
12804
  return theme.colors.white;
12706
- }, function (_ref6) {
12707
- var spacing = _ref6.$spacing,
12708
- theme = _ref6.theme;
12805
+ }, function (_ref5) {
12806
+ var spacing = _ref5.$spacing,
12807
+ theme = _ref5.theme;
12709
12808
  var value = getSpacings(spacing || '0', '0').split(' ');
12710
- return styled.css(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
12809
+ return styled.css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n padding: ", " calc(", " * 1.5) ", "\n ", ";\n "])), value[0], theme.spacings.s1, value[2], value[3]);
12711
12810
  });
12712
12811
 
12713
12812
  var _templateObject$a;
@@ -12779,7 +12878,7 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
12779
12878
  });
12780
12879
  ScrollContainer.displayName = 'ScrollContainer';
12781
12880
 
12782
- var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
12881
+ var _templateObject$b, _templateObject2$9, _templateObject3$9, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$3, _templateObject9$3, _templateObject10$3;
12783
12882
  var Option = styled__default.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) {
12784
12883
  var theme = _ref.theme;
12785
12884
  return theme.useTypography('p');
@@ -12812,7 +12911,7 @@ var Option = styled__default.div(_templateObject$b || (_templateObject$b = _tagg
12812
12911
  var width = cfg.width || '1px';
12813
12912
  var style = cfg.style || 'solid';
12814
12913
  var color = isKeyOf(theme.colors, cfg.color) ? theme.colors[cfg.color] : cfg.color;
12815
- return styled.css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
12914
+ return styled.css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border-", "-width: ", ";\n border-", "-style: ", ";\n border-", "-color: ", ";\n "])), pos, width, pos, style, pos, color);
12816
12915
  });
12817
12916
  }, function (_ref7) {
12818
12917
  var theme = _ref7.theme;
@@ -12957,7 +13056,7 @@ var MenuComponent = function MenuComponent(props, ref) {
12957
13056
 
12958
13057
  var Menu = React__default.forwardRef(MenuComponent);
12959
13058
 
12960
- var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$6, _templateObject5$6, _templateObject6$5, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$4;
13059
+ var _templateObject$c, _templateObject2$a, _templateObject3$a, _templateObject4$7, _templateObject5$6, _templateObject6$5, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$4;
12961
13060
  var Container$3 = styled__default.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) {
12962
13061
  var theme = _ref.theme;
12963
13062
  return theme.spacings.s3;
@@ -12978,7 +13077,7 @@ var LabelContainer = styled__default.div(_templateObject3$a || (_templateObject3
12978
13077
  var theme = _ref5.theme;
12979
13078
  return theme.spacings.s3;
12980
13079
  });
12981
- var CalendarContainer = styled__default.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n"])), function (_ref6) {
13080
+ var CalendarContainer = styled__default.div(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n border: 1px solid ", ";\n"])), function (_ref6) {
12982
13081
  var theme = _ref6.theme;
12983
13082
  return theme.colors.lightestGrey;
12984
13083
  });
@@ -13118,7 +13217,7 @@ var Indicator = function Indicator(props) {
13118
13217
  }, props)));
13119
13218
  };
13120
13219
 
13121
- var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$2;
13220
+ var _templateObject$e, _templateObject2$c, _templateObject3$b, _templateObject4$8, _templateObject5$7, _templateObject6$6, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$5, _templateObject11$2;
13122
13221
  var Footer = styled__default.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"])));
13123
13222
  var WeekContainer = styled__default.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) {
13124
13223
  var theme = _ref.theme;
@@ -13143,7 +13242,7 @@ var Header = styled__default.div(_templateObject3$b || (_templateObject3$b = _ta
13143
13242
  var theme = _ref7.theme;
13144
13243
  return theme.getColor('lightestGrey', 40);
13145
13244
  }, WeekContainer);
13146
- var DayContainer = styled__default.button(_templateObject4$7 || (_templateObject4$7 = _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) {
13245
+ var DayContainer = styled__default.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) {
13147
13246
  var theme = _ref8.theme,
13148
13247
  appearance = _ref8.appearance,
13149
13248
  activeColor = _ref8.activeColor,
@@ -13778,7 +13877,7 @@ var getTimeProps = function getTimeProps(time, value) {
13778
13877
  });
13779
13878
  };
13780
13879
 
13781
- var _templateObject$h, _templateObject2$d, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
13880
+ var _templateObject$h, _templateObject2$d, _templateObject3$c, _templateObject4$9, _templateObject5$8, _templateObject6$7, _templateObject7$7, _templateObject8$6, _templateObject9$6, _templateObject10$6;
13782
13881
  var Button = styled__default.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) {
13783
13882
  var theme = _ref.theme,
13784
13883
  appearance = _ref.appearance;
@@ -13824,7 +13923,7 @@ var Button = styled__default.button(_templateObject$h || (_templateObject$h = _t
13824
13923
  theme = _ref7.theme;
13825
13924
 
13826
13925
  if (appearance === 'bordered') {
13827
- return styled.css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13926
+ return styled.css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n color: ", ";\n border: 1px solid ", ";\n "])), theme.getColor(color || 'blue', 70), theme.getColor(color || 'blue', 70));
13828
13927
  } else if (['link', 'borderless'].includes(appearance)) {
13829
13928
  return styled.css(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n "])), theme.colors.blue);
13830
13929
  }
@@ -14460,9 +14559,9 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
14460
14559
  });
14461
14560
  Date$1.displayName = 'Date';
14462
14561
 
14463
- var Provider = React__default.createContext({});
14464
- var useContext = function useContext() {
14465
- return React__default.useContext(Provider);
14562
+ var Provider$1 = React__default.createContext({});
14563
+ var useContext$1 = function useContext() {
14564
+ return React__default.useContext(Provider$1);
14466
14565
  };
14467
14566
 
14468
14567
  var _templateObject$l, _templateObject2$f;
@@ -14472,7 +14571,7 @@ var HeaderContainer = styled__default.div(_templateObject$l || (_templateObject$
14472
14571
  });
14473
14572
 
14474
14573
  var Header$1 = function Header() {
14475
- var context = useContext();
14574
+ var context = useContext$1();
14476
14575
 
14477
14576
  if (!context.props.search) {
14478
14577
  return React__default.createElement(React__default.Fragment, null);
@@ -14585,7 +14684,7 @@ var useSelect = function useSelect(props) {
14585
14684
  maxHeight: props.maxHeight || '180px'
14586
14685
  },
14587
14686
  getContext: function getContext(base, children) {
14588
- return React__default.createElement(Provider.Provider, {
14687
+ return React__default.createElement(Provider$1.Provider, {
14589
14688
  value: _extends({}, base, {
14590
14689
  props: props,
14591
14690
  options: options
@@ -14600,13 +14699,13 @@ var useSelect = function useSelect(props) {
14600
14699
  return parsed;
14601
14700
  };
14602
14701
 
14603
- var Provider$1 = React__default.createContext({});
14604
- var useContext$1 = function useContext() {
14605
- return React__default.useContext(Provider$1);
14702
+ var Provider$2 = React__default.createContext({});
14703
+ var useContext$2 = function useContext() {
14704
+ return React__default.useContext(Provider$2);
14606
14705
  };
14607
14706
 
14608
14707
  var Footer$1 = function Footer() {
14609
- var context = useContext$1();
14708
+ var context = useContext$2();
14610
14709
  var _context$props = context.props,
14611
14710
  value = _context$props.value,
14612
14711
  setValue = _context$props.setValue,
@@ -14633,7 +14732,7 @@ var Footer$1 = function Footer() {
14633
14732
  });
14634
14733
  };
14635
14734
 
14636
- var _templateObject$m, _templateObject2$g, _templateObject3$d, _templateObject4$9;
14735
+ var _templateObject$m, _templateObject2$g, _templateObject3$d, _templateObject4$a;
14637
14736
  var Link = styled__default.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n ", "\n\n color: ", ";\n\n ", "\n"])), function (_ref) {
14638
14737
  var size = _ref.size;
14639
14738
  var _sizes = sizes$1[size || 'small'],
@@ -14652,7 +14751,7 @@ var Link = styled__default.div(_templateObject$m || (_templateObject$m = _tagged
14652
14751
  disabled = _ref3.disabled,
14653
14752
  theme = _ref3.theme,
14654
14753
  colorSetting = _ref3.colorSetting;
14655
- return disabled ? styled.css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? styled.css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
14754
+ return disabled ? styled.css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "]))) : onClick ? styled.css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n :hover {\n color: ", ";\n }\n "])), theme.colors[_extends({
14656
14755
  hover: 'blue'
14657
14756
  }, colorSetting && typeof colorSetting !== 'string' ? colorSetting : {}).hover]) : null;
14658
14757
  });
@@ -14668,7 +14767,7 @@ var SelectAllContainer = styled__default.div(_templateObject3$e || (_templateObj
14668
14767
  });
14669
14768
 
14670
14769
  var Header$2 = function Header() {
14671
- var context = useContext$1();
14770
+ var context = useContext$2();
14672
14771
 
14673
14772
  if (!context.props.search) {
14674
14773
  return React__default.createElement(React__default.Fragment, null);
@@ -14717,7 +14816,7 @@ var Header$2 = function Header() {
14717
14816
  };
14718
14817
 
14719
14818
  var Label$2 = function Label(props) {
14720
- var context = useContext$1();
14819
+ var context = useContext$2();
14721
14820
  var _context$checked = context.checked,
14722
14821
  checked = _context$checked[0],
14723
14822
  setChecked = _context$checked[1];
@@ -14816,7 +14915,7 @@ var useSelectMultiple = function useSelectMultiple(props) {
14816
14915
  maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
14817
14916
  },
14818
14917
  getContext: function getContext(base, children) {
14819
- return React__default.createElement(Provider$1.Provider, {
14918
+ return React__default.createElement(Provider$2.Provider, {
14820
14919
  value: _extends({}, base, {
14821
14920
  props: props,
14822
14921
  options: options,
@@ -15424,7 +15523,7 @@ var Phone = Object.assign(Component, {
15424
15523
  getPhoneDetails: getPhoneDetails
15425
15524
  });
15426
15525
 
15427
- var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$a, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
15526
+ var _templateObject$r, _templateObject2$l, _templateObject3$h, _templateObject4$b, _templateObject5$9, _templateObject6$8, _templateObject7$8, _templateObject8$7, _templateObject9$7;
15428
15527
  var RelativeContainer$4 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n position: relative;\n\n input {\n color: transparent;\n }\n"])));
15429
15528
  var LabelContainer$2 = styled__default.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n ", "\n line-height: ", ";\n"])), function (_ref) {
15430
15529
  var theme = _ref.theme;
@@ -15440,7 +15539,7 @@ var Container$5 = styled__default.div(_templateObject3$h || (_templateObject3$h
15440
15539
  var borderwidth = 1;
15441
15540
 
15442
15541
  if (paddingless) {
15443
- return styled.css(_templateObject4$a || (_templateObject4$a = _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);
15542
+ return styled.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);
15444
15543
  }
15445
15544
 
15446
15545
  return styled.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);
@@ -15574,7 +15673,7 @@ var DatePicker = React__default.forwardRef(function (props, ref) {
15574
15673
  });
15575
15674
  DatePicker.displayName = 'DatePicker';
15576
15675
 
15577
- var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$b, _templateObject5$a, _templateObject6$9, _templateObject7$9;
15676
+ var _templateObject$s, _templateObject2$m, _templateObject3$i, _templateObject4$c, _templateObject5$a, _templateObject6$9, _templateObject7$9;
15578
15677
  var LabelContainer$3 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n display: flex;\n align-items: center;\n\n ", "\n"])), function (_ref) {
15579
15678
  var theme = _ref.theme;
15580
15679
  return theme.useTypography('p');
@@ -15590,7 +15689,7 @@ var Label$4 = styled__default.label(_templateObject3$i || (_templateObject3$i =
15590
15689
  var disabled = _ref4.disabled;
15591
15690
 
15592
15691
  if (!disabled) {
15593
- return styled.css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
15692
+ return styled.css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
15594
15693
  }
15595
15694
 
15596
15695
  return styled.css(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
@@ -15638,22 +15737,35 @@ var Label$4 = styled__default.label(_templateObject3$i || (_templateObject3$i =
15638
15737
  });
15639
15738
 
15640
15739
  var Switch = function Switch(props) {
15641
- var disabled = props.disabled,
15642
- required = props.required,
15643
- invalid = props.invalid;
15740
+ var _Form$useContext = Form.useContext(props.name),
15741
+ isRequired = _Form$useContext.isRequired,
15742
+ isInvalid = _Form$useContext.isInvalid,
15743
+ isViewMode = _Form$useContext.isViewMode,
15744
+ isDisabled = _Form$useContext.isDisabled;
15745
+
15746
+ var invalid = isInvalid() || props.invalid;
15747
+ var required = isRequired() || props.required;
15748
+ var disabled = isDisabled() || props.disabled;
15749
+ var viewMode = isViewMode() || props.viewMode;
15644
15750
  var label = isObject(props.label) ? props.label : {
15645
15751
  label: props.label
15646
15752
  };
15647
- var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
15753
+ var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps', 'viewMode']);
15648
15754
  htmlProps.disabled = props.disabled || props.htmlDisabled;
15649
15755
  return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
15650
15756
  disabled: disabled ? 1 : 0,
15651
15757
  invalid: invalid ? 1 : 0
15652
15758
  }), label.label && React__default.createElement(LabelContainer$3, {
15653
15759
  required: required ? 1 : 0
15654
- }, label.label), label.before && React__default.createElement(LabelContainer$3, null, label.before), React__default.createElement("input", Object.assign({}, htmlProps, {
15760
+ }, label.label), viewMode ? React__default.createElement(LabelContainer$3, {
15761
+ children: label[props.checked ? 'after' : 'before']
15762
+ }) : React__default.createElement(React__default.Fragment, null, label.before && React__default.createElement(LabelContainer$3, {
15763
+ children: label.before
15764
+ }), React__default.createElement("input", Object.assign({}, htmlProps, {
15655
15765
  type: 'checkbox'
15656
- })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15766
+ })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, {
15767
+ children: label.after
15768
+ })));
15657
15769
  };
15658
15770
 
15659
15771
  var _templateObject$t, _templateObject2$n;
@@ -15728,7 +15840,7 @@ var NavBar = styled__default.div(_templateObject$x || (_templateObject$x = _tagg
15728
15840
  });
15729
15841
 
15730
15842
  var _templateObject$y, _templateObject2$q, _templateObject3$l;
15731
- var Label$5 = styled__default.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 19px;\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) {
15843
+ var Label$5 = styled__default.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) {
15732
15844
  var theme = _ref.theme;
15733
15845
  return theme.useTypography('p');
15734
15846
  }, function (_ref2) {
@@ -15762,15 +15874,18 @@ var LabelsContainer = styled__default.div(_templateObject$B || (_templateObject$
15762
15874
  var position = _ref.position;
15763
15875
 
15764
15876
  if (position === 'bottom') {
15765
- return styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15877
+ return styled.css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 9px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15766
15878
  }
15767
15879
 
15768
- return styled.css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 9px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15880
+ return styled.css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15769
15881
  });
15770
15882
 
15771
15883
  var _templateObject$C;
15772
15884
  var MarkersContainer = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15773
15885
 
15886
+ var _templateObject$D;
15887
+ var ViewModeContainer = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
15888
+
15774
15889
  var getMarkers = function getMarkers(props) {
15775
15890
  if (props.markers && 'markers' in props.markers) {
15776
15891
  var _strict = props.markers.strict;
@@ -15869,12 +15984,20 @@ var Range = React__default.forwardRef(function (props, ref) {
15869
15984
  var label = props.label,
15870
15985
  minLabel = props.minLabel,
15871
15986
  maxLabel = props.maxLabel,
15872
- invalid = props.invalid,
15873
- disabled = props.disabled,
15874
- required = props.required,
15875
15987
  width = props.width,
15876
15988
  setValue = props.setValue;
15877
15989
 
15990
+ var _Form$useContext = Form.useContext(props.name),
15991
+ isRequired = _Form$useContext.isRequired,
15992
+ isInvalid = _Form$useContext.isInvalid,
15993
+ isViewMode = _Form$useContext.isViewMode,
15994
+ isDisabled = _Form$useContext.isDisabled;
15995
+
15996
+ var invalid = isInvalid() || props.invalid;
15997
+ var required = isRequired() || props.required;
15998
+ var disabled = isDisabled() || props.disabled;
15999
+ var viewMode = isViewMode() || props.viewMode;
16000
+
15878
16001
  var _getMarkers = getMarkers(props),
15879
16002
  min = _getMarkers.min,
15880
16003
  max = _getMarkers.max,
@@ -15970,7 +16093,9 @@ var Range = React__default.forwardRef(function (props, ref) {
15970
16093
  width: width
15971
16094
  }, label && React__default.createElement("div", {
15972
16095
  children: label
15973
- }), React__default.createElement(LabelsContainer, {
16096
+ }), viewMode ? React__default.createElement(ViewModeContainer, {
16097
+ children: currentValue
16098
+ }) : React__default.createElement(LabelsContainer, {
15974
16099
  position: position
15975
16100
  }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15976
16101
  invalid: invalid ? 1 : 0
@@ -16024,8 +16149,8 @@ var Range = React__default.forwardRef(function (props, ref) {
16024
16149
  });
16025
16150
  Range.displayName = 'input';
16026
16151
 
16027
- var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$c, _templateObject5$b, _templateObject6$a, _templateObject7$a;
16028
- var LabelContainer$5 = styled__default.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
16152
+ var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a;
16153
+ var LabelContainer$5 = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
16029
16154
  var theme = _ref.theme;
16030
16155
  return theme.useTypography('p');
16031
16156
  });
@@ -16039,7 +16164,7 @@ var Label$6 = styled__default.label(_templateObject2$t || (_templateObject2$t =
16039
16164
  return styled.css(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n > span {\n cursor: pointer;\n }\n "])));
16040
16165
  }
16041
16166
 
16042
- return styled.css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
16167
+ return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
16043
16168
  }, function (_ref4) {
16044
16169
  var required = _ref4.required;
16045
16170
  if (!required) return;
@@ -16267,8 +16392,8 @@ var parse = function parse(value) {
16267
16392
  });
16268
16393
  };
16269
16394
 
16270
- var _templateObject$E, _templateObject2$u, _templateObject3$o, _templateObject4$d, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
16271
- var RelativeContainer$5 = styled__default.div(_templateObject$E || (_templateObject$E = _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"])));
16395
+ 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;
16396
+ var RelativeContainer$5 = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
16272
16397
  var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
16273
16398
  var theme = _ref.theme;
16274
16399
  return theme.useTypography('p');
@@ -16282,7 +16407,7 @@ var LabelContainer$6 = styled__default.div(_templateObject2$u || (_templateObjec
16282
16407
  }, function (_ref4) {
16283
16408
  var onClick = _ref4.onClick;
16284
16409
  if (!onClick) return;
16285
- return styled.css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16410
+ return styled.css(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n :not(:disabled) {\n cursor: pointer;\n }\n "])));
16286
16411
  });
16287
16412
  var Container$6 = styled__default.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) {
16288
16413
  var theme = _ref5.theme;
@@ -16555,8 +16680,8 @@ var DatePicker$1 = Object.assign(Component$1, {
16555
16680
  useDefaultDateIntervalState: useDefaultDateIntervalState
16556
16681
  });
16557
16682
 
16558
- var _templateObject$F;
16559
- var Input$3 = styled__default.input(_templateObject$F || (_templateObject$F = _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) {
16683
+ var _templateObject$G;
16684
+ var Input$3 = styled__default.input(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n ", ";\n opacity: 1;\n }\n\n display: block;\n box-sizing: border-box;\n flex: 1;\n min-width: ", ";\n\n padding: calc(", " / 2) 0;\n\n box-shadow: none;\n outline: none;\n border: 1px solid transparent;\n"])), function (_ref) {
16560
16685
  var theme = _ref.theme;
16561
16686
  return theme.useTypography('p');
16562
16687
  }, function (_ref2) {
@@ -16619,8 +16744,8 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
16619
16744
  });
16620
16745
  Input$4.displayName = 'Input';
16621
16746
 
16622
- var _templateObject$G, _templateObject2$v;
16623
- var Label$7 = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16747
+ var _templateObject$H, _templateObject2$v;
16748
+ var Label$7 = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16624
16749
  var theme = _ref.theme;
16625
16750
  return theme.spacings.s1;
16626
16751
  }, function (_ref2) {
@@ -16633,8 +16758,8 @@ var Label$8 = function Label(props) {
16633
16758
  return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
16634
16759
  };
16635
16760
 
16636
- var _templateObject$H;
16637
- var Tag = styled__default.div(_templateObject$H || (_templateObject$H = _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) {
16761
+ var _templateObject$I;
16762
+ var Tag = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n\n background-color: ", ";\n color: ", ";\n padding: calc(", " / 2);\n\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n display: flex;\n align-items: center;\n gap: ", ";\n\n > div:last-child {\n cursor: pointer;\n }\n"])), function (_ref) {
16638
16763
  var theme = _ref.theme;
16639
16764
  return theme.useTypography('p');
16640
16765
  }, function (_ref2) {
@@ -16667,8 +16792,8 @@ var Tag$1 = function Tag$1(props) {
16667
16792
  })));
16668
16793
  };
16669
16794
 
16670
- var _templateObject$I, _templateObject2$w, _templateObject3$p;
16671
- var Label$9 = styled__default.label(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
16795
+ var _templateObject$J, _templateObject2$w, _templateObject3$p;
16796
+ var Label$9 = styled__default.label(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
16672
16797
  var theme = _ref.theme;
16673
16798
  return theme.useTypography('p');
16674
16799
  }, function (_ref2) {
@@ -16762,8 +16887,8 @@ var Tags = React__default.forwardRef(function (props, ref) {
16762
16887
  });
16763
16888
  Tags.displayName = 'Tags';
16764
16889
 
16765
- var _templateObject$J;
16766
- var RelativeContainer$6 = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
16890
+ var _templateObject$K;
16891
+ var RelativeContainer$6 = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
16767
16892
 
16768
16893
  var isLeapYear$1 = function isLeapYear(year) {
16769
16894
  if (year % 4 !== 0) return false;else if (year % 100 !== 0) return true;else if (year % 400 !== 0) return false;else return true;
@@ -17164,8 +17289,8 @@ var Input$5 = Object.assign(Component$2, {
17164
17289
  getPhoneDetails: Phone.getPhoneDetails
17165
17290
  });
17166
17291
 
17167
- var _templateObject$K, _templateObject2$x, _templateObject3$q, _templateObject4$e;
17168
- var Container$7 = styled__default(AbsoluteContainer)(_templateObject$K || (_templateObject$K = _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) {
17292
+ var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$f;
17293
+ var Container$7 = styled__default(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
17169
17294
  var theme = _ref.theme;
17170
17295
  return theme.colors.white;
17171
17296
  }, function (_ref2) {
@@ -17188,7 +17313,7 @@ var Title = styled__default.div(_templateObject3$q || (_templateObject3$q = _tag
17188
17313
  var getColor = _ref6.theme.getColor;
17189
17314
  return getColor('greyishBlue', 50);
17190
17315
  });
17191
- var Item = styled__default.div(_templateObject4$e || (_templateObject4$e = _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) {
17316
+ var Item = styled__default.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) {
17192
17317
  var s1 = _ref7.theme.spacings.s1;
17193
17318
  return s1 + " " + s1 + " " + s1 + " 0";
17194
17319
  }, function (_ref8) {
@@ -17302,8 +17427,8 @@ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
17302
17427
  }))));
17303
17428
  };
17304
17429
 
17305
- var _templateObject$L, _templateObject2$y, _templateObject3$r;
17306
- var Container$8 = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
17430
+ var _templateObject$M, _templateObject2$y, _templateObject3$r;
17431
+ var Container$8 = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
17307
17432
  var theme = _ref.theme,
17308
17433
  gap = _ref.$gap;
17309
17434
  return gap === '0' ? '0' : theme.spacings[gap];
@@ -17369,13 +17494,13 @@ var AppliedFilters = Object.assign(function (props) {
17369
17494
  Menu: AppliedFiltersMenu
17370
17495
  });
17371
17496
 
17372
- var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$f, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$8;
17373
- var Container$9 = styled__default.div(_templateObject$M || (_templateObject$M = _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) {
17497
+ var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$g, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$8;
17498
+ var Container$9 = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
17374
17499
  return props.size === 'mini' && styled.css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
17375
17500
  }, function (props) {
17376
17501
  return props.size === 'small' && styled.css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
17377
17502
  }, function (props) {
17378
- return props.size === 'medium' && styled.css(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
17503
+ return props.size === 'medium' && styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: 394px;\n "])));
17379
17504
  }, function (props) {
17380
17505
  return props.size === 'big' && styled.css(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n width: 414px;\n height: 324px;\n "])));
17381
17506
  }, function (props) {
@@ -17399,8 +17524,8 @@ var Card = function Card(_ref) {
17399
17524
  return React__default.createElement(Container$9, Object.assign({}, rest), children);
17400
17525
  };
17401
17526
 
17402
- var _templateObject$N;
17403
- var Container$a = styled__default.div(_templateObject$N || (_templateObject$N = _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) {
17527
+ var _templateObject$O;
17528
+ var Container$a = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
17404
17529
  var s1 = _ref.theme.spacings.s1;
17405
17530
  return "0 0 " + s1 + " " + s1;
17406
17531
  }, function (_ref2) {
@@ -17461,8 +17586,8 @@ var Header$4 = function Header(props) {
17461
17586
  }));
17462
17587
  };
17463
17588
 
17464
- var _templateObject$O;
17465
- var EmptyMessage = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
17589
+ var _templateObject$P;
17590
+ var EmptyMessage = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
17466
17591
  var lightGrey = _ref.theme.colors.lightGrey;
17467
17592
  return lightGrey;
17468
17593
  });
@@ -17803,14 +17928,14 @@ var Filters = Object.assign(function (props) {
17803
17928
  Menu: FiltersMenu
17804
17929
  });
17805
17930
 
17806
- var Provider$2 = React__default.createContext({
17931
+ var Provider$3 = React__default.createContext({
17807
17932
  cols: {}
17808
17933
  });
17809
- var useContext$2 = function useContext() {
17810
- return React__default.useContext(Provider$2);
17934
+ var useContext$3 = function useContext() {
17935
+ return React__default.useContext(Provider$3);
17811
17936
  };
17812
17937
 
17813
- var _templateObject$P, _templateObject2$A, _templateObject3$t, _templateObject4$g, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2;
17938
+ 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;
17814
17939
  var aligns = {
17815
17940
  self: {
17816
17941
  horizontal: {
@@ -17839,7 +17964,7 @@ var aligns = {
17839
17964
  }
17840
17965
  }
17841
17966
  };
17842
- var Col = styled__default.div(_templateObject$P || (_templateObject$P = _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) {
17967
+ var Col = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17843
17968
  var width = _ref.width;
17844
17969
 
17845
17970
  if (width === undefined) {
@@ -17849,7 +17974,7 @@ var Col = styled__default.div(_templateObject$P || (_templateObject$P = _taggedT
17849
17974
  }
17850
17975
 
17851
17976
  var w = parseFloat(width) * 100 / 12;
17852
- return styled.css(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
17977
+ return styled.css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n flex: 0 0 ", "%;\n max-width: ", "%;\n width: 100%;\n "])), w, w);
17853
17978
  }, function (_ref2) {
17854
17979
  var spacing = _ref2.spacing;
17855
17980
  var padding = getSpacings(spacing === undefined ? 's1' : spacing);
@@ -17928,7 +18053,7 @@ var Col = styled__default.div(_templateObject$P || (_templateObject$P = _taggedT
17928
18053
  });
17929
18054
 
17930
18055
  var Col$1 = React__default.forwardRef(function (props, ref) {
17931
- var context = useContext$2();
18056
+ var context = useContext$3();
17932
18057
 
17933
18058
  var _props = _extends({}, context.cols, props);
17934
18059
 
@@ -17939,16 +18064,16 @@ var Col$1 = React__default.forwardRef(function (props, ref) {
17939
18064
  });
17940
18065
  Col$1.displayName = 'Col';
17941
18066
 
17942
- var Provider$3 = React__default.createContext({
18067
+ var Provider$4 = React__default.createContext({
17943
18068
  rows: {},
17944
18069
  cols: {}
17945
18070
  });
17946
- var useContext$3 = function useContext() {
17947
- return React__default.useContext(Provider$3);
18071
+ var useContext$4 = function useContext() {
18072
+ return React__default.useContext(Provider$4);
17948
18073
  };
17949
18074
 
17950
- var _templateObject$Q, _templateObject2$B, _templateObject3$u;
17951
- var Grid = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
18075
+ var _templateObject$R, _templateObject2$B, _templateObject3$u;
18076
+ var Grid = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
17952
18077
  var spacing = _ref.spacing;
17953
18078
  if (spacing === undefined) return;
17954
18079
  var padding = getSpacings(spacing);
@@ -17964,7 +18089,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
17964
18089
  var cols = props.cols || {};
17965
18090
  var rows = props.rows || {};
17966
18091
  var gridProps = filterObject(props, ['cols', 'rows']);
17967
- return React__default.createElement(Provider$3.Provider, {
18092
+ return React__default.createElement(Provider$4.Provider, {
17968
18093
  value: {
17969
18094
  rows: rows,
17970
18095
  cols: cols
@@ -17975,7 +18100,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
17975
18100
  });
17976
18101
  Grid$1.displayName = 'Grid';
17977
18102
 
17978
- var _templateObject$R, _templateObject2$C, _templateObject3$v, _templateObject4$h, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
18103
+ var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
17979
18104
  var horizontalAligns = {
17980
18105
  around: 'space-around',
17981
18106
  between: 'space-between',
@@ -17988,7 +18113,7 @@ var verticalAligns = {
17988
18113
  top: 'start',
17989
18114
  bottom: 'end'
17990
18115
  };
17991
- var Row = styled__default.div(_templateObject$R || (_templateObject$R = _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) {
18116
+ var Row = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17992
18117
  var spacing = _ref.spacing;
17993
18118
  if (spacing === undefined) return;
17994
18119
  var padding = getSpacings(spacing);
@@ -18000,7 +18125,7 @@ var Row = styled__default.div(_templateObject$R || (_templateObject$R = _taggedT
18000
18125
  }, function (_ref3) {
18001
18126
  var horizontalAlign = _ref3.horizontalAlign;
18002
18127
  if (horizontalAlign === undefined) return;
18003
- return styled.css(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
18128
+ return styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n justify-content: ", ";\n "])), horizontalAligns[horizontalAlign]);
18004
18129
  }, function (_ref4) {
18005
18130
  var verticalAlign = _ref4.verticalAlign;
18006
18131
  if (verticalAlign === undefined) return;
@@ -18054,12 +18179,12 @@ var Row = styled__default.div(_templateObject$R || (_templateObject$R = _taggedT
18054
18179
  });
18055
18180
 
18056
18181
  var Row$1 = React__default.forwardRef(function (props, ref) {
18057
- var context = useContext$3();
18182
+ var context = useContext$4();
18058
18183
 
18059
18184
  var cols = _extends({}, context.cols, props.cols || {});
18060
18185
 
18061
18186
  var rowProps = filterObject(props, ['cols'], _extends({}, context.rows));
18062
- return React__default.createElement(Provider$2.Provider, {
18187
+ return React__default.createElement(Provider$3.Provider, {
18063
18188
  value: {
18064
18189
  cols: cols
18065
18190
  }
@@ -18106,8 +18231,8 @@ var widths = {
18106
18231
  default: '642.5px'
18107
18232
  };
18108
18233
 
18109
- var _templateObject$S, _templateObject2$D, _templateObject3$w, _templateObject4$i, _templateObject5$g, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$c, _templateObject10$b;
18110
- var Background = styled__default.div(_templateObject$S || (_templateObject$S = _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) {
18234
+ var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$j, _templateObject5$g, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$c, _templateObject10$b;
18235
+ var Background = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
18111
18236
  var theme = _ref.theme;
18112
18237
  return theme.getColor('black', 25);
18113
18238
  });
@@ -18117,7 +18242,7 @@ var Header$5 = styled__default.div(_templateObject3$w || (_templateObject3$w = _
18117
18242
  colors = _ref2$theme.colors,
18118
18243
  spacings = _ref2$theme.spacings,
18119
18244
  useTypography = _ref2$theme.useTypography;
18120
- return styled.css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
18245
+ return styled.css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n border-bottom: 1px solid ", ";\n padding: ", ";\n\n ", "\n "])), colors.lightestGrey, spacings.s4, useTypography('h1'));
18121
18246
  });
18122
18247
  var Footer$2 = styled__default.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n ", "\n"])), function (_ref3) {
18123
18248
  var _ref3$theme = _ref3.theme,
@@ -18215,8 +18340,8 @@ var Modal = function Modal(props) {
18215
18340
  }))))));
18216
18341
  };
18217
18342
 
18218
- var _templateObject$T;
18219
- var Content$1 = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18343
+ var _templateObject$U;
18344
+ var Content$1 = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18220
18345
  var theme = _ref.theme;
18221
18346
  return theme.spacings.s5 + " " + theme.spacings.s4;
18222
18347
  });
@@ -18253,8 +18378,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
18253
18378
  }, React__default.createElement(Content$1, null, children || content));
18254
18379
  };
18255
18380
 
18256
- var _templateObject$U;
18257
- var Content$2 = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18381
+ var _templateObject$V;
18382
+ var Content$2 = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18258
18383
  var theme = _ref.theme;
18259
18384
  return theme.spacings.s5 + " " + theme.spacings.s4;
18260
18385
  });
@@ -18294,8 +18419,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
18294
18419
  }, React__default.createElement(Content$2, null, children || content));
18295
18420
  };
18296
18421
 
18297
- var _templateObject$V;
18298
- var Content$3 = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18422
+ var _templateObject$W;
18423
+ var Content$3 = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18299
18424
  var theme = _ref.theme;
18300
18425
  return theme.spacings.s5 + " " + theme.spacings.s4;
18301
18426
  });
@@ -18336,11 +18461,11 @@ var Modal$1 = Object.assign(Modal, {
18336
18461
  Audit: Audit
18337
18462
  });
18338
18463
 
18339
- var _templateObject$W, _templateObject2$E, _templateObject3$x, _templateObject4$j, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
18340
- var Container$c = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18464
+ var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
18465
+ var Container$c = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18341
18466
  var Header$6 = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18342
18467
  var HeaderImage = styled__default.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18343
- var HeaderContent = styled__default.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18468
+ var HeaderContent = styled__default.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18344
18469
  var MainContent = styled__default.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
18345
18470
  var HeaderLine = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18346
18471
  return props.height;
@@ -18388,24 +18513,24 @@ var Template1 = function Template1(props) {
18388
18513
  })));
18389
18514
  };
18390
18515
 
18391
- var _templateObject$X, _templateObject2$F, _templateObject3$y, _templateObject4$k, _templateObject5$i;
18392
- var HeaderLine$1 = styled__default.div(_templateObject$X || (_templateObject$X = _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) {
18516
+ var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$l, _templateObject5$i;
18517
+ var HeaderLine$1 = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18393
18518
  return props.height;
18394
18519
  }, function (props) {
18395
18520
  return props.size === 'mini' && styled.css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18396
18521
  }, function (props) {
18397
18522
  return props.size === 'small' && styled.css(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18398
18523
  }, function (props) {
18399
- return props.size === 'medium' && styled.css(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18524
+ return props.size === 'medium' && styled.css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18400
18525
  }, function (props) {
18401
18526
  return props.size === 'large' && styled.css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
18402
18527
  });
18403
18528
 
18404
- var _templateObject$Y, _templateObject2$G, _templateObject3$z, _templateObject4$l, _templateObject5$j, _templateObject6$h, _templateObject7$h, _templateObject8$e;
18405
- var Container$d = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18529
+ var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$m, _templateObject5$j, _templateObject6$h, _templateObject7$h, _templateObject8$e;
18530
+ var Container$d = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18406
18531
  var Template2Container = styled__default(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
18407
18532
  var Header$7 = styled__default.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18408
- var HeaderImage$1 = styled__default.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18533
+ var HeaderImage$1 = styled__default.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18409
18534
  var HeaderContent$1 = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
18410
18535
  var MainContent$1 = styled__default.div(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n"])));
18411
18536
  var MainLine$1 = styled__default(HeaderLine$1)(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n margin-bottom: 14px;\n margin-left: 0;\n"])));
@@ -18432,8 +18557,8 @@ var Template2 = function Template2(props) {
18432
18557
  })));
18433
18558
  };
18434
18559
 
18435
- var _templateObject$Z, _templateObject2$H, _templateObject3$A;
18436
- var Container$e = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18560
+ var _templateObject$_, _templateObject2$H, _templateObject3$A;
18561
+ var Container$e = styled__default.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18437
18562
  var Template3Container = styled__default(Container$e)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose([""])));
18438
18563
  var Template3Line = styled__default(HeaderLine$1)(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
18439
18564
  return props.height;
@@ -18464,14 +18589,14 @@ var Template3 = function Template3(props) {
18464
18589
  }));
18465
18590
  };
18466
18591
 
18467
- var _templateObject$_, _templateObject2$I, _templateObject3$B, _templateObject4$m, _templateObject5$k, _templateObject6$i, _templateObject7$i, _templateObject8$f;
18468
- var Container$f = styled__default.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18592
+ var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$n, _templateObject5$k, _templateObject6$i, _templateObject7$i, _templateObject8$f;
18593
+ var Container$f = styled__default.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18469
18594
  var HeaderLine$3 = styled__default.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18470
18595
  return props.height;
18471
18596
  }, function (props) {
18472
18597
  return props.size === 'mini' && styled.css(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18473
18598
  }, function (props) {
18474
- return props.size === 'small' && styled.css(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18599
+ return props.size === 'small' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18475
18600
  }, function (props) {
18476
18601
  return props.size === 'medium' && styled.css(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n width: 45%;\n "])));
18477
18602
  }, function (props) {
@@ -18531,13 +18656,13 @@ var Template4 = function Template4(props) {
18531
18656
  }));
18532
18657
  };
18533
18658
 
18534
- var _templateObject$$, _templateObject2$J, _templateObject3$C, _templateObject4$n, _templateObject5$l, _templateObject6$j, _templateObject7$j, _templateObject8$g, _templateObject9$e;
18535
- var Container$g = styled__default.div(_templateObject$$ || (_templateObject$$ = _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"])));
18659
+ var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$o, _templateObject5$l, _templateObject6$j, _templateObject7$j, _templateObject8$g, _templateObject9$e;
18660
+ var Container$g = styled__default.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
18536
18661
  var Circle = styled__default.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
18537
18662
  var HeaderLine$4 = styled__default.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18538
18663
  return props.height;
18539
18664
  }, function (props) {
18540
- return props.size === 'mini' && styled.css(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18665
+ return props.size === 'mini' && styled.css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18541
18666
  }, function (props) {
18542
18667
  return props.size === 'small' && styled.css(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18543
18668
  }, function (props) {
@@ -18579,11 +18704,11 @@ var Template5 = function Template5(props) {
18579
18704
  })));
18580
18705
  };
18581
18706
 
18582
- var _templateObject$10, _templateObject2$K, _templateObject3$D, _templateObject4$o, _templateObject5$m, _templateObject6$k, _templateObject7$k, _templateObject8$h, _templateObject9$f;
18583
- var Container$h = styled__default.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
18707
+ var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$p, _templateObject5$m, _templateObject6$k, _templateObject7$k, _templateObject8$h, _templateObject9$f;
18708
+ var Container$h = styled__default.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
18584
18709
  var Header$8 = styled__default.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
18585
18710
  var Footer$3 = styled__default.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
18586
- var HeaderLine$5 = styled__default.div(_templateObject4$o || (_templateObject4$o = _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) {
18711
+ var HeaderLine$5 = styled__default.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) {
18587
18712
  return props.height;
18588
18713
  }, function (props) {
18589
18714
  return props.size === 'mini' && styled.css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -18622,13 +18747,13 @@ var Template6 = function Template6(props) {
18622
18747
  })));
18623
18748
  };
18624
18749
 
18625
- var _templateObject$11, _templateObject2$L, _templateObject3$E, _templateObject4$p, _templateObject5$n, _templateObject6$l, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject10$d;
18626
- var Container$i = styled__default.div(_templateObject$11 || (_templateObject$11 = _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"])));
18750
+ var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$q, _templateObject5$n, _templateObject6$l, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject10$d;
18751
+ var Container$i = styled__default.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18627
18752
  var Header$9 = styled__default.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18628
18753
  var HeaderLine$6 = styled__default.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18629
18754
  return props.height;
18630
18755
  }, function (props) {
18631
- return props.size === 'mini' && styled.css(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18756
+ return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18632
18757
  }, function (props) {
18633
18758
  return props.size === 'small' && styled.css(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18634
18759
  }, function (props) {
@@ -18656,13 +18781,13 @@ var Template7 = function Template7(props) {
18656
18781
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
18657
18782
  };
18658
18783
 
18659
- var _templateObject$12, _templateObject2$M, _templateObject3$F, _templateObject4$q, _templateObject5$o, _templateObject6$m, _templateObject7$m, _templateObject8$j, _templateObject9$h;
18660
- var Container$j = styled__default.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"])));
18784
+ var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$r, _templateObject5$o, _templateObject6$m, _templateObject7$m, _templateObject8$j, _templateObject9$h;
18785
+ var Container$j = styled__default.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18661
18786
  var Header$a = styled__default.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18662
18787
  var HeaderLine$7 = styled__default.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18663
18788
  return props.height;
18664
18789
  }, function (props) {
18665
- return props.size === 'mini' && styled.css(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18790
+ return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18666
18791
  }, function (props) {
18667
18792
  return props.size === 'small' && styled.css(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18668
18793
  }, function (props) {
@@ -18699,13 +18824,13 @@ var Template8 = function Template8(props) {
18699
18824
  })));
18700
18825
  };
18701
18826
 
18702
- var _templateObject$13, _templateObject2$N, _templateObject3$G, _templateObject4$r, _templateObject5$p, _templateObject6$n, _templateObject7$n, _templateObject8$k, _templateObject9$i, _templateObject10$e;
18703
- var Container$k = styled__default.div(_templateObject$13 || (_templateObject$13 = _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"])));
18827
+ var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$s, _templateObject5$p, _templateObject6$n, _templateObject7$n, _templateObject8$k, _templateObject9$i, _templateObject10$e;
18828
+ var Container$k = styled__default.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18704
18829
  var Header$b = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18705
18830
  var HeaderLine$8 = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18706
18831
  return props.height;
18707
18832
  }, function (props) {
18708
- return props.size === 'mini' && styled.css(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18833
+ return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18709
18834
  }, function (props) {
18710
18835
  return props.size === 'small' && styled.css(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18711
18836
  }, function (props) {
@@ -18738,13 +18863,13 @@ var Template8$1 = function Template8(props) {
18738
18863
  })), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
18739
18864
  };
18740
18865
 
18741
- var _templateObject$14, _templateObject2$O, _templateObject3$H, _templateObject4$s, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
18742
- var Container$l = styled__default.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"])));
18866
+ var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
18867
+ var Container$l = styled__default.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18743
18868
  var Header$c = styled__default.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18744
18869
  var HeaderLine$9 = styled__default.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18745
18870
  return props.height;
18746
18871
  }, function (props) {
18747
- return props.size === 'mini' && styled.css(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18872
+ return props.size === 'mini' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
18748
18873
  }, function (props) {
18749
18874
  return props.size === 'small' && styled.css(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n width: 25%;\n "])));
18750
18875
  }, function (props) {
@@ -18882,8 +19007,8 @@ var Placeholder = function Placeholder(props) {
18882
19007
  }
18883
19008
  };
18884
19009
 
18885
- var _templateObject$15, _templateObject2$P, _templateObject3$I, _templateObject4$t, _templateObject5$r, _templateObject6$p, _templateObject7$p;
18886
- var Container$m = styled__default.div(_templateObject$15 || (_templateObject$15 = _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"])));
19010
+ var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$u, _templateObject5$r, _templateObject6$p, _templateObject7$p;
19011
+ var Container$m = styled__default.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
18887
19012
  var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
18888
19013
  return props.value + "%";
18889
19014
  }, function (props) {
@@ -18892,7 +19017,7 @@ var Progress = styled__default.div(_templateObject2$P || (_templateObject2$P = _
18892
19017
  return theme.colors.warningGray;
18893
19018
  });
18894
19019
  }, function (props) {
18895
- return props.type === 'info' && styled.css(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
19020
+ return props.type === 'info' && styled.css(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), function (_ref2) {
18896
19021
  var theme = _ref2.theme;
18897
19022
  return theme.colors.blue;
18898
19023
  });
@@ -18917,8 +19042,8 @@ var ProgressBar = function ProgressBar(props) {
18917
19042
  return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
18918
19043
  };
18919
19044
 
18920
- var _templateObject$16, _templateObject2$Q, _templateObject3$J, _templateObject4$u, _templateObject5$s, _templateObject6$q, _templateObject7$q, _templateObject8$m;
18921
- var Container$n = styled__default.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
19045
+ var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$v, _templateObject5$s, _templateObject6$q, _templateObject7$q, _templateObject8$m;
19046
+ var Container$n = styled__default.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
18922
19047
  var delimiters = {
18923
19048
  blue: ['blue'],
18924
19049
  grey: ['warningGray']
@@ -18951,7 +19076,7 @@ var Tabs = styled__default.ul(_templateObject2$Q || (_templateObject2$Q = _tagge
18951
19076
  return internal ? "1px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'grey']) : "2px solid " + theme.getColor.apply(theme, delimiters[delimiter || 'blue']);
18952
19077
  }();
18953
19078
 
18954
- return styled.css(_templateObject4$u || (_templateObject4$u = _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);
19079
+ return styled.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);
18955
19080
  }, function (_ref3) {
18956
19081
  var theme = _ref3.theme,
18957
19082
  internal = _ref3.$internal;
@@ -18986,6 +19111,8 @@ var Tabs$1 = function Tabs$1(props) {
18986
19111
  status = _useState[0],
18987
19112
  setStatus = _useState[1];
18988
19113
 
19114
+ var onClose = props.onClose || function () {};
19115
+
18989
19116
  var activate = function activate(active, length) {
18990
19117
  setStatus(function (prev) {
18991
19118
  if (length !== undefined && length !== prev.length) {
@@ -19029,7 +19156,7 @@ var Tabs$1 = function Tabs$1(props) {
19029
19156
  activate(index);
19030
19157
  };
19031
19158
 
19032
- var onClickClose = function onClickClose(index) {
19159
+ var onClickClose = function onClickClose(index, tab, event) {
19033
19160
  var getActive = function getActive(removed, prev) {
19034
19161
  for (var i = index - 1; i > -1; i--) {
19035
19162
  if (removed[i] !== 'closed') {
@@ -19062,9 +19189,10 @@ var Tabs$1 = function Tabs$1(props) {
19062
19189
 
19063
19190
  return status;
19064
19191
  });
19192
+ onClose(index, tab, event);
19065
19193
  };
19066
19194
 
19067
- var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'alwaysOpen', 'delimiter', 'spacing']);
19195
+ var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'onClose', 'alwaysOpen', 'delimiter', 'spacing']);
19068
19196
  return React__default.createElement(Container$n, Object.assign({}, divProps), React__default.createElement(Tabs, {
19069
19197
  "$internal": props.internal,
19070
19198
  "$delimiter": props.delimiter,
@@ -19081,8 +19209,8 @@ var Tabs$1 = function Tabs$1(props) {
19081
19209
  }, React__default.createElement("span", null, tab.label), !props.alwaysOpen && React__default.createElement(Icon, {
19082
19210
  type: 'feather',
19083
19211
  icon: 'x',
19084
- onClick: function onClick() {
19085
- return onClickClose(index);
19212
+ onClick: function onClick(e) {
19213
+ return onClickClose(index, tab, e);
19086
19214
  },
19087
19215
  width: '14px',
19088
19216
  height: '14px',
@@ -19094,8 +19222,8 @@ var Tabs$1 = function Tabs$1(props) {
19094
19222
  }));
19095
19223
  };
19096
19224
 
19097
- var _templateObject$17;
19098
- var Container$o = styled__default.textarea(_templateObject$17 || (_templateObject$17 = _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) {
19225
+ var _templateObject$18;
19226
+ var Container$o = styled__default.textarea(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n resize: none;\n outline: 0;\n border: 1px solid #c8c8c8;\n padding: 14px;\n border-radius: 4px;\n color: #192338;\n"])), function (props) {
19099
19227
  return "" + props.width;
19100
19228
  }, function (props) {
19101
19229
  return "" + props.height;
@@ -19105,15 +19233,15 @@ var TextArea = function TextArea(props) {
19105
19233
  return React__default.createElement(Container$o, Object.assign({}, props));
19106
19234
  };
19107
19235
 
19108
- var _templateObject$18, _templateObject2$R, _templateObject3$K, _templateObject4$v, _templateObject5$t, _templateObject6$r;
19109
- var Container$p = styled__default.div(_templateObject$18 || (_templateObject$18 = _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) {
19236
+ var _templateObject$19, _templateObject2$R, _templateObject3$K, _templateObject4$w, _templateObject5$t, _templateObject6$r;
19237
+ var Container$p = styled__default.div(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
19110
19238
  return props.size === 'large' ? '837px' : '460px';
19111
19239
  }, function (props) {
19112
19240
  return props.color === 'success' && styled.css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
19113
19241
  }, function (props) {
19114
19242
  return props.color === 'error' && styled.css(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n background-color: #fff6f6;\n opacity: 1;\n border-color: #973937;\n h4 {\n color: #973937;\n }\n p {\n color: #973937;\n }\n "])));
19115
19243
  }, function (props) {
19116
- return props.color === 'warning' && styled.css(_templateObject4$v || (_templateObject4$v = _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 "])));
19244
+ return props.color === 'warning' && styled.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 "])));
19117
19245
  });
19118
19246
  var IconContainer$2 = styled__default.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"])));
19119
19247
  var IconContent = styled__default.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"])));
@@ -19128,8 +19256,8 @@ var Toast = function Toast(props) {
19128
19256
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
19129
19257
  };
19130
19258
 
19131
- var _templateObject$19, _templateObject2$S, _templateObject3$L, _templateObject4$w, _templateObject5$u;
19132
- var Image = styled__default.img(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
19259
+ var _templateObject$1a, _templateObject2$S, _templateObject3$L, _templateObject4$x, _templateObject5$u;
19260
+ var Image = styled__default.img(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
19133
19261
  var Container$q = styled__default.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
19134
19262
  var width = _ref.width;
19135
19263
 
@@ -19161,7 +19289,7 @@ var Dimmer = styled__default.div(_templateObject3$L || (_templateObject3$L = _ta
19161
19289
  var theme = _ref3.theme;
19162
19290
  return theme.getColor('greyishBlue', 50);
19163
19291
  });
19164
- var Button$6 = styled__default(Button$1)(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
19292
+ var Button$6 = styled__default(Button$1)(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n"])), function (_ref4) {
19165
19293
  var theme = _ref4.theme;
19166
19294
  return theme.getColor('white', 50);
19167
19295
  });
@@ -19216,6 +19344,7 @@ exports.MwCalendar = Calendar;
19216
19344
  exports.MwCard = Card;
19217
19345
  exports.MwEllipsisContainer = EllipsisContainer$1;
19218
19346
  exports.MwFilters = Filters;
19347
+ exports.MwForm = Form;
19219
19348
  exports.MwGrid = Grid$2;
19220
19349
  exports.MwIcon = Icon;
19221
19350
  exports.MwIndicator = Indicator;