@dspworkplace/ui 2.0.1 → 2.1.0

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.es.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import React, { forwardRef, useState, Fragment, useCallback, useEffect, useRef, Children } from 'react';
2
2
  import styled, { keyframes } from 'styled-components';
3
+ import { createPortal } from 'react-dom';
3
4
  import { supercomplete, useCombobox } from '@szhsin/react-autocomplete';
5
+ import { usePopper } from 'react-popper';
4
6
 
5
7
  var defaultRadius = '4px';
6
8
  var colors = {
@@ -360,7 +362,7 @@ function _templateObject5() {
360
362
  }
361
363
 
362
364
  function _templateObject4() {
363
- var data = taggedTemplateLiteral(["\n font-size:", ";\n font-weight:normal;\n font-family:\"Huninn\", sans-serif;\n display:block;\n color:#516F90;\n margin-top:4px;\n"]);
365
+ var data = taggedTemplateLiteral(["\n font-size:", ";\n line-height: ", ";\n font-weight:normal;\n font-family: ", ";\n display:block;\n color: ", ";\n margin-top:4px;\n"]);
364
366
 
365
367
  _templateObject4 = function _templateObject4() {
366
368
  return data;
@@ -422,7 +424,7 @@ var InputBase = styled.input(_templateObject3(), theme.colors.neutrals.white, th
422
424
  var size = _ref.size;
423
425
  return handleSize(size);
424
426
  }, theme.colors.extra.whiteSmoke, borderDefault, theme.colors.neutrals.silver, theme.colors.neutrals.medium, borderDefault, borderDefault, borderDefault, theme.colors.action, theme.colors.secondary, theme.colors.neutrals.silver, theme.font.small);
425
- var SpanHelp = styled.span(_templateObject4(), theme.font.extraSmall.size);
427
+ var SpanHelp = styled.span(_templateObject4(), theme.font.small.size, theme.font.small.lineHeight, theme.font.main, theme.colors.info.text);
426
428
  var SpanError = styled(SpanHelp)(_templateObject5(), theme.colors.error.text);
427
429
 
428
430
  var RequiredText = function RequiredText() {
@@ -459,28 +461,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
459
461
 
460
462
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
461
463
 
462
- function _templateObject4$1() {
463
- var data = taggedTemplateLiteral(["\n width:", "\n display:inline-block;\n vertical-align:top;\n\n svg path {\n fill: ", ";\n }\n"]);
464
-
465
- _templateObject4$1 = function _templateObject4() {
466
- return data;
467
- };
468
-
469
- return data;
470
- }
471
-
472
- function _templateObject3$1() {
473
- var data = taggedTemplateLiteral(["\n color:", "\n"]);
474
-
475
- _templateObject3$1 = function _templateObject3() {
476
- return data;
477
- };
478
-
479
- return data;
480
- }
481
-
482
464
  function _templateObject2$1() {
483
- var data = taggedTemplateLiteral(["\n font-size:", ";\n font-weight:normal;\n font-family:\"Huninn\", sans-serif;\n display:block;\n color:#516F90;\n margin-top:4px;\n"]);
465
+ var data = taggedTemplateLiteral(["\n width:", "\n display:inline-block;\n vertical-align:top;\n\n svg path {\n fill: ", ";\n }\n"]);
484
466
 
485
467
  _templateObject2$1 = function _templateObject2() {
486
468
  return data;
@@ -550,9 +532,7 @@ var InputBase$1 = styled.input(_templateObject$2(), theme.colors.neutrals.white,
550
532
  }, borderDefault$1, function (props) {
551
533
  return handlerColor(props.validation);
552
534
  }, borderDefault$1, theme.colors.action, theme.colors.secondary, theme.colors.neutrals.silver, theme.font.small, theme.colors.info.bg, theme.colors.neutrals.silver);
553
- var Span = styled.span(_templateObject2$1(), theme.font.extraSmall.size);
554
- var SpanError$1 = styled(Span)(_templateObject3$1(), theme.colors.error.text);
555
- var Frag$1 = styled.div(_templateObject4$1(), function (_ref2) {
535
+ var Frag$1 = styled.div(_templateObject2$1(), function (_ref2) {
556
536
  var size = _ref2.size;
557
537
  return handleSize$1(size);
558
538
  }, theme.colors.secondary);
@@ -641,7 +621,7 @@ var Input = /*#__PURE__*/forwardRef(function (_ref3, ref) {
641
621
  validation: validationType,
642
622
  ref: ref,
643
623
  onChange: handleChange
644
- })), iconAction && iconAction), help && /*#__PURE__*/React.createElement(Span, null, help), error && /*#__PURE__*/React.createElement(SpanError$1, null, /*#__PURE__*/React.createElement("img", {
624
+ })), iconAction && iconAction), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
645
625
  src: Ex,
646
626
  style: {
647
627
  marginRight: '6px'
@@ -4175,20 +4155,30 @@ var mergeRefs = function mergeRefs(refs) {
4175
4155
  };
4176
4156
  };
4177
4157
 
4178
- function _templateObject4$2() {
4158
+ function _templateObject5$1() {
4159
+ var data = taggedTemplateLiteral(["\n font-family: ", ";\n"]);
4160
+
4161
+ _templateObject5$1 = function _templateObject5() {
4162
+ return data;
4163
+ };
4164
+
4165
+ return data;
4166
+ }
4167
+
4168
+ function _templateObject4$1() {
4179
4169
  var data = taggedTemplateLiteral(["\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n\n ", "\n}\n"]);
4180
4170
 
4181
- _templateObject4$2 = function _templateObject4() {
4171
+ _templateObject4$1 = function _templateObject4() {
4182
4172
  return data;
4183
4173
  };
4184
4174
 
4185
4175
  return data;
4186
4176
  }
4187
4177
 
4188
- function _templateObject3$2() {
4178
+ function _templateObject3$1() {
4189
4179
  var data = taggedTemplateLiteral(["\n font-size: 16px;\n line-height: 20px;\n"]);
4190
4180
 
4191
- _templateObject3$2 = function _templateObject3() {
4181
+ _templateObject3$1 = function _templateObject3() {
4192
4182
  return data;
4193
4183
  };
4194
4184
 
@@ -4216,34 +4206,19 @@ function _templateObject$5() {
4216
4206
  }
4217
4207
  var Title = styled.h1(_templateObject$5(), theme.colors.info.text);
4218
4208
  var SubTitle = styled.h3(_templateObject2$2(), theme.colors.info.text);
4219
- var ThirdTitle = styled(SubTitle)(_templateObject3$2());
4220
- var Text = styled.p(_templateObject4$2(), theme.colors.neutrals.gray, function (_ref) {
4209
+ var ThirdTitle = styled(SubTitle)(_templateObject3$1());
4210
+ var Text = styled.p(_templateObject4$1(), theme.colors.neutrals.gray, function (_ref) {
4221
4211
  var subtle = _ref.subtle;
4222
4212
  return subtle && "\n color:".concat(theme.colors.neutrals.medium, ";\n ");
4223
4213
  });
4214
+ var Emphasis = styled.span(_templateObject5$1(), theme.font.main);
4224
4215
 
4225
- function _templateObject14() {
4226
- var data = taggedTemplateLiteral(["\n border: 0;\n padding-right: 8px;\n background: transparent;\n cursor: inherit;\n display: flex;\n align-items: center;\n height: 100%;\n"]);
4227
-
4228
- _templateObject14 = function _templateObject14() {
4229
- return data;
4230
- };
4231
-
4232
- return data;
4233
- }
4234
-
4235
- function _templateObject13() {
4236
- var data = taggedTemplateLiteral(["\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n padding: 0;\n background: transparent;\n cursor: inherit;\n font-family: inherit;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n padding-left: 8px;\n\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n"]);
4237
-
4238
- _templateObject13 = function _templateObject13() {
4239
- return data;
4240
- };
4216
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
4241
4217
 
4242
- return data;
4243
- }
4218
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
4244
4219
 
4245
4220
  function _templateObject12() {
4246
- var data = taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n box-sizing: border-box;\n margin-right: 5px;\n border-radius: 100%;\n border: 2px solid white;\n background: ", "\n z-index: ", ";\n margin-left: ", "\n margin-top: 8px;\n margin-bottom: 8px;\n display: inline-block;\n"]);
4221
+ var data = taggedTemplateLiteral(["\n border: 0;\n padding-right: 8px;\n background: transparent;\n cursor: inherit;\n display: flex;\n align-items: center;\n height: 100%;\n"]);
4247
4222
 
4248
4223
  _templateObject12 = function _templateObject12() {
4249
4224
  return data;
@@ -4253,7 +4228,7 @@ function _templateObject12() {
4253
4228
  }
4254
4229
 
4255
4230
  function _templateObject11() {
4256
- var data = taggedTemplateLiteral(["\n color: #707070;\n font-size: 12px;\n padding: 8px;\n font-weight: bold;\n cursor: default;\n white-space: nowrap;\n"]);
4231
+ var data = taggedTemplateLiteral(["\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n padding: 0;\n background: transparent;\n cursor: inherit;\n font-family: inherit;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n padding-left: 8px;\n\n\n &::placeholder {\n color: ", ";\n opacity: 1;\n }\n"]);
4257
4232
 
4258
4233
  _templateObject11 = function _templateObject11() {
4259
4234
  return data;
@@ -4263,7 +4238,7 @@ function _templateObject11() {
4263
4238
  }
4264
4239
 
4265
4240
  function _templateObject10() {
4266
- var data = taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n height: 16px;\n width: 16px;\n border-radius: ", ";\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-right: 9px;\n\n &:focus {\n border-color: ", ";\n box-shadow: 0 0 6px ", ";\n }\n\n"]);
4241
+ var data = taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n box-sizing: border-box;\n margin-right: 5px;\n border-radius: 100%;\n border: 2px solid white;\n background: ", "\n z-index: ", ";\n margin-left: ", "\n margin-top: 8px;\n margin-bottom: 8px;\n display: inline-block;\n"]);
4267
4242
 
4268
4243
  _templateObject10 = function _templateObject10() {
4269
4244
  return data;
@@ -4273,7 +4248,7 @@ function _templateObject10() {
4273
4248
  }
4274
4249
 
4275
4250
  function _templateObject9$1() {
4276
- var data = taggedTemplateLiteral(["\n height: 22px;\n width: 22px;\n overflow: hidden;\n border-radius: 100%;\n border: 1px solid #516F90;\n background: #EAF0F6;\n margin-right: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n\n > svg {\n margin-top: 2px;\n }\n\n > img {\n width: 25px;\n height: 25px;\n object-fit: cover;\n object-position: center;\n }\n"]);
4251
+ var data = taggedTemplateLiteral(["\n color: #707070;\n font-size: 12px;\n padding: 8px;\n font-weight: bold;\n cursor: default;\n white-space: nowrap;\n"]);
4277
4252
 
4278
4253
  _templateObject9$1 = function _templateObject9() {
4279
4254
  return data;
@@ -4283,7 +4258,7 @@ function _templateObject9$1() {
4283
4258
  }
4284
4259
 
4285
4260
  function _templateObject8$1() {
4286
- var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
4261
+ var data = taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n height: 16px;\n width: 16px;\n border-radius: ", ";\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-right: 9px;\n\n &:focus {\n border-color: ", ";\n box-shadow: 0 0 6px ", ";\n }\n\n"]);
4287
4262
 
4288
4263
  _templateObject8$1 = function _templateObject8() {
4289
4264
  return data;
@@ -4293,7 +4268,7 @@ function _templateObject8$1() {
4293
4268
  }
4294
4269
 
4295
4270
  function _templateObject7$1() {
4296
- var data = taggedTemplateLiteral(["\n color: ", "\n"]);
4271
+ var data = taggedTemplateLiteral(["\n height: 22px;\n width: 22px;\n overflow: hidden;\n border-radius: 100%;\n border: 1px solid #516F90;\n background: #EAF0F6;\n margin-right: 5px;\n display: flex;\n justify-content: center;\n align-items: center;\n\n > svg {\n margin-top: 2px;\n }\n\n > img {\n width: 25px;\n height: 25px;\n object-fit: cover;\n object-position: center;\n }\n"]);
4297
4272
 
4298
4273
  _templateObject7$1 = function _templateObject7() {
4299
4274
  return data;
@@ -4303,7 +4278,7 @@ function _templateObject7$1() {
4303
4278
  }
4304
4279
 
4305
4280
  function _templateObject6$1() {
4306
- var data = taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: normal;\n font-family: \"Huninn\", sans-serif;\n display: block;\n color: #516F90;\n margin-top: 4px;\n"]);
4281
+ var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
4307
4282
 
4308
4283
  _templateObject6$1 = function _templateObject6() {
4309
4284
  return data;
@@ -4312,30 +4287,30 @@ function _templateObject6$1() {
4312
4287
  return data;
4313
4288
  }
4314
4289
 
4315
- function _templateObject5$1() {
4290
+ function _templateObject5$2() {
4316
4291
  var data = taggedTemplateLiteral(["\n max-height: ", "px;\n overflow-y: scroll;\n\n > li {\n padding-right: 8px;\n height: auto;\n min-height: 32px;\n justify-content: flex-start;\n }\n"]);
4317
4292
 
4318
- _templateObject5$1 = function _templateObject5() {
4293
+ _templateObject5$2 = function _templateObject5() {
4319
4294
  return data;
4320
4295
  };
4321
4296
 
4322
4297
  return data;
4323
4298
  }
4324
4299
 
4325
- function _templateObject4$3() {
4326
- var data = taggedTemplateLiteral(["\n padding: 0;\n margin: 4px 0;\n background: white;\n border: 1px solid ", ";\n box-shadow: 0 0 6px ", ";\n border-radius: ", ";\n list-style: none;\n width: auto;\n display: inline-block;\n position: absolute;\n top: 100%;\n ", "\n left: -1px;\n z-index: 10;\n\n ", "\n ", "\n li {\n font-size: ", ";\n color: #707070;\n height: 32px;\n cursor: pointer;\n padding: 0px 4px 0 8px;\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > ul {\n display: none;\n }\n\n &::before {\n content: \" \";\n height: 100%;\n width: 6px;\n background: transparent;\n display: block;\n position: absolute;\n right: -7px;\n }\n\n\n &:hover {\n background: ", ";\n\n > ul {\n display: inline-block;\n }\n }\n\n &.alone {\n border-top: 1px solid ", ";\n }\n\n }\n"]);
4300
+ function _templateObject4$2() {
4301
+ var data = taggedTemplateLiteral(["\n padding: 0;\n margin: 4px 0;\n background: white;\n border: 1px solid ", ";\n box-shadow: 0 0 6px ", ";\n border-radius: ", ";\n list-style: none;\n width: auto;\n display: inline-block;\n position: absolute;\n top: 100%;\n ", "\n left: -1px;\n z-index: 10;\n\n ", "\n ", "\n li {\n font-size: ", ";\n color: #707070;\n height: 32px;\n cursor: pointer;\n padding: 0px 4px 0 8px;\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n > ul {\n display: none;\n }\n\n &::before {\n content: \" \";\n height: 100%;\n width: 6px;\n background: transparent;\n display: block;\n position: absolute;\n right: -7px;\n }\n\n\n &:hover,\n &.active {\n background: ", ";\n\n > ul {\n display: inline-block;\n }\n }\n\n &.alone {\n border-top: 1px solid ", ";\n }\n\n }\n"]);
4327
4302
 
4328
- _templateObject4$3 = function _templateObject4() {
4303
+ _templateObject4$2 = function _templateObject4() {
4329
4304
  return data;
4330
4305
  };
4331
4306
 
4332
4307
  return data;
4333
4308
  }
4334
4309
 
4335
- function _templateObject3$3() {
4310
+ function _templateObject3$2() {
4336
4311
  var data = taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n color: ", ";\n\n ", "\n > span {\n color: #707070;\n }\n"]);
4337
4312
 
4338
- _templateObject3$3 = function _templateObject3() {
4313
+ _templateObject3$2 = function _templateObject3() {
4339
4314
  return data;
4340
4315
  };
4341
4316
 
@@ -4390,12 +4365,12 @@ var Value$1 = styled(Text).attrs(function (props) {
4390
4365
  return {
4391
4366
  as: 'span'
4392
4367
  };
4393
- })(_templateObject3$3(), theme.colors.neutrals.medium, function (props) {
4368
+ })(_templateObject3$2(), theme.colors.neutrals.medium, function (props) {
4394
4369
  return props.option && "\n display:inline-block;\n flex:1;\n ";
4395
4370
  });
4396
4371
  var maxOptions = 3;
4397
4372
  var optionsSize = 32;
4398
- var Options$1 = styled.ul(_templateObject4$3(), theme.colors.neutrals.silver, theme.colors.neutrals.silver, theme.defaultRadius, function (props) {
4373
+ var Options$1 = styled.ul(_templateObject4$2(), theme.colors.neutrals.silver, theme.colors.neutrals.silver, theme.defaultRadius, function (props) {
4399
4374
  return props.openTo === 'top' && "\n top:unset;\n bottom: 100%;\n ";
4400
4375
  }, function (props) {
4401
4376
  return !props.hasChildren && "\n max-height: ".concat(props.visibleOptionsQty ? props.visibleOptionsQty * optionsSize : maxOptions * optionsSize, "px;\n overflow-x:hidden;\n overflow-y:scroll;\n ");
@@ -4403,16 +4378,14 @@ var Options$1 = styled.ul(_templateObject4$3(), theme.colors.neutrals.silver, th
4403
4378
  return props.isChild && "\n position:absolute;\n left:100%;\n margin-left:4px;\n top:-4px;\n ";
4404
4379
  }, theme.font.small.size, theme.colors.info.bg, theme.colors.neutrals.silver);
4405
4380
  var optionsSizeCustom = 42;
4406
- var OptionsPeople = styled(Options$1)(_templateObject5$1(), function (props) {
4381
+ var OptionsPeople = styled(Options$1)(_templateObject5$2(), function (props) {
4407
4382
  return props.visibleOptionsQty ? props.visibleOptionsQty * optionsSize : optionsSizeCustom * optionsSize;
4408
4383
  });
4409
- var Span$1 = styled.span(_templateObject6$1(), theme.font.extraSmall.size);
4410
- var SpanError$2 = styled(Span$1)(_templateObject7$1(), theme.colors.error.text);
4411
- var SelectHidden = styled.select(_templateObject8$1());
4412
- var PhotoCover = styled.div(_templateObject9$1());
4413
- var CustomCheckBox = styled.div(_templateObject10(), theme.colors.neutrals.white, theme.defaultRadius, theme.colors.neutrals.silver, theme.defaultRadius, theme.colors.secondary, theme.colors.action);
4414
- var OptionGroup$1 = styled.div(_templateObject11());
4415
- var ColorOption = styled.span(_templateObject12(), function (props) {
4384
+ var SelectHidden = styled.select(_templateObject6$1());
4385
+ var PhotoCover = styled.div(_templateObject7$1());
4386
+ var CustomCheckBox = styled.div(_templateObject8$1(), theme.colors.neutrals.white, theme.defaultRadius, theme.colors.neutrals.silver, theme.defaultRadius, theme.colors.secondary, theme.colors.action);
4387
+ var OptionGroup$1 = styled.div(_templateObject9$1());
4388
+ var ColorOption = styled.span(_templateObject10(), function (props) {
4416
4389
  return props.color ? props.color : 'black';
4417
4390
  }, function (props) {
4418
4391
  return props.index > 0 ? 10 - props.index : 10;
@@ -4428,10 +4401,10 @@ var getSelected = function getSelected(options, defaultValue) {
4428
4401
  return selected;
4429
4402
  };
4430
4403
 
4431
- var SearchInput = styled.input(_templateObject13(), theme.font.medium.size, theme.font.medium.lineHeight, theme.colors.neutrals.gray, function (props) {
4404
+ var SearchInput = styled.input(_templateObject11(), theme.font.medium.size, theme.font.medium.lineHeight, theme.colors.neutrals.gray, function (props) {
4432
4405
  return props.hasSelection ? theme.colors.neutrals.gray : theme.colors.neutrals.medium;
4433
4406
  });
4434
- var ToggleButton = styled.button(_templateObject14());
4407
+ var ToggleButton = styled.button(_templateObject12());
4435
4408
 
4436
4409
  var isOption = function isOption(item) {
4437
4410
  return item.value !== undefined && item.value !== null;
@@ -4453,36 +4426,83 @@ var optionText = function optionText(node) {
4453
4426
  if (typeof node === 'string' || typeof node === 'number') return node.toString();
4454
4427
  if (Array.isArray(node)) return node.map(optionText).join('');
4455
4428
  return node.props ? optionText(node.props.children) : '';
4456
- };
4457
-
4458
- var keepInViewport = function keepInViewport(node) {
4459
- if (node && node.getBoundingClientRect().right > window.innerWidth) {
4460
- node.style.left = 'unset';
4461
- node.style.right = '0px';
4462
- }
4463
- }; // eslint-disable-next-line react/prop-types
4429
+ }; // rendered in document.body so overflow on any ancestor cannot clip it; popper flips and shifts it to stay in the viewport
4430
+ // eslint-disable-next-line react/prop-types
4464
4431
 
4465
4432
 
4466
- var AutocompleteSelect = function AutocompleteSelect(_ref3) {
4467
- var options = _ref3.options,
4468
- selectedOpt = _ref3.selectedOpt,
4469
- setSelected = _ref3.setSelected,
4470
- onChange = _ref3.onChange,
4471
- onSelect = _ref3.onSelect,
4472
- placeholder = _ref3.placeholder,
4473
- error = _ref3.error,
4474
- valid = _ref3.valid,
4475
- noOptions = _ref3.noOptions,
4476
- visibleOptionsQty = _ref3.visibleOptionsQty,
4433
+ var FloatingOptions = /*#__PURE__*/forwardRef(function (_ref3, ref) {
4434
+ var anchor = _ref3.anchor,
4477
4435
  openTo = _ref3.openTo,
4478
- startOpen = _ref3.startOpen,
4479
- resetCallback = _ref3.resetCallback,
4480
- props = objectWithoutProperties(_ref3, ["options", "selectedOpt", "setSelected", "onChange", "onSelect", "placeholder", "error", "valid", "noOptions", "visibleOptionsQty", "openTo", "startOpen", "resetCallback"]);
4436
+ style = _ref3.style,
4437
+ props = objectWithoutProperties(_ref3, ["anchor", "openTo", "style"]);
4481
4438
 
4482
- var _useState = useState(),
4439
+ var _useState = useState(null),
4483
4440
  _useState2 = slicedToArray(_useState, 2),
4484
- search = _useState2[0],
4485
- setSearch = _useState2[1];
4441
+ list = _useState2[0],
4442
+ setList = _useState2[1];
4443
+
4444
+ var listRef = useCallback(mergeRefs([setList, ref]), [ref]);
4445
+
4446
+ var _usePopper = usePopper(anchor, list, {
4447
+ strategy: 'fixed',
4448
+ placement: openTo === 'top' ? 'top-start' : 'bottom-start',
4449
+ modifiers: [{
4450
+ name: 'offset',
4451
+ options: {
4452
+ offset: [0, 4]
4453
+ }
4454
+ }]
4455
+ }),
4456
+ styles = _usePopper.styles,
4457
+ attributes = _usePopper.attributes,
4458
+ update = _usePopper.update; // popper repositions only on scroll and resize; follow size changes of the anchor and the list
4459
+
4460
+
4461
+ useEffect(function () {
4462
+ if (!anchor || !list || !update) return;
4463
+ var observer = new window.ResizeObserver(function () {
4464
+ return update();
4465
+ });
4466
+ observer.observe(anchor);
4467
+ observer.observe(list);
4468
+ return function () {
4469
+ return observer.disconnect();
4470
+ };
4471
+ }, [anchor, list, update]);
4472
+ return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(Options$1, _extends_1({
4473
+ ref: listRef,
4474
+ style: _objectSpread$1(_objectSpread$1(_objectSpread$1({}, style), styles.popper), {}, {
4475
+ margin: 0,
4476
+ zIndex: 1000000
4477
+ })
4478
+ }, attributes.popper, props)), document.body);
4479
+ }); // eslint-disable-next-line react/prop-types
4480
+
4481
+ var AutocompleteSelect = function AutocompleteSelect(_ref4) {
4482
+ var options = _ref4.options,
4483
+ selectedOpt = _ref4.selectedOpt,
4484
+ setSelected = _ref4.setSelected,
4485
+ onChange = _ref4.onChange,
4486
+ onSelect = _ref4.onSelect,
4487
+ placeholder = _ref4.placeholder,
4488
+ error = _ref4.error,
4489
+ valid = _ref4.valid,
4490
+ noOptions = _ref4.noOptions,
4491
+ visibleOptionsQty = _ref4.visibleOptionsQty,
4492
+ openTo = _ref4.openTo,
4493
+ startOpen = _ref4.startOpen,
4494
+ resetCallback = _ref4.resetCallback,
4495
+ props = objectWithoutProperties(_ref4, ["options", "selectedOpt", "setSelected", "onChange", "onSelect", "placeholder", "error", "valid", "noOptions", "visibleOptionsQty", "openTo", "startOpen", "resetCallback"]);
4496
+
4497
+ var _useState3 = useState(),
4498
+ _useState4 = slicedToArray(_useState3, 2),
4499
+ search = _useState4[0],
4500
+ setSearch = _useState4[1];
4501
+
4502
+ var _useState5 = useState(null),
4503
+ _useState6 = slicedToArray(_useState5, 2),
4504
+ anchor = _useState6[0],
4505
+ setAnchor = _useState6[1];
4486
4506
 
4487
4507
  var rows = flattenOptions(options);
4488
4508
  var selectable = rows.filter(function (row) {
@@ -4525,8 +4545,8 @@ var AutocompleteSelect = function AutocompleteSelect(_ref3) {
4525
4545
  },
4526
4546
  disabled: props.disabled,
4527
4547
  feature: supercomplete({
4528
- onRequestItem: function onRequestItem(_ref4, res) {
4529
- var value = _ref4.value;
4548
+ onRequestItem: function onRequestItem(_ref5, res) {
4549
+ var value = _ref5.value;
4530
4550
  var matches = filterItems(value);
4531
4551
  if (matches.length > 0) res({
4532
4552
  index: 0,
@@ -4550,6 +4570,7 @@ var AutocompleteSelect = function AutocompleteSelect(_ref3) {
4550
4570
  }, []);
4551
4571
  var index = -1;
4552
4572
  return /*#__PURE__*/React.createElement(SelectUi$1, _extends_1({
4573
+ ref: setAnchor,
4553
4574
  className: [open && 'open', error && 'error', valid && 'valid'].filter(Boolean).join(' ')
4554
4575
  }, props, {
4555
4576
  title: selectedText
@@ -4562,10 +4583,10 @@ var AutocompleteSelect = function AutocompleteSelect(_ref3) {
4562
4583
  }) : /*#__PURE__*/React.createElement(Icons.ArrowDown, {
4563
4584
  size: "15px",
4564
4585
  color: theme.colors.info.border
4565
- })), open && /*#__PURE__*/React.createElement(Options$1, _extends_1({
4586
+ })), open && /*#__PURE__*/React.createElement(FloatingOptions, _extends_1({
4587
+ anchor: anchor,
4566
4588
  visibleOptionsQty: visibleOptionsQty,
4567
- openTo: openTo,
4568
- ref: keepInViewport
4589
+ openTo: openTo
4569
4590
  }, getListProps()), items.length === 0 && /*#__PURE__*/React.createElement("li", {
4570
4591
  style: {
4571
4592
  paddingRight: '8px'
@@ -4575,9 +4596,9 @@ var AutocompleteSelect = function AutocompleteSelect(_ref3) {
4575
4596
  item: item,
4576
4597
  depth: 0
4577
4598
  };
4578
- }) : rows).map(function (_ref5, key) {
4579
- var item = _ref5.item,
4580
- depth = _ref5.depth;
4599
+ }) : rows).map(function (_ref6, key) {
4600
+ var item = _ref6.item,
4601
+ depth = _ref6.depth;
4581
4602
 
4582
4603
  if (!isOption(item)) {
4583
4604
  return /*#__PURE__*/React.createElement(OptionGroup$1, {
@@ -4615,33 +4636,42 @@ var summarizeSelection = function summarizeSelection(names) {
4615
4636
  }; // eslint-disable-next-line react/prop-types
4616
4637
 
4617
4638
 
4618
- var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref6) {
4619
- var options = _ref6.options,
4620
- selectedValues = _ref6.selectedValues,
4621
- onToggle = _ref6.onToggle,
4622
- placeholder = _ref6.placeholder,
4623
- error = _ref6.error,
4624
- valid = _ref6.valid,
4625
- noOptions = _ref6.noOptions,
4626
- visibleOptionsQty = _ref6.visibleOptionsQty,
4627
- openTo = _ref6.openTo,
4628
- startOpen = _ref6.startOpen,
4629
- props = objectWithoutProperties(_ref6, ["options", "selectedValues", "onToggle", "placeholder", "error", "valid", "noOptions", "visibleOptionsQty", "openTo", "startOpen"]);
4639
+ var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref7) {
4640
+ var options = _ref7.options,
4641
+ selectedValues = _ref7.selectedValues,
4642
+ onToggle = _ref7.onToggle,
4643
+ placeholder = _ref7.placeholder,
4644
+ error = _ref7.error,
4645
+ valid = _ref7.valid,
4646
+ noOptions = _ref7.noOptions,
4647
+ visibleOptionsQty = _ref7.visibleOptionsQty,
4648
+ openTo = _ref7.openTo,
4649
+ startOpen = _ref7.startOpen,
4650
+ props = objectWithoutProperties(_ref7, ["options", "selectedValues", "onToggle", "placeholder", "error", "valid", "noOptions", "visibleOptionsQty", "openTo", "startOpen"]);
4651
+
4652
+ var _useState7 = useState(''),
4653
+ _useState8 = slicedToArray(_useState7, 2),
4654
+ search = _useState8[0],
4655
+ setSearch = _useState8[1];
4630
4656
 
4631
- var _useState3 = useState(''),
4632
- _useState4 = slicedToArray(_useState3, 2),
4633
- search = _useState4[0],
4634
- setSearch = _useState4[1];
4657
+ var _useState9 = useState(startOpen),
4658
+ _useState10 = slicedToArray(_useState9, 2),
4659
+ open = _useState10[0],
4660
+ setOpen = _useState10[1];
4635
4661
 
4636
- var _useState5 = useState(startOpen),
4637
- _useState6 = slicedToArray(_useState5, 2),
4638
- open = _useState6[0],
4639
- setOpen = _useState6[1];
4662
+ var _useState11 = useState(null),
4663
+ _useState12 = slicedToArray(_useState11, 2),
4664
+ anchor = _useState12[0],
4665
+ setAnchor = _useState12[1];
4640
4666
 
4641
4667
  var nodeRef = useRef();
4668
+ var listRef = useRef();
4669
+ var setNode = useCallback(mergeRefs([nodeRef, setAnchor]), []);
4642
4670
  useEffect(function () {
4643
4671
  var closeOnOutsideClick = function closeOnOutsideClick(e) {
4644
- if (nodeRef.current && !nodeRef.current.contains(e.target)) {
4672
+ var inList = listRef.current && listRef.current.contains(e.target);
4673
+
4674
+ if (nodeRef.current && !nodeRef.current.contains(e.target) && !inList) {
4645
4675
  setOpen(false);
4646
4676
  setSearch('');
4647
4677
  }
@@ -4667,7 +4697,7 @@ var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref6) {
4667
4697
  return optionText(item.name);
4668
4698
  }));
4669
4699
  return /*#__PURE__*/React.createElement(SelectUi$1, _extends_1({
4670
- ref: nodeRef,
4700
+ ref: setNode,
4671
4701
  className: [open && 'open', error && 'error', valid && 'valid'].filter(Boolean).join(' ')
4672
4702
  }, props, {
4673
4703
  title: summary,
@@ -4702,10 +4732,11 @@ var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref6) {
4702
4732
  }) : /*#__PURE__*/React.createElement(Icons.ArrowDown, {
4703
4733
  size: "15px",
4704
4734
  color: theme.colors.info.border
4705
- })), open && /*#__PURE__*/React.createElement(Options$1, {
4735
+ })), open && /*#__PURE__*/React.createElement(FloatingOptions, {
4736
+ anchor: anchor,
4706
4737
  visibleOptionsQty: visibleOptionsQty,
4707
4738
  openTo: openTo,
4708
- ref: keepInViewport
4739
+ ref: listRef
4709
4740
  }, items.length === 0 && /*#__PURE__*/React.createElement("li", {
4710
4741
  style: {
4711
4742
  paddingRight: '8px'
@@ -4715,9 +4746,9 @@ var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref6) {
4715
4746
  item: item,
4716
4747
  depth: 0
4717
4748
  };
4718
- }) : rows).map(function (_ref7, key) {
4719
- var item = _ref7.item,
4720
- depth = _ref7.depth;
4749
+ }) : rows).map(function (_ref8, key) {
4750
+ var item = _ref8.item,
4751
+ depth = _ref8.depth;
4721
4752
 
4722
4753
  if (!isOption(item)) {
4723
4754
  return /*#__PURE__*/React.createElement(OptionGroup$1, {
@@ -4752,27 +4783,27 @@ var MultiAutocompleteSelect = function MultiAutocompleteSelect(_ref6) {
4752
4783
  })));
4753
4784
  };
4754
4785
 
4755
- var MultiDropdown = /*#__PURE__*/forwardRef(function (_ref8, ref) {
4756
- var name = _ref8.name,
4757
- label = _ref8.label,
4758
- help = _ref8.help,
4759
- error = _ref8.error,
4760
- valid = _ref8.valid,
4761
- options = _ref8.options,
4762
- placeholder = _ref8.placeholder,
4763
- onChange = _ref8.onChange,
4764
- defaultValue = _ref8.defaultValue,
4765
- visibleOptionsQty = _ref8.visibleOptionsQty,
4766
- openTo = _ref8.openTo,
4767
- _ref8$startOpen = _ref8.startOpen,
4768
- startOpen = _ref8$startOpen === void 0 ? false : _ref8$startOpen,
4769
- resetCallback = _ref8.resetCallback,
4770
- props = objectWithoutProperties(_ref8, ["name", "label", "help", "error", "valid", "options", "placeholder", "onChange", "defaultValue", "visibleOptionsQty", "openTo", "startOpen", "resetCallback"]);
4771
-
4772
- var _useState7 = useState([]),
4773
- _useState8 = slicedToArray(_useState7, 2),
4774
- selectedValues = _useState8[0],
4775
- setSelectedValues = _useState8[1];
4786
+ var MultiDropdown = /*#__PURE__*/forwardRef(function (_ref9, ref) {
4787
+ var name = _ref9.name,
4788
+ label = _ref9.label,
4789
+ help = _ref9.help,
4790
+ error = _ref9.error,
4791
+ valid = _ref9.valid,
4792
+ options = _ref9.options,
4793
+ placeholder = _ref9.placeholder,
4794
+ onChange = _ref9.onChange,
4795
+ defaultValue = _ref9.defaultValue,
4796
+ visibleOptionsQty = _ref9.visibleOptionsQty,
4797
+ openTo = _ref9.openTo,
4798
+ _ref9$startOpen = _ref9.startOpen,
4799
+ startOpen = _ref9$startOpen === void 0 ? false : _ref9$startOpen,
4800
+ resetCallback = _ref9.resetCallback,
4801
+ props = objectWithoutProperties(_ref9, ["name", "label", "help", "error", "valid", "options", "placeholder", "onChange", "defaultValue", "visibleOptionsQty", "openTo", "startOpen", "resetCallback"]);
4802
+
4803
+ var _useState13 = useState([]),
4804
+ _useState14 = slicedToArray(_useState13, 2),
4805
+ selectedValues = _useState14[0],
4806
+ setSelectedValues = _useState14[1];
4776
4807
 
4777
4808
  var valueRef = useRef();
4778
4809
  var selectable = flattenOptions(options).filter(function (row) {
@@ -4841,7 +4872,7 @@ var MultiDropdown = /*#__PURE__*/forwardRef(function (_ref8, ref) {
4841
4872
  visibleOptionsQty: visibleOptionsQty,
4842
4873
  openTo: openTo,
4843
4874
  startOpen: startOpen
4844
- }, props)), help && /*#__PURE__*/React.createElement(Span$1, null, help), error && /*#__PURE__*/React.createElement(SpanError$2, null, /*#__PURE__*/React.createElement("img", {
4875
+ }, props)), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
4845
4876
  src: Ex,
4846
4877
  style: {
4847
4878
  marginRight: '6px'
@@ -4859,31 +4890,31 @@ var MultiDropdown = /*#__PURE__*/forwardRef(function (_ref8, ref) {
4859
4890
  }, optionText(item.name));
4860
4891
  })));
4861
4892
  });
4862
- var SingleDropdown = /*#__PURE__*/forwardRef(function (_ref9, ref) {
4863
- var name = _ref9.name,
4864
- label = _ref9.label,
4865
- help = _ref9.help,
4866
- error = _ref9.error,
4867
- valid = _ref9.valid,
4868
- options = _ref9.options,
4869
- placeholder = _ref9.placeholder,
4870
- onChange = _ref9.onChange,
4871
- defaultValue = _ref9.defaultValue,
4872
- visibleOptionsQty = _ref9.visibleOptionsQty,
4873
- openTo = _ref9.openTo,
4874
- _ref9$startOpen = _ref9.startOpen,
4875
- startOpen = _ref9$startOpen === void 0 ? false : _ref9$startOpen,
4876
- props = objectWithoutProperties(_ref9, ["name", "label", "help", "error", "valid", "options", "placeholder", "onChange", "defaultValue", "visibleOptionsQty", "openTo", "startOpen"]);
4893
+ var SingleDropdown = /*#__PURE__*/forwardRef(function (_ref10, ref) {
4894
+ var name = _ref10.name,
4895
+ label = _ref10.label,
4896
+ help = _ref10.help,
4897
+ error = _ref10.error,
4898
+ valid = _ref10.valid,
4899
+ options = _ref10.options,
4900
+ placeholder = _ref10.placeholder,
4901
+ onChange = _ref10.onChange,
4902
+ defaultValue = _ref10.defaultValue,
4903
+ visibleOptionsQty = _ref10.visibleOptionsQty,
4904
+ openTo = _ref10.openTo,
4905
+ _ref10$startOpen = _ref10.startOpen,
4906
+ startOpen = _ref10$startOpen === void 0 ? false : _ref10$startOpen,
4907
+ props = objectWithoutProperties(_ref10, ["name", "label", "help", "error", "valid", "options", "placeholder", "onChange", "defaultValue", "visibleOptionsQty", "openTo", "startOpen"]);
4877
4908
 
4878
4909
  var defaultSelected = {
4879
4910
  value: '',
4880
4911
  desc: ''
4881
4912
  };
4882
4913
 
4883
- var _useState9 = useState(defaultSelected),
4884
- _useState10 = slicedToArray(_useState9, 2),
4885
- selectedOpt = _useState10[0],
4886
- setSelected = _useState10[1];
4914
+ var _useState15 = useState(defaultSelected),
4915
+ _useState16 = slicedToArray(_useState15, 2),
4916
+ selectedOpt = _useState16[0],
4917
+ setSelected = _useState16[1];
4887
4918
 
4888
4919
  var valueRef = useRef();
4889
4920
 
@@ -4953,7 +4984,7 @@ var SingleDropdown = /*#__PURE__*/forwardRef(function (_ref9, ref) {
4953
4984
  visibleOptionsQty: visibleOptionsQty,
4954
4985
  openTo: openTo,
4955
4986
  startOpen: startOpen
4956
- }, props)), help && /*#__PURE__*/React.createElement(Span$1, null, help), error && /*#__PURE__*/React.createElement(SpanError$2, null, /*#__PURE__*/React.createElement("img", {
4987
+ }, props)), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
4957
4988
  src: Ex,
4958
4989
  style: {
4959
4990
  marginRight: '6px'
@@ -4965,9 +4996,9 @@ var SingleDropdown = /*#__PURE__*/forwardRef(function (_ref9, ref) {
4965
4996
  disabled: props.disabled
4966
4997
  }));
4967
4998
  });
4968
- var Dropdown = /*#__PURE__*/forwardRef(function (_ref10, ref) {
4969
- var multiple = _ref10.multiple,
4970
- props = objectWithoutProperties(_ref10, ["multiple"]);
4999
+ var Dropdown = /*#__PURE__*/forwardRef(function (_ref11, ref) {
5000
+ var multiple = _ref11.multiple,
5001
+ props = objectWithoutProperties(_ref11, ["multiple"]);
4971
5002
 
4972
5003
  return multiple ? /*#__PURE__*/React.createElement(MultiDropdown, _extends_1({
4973
5004
  ref: ref
@@ -4976,17 +5007,17 @@ var Dropdown = /*#__PURE__*/forwardRef(function (_ref10, ref) {
4976
5007
  }, props));
4977
5008
  }); // eslint-disable-next-line react/prop-types
4978
5009
 
4979
- var BoxOptions = function BoxOptions(_ref11) {
4980
- var options = _ref11.options,
4981
- isChild = _ref11.isChild,
4982
- setSelected = _ref11.setSelected,
4983
- onChange = _ref11.onChange,
4984
- noOptions = _ref11.noOptions,
4985
- selectedOpt = _ref11.selectedOpt,
4986
- setOpen = _ref11.setOpen,
4987
- onSelect = _ref11.onSelect,
4988
- visibleOptionsQty = _ref11.visibleOptionsQty,
4989
- openTo = _ref11.openTo;
5010
+ var BoxOptions = function BoxOptions(_ref12) {
5011
+ var options = _ref12.options,
5012
+ isChild = _ref12.isChild,
5013
+ setSelected = _ref12.setSelected,
5014
+ onChange = _ref12.onChange,
5015
+ noOptions = _ref12.noOptions,
5016
+ selectedOpt = _ref12.selectedOpt,
5017
+ setOpen = _ref12.setOpen,
5018
+ onSelect = _ref12.onSelect,
5019
+ visibleOptionsQty = _ref12.visibleOptionsQty,
5020
+ openTo = _ref12.openTo;
4990
5021
 
4991
5022
  if (!options) {
4992
5023
  return /*#__PURE__*/React.createElement(Options$1, null, /*#__PURE__*/React.createElement("li", {
@@ -5058,32 +5089,32 @@ var BoxOptions = function BoxOptions(_ref11) {
5058
5089
  })) : /*#__PURE__*/React.createElement(OptionGroup$1, null, item.name));
5059
5090
  }));
5060
5091
  };
5061
- var CustomDropdown = /*#__PURE__*/forwardRef(function (_ref12, ref) {
5062
- var name = _ref12.name,
5063
- label = _ref12.label,
5064
- help = _ref12.help,
5065
- error = _ref12.error,
5066
- valid = _ref12.valid,
5067
- options = _ref12.options,
5068
- placeholder = _ref12.placeholder,
5069
- defaultValue = _ref12.defaultValue,
5070
- multiple = _ref12.multiple,
5071
- type = _ref12.type,
5072
- tooltip = _ref12.tooltip,
5073
- onChange = _ref12.onChange,
5074
- visibleOptionsQty = _ref12.visibleOptionsQty,
5075
- openTo = _ref12.openTo,
5076
- props = objectWithoutProperties(_ref12, ["name", "label", "help", "error", "valid", "options", "placeholder", "defaultValue", "multiple", "type", "tooltip", "onChange", "visibleOptionsQty", "openTo"]);
5092
+ var CustomDropdown = /*#__PURE__*/forwardRef(function (_ref13, ref) {
5093
+ var name = _ref13.name,
5094
+ label = _ref13.label,
5095
+ help = _ref13.help,
5096
+ error = _ref13.error,
5097
+ valid = _ref13.valid,
5098
+ options = _ref13.options,
5099
+ placeholder = _ref13.placeholder,
5100
+ defaultValue = _ref13.defaultValue,
5101
+ multiple = _ref13.multiple,
5102
+ type = _ref13.type,
5103
+ tooltip = _ref13.tooltip,
5104
+ onChange = _ref13.onChange,
5105
+ visibleOptionsQty = _ref13.visibleOptionsQty,
5106
+ openTo = _ref13.openTo,
5107
+ props = objectWithoutProperties(_ref13, ["name", "label", "help", "error", "valid", "options", "placeholder", "defaultValue", "multiple", "type", "tooltip", "onChange", "visibleOptionsQty", "openTo"]);
5077
5108
 
5078
- var _useState11 = useState(false),
5079
- _useState12 = slicedToArray(_useState11, 2),
5080
- open = _useState12[0],
5081
- setOpen = _useState12[1];
5109
+ var _useState17 = useState(false),
5110
+ _useState18 = slicedToArray(_useState17, 2),
5111
+ open = _useState18[0],
5112
+ setOpen = _useState18[1];
5082
5113
 
5083
- var _useState13 = useState([]),
5084
- _useState14 = slicedToArray(_useState13, 2),
5085
- selectedOpt = _useState14[0],
5086
- setSelected = _useState14[1];
5114
+ var _useState19 = useState([]),
5115
+ _useState20 = slicedToArray(_useState19, 2),
5116
+ selectedOpt = _useState20[0],
5117
+ setSelected = _useState20[1];
5087
5118
 
5088
5119
  var nodeSelect = useRef();
5089
5120
  var valueRef = useRef();
@@ -5253,7 +5284,7 @@ var CustomDropdown = /*#__PURE__*/forwardRef(function (_ref12, ref) {
5253
5284
  noOptions: props.noOptions,
5254
5285
  visibleOptionsQty: visibleOptionsQty,
5255
5286
  openTo: openTo
5256
- })), help && /*#__PURE__*/React.createElement(Span$1, null, help), error && /*#__PURE__*/React.createElement(SpanError$2, null, /*#__PURE__*/React.createElement("img", {
5287
+ })), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5257
5288
  src: Ex,
5258
5289
  style: {
5259
5290
  marginRight: '6px'
@@ -5309,16 +5340,16 @@ var HandleState = function HandleState(index, setSelected, selectedOpt, multiple
5309
5340
  setSelected(ret);
5310
5341
  };
5311
5342
 
5312
- var SelectOption = function SelectOption(_ref13) {
5313
- var options = _ref13.options,
5314
- setSelected = _ref13.setSelected,
5315
- selectedOpt = _ref13.selectedOpt,
5316
- multiple = _ref13.multiple,
5317
- type = _ref13.type,
5318
- onChange = _ref13.onChange,
5319
- noOptions = _ref13.noOptions,
5320
- visibleOptionsQty = _ref13.visibleOptionsQty,
5321
- openTo = _ref13.openTo;
5343
+ var SelectOption = function SelectOption(_ref14) {
5344
+ var options = _ref14.options,
5345
+ setSelected = _ref14.setSelected,
5346
+ selectedOpt = _ref14.selectedOpt,
5347
+ multiple = _ref14.multiple,
5348
+ type = _ref14.type,
5349
+ onChange = _ref14.onChange,
5350
+ noOptions = _ref14.noOptions,
5351
+ visibleOptionsQty = _ref14.visibleOptionsQty,
5352
+ openTo = _ref14.openTo;
5322
5353
 
5323
5354
  if (!options) {
5324
5355
  return /*#__PURE__*/React.createElement(OptionsPeople, null, /*#__PURE__*/React.createElement("li", null, noOptions || 'No data found'));
@@ -5353,9 +5384,9 @@ var SelectOption = function SelectOption(_ref13) {
5353
5384
  }));
5354
5385
  };
5355
5386
 
5356
- var PhotoComponent = function PhotoComponent(_ref14) {
5357
- var profile = _ref14.profile,
5358
- index = _ref14.index;
5387
+ var PhotoComponent = function PhotoComponent(_ref15) {
5388
+ var profile = _ref15.profile,
5389
+ index = _ref15.index;
5359
5390
  var customStyle = {
5360
5391
  position: 'relative',
5361
5392
  display: 'inline-flex',
@@ -5379,11 +5410,11 @@ var PhotoComponent = function PhotoComponent(_ref14) {
5379
5410
  }));
5380
5411
  };
5381
5412
 
5382
- var SelectValueRender = function SelectValueRender(_ref15) {
5383
- var options = _ref15.options,
5384
- selectedOpt = _ref15.selectedOpt,
5385
- type = _ref15.type,
5386
- noOptions = _ref15.noOptions;
5413
+ var SelectValueRender = function SelectValueRender(_ref16) {
5414
+ var options = _ref16.options,
5415
+ selectedOpt = _ref16.selectedOpt,
5416
+ type = _ref16.type,
5417
+ noOptions = _ref16.noOptions;
5387
5418
 
5388
5419
  if (!options) {
5389
5420
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -5498,28 +5529,8 @@ var Spacer = function Spacer(_ref) {
5498
5529
  return /*#__PURE__*/React.createElement(BaseSpace, props);
5499
5530
  };
5500
5531
 
5501
- function _templateObject9$2() {
5502
- var data = taggedTemplateLiteral(["\n color: ", ";\n"]);
5503
-
5504
- _templateObject9$2 = function _templateObject9() {
5505
- return data;
5506
- };
5507
-
5508
- return data;
5509
- }
5510
-
5511
- function _templateObject8$2() {
5512
- var data = taggedTemplateLiteral(["\n color:", ";\n display:block;\n"]);
5513
-
5514
- _templateObject8$2 = function _templateObject8() {
5515
- return data;
5516
- };
5517
-
5518
- return data;
5519
- }
5520
-
5521
5532
  function _templateObject7$2() {
5522
- var data = taggedTemplateLiteral(["\n font-size:", ";\n font-weight:normal;\n font-family:\"Huninn\", sans-serif;\n display:block;\n color:#516F90;\n margin-top:4px;\n"]);
5533
+ var data = taggedTemplateLiteral(["\n color: ", ";\n"]);
5523
5534
 
5524
5535
  _templateObject7$2 = function _templateObject7() {
5525
5536
  return data;
@@ -5538,30 +5549,30 @@ function _templateObject6$2() {
5538
5549
  return data;
5539
5550
  }
5540
5551
 
5541
- function _templateObject5$2() {
5552
+ function _templateObject5$3() {
5542
5553
  var data = taggedTemplateLiteral(["\n font-family:\"Huninn\", sans-serif;\n font-weight:normal;\n font-size:16px;\n color: #707070;\n\n >.requiredField {\n color:", ";\n }\n"]);
5543
5554
 
5544
- _templateObject5$2 = function _templateObject5() {
5555
+ _templateObject5$3 = function _templateObject5() {
5545
5556
  return data;
5546
5557
  };
5547
5558
 
5548
5559
  return data;
5549
5560
  }
5550
5561
 
5551
- function _templateObject4$4() {
5562
+ function _templateObject4$3() {
5552
5563
  var data = taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", ";\n border:1px solid ", ";\n height:", ";\n width:", ";\n border-radius:", ";\n display: inline-flex;\n justify-content: center;\n align-items: center;\n box-sizing:border-box;\n\n svg {\n display:none;\n }\n\n ", ":focus + &, ", ":focus + & {\n border-color:", ";\n box-shadow:0 0 6px ", ";\n }\n\n ", ":disabled + &, ", ":disabled + & {\n background:", ";\n border-color:#707070;\n opacity:0.5;\n cursor:default;\n }\n\n ", ":checked + &, ", ":checked + & {\n svg {\n display:block;\n }\n }\n"]);
5553
5564
 
5554
- _templateObject4$4 = function _templateObject4() {
5565
+ _templateObject4$3 = function _templateObject4() {
5555
5566
  return data;
5556
5567
  };
5557
5568
 
5558
5569
  return data;
5559
5570
  }
5560
5571
 
5561
- function _templateObject3$4() {
5572
+ function _templateObject3$3() {
5562
5573
  var data = taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n justify-content: center;\n cursor:pointer;\n\n &:focus {\n outline:none;\n }\n "]);
5563
5574
 
5564
- _templateObject3$4 = function _templateObject3() {
5575
+ _templateObject3$3 = function _templateObject3() {
5565
5576
  return data;
5566
5577
  };
5567
5578
 
@@ -5593,19 +5604,17 @@ var HiddenCheckbox = styled.input.attrs({
5593
5604
  var HiddenRadioBox = styled.input.attrs({
5594
5605
  type: 'radio'
5595
5606
  })(_templateObject2$4());
5596
- var CheckboxContainer = styled.label(_templateObject3$4());
5597
- var CustomCheckBox$1 = styled.div(_templateObject4$4(), theme.colors.neutrals.white, theme.defaultRadius, theme.colors.neutrals.silver, function (props) {
5607
+ var CheckboxContainer = styled.label(_templateObject3$3());
5608
+ var CustomCheckBox$1 = styled.div(_templateObject4$3(), theme.colors.neutrals.white, theme.defaultRadius, theme.colors.neutrals.silver, function (props) {
5598
5609
  return props.radio ? '17px' : '16px';
5599
5610
  }, function (props) {
5600
5611
  return props.radio ? '17px' : '16px';
5601
5612
  }, function (props) {
5602
5613
  return props.radio ? '17px' : '2px';
5603
5614
  }, HiddenCheckbox, HiddenRadioBox, theme.colors.secondary, theme.colors.action, HiddenCheckbox, HiddenRadioBox, theme.colors.neutrals.silver, HiddenCheckbox, HiddenRadioBox);
5604
- var Title$1 = styled.h5(_templateObject5$2(), theme.colors.error.text);
5615
+ var Title$1 = styled.h5(_templateObject5$3(), theme.colors.error.text);
5605
5616
  var Label$1 = styled.span(_templateObject6$2());
5606
- var Span$2 = styled.span(_templateObject7$2(), theme.font.extraSmall.size);
5607
- var SpanError$3 = styled(Span$2)(_templateObject8$2(), theme.colors.error.text);
5608
- var NoOptions = styled(Text)(_templateObject9$2(), theme.colors.neutrals.silver);
5617
+ var NoOptions = styled(Text)(_templateObject7$2(), theme.colors.neutrals.silver);
5609
5618
  var CheckboxBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
5610
5619
  var name = _ref.name,
5611
5620
  _ref$checked = _ref.checked,
@@ -5639,7 +5648,7 @@ var CheckboxBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
5639
5648
  className: preventClass ? preventClass : ''
5640
5649
  })), /*#__PURE__*/React.createElement(Label$1, {
5641
5650
  className: preventClass ? preventClass : ''
5642
- }, label)), error && /*#__PURE__*/React.createElement(SpanError$3, null, /*#__PURE__*/React.createElement("img", {
5651
+ }, label)), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5643
5652
  src: Ex,
5644
5653
  style: {
5645
5654
  marginRight: '6px'
@@ -5681,7 +5690,7 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
5681
5690
  ref: ref,
5682
5691
  checked: checked
5683
5692
  })));
5684
- }), !options || !options.length && /*#__PURE__*/React.createElement(NoOptions, null, "No options available"), error && /*#__PURE__*/React.createElement(SpanError$3, null, /*#__PURE__*/React.createElement("img", {
5693
+ }), !options || !options.length && /*#__PURE__*/React.createElement(NoOptions, null, "No options available"), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5685
5694
  src: Ex,
5686
5695
  style: {
5687
5696
  marginRight: '6px'
@@ -5710,7 +5719,7 @@ var RadioBoxBase = /*#__PURE__*/forwardRef(function (_ref3, ref) {
5710
5719
  radio: true
5711
5720
  }, /*#__PURE__*/React.createElement(Icons.Check, {
5712
5721
  size: "17px"
5713
- })), /*#__PURE__*/React.createElement(Label$1, null, label)), error && /*#__PURE__*/React.createElement(SpanError$3, null, /*#__PURE__*/React.createElement("img", {
5722
+ })), /*#__PURE__*/React.createElement(Label$1, null, label)), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5714
5723
  src: Ex,
5715
5724
  style: {
5716
5725
  marginRight: '6px'
@@ -5760,7 +5769,7 @@ var RadioBox = /*#__PURE__*/forwardRef(function (_ref4, ref) {
5760
5769
  }, props, {
5761
5770
  ref: ref
5762
5771
  })));
5763
- }), !options || !options.length && /*#__PURE__*/React.createElement(NoOptions, null, "No options available"), error && /*#__PURE__*/React.createElement(SpanError$3, null, /*#__PURE__*/React.createElement("img", {
5772
+ }), !options || !options.length && /*#__PURE__*/React.createElement(NoOptions, null, "No options available"), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5764
5773
  src: Ex,
5765
5774
  style: {
5766
5775
  marginRight: '6px'
@@ -5819,54 +5828,92 @@ var Password = /*#__PURE__*/forwardRef(function (_ref, ref) {
5819
5828
  })));
5820
5829
  });
5821
5830
 
5822
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5823
-
5824
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5825
-
5826
- function _templateObject7$3() {
5827
- var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
5831
+ function _templateObject$9() {
5832
+ var data = taggedTemplateLiteral(["\n display: block;\n height: auto;\n min-height: 80px;\n resize: vertical;\n font-family: inherit;\n"]);
5828
5833
 
5829
- _templateObject7$3 = function _templateObject7() {
5834
+ _templateObject$9 = function _templateObject() {
5830
5835
  return data;
5831
5836
  };
5832
5837
 
5833
5838
  return data;
5834
5839
  }
5840
+ var TextAreaBase = styled(InputBase$1).attrs({
5841
+ as: 'textarea'
5842
+ })(_templateObject$9());
5843
+ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
5844
+ var name = _ref.name,
5845
+ label = _ref.label,
5846
+ help = _ref.help,
5847
+ invalid = _ref.invalid,
5848
+ valid = _ref.valid,
5849
+ error = _ref.error,
5850
+ _ref$rows = _ref.rows,
5851
+ rows = _ref$rows === void 0 ? 4 : _ref$rows,
5852
+ props = objectWithoutProperties(_ref, ["name", "label", "help", "invalid", "valid", "error", "rows"]);
5835
5853
 
5836
- function _templateObject6$3() {
5837
- var data = taggedTemplateLiteral(["\n list-style:none;\n padding:0 5px 3px;\n margin:0;\n display:flex;\n max-width: 300px;\n flex-wrap: wrap;\n\n &.small {\n max-width:140px;\n\n >li:not(.input) {\n white-space: pre-wrap;\n }\n }\n\n >li:not(.input) {\n border:1px solid #7C98B6;\n color:#516F90;\n background:#EAF0F6;\n padding:5px;\n margin-right:5px;\n border-radius:", ";\n font-size:12px;\n font-weight:500;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n white-space: nowrap;\n\n\n >svg {\n padding-left:8px;\n padding-right:3px;\n }\n\n }\n\n >li {\n margin-top:5px;\n input {\n display: inline-block;\n height: 30px;\n width:100%;\n min-width:80px;\n color:#333;\n font-size:14px;\n\n &::placeholder {\n color:#ccc;\n }\n }\n\n &.input {\n flex:1;\n }\n\n\n }\n"]);
5854
+ var validationType = null;
5855
+ var useIcon = false;
5838
5856
 
5839
- _templateObject6$3 = function _templateObject6() {
5840
- return data;
5841
- };
5857
+ if (invalid) {
5858
+ useIcon = /*#__PURE__*/React.createElement("span", {
5859
+ className: "requiredField"
5860
+ }, "*");
5861
+ validationType = 'error';
5862
+ }
5842
5863
 
5843
- return data;
5844
- }
5864
+ if (props.Required) useIcon = /*#__PURE__*/React.createElement(RequiredText, null);
5845
5865
 
5846
- function _templateObject5$3() {
5847
- var data = taggedTemplateLiteral(["\n padding:0;\n margin:4px 0;\n background:white;\n border:1px solid ", ";\n box-shadow:0 0 6px ", ";\n border-radius:", ";\n list-style:none;\n width:auto;\n display:inline-block;\n position: absolute;\n top: 100%;\n ", "\n left: -1px;\n z-index:10;\n max-height: ", "px;\n overflow-x:hidden;\n overflow-y:scroll;\n\n li {\n font-size:", ";\n color:#707070;\n min-height:32px;\n cursor:pointer;\n padding: 8px;\n position:relative;\n box-sizing: border-box;\n\n >ul {\n display:none;\n }\n\n &.active,\n &:hover {\n background:", ";\n\n >ul {\n display:inline-block;\n }\n }\n\n }\n"]);
5866
+ if (error) {
5867
+ validationType = 'error';
5868
+ }
5848
5869
 
5849
- _templateObject5$3 = function _templateObject5() {
5850
- return data;
5851
- };
5870
+ if (valid) {
5871
+ useIcon = /*#__PURE__*/React.createElement("img", {
5872
+ src: Check
5873
+ });
5874
+ validationType = 'valid';
5875
+ }
5852
5876
 
5853
- return data;
5854
- }
5877
+ return /*#__PURE__*/React.createElement(Frag$1, {
5878
+ size: props.size,
5879
+ className: "formAligner"
5880
+ }, label && !useIcon && /*#__PURE__*/React.createElement(Label, {
5881
+ htmlFor: name
5882
+ }, label), label && useIcon && /*#__PURE__*/React.createElement(Label, {
5883
+ htmlFor: name
5884
+ }, label, " ", useIcon), /*#__PURE__*/React.createElement(TextAreaBase, _extends_1({
5885
+ name: name,
5886
+ id: name,
5887
+ rows: rows
5888
+ }, props, {
5889
+ validation: validationType,
5890
+ ref: ref
5891
+ })), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5892
+ src: Ex,
5893
+ style: {
5894
+ marginRight: '6px'
5895
+ }
5896
+ }), " ", error));
5897
+ });
5855
5898
 
5856
- function _templateObject4$5() {
5857
- var data = taggedTemplateLiteral(["\n background:", ";\n box-sizing:border-box;\n cursor:pointer;\n position:relative;\n box-sizing: border-box;\n padding:0;\n\n height:auto;\n min-height:40px;\n\n\n &:focus-within {\n box-shadow:0px 0px 6px ", "\n border-color:", "\n }\n\n &.error {\n border-color:", ";\n }\n"]);
5899
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
5858
5900
 
5859
- _templateObject4$5 = function _templateObject4() {
5901
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5902
+
5903
+ function _templateObject4$4() {
5904
+ var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
5905
+
5906
+ _templateObject4$4 = function _templateObject4() {
5860
5907
  return data;
5861
5908
  };
5862
5909
 
5863
5910
  return data;
5864
5911
  }
5865
5912
 
5866
- function _templateObject3$5() {
5867
- var data = taggedTemplateLiteral(["\n color:", "\n"]);
5913
+ function _templateObject3$4() {
5914
+ var data = taggedTemplateLiteral(["\n list-style:none;\n padding:0 5px 3px;\n margin:0;\n display:flex;\n flex-wrap: wrap;\n\n &.small {\n max-width:140px;\n\n >li:not(.input) {\n white-space: pre-wrap;\n }\n }\n\n >li:not(.input) {\n border:1px solid #7C98B6;\n color:#516F90;\n background:#EAF0F6;\n padding:5px;\n margin-right:5px;\n border-radius:", ";\n font-size:12px;\n font-weight:500;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n white-space: nowrap;\n\n\n >svg {\n padding-left:8px;\n padding-right:3px;\n }\n\n }\n\n >li {\n margin-top:5px;\n input {\n display: inline-block;\n height: 30px;\n width:100%;\n min-width:80px;\n color:#333;\n font-size:14px;\n\n &::placeholder {\n color:#ccc;\n }\n }\n\n &.input {\n flex:1;\n }\n\n\n }\n"]);
5868
5915
 
5869
- _templateObject3$5 = function _templateObject3() {
5916
+ _templateObject3$4 = function _templateObject3() {
5870
5917
  return data;
5871
5918
  };
5872
5919
 
@@ -5874,7 +5921,7 @@ function _templateObject3$5() {
5874
5921
  }
5875
5922
 
5876
5923
  function _templateObject2$5() {
5877
- var data = taggedTemplateLiteral(["\n font-size:", ";\n font-weight:normal;\n font-family:\"Huninn\", sans-serif;\n display:block;\n color:#516F90;\n margin-top:4px;\n"]);
5924
+ var data = taggedTemplateLiteral(["\n background:", ";\n box-sizing:border-box;\n cursor:pointer;\n position:relative;\n box-sizing: border-box;\n padding:0;\n\n height:auto;\n min-height:40px;\n width:", ";\n\n\n &:hover {\n border-color:", ";\n }\n\n &.open,\n &:focus-within {\n border-color:", ";\n box-shadow:0 0 6px ", ";\n }\n\n &.error {\n border-color:", ";\n }\n\n &.error.open,\n &.error:focus-within {\n box-shadow:0 0 6px ", ";\n }\n\n &.valid {\n border-color:", ";\n }\n\n &.valid.open,\n &.valid:focus-within {\n box-shadow:0 0 6px ", ";\n }\n"]);
5878
5925
 
5879
5926
  _templateObject2$5 = function _templateObject2() {
5880
5927
  return data;
@@ -5883,44 +5930,42 @@ function _templateObject2$5() {
5883
5930
  return data;
5884
5931
  }
5885
5932
 
5886
- function _templateObject$9() {
5887
- var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n"]);
5933
+ function _templateObject$a() {
5934
+ var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n ", "\n"]);
5888
5935
 
5889
- _templateObject$9 = function _templateObject() {
5936
+ _templateObject$a = function _templateObject() {
5890
5937
  return data;
5891
5938
  };
5892
5939
 
5893
5940
  return data;
5894
5941
  }
5895
- var Frag$3 = styled.div(_templateObject$9());
5896
- var Span$3 = styled.span(_templateObject2$5(), theme.font.extraSmall.size);
5897
- var SpanError$4 = styled(Span$3)(_templateObject3$5(), theme.colors.error.text);
5898
- var Select = styled(InputBase)(_templateObject4$5(), theme.colors.neutrals.white, theme.colors.action, theme.colors.secondary, theme.colors.error.border);
5942
+ var Frag$3 = styled.div(_templateObject$a(), function (_ref) {
5943
+ var size = _ref.size;
5944
+ return handleSize$1(size) === '100%' && 'width:100%;';
5945
+ });
5946
+ var Select = styled(InputBase)(_templateObject2$5(), theme.colors.neutrals.white, function (_ref2) {
5947
+ var size = _ref2.size;
5948
+ return handleSize$1(size);
5949
+ }, theme.colors.info.border, theme.colors.secondary, theme.colors.action, theme.colors.error.border, theme.colors.error.shadow, theme.colors.success.border, theme.colors.success.shadow);
5899
5950
  var maxOptions$1 = 5;
5900
- var optionsSize$1 = 32;
5901
- var Options$2 = styled.ul(_templateObject5$3(), theme.colors.neutrals.silver, theme.colors.neutrals.silver, theme.defaultRadius, function (props) {
5902
- return props.openTo === 'top' && "\n top:unset;\n bottom:100%;\n ";
5903
- }, function (props) {
5904
- return props.visibleOptionsQty ? props.visibleOptionsQty * optionsSize$1 : maxOptions$1 * optionsSize$1;
5905
- }, theme.font.small.size, theme.colors.info.bg);
5906
- var TagsValues = styled.ul(_templateObject6$3(), theme.defaultRadius);
5907
- var SelectHidden$1 = styled.select(_templateObject7$3());
5908
- var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
5909
- var _ref$name = _ref.name,
5910
- name = _ref$name === void 0 ? '' : _ref$name,
5911
- options = _ref.options,
5912
- error = _ref.error,
5913
- valid = _ref.valid,
5914
- help = _ref.help,
5915
- label = _ref.label,
5916
- tooltip = _ref.tooltip,
5917
- canCreate = _ref.canCreate,
5918
- size = _ref.size,
5919
- onChange = _ref.onChange,
5920
- placeholder = _ref.placeholder,
5921
- visibleOptionsQty = _ref.visibleOptionsQty,
5922
- openTo = _ref.openTo,
5923
- props = objectWithoutProperties(_ref, ["name", "options", "error", "valid", "help", "label", "tooltip", "canCreate", "size", "onChange", "placeholder", "visibleOptionsQty", "openTo"]);
5951
+ var TagsValues = styled.ul(_templateObject3$4(), theme.defaultRadius);
5952
+ var SelectHidden$1 = styled.select(_templateObject4$4());
5953
+ var Tag = /*#__PURE__*/forwardRef(function (_ref3, ref) {
5954
+ var _ref3$name = _ref3.name,
5955
+ name = _ref3$name === void 0 ? '' : _ref3$name,
5956
+ options = _ref3.options,
5957
+ error = _ref3.error,
5958
+ valid = _ref3.valid,
5959
+ help = _ref3.help,
5960
+ label = _ref3.label,
5961
+ tooltip = _ref3.tooltip,
5962
+ canCreate = _ref3.canCreate,
5963
+ size = _ref3.size,
5964
+ onChange = _ref3.onChange,
5965
+ placeholder = _ref3.placeholder,
5966
+ visibleOptionsQty = _ref3.visibleOptionsQty,
5967
+ openTo = _ref3.openTo,
5968
+ props = objectWithoutProperties(_ref3, ["name", "options", "error", "valid", "help", "label", "tooltip", "canCreate", "size", "onChange", "placeholder", "visibleOptionsQty", "openTo"]);
5924
5969
 
5925
5970
  if (!options || !options[0]) options = [];
5926
5971
  var randId = Math.random() * new Date().getTime();
@@ -5954,6 +5999,12 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
5954
5999
  var containerRef = useRef();
5955
6000
  var searchRef = useRef();
5956
6001
  var valueRef = useRef();
6002
+ var optionsRef = useRef();
6003
+
6004
+ var _useState11 = useState(null),
6005
+ _useState12 = slicedToArray(_useState11, 2),
6006
+ anchor = _useState12[0],
6007
+ setAnchor = _useState12[1];
5957
6008
 
5958
6009
  var isSelected = function isSelected(value) {
5959
6010
  return selectedOpt.some(function (key) {
@@ -6016,8 +6067,10 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6016
6067
  };
6017
6068
 
6018
6069
  var handleClick = function handleClick(e) {
6070
+ var _optionsRef$current;
6071
+
6019
6072
  var elm = e.target;
6020
- if (containerRef.current.contains(elm)) return;
6073
+ if (containerRef.current.contains(elm) || ((_optionsRef$current = optionsRef.current) === null || _optionsRef$current === void 0 ? void 0 : _optionsRef$current.contains(elm))) return;
6021
6074
  setOpen(false);
6022
6075
  };
6023
6076
 
@@ -6088,7 +6141,7 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6088
6141
  };
6089
6142
 
6090
6143
  var addNewOption = function addNewOption(newObj) {
6091
- newObj = _objectSpread$1(_objectSpread$1({}, newObj), {}, {
6144
+ newObj = _objectSpread$2(_objectSpread$2({}, newObj), {}, {
6092
6145
  value: newObj.name,
6093
6146
  "new": true
6094
6147
  });
@@ -6152,13 +6205,15 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6152
6205
  }
6153
6206
  });
6154
6207
  return /*#__PURE__*/React.createElement(Frag$3, {
6155
- ref: containerRef
6208
+ ref: containerRef,
6209
+ size: size
6156
6210
  }, label && /*#__PURE__*/React.createElement(Label, {
6157
6211
  htmlFor: name
6158
6212
  }, label, " ", tooltip && /*#__PURE__*/React.createElement(App, {
6159
6213
  text: tooltip
6160
6214
  }), " ", props.Required && /*#__PURE__*/React.createElement(RequiredText, null)), /*#__PURE__*/React.createElement(Select, {
6161
6215
  as: "div",
6216
+ ref: setAnchor,
6162
6217
  size: size,
6163
6218
  className: [open && 'open', error && 'error', valid && 'valid', 'tagEventPrevent'],
6164
6219
  onClick: function onClick() {
@@ -6190,6 +6245,8 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6190
6245
  onFocus: handleFocus,
6191
6246
  onBlur: handleBlur
6192
6247
  }))), open && /*#__PURE__*/React.createElement(TagOptions, {
6248
+ anchor: anchor,
6249
+ listRef: optionsRef,
6193
6250
  name: safeName,
6194
6251
  filter: filter,
6195
6252
  handleSelect: handleSelect,
@@ -6199,7 +6256,7 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6199
6256
  canCreate: canCreate,
6200
6257
  visibleOptionsQty: visibleOptionsQty,
6201
6258
  openTo: openTo
6202
- })), help && /*#__PURE__*/React.createElement(Span$3, null, help), error && /*#__PURE__*/React.createElement(SpanError$4, null, /*#__PURE__*/React.createElement("img", {
6259
+ })), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
6203
6260
  src: Ex,
6204
6261
  style: {
6205
6262
  marginRight: '6px'
@@ -6217,16 +6274,18 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6217
6274
  })));
6218
6275
  });
6219
6276
 
6220
- var TagOptions = function TagOptions(_ref2) {
6221
- var name = _ref2.name,
6222
- filter = _ref2.filter,
6223
- handleSelect = _ref2.handleSelect,
6224
- options = _ref2.options,
6225
- searchRef = _ref2.searchRef,
6226
- addNewOption = _ref2.addNewOption,
6227
- canCreate = _ref2.canCreate,
6228
- visibleOptionsQty = _ref2.visibleOptionsQty,
6229
- openTo = _ref2.openTo;
6277
+ var TagOptions = function TagOptions(_ref4) {
6278
+ var anchor = _ref4.anchor,
6279
+ listRef = _ref4.listRef,
6280
+ name = _ref4.name,
6281
+ filter = _ref4.filter,
6282
+ handleSelect = _ref4.handleSelect,
6283
+ options = _ref4.options,
6284
+ searchRef = _ref4.searchRef,
6285
+ addNewOption = _ref4.addNewOption,
6286
+ canCreate = _ref4.canCreate,
6287
+ visibleOptionsQty = _ref4.visibleOptionsQty,
6288
+ openTo = _ref4.openTo;
6230
6289
  var CreateOption;
6231
6290
  var underscored;
6232
6291
 
@@ -6243,9 +6302,11 @@ var TagOptions = function TagOptions(_ref2) {
6243
6302
  });
6244
6303
  },
6245
6304
  value: searchRef.current.value
6305
+ }, /*#__PURE__*/React.createElement(Value$1, {
6306
+ option: true
6246
6307
  }, "Create option \"", /*#__PURE__*/React.createElement("u", {
6247
6308
  className: "tagEventPrevent"
6248
- }, searchRef.current.value), "\"");
6309
+ }, searchRef.current.value), "\""));
6249
6310
  var searchToUnderscore = searchRef.current ? searchRef.current.value.replaceAll('(', '\\(').replaceAll(')', '\\)') : '';
6250
6311
  underscored = new RegExp('(' + searchToUnderscore + ')', 'giu');
6251
6312
  }
@@ -6260,32 +6321,39 @@ var TagOptions = function TagOptions(_ref2) {
6260
6321
  var msg = searchRef.current && searchRef.current.value.length < 1 ? 'No options left' : 'No match for ';
6261
6322
  noDataOption = /*#__PURE__*/React.createElement("li", {
6262
6323
  className: "tagEventPrevent",
6263
- dangerouslySetInnerHTML: {
6264
- __html: "".concat(msg, " <u>").concat((_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.value, "</u>")
6324
+ style: {
6325
+ paddingRight: '8px'
6265
6326
  }
6266
- });
6327
+ }, /*#__PURE__*/React.createElement("span", null, msg, " ", /*#__PURE__*/React.createElement("u", null, (_searchRef$current2 = searchRef.current) === null || _searchRef$current2 === void 0 ? void 0 : _searchRef$current2.value)));
6267
6328
  }
6268
6329
 
6269
- return /*#__PURE__*/React.createElement(Options$2, {
6330
+ return /*#__PURE__*/React.createElement(FloatingOptions, {
6331
+ ref: listRef,
6332
+ anchor: anchor,
6270
6333
  id: "".concat(name, "-options"),
6271
- visibleOptionsQty: visibleOptionsQty,
6334
+ visibleOptionsQty: visibleOptionsQty || maxOptions$1,
6272
6335
  openTo: openTo
6273
6336
  }, options.length > 0 ? filter.map(function (key, index) {
6274
- if (options[key].value === undefined) return !noDataOption ? /*#__PURE__*/React.createElement("li", {
6337
+ if (options[key].value === undefined) return !noDataOption ? /*#__PURE__*/React.createElement(OptionGroup$1, {
6275
6338
  key: key,
6276
6339
  className: "tagEventPrevent"
6277
- }, /*#__PURE__*/React.createElement("small", null, /*#__PURE__*/React.createElement("strong", null, options[key].name))) : null;else return /*#__PURE__*/React.createElement("li", {
6340
+ }, options[key].name) : null;else return /*#__PURE__*/React.createElement("li", {
6278
6341
  className: "tagEventPrevent ".concat(index === 0 ? 'active' : ''),
6279
6342
  value: options[key].value,
6280
6343
  key: key,
6281
6344
  onClick: function onClick() {
6282
6345
  handleSelect(key);
6283
6346
  }
6284
- }, underscored ? /*#__PURE__*/React.createElement("span", {
6285
- dangerouslySetInnerHTML: {
6286
- __html: options[key].name.replace(underscored, '<u>$1</u>')
6347
+ }, /*#__PURE__*/React.createElement(Value$1, {
6348
+ option: true,
6349
+ style: {
6350
+ marginRight: 4
6287
6351
  }
6288
- }) : options[key].name);
6352
+ }, underscored ? options[key].name.split(underscored).map(function (part, i) {
6353
+ return i % 2 ? /*#__PURE__*/React.createElement("u", {
6354
+ key: i
6355
+ }, part) : part;
6356
+ }) : options[key].name));
6289
6357
  }) : null, CreateOption, noDataOption);
6290
6358
  };
6291
6359
 
@@ -6322,9 +6390,19 @@ var calculateContrast = function calculateContrast() {
6322
6390
  return ratio < 1 / 4.5;
6323
6391
  };
6324
6392
 
6325
- function _templateObject5$4() {
6393
+ function _templateObject6$3() {
6326
6394
  var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
6327
6395
 
6396
+ _templateObject6$3 = function _templateObject6() {
6397
+ return data;
6398
+ };
6399
+
6400
+ return data;
6401
+ }
6402
+
6403
+ function _templateObject5$4() {
6404
+ var data = taggedTemplateLiteral(["\n background:#fff;\n border-radius:", ";\n padding:5px;\n list-style:none;\n margin:0;\n display: grid;\n grid-template-columns: 24px 24px 24px 24px 24px 24px 24px 24px;\n position:absolute;\n left:48px;\n top:0;\n z-index:10;\n box-shadow: 0px 3px 6px ", "19;\n\n > li {\n width:24px;\n height:24px;\n cursor:pointer;\n position: relative;\n\n &.selected {\n z-index: 1;\n box-shadow: 0 0 0 2px ", ";\n border-radius: ", ";\n }\n\n &:hover {\n z-index: 2;\n box-shadow: 0 0 0 2px ", ";\n border-radius: ", ";\n }\n }\n"]);
6405
+
6328
6406
  _templateObject5$4 = function _templateObject5() {
6329
6407
  return data;
6330
6408
  };
@@ -6332,20 +6410,20 @@ function _templateObject5$4() {
6332
6410
  return data;
6333
6411
  }
6334
6412
 
6335
- function _templateObject4$6() {
6336
- var data = taggedTemplateLiteral(["\n background:#fff;\n border-radius:", ";\n padding:5px;\n list-style:none;\n margin:0;\n display: grid;\n grid-template-columns: 24px 24px 24px 24px 24px 24px 24px 24px;\n position:absolute;\n left:48px;\n top:0;\n box-shadow: 0px 3px 6px ", "19;\n\n > li {\n width:24px;\n height:24px;\n cursor:pointer;\n position: relative;\n\n &.selected {\n z-index: 1;\n box-shadow: 0 0 0 2px ", ";\n border-radius: ", ";\n }\n\n &:hover {\n z-index: 2;\n box-shadow: 0 0 0 2px ", ";\n border-radius: ", ";\n }\n }\n"]);
6413
+ function _templateObject4$5() {
6414
+ var data = taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", ";\n flex-grow: 1;\n width: stretch;\n height: stretch;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px;\n"]);
6337
6415
 
6338
- _templateObject4$6 = function _templateObject4() {
6416
+ _templateObject4$5 = function _templateObject4() {
6339
6417
  return data;
6340
6418
  };
6341
6419
 
6342
6420
  return data;
6343
6421
  }
6344
6422
 
6345
- function _templateObject3$6() {
6346
- var data = taggedTemplateLiteral(["\n height:40px;\n width:40px;\n background:", ";\n border-radius:40px;\n cursor:pointer;\n display:flex;\n justify-content:center;\n align-items:center;\n box-sizing:border-box;\n\n &.hover {\n border:1px solid #0071BC;\n box-shadow: 0px 0px 6px #9DDDF4;\n }\n\n &:focus{\n box-shadow:0px 0px 6px ", ";\n border:1px solid ", ";\n outline:none;\n }\n\n"]);
6423
+ function _templateObject3$5() {
6424
+ var data = taggedTemplateLiteral(["\n height:40px;\n width:40px;\n //padding: 4px;\n border-radius: ", ";\n border-color: ", ";\n border-width: 1px;\n border-style: solid;\n cursor:pointer;\n display:flex;\n justify-content:center;\n align-items:center;\n box-sizing:border-box;\n\n &.hover,\n &:focus {\n box-shadow:0px 0px 6px ", ";\n border:1px solid ", ";\n outline:none;\n }\n"]);
6347
6425
 
6348
- _templateObject3$6 = function _templateObject3() {
6426
+ _templateObject3$5 = function _templateObject3() {
6349
6427
  return data;
6350
6428
  };
6351
6429
 
@@ -6362,30 +6440,32 @@ function _templateObject2$6() {
6362
6440
  return data;
6363
6441
  }
6364
6442
 
6365
- function _templateObject$a() {
6443
+ function _templateObject$b() {
6366
6444
  var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n"]);
6367
6445
 
6368
- _templateObject$a = function _templateObject() {
6446
+ _templateObject$b = function _templateObject() {
6369
6447
  return data;
6370
6448
  };
6371
6449
 
6372
6450
  return data;
6373
6451
  }
6374
- var Frag$4 = styled.div(_templateObject$a());
6452
+ var Frag$4 = styled.div(_templateObject$b());
6375
6453
  var Field = styled.div(_templateObject2$6());
6376
- var WraperBucket = styled.div(_templateObject3$6(), function (props) {
6377
- return props.background ? props.background : theme.colors.info.shadow;
6378
- }, theme.colors.action, theme.colors.secondary);
6379
- var ColorBox = styled.ul(_templateObject4$6(), theme.defaultRadius, theme.colors.neutrals.gray, theme.colors.secondary, theme.defaultRadius, theme.colors.neutrals.gray, theme.defaultRadius);
6380
- var SelectHidden$2 = styled.select(_templateObject5$4());
6381
- var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6382
- var name = _ref.name,
6383
- tooltip = _ref.tooltip,
6384
- value = _ref.value,
6385
- help = _ref.help,
6386
- error = _ref.error,
6387
- label = _ref.label,
6388
- props = objectWithoutProperties(_ref, ["name", "tooltip", "value", "help", "error", "label"]);
6454
+ var WraperBucket = styled.div(_templateObject3$5(), theme.defaultRadius, theme.colors.neutrals.silver, theme.colors.action, theme.colors.secondary);
6455
+ var ColorIndicator = styled.div(_templateObject4$5(), function (_ref) {
6456
+ var background = _ref.background;
6457
+ return background;
6458
+ }, theme.defaultRadius);
6459
+ var ColorBox = styled.ul(_templateObject5$4(), theme.defaultRadius, theme.colors.neutrals.gray, theme.colors.secondary, theme.defaultRadius, theme.colors.neutrals.gray, theme.defaultRadius);
6460
+ var SelectHidden$2 = styled.select(_templateObject6$3());
6461
+ var InputColor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
6462
+ var name = _ref2.name,
6463
+ tooltip = _ref2.tooltip,
6464
+ value = _ref2.value,
6465
+ help = _ref2.help,
6466
+ error = _ref2.error,
6467
+ label = _ref2.label,
6468
+ props = objectWithoutProperties(_ref2, ["name", "tooltip", "value", "help", "error", "label"]);
6389
6469
 
6390
6470
  var _useState = useState(false),
6391
6471
  _useState2 = slicedToArray(_useState, 2),
@@ -6409,14 +6489,17 @@ var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6409
6489
  setSelectedColor = _useState4[1];
6410
6490
 
6411
6491
  useEffect(function () {
6412
- document.addEventListener("mousedown", handleClick);
6492
+ document.addEventListener('mousedown', handleClick);
6413
6493
  return function () {
6414
- document.removeEventListener("mousedown", handleClick);
6494
+ document.removeEventListener('mousedown', handleClick);
6415
6495
  };
6416
6496
  }, []);
6417
6497
 
6418
6498
  var handleClick = function handleClick(e) {
6419
- if (e.target.classList.contains('colorEventPrevent')) return;
6499
+ if (e.target.classList.contains('colorEventPrevent')) {
6500
+ return;
6501
+ }
6502
+
6420
6503
  setOpen(false);
6421
6504
  };
6422
6505
 
@@ -6436,13 +6519,14 @@ var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6436
6519
  onClick: function onClick() {
6437
6520
  return setOpen(!open);
6438
6521
  },
6439
- className: ['colorEventPrevent', open && 'hover'],
6522
+ className: ['colorEventPrevent', open && 'hover']
6523
+ }, /*#__PURE__*/React.createElement(ColorIndicator, {
6440
6524
  background: selectedColor[0] && selectedColor[0]
6441
6525
  }, /*#__PURE__*/React.createElement(Icons.Bucket, {
6442
6526
  size: "28px",
6443
6527
  className: "colorEventPrevent",
6444
6528
  color: selectedColor[1] ? selectedColor[1] : '#333'
6445
- })), open && /*#__PURE__*/React.createElement(ColorBox, {
6529
+ }))), open && /*#__PURE__*/React.createElement(ColorBox, {
6446
6530
  className: "colorEventPrevent"
6447
6531
  }, colors.map(function (item, key) {
6448
6532
  return /*#__PURE__*/React.createElement("li", {
@@ -7255,10 +7339,10 @@ function _templateObject2$7() {
7255
7339
  return data;
7256
7340
  }
7257
7341
 
7258
- function _templateObject$b() {
7342
+ function _templateObject$c() {
7259
7343
  var data = taggedTemplateLiteral(["\n font-family: ", ";\n font-weight:bold;\n border-radius:", ";\n cursor:pointer;\n display:inline-flex;\n background:", "\n color:", "\n height:40px;\n line-height:40px;\n padding:0 16px;\n font-size: ", ";\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n justify-content: center;\n text-align: center;\n\n > * {\n border-color: ", ";\n }\n\n svg path {\n fill: currentColor;\n }\n\n &:hover,\n &.hover {\n background:", ";\n }\n\n &:focus,\n &.focus {\n background:", ";\n box-shadow:", ";\n }\n\n &:active,\n &.active {\n background:", ";\n box-shadow:", ";\n }\n\n &.selected {\n outline: 1px solid ", ";\n position: relative;\n z-index: 1;\n }\n\n &[disabled] {\n opacity: .5;\n cursor: not-allowed;\n }\n"]);
7260
7344
 
7261
- _templateObject$b = function _templateObject() {
7345
+ _templateObject$c = function _templateObject() {
7262
7346
  return data;
7263
7347
  };
7264
7348
 
@@ -7269,7 +7353,7 @@ var defaultShadow = function defaultShadow(color) {
7269
7353
  return "0px 0px 6px ".concat(color);
7270
7354
  };
7271
7355
 
7272
- var Base = styled.button(_templateObject$b(), theme.font.main, theme.defaultRadius, theme.colors.info.bg, theme.colors.secondary, theme.font.medium.size, theme.colors.info.shadow, theme.colors.info.shadow, theme.colors.info.bg, defaultShadow(theme.form.button.secondary.bg), theme.colors.info.shadow, defaultShadow(theme.form.button.secondary.bg), theme.colors.secondary);
7356
+ var Base = styled.button(_templateObject$c(), theme.font.main, theme.defaultRadius, theme.colors.info.bg, theme.colors.secondary, theme.font.medium.size, theme.colors.info.shadow, theme.colors.info.shadow, theme.colors.info.bg, defaultShadow(theme.form.button.secondary.bg), theme.colors.info.shadow, defaultShadow(theme.form.button.secondary.bg), theme.colors.secondary);
7273
7357
  var Primary = "\n background:".concat(theme.form.button.primary.bg, ";\n color:").concat(theme.colors.neutrals.white, ";\n\n > * {\n border-color: ").concat(theme.colors.neutrals.white, ";\n }\n\n svg path {\n fill: ").concat(theme.colors.neutrals.white, ";\n }\n\n &:hover,\n &.hover {\n background:").concat(theme.form.button.primary.hover, "\n }\n\n &:focus,\n &.focus {\n background:").concat(theme.form.button.primary.bg, ";\n box-shadow:").concat(defaultShadow(theme.form.button.primary.bg), ";\n }\n\n &:active,\n &.active {\n background:").concat(theme.form.button.primary.hover, "\n box-shadow:").concat(defaultShadow(theme.form.button.primary.bg), ";\n }\n\n &.selected {\n border: 1px solid ").concat(theme.colors.neutrals.white, ";\n }\n");
7274
7358
  var Secondary = "\n background:".concat(theme.form.button.secondary.bg, ";\n color:").concat(theme.colors.neutrals.white, ";\n\n > * {\n border-color: ").concat(theme.colors.neutrals.white, ";\n }\n\n svg path {\n fill: ").concat(theme.colors.neutrals.white, ";\n }\n\n &:hover {\n background:").concat(theme.form.button.secondary.hover, "\n }\n\n &:focus {\n background:").concat(theme.form.button.secondary.bg, ";\n box-shadow:").concat(defaultShadow(theme.form.button.secondary.bg), ";\n }\n\n &:active,\n &.active {\n background:").concat(theme.form.button.secondary.hover, "\n box-shadow:").concat(defaultShadow(theme.form.button.secondary.bg), ";\n }\n\n &.selected {\n border: 1px solid ").concat(theme.colors.neutrals.white, ";\n }\n");
7275
7359
  var Cancel = "\n background:transparent;\n color:".concat(theme.form.button.secondary.bg, ";\n\n > * {\n border-color: ").concat(theme.colors.info.shadow, ";\n }\n\n svg path {\n fill: ").concat(theme.colors.secondary, ";\n }\n\n &:hover {\n background:transparent;\n text-decoration:underline;\n }\n\n &:focus {\n background:").concat(theme.colors.neutrals.white, ";\n box-shadow:").concat(defaultShadow(theme.form.button.secondary.bg), ";\n }\n\n &:active,\n &.active {\n background:").concat(theme.colors.neutrals.white, ";\n box-shadow:").concat(defaultShadow(theme.form.button.secondary.bg), ";\n text-decoration:underline;\n }\n\n &.selected {\n border: 1px solid ").concat(theme.form.button.secondary.bg, ";\n }\n");
@@ -7305,10 +7389,10 @@ var Exported = function Exported(_ref) {
7305
7389
  }, props));
7306
7390
  };
7307
7391
 
7308
- function _templateObject7$4() {
7392
+ function _templateObject7$3() {
7309
7393
  var data = taggedTemplateLiteral(["\n box-sizing: border-box;\n width: 92px;\n height: 92px;\n padding: 4px;\n border-radius: ", ";\n border: 1px solid ", ";\n background-color: ", ";\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n font-size: ", ";\n font-family: ", ";\n color: ", ";\n text-align: center;\n word-break: break-word;\n overflow: hidden;\n\n &::before {\n content: \"\";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 0;\n background-size: cover;\n background-position: center;\n background-image: url(", ");\n }\n\n + div,\n + label {\n margin-left: 8px;\n }\n\n button {\n position: absolute;\n z-index: 1;\n top: 4px;\n right: 4px;\n padding: 4px;\n height: auto;\n line-height: 0;\n }\n\n label& {\n cursor: pointer;\n border-style: dashed;\n\n &:hover,\n &.highlight {\n background-color: ", ";\n }\n\n &:active, {\n &.highlight {\n border-color: ", ";\n box-shadow: 0 0 6px ", ";\n }\n }\n"]);
7310
7394
 
7311
- _templateObject7$4 = function _templateObject7() {
7395
+ _templateObject7$3 = function _templateObject7() {
7312
7396
  return data;
7313
7397
  };
7314
7398
 
@@ -7335,20 +7419,20 @@ function _templateObject5$5() {
7335
7419
  return data;
7336
7420
  }
7337
7421
 
7338
- function _templateObject4$7() {
7422
+ function _templateObject4$6() {
7339
7423
  var data = taggedTemplateLiteral(["\n height:38px;\n width:38px;\n border-radius:38px;\n background:#FAFAFA;\n border:1px solid ", ";\n position:absolute;\n z-index:1;\n top:0;\n display: flex;\n justify-content: center;\n align-items: flex-end;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: 38px;\n }\n"]);
7340
7424
 
7341
- _templateObject4$7 = function _templateObject4() {
7425
+ _templateObject4$6 = function _templateObject4() {
7342
7426
  return data;
7343
7427
  };
7344
7428
 
7345
7429
  return data;
7346
7430
  }
7347
7431
 
7348
- function _templateObject3$7() {
7432
+ function _templateObject3$6() {
7349
7433
  var data = taggedTemplateLiteral(["\n box-sizing:border-box;\n background:#FAFAFA;\n width:140px;\n border-radius: 20px 2px 2px 20px;\n border:1px solid transparent;\n\n &:hover {\n border:none;\n }\n\n >span {\n text-align: center;\n display: block;\n margin-left: 32px;\n color:#707070;\n font-size:14px;\n font-weight:400;\n\n text-overflow: ellipsis;\n height: 16px;\n white-space: nowrap;\n overflow: hidden;\n }\n"]);
7350
7434
 
7351
- _templateObject3$7 = function _templateObject3() {
7435
+ _templateObject3$6 = function _templateObject3() {
7352
7436
  return data;
7353
7437
  };
7354
7438
 
@@ -7365,19 +7449,19 @@ function _templateObject2$8() {
7365
7449
  return data;
7366
7450
  }
7367
7451
 
7368
- function _templateObject$c() {
7452
+ function _templateObject$d() {
7369
7453
  var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n"]);
7370
7454
 
7371
- _templateObject$c = function _templateObject() {
7455
+ _templateObject$d = function _templateObject() {
7372
7456
  return data;
7373
7457
  };
7374
7458
 
7375
7459
  return data;
7376
7460
  }
7377
- var Frag$5 = styled.div(_templateObject$c());
7461
+ var Frag$5 = styled.div(_templateObject$d());
7378
7462
  var Wrapper$1 = styled.label(_templateObject2$8(), theme.colors.info.bg, theme.colors.secondary, theme.colors.action, theme.colors.secondary, theme.colors.success.border, theme.colors.success.border, theme.colors.error.border, theme.colors.error.border);
7379
- var Input$1 = styled(InputBase)(_templateObject3$7());
7380
- var Profile = styled.div(_templateObject4$7(), theme.colors.neutrals.silver);
7463
+ var Input$1 = styled(InputBase)(_templateObject3$6());
7464
+ var Profile = styled.div(_templateObject4$6(), theme.colors.neutrals.silver);
7381
7465
  var HiddenInput = styled.input(_templateObject5$5());
7382
7466
  var Uploader = /*#__PURE__*/forwardRef(function (_ref, ref) {
7383
7467
  var name = _ref.name,
@@ -7519,7 +7603,7 @@ var processFileList = /*#__PURE__*/function () {
7519
7603
  }();
7520
7604
 
7521
7605
  var DropUploaderList = styled.div(_templateObject6$4());
7522
- var DropUploaderPreview = styled.div(_templateObject7$4(), theme.defaultRadius, theme.colors.neutrals.silver, theme.colors.extra.whiteSmoke, theme.font.extraSmall.size, theme.font.main, theme.colors.neutrals.silver, function (props) {
7606
+ var DropUploaderPreview = styled.div(_templateObject7$3(), theme.defaultRadius, theme.colors.neutrals.silver, theme.colors.extra.whiteSmoke, theme.font.extraSmall.size, theme.font.main, theme.colors.neutrals.silver, function (props) {
7523
7607
  return typeof props.preview === 'string' && props.preview;
7524
7608
  }, theme.colors.info.bg, theme.colors.secondary, theme.colors.secondary);
7525
7609
  var DropUploader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
@@ -7756,20 +7840,20 @@ function _templateObject5$6() {
7756
7840
  return data;
7757
7841
  }
7758
7842
 
7759
- function _templateObject4$8() {
7843
+ function _templateObject4$7() {
7760
7844
  var data = taggedTemplateLiteral(["\n width: 0;\n height: 0;\n margin: 0;\n visibility: hidden;\n pointer-events: none;\n\n &:checked + ", " {\n background: ", ";\n border: 1px solid ", ";\n\n &::after {\n background:", ";\n margin-left: 19px;\n }\n }\n"]);
7761
7845
 
7762
- _templateObject4$8 = function _templateObject4() {
7846
+ _templateObject4$7 = function _templateObject4() {
7763
7847
  return data;
7764
7848
  };
7765
7849
 
7766
7850
  return data;
7767
7851
  }
7768
7852
 
7769
- function _templateObject3$8() {
7853
+ function _templateObject3$7() {
7770
7854
  var data = taggedTemplateLiteral(["\n width: 36px;\n height: 20px;\n border-radius: 100px;\n background: ", ";\n cursor: pointer;\n border: 1px solid ", ";\n box-sizing: border-box;\n transition: 0.2s;\n\n &:focus {\n box-shadow: 0px 0px 6px ", ";\n border: 1px solid ", ";\n outline: none;\n }\n\n &::after {\n content: \"\";\n display: block;\n border-radius: 100%;\n width: 12px;\n height: 12px;\n margin: 3px;\n background: ", ";\n transition: 0.2s;\n }\n"]);
7771
7855
 
7772
- _templateObject3$8 = function _templateObject3() {
7856
+ _templateObject3$7 = function _templateObject3() {
7773
7857
  return data;
7774
7858
  };
7775
7859
 
@@ -7777,7 +7861,7 @@ function _templateObject3$8() {
7777
7861
  }
7778
7862
 
7779
7863
  function _templateObject2$9() {
7780
- var data = taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n\n &:focus {\n outline: none;\n }\n"]);
7864
+ var data = taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n ", "\n\n &:focus {\n outline: none;\n }\n"]);
7781
7865
 
7782
7866
  _templateObject2$9 = function _templateObject2() {
7783
7867
  return data;
@@ -7786,19 +7870,21 @@ function _templateObject2$9() {
7786
7870
  return data;
7787
7871
  }
7788
7872
 
7789
- function _templateObject$d() {
7873
+ function _templateObject$e() {
7790
7874
  var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n"]);
7791
7875
 
7792
- _templateObject$d = function _templateObject() {
7876
+ _templateObject$e = function _templateObject() {
7793
7877
  return data;
7794
7878
  };
7795
7879
 
7796
7880
  return data;
7797
7881
  }
7798
- var Frag$6 = styled.div(_templateObject$d());
7799
- var CheckBoxWrapper = styled.div(_templateObject2$9());
7800
- var CheckBoxLabel = styled.label(_templateObject3$8(), theme.colors.neutrals.white, theme.colors.info.border, theme.colors.action, theme.colors.secondary, theme.colors.info.border);
7801
- var CheckBox$1 = styled.input(_templateObject4$8(), CheckBoxLabel, theme.colors.info.text, theme.colors.info.border, theme.colors.neutrals.white);
7882
+ var Frag$6 = styled.div(_templateObject$e());
7883
+ var CheckBoxWrapper = styled.div(_templateObject2$9(), function (props) {
7884
+ return props.hasLabel && 'height: 40px;';
7885
+ });
7886
+ var CheckBoxLabel = styled.label(_templateObject3$7(), theme.colors.neutrals.white, theme.colors.info.border, theme.colors.action, theme.colors.secondary, theme.colors.info.border);
7887
+ var CheckBox$1 = styled.input(_templateObject4$7(), CheckBoxLabel, theme.colors.info.text, theme.colors.info.border, theme.colors.neutrals.white);
7802
7888
  var ToggleLabel = styled.label(_templateObject5$6(), theme.colors.neutrals.medium, theme.font.medium.size, theme.font.medium.lineHeight);
7803
7889
  var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
7804
7890
  var name = _ref.name,
@@ -7842,7 +7928,9 @@ var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
7842
7928
  htmlFor: id
7843
7929
  }, label, " ", tooltip && /*#__PURE__*/React.createElement(App, {
7844
7930
  text: tooltip
7845
- })), /*#__PURE__*/React.createElement(CheckBoxWrapper, null, /*#__PURE__*/React.createElement(CheckBox$1, {
7931
+ })), /*#__PURE__*/React.createElement(CheckBoxWrapper, {
7932
+ hasLabel: !!label
7933
+ }, /*#__PURE__*/React.createElement(CheckBox$1, {
7846
7934
  name: name,
7847
7935
  id: id,
7848
7936
  type: "checkbox",
@@ -7860,14 +7948,14 @@ var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
7860
7948
  }, singleText || (value ? textOn : textOff))), help && /*#__PURE__*/React.createElement(SpanHelp, null, help));
7861
7949
  });
7862
7950
 
7863
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7951
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
7864
7952
 
7865
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7953
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7866
7954
 
7867
- function _templateObject$e() {
7955
+ function _templateObject$f() {
7868
7956
  var data = taggedTemplateLiteral(["\n position: relative;\n\n ", " {\n left: 0;\n top: -21px;\n height: 192px;\n overflow: auto;\n\n li {\n padding-right: 8px;\n }\n }\n\n ", " {\n font-size: ", ";\n line-height: ", ";\n position: sticky;\n top: 0;\n z-index: 1;\n background: ", ";\n\n &:hover {\n background: ", ";\n }\n }\n"]);
7869
7957
 
7870
- _templateObject$e = function _templateObject() {
7958
+ _templateObject$f = function _templateObject() {
7871
7959
  return data;
7872
7960
  };
7873
7961
 
@@ -8018,7 +8106,7 @@ var fromMilliseconds = function fromMilliseconds(milliseconds) {
8018
8106
  };
8019
8107
  };
8020
8108
 
8021
- var TimePickerOptionsStyle = styled.div(_templateObject$e(), Options, OptionGroup, theme.font.extraSmall.size, theme.font.extraSmall.lineHeight, theme.colors.neutrals.white, theme.colors.neutrals.white);
8109
+ var TimePickerOptionsStyle = styled.div(_templateObject$f(), Options, OptionGroup, theme.font.extraSmall.size, theme.font.extraSmall.lineHeight, theme.colors.neutrals.white, theme.colors.neutrals.white);
8022
8110
 
8023
8111
  var TimePickerOptions = function TimePickerOptions(_ref5) {
8024
8112
  var time = _ref5.time,
@@ -8057,7 +8145,7 @@ var TimePickerOptions = function TimePickerOptions(_ref5) {
8057
8145
  }
8058
8146
 
8059
8147
  var handleSelect = function handleSelect(what, value) {
8060
- var newTime = _objectSpread$2({}, time);
8148
+ var newTime = _objectSpread$3({}, time);
8061
8149
 
8062
8150
  newTime[what] = value;
8063
8151
  setTime(newTime);
@@ -8270,10 +8358,10 @@ function _templateObject2$a() {
8270
8358
  return data;
8271
8359
  }
8272
8360
 
8273
- function _templateObject$f() {
8361
+ function _templateObject$g() {
8274
8362
  var data = taggedTemplateLiteral(["\n display: inline-flex;\n align-items: stretch;\n padding: 0;\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n ", "\n"]);
8275
8363
 
8276
- _templateObject$f = function _templateObject() {
8364
+ _templateObject$g = function _templateObject() {
8277
8365
  return data;
8278
8366
  };
8279
8367
 
@@ -8283,7 +8371,7 @@ var Container = styled(Base).attrs(function (props) {
8283
8371
  return {
8284
8372
  as: 'div'
8285
8373
  };
8286
- })(_templateObject$f(), function (props) {
8374
+ })(_templateObject$g(), function (props) {
8287
8375
  return props.type === 'primary' && Primary;
8288
8376
  }, function (props) {
8289
8377
  return props.type === 'secondary' && Secondary;
@@ -8378,20 +8466,20 @@ var Dropdown$1 = function Dropdown$$1(_ref) {
8378
8466
  })));
8379
8467
  };
8380
8468
 
8381
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
8469
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
8382
8470
 
8383
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8471
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8384
8472
 
8385
- function _templateObject$g() {
8473
+ function _templateObject$h() {
8386
8474
  var data = taggedTemplateLiteral(["\n display: inline-flex;\n flex-wrap: nowrap;\n border: 1px solid ", ";\n border-radius: ", ";\n\n > *:not(.selected) {\n border-radius: 0;\n\n &:first-child {\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n }\n\n &:last-child {\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n }\n }\n"]);
8387
8475
 
8388
- _templateObject$g = function _templateObject() {
8476
+ _templateObject$h = function _templateObject() {
8389
8477
  return data;
8390
8478
  };
8391
8479
 
8392
8480
  return data;
8393
8481
  }
8394
- var BtnGroup = styled.div(_templateObject$g(), theme.colors.neutrals.silver, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius);
8482
+ var BtnGroup = styled.div(_templateObject$h(), theme.colors.neutrals.silver, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius, theme.defaultRadius);
8395
8483
 
8396
8484
  var ButtonGroup = function ButtonGroup(_ref) {
8397
8485
  var children = _ref.children,
@@ -8409,27 +8497,27 @@ var ButtonGroup = function ButtonGroup(_ref) {
8409
8497
  };
8410
8498
 
8411
8499
  return /*#__PURE__*/React.createElement(BtnGroup, null, children.map(function (btn, k) {
8412
- return btn.type(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, props), btn.props), {}, {
8500
+ return btn.type(_objectSpread$4(_objectSpread$4(_objectSpread$4({}, props), btn.props), {}, {
8413
8501
  key: k,
8414
8502
  className: generateClassName(btn.props)
8415
8503
  }));
8416
8504
  }));
8417
8505
  };
8418
8506
 
8419
- function _templateObject4$9() {
8507
+ function _templateObject4$8() {
8420
8508
  var data = taggedTemplateLiteral(["\n position:relative;\n\n &:hover > ", " {\n visibility: visible;\n }\n\n &:hover > ", " > * {\n animation-name: ", ";\n animation-duration: 200ms;\n animation-fill-mode: backwards;\n animation-timing-function: ease-in-out;\n }\n"]);
8421
8509
 
8422
- _templateObject4$9 = function _templateObject4() {
8510
+ _templateObject4$8 = function _templateObject4() {
8423
8511
  return data;
8424
8512
  };
8425
8513
 
8426
8514
  return data;
8427
8515
  }
8428
8516
 
8429
- function _templateObject3$9() {
8517
+ function _templateObject3$8() {
8430
8518
  var data = taggedTemplateLiteral(["\n cursor:pointer;\n background:white;\n border-radius:100%;\n padding:8px;\n display:flex;\n justify-content:center;\n border:1px solid rgb(204, 204, 204);\n"]);
8431
8519
 
8432
- _templateObject3$9 = function _templateObject3() {
8520
+ _templateObject3$8 = function _templateObject3() {
8433
8521
  return data;
8434
8522
  };
8435
8523
 
@@ -8446,16 +8534,16 @@ function _templateObject2$b() {
8446
8534
  return data;
8447
8535
  }
8448
8536
 
8449
- function _templateObject$h() {
8537
+ function _templateObject$i() {
8450
8538
  var data = taggedTemplateLiteral(["\n 0% {\n opacity:0;\n visibility: hidden;\n transform: scale(0.6) translateY(-8px);\n }\n\n 100% {\n visibility: visible;\n opacity:1;\n }\n"]);
8451
8539
 
8452
- _templateObject$h = function _templateObject() {
8540
+ _templateObject$i = function _templateObject() {
8453
8541
  return data;
8454
8542
  };
8455
8543
 
8456
8544
  return data;
8457
8545
  }
8458
- var listAnimation = keyframes(_templateObject$h());
8546
+ var listAnimation = keyframes(_templateObject$i());
8459
8547
  var POSITION_LIST = '100%';
8460
8548
  var POSITION_LIST_DISTANCE = '10%';
8461
8549
 
@@ -8493,8 +8581,8 @@ var ListContent = styled.div(_templateObject2$b(), function (props) {
8493
8581
  }, function (props) {
8494
8582
  return props.direction === 'bottom' && "\n flex-direction:column;\n justify-content:start;\n top:".concat(POSITION_LIST, ";\n bottom:0;\n right:0;\n left:0;\n padding-top:").concat(POSITION_LIST_DISTANCE, ";\n ");
8495
8583
  });
8496
- var PreviewContent = styled.div(_templateObject3$9());
8497
- var Container$1 = styled.div(_templateObject4$9(), ListContent, ListContent, listAnimation);
8584
+ var PreviewContent = styled.div(_templateObject3$8());
8585
+ var Container$1 = styled.div(_templateObject4$8(), ListContent, ListContent, listAnimation);
8498
8586
 
8499
8587
  var ButtonIcon = function ButtonIcon(_ref) {
8500
8588
  var children = _ref.children,
@@ -8682,20 +8770,20 @@ function _templateObject5$7() {
8682
8770
  return data;
8683
8771
  }
8684
8772
 
8685
- function _templateObject4$a() {
8773
+ function _templateObject4$9() {
8686
8774
  var data = taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", ";\n"]);
8687
8775
 
8688
- _templateObject4$a = function _templateObject4() {
8776
+ _templateObject4$9 = function _templateObject4() {
8689
8777
  return data;
8690
8778
  };
8691
8779
 
8692
8780
  return data;
8693
8781
  }
8694
8782
 
8695
- function _templateObject3$a() {
8783
+ function _templateObject3$9() {
8696
8784
  var data = taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", ";\n"]);
8697
8785
 
8698
- _templateObject3$a = function _templateObject3() {
8786
+ _templateObject3$9 = function _templateObject3() {
8699
8787
  return data;
8700
8788
  };
8701
8789
 
@@ -8712,21 +8800,21 @@ function _templateObject2$c() {
8712
8800
  return data;
8713
8801
  }
8714
8802
 
8715
- function _templateObject$i() {
8803
+ function _templateObject$j() {
8716
8804
  var data = taggedTemplateLiteral(["\n padding: 7px;\n border-radius: ", ";\n border-width:1px;\n border-style:solid;\n display:flex;\n align-items:center;\n position:relative;\n\n ", "\n\n svg {\n margin-right: 8px;\n display: block;\n }\n"]);
8717
8805
 
8718
- _templateObject$i = function _templateObject() {
8806
+ _templateObject$j = function _templateObject() {
8719
8807
  return data;
8720
8808
  };
8721
8809
 
8722
8810
  return data;
8723
8811
  }
8724
- var Div = styled.div(_templateObject$i(), theme.defaultRadius, function (props) {
8812
+ var Div = styled.div(_templateObject$j(), theme.defaultRadius, function (props) {
8725
8813
  return props.useClose && "\n padding-right: 32px;\n ";
8726
8814
  });
8727
8815
  var Title$2 = styled.h5(_templateObject2$c(), theme.font.main, theme.font.medium.size, theme.font.big.lineHeight);
8728
- var Content = styled.p(_templateObject3$a(), theme.font.extraSmall.size, theme.font.small.lineHeight);
8729
- var SmallContent = styled(Content)(_templateObject4$a(), theme.font.small.size, theme.font.small.lineHeight);
8816
+ var Content = styled.p(_templateObject3$9(), theme.font.extraSmall.size, theme.font.small.lineHeight);
8817
+ var SmallContent = styled(Content)(_templateObject4$9(), theme.font.small.size, theme.font.small.lineHeight);
8730
8818
  var Close = styled.button.attrs(function (props) {
8731
8819
  return {
8732
8820
  type: 'button'
@@ -8816,5 +8904,5 @@ var index = {
8816
8904
  Error: AlertError
8817
8905
  };
8818
8906
 
8819
- export { theme as Theme, ButtonIcon, Exported as Button, Dropdown$1 as ButtonDropdown, ButtonGroup, Form, Input, Password, CheckBox, RadioBox, Dropdown, CustomDropdown, Tag as TagInput, InputColor, Uploader, Toggle, TimePicker, DropUploader, Title, SubTitle, ThirdTitle, Text, index as Alert, Spacer, Icons as Icon, logo as Logo, dspwLoading as Loading };
8907
+ export { theme as Theme, ButtonIcon, Exported as Button, Dropdown$1 as ButtonDropdown, ButtonGroup, Form, Input, Textarea, Password, CheckBox, RadioBox, Dropdown, CustomDropdown, Tag as TagInput, InputColor, Uploader, Toggle, TimePicker, DropUploader, Title, SubTitle, ThirdTitle, Text, Emphasis, index as Alert, Spacer, Icons as Icon, logo as Logo, dspwLoading as Loading };
8820
8908
  //# sourceMappingURL=index.es.js.map