@dspworkplace/ui 2.0.2 → 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
@@ -362,7 +362,7 @@ function _templateObject5() {
362
362
  }
363
363
 
364
364
  function _templateObject4() {
365
- 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"]);
366
366
 
367
367
  _templateObject4 = function _templateObject4() {
368
368
  return data;
@@ -424,7 +424,7 @@ var InputBase = styled.input(_templateObject3(), theme.colors.neutrals.white, th
424
424
  var size = _ref.size;
425
425
  return handleSize(size);
426
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);
427
- 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);
428
428
  var SpanError = styled(SpanHelp)(_templateObject5(), theme.colors.error.text);
429
429
 
430
430
  var RequiredText = function RequiredText() {
@@ -461,28 +461,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
461
461
 
462
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; }
463
463
 
464
- function _templateObject4$1() {
465
- var data = taggedTemplateLiteral(["\n width:", "\n display:inline-block;\n vertical-align:top;\n\n svg path {\n fill: ", ";\n }\n"]);
466
-
467
- _templateObject4$1 = function _templateObject4() {
468
- return data;
469
- };
470
-
471
- return data;
472
- }
473
-
474
- function _templateObject3$1() {
475
- var data = taggedTemplateLiteral(["\n color:", "\n"]);
476
-
477
- _templateObject3$1 = function _templateObject3() {
478
- return data;
479
- };
480
-
481
- return data;
482
- }
483
-
484
464
  function _templateObject2$1() {
485
- 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"]);
486
466
 
487
467
  _templateObject2$1 = function _templateObject2() {
488
468
  return data;
@@ -552,9 +532,7 @@ var InputBase$1 = styled.input(_templateObject$2(), theme.colors.neutrals.white,
552
532
  }, borderDefault$1, function (props) {
553
533
  return handlerColor(props.validation);
554
534
  }, borderDefault$1, theme.colors.action, theme.colors.secondary, theme.colors.neutrals.silver, theme.font.small, theme.colors.info.bg, theme.colors.neutrals.silver);
555
- var Span = styled.span(_templateObject2$1(), theme.font.extraSmall.size);
556
- var SpanError$1 = styled(Span)(_templateObject3$1(), theme.colors.error.text);
557
- var Frag$1 = styled.div(_templateObject4$1(), function (_ref2) {
535
+ var Frag$1 = styled.div(_templateObject2$1(), function (_ref2) {
558
536
  var size = _ref2.size;
559
537
  return handleSize$1(size);
560
538
  }, theme.colors.secondary);
@@ -643,7 +621,7 @@ var Input = /*#__PURE__*/forwardRef(function (_ref3, ref) {
643
621
  validation: validationType,
644
622
  ref: ref,
645
623
  onChange: handleChange
646
- })), 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", {
647
625
  src: Ex,
648
626
  style: {
649
627
  marginRight: '6px'
@@ -4177,20 +4155,30 @@ var mergeRefs = function mergeRefs(refs) {
4177
4155
  };
4178
4156
  };
4179
4157
 
4180
- 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() {
4181
4169
  var data = taggedTemplateLiteral(["\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n\n ", "\n}\n"]);
4182
4170
 
4183
- _templateObject4$2 = function _templateObject4() {
4171
+ _templateObject4$1 = function _templateObject4() {
4184
4172
  return data;
4185
4173
  };
4186
4174
 
4187
4175
  return data;
4188
4176
  }
4189
4177
 
4190
- function _templateObject3$2() {
4178
+ function _templateObject3$1() {
4191
4179
  var data = taggedTemplateLiteral(["\n font-size: 16px;\n line-height: 20px;\n"]);
4192
4180
 
4193
- _templateObject3$2 = function _templateObject3() {
4181
+ _templateObject3$1 = function _templateObject3() {
4194
4182
  return data;
4195
4183
  };
4196
4184
 
@@ -4218,38 +4206,19 @@ function _templateObject$5() {
4218
4206
  }
4219
4207
  var Title = styled.h1(_templateObject$5(), theme.colors.info.text);
4220
4208
  var SubTitle = styled.h3(_templateObject2$2(), theme.colors.info.text);
4221
- var ThirdTitle = styled(SubTitle)(_templateObject3$2());
4222
- 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) {
4223
4211
  var subtle = _ref.subtle;
4224
4212
  return subtle && "\n color:".concat(theme.colors.neutrals.medium, ";\n ");
4225
4213
  });
4214
+ var Emphasis = styled.span(_templateObject5$1(), theme.font.main);
4226
4215
 
4227
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; }
4228
4217
 
4229
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; }
4230
4219
 
4231
- function _templateObject14() {
4232
- 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"]);
4233
-
4234
- _templateObject14 = function _templateObject14() {
4235
- return data;
4236
- };
4237
-
4238
- return data;
4239
- }
4240
-
4241
- function _templateObject13() {
4242
- 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"]);
4243
-
4244
- _templateObject13 = function _templateObject13() {
4245
- return data;
4246
- };
4247
-
4248
- return data;
4249
- }
4250
-
4251
4220
  function _templateObject12() {
4252
- 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"]);
4253
4222
 
4254
4223
  _templateObject12 = function _templateObject12() {
4255
4224
  return data;
@@ -4259,7 +4228,7 @@ function _templateObject12() {
4259
4228
  }
4260
4229
 
4261
4230
  function _templateObject11() {
4262
- 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"]);
4263
4232
 
4264
4233
  _templateObject11 = function _templateObject11() {
4265
4234
  return data;
@@ -4269,7 +4238,7 @@ function _templateObject11() {
4269
4238
  }
4270
4239
 
4271
4240
  function _templateObject10() {
4272
- 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"]);
4273
4242
 
4274
4243
  _templateObject10 = function _templateObject10() {
4275
4244
  return data;
@@ -4279,7 +4248,7 @@ function _templateObject10() {
4279
4248
  }
4280
4249
 
4281
4250
  function _templateObject9$1() {
4282
- 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"]);
4283
4252
 
4284
4253
  _templateObject9$1 = function _templateObject9() {
4285
4254
  return data;
@@ -4289,7 +4258,7 @@ function _templateObject9$1() {
4289
4258
  }
4290
4259
 
4291
4260
  function _templateObject8$1() {
4292
- 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"]);
4293
4262
 
4294
4263
  _templateObject8$1 = function _templateObject8() {
4295
4264
  return data;
@@ -4299,7 +4268,7 @@ function _templateObject8$1() {
4299
4268
  }
4300
4269
 
4301
4270
  function _templateObject7$1() {
4302
- 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"]);
4303
4272
 
4304
4273
  _templateObject7$1 = function _templateObject7() {
4305
4274
  return data;
@@ -4309,7 +4278,7 @@ function _templateObject7$1() {
4309
4278
  }
4310
4279
 
4311
4280
  function _templateObject6$1() {
4312
- 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"]);
4313
4282
 
4314
4283
  _templateObject6$1 = function _templateObject6() {
4315
4284
  return data;
@@ -4318,30 +4287,30 @@ function _templateObject6$1() {
4318
4287
  return data;
4319
4288
  }
4320
4289
 
4321
- function _templateObject5$1() {
4290
+ function _templateObject5$2() {
4322
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"]);
4323
4292
 
4324
- _templateObject5$1 = function _templateObject5() {
4293
+ _templateObject5$2 = function _templateObject5() {
4325
4294
  return data;
4326
4295
  };
4327
4296
 
4328
4297
  return data;
4329
4298
  }
4330
4299
 
4331
- function _templateObject4$3() {
4332
- 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"]);
4333
4302
 
4334
- _templateObject4$3 = function _templateObject4() {
4303
+ _templateObject4$2 = function _templateObject4() {
4335
4304
  return data;
4336
4305
  };
4337
4306
 
4338
4307
  return data;
4339
4308
  }
4340
4309
 
4341
- function _templateObject3$3() {
4310
+ function _templateObject3$2() {
4342
4311
  var data = taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n color: ", ";\n\n ", "\n > span {\n color: #707070;\n }\n"]);
4343
4312
 
4344
- _templateObject3$3 = function _templateObject3() {
4313
+ _templateObject3$2 = function _templateObject3() {
4345
4314
  return data;
4346
4315
  };
4347
4316
 
@@ -4396,12 +4365,12 @@ var Value$1 = styled(Text).attrs(function (props) {
4396
4365
  return {
4397
4366
  as: 'span'
4398
4367
  };
4399
- })(_templateObject3$3(), theme.colors.neutrals.medium, function (props) {
4368
+ })(_templateObject3$2(), theme.colors.neutrals.medium, function (props) {
4400
4369
  return props.option && "\n display:inline-block;\n flex:1;\n ";
4401
4370
  });
4402
4371
  var maxOptions = 3;
4403
4372
  var optionsSize = 32;
4404
- 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) {
4405
4374
  return props.openTo === 'top' && "\n top:unset;\n bottom: 100%;\n ";
4406
4375
  }, function (props) {
4407
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 ");
@@ -4409,16 +4378,14 @@ var Options$1 = styled.ul(_templateObject4$3(), theme.colors.neutrals.silver, th
4409
4378
  return props.isChild && "\n position:absolute;\n left:100%;\n margin-left:4px;\n top:-4px;\n ";
4410
4379
  }, theme.font.small.size, theme.colors.info.bg, theme.colors.neutrals.silver);
4411
4380
  var optionsSizeCustom = 42;
4412
- var OptionsPeople = styled(Options$1)(_templateObject5$1(), function (props) {
4381
+ var OptionsPeople = styled(Options$1)(_templateObject5$2(), function (props) {
4413
4382
  return props.visibleOptionsQty ? props.visibleOptionsQty * optionsSize : optionsSizeCustom * optionsSize;
4414
4383
  });
4415
- var Span$1 = styled.span(_templateObject6$1(), theme.font.extraSmall.size);
4416
- var SpanError$2 = styled(Span$1)(_templateObject7$1(), theme.colors.error.text);
4417
- var SelectHidden = styled.select(_templateObject8$1());
4418
- var PhotoCover = styled.div(_templateObject9$1());
4419
- var CustomCheckBox = styled.div(_templateObject10(), theme.colors.neutrals.white, theme.defaultRadius, theme.colors.neutrals.silver, theme.defaultRadius, theme.colors.secondary, theme.colors.action);
4420
- var OptionGroup$1 = styled.div(_templateObject11());
4421
- 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) {
4422
4389
  return props.color ? props.color : 'black';
4423
4390
  }, function (props) {
4424
4391
  return props.index > 0 ? 10 - props.index : 10;
@@ -4434,10 +4401,10 @@ var getSelected = function getSelected(options, defaultValue) {
4434
4401
  return selected;
4435
4402
  };
4436
4403
 
4437
- 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) {
4438
4405
  return props.hasSelection ? theme.colors.neutrals.gray : theme.colors.neutrals.medium;
4439
4406
  });
4440
- var ToggleButton = styled.button(_templateObject14());
4407
+ var ToggleButton = styled.button(_templateObject12());
4441
4408
 
4442
4409
  var isOption = function isOption(item) {
4443
4410
  return item.value !== undefined && item.value !== null;
@@ -4487,8 +4454,21 @@ var FloatingOptions = /*#__PURE__*/forwardRef(function (_ref3, ref) {
4487
4454
  }]
4488
4455
  }),
4489
4456
  styles = _usePopper.styles,
4490
- attributes = _usePopper.attributes;
4457
+ attributes = _usePopper.attributes,
4458
+ update = _usePopper.update; // popper repositions only on scroll and resize; follow size changes of the anchor and the list
4491
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]);
4492
4472
  return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(Options$1, _extends_1({
4493
4473
  ref: listRef,
4494
4474
  style: _objectSpread$1(_objectSpread$1(_objectSpread$1({}, style), styles.popper), {}, {
@@ -4892,7 +4872,7 @@ var MultiDropdown = /*#__PURE__*/forwardRef(function (_ref9, ref) {
4892
4872
  visibleOptionsQty: visibleOptionsQty,
4893
4873
  openTo: openTo,
4894
4874
  startOpen: startOpen
4895
- }, 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", {
4896
4876
  src: Ex,
4897
4877
  style: {
4898
4878
  marginRight: '6px'
@@ -5004,7 +4984,7 @@ var SingleDropdown = /*#__PURE__*/forwardRef(function (_ref10, ref) {
5004
4984
  visibleOptionsQty: visibleOptionsQty,
5005
4985
  openTo: openTo,
5006
4986
  startOpen: startOpen
5007
- }, 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", {
5008
4988
  src: Ex,
5009
4989
  style: {
5010
4990
  marginRight: '6px'
@@ -5304,7 +5284,7 @@ var CustomDropdown = /*#__PURE__*/forwardRef(function (_ref13, ref) {
5304
5284
  noOptions: props.noOptions,
5305
5285
  visibleOptionsQty: visibleOptionsQty,
5306
5286
  openTo: openTo
5307
- })), 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", {
5308
5288
  src: Ex,
5309
5289
  style: {
5310
5290
  marginRight: '6px'
@@ -5549,28 +5529,8 @@ var Spacer = function Spacer(_ref) {
5549
5529
  return /*#__PURE__*/React.createElement(BaseSpace, props);
5550
5530
  };
5551
5531
 
5552
- function _templateObject9$2() {
5553
- var data = taggedTemplateLiteral(["\n color: ", ";\n"]);
5554
-
5555
- _templateObject9$2 = function _templateObject9() {
5556
- return data;
5557
- };
5558
-
5559
- return data;
5560
- }
5561
-
5562
- function _templateObject8$2() {
5563
- var data = taggedTemplateLiteral(["\n color:", ";\n display:block;\n"]);
5564
-
5565
- _templateObject8$2 = function _templateObject8() {
5566
- return data;
5567
- };
5568
-
5569
- return data;
5570
- }
5571
-
5572
5532
  function _templateObject7$2() {
5573
- 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"]);
5574
5534
 
5575
5535
  _templateObject7$2 = function _templateObject7() {
5576
5536
  return data;
@@ -5589,30 +5549,30 @@ function _templateObject6$2() {
5589
5549
  return data;
5590
5550
  }
5591
5551
 
5592
- function _templateObject5$2() {
5552
+ function _templateObject5$3() {
5593
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"]);
5594
5554
 
5595
- _templateObject5$2 = function _templateObject5() {
5555
+ _templateObject5$3 = function _templateObject5() {
5596
5556
  return data;
5597
5557
  };
5598
5558
 
5599
5559
  return data;
5600
5560
  }
5601
5561
 
5602
- function _templateObject4$4() {
5562
+ function _templateObject4$3() {
5603
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"]);
5604
5564
 
5605
- _templateObject4$4 = function _templateObject4() {
5565
+ _templateObject4$3 = function _templateObject4() {
5606
5566
  return data;
5607
5567
  };
5608
5568
 
5609
5569
  return data;
5610
5570
  }
5611
5571
 
5612
- function _templateObject3$4() {
5572
+ function _templateObject3$3() {
5613
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 "]);
5614
5574
 
5615
- _templateObject3$4 = function _templateObject3() {
5575
+ _templateObject3$3 = function _templateObject3() {
5616
5576
  return data;
5617
5577
  };
5618
5578
 
@@ -5644,19 +5604,17 @@ var HiddenCheckbox = styled.input.attrs({
5644
5604
  var HiddenRadioBox = styled.input.attrs({
5645
5605
  type: 'radio'
5646
5606
  })(_templateObject2$4());
5647
- var CheckboxContainer = styled.label(_templateObject3$4());
5648
- 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) {
5649
5609
  return props.radio ? '17px' : '16px';
5650
5610
  }, function (props) {
5651
5611
  return props.radio ? '17px' : '16px';
5652
5612
  }, function (props) {
5653
5613
  return props.radio ? '17px' : '2px';
5654
5614
  }, HiddenCheckbox, HiddenRadioBox, theme.colors.secondary, theme.colors.action, HiddenCheckbox, HiddenRadioBox, theme.colors.neutrals.silver, HiddenCheckbox, HiddenRadioBox);
5655
- var Title$1 = styled.h5(_templateObject5$2(), theme.colors.error.text);
5615
+ var Title$1 = styled.h5(_templateObject5$3(), theme.colors.error.text);
5656
5616
  var Label$1 = styled.span(_templateObject6$2());
5657
- var Span$2 = styled.span(_templateObject7$2(), theme.font.extraSmall.size);
5658
- var SpanError$3 = styled(Span$2)(_templateObject8$2(), theme.colors.error.text);
5659
- var NoOptions = styled(Text)(_templateObject9$2(), theme.colors.neutrals.silver);
5617
+ var NoOptions = styled(Text)(_templateObject7$2(), theme.colors.neutrals.silver);
5660
5618
  var CheckboxBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
5661
5619
  var name = _ref.name,
5662
5620
  _ref$checked = _ref.checked,
@@ -5690,7 +5648,7 @@ var CheckboxBase = /*#__PURE__*/forwardRef(function (_ref, ref) {
5690
5648
  className: preventClass ? preventClass : ''
5691
5649
  })), /*#__PURE__*/React.createElement(Label$1, {
5692
5650
  className: preventClass ? preventClass : ''
5693
- }, label)), error && /*#__PURE__*/React.createElement(SpanError$3, null, /*#__PURE__*/React.createElement("img", {
5651
+ }, label)), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5694
5652
  src: Ex,
5695
5653
  style: {
5696
5654
  marginRight: '6px'
@@ -5732,7 +5690,7 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref2, ref) {
5732
5690
  ref: ref,
5733
5691
  checked: checked
5734
5692
  })));
5735
- }), !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", {
5736
5694
  src: Ex,
5737
5695
  style: {
5738
5696
  marginRight: '6px'
@@ -5761,7 +5719,7 @@ var RadioBoxBase = /*#__PURE__*/forwardRef(function (_ref3, ref) {
5761
5719
  radio: true
5762
5720
  }, /*#__PURE__*/React.createElement(Icons.Check, {
5763
5721
  size: "17px"
5764
- })), /*#__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", {
5765
5723
  src: Ex,
5766
5724
  style: {
5767
5725
  marginRight: '6px'
@@ -5811,7 +5769,7 @@ var RadioBox = /*#__PURE__*/forwardRef(function (_ref4, ref) {
5811
5769
  }, props, {
5812
5770
  ref: ref
5813
5771
  })));
5814
- }), !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", {
5815
5773
  src: Ex,
5816
5774
  style: {
5817
5775
  marginRight: '6px'
@@ -5930,7 +5888,7 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
5930
5888
  }, props, {
5931
5889
  validation: validationType,
5932
5890
  ref: ref
5933
- })), help && /*#__PURE__*/React.createElement(Span, null, help), error && /*#__PURE__*/React.createElement(SpanError$1, null, /*#__PURE__*/React.createElement("img", {
5891
+ })), help && /*#__PURE__*/React.createElement(SpanHelp, null, help), error && /*#__PURE__*/React.createElement(SpanError, null, /*#__PURE__*/React.createElement("img", {
5934
5892
  src: Ex,
5935
5893
  style: {
5936
5894
  marginRight: '6px'
@@ -5942,50 +5900,20 @@ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if
5942
5900
 
5943
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; }
5944
5902
 
5945
- function _templateObject7$3() {
5903
+ function _templateObject4$4() {
5946
5904
  var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
5947
5905
 
5948
- _templateObject7$3 = function _templateObject7() {
5949
- return data;
5950
- };
5951
-
5952
- return data;
5953
- }
5954
-
5955
- function _templateObject6$3() {
5956
- 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"]);
5957
-
5958
- _templateObject6$3 = function _templateObject6() {
5959
- return data;
5960
- };
5961
-
5962
- return data;
5963
- }
5964
-
5965
- function _templateObject5$3() {
5966
- 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"]);
5967
-
5968
- _templateObject5$3 = function _templateObject5() {
5969
- return data;
5970
- };
5971
-
5972
- return data;
5973
- }
5974
-
5975
- function _templateObject4$5() {
5976
- 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"]);
5977
-
5978
- _templateObject4$5 = function _templateObject4() {
5906
+ _templateObject4$4 = function _templateObject4() {
5979
5907
  return data;
5980
5908
  };
5981
5909
 
5982
5910
  return data;
5983
5911
  }
5984
5912
 
5985
- function _templateObject3$5() {
5986
- 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"]);
5987
5915
 
5988
- _templateObject3$5 = function _templateObject3() {
5916
+ _templateObject3$4 = function _templateObject3() {
5989
5917
  return data;
5990
5918
  };
5991
5919
 
@@ -5993,7 +5921,7 @@ function _templateObject3$5() {
5993
5921
  }
5994
5922
 
5995
5923
  function _templateObject2$5() {
5996
- 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"]);
5997
5925
 
5998
5926
  _templateObject2$5 = function _templateObject2() {
5999
5927
  return data;
@@ -6003,7 +5931,7 @@ function _templateObject2$5() {
6003
5931
  }
6004
5932
 
6005
5933
  function _templateObject$a() {
6006
- var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n"]);
5934
+ var data = taggedTemplateLiteral(["\n display:inline-block;\n vertical-align: top;\n ", "\n"]);
6007
5935
 
6008
5936
  _templateObject$a = function _templateObject() {
6009
5937
  return data;
@@ -6011,35 +5939,33 @@ function _templateObject$a() {
6011
5939
 
6012
5940
  return data;
6013
5941
  }
6014
- var Frag$3 = styled.div(_templateObject$a());
6015
- var Span$3 = styled.span(_templateObject2$5(), theme.font.extraSmall.size);
6016
- var SpanError$4 = styled(Span$3)(_templateObject3$5(), theme.colors.error.text);
6017
- 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);
6018
5950
  var maxOptions$1 = 5;
6019
- var optionsSize$1 = 32;
6020
- var Options$2 = styled.ul(_templateObject5$3(), theme.colors.neutrals.silver, theme.colors.neutrals.silver, theme.defaultRadius, function (props) {
6021
- return props.openTo === 'top' && "\n top:unset;\n bottom:100%;\n ";
6022
- }, function (props) {
6023
- return props.visibleOptionsQty ? props.visibleOptionsQty * optionsSize$1 : maxOptions$1 * optionsSize$1;
6024
- }, theme.font.small.size, theme.colors.info.bg);
6025
- var TagsValues = styled.ul(_templateObject6$3(), theme.defaultRadius);
6026
- var SelectHidden$1 = styled.select(_templateObject7$3());
6027
- var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6028
- var _ref$name = _ref.name,
6029
- name = _ref$name === void 0 ? '' : _ref$name,
6030
- options = _ref.options,
6031
- error = _ref.error,
6032
- valid = _ref.valid,
6033
- help = _ref.help,
6034
- label = _ref.label,
6035
- tooltip = _ref.tooltip,
6036
- canCreate = _ref.canCreate,
6037
- size = _ref.size,
6038
- onChange = _ref.onChange,
6039
- placeholder = _ref.placeholder,
6040
- visibleOptionsQty = _ref.visibleOptionsQty,
6041
- openTo = _ref.openTo,
6042
- 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"]);
6043
5969
 
6044
5970
  if (!options || !options[0]) options = [];
6045
5971
  var randId = Math.random() * new Date().getTime();
@@ -6073,6 +5999,12 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6073
5999
  var containerRef = useRef();
6074
6000
  var searchRef = useRef();
6075
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];
6076
6008
 
6077
6009
  var isSelected = function isSelected(value) {
6078
6010
  return selectedOpt.some(function (key) {
@@ -6135,8 +6067,10 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6135
6067
  };
6136
6068
 
6137
6069
  var handleClick = function handleClick(e) {
6070
+ var _optionsRef$current;
6071
+
6138
6072
  var elm = e.target;
6139
- 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;
6140
6074
  setOpen(false);
6141
6075
  };
6142
6076
 
@@ -6271,13 +6205,15 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6271
6205
  }
6272
6206
  });
6273
6207
  return /*#__PURE__*/React.createElement(Frag$3, {
6274
- ref: containerRef
6208
+ ref: containerRef,
6209
+ size: size
6275
6210
  }, label && /*#__PURE__*/React.createElement(Label, {
6276
6211
  htmlFor: name
6277
6212
  }, label, " ", tooltip && /*#__PURE__*/React.createElement(App, {
6278
6213
  text: tooltip
6279
6214
  }), " ", props.Required && /*#__PURE__*/React.createElement(RequiredText, null)), /*#__PURE__*/React.createElement(Select, {
6280
6215
  as: "div",
6216
+ ref: setAnchor,
6281
6217
  size: size,
6282
6218
  className: [open && 'open', error && 'error', valid && 'valid', 'tagEventPrevent'],
6283
6219
  onClick: function onClick() {
@@ -6309,6 +6245,8 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6309
6245
  onFocus: handleFocus,
6310
6246
  onBlur: handleBlur
6311
6247
  }))), open && /*#__PURE__*/React.createElement(TagOptions, {
6248
+ anchor: anchor,
6249
+ listRef: optionsRef,
6312
6250
  name: safeName,
6313
6251
  filter: filter,
6314
6252
  handleSelect: handleSelect,
@@ -6318,7 +6256,7 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6318
6256
  canCreate: canCreate,
6319
6257
  visibleOptionsQty: visibleOptionsQty,
6320
6258
  openTo: openTo
6321
- })), 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", {
6322
6260
  src: Ex,
6323
6261
  style: {
6324
6262
  marginRight: '6px'
@@ -6336,16 +6274,18 @@ var Tag = /*#__PURE__*/forwardRef(function (_ref, ref) {
6336
6274
  })));
6337
6275
  });
6338
6276
 
6339
- var TagOptions = function TagOptions(_ref2) {
6340
- var name = _ref2.name,
6341
- filter = _ref2.filter,
6342
- handleSelect = _ref2.handleSelect,
6343
- options = _ref2.options,
6344
- searchRef = _ref2.searchRef,
6345
- addNewOption = _ref2.addNewOption,
6346
- canCreate = _ref2.canCreate,
6347
- visibleOptionsQty = _ref2.visibleOptionsQty,
6348
- 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;
6349
6289
  var CreateOption;
6350
6290
  var underscored;
6351
6291
 
@@ -6362,9 +6302,11 @@ var TagOptions = function TagOptions(_ref2) {
6362
6302
  });
6363
6303
  },
6364
6304
  value: searchRef.current.value
6305
+ }, /*#__PURE__*/React.createElement(Value$1, {
6306
+ option: true
6365
6307
  }, "Create option \"", /*#__PURE__*/React.createElement("u", {
6366
6308
  className: "tagEventPrevent"
6367
- }, searchRef.current.value), "\"");
6309
+ }, searchRef.current.value), "\""));
6368
6310
  var searchToUnderscore = searchRef.current ? searchRef.current.value.replaceAll('(', '\\(').replaceAll(')', '\\)') : '';
6369
6311
  underscored = new RegExp('(' + searchToUnderscore + ')', 'giu');
6370
6312
  }
@@ -6379,32 +6321,39 @@ var TagOptions = function TagOptions(_ref2) {
6379
6321
  var msg = searchRef.current && searchRef.current.value.length < 1 ? 'No options left' : 'No match for ';
6380
6322
  noDataOption = /*#__PURE__*/React.createElement("li", {
6381
6323
  className: "tagEventPrevent",
6382
- dangerouslySetInnerHTML: {
6383
- __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'
6384
6326
  }
6385
- });
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)));
6386
6328
  }
6387
6329
 
6388
- return /*#__PURE__*/React.createElement(Options$2, {
6330
+ return /*#__PURE__*/React.createElement(FloatingOptions, {
6331
+ ref: listRef,
6332
+ anchor: anchor,
6389
6333
  id: "".concat(name, "-options"),
6390
- visibleOptionsQty: visibleOptionsQty,
6334
+ visibleOptionsQty: visibleOptionsQty || maxOptions$1,
6391
6335
  openTo: openTo
6392
6336
  }, options.length > 0 ? filter.map(function (key, index) {
6393
- if (options[key].value === undefined) return !noDataOption ? /*#__PURE__*/React.createElement("li", {
6337
+ if (options[key].value === undefined) return !noDataOption ? /*#__PURE__*/React.createElement(OptionGroup$1, {
6394
6338
  key: key,
6395
6339
  className: "tagEventPrevent"
6396
- }, /*#__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", {
6397
6341
  className: "tagEventPrevent ".concat(index === 0 ? 'active' : ''),
6398
6342
  value: options[key].value,
6399
6343
  key: key,
6400
6344
  onClick: function onClick() {
6401
6345
  handleSelect(key);
6402
6346
  }
6403
- }, underscored ? /*#__PURE__*/React.createElement("span", {
6404
- dangerouslySetInnerHTML: {
6405
- __html: options[key].name.replace(underscored, '<u>$1</u>')
6347
+ }, /*#__PURE__*/React.createElement(Value$1, {
6348
+ option: true,
6349
+ style: {
6350
+ marginRight: 4
6406
6351
  }
6407
- }) : 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));
6408
6357
  }) : null, CreateOption, noDataOption);
6409
6358
  };
6410
6359
 
@@ -6441,9 +6390,19 @@ var calculateContrast = function calculateContrast() {
6441
6390
  return ratio < 1 / 4.5;
6442
6391
  };
6443
6392
 
6444
- function _templateObject5$4() {
6393
+ function _templateObject6$3() {
6445
6394
  var data = taggedTemplateLiteral(["\n position: absolute;\n height: 1px;\n width: 1px;\n z-index: -1;\n opacity: 0;\n"]);
6446
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
+
6447
6406
  _templateObject5$4 = function _templateObject5() {
6448
6407
  return data;
6449
6408
  };
@@ -6451,20 +6410,20 @@ function _templateObject5$4() {
6451
6410
  return data;
6452
6411
  }
6453
6412
 
6454
- function _templateObject4$6() {
6455
- 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"]);
6456
6415
 
6457
- _templateObject4$6 = function _templateObject4() {
6416
+ _templateObject4$5 = function _templateObject4() {
6458
6417
  return data;
6459
6418
  };
6460
6419
 
6461
6420
  return data;
6462
6421
  }
6463
6422
 
6464
- function _templateObject3$6() {
6465
- 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"]);
6466
6425
 
6467
- _templateObject3$6 = function _templateObject3() {
6426
+ _templateObject3$5 = function _templateObject3() {
6468
6427
  return data;
6469
6428
  };
6470
6429
 
@@ -6492,19 +6451,21 @@ function _templateObject$b() {
6492
6451
  }
6493
6452
  var Frag$4 = styled.div(_templateObject$b());
6494
6453
  var Field = styled.div(_templateObject2$6());
6495
- var WraperBucket = styled.div(_templateObject3$6(), function (props) {
6496
- return props.background ? props.background : theme.colors.info.shadow;
6497
- }, theme.colors.action, theme.colors.secondary);
6498
- var ColorBox = styled.ul(_templateObject4$6(), theme.defaultRadius, theme.colors.neutrals.gray, theme.colors.secondary, theme.defaultRadius, theme.colors.neutrals.gray, theme.defaultRadius);
6499
- var SelectHidden$2 = styled.select(_templateObject5$4());
6500
- var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6501
- var name = _ref.name,
6502
- tooltip = _ref.tooltip,
6503
- value = _ref.value,
6504
- help = _ref.help,
6505
- error = _ref.error,
6506
- label = _ref.label,
6507
- 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"]);
6508
6469
 
6509
6470
  var _useState = useState(false),
6510
6471
  _useState2 = slicedToArray(_useState, 2),
@@ -6528,14 +6489,17 @@ var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6528
6489
  setSelectedColor = _useState4[1];
6529
6490
 
6530
6491
  useEffect(function () {
6531
- document.addEventListener("mousedown", handleClick);
6492
+ document.addEventListener('mousedown', handleClick);
6532
6493
  return function () {
6533
- document.removeEventListener("mousedown", handleClick);
6494
+ document.removeEventListener('mousedown', handleClick);
6534
6495
  };
6535
6496
  }, []);
6536
6497
 
6537
6498
  var handleClick = function handleClick(e) {
6538
- if (e.target.classList.contains('colorEventPrevent')) return;
6499
+ if (e.target.classList.contains('colorEventPrevent')) {
6500
+ return;
6501
+ }
6502
+
6539
6503
  setOpen(false);
6540
6504
  };
6541
6505
 
@@ -6555,13 +6519,14 @@ var InputColor = /*#__PURE__*/forwardRef(function (_ref, ref) {
6555
6519
  onClick: function onClick() {
6556
6520
  return setOpen(!open);
6557
6521
  },
6558
- className: ['colorEventPrevent', open && 'hover'],
6522
+ className: ['colorEventPrevent', open && 'hover']
6523
+ }, /*#__PURE__*/React.createElement(ColorIndicator, {
6559
6524
  background: selectedColor[0] && selectedColor[0]
6560
6525
  }, /*#__PURE__*/React.createElement(Icons.Bucket, {
6561
6526
  size: "28px",
6562
6527
  className: "colorEventPrevent",
6563
6528
  color: selectedColor[1] ? selectedColor[1] : '#333'
6564
- })), open && /*#__PURE__*/React.createElement(ColorBox, {
6529
+ }))), open && /*#__PURE__*/React.createElement(ColorBox, {
6565
6530
  className: "colorEventPrevent"
6566
6531
  }, colors.map(function (item, key) {
6567
6532
  return /*#__PURE__*/React.createElement("li", {
@@ -7424,10 +7389,10 @@ var Exported = function Exported(_ref) {
7424
7389
  }, props));
7425
7390
  };
7426
7391
 
7427
- function _templateObject7$4() {
7392
+ function _templateObject7$3() {
7428
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"]);
7429
7394
 
7430
- _templateObject7$4 = function _templateObject7() {
7395
+ _templateObject7$3 = function _templateObject7() {
7431
7396
  return data;
7432
7397
  };
7433
7398
 
@@ -7454,20 +7419,20 @@ function _templateObject5$5() {
7454
7419
  return data;
7455
7420
  }
7456
7421
 
7457
- function _templateObject4$7() {
7422
+ function _templateObject4$6() {
7458
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"]);
7459
7424
 
7460
- _templateObject4$7 = function _templateObject4() {
7425
+ _templateObject4$6 = function _templateObject4() {
7461
7426
  return data;
7462
7427
  };
7463
7428
 
7464
7429
  return data;
7465
7430
  }
7466
7431
 
7467
- function _templateObject3$7() {
7432
+ function _templateObject3$6() {
7468
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"]);
7469
7434
 
7470
- _templateObject3$7 = function _templateObject3() {
7435
+ _templateObject3$6 = function _templateObject3() {
7471
7436
  return data;
7472
7437
  };
7473
7438
 
@@ -7495,8 +7460,8 @@ function _templateObject$d() {
7495
7460
  }
7496
7461
  var Frag$5 = styled.div(_templateObject$d());
7497
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);
7498
- var Input$1 = styled(InputBase)(_templateObject3$7());
7499
- 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);
7500
7465
  var HiddenInput = styled.input(_templateObject5$5());
7501
7466
  var Uploader = /*#__PURE__*/forwardRef(function (_ref, ref) {
7502
7467
  var name = _ref.name,
@@ -7638,7 +7603,7 @@ var processFileList = /*#__PURE__*/function () {
7638
7603
  }();
7639
7604
 
7640
7605
  var DropUploaderList = styled.div(_templateObject6$4());
7641
- 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) {
7642
7607
  return typeof props.preview === 'string' && props.preview;
7643
7608
  }, theme.colors.info.bg, theme.colors.secondary, theme.colors.secondary);
7644
7609
  var DropUploader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
@@ -7875,20 +7840,20 @@ function _templateObject5$6() {
7875
7840
  return data;
7876
7841
  }
7877
7842
 
7878
- function _templateObject4$8() {
7843
+ function _templateObject4$7() {
7879
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"]);
7880
7845
 
7881
- _templateObject4$8 = function _templateObject4() {
7846
+ _templateObject4$7 = function _templateObject4() {
7882
7847
  return data;
7883
7848
  };
7884
7849
 
7885
7850
  return data;
7886
7851
  }
7887
7852
 
7888
- function _templateObject3$8() {
7853
+ function _templateObject3$7() {
7889
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"]);
7890
7855
 
7891
- _templateObject3$8 = function _templateObject3() {
7856
+ _templateObject3$7 = function _templateObject3() {
7892
7857
  return data;
7893
7858
  };
7894
7859
 
@@ -7896,7 +7861,7 @@ function _templateObject3$8() {
7896
7861
  }
7897
7862
 
7898
7863
  function _templateObject2$9() {
7899
- 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"]);
7900
7865
 
7901
7866
  _templateObject2$9 = function _templateObject2() {
7902
7867
  return data;
@@ -7915,9 +7880,11 @@ function _templateObject$e() {
7915
7880
  return data;
7916
7881
  }
7917
7882
  var Frag$6 = styled.div(_templateObject$e());
7918
- var CheckBoxWrapper = styled.div(_templateObject2$9());
7919
- var CheckBoxLabel = styled.label(_templateObject3$8(), theme.colors.neutrals.white, theme.colors.info.border, theme.colors.action, theme.colors.secondary, theme.colors.info.border);
7920
- var CheckBox$1 = styled.input(_templateObject4$8(), CheckBoxLabel, theme.colors.info.text, theme.colors.info.border, theme.colors.neutrals.white);
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);
7921
7888
  var ToggleLabel = styled.label(_templateObject5$6(), theme.colors.neutrals.medium, theme.font.medium.size, theme.font.medium.lineHeight);
7922
7889
  var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
7923
7890
  var name = _ref.name,
@@ -7961,7 +7928,9 @@ var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
7961
7928
  htmlFor: id
7962
7929
  }, label, " ", tooltip && /*#__PURE__*/React.createElement(App, {
7963
7930
  text: tooltip
7964
- })), /*#__PURE__*/React.createElement(CheckBoxWrapper, null, /*#__PURE__*/React.createElement(CheckBox$1, {
7931
+ })), /*#__PURE__*/React.createElement(CheckBoxWrapper, {
7932
+ hasLabel: !!label
7933
+ }, /*#__PURE__*/React.createElement(CheckBox$1, {
7965
7934
  name: name,
7966
7935
  id: id,
7967
7936
  type: "checkbox",
@@ -8535,20 +8504,20 @@ var ButtonGroup = function ButtonGroup(_ref) {
8535
8504
  }));
8536
8505
  };
8537
8506
 
8538
- function _templateObject4$9() {
8507
+ function _templateObject4$8() {
8539
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"]);
8540
8509
 
8541
- _templateObject4$9 = function _templateObject4() {
8510
+ _templateObject4$8 = function _templateObject4() {
8542
8511
  return data;
8543
8512
  };
8544
8513
 
8545
8514
  return data;
8546
8515
  }
8547
8516
 
8548
- function _templateObject3$9() {
8517
+ function _templateObject3$8() {
8549
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"]);
8550
8519
 
8551
- _templateObject3$9 = function _templateObject3() {
8520
+ _templateObject3$8 = function _templateObject3() {
8552
8521
  return data;
8553
8522
  };
8554
8523
 
@@ -8612,8 +8581,8 @@ var ListContent = styled.div(_templateObject2$b(), function (props) {
8612
8581
  }, function (props) {
8613
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 ");
8614
8583
  });
8615
- var PreviewContent = styled.div(_templateObject3$9());
8616
- 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);
8617
8586
 
8618
8587
  var ButtonIcon = function ButtonIcon(_ref) {
8619
8588
  var children = _ref.children,
@@ -8801,20 +8770,20 @@ function _templateObject5$7() {
8801
8770
  return data;
8802
8771
  }
8803
8772
 
8804
- function _templateObject4$a() {
8773
+ function _templateObject4$9() {
8805
8774
  var data = taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", ";\n"]);
8806
8775
 
8807
- _templateObject4$a = function _templateObject4() {
8776
+ _templateObject4$9 = function _templateObject4() {
8808
8777
  return data;
8809
8778
  };
8810
8779
 
8811
8780
  return data;
8812
8781
  }
8813
8782
 
8814
- function _templateObject3$a() {
8783
+ function _templateObject3$9() {
8815
8784
  var data = taggedTemplateLiteral(["\n font-size: ", ";\n line-height: ", ";\n"]);
8816
8785
 
8817
- _templateObject3$a = function _templateObject3() {
8786
+ _templateObject3$9 = function _templateObject3() {
8818
8787
  return data;
8819
8788
  };
8820
8789
 
@@ -8844,8 +8813,8 @@ var Div = styled.div(_templateObject$j(), theme.defaultRadius, function (props)
8844
8813
  return props.useClose && "\n padding-right: 32px;\n ";
8845
8814
  });
8846
8815
  var Title$2 = styled.h5(_templateObject2$c(), theme.font.main, theme.font.medium.size, theme.font.big.lineHeight);
8847
- var Content = styled.p(_templateObject3$a(), theme.font.extraSmall.size, theme.font.small.lineHeight);
8848
- 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);
8849
8818
  var Close = styled.button.attrs(function (props) {
8850
8819
  return {
8851
8820
  type: 'button'
@@ -8935,5 +8904,5 @@ var index = {
8935
8904
  Error: AlertError
8936
8905
  };
8937
8906
 
8938
- 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, 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 };
8939
8908
  //# sourceMappingURL=index.es.js.map