@mw-kit/mw-ui 1.7.69 → 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.
@@ -12223,11 +12223,11 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
12223
12223
  return theme.useTypography('p');
12224
12224
  }, function (_ref4) {
12225
12225
  var theme = _ref4.theme,
12226
- invalid = _ref4.invalid;
12226
+ invalid = _ref4.$invalid;
12227
12227
  return invalid ? theme.colors.warningRed : theme.colors.darkBlue;
12228
12228
  }, function (_ref5) {
12229
12229
  var theme = _ref5.theme,
12230
- invalid = _ref5.invalid;
12230
+ invalid = _ref5.$invalid;
12231
12231
  return invalid ? theme.colors.warningRed : theme.colors.darkGrey;
12232
12232
  }, function (_ref6) {
12233
12233
  var placeholder = _ref6.placeholder;
@@ -12242,7 +12242,7 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
12242
12242
  return css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n font-size: 14px;\n letter-spacing: 0px;\n "])));
12243
12243
  }, function (_ref8) {
12244
12244
  var theme = _ref8.theme,
12245
- paddingless = _ref8.paddingless;
12245
+ paddingless = _ref8.$paddingless;
12246
12246
 
12247
12247
  if (paddingless) {
12248
12248
  return css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n padding: 0;\n "])));
@@ -12251,17 +12251,17 @@ var Input = styled.input(_templateObject4$3 || (_templateObject4$3 = _taggedTemp
12251
12251
  return css(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n ~ ", " {\n padding: ", " ", ";\n }\n "])), theme.spacings.s2, theme.spacings.s3, ChildrenContainer, theme.spacings.s2, theme.spacings.s3);
12252
12252
  }, function (_ref9) {
12253
12253
  var theme = _ref9.theme,
12254
- invalid = _ref9.invalid,
12255
- borderless = _ref9.borderless;
12254
+ invalid = _ref9.$invalid,
12255
+ borderless = _ref9.$borderless;
12256
12256
  if (borderless) return 'transparent';
12257
12257
  return invalid ? theme.colors.warningRed : theme.colors.lightGrey;
12258
12258
  }, function (_ref10) {
12259
12259
  var theme = _ref10.theme,
12260
- invalid = _ref10.invalid;
12260
+ invalid = _ref10.$invalid;
12261
12261
  var color = invalid ? theme.getColor('warningRed', 5) : theme.colors.white;
12262
12262
  return css(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n /** google chrome blue background */\n -webkit-box-shadow: 0 0 0px 1000px ", " inset !important;\n "])), color, color);
12263
12263
  }, function (_ref11) {
12264
- var arrows = _ref11.arrows;
12264
+ var arrows = _ref11.$arrows;
12265
12265
  if (arrows) return;
12266
12266
  return css(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n /* Chrome, Safari, Edge, Opera */\n :-webkit-outer-spin-button,\n :-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n -moz-appearance: textfield;\n "])));
12267
12267
  }, function (_ref12) {
@@ -12275,33 +12275,33 @@ var InputContainer = styled.div(_templateObject12$1 || (_templateObject12$1 = _t
12275
12275
  var width = _ref13.width;
12276
12276
  return width || '100%';
12277
12277
  });
12278
- var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
12278
+ var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n\n ", "\n\n > ", " > ", " {\n bottom: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref14) {
12279
12279
  var theme = _ref14.theme;
12280
12280
  return theme.useTypography('p');
12281
12281
  }, function (_ref15) {
12282
12282
  var theme = _ref15.theme;
12283
12283
  return theme.colors.greyishBlue;
12284
12284
  }, function (_ref16) {
12285
- var width = _ref16.width;
12285
+ var width = _ref16.$width;
12286
12286
  return width || '100%';
12287
12287
  }, function (_ref17) {
12288
- var disabled = _ref17.disabled;
12288
+ var disabled = _ref17.$disabled;
12289
12289
  if (!disabled) return;
12290
12290
  return css(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12291
12291
  }, InputContainer, IconContainer, function (_ref18) {
12292
12292
  var theme = _ref18.theme,
12293
- paddingless = _ref18.paddingless;
12293
+ paddingless = _ref18.$paddingless;
12294
12294
  return paddingless ? '2px' : "calc(" + theme.spacings.s2 + " + 1px)";
12295
12295
  }, function (_ref19) {
12296
- var readOnly = _ref19.readOnly,
12297
- disabled = _ref19.disabled,
12298
- loading = _ref19.loading;
12296
+ var readOnly = _ref19.$readOnly,
12297
+ disabled = _ref19.$disabled,
12298
+ loading = _ref19.$loading;
12299
12299
  if (loading || readOnly || disabled) return;
12300
12300
  return css(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12301
12301
  }, function (_ref20) {
12302
12302
  var theme = _ref20.theme,
12303
- icon = _ref20.icon,
12304
- paddingless = _ref20.paddingless;
12303
+ icon = _ref20.$icon,
12304
+ paddingless = _ref20.$paddingless;
12305
12305
  if (!icon) return;
12306
12306
  var width = icon.width,
12307
12307
  position = icon.position;
@@ -12314,36 +12314,117 @@ var Label = styled.label(_templateObject13$1 || (_templateObject13$1 = _taggedTe
12314
12314
  return css(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n > ", " > ", " {\n width: ", ";\n left: calc(", " / 2);\n }\n\n > ", " > ", " {\n padding-left: calc(", " + ", ");\n ~ ", " {\n padding-left: calc(", " + ", ");\n }\n }\n "])), InputContainer, IconContainer, width, padding, InputContainer, Input, padding, width, ChildrenContainer, padding, width);
12315
12315
  });
12316
12316
  var LabelText = styled.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref21) {
12317
- var theme = _ref21.theme;
12318
- return theme.spacings.s1;
12317
+ var theme = _ref21.theme,
12318
+ viewMode = _ref21.$viewMode;
12319
+ return theme.spacings[viewMode ? 's3' : 's1'];
12319
12320
  }, function (_ref22) {
12320
- var required = _ref22.required;
12321
+ var required = _ref22.$required;
12321
12322
  if (!required) return;
12322
12323
  return css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12323
12324
  });
12324
12325
 
12326
+ var defaultValue = {
12327
+ isRequired: function isRequired() {
12328
+ return false;
12329
+ },
12330
+ isInvalid: function isInvalid() {
12331
+ return false;
12332
+ },
12333
+ isViewMode: function isViewMode() {
12334
+ return false;
12335
+ },
12336
+ isDisabled: function isDisabled() {
12337
+ return false;
12338
+ }
12339
+ };
12340
+ var Context = React__default.createContext(_extends({}, defaultValue));
12341
+
12342
+ var useContext = function useContext(name) {
12343
+ var context = React__default.useContext(Context);
12344
+ return _extends({
12345
+ isRequired: function isRequired() {
12346
+ return false;
12347
+ },
12348
+ isInvalid: function isInvalid() {
12349
+ return false;
12350
+ },
12351
+ isViewMode: function isViewMode() {
12352
+ return false;
12353
+ },
12354
+ isDisabled: function isDisabled() {
12355
+ return false;
12356
+ }
12357
+ }, name ? {
12358
+ isRequired: function isRequired() {
12359
+ return context.isRequired(name);
12360
+ },
12361
+ isInvalid: function isInvalid() {
12362
+ return context.isInvalid(name);
12363
+ },
12364
+ isViewMode: function isViewMode() {
12365
+ return context.isViewMode(name);
12366
+ },
12367
+ isDisabled: function isDisabled() {
12368
+ return context.isDisabled(name);
12369
+ }
12370
+ } : {});
12371
+ };
12372
+
12373
+ var Provider = function Provider(props) {
12374
+ return React__default.createElement(Context.Provider, Object.assign({}, props, {
12375
+ value: _extends({}, defaultValue, props.value)
12376
+ }));
12377
+ };
12378
+
12379
+ var Form = Object.assign(React__default.forwardRef(Object.assign(function (props, ref) {
12380
+ var formProps = filterObject(props, ['isRequired', 'isInvalid', 'isViewMode', 'isDisabled']);
12381
+ return React__default.createElement(Provider, {
12382
+ value: _extends({}, props.isRequired ? {
12383
+ isRequired: props.isRequired
12384
+ } : {}, props.isInvalid ? {
12385
+ isInvalid: props.isInvalid
12386
+ } : {}, props.isViewMode ? {
12387
+ isViewMode: props.isViewMode
12388
+ } : {}, props.isDisabled ? {
12389
+ isDisabled: props.isDisabled
12390
+ } : {})
12391
+ }, React__default.createElement("form", Object.assign({
12392
+ ref: ref
12393
+ }, formProps)));
12394
+ }, {
12395
+ displayName: 'Form'
12396
+ })), {
12397
+ useContext: useContext
12398
+ });
12399
+
12325
12400
  var Input$1 = React__default.forwardRef(function (props, ref) {
12326
12401
  var _props = _extends({}, props),
12327
12402
  label = _props.label,
12328
12403
  loading = _props.loading,
12404
+ readOnly = _props.readOnly,
12405
+ arrows = _props.arrows,
12406
+ borderless = _props.borderless,
12407
+ paddingless = _props.paddingless,
12329
12408
  clearable = _props.clearable,
12330
12409
  onPressEnter = _props.onPressEnter,
12331
12410
  width = _props.width;
12332
12411
 
12412
+ var _Form$useContext = Form.useContext(props.name),
12413
+ isRequired = _Form$useContext.isRequired,
12414
+ isInvalid = _Form$useContext.isInvalid,
12415
+ isViewMode = _Form$useContext.isViewMode,
12416
+ isDisabled = _Form$useContext.isDisabled;
12417
+
12333
12418
  var mask = getMask(props.mask);
12334
12419
  useEffect(function () {
12335
12420
  if (!isString(props.value)) return;
12336
12421
  var masked = mask(props.value);
12337
12422
  if (masked !== props.value) setValue(masked);
12338
12423
  }, [props.value]);
12339
- var intInvalid = props.invalid ? 1 : 0;
12340
- var intLoading = props.loading ? 1 : 0;
12341
- var intRequired = props.required ? 1 : 0;
12342
- var intDisabled = props.disabled ? 1 : 0;
12343
- var intReadOnly = props.readOnly ? 1 : 0;
12344
- var intArrows = props.arrows ? 1 : 0;
12345
- var intBorderless = props.borderless ? 1 : 0;
12346
- var intPaddingless = props.paddingless ? 1 : 0;
12424
+ var invalid = isInvalid() || props.invalid;
12425
+ var required = isRequired() || props.required;
12426
+ var disabled = isDisabled() || props.disabled;
12427
+ var viewMode = isViewMode() || props.viewMode;
12347
12428
  var position;
12348
12429
  var iconWidth;
12349
12430
  var iconSubmit;
@@ -12353,18 +12434,18 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12353
12434
  if (props.icon) {
12354
12435
  icon = _extends({}, props.icon.icon);
12355
12436
  position = props.icon.position || 'right';
12356
- if (intInvalid) icon.color = 'warningRed';
12437
+ if (invalid) icon.color = 'warningRed';
12357
12438
  iconWidth = icon.width;
12358
12439
  iconSubmit = props.icon.submit;
12359
12440
  iconOnClick = props.icon.onClick;
12360
12441
  }
12361
12442
 
12362
- var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
12363
- invalid: intInvalid,
12443
+ var inputProps = filterObject(props, ['label', 'invalid', 'required', 'icon', 'mask', 'loading', 'clearable', 'setValue', 'onPressEnter', 'htmlDisabled', 'htmlReadOnly', 'viewMode', 'width', 'inputWidth', 'arrows', 'borderless', 'paddingless', 'children'], {
12444
+ $invalid: invalid,
12364
12445
  type: 'text',
12365
- arrows: intArrows,
12366
- borderless: intBorderless,
12367
- paddingless: intPaddingless
12446
+ $arrows: arrows,
12447
+ $borderless: borderless,
12448
+ $paddingless: paddingless
12368
12449
  });
12369
12450
 
12370
12451
  var onChange = inputProps.onChange || function () {};
@@ -12455,16 +12536,19 @@ var Input$1 = React__default.forwardRef(function (props, ref) {
12455
12536
  if (props.htmlDisabled) inputProps.disabled = true;
12456
12537
  if (props.htmlReadOnly) inputProps.readOnly = true;
12457
12538
  return React__default.createElement(Label, {
12458
- readOnly: intReadOnly,
12459
- disabled: intDisabled,
12460
- loading: intLoading,
12461
- invalid: intInvalid,
12462
- paddingless: intPaddingless,
12463
- icon: iconProps,
12464
- width: width
12539
+ "$readOnly": readOnly || viewMode,
12540
+ "$disabled": disabled,
12541
+ "$loading": loading,
12542
+ "$invalid": invalid,
12543
+ "$paddingless": paddingless,
12544
+ "$icon": iconProps,
12545
+ "$width": width
12465
12546
  }, label && React__default.createElement(LabelText, {
12466
- required: intRequired
12467
- }, label), React__default.createElement(InputContainer, {
12547
+ "$required": required,
12548
+ "$viewMode": viewMode
12549
+ }, label), viewMode ? React__default.createElement("div", {
12550
+ children: inputProps.value || props.children
12551
+ }) : React__default.createElement(InputContainer, {
12468
12552
  width: props.inputWidth
12469
12553
  }, React__default.createElement(Input, Object.assign({}, inputProps, {
12470
12554
  ref: ref
@@ -12484,17 +12568,18 @@ var Checkmark = styled.div(_templateObject$6 || (_templateObject$6 = _taggedTemp
12484
12568
  var theme = _ref.theme;
12485
12569
  return theme.colors.white;
12486
12570
  }, function (_ref2) {
12487
- var theme = _ref2.theme;
12488
- return theme.colors.lightGrey;
12571
+ var theme = _ref2.theme,
12572
+ viewMode = _ref2.$viewMode;
12573
+ return viewMode ? 'transparent' : theme.colors.blue;
12489
12574
  }, function (_ref3) {
12490
12575
  var theme = _ref3.theme;
12491
12576
  return theme.colors.blue;
12492
12577
  });
12493
- var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n 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) {
12578
+ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 14px;\n\n ", "\n\n ", "\n\n ", "\n\n display: flex;\n align-items: center;\n\n user-select: none;\n min-height: ", ";\n min-width: ", ";\n gap: ", ";\n\n > input {\n position: absolute;\n opacity: 0;\n height: 1px;\n width: 1px;\n }\n\n :hover ", " {\n background-color: ", ";\n }\n\n > input:checked ~ ", " {\n :after {\n width: 5px;\n height: 9.5px;\n border-width: 0 2px 2px 0;\n left: 5px;\n top: 1px;\n }\n }\n\n ", ";\n\n ", "\n"])), function (_ref4) {
12494
12579
  var theme = _ref4.theme;
12495
12580
  return theme.useTypography('p');
12496
12581
  }, function (_ref5) {
12497
- var padding = _ref5.padding,
12582
+ var padding = _ref5.$padding,
12498
12583
  theme = _ref5.theme;
12499
12584
  if (!padding) return;
12500
12585
  var _padding = {
@@ -12538,17 +12623,19 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
12538
12623
 
12539
12624
  return css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-bottom: ", ";\n "])), _padding.top, _padding.left, _padding.right, _padding.bottom);
12540
12625
  }, function (_ref6) {
12541
- var disabled = _ref6.disabled;
12626
+ var disabled = _ref6.$disabled,
12627
+ readOnly = _ref6.$readOnly;
12542
12628
 
12543
- if (!disabled) {
12544
- return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12629
+ if (disabled) {
12630
+ return css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12545
12631
  }
12546
12632
 
12547
- return css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n opacity: 0.5;\n "])));
12633
+ if (readOnly) return;
12634
+ return css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n "])));
12548
12635
  }, function (_ref7) {
12549
12636
  var theme = _ref7.theme,
12550
- bordered = _ref7.bordered,
12551
- invalid = _ref7.invalid;
12637
+ bordered = _ref7.$bordered,
12638
+ invalid = _ref7.$invalid;
12552
12639
  if (!bordered) return;
12553
12640
  return css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteralLoose(["\n padding: ", " ", ";\n\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 4px;\n "])), theme.spacings.s2, theme.spacings.s3, theme.colors[invalid ? 'warningRed' : 'lightGrey']);
12554
12641
  }, size, size, function (_ref8) {
@@ -12558,32 +12645,37 @@ var Label$1 = styled.label(_templateObject2$6 || (_templateObject2$6 = _taggedTe
12558
12645
  var theme = _ref9.theme;
12559
12646
  return theme.colors.iceWhite;
12560
12647
  }, Checkmark, function (_ref10) {
12561
- var theme = _ref10.theme;
12562
- return theme.colors.blue;
12563
- }, function (_ref11) {
12564
- var theme = _ref11.theme,
12565
- invalid = _ref11.invalid;
12648
+ var theme = _ref10.theme,
12649
+ invalid = _ref10.$invalid;
12566
12650
  if (!invalid) return;
12567
12651
  return css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n ", ",\n > input:checked ~ ", ", \n > input:checked ~ ", ":after {\n border-color: ", ";\n }\n "])), Checkmark, Checkmark, Checkmark, theme.colors.warningRed);
12568
- }, function (_ref12) {
12569
- var width = _ref12.width;
12652
+ }, function (_ref11) {
12653
+ var width = _ref11.$width;
12570
12654
  return width && css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width);
12571
12655
  });
12572
- var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref13) {
12573
- var theme = _ref13.theme;
12656
+ var LabelContent = styled.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteralLoose(["\n display: inline-block;\n ", "\n line-height: 14px;\n flex: 1;\n overflow: hidden;\n\n ", "\n"])), function (_ref12) {
12657
+ var theme = _ref12.theme;
12574
12658
  return theme.useTypography('p');
12575
- }, function (_ref14) {
12576
- var required = _ref14.required;
12659
+ }, function (_ref13) {
12660
+ var required = _ref13.required;
12577
12661
  if (!required) return;
12578
12662
  return css(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n :after {\n content: ' *';\n }\n "])));
12579
12663
  });
12580
12664
 
12581
12665
  var Checkbox = React__default.forwardRef(function (props, ref) {
12582
- var disabled = props.disabled,
12583
- required = props.required,
12584
- invalid = props.invalid,
12585
- padding = props.padding,
12666
+ var padding = props.padding,
12586
12667
  bordered = props.bordered;
12668
+
12669
+ var _Form$useContext = Form.useContext(props.name),
12670
+ isRequired = _Form$useContext.isRequired,
12671
+ isInvalid = _Form$useContext.isInvalid,
12672
+ isViewMode = _Form$useContext.isViewMode,
12673
+ isDisabled = _Form$useContext.isDisabled;
12674
+
12675
+ var invalid = isInvalid() || props.invalid;
12676
+ var required = isRequired() || props.required;
12677
+ var disabled = isDisabled() || props.disabled;
12678
+ var viewMode = isViewMode() || props.viewMode;
12587
12679
  var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'padding', 'bordered']);
12588
12680
 
12589
12681
  var _ref = function () {
@@ -12599,16 +12691,20 @@ var Checkbox = React__default.forwardRef(function (props, ref) {
12599
12691
  children = _ref[1];
12600
12692
 
12601
12693
  return React__default.createElement(Label$1, {
12602
- disabled: disabled ? 1 : 0,
12603
- required: required ? 1 : 0,
12604
- invalid: invalid ? 1 : 0,
12605
- bordered: bordered ? 1 : 0,
12606
- padding: padding,
12607
- width: props.width
12694
+ "$disabled": disabled,
12695
+ "$required": required,
12696
+ "$invalid": invalid,
12697
+ "$bordered": !viewMode && bordered,
12698
+ "$padding": padding,
12699
+ "$readOnly": props.readOnly || viewMode,
12700
+ "$width": props.width
12608
12701
  }, React__default.createElement("input", Object.assign({}, htmlProps, {
12609
12702
  type: 'checkbox',
12610
- ref: ref
12611
- })), React__default.createElement(Checkmark, null), React__default.createElement(LabelComponent, Object.assign({}, {
12703
+ ref: ref,
12704
+ disabled: htmlProps.disabled || viewMode
12705
+ })), React__default.createElement(Checkmark, {
12706
+ "$viewMode": viewMode
12707
+ }), React__default.createElement(LabelComponent, Object.assign({}, {
12612
12708
  disabled: disabled,
12613
12709
  required: required,
12614
12710
  invalid: invalid,
@@ -14460,9 +14556,9 @@ var Date$1 = React__default.forwardRef(function (props, ref) {
14460
14556
  });
14461
14557
  Date$1.displayName = 'Date';
14462
14558
 
14463
- var Provider = React__default.createContext({});
14464
- var useContext = function useContext() {
14465
- return React__default.useContext(Provider);
14559
+ var Provider$1 = React__default.createContext({});
14560
+ var useContext$1 = function useContext() {
14561
+ return React__default.useContext(Provider$1);
14466
14562
  };
14467
14563
 
14468
14564
  var _templateObject$l, _templateObject2$f;
@@ -14472,7 +14568,7 @@ var HeaderContainer = styled.div(_templateObject$l || (_templateObject$l = _tagg
14472
14568
  });
14473
14569
 
14474
14570
  var Header$1 = function Header() {
14475
- var context = useContext();
14571
+ var context = useContext$1();
14476
14572
 
14477
14573
  if (!context.props.search) {
14478
14574
  return React__default.createElement(React__default.Fragment, null);
@@ -14585,7 +14681,7 @@ var useSelect = function useSelect(props) {
14585
14681
  maxHeight: props.maxHeight || '180px'
14586
14682
  },
14587
14683
  getContext: function getContext(base, children) {
14588
- return React__default.createElement(Provider.Provider, {
14684
+ return React__default.createElement(Provider$1.Provider, {
14589
14685
  value: _extends({}, base, {
14590
14686
  props: props,
14591
14687
  options: options
@@ -14600,13 +14696,13 @@ var useSelect = function useSelect(props) {
14600
14696
  return parsed;
14601
14697
  };
14602
14698
 
14603
- var Provider$1 = React__default.createContext({});
14604
- var useContext$1 = function useContext() {
14605
- return React__default.useContext(Provider$1);
14699
+ var Provider$2 = React__default.createContext({});
14700
+ var useContext$2 = function useContext() {
14701
+ return React__default.useContext(Provider$2);
14606
14702
  };
14607
14703
 
14608
14704
  var Footer$1 = function Footer() {
14609
- var context = useContext$1();
14705
+ var context = useContext$2();
14610
14706
  var _context$props = context.props,
14611
14707
  value = _context$props.value,
14612
14708
  setValue = _context$props.setValue,
@@ -14668,7 +14764,7 @@ var SelectAllContainer = styled.div(_templateObject3$e || (_templateObject3$e =
14668
14764
  });
14669
14765
 
14670
14766
  var Header$2 = function Header() {
14671
- var context = useContext$1();
14767
+ var context = useContext$2();
14672
14768
 
14673
14769
  if (!context.props.search) {
14674
14770
  return React__default.createElement(React__default.Fragment, null);
@@ -14717,7 +14813,7 @@ var Header$2 = function Header() {
14717
14813
  };
14718
14814
 
14719
14815
  var Label$2 = function Label(props) {
14720
- var context = useContext$1();
14816
+ var context = useContext$2();
14721
14817
  var _context$checked = context.checked,
14722
14818
  checked = _context$checked[0],
14723
14819
  setChecked = _context$checked[1];
@@ -14816,7 +14912,7 @@ var useSelectMultiple = function useSelectMultiple(props) {
14816
14912
  maxHeight: props.maxHeight || (props.selectAll ? '269px' : '224px')
14817
14913
  },
14818
14914
  getContext: function getContext(base, children) {
14819
- return React__default.createElement(Provider$1.Provider, {
14915
+ return React__default.createElement(Provider$2.Provider, {
14820
14916
  value: _extends({}, base, {
14821
14917
  props: props,
14822
14918
  options: options,
@@ -15638,22 +15734,35 @@ var Label$4 = styled.label(_templateObject3$i || (_templateObject3$i = _taggedTe
15638
15734
  });
15639
15735
 
15640
15736
  var Switch = function Switch(props) {
15641
- var disabled = props.disabled,
15642
- required = props.required,
15643
- invalid = props.invalid;
15737
+ var _Form$useContext = Form.useContext(props.name),
15738
+ isRequired = _Form$useContext.isRequired,
15739
+ isInvalid = _Form$useContext.isInvalid,
15740
+ isViewMode = _Form$useContext.isViewMode,
15741
+ isDisabled = _Form$useContext.isDisabled;
15742
+
15743
+ var invalid = isInvalid() || props.invalid;
15744
+ var required = isRequired() || props.required;
15745
+ var disabled = isDisabled() || props.disabled;
15746
+ var viewMode = isViewMode() || props.viewMode;
15644
15747
  var label = isObject(props.label) ? props.label : {
15645
15748
  label: props.label
15646
15749
  };
15647
- var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps']);
15750
+ var htmlProps = filterObject(props, ['label', 'invalid', 'required', 'htmlDisabled', 'labelProps', 'viewMode']);
15648
15751
  htmlProps.disabled = props.disabled || props.htmlDisabled;
15649
15752
  return React__default.createElement(Label$4, Object.assign({}, props.labelProps || {}, {
15650
15753
  disabled: disabled ? 1 : 0,
15651
15754
  invalid: invalid ? 1 : 0
15652
15755
  }), label.label && React__default.createElement(LabelContainer$3, {
15653
15756
  required: required ? 1 : 0
15654
- }, label.label), label.before && React__default.createElement(LabelContainer$3, null, label.before), React__default.createElement("input", Object.assign({}, htmlProps, {
15757
+ }, label.label), viewMode ? React__default.createElement(LabelContainer$3, {
15758
+ children: label[props.checked ? 'after' : 'before']
15759
+ }) : React__default.createElement(React__default.Fragment, null, label.before && React__default.createElement(LabelContainer$3, {
15760
+ children: label.before
15761
+ }), React__default.createElement("input", Object.assign({}, htmlProps, {
15655
15762
  type: 'checkbox'
15656
- })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, null, label.after));
15763
+ })), React__default.createElement("span", null), label.after && React__default.createElement(LabelContainer$3, {
15764
+ children: label.after
15765
+ })));
15657
15766
  };
15658
15767
 
15659
15768
  var _templateObject$t, _templateObject2$n;
@@ -15728,7 +15837,7 @@ var NavBar = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplat
15728
15837
  });
15729
15838
 
15730
15839
  var _templateObject$y, _templateObject2$q, _templateObject3$l;
15731
- var Label$5 = styled.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) {
15840
+ var Label$5 = styled.label(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ", ";\n line-height: 17px;\n\n width: ", ";\n box-sizing: border-box;\n display: block;\n position: relative;\n\n ", "\n\n > ", " {\n ", "\n }\n\n :not(:hover) ", " {\n height: 0;\n }\n"])), function (_ref) {
15732
15841
  var theme = _ref.theme;
15733
15842
  return theme.useTypography('p');
15734
15843
  }, function (_ref2) {
@@ -15762,15 +15871,18 @@ var LabelsContainer = styled.div(_templateObject$B || (_templateObject$B = _tagg
15762
15871
  var position = _ref.position;
15763
15872
 
15764
15873
  if (position === 'bottom') {
15765
- return css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15874
+ return css(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column-reverse;\n }\n\n ", " {\n :after {\n bottom: calc(100% + 9px);\n }\n }\n\n ", " {\n align-items: start;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15766
15875
  }
15767
15876
 
15768
- return 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);
15877
+ return css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", " {\n flex-direction: column;\n }\n\n ", " {\n :after {\n top: calc(100% + 10px);\n }\n }\n\n ", " {\n align-items: end;\n }\n "])), InputContainer$1, Marker, MinMaxLabelContainer);
15769
15878
  });
15770
15879
 
15771
15880
  var _templateObject$C;
15772
15881
  var MarkersContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n height: 17px;\n"])));
15773
15882
 
15883
+ var _templateObject$D;
15884
+ var ViewModeContainer = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
15885
+
15774
15886
  var getMarkers = function getMarkers(props) {
15775
15887
  if (props.markers && 'markers' in props.markers) {
15776
15888
  var _strict = props.markers.strict;
@@ -15869,12 +15981,20 @@ var Range = React__default.forwardRef(function (props, ref) {
15869
15981
  var label = props.label,
15870
15982
  minLabel = props.minLabel,
15871
15983
  maxLabel = props.maxLabel,
15872
- invalid = props.invalid,
15873
- disabled = props.disabled,
15874
- required = props.required,
15875
15984
  width = props.width,
15876
15985
  setValue = props.setValue;
15877
15986
 
15987
+ var _Form$useContext = Form.useContext(props.name),
15988
+ isRequired = _Form$useContext.isRequired,
15989
+ isInvalid = _Form$useContext.isInvalid,
15990
+ isViewMode = _Form$useContext.isViewMode,
15991
+ isDisabled = _Form$useContext.isDisabled;
15992
+
15993
+ var invalid = isInvalid() || props.invalid;
15994
+ var required = isRequired() || props.required;
15995
+ var disabled = isDisabled() || props.disabled;
15996
+ var viewMode = isViewMode() || props.viewMode;
15997
+
15878
15998
  var _getMarkers = getMarkers(props),
15879
15999
  min = _getMarkers.min,
15880
16000
  max = _getMarkers.max,
@@ -15970,7 +16090,9 @@ var Range = React__default.forwardRef(function (props, ref) {
15970
16090
  width: width
15971
16091
  }, label && React__default.createElement("div", {
15972
16092
  children: label
15973
- }), React__default.createElement(LabelsContainer, {
16093
+ }), viewMode ? React__default.createElement(ViewModeContainer, {
16094
+ children: currentValue
16095
+ }) : React__default.createElement(LabelsContainer, {
15974
16096
  position: position
15975
16097
  }, minLabel && React__default.createElement(MinMaxLabelContainer, null, minLabel), React__default.createElement(InputContainer$1, {
15976
16098
  invalid: invalid ? 1 : 0
@@ -16024,8 +16146,8 @@ var Range = React__default.forwardRef(function (props, ref) {
16024
16146
  });
16025
16147
  Range.displayName = 'input';
16026
16148
 
16027
- var _templateObject$D, _templateObject2$t, _templateObject3$n, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a;
16028
- var LabelContainer$5 = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
16149
+ var _templateObject$E, _templateObject2$t, _templateObject3$n, _templateObject4$d, _templateObject5$b, _templateObject6$a, _templateObject7$a;
16150
+ var LabelContainer$5 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n align-items: center;\n"])), function (_ref) {
16029
16151
  var theme = _ref.theme;
16030
16152
  return theme.useTypography('p');
16031
16153
  });
@@ -16267,8 +16389,8 @@ var parse = function parse(value) {
16267
16389
  });
16268
16390
  };
16269
16391
 
16270
- var _templateObject$E, _templateObject2$u, _templateObject3$o, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
16271
- var RelativeContainer$5 = styled.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"])));
16392
+ var _templateObject$F, _templateObject2$u, _templateObject3$o, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$b, _templateObject8$8, _templateObject9$8, _templateObject10$7, _templateObject11$3, _templateObject12$2;
16393
+ var RelativeContainer$5 = styled.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n user-select: none;\n min-width: 220px;\n\n > input,\n > label > input {\n color: transparent;\n background-color: transparent;\n width: 1px;\n height: 1px;\n position: absolute;\n left: 0;\n bottom: 0;\n border: 0;\n padding: 0;\n overflow: hidden;\n outline: none;\n box-shadow: none;\n }\n"])));
16272
16394
  var LabelContainer$6 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n flex: 1;\n\n :first-child {\n text-align: left;\n }\n :not(:first-child) {\n text-align: center;\n }\n\n ", "\n\n ", ";\n"])), function (_ref) {
16273
16395
  var theme = _ref.theme;
16274
16396
  return theme.useTypography('p');
@@ -16555,8 +16677,8 @@ var DatePicker$1 = Object.assign(Component$1, {
16555
16677
  useDefaultDateIntervalState: useDefaultDateIntervalState
16556
16678
  });
16557
16679
 
16558
- var _templateObject$F;
16559
- var Input$3 = styled.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) {
16680
+ var _templateObject$G;
16681
+ var Input$3 = styled.input(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n line-height: 17px;\n\n ::placeholder {\n color: ", ";\n\n line-height: 17px;\n ", ";\n opacity: 1;\n }\n\n display: block;\n box-sizing: border-box;\n flex: 1;\n min-width: ", ";\n\n padding: calc(", " / 2) 0;\n\n box-shadow: none;\n outline: none;\n border: 1px solid transparent;\n"])), function (_ref) {
16560
16682
  var theme = _ref.theme;
16561
16683
  return theme.useTypography('p');
16562
16684
  }, function (_ref2) {
@@ -16619,8 +16741,8 @@ var Input$4 = React__default.forwardRef(function (props, ref) {
16619
16741
  });
16620
16742
  Input$4.displayName = 'Input';
16621
16743
 
16622
- var _templateObject$G, _templateObject2$v;
16623
- var Label$7 = styled.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16744
+ var _templateObject$H, _templateObject2$v;
16745
+ var Label$7 = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n display: inline-block;\n margin-bottom: ", ";\n\n ", "\n"])), function (_ref) {
16624
16746
  var theme = _ref.theme;
16625
16747
  return theme.spacings.s1;
16626
16748
  }, function (_ref2) {
@@ -16633,8 +16755,8 @@ var Label$8 = function Label(props) {
16633
16755
  return props.children ? React__default.createElement(Label$7, Object.assign({}, props)) : null;
16634
16756
  };
16635
16757
 
16636
- var _templateObject$H;
16637
- var Tag = styled.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) {
16758
+ var _templateObject$I;
16759
+ var Tag = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n ", "\n line-height: 17px;\n\n background-color: ", ";\n color: ", ";\n padding: calc(", " / 2);\n\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n display: flex;\n align-items: center;\n gap: ", ";\n\n > div:last-child {\n cursor: pointer;\n }\n"])), function (_ref) {
16638
16760
  var theme = _ref.theme;
16639
16761
  return theme.useTypography('p');
16640
16762
  }, function (_ref2) {
@@ -16667,8 +16789,8 @@ var Tag$1 = function Tag$1(props) {
16667
16789
  })));
16668
16790
  };
16669
16791
 
16670
- var _templateObject$I, _templateObject2$w, _templateObject3$p;
16671
- var Label$9 = styled.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) {
16792
+ var _templateObject$J, _templateObject2$w, _templateObject3$p;
16793
+ var Label$9 = styled.label(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n ", ";\n\n color: ", ";\n\n width: ", ";\n box-sizing: border-box;\n position: relative;\n display: block;\n\n ", "\n"])), function (_ref) {
16672
16794
  var theme = _ref.theme;
16673
16795
  return theme.useTypography('p');
16674
16796
  }, function (_ref2) {
@@ -16762,8 +16884,8 @@ var Tags = React__default.forwardRef(function (props, ref) {
16762
16884
  });
16763
16885
  Tags.displayName = 'Tags';
16764
16886
 
16765
- var _templateObject$J;
16766
- var RelativeContainer$6 = styled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
16887
+ var _templateObject$K;
16888
+ var RelativeContainer$6 = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
16767
16889
 
16768
16890
  var isLeapYear$1 = function isLeapYear(year) {
16769
16891
  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 +17286,8 @@ var Input$5 = Object.assign(Component$2, {
17164
17286
  getPhoneDetails: Phone.getPhoneDetails
17165
17287
  });
17166
17288
 
17167
- var _templateObject$K, _templateObject2$x, _templateObject3$q, _templateObject4$f;
17168
- var Container$7 = styled(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) {
17289
+ var _templateObject$L, _templateObject2$x, _templateObject3$q, _templateObject4$f;
17290
+ var Container$7 = styled(AbsoluteContainer)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n\n > div {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n > div {\n padding: ", ";\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n }\n"])), function (_ref) {
17169
17291
  var theme = _ref.theme;
17170
17292
  return theme.colors.white;
17171
17293
  }, function (_ref2) {
@@ -17302,8 +17424,8 @@ var AppliedFiltersMenu = function AppliedFiltersMenu(props) {
17302
17424
  }))));
17303
17425
  };
17304
17426
 
17305
- var _templateObject$L, _templateObject2$y, _templateObject3$r;
17306
- var Container$8 = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
17427
+ var _templateObject$M, _templateObject2$y, _templateObject3$r;
17428
+ var Container$8 = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: ", ";\n align-items: center;\n color: ", ";\n\n ", "\n"])), function (_ref) {
17307
17429
  var theme = _ref.theme,
17308
17430
  gap = _ref.$gap;
17309
17431
  return gap === '0' ? '0' : theme.spacings[gap];
@@ -17369,8 +17491,8 @@ var AppliedFilters = Object.assign(function (props) {
17369
17491
  Menu: AppliedFiltersMenu
17370
17492
  });
17371
17493
 
17372
- var _templateObject$M, _templateObject2$z, _templateObject3$s, _templateObject4$g, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$8;
17373
- var Container$9 = styled.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) {
17494
+ var _templateObject$N, _templateObject2$z, _templateObject3$s, _templateObject4$g, _templateObject5$d, _templateObject6$c, _templateObject7$c, _templateObject8$9, _templateObject9$9, _templateObject10$8;
17495
+ var Container$9 = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n background: #fff;\n border: 1px solid #d4d4d5;\n border-radius: 4px;\n border-left-width: 5px;\n padding: 14px;\n ", "\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n"])), function (props) {
17374
17496
  return props.size === 'mini' && css(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 99px;\n "])));
17375
17497
  }, function (props) {
17376
17498
  return props.size === 'small' && css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 394px;\n height: 131px;\n "])));
@@ -17399,8 +17521,8 @@ var Card = function Card(_ref) {
17399
17521
  return React__default.createElement(Container$9, Object.assign({}, rest), children);
17400
17522
  };
17401
17523
 
17402
- var _templateObject$N;
17403
- var Container$a = styled.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) {
17524
+ var _templateObject$O;
17525
+ var Container$a = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: ", ";\n\n display: flex;\n flex-direction: column;\n gap: ", ";\n\n > div:nth-child(1) {\n ", "\n color: ", ";\n }\n"])), function (_ref) {
17404
17526
  var s1 = _ref.theme.spacings.s1;
17405
17527
  return "0 0 " + s1 + " " + s1;
17406
17528
  }, function (_ref2) {
@@ -17461,8 +17583,8 @@ var Header$4 = function Header(props) {
17461
17583
  }));
17462
17584
  };
17463
17585
 
17464
- var _templateObject$O;
17465
- var EmptyMessage = styled.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) {
17586
+ var _templateObject$P;
17587
+ var EmptyMessage = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n padding: 0 20px;\n color: ", ";\n text-align: center;\n margin: auto;\n width: 100%;\n"])), function (_ref) {
17466
17588
  var lightGrey = _ref.theme.colors.lightGrey;
17467
17589
  return lightGrey;
17468
17590
  });
@@ -17803,14 +17925,14 @@ var Filters = Object.assign(function (props) {
17803
17925
  Menu: FiltersMenu
17804
17926
  });
17805
17927
 
17806
- var Provider$2 = React__default.createContext({
17928
+ var Provider$3 = React__default.createContext({
17807
17929
  cols: {}
17808
17930
  });
17809
- var useContext$2 = function useContext() {
17810
- return React__default.useContext(Provider$2);
17931
+ var useContext$3 = function useContext() {
17932
+ return React__default.useContext(Provider$3);
17811
17933
  };
17812
17934
 
17813
- var _templateObject$P, _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;
17935
+ var _templateObject$Q, _templateObject2$A, _templateObject3$t, _templateObject4$h, _templateObject5$e, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject10$9, _templateObject11$4, _templateObject12$3, _templateObject13$2, _templateObject14$2, _templateObject15$2;
17814
17936
  var aligns = {
17815
17937
  self: {
17816
17938
  horizontal: {
@@ -17839,7 +17961,7 @@ var aligns = {
17839
17961
  }
17840
17962
  }
17841
17963
  };
17842
- var Col = styled.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) {
17964
+ var Col = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n position: relative;\n\n ", "\n\n padding: ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n\n ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17843
17965
  var width = _ref.width;
17844
17966
 
17845
17967
  if (width === undefined) {
@@ -17928,7 +18050,7 @@ var Col = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLi
17928
18050
  });
17929
18051
 
17930
18052
  var Col$1 = React__default.forwardRef(function (props, ref) {
17931
- var context = useContext$2();
18053
+ var context = useContext$3();
17932
18054
 
17933
18055
  var _props = _extends({}, context.cols, props);
17934
18056
 
@@ -17939,16 +18061,16 @@ var Col$1 = React__default.forwardRef(function (props, ref) {
17939
18061
  });
17940
18062
  Col$1.displayName = 'Col';
17941
18063
 
17942
- var Provider$3 = React__default.createContext({
18064
+ var Provider$4 = React__default.createContext({
17943
18065
  rows: {},
17944
18066
  cols: {}
17945
18067
  });
17946
- var useContext$3 = function useContext() {
17947
- return React__default.useContext(Provider$3);
18068
+ var useContext$4 = function useContext() {
18069
+ return React__default.useContext(Provider$4);
17948
18070
  };
17949
18071
 
17950
- var _templateObject$Q, _templateObject2$B, _templateObject3$u;
17951
- var Grid = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
18072
+ var _templateObject$R, _templateObject2$B, _templateObject3$u;
18073
+ var Grid = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n"])), function (_ref) {
17952
18074
  var spacing = _ref.spacing;
17953
18075
  if (spacing === undefined) return;
17954
18076
  var padding = getSpacings(spacing);
@@ -17964,7 +18086,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
17964
18086
  var cols = props.cols || {};
17965
18087
  var rows = props.rows || {};
17966
18088
  var gridProps = filterObject(props, ['cols', 'rows']);
17967
- return React__default.createElement(Provider$3.Provider, {
18089
+ return React__default.createElement(Provider$4.Provider, {
17968
18090
  value: {
17969
18091
  rows: rows,
17970
18092
  cols: cols
@@ -17975,7 +18097,7 @@ var Grid$1 = React__default.forwardRef(function (props, ref) {
17975
18097
  });
17976
18098
  Grid$1.displayName = 'Grid';
17977
18099
 
17978
- var _templateObject$R, _templateObject2$C, _templateObject3$v, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
18100
+ var _templateObject$S, _templateObject2$C, _templateObject3$v, _templateObject4$i, _templateObject5$f, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject10$a;
17979
18101
  var horizontalAligns = {
17980
18102
  around: 'space-around',
17981
18103
  between: 'space-between',
@@ -17988,7 +18110,7 @@ var verticalAligns = {
17988
18110
  top: 'start',
17989
18111
  bottom: 'end'
17990
18112
  };
17991
- var Row = styled.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) {
18113
+ var Row = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n color: ", ";\n\n ", "\n\n ", "\n"])), function (_ref) {
17992
18114
  var spacing = _ref.spacing;
17993
18115
  if (spacing === undefined) return;
17994
18116
  var padding = getSpacings(spacing);
@@ -18054,12 +18176,12 @@ var Row = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLi
18054
18176
  });
18055
18177
 
18056
18178
  var Row$1 = React__default.forwardRef(function (props, ref) {
18057
- var context = useContext$3();
18179
+ var context = useContext$4();
18058
18180
 
18059
18181
  var cols = _extends({}, context.cols, props.cols || {});
18060
18182
 
18061
18183
  var rowProps = filterObject(props, ['cols'], _extends({}, context.rows));
18062
- return React__default.createElement(Provider$2.Provider, {
18184
+ return React__default.createElement(Provider$3.Provider, {
18063
18185
  value: {
18064
18186
  cols: cols
18065
18187
  }
@@ -18106,8 +18228,8 @@ var widths = {
18106
18228
  default: '642.5px'
18107
18229
  };
18108
18230
 
18109
- var _templateObject$S, _templateObject2$D, _templateObject3$w, _templateObject4$j, _templateObject5$g, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$c, _templateObject10$b;
18110
- var Background = styled.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) {
18231
+ var _templateObject$T, _templateObject2$D, _templateObject3$w, _templateObject4$j, _templateObject5$g, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$c, _templateObject10$b;
18232
+ var Background = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n backdrop-filter: blur(3px);\n background-color: ", ";\n"])), function (_ref) {
18111
18233
  var theme = _ref.theme;
18112
18234
  return theme.getColor('black', 25);
18113
18235
  });
@@ -18215,8 +18337,8 @@ var Modal = function Modal(props) {
18215
18337
  }))))));
18216
18338
  };
18217
18339
 
18218
- var _templateObject$T;
18219
- var Content$1 = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18340
+ var _templateObject$U;
18341
+ var Content$1 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18220
18342
  var theme = _ref.theme;
18221
18343
  return theme.spacings.s5 + " " + theme.spacings.s4;
18222
18344
  });
@@ -18253,8 +18375,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
18253
18375
  }, React__default.createElement(Content$1, null, children || content));
18254
18376
  };
18255
18377
 
18256
- var _templateObject$U;
18257
- var Content$2 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18378
+ var _templateObject$V;
18379
+ var Content$2 = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18258
18380
  var theme = _ref.theme;
18259
18381
  return theme.spacings.s5 + " " + theme.spacings.s4;
18260
18382
  });
@@ -18294,8 +18416,8 @@ var ConfirmSuccess = function ConfirmSuccess(props) {
18294
18416
  }, React__default.createElement(Content$2, null, children || content));
18295
18417
  };
18296
18418
 
18297
- var _templateObject$V;
18298
- var Content$3 = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18419
+ var _templateObject$W;
18420
+ var Content$3 = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref) {
18299
18421
  var theme = _ref.theme;
18300
18422
  return theme.spacings.s5 + " " + theme.spacings.s4;
18301
18423
  });
@@ -18336,8 +18458,8 @@ var Modal$1 = Object.assign(Modal, {
18336
18458
  Audit: Audit
18337
18459
  });
18338
18460
 
18339
- var _templateObject$W, _templateObject2$E, _templateObject3$x, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
18340
- var Container$c = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18461
+ var _templateObject$X, _templateObject2$E, _templateObject3$x, _templateObject4$k, _templateObject5$h, _templateObject6$g, _templateObject7$g, _templateObject8$d, _templateObject9$d, _templateObject10$c, _templateObject11$5;
18462
+ var Container$c = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 300px;\n position: absolute;\n padding: 14px;\n"])));
18341
18463
  var Header$6 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18342
18464
  var HeaderImage = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
18343
18465
  var HeaderContent = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1;\n"])));
@@ -18388,8 +18510,8 @@ var Template1 = function Template1(props) {
18388
18510
  })));
18389
18511
  };
18390
18512
 
18391
- var _templateObject$X, _templateObject2$F, _templateObject3$y, _templateObject4$l, _templateObject5$i;
18392
- var HeaderLine$1 = styled.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) {
18513
+ var _templateObject$Y, _templateObject2$F, _templateObject3$y, _templateObject4$l, _templateObject5$i;
18514
+ var HeaderLine$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18393
18515
  return props.height;
18394
18516
  }, function (props) {
18395
18517
  return props.size === 'mini' && css(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n width: 15%;\n "])));
@@ -18401,8 +18523,8 @@ var HeaderLine$1 = styled.div(_templateObject$X || (_templateObject$X = _taggedT
18401
18523
  return props.size === 'large' && css(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n width: 75%;\n "])));
18402
18524
  });
18403
18525
 
18404
- var _templateObject$Y, _templateObject2$G, _templateObject3$z, _templateObject4$m, _templateObject5$j, _templateObject6$h, _templateObject7$h, _templateObject8$e;
18405
- var Container$d = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18526
+ var _templateObject$Z, _templateObject2$G, _templateObject3$z, _templateObject4$m, _templateObject5$j, _templateObject6$h, _templateObject7$h, _templateObject8$e;
18527
+ var Container$d = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18406
18528
  var Template2Container = styled(Container$d)(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n background: #fff;\n border: 2px solid #ebebeb;\n"])));
18407
18529
  var Header$7 = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
18408
18530
  var HeaderImage$1 = styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n width: 43px;\n height: 44px;\n background-color: #ebebeb;\n"])));
@@ -18432,8 +18554,8 @@ var Template2 = function Template2(props) {
18432
18554
  })));
18433
18555
  };
18434
18556
 
18435
- var _templateObject$Z, _templateObject2$H, _templateObject3$A;
18436
- var Container$e = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18557
+ var _templateObject$_, _templateObject2$H, _templateObject3$A;
18558
+ var Container$e = styled.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18437
18559
  var Template3Container = styled(Container$e)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose([""])));
18438
18560
  var Template3Line = styled(HeaderLine$1)(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n background-color: #dadada;\n height: ", ";\n"])), function (props) {
18439
18561
  return props.height;
@@ -18464,8 +18586,8 @@ var Template3 = function Template3(props) {
18464
18586
  }));
18465
18587
  };
18466
18588
 
18467
- var _templateObject$_, _templateObject2$I, _templateObject3$B, _templateObject4$n, _templateObject5$k, _templateObject6$i, _templateObject7$i, _templateObject8$f;
18468
- var Container$f = styled.div(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18589
+ var _templateObject$$, _templateObject2$I, _templateObject3$B, _templateObject4$n, _templateObject5$k, _templateObject6$i, _templateObject7$i, _templateObject8$f;
18590
+ var Container$f = styled.div(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-height: 100%;\n position: absolute;\n padding: 14px;\n"])));
18469
18591
  var HeaderLine$3 = styled.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18470
18592
  return props.height;
18471
18593
  }, function (props) {
@@ -18531,8 +18653,8 @@ var Template4 = function Template4(props) {
18531
18653
  }));
18532
18654
  };
18533
18655
 
18534
- var _templateObject$$, _templateObject2$J, _templateObject3$C, _templateObject4$o, _templateObject5$l, _templateObject6$j, _templateObject7$j, _templateObject8$g, _templateObject9$e;
18535
- var Container$g = styled.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"])));
18656
+ var _templateObject$10, _templateObject2$J, _templateObject3$C, _templateObject4$o, _templateObject5$l, _templateObject6$j, _templateObject7$j, _templateObject8$g, _templateObject9$e;
18657
+ var Container$g = styled.div(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 746px;\n height: 169px;\n border: 1px solid #e6e6e7;\n border-radius: 4px;\n padding: 14px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
18536
18658
  var Circle = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: 141px;\n height: 141px;\n background-color: #dddedf;\n border-radius: 50%;\n"])));
18537
18659
  var HeaderLine$4 = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18538
18660
  return props.height;
@@ -18579,8 +18701,8 @@ var Template5 = function Template5(props) {
18579
18701
  })));
18580
18702
  };
18581
18703
 
18582
- var _templateObject$10, _templateObject2$K, _templateObject3$D, _templateObject4$p, _templateObject5$m, _templateObject6$k, _templateObject7$k, _templateObject8$h, _templateObject9$f;
18583
- var Container$h = styled.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"])));
18704
+ var _templateObject$11, _templateObject2$K, _templateObject3$D, _templateObject4$p, _templateObject5$m, _templateObject6$k, _templateObject7$k, _templateObject8$h, _templateObject9$f;
18705
+ var Container$h = styled.div(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n width: 395px;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #f5f5f5;\n"])));
18584
18706
  var Header$8 = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n"])));
18585
18707
  var Footer$3 = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-top: 1px solid #b1b1b3;\n height: 50px;\n"])));
18586
18708
  var HeaderLine$5 = styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
@@ -18622,8 +18744,8 @@ var Template6 = function Template6(props) {
18622
18744
  })));
18623
18745
  };
18624
18746
 
18625
- var _templateObject$11, _templateObject2$L, _templateObject3$E, _templateObject4$q, _templateObject5$n, _templateObject6$l, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject10$d;
18626
- var Container$i = styled.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"])));
18747
+ var _templateObject$12, _templateObject2$L, _templateObject3$E, _templateObject4$q, _templateObject5$n, _templateObject6$l, _templateObject7$l, _templateObject8$i, _templateObject9$g, _templateObject10$d;
18748
+ var Container$i = styled.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18627
18749
  var Header$9 = styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18628
18750
  var HeaderLine$6 = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18629
18751
  return props.height;
@@ -18656,8 +18778,8 @@ var Template7 = function Template7(props) {
18656
18778
  })), React__default.createElement(Main$2, null, React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null), React__default.createElement(Circle$1, null)));
18657
18779
  };
18658
18780
 
18659
- var _templateObject$12, _templateObject2$M, _templateObject3$F, _templateObject4$r, _templateObject5$o, _templateObject6$m, _templateObject7$m, _templateObject8$j, _templateObject9$h;
18660
- var Container$j = styled.div(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18781
+ var _templateObject$13, _templateObject2$M, _templateObject3$F, _templateObject4$r, _templateObject5$o, _templateObject6$m, _templateObject7$m, _templateObject8$j, _templateObject9$h;
18782
+ var Container$j = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 110px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18661
18783
  var Header$a = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18662
18784
  var HeaderLine$7 = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 14px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18663
18785
  return props.height;
@@ -18699,8 +18821,8 @@ var Template8 = function Template8(props) {
18699
18821
  })));
18700
18822
  };
18701
18823
 
18702
- var _templateObject$13, _templateObject2$N, _templateObject3$G, _templateObject4$s, _templateObject5$p, _templateObject6$n, _templateObject7$n, _templateObject8$k, _templateObject9$i, _templateObject10$e;
18703
- var Container$k = styled.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"])));
18824
+ var _templateObject$14, _templateObject2$N, _templateObject3$G, _templateObject4$s, _templateObject5$p, _templateObject6$n, _templateObject7$n, _templateObject8$k, _templateObject9$i, _templateObject10$e;
18825
+ var Container$k = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18704
18826
  var Header$b = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18705
18827
  var HeaderLine$8 = styled.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18706
18828
  return props.height;
@@ -18738,8 +18860,8 @@ var Template8$1 = function Template8(props) {
18738
18860
  })), React__default.createElement(Main$4, null, React__default.createElement(Circle$2, null)));
18739
18861
  };
18740
18862
 
18741
- var _templateObject$14, _templateObject2$O, _templateObject3$H, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
18742
- var Container$l = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18863
+ var _templateObject$15, _templateObject2$O, _templateObject3$H, _templateObject4$t, _templateObject5$q, _templateObject6$o, _templateObject7$o, _templateObject8$l, _templateObject9$j, _templateObject10$f, _templateObject11$6;
18864
+ var Container$l = styled.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n width: 395px;\n height: 245px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #f5f5f5 0% 0% no-repeat padding-box;\n"])));
18743
18865
  var Header$c = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 14px;\n width: 100%;\n"])));
18744
18866
  var HeaderLine$9 = styled.div(_templateObject3$H || (_templateObject3$H = _taggedTemplateLiteralLoose(["\n height: ", ";\n background-color: #ebebeb;\n margin-left: 7px;\n\n & + div {\n margin-top: 7px;\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
18745
18867
  return props.height;
@@ -18882,8 +19004,8 @@ var Placeholder = function Placeholder(props) {
18882
19004
  }
18883
19005
  };
18884
19006
 
18885
- var _templateObject$15, _templateObject2$P, _templateObject3$I, _templateObject4$u, _templateObject5$r, _templateObject6$p, _templateObject7$p;
18886
- var Container$m = styled.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"])));
19007
+ var _templateObject$16, _templateObject2$P, _templateObject3$I, _templateObject4$u, _templateObject5$r, _templateObject6$p, _templateObject7$p;
19008
+ var Container$m = styled.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n span {\n display: inline-block;\n margin-left: 7px;\n color: #000000cc;\n }\n"])));
18887
19009
  var Progress = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n width: 64px;\n height: 12px;\n border: 1px solid #e4e4e4;\n div {\n width: ", ";\n max-width: 64px;\n height: 100%;\n ", "\n\n ", "\n ", "\n ", "\n ", "\n }\n"])), function (props) {
18888
19010
  return props.value + "%";
18889
19011
  }, function (props) {
@@ -18917,8 +19039,8 @@ var ProgressBar = function ProgressBar(props) {
18917
19039
  return React__default.createElement(Container$m, null, React__default.createElement(Progress, Object.assign({}, props), React__default.createElement("div", null)), React__default.createElement("span", null, " ", props.value || '0', "%"));
18918
19040
  };
18919
19041
 
18920
- var _templateObject$16, _templateObject2$Q, _templateObject3$J, _templateObject4$v, _templateObject5$s, _templateObject6$q, _templateObject7$q, _templateObject8$m;
18921
- var Container$n = styled.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
19042
+ var _templateObject$17, _templateObject2$Q, _templateObject3$J, _templateObject4$v, _templateObject5$s, _templateObject6$q, _templateObject7$q, _templateObject8$m;
19043
+ var Container$n = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
18922
19044
  var delimiters = {
18923
19045
  blue: ['blue'],
18924
19046
  grey: ['warningGray']
@@ -18986,6 +19108,8 @@ var Tabs$1 = function Tabs$1(props) {
18986
19108
  status = _useState[0],
18987
19109
  setStatus = _useState[1];
18988
19110
 
19111
+ var onClose = props.onClose || function () {};
19112
+
18989
19113
  var activate = function activate(active, length) {
18990
19114
  setStatus(function (prev) {
18991
19115
  if (length !== undefined && length !== prev.length) {
@@ -19029,7 +19153,7 @@ var Tabs$1 = function Tabs$1(props) {
19029
19153
  activate(index);
19030
19154
  };
19031
19155
 
19032
- var onClickClose = function onClickClose(index) {
19156
+ var onClickClose = function onClickClose(index, tab, event) {
19033
19157
  var getActive = function getActive(removed, prev) {
19034
19158
  for (var i = index - 1; i > -1; i--) {
19035
19159
  if (removed[i] !== 'closed') {
@@ -19062,9 +19186,10 @@ var Tabs$1 = function Tabs$1(props) {
19062
19186
 
19063
19187
  return status;
19064
19188
  });
19189
+ onClose(index, tab, event);
19065
19190
  };
19066
19191
 
19067
- var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'alwaysOpen', 'delimiter', 'spacing']);
19192
+ var divProps = filterObject(props, ['options', 'activeState', 'internal', 'maxTabs', 'onMaxTabsExceeded', 'onClose', 'alwaysOpen', 'delimiter', 'spacing']);
19068
19193
  return React__default.createElement(Container$n, Object.assign({}, divProps), React__default.createElement(Tabs, {
19069
19194
  "$internal": props.internal,
19070
19195
  "$delimiter": props.delimiter,
@@ -19081,8 +19206,8 @@ var Tabs$1 = function Tabs$1(props) {
19081
19206
  }, React__default.createElement("span", null, tab.label), !props.alwaysOpen && React__default.createElement(Icon, {
19082
19207
  type: 'feather',
19083
19208
  icon: 'x',
19084
- onClick: function onClick() {
19085
- return onClickClose(index);
19209
+ onClick: function onClick(e) {
19210
+ return onClickClose(index, tab, e);
19086
19211
  },
19087
19212
  width: '14px',
19088
19213
  height: '14px',
@@ -19094,8 +19219,8 @@ var Tabs$1 = function Tabs$1(props) {
19094
19219
  }));
19095
19220
  };
19096
19221
 
19097
- var _templateObject$17;
19098
- var Container$o = styled.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) {
19222
+ var _templateObject$18;
19223
+ var Container$o = styled.textarea(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n resize: none;\n outline: 0;\n border: 1px solid #c8c8c8;\n padding: 14px;\n border-radius: 4px;\n color: #192338;\n"])), function (props) {
19099
19224
  return "" + props.width;
19100
19225
  }, function (props) {
19101
19226
  return "" + props.height;
@@ -19105,8 +19230,8 @@ var TextArea = function TextArea(props) {
19105
19230
  return React__default.createElement(Container$o, Object.assign({}, props));
19106
19231
  };
19107
19232
 
19108
- var _templateObject$18, _templateObject2$R, _templateObject3$K, _templateObject4$w, _templateObject5$t, _templateObject6$r;
19109
- var Container$p = styled.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) {
19233
+ var _templateObject$19, _templateObject2$R, _templateObject3$K, _templateObject4$w, _templateObject5$t, _templateObject6$r;
19234
+ var Container$p = styled.div(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n border-radius: 4px;\n width: ", ";\n height: 88px;\n border: 1px solid transparent;\n position: relative;\n\n ", "\n\n ", "\n\n ", "\n\n svg {\n cursor: pointer;\n position: absolute;\n top: 14px;\n right: 14px;\n width: 13px;\n height: 13px;\n }\n"])), function (props) {
19110
19235
  return props.size === 'large' ? '837px' : '460px';
19111
19236
  }, function (props) {
19112
19237
  return props.color === 'success' && css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n background-color: #fcfff5;\n opacity: 1;\n border-color: #a8c599;\n h4 {\n color: #1e561f;\n }\n p {\n color: #1e561fcc;\n }\n "])));
@@ -19128,8 +19253,8 @@ var Toast = function Toast(props) {
19128
19253
  })), React__default.createElement(IconContent, null, React__default.createElement("h4", null, props.title), React__default.createElement("p", null, " ", props.description)));
19129
19254
  };
19130
19255
 
19131
- var _templateObject$19, _templateObject2$S, _templateObject3$L, _templateObject4$x, _templateObject5$u;
19132
- var Image = styled.img(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
19256
+ var _templateObject$1a, _templateObject2$S, _templateObject3$L, _templateObject4$x, _templateObject5$u;
19257
+ var Image = styled.img(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n"])));
19133
19258
  var Container$q = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n\n &,\n ", " {\n width: ", ";\n\n height: ", ";\n }\n"])), Image, function (_ref) {
19134
19259
  var width = _ref.width;
19135
19260
 
@@ -19201,5 +19326,5 @@ var Zoom = function Zoom(props) {
19201
19326
  }))));
19202
19327
  };
19203
19328
 
19204
- export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button$1 as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer$1 as MwEllipsisContainer, Filters as MwFilters, Grid$2 as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input$5 as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, useTransition as useMwTransition };
19329
+ export { AbsoluteContainer as MwAbsoluteContainer, AppliedFilters as MwAppliedFilters, Button$1 as MwButton, Calendar as MwCalendar, Card as MwCard, EllipsisContainer$1 as MwEllipsisContainer, Filters as MwFilters, Form as MwForm, Grid$2 as MwGrid, Icon as MwIcon, Indicator as MwIndicator, Input$5 as MwInput, Link as MwLink, Loader as MwLoader, Menu as MwMenu, Modal$1 as MwModal, Placeholder as MwPlaceholder, ProgressBar as MwProgressBar, ScrollContainer as MwScrollContainer, Tabs$1 as MwTabs, TextArea as MwTextArea, Toast as MwToast, Transition as MwTransition, Zoom as MwZoom, ThemeProvider, useTransition as useMwTransition };
19205
19330
  //# sourceMappingURL=index.modern.js.map