@startlibs/form 1.1.2 → 1.2.0-rc.1

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.
Files changed (112) hide show
  1. package/lib/AutoComplete.mjs +19 -10
  2. package/lib/AutoComplete.mjs.map +1 -1
  3. package/lib/Checkbox.mjs +4 -2
  4. package/lib/Checkbox.mjs.map +1 -1
  5. package/lib/Combobox.mjs +1 -1
  6. package/lib/Combobox.mjs.map +1 -1
  7. package/lib/DatePicker.mjs +25 -9
  8. package/lib/DatePicker.mjs.map +1 -1
  9. package/lib/Errors.mjs +20 -10
  10. package/lib/Errors.mjs.map +1 -1
  11. package/lib/ExpandableBox.mjs +1 -1
  12. package/lib/ExpandableBox.mjs.map +1 -1
  13. package/lib/Field.mjs +10 -5
  14. package/lib/Field.mjs.map +1 -1
  15. package/lib/FieldBox.mjs +3 -3
  16. package/lib/FieldBox.mjs.map +1 -1
  17. package/lib/InputboxGroup.mjs +1 -1
  18. package/lib/InputboxGroup.mjs.map +1 -1
  19. package/lib/RichText.mjs +11 -6
  20. package/lib/RichText.mjs.map +1 -1
  21. package/lib/TextInput.mjs +4 -4
  22. package/lib/TextInput.mjs.map +1 -1
  23. package/lib/alt/checkbox/SimpleCheckbox.mjs +1 -1
  24. package/lib/alt/checkbox/SimpleCheckbox.mjs.map +1 -1
  25. package/lib/alt/checkbox/ToggleCheckbox.mjs +4 -3
  26. package/lib/alt/checkbox/ToggleCheckbox.mjs.map +1 -1
  27. package/lib/alt/radiobox/CleanTabRadiobox.mjs +1 -1
  28. package/lib/alt/radiobox/CleanTabRadiobox.mjs.map +1 -1
  29. package/lib/alt/radiobox/SimpleRadiobox.mjs +2 -2
  30. package/lib/alt/radiobox/SimpleRadiobox.mjs.map +1 -1
  31. package/lib/alt/radiobox/TabRadiobox.mjs +1 -1
  32. package/lib/alt/radiobox/TabRadiobox.mjs.map +1 -1
  33. package/lib/index.cjs +106 -54
  34. package/lib/index.cjs.map +1 -1
  35. package/lib/index.mjs +2 -2
  36. package/lib/withFormImageInput.mjs +1 -1
  37. package/lib/withFormImageInput.mjs.map +1 -1
  38. package/lib-yak/AutoComplete.mjs +705 -0
  39. package/lib-yak/AutoComplete.mjs.map +1 -0
  40. package/lib-yak/Checkbox.mjs +80 -0
  41. package/lib-yak/Checkbox.mjs.map +1 -0
  42. package/lib-yak/Combobox.mjs +652 -0
  43. package/lib-yak/Combobox.mjs.map +1 -0
  44. package/lib-yak/ComboboxWithCustom.mjs +77 -0
  45. package/lib-yak/ComboboxWithCustom.mjs.map +1 -0
  46. package/lib-yak/DatePicker.mjs +774 -0
  47. package/lib-yak/DatePicker.mjs.map +1 -0
  48. package/lib-yak/EditableBox.mjs +495 -0
  49. package/lib-yak/EditableBox.mjs.map +1 -0
  50. package/lib-yak/Errors.mjs +226 -0
  51. package/lib-yak/Errors.mjs.map +1 -0
  52. package/lib-yak/ExpandableBox.mjs +247 -0
  53. package/lib-yak/ExpandableBox.mjs.map +1 -0
  54. package/lib-yak/Field.mjs +93 -0
  55. package/lib-yak/Field.mjs.map +1 -0
  56. package/lib-yak/FieldBox.mjs +173 -0
  57. package/lib-yak/FieldBox.mjs.map +1 -0
  58. package/lib-yak/Form.mjs +322 -0
  59. package/lib-yak/Form.mjs.map +1 -0
  60. package/lib-yak/FormValue.mjs +111 -0
  61. package/lib-yak/FormValue.mjs.map +1 -0
  62. package/lib-yak/InputboxGroup.mjs +146 -0
  63. package/lib-yak/InputboxGroup.mjs.map +1 -0
  64. package/lib-yak/Radiobox.mjs +69 -0
  65. package/lib-yak/Radiobox.mjs.map +1 -0
  66. package/lib-yak/RichText.mjs +776 -0
  67. package/lib-yak/RichText.mjs.map +1 -0
  68. package/lib-yak/TextInput.mjs +589 -0
  69. package/lib-yak/TextInput.mjs.map +1 -0
  70. package/lib-yak/alt/checkbox/SimpleCheckbox.mjs +225 -0
  71. package/lib-yak/alt/checkbox/SimpleCheckbox.mjs.map +1 -0
  72. package/lib-yak/alt/checkbox/ToggleCheckbox.mjs +173 -0
  73. package/lib-yak/alt/checkbox/ToggleCheckbox.mjs.map +1 -0
  74. package/lib-yak/alt/radiobox/CleanTabRadiobox.mjs +87 -0
  75. package/lib-yak/alt/radiobox/CleanTabRadiobox.mjs.map +1 -0
  76. package/lib-yak/alt/radiobox/IconRadioBox.mjs +138 -0
  77. package/lib-yak/alt/radiobox/IconRadioBox.mjs.map +1 -0
  78. package/lib-yak/alt/radiobox/SimpleRadiobox.mjs +203 -0
  79. package/lib-yak/alt/radiobox/SimpleRadiobox.mjs.map +1 -0
  80. package/lib-yak/alt/radiobox/TabRadiobox.mjs +117 -0
  81. package/lib-yak/alt/radiobox/TabRadiobox.mjs.map +1 -0
  82. package/lib-yak/enhanceInput.mjs +131 -0
  83. package/lib-yak/enhanceInput.mjs.map +1 -0
  84. package/lib-yak/index.mjs +28 -0
  85. package/lib-yak/index.mjs.map +1 -0
  86. package/lib-yak/useConfirmDialog.mjs +117 -0
  87. package/lib-yak/useConfirmDialog.mjs.map +1 -0
  88. package/lib-yak/useDraftConfirmation.mjs +56 -0
  89. package/lib-yak/useDraftConfirmation.mjs.map +1 -0
  90. package/lib-yak/validation.mjs +91 -0
  91. package/lib-yak/validation.mjs.map +1 -0
  92. package/lib-yak/withFormImageInput.mjs +298 -0
  93. package/lib-yak/withFormImageInput.mjs.map +1 -0
  94. package/package.json +13 -3
  95. package/src/AutoComplete.jsx +25 -15
  96. package/src/Checkbox.jsx +2 -2
  97. package/src/Combobox.jsx +1 -1
  98. package/src/DatePicker.jsx +25 -22
  99. package/src/Errors.jsx +18 -8
  100. package/src/ExpandableBox.jsx +3 -3
  101. package/src/Field.jsx +9 -4
  102. package/src/FieldBox.jsx +6 -6
  103. package/src/IconRadioBoxOldHubt.jsx +1 -1
  104. package/src/InputboxGroup.jsx +1 -1
  105. package/src/RichText.jsx +17 -13
  106. package/src/TextInput.jsx +37 -26
  107. package/src/alt/checkbox/SimpleCheckbox.jsx +5 -5
  108. package/src/alt/checkbox/ToggleCheckbox.jsx +9 -8
  109. package/src/alt/radiobox/CleanTabRadiobox.jsx +2 -2
  110. package/src/alt/radiobox/SimpleRadiobox.jsx +7 -7
  111. package/src/alt/radiobox/TabRadiobox.jsx +4 -4
  112. package/src/withFormImageInput.jsx +2 -2
package/lib/index.cjs CHANGED
@@ -235,33 +235,43 @@ const Errors = _ref9 => {
235
235
  }, [uniqErrors]);
236
236
  return /*#__PURE__*/React__default["default"].createElement(components.TransitionDiv, {
237
237
  block: true
238
- }, uniqErrors.length > 0 && /*#__PURE__*/React__default["default"].createElement(Errors.Container, {
238
+ }, uniqErrors.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorsContainer, {
239
239
  ref: ref,
240
240
  className: className
241
241
  }, uniqErrors.map(_ref1 => {
242
242
  let [value] = _ref1;
243
- return value && value !== true && /*#__PURE__*/React__default["default"].createElement(Errors.Item, {
243
+ return value && value !== true && /*#__PURE__*/React__default["default"].createElement(ErrorsItem, {
244
244
  key: value
245
- }, value, /*#__PURE__*/React__default["default"].createElement(Errors.CloseIcon, {
245
+ }, value, /*#__PURE__*/React__default["default"].createElement(ErrorsCloseIcon, {
246
246
  onClick: willRemoveError(value, path)
247
247
  }));
248
248
  })));
249
249
  };
250
250
  Errors.displayName = 'Errors';
251
- Errors.Container = styled__default["default"].ul.withConfig({
252
- displayName: "Errors__Container",
251
+
252
+ // Nomes próprios (não `Errors.Container = ...`) porque o yak resolve `${Errors.Item}` num outro
253
+ // arquivo tentando avaliar o módulo inteiro de `Errors` (um componente React de verdade, com
254
+ // hooks) em tempo de build — e falha ("rename Errors.mjs so its exports run at build time (or
255
+ // replace Errors.Item with a literal value)"). Um export próprio resolve direto, sem depender do
256
+ // componente. `Errors.Container`/`Errors.Item`/`Errors.CloseIcon` continuam existindo (uso
257
+ // interno e compatibilidade de quem já importa `Errors` e lê essas propriedades).
258
+ const ErrorsContainer = /*#__PURE__*/styled__default["default"].ul.withConfig({
259
+ displayName: "Errors__ErrorsContainer",
253
260
  componentId: "sc-1vuw7bx-0"
254
261
  })(["list-style-type:none;margin:0;padding:0;"]);
255
- Errors.Item = styled__default["default"].li.withConfig({
256
- displayName: "Errors__Item",
262
+ const ErrorsItem = /*#__PURE__*/styled__default["default"].li.withConfig({
263
+ displayName: "Errors__ErrorsItem",
257
264
  componentId: "sc-1vuw7bx-1"
258
265
  })(["background-color:", ";padding:1rem 3.5rem 1rem 1rem;border-radius:8px;border:1px solid ", ";color:", ";position:relative;text-align:left;font-size:13px;line-height:130%;& ~ &{margin-top:0.5rem;}", ""], props => polished.lighten(0.42, props.theme.colors.alert), props => polished.lighten(0.35, props.theme.colors.alert), utils.getColor('alert'), utils.customTheme('ErrorItem'));
259
- Errors.CloseIcon = styled__default["default"](components.Icon).attrs({
266
+ const ErrorsCloseIcon = /*#__PURE__*/styled__default["default"](components.Icon).attrs({
260
267
  icon: 'x'
261
268
  }).withConfig({
262
- displayName: "Errors__CloseIcon",
269
+ displayName: "Errors__ErrorsCloseIcon",
263
270
  componentId: "sc-1vuw7bx-2"
264
271
  })(["color:", ";font-weight:600;display:inline-block;background-color:", ";width:21px;height:21px;line-height:21px;text-align:center;border-radius:50%;cursor:pointer;position:absolute;top:10px;right:10px;font-size:14px;z-index:2;&:hover{background-color:", ";}"], utils.getColor('alert'), props => polished.lighten(0.35, props.theme.colors.alert), props => polished.lighten(0.32, props.theme.colors.alert));
272
+ Errors.Container = ErrorsContainer;
273
+ Errors.Item = ErrorsItem;
274
+ Errors.CloseIcon = ErrorsCloseIcon;
265
275
 
266
276
  const useDraftConfirmation = (submit, discard, meta) => {
267
277
  const loading = core.useToggle();
@@ -747,8 +757,13 @@ const Container = /*#__PURE__*/styled__default["default"].div.withConfig({
747
757
  displayName: "Field__Container",
748
758
  componentId: "sc-p9woft-1"
749
759
  })(["position:relative;margin-bottom:", ";text-align:left;"], props => utils.getMargin(props.theme.Field.margins)(props));
750
- const Label = /*#__PURE__*/styled__default["default"].label.withConfig({
751
- displayName: "Field__Label",
760
+ // Nome próprio (não só `Field.Label = ...`): TextInput.jsx usa `${Field.Label}` como seletor
761
+ // (FloatingFieldType) num ARQUIVO DIFERENTE, e o yak tenta resolver isso avaliando o módulo
762
+ // inteiro de `Field` (um componente React de verdade) em tempo de build — falha com um
763
+ // `undefined` na saída (mesmo problema do Errors.Item, ver Errors.jsx). `Field.Label` continua
764
+ // existindo (uso interno e compatibilidade).
765
+ const FieldLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
766
+ displayName: "Field__FieldLabel",
752
767
  componentId: "sc-p9woft-2"
753
768
  })(["font-weight:550;display:inline-block;font-size:", "px;margin-bottom:.75rem;", " ", ""], props => props.labelFontSize ? props.labelFontSize : '15', props => props.isOnImage && 'color: #fff;', utils.customTheme("FieldLabel"));
754
769
  const HelpText = /*#__PURE__*/styled__default["default"].span.withConfig({
@@ -782,14 +797,14 @@ const Field = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
782
797
  ref: ref
783
798
  }, rest, {
784
799
  className: className
785
- }), label && /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({}, rest, {
800
+ }), label && /*#__PURE__*/React__default["default"].createElement(FieldLabel, _extends__default["default"]({}, rest, {
786
801
  onClick: labelClick,
787
802
  labelFontSize: labelFontSize
788
803
  }), label, mandatory && /*#__PURE__*/React__default["default"].createElement(Mandatory, {
789
804
  mandatory: mandatory
790
805
  }, "*"), helpText && /*#__PURE__*/React__default["default"].createElement(HelpText, null, " ", helpText), descText && /*#__PURE__*/React__default["default"].createElement(FieldDescription, null, descText)), children, bellowDescText && /*#__PURE__*/React__default["default"].createElement(BellowFieldDescription, null, bellowDescText));
791
806
  });
792
- Field.Label = Label;
807
+ Field.Label = FieldLabel;
793
808
  Field.Container = Container;
794
809
  Field.HelpText = HelpText;
795
810
  Field.Description = FieldDescription;
@@ -818,13 +833,13 @@ const DeleteButton = /*#__PURE__*/styled__default["default"](components.Icon).at
818
833
  }).withConfig({
819
834
  displayName: "FieldBox__DeleteButton",
820
835
  componentId: "sc-18ntu84-4"
821
- })(["width:24px;height:24px;line-height:24px;border-radius:50%;display:inline-block;font-size:18px;margin-left:0.75rem;text-align:center;cursor:pointer;color:", ";background-color:rgba(0,0,0,0.08);flex-shrink:0;:hover{background:rgba(0,0,0,0.11);}:active{background:rgba(0,0,0,0.13);}"], utils.getColor('gray120'));
836
+ })(["width:24px;height:24px;line-height:24px;border-radius:50%;display:inline-block;font-size:18px;margin-left:0.75rem;text-align:center;cursor:pointer;color:", ";background-color:rgba(0,0,0,0.08);flex-shrink:0;&:hover{background:rgba(0,0,0,0.11);}&:active{background:rgba(0,0,0,0.13);}"], utils.getColor('gray120'));
822
837
  const DropdownButton = /*#__PURE__*/styled__default["default"](components.Icon).attrs({
823
838
  icon: 'arrow-down'
824
839
  }).withConfig({
825
840
  displayName: "FieldBox__DropdownButton",
826
841
  componentId: "sc-18ntu84-5"
827
- })(["width:24px;height:24px;line-height:24px;border-radius:50%;display:inline-block;font-size:14px;margin-left:0.75rem;text-align:center;cursor:pointer;color:", ";background-color:rgba(0,0,0,0.08);flex-shrink:0;position:relative;:hover{background:rgba(0,0,0,0.11);}:active{background:rgba(0,0,0,0.13);}"], utils.getColor('gray120'));
842
+ })(["width:24px;height:24px;line-height:24px;border-radius:50%;display:inline-block;font-size:14px;margin-left:0.75rem;text-align:center;cursor:pointer;color:", ";background-color:rgba(0,0,0,0.08);flex-shrink:0;position:relative;&:hover{background:rgba(0,0,0,0.11);}&:active{background:rgba(0,0,0,0.13);}"], utils.getColor('gray120'));
828
843
  const DescText$3 = /*#__PURE__*/styled__default["default"].div.withConfig({
829
844
  displayName: "FieldBox__DescText",
830
845
  componentId: "sc-18ntu84-6"
@@ -860,7 +875,7 @@ const FieldBox = /*#__PURE__*/styled__default["default"](_ref => {
860
875
  }).withConfig({
861
876
  displayName: "FieldBox",
862
877
  componentId: "sc-18ntu84-7"
863
- })(["display:flex;align-items:center;width:100%;background:", ";border-radius:8px;min-height:42px;padding:1rem 1.25rem;align-items:center;font-size:14px;color:", ";position:relative;transition:border-radius 0.5s ease;", " & ~ &{margin-top:0.75rem;}", " ", ",.rightContainer{margin-left:1rem;}"], utils.getColor('lightBluishGray'), utils.getColor('gray60'), props => props.onClick && styled.css(["cursor:pointer;:hover{background:", ";}:active{background:", ";transition:none;}"], props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))), utils.media.mobile(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral__default["default"](["\n min-height: 54px;\n font-size: 15px !important;\n "]))), components.TextButton);
878
+ })(["display:flex;align-items:center;width:100%;background:", ";border-radius:8px;min-height:42px;padding:1rem 1.25rem;align-items:center;font-size:14px;color:", ";position:relative;transition:border-radius 0.5s ease;", " & ~ &{margin-top:0.75rem;}", " ", ",.rightContainer{margin-left:1rem;}"], utils.getColor('lightBluishGray'), utils.getColor('gray60'), props => props.onClick && styled.css(["cursor:pointer;&:hover{background:", ";}&:active{background:", ";transition:none;}"], props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))), utils.media.mobile(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral__default["default"](["\n min-height: 54px;\n font-size: 15px !important;\n "]))), components.TextButton);
864
879
 
865
880
  const useConfirmDialog = (dialog, args, toggleCallback) => {
866
881
  return components.useDialog(closeDialog => utils.addExtraProp(utils.callIfFunction(dialog, closeDialog), {
@@ -998,11 +1013,11 @@ const InputLoading$1 = /*#__PURE__*/styled__default["default"](components.Loadin
998
1013
  const Input = /*#__PURE__*/styled__default["default"].input.withConfig({
999
1014
  displayName: "TextInput__Input",
1000
1015
  componentId: "sc-yzpeng-5"
1001
- })(["width:100%;font-size:14px;border:1px solid ", ";border-radius:8px;outline:0;outline:none;color:", ";background:white;position:relative;height:3rem;padding:0 0.7rem;overflow:auto;", "::-webkit-input-placeholder{color:rgba(0,0,0,0.3);}::-moz-placeholder{color:rgba(0,0,0,0.3);}:-moz-placeholder{color:rgba(0,0,0,0.3);}:-ms-input-placeholder{color:rgba(0,0,0,0.3);}", "::-ms-clear{display:none;}", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.getColor('gray60'), utils.media.mobile(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral__default["default"](["\n height: 42px;\n padding: 0 1rem;\n @supports (-webkit-touch-callout: none) {\n font-size: 16px;\n }\n "]))), props => !props.hasTextBox && !props.noFocus && styled.css([":focus{border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);}", ""], utils.getColor('gray180'), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert'))), props => props.locked && styled.css(["padding-right:2.25rem;background:rgba(0,0,0,0.075);pointer-events:none;"]), props => props.isTextArea && styled.css(["resize:none;min-height:", "px;padding:.7rem;display:block;", " ", ""], props => props.regularInputHeight ? 36 : props.minHeight || 60, props => props.autoResize ? 'overflow:hidden;' : 'overflow:auto;', utils.media.mobile(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral__default["default"](["\n padding: 1rem;\n ", "\n "])), props => props.regularInputHeight && 'min-height: 42px;')), props => props.rounded && styled.css(["border-radius:100px;padding-left:1.25rem;padding-right:1.25rem;"]), props => props.hasIcon && styled.css(["padding-left:", ";", ""], props.rounded ? '3rem' : '2.5rem', utils.media.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral__default["default"](["\n padding-left: ", ";\n "])), props.rounded ? '3.25rem' : '2.75rem')), utils.customTheme('TextInput'));
1016
+ })(["width:100%;font-size:14px;border:1px solid ", ";border-radius:8px;outline:0;outline:none;color:", ";background:white;position:relative;height:3rem;padding:0 0.7rem;overflow:auto;&::-webkit-input-placeholder{color:rgba(0,0,0,0.3);}&::-moz-placeholder{color:rgba(0,0,0,0.3);}", " &::-ms-clear{display:none;}", " ", " ", " ", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.getColor('gray60'), props => !props.hasTextBox && !props.noFocus && styled.css(["&:focus{border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);}", ""], utils.getColor('gray180'), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert'))), props => props.locked && styled.css(["padding-right:2.25rem;background:rgba(0,0,0,0.075);pointer-events:none;"]), props => props.isTextArea && styled.css(["resize:none;min-height:", "px;padding:.7rem;display:block;", ""], props => props.regularInputHeight ? 36 : props.minHeight || 60, props => props.autoResize ? 'overflow:hidden;' : 'overflow:auto;'), props => props.rounded && styled.css(["border-radius:100px;padding-left:1.25rem;padding-right:1.25rem;"]), props => props.hasIcon && styled.css(["padding-left:", ";"], props.rounded ? '3rem' : '2.5rem'), utils.media.mobile(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral__default["default"](["\n height: 42px;\n padding: 0 1rem;\n @supports (-webkit-touch-callout: none) {\n font-size: 16px;\n }\n "]))), props => props.isTextArea && styled.css(["", ""], utils.media.mobile(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral__default["default"](["\n padding: 1rem;\n ", "\n "])), props => props.regularInputHeight && 'min-height: 42px;')), props => props.hasIcon && styled.css(["", ""], utils.media.mobile(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral__default["default"](["\n padding-left: ", ";\n "])), props.rounded ? '3.25rem' : '2.75rem')), utils.customTheme('TextInput'));
1002
1017
  const InputWithTextBox = /*#__PURE__*/styled__default["default"].div.withConfig({
1003
1018
  displayName: "TextInput__InputWithTextBox",
1004
1019
  componentId: "sc-yzpeng-6"
1005
- })(["display:flex;border-radius:", ";position:relative;:before{position:absolute;border-radius:", ";top:0;bottom:0;right:0;left:0;z-index:2;pointer-events:none;}", " ", " ", " ", ""], props => props.rounded ? '100px' : '8px', props => props.rounded ? '100px' : '8px', props => props.focused && styled.css(["box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);:before{content:'';border:1px solid ", ";}"], utils.getColor('gray180')), props => props.hasErrors && styled.css([":before{content:'';border:1px solid ", ";}"], utils.getColor('alert')), props => props.textBoxBefore && styled.css(["input{border-top-left-radius:0;border-bottom-left-radius:0;}"]), props => props.textBoxAfter && styled.css(["input{border-top-right-radius:0;border-bottom-right-radius:0;}"]));
1020
+ })(["display:flex;border-radius:", ";position:relative;&:before{position:absolute;border-radius:", ";top:0;bottom:0;right:0;left:0;z-index:2;pointer-events:none;}", " ", " ", " ", ""], props => props.rounded ? '100px' : '8px', props => props.rounded ? '100px' : '8px', props => props.focused && styled.css(["box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);&:before{content:'';border:1px solid ", ";}"], utils.getColor('gray180')), props => props.hasErrors && styled.css(["&:before{content:'';border:1px solid ", ";}"], utils.getColor('alert')), props => props.textBoxBefore && styled.css(["input{border-top-left-radius:0;border-bottom-left-radius:0;}"]), props => props.textBoxAfter && styled.css(["input{border-top-right-radius:0;border-bottom-right-radius:0;}"]));
1006
1021
  const TextBox = /*#__PURE__*/styled__default["default"].span.withConfig({
1007
1022
  displayName: "TextInput__TextBox",
1008
1023
  componentId: "sc-yzpeng-7"
@@ -1305,7 +1320,7 @@ TextInput.Input = Input;
1305
1320
  const FloatingFieldType = /*#__PURE__*/styled__default["default"](Field).withConfig({
1306
1321
  displayName: "TextInput__FloatingFieldType",
1307
1322
  componentId: "sc-yzpeng-11"
1308
- })(["input{height:5rem;box-shadow:0 1px 4px rgba(0,0,0,.2);border-radius:8px;font-size:16px;font-weight:400;padding:16px 1rem 0;}", "{position:absolute;top:1.5rem;left:1rem;font-size:20px;font-weight:normal;transition:all .2s ease;color:rgba(0,0,0,.2);pointer-events:none;z-index:1;", "}"], Field.Label, props => (props.value || props.focused) && "\n top: 12px;\n font-size: 14px;\n color: rgba(0,0,0,.4);\n ");
1323
+ })(["input{height:5rem;box-shadow:0 1px 4px rgba(0,0,0,.2);border-radius:8px;font-size:16px;font-weight:400;padding:16px 1rem 0;}", "{position:absolute;top:1.5rem;left:1rem;font-size:20px;font-weight:normal;transition:all .2s ease;color:rgba(0,0,0,.2);pointer-events:none;z-index:1;", "}"], FieldLabel, props => (props.value || props.focused) && "\n top: 12px;\n font-size: 14px;\n color: rgba(0,0,0,.4);\n ");
1309
1324
  const FloatLabelTextInput = props => /*#__PURE__*/React__default["default"].createElement(TextInput, _extends__default["default"]({}, props, {
1310
1325
  FieldType: FloatingFieldType
1311
1326
  }));
@@ -1317,7 +1332,7 @@ const FileInput = /*#__PURE__*/styled__default["default"].input.attrs({
1317
1332
  }).withConfig({
1318
1333
  displayName: "withFormImageInput__FileInput",
1319
1334
  componentId: "sc-o7trbb-0"
1320
- })(["z-index:1;cursor:pointer;opacity:0;position:absolute;top:0;right:0;left:0;bottom:0;width:100%;height:100%;overflow:hidden;::-webkit-file-upload-button{visibility:hidden;}::file-upload-button{visibility:hidden;}"]);
1335
+ })(["z-index:1;cursor:pointer;opacity:0;position:absolute;top:0;right:0;left:0;bottom:0;width:100%;height:100%;overflow:hidden;&::-webkit-file-upload-button{visibility:hidden;}&::file-upload-button{visibility:hidden;}"]);
1321
1336
  const WithImageInput = _ref => {
1322
1337
  let {
1323
1338
  children,
@@ -1574,7 +1589,7 @@ const WithFileInput = _ref3 => {
1574
1589
  });
1575
1590
  };
1576
1591
 
1577
- const _excluded$e = ["className", "children", "isChecked", "isList", "onClick", "disabled", "inverted", "path", "tabIndex", "raw"];
1592
+ const _excluded$e = ["className", "style", "children", "isChecked", "isList", "onClick", "disabled", "inverted", "path", "tabIndex", "raw"];
1578
1593
  function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1579
1594
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1580
1595
  const HiddenInput$1 = /*#__PURE__*/styled__default["default"].input.withConfig({
@@ -1584,6 +1599,7 @@ const HiddenInput$1 = /*#__PURE__*/styled__default["default"].input.withConfig({
1584
1599
  const Checkbox = _ref => {
1585
1600
  let {
1586
1601
  className,
1602
+ style,
1587
1603
  children,
1588
1604
  isChecked = _identity__default["default"],
1589
1605
  isList,
@@ -1621,7 +1637,8 @@ const Checkbox = _ref => {
1621
1637
  return /*#__PURE__*/React__default["default"].createElement("label", {
1622
1638
  onClick: _onClick,
1623
1639
  "data-drag": "false",
1624
- className: className
1640
+ className: className,
1641
+ style: style
1625
1642
  }, !utils.isTouchDevice() && /*#__PURE__*/React__default["default"].createElement(HiddenInput$1, {
1626
1643
  onFocus: focused.open,
1627
1644
  onBlur: focused.close,
@@ -1651,7 +1668,7 @@ const ComboboxMenu = /*#__PURE__*/styled__default["default"](components.ContextL
1651
1668
  const ComboboxInput = /*#__PURE__*/styled__default["default"].div.withConfig({
1652
1669
  displayName: "Combobox__ComboboxInput",
1653
1670
  componentId: "sc-u2hz6i-1"
1654
- })(["width:100%;font-size:14px;border:1px solid ", ";border-radius:8px;color:", ";background:white;position:relative;display:block;min-height:3rem;padding:0.5rem 2.5rem 0.5rem 0.7rem;overflow:auto;outline:0;outline:none;cursor:pointer;user-select:none;overflow:hidden;display:flex;align-items:center;word-break:break-word;", " ", " ", ":focus{border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);}", " input{position:absolute;top:-1px;left:0;border:none;", "}"], utils.getColor('gray210'), utils.getColor('gray60'), props => props.suggestive && "\n padding-right: 0.7rem;\n ", utils.media.mobile(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral__default["default"](["\n min-height: 42px;\n padding-left: 1rem;\n ", "\n "])), props => props.suggestive && "\n padding-right: 1rem;\n "), props => props.isFocused && styled.css(["border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);"], utils.getColor('gray180')), utils.getColor('gray180'), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => !props.suggestive && "\n padding-right: 2.5rem;\n ");
1671
+ })(["width:100%;font-size:14px;border:1px solid ", ";border-radius:8px;color:", ";background:white;position:relative;display:block;min-height:3rem;padding:0.5rem 2.5rem 0.5rem 0.7rem;overflow:auto;outline:0;outline:none;cursor:pointer;user-select:none;overflow:hidden;display:flex;align-items:center;word-break:break-word;", " ", " ", " &:focus{border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);}", " input{position:absolute;top:-1px;left:0;border:none;", "}"], utils.getColor('gray210'), utils.getColor('gray60'), props => props.suggestive && "\n padding-right: 0.7rem;\n ", utils.media.mobile(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral__default["default"](["\n min-height: 42px;\n padding-left: 1rem;\n ", "\n "])), props => props.suggestive && "\n padding-right: 1rem;\n "), props => props.isFocused && styled.css(["border-color:", ";box-shadow:0px 0px 0px 2px rgba(0,0,0,0.1);"], utils.getColor('gray180')), utils.getColor('gray180'), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => !props.suggestive && "\n padding-right: 2.5rem;\n ");
1655
1672
  const ComboboxDropdownIcon = /*#__PURE__*/styled__default["default"](components.Icon).withConfig({
1656
1673
  displayName: "Combobox__ComboboxDropdownIcon",
1657
1674
  componentId: "sc-u2hz6i-2"
@@ -2254,23 +2271,23 @@ const AutoCompleteTextboxDiv = /*#__PURE__*/styled__default["default"](ContentEd
2254
2271
  const AddedBox = /*#__PURE__*/styled__default["default"].span.withConfig({
2255
2272
  displayName: "AutoComplete__AddedBox",
2256
2273
  componentId: "sc-g0526o-4"
2257
- })(["background-color:rgb(230,230,230);padding:5px 2rem 5px 0.75rem;border-radius:12px;font-size:13px;position:relative;margin-left:-3px;margin-right:9px;white-space:nowrap;cursor:default;line-height:normal;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;", ""], isSafari ? "\n vertical-align: 2px;\n " : "\n vertical-align: -7px;\n ");
2274
+ })(["background-color:rgb(230,230,230);padding:5px 2rem 5px 0.75rem;border-radius:12px;font-size:13px;position:relative;margin-left:-3px;margin-right:9px;white-space:nowrap;cursor:default;line-height:normal;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:", ";"], () => isSafari ? '2px' : '-7px');
2258
2275
  const RemoveIcon = /*#__PURE__*/styled__default["default"](components.Icon).withConfig({
2259
2276
  displayName: "AutoComplete__RemoveIcon",
2260
2277
  componentId: "sc-g0526o-5"
2261
- })(["width:20px;height:20px;border-radius:50%;display:inline-block;position:absolute;top:50%;line-height:20px;transform:translateY(-50%);right:2px;font-size:14px;text-align:center;cursor:pointer;color:", ";:hover{background-color:", ";color:", ";}"], utils.getColor('gray120'), utils.getColor('gray210'), props => polished.darken(0.05, utils.getColor('alert')(props)));
2278
+ })(["width:20px;height:20px;border-radius:50%;display:inline-block;position:absolute;top:50%;line-height:20px;transform:translateY(-50%);right:2px;font-size:14px;text-align:center;cursor:pointer;color:", ";&:hover{background-color:", ";color:", ";}"], utils.getColor('gray120'), utils.getColor('gray210'), props => polished.darken(0.05, utils.getColor('alert')(props)));
2262
2279
  const AutoCompleteMenu = /*#__PURE__*/styled__default["default"](components.ContextMenu).withConfig({
2263
2280
  displayName: "AutoComplete__AutoCompleteMenu",
2264
2281
  componentId: "sc-g0526o-6"
2265
- })(["box-shadow:0 2px 3px 1px rgba(0,0,0,0.2),0 0px 0px 1px rgba(0,0,0,0.05);max-height:22rem;overflow:auto;", "{> *{padding:11px;}}"], components.ContextMenu.ListItem);
2282
+ })(["box-shadow:0 2px 3px 1px rgba(0,0,0,0.2),0 0px 0px 1px rgba(0,0,0,0.05);max-height:22rem;overflow:auto;", "{> *{padding:11px;}}"], components.ListItem);
2266
2283
  const AutoCompleteError = /*#__PURE__*/styled__default["default"](Errors).withConfig({
2267
2284
  displayName: "AutoComplete__AutoCompleteError",
2268
2285
  componentId: "sc-g0526o-7"
2269
- })(["", "{background:transparent;border:none;color:", ";padding:0;margin-top:0.5rem;font-weight:600;", "{display:none;}}"], Errors.Item, utils.getColor('alert'), Errors.CloseIcon);
2286
+ })(["", "{background:transparent;border:none;color:", ";padding:0;margin-top:0.5rem;font-weight:600;", "{display:none;}}"], ErrorsItem, utils.getColor('alert'), ErrorsCloseIcon);
2270
2287
  const DropdownIconContainer = /*#__PURE__*/styled__default["default"](components.Icon).withConfig({
2271
2288
  displayName: "AutoComplete__DropdownIconContainer",
2272
2289
  componentId: "sc-g0526o-8"
2273
- })(["position:absolute;right:0;bottom:0;width:3rem;height:3rem;bottom:-1px;", " ", "{position:absolute;width:2rem;height:2rem;line-height:2rem;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,0.1);border-radius:50%;text-align:center;cursor:pointer;color:", ";:hover,:active{background:rgba(0,0,0,0.15);}}"], utils.media.mobile(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default["default"](["\n height: 42px;\n "]))), components.Icon, utils.getColor('gray90'));
2290
+ })(["position:absolute;right:0;bottom:0;width:3rem;height:3rem;bottom:-1px;", " ", "{position:absolute;width:2rem;height:2rem;line-height:2rem;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,0.1);border-radius:50%;text-align:center;cursor:pointer;color:", ";&:hover,&:active{background:rgba(0,0,0,0.15);}}"], utils.media.mobile(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral__default["default"](["\n height: 42px;\n "]))), components.Icon, utils.getColor('gray90'));
2274
2291
  const focusBeforeLast = e => {
2275
2292
  if (e.target && e.target !== e.currentTarget) return;
2276
2293
  const el = [].slice.call(e.currentTarget.querySelectorAll('div[contenteditable]')).slice(-1)[0];
@@ -2702,6 +2719,7 @@ class AutoCompleteTextbox extends React__default["default"].Component {
2702
2719
  this.onChange = evt => {
2703
2720
  this.props.onChange(this.props.index, cleanText(evt.currentTarget.isContentEditable ? evt.currentTarget.innerText : evt.target.value));
2704
2721
  };
2722
+ this.setEl = ref => this.el = ref;
2705
2723
  this.onPaste = ev => {
2706
2724
  ev.preventDefault();
2707
2725
  const text = ev.clipboardData.getData('text');
@@ -2716,12 +2734,19 @@ class AutoCompleteTextbox extends React__default["default"].Component {
2716
2734
  }
2717
2735
  return nextProps.value !== cleanText(this.el.innerText) || !!Object.keys(nextProps).find(k => nextProps[k] !== this.props[k]);
2718
2736
  }
2719
- componentDidUpdate(oldProps) {
2737
+
2738
+ // Only a programmatic change (not the user typing) should move the caret to the end
2739
+ getSnapshotBeforeUpdate() {
2740
+ return this.props.value !== cleanText(this.el.innerText);
2741
+ }
2742
+ componentDidUpdate(oldProps, prevState, changedOutside) {
2743
+ let rewritten = false;
2720
2744
  if (this.props.value.slice(-1) === ' ' && /\S/.test(this.el.textContent.slice(-1))) {
2721
2745
  // does not have blank space as last
2722
2746
  this.el.innerHTML = this.props.value.replace(/\s/, '&nbsp;');
2747
+ rewritten = true;
2723
2748
  }
2724
- if (this.props.value !== oldProps.value && document.activeElement === this.el) {
2749
+ if (this.props.value !== oldProps.value && (changedOutside || rewritten) && document.activeElement === this.el) {
2725
2750
  setSelectionRange$1(this.el.firstChild || this.el, this.el.textContent.length + 1);
2726
2751
  }
2727
2752
  }
@@ -2740,7 +2765,8 @@ class AutoCompleteTextbox extends React__default["default"].Component {
2740
2765
  rest = _objectWithoutProperties__default["default"](_this$props, _excluded2$2);
2741
2766
  const valueOrBlank = /*android fix, not needed? value || */_isString__default["default"](value) && value ? value : '\u200b';
2742
2767
  const props = _objectSpread$5(_objectSpread$5({
2743
- innerRef: ref => this.el = ref,
2768
+ // stable ref: a new function each render makes ContentEditable re-render and jump the caret to the end
2769
+ innerRef: this.setEl,
2744
2770
  onKeyDown: this.onKeyDown,
2745
2771
  onPaste: this.onPaste,
2746
2772
  value: value,
@@ -3409,7 +3435,7 @@ const TextLabelContainer$1 = /*#__PURE__*/styled__default["default"].div.withCon
3409
3435
  const CheckboxContent = /*#__PURE__*/styled__default["default"].div.withConfig({
3410
3436
  displayName: "SimpleCheckbox__CheckboxContent",
3411
3437
  componentId: "sc-am8pps-4"
3412
- })(["cursor:pointer;position:relative;padding-left:2rem;transition:background 0.2s linear;", ""], props => props.framed && styled.css(["border:1px solid ", ";border-radius:8px;min-height:3rem;min-width:8rem;background:white;width:100%;align-items:center;display:flex;:hover{background:rgb(245,245,245);}:active{background:rgb(235,235,235);transition:none;}padding:10px 12px 10px 32px;", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.media.desktop(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral__default["default"](["\n padding: 7px 12px 7px 32px;\n "]))), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => props.checked && props.highlightSelected && styled.css(["border-color:", ";background:", ";:hover{background:", ";}", "{", "{color:", ";}}"], utils.getColor('main'), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), CheckboxPseudoInput, components.Icon, utils.getColor('main')), props => props.checked && props.ultraHighlightSelected && styled.css(["border-color:", ";background:", ";color:white;a,a.link{color:white;}:hover{background:", ";}", "{", "{color:", ";}}", "{color:rgba(255,255,255,0.65);}", "{color:rgba(255,255,255,0.65);}"], utils.getColor('main'), utils.getColor('main'), utils.getColor('main'), CheckboxPseudoInput, components.Icon, utils.getColor('main'), HelpText, DescText$2), props => props.disabled && styled.css(["background-color:rgba(0,0,0,0.075) !important;color:rgba(0,0,0,0.6);!important;&[disabled]{opacity:0.75 !important;}", "{background:transparent;}"], CheckboxPseudoInput)));
3438
+ })(["cursor:pointer;position:relative;padding-left:2rem;transition:background 0.2s linear;", ""], props => props.framed && styled.css(["border:1px solid ", ";border-radius:8px;min-height:3rem;min-width:8rem;background:white;width:100%;align-items:center;display:flex;&:hover{background:rgb(245,245,245);}&:active{background:rgb(235,235,235);transition:none;}padding:10px 12px 10px 32px;", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.media.desktop(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral__default["default"](["\n padding: 7px 12px 7px 32px;\n "]))), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => props.checked && props.highlightSelected && styled.css(["border-color:", ";background:", ";&:hover{background:", ";}", "{", "{color:", ";}}"], utils.getColor('main'), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), CheckboxPseudoInput, components.Icon, utils.getColor('main')), props => props.checked && props.ultraHighlightSelected && styled.css(["border-color:", ";background:", ";color:white;a,a.link{color:white;}&:hover{background:", ";}", "{", "{color:", ";}}", "{color:rgba(255,255,255,0.65);}", "{color:rgba(255,255,255,0.65);}"], utils.getColor('main'), utils.getColor('main'), utils.getColor('main'), CheckboxPseudoInput, components.Icon, utils.getColor('main'), HelpText, DescText$2), props => props.disabled && styled.css(["background-color:rgba(0,0,0,0.075) !important;color:rgba(0,0,0,0.6);&[disabled]{opacity:0.75 !important;}", "{background:transparent;}"], CheckboxPseudoInput)));
3413
3439
  const SimpleCheckbox = /*#__PURE__*/styled__default["default"](_ref => {
3414
3440
  let {
3415
3441
  path,
@@ -3461,7 +3487,7 @@ var _templateObject$3;
3461
3487
  const CssCircle = /*#__PURE__*/styled__default["default"].div.withConfig({
3462
3488
  displayName: "SimpleRadiobox__CssCircle",
3463
3489
  componentId: "sc-qv83xo-0"
3464
- })(["border-radius:50%;content:'';border:1px solid ", ";width:18px;height:18px;background-color:white;position:absolute;left:-2rem;top:50%;transform:translateY(-50%);", " ", ""], utils.getColor('gray210'), utils.ifProp('focused', styled.css(["box-shadow:0 0 0 2px rgba(0,0,0,0.1);border-color:", ";"], utils.getColor('gray180'))), utils.ifProp('checked', styled.css([":before{content:'';width:8px;height:8px;top:50%;transform:translateY(-50%);left:4px;border-radius:50%;position:absolute;background-color:", ";}"], utils.getColor('gray90'))));
3490
+ })(["border-radius:50%;content:'';border:1px solid ", ";width:18px;height:18px;background-color:white;position:absolute;left:-2rem;top:50%;transform:translateY(-50%);", " ", ""], utils.getColor('gray210'), utils.ifProp('focused', styled.css(["box-shadow:0 0 0 2px rgba(0,0,0,0.1);border-color:", ";"], utils.getColor('gray180'))), utils.ifProp('checked', styled.css(["&:before{content:'';width:8px;height:8px;top:50%;transform:translateY(-50%);left:4px;border-radius:50%;position:absolute;background-color:", ";}"], utils.getColor('gray90'))));
3465
3491
  const TextLabel = /*#__PURE__*/styled__default["default"].span.withConfig({
3466
3492
  displayName: "SimpleRadiobox__TextLabel",
3467
3493
  componentId: "sc-qv83xo-1"
@@ -3477,7 +3503,7 @@ const TextLabelContainer = /*#__PURE__*/styled__default["default"].div.withConfi
3477
3503
  const RadioboxContent = /*#__PURE__*/styled__default["default"].div.withConfig({
3478
3504
  displayName: "SimpleRadiobox__RadioboxContent",
3479
3505
  componentId: "sc-qv83xo-4"
3480
- })(["cursor:pointer;position:relative;padding-left:2rem;transition:background 0.2s linear;", ""], props => props.framed && styled.css(["border:1px solid ", ";border-radius:8px;min-height:3rem;min-width:8rem;background:white;width:100%;align-items:center;display:flex;:hover{background:rgb(245,245,245);}:active{background:rgb(235,235,235);transition:none;}padding:10px 12px 10px 32px;", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.media.desktop(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral__default["default"](["\n padding: 7px 12px 7px 32px;\n "]))), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => props.checked && props.highlightSelected && styled.css(["border-color:", ";background:", ";:hover{background:", ";}", "{:before{background-color:", ";}}"], utils.getColor('main'), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), CssCircle, utils.getColor('main')), props => props.checked && props.ultraHighlightSelected && styled.css(["border-color:", ";background:", ";color:white;:hover{background:", ";}", "{:before{background-color:", ";}}", "{color:rgba(255,255,255,0.65);}", "{color:rgba(255,255,255,0.65);}"], utils.getColor('main'), utils.getColor('main'), utils.getColor('main'), CssCircle, utils.getColor('main'), HelpText, DescText$1), props => props.disabled && styled.css(["background-color:rgba(0,0,0,0.075) !important;&[disabled]{opacity:0.75 !important;}", "{background:rgba(255,255,255,0.25);}"], CssCircle)));
3506
+ })(["cursor:pointer;position:relative;padding-left:2rem;transition:background 0.2s linear;", ""], props => props.framed && styled.css(["border:1px solid ", ";border-radius:8px;min-height:3rem;min-width:8rem;background:white;width:100%;align-items:center;display:flex;&:hover{background:rgb(245,245,245);}&:active{background:rgb(235,235,235);transition:none;}padding:10px 12px 10px 32px;", " ", " ", " ", " ", ""], utils.getColor('gray210'), utils.media.desktop(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral__default["default"](["\n padding: 7px 12px 7px 32px;\n "]))), props => props.hasErrors && styled.css(["border-color:", " !important;"], utils.getColor('alert')), props => props.checked && props.highlightSelected && styled.css(["border-color:", ";background:", ";&:hover{background:", ";}", "{&:before{background-color:", ";}}"], utils.getColor('main'), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), props => polished.desaturate(0.3, polished.lighten(0.52, utils.getColor("main")(props))), CssCircle, utils.getColor('main')), props => props.checked && props.ultraHighlightSelected && styled.css(["border-color:", ";background:", ";color:white;&:hover{background:", ";}", "{&:before{background-color:", ";}}", "{color:rgba(255,255,255,0.65);}", "{color:rgba(255,255,255,0.65);}"], utils.getColor('main'), utils.getColor('main'), utils.getColor('main'), CssCircle, utils.getColor('main'), HelpText, DescText$1), props => props.disabled && styled.css(["background-color:rgba(0,0,0,0.075) !important;&[disabled]{opacity:0.75 !important;}", "{background:rgba(255,255,255,0.25);}"], CssCircle)));
3481
3507
  const SimpleRadiobox = /*#__PURE__*/styled__default["default"](props => /*#__PURE__*/React__default["default"].createElement(Radiobox, props, _ref => {
3482
3508
  let {
3483
3509
  disabled,
@@ -3545,7 +3571,7 @@ const InputboxGroup = /*#__PURE__*/styled__default["default"](_ref => {
3545
3571
  }).withConfig({
3546
3572
  displayName: "InputboxGroup",
3547
3573
  componentId: "sc-q49nwm-0"
3548
- })(["", " ", " ", " ", ""], props => props.wide && "\n width: 100%;\n display: flex;\n label {\n flex-grow: 1;\n flex-basis: 0;\n }\n ", props => props.unevenlyWide && "\n width: 100%;\n display: flex;\n label {\n flex-grow: 1;\n }\n ", props => props.horizontal ? "\n @supports (flex-wrap: wrap) {\n display: flex;\n flex-wrap: wrap;\n }\n min-height: 3rem;\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin-right: 1.5rem;\n margin-bottom: 0.5rem;\n }\n ") : "\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin-bottom: 0.5rem;\n :last-child {\n margin-bottom: 1.5rem;\n }\n }\n "), props => props.framedBoxes && styled.css(["", ""], props => props.horizontal && "\n margin: -4px;\n width: calc(100% + 8px);\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin: 4px;\n }\n ")));
3574
+ })(["", " ", " ", " ", ""], props => props.wide && "\n width: 100%;\n display: flex;\n label {\n flex-grow: 1;\n flex-basis: 0;\n }\n ", props => props.unevenlyWide && "\n width: 100%;\n display: flex;\n label {\n flex-grow: 1;\n }\n ", props => props.horizontal ? "\n @supports (flex-wrap: wrap) {\n display: flex;\n flex-wrap: wrap;\n }\n min-height: 3rem;\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin-right: 1.5rem;\n margin-bottom: 0.5rem;\n }\n ") : "\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin-bottom: 0.5rem;\n &:last-child {\n margin-bottom: 1.5rem;\n }\n }\n "), props => props.framedBoxes && styled.css(["", ""], props => props.horizontal && "\n margin: -4px;\n width: calc(100% + 8px);\n ".concat(SimpleRadiobox, ", ").concat(SimpleCheckbox, " {\n margin: 4px;\n }\n ")));
3549
3575
  const RadioboxGroup = InputboxGroup;
3550
3576
  const CheckboxGroup = InputboxGroup;
3551
3577
  CheckboxGroup.createCheckManager = function () {
@@ -3598,10 +3624,26 @@ const CALENDAR_LEVEL_DAY = 'day';
3598
3624
  const CALENDAR_LEVEL_MONTH = 'month';
3599
3625
  const CALENDAR_LEVEL_YEAR = 'year';
3600
3626
  const LEVELS = [CALENDAR_LEVEL_DAY, CALENDAR_LEVEL_MONTH, CALENDAR_LEVEL_YEAR];
3601
- const DatePickerContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
3627
+
3628
+ // Nome fixo do @keyframes preservado: um `keyframes` do styled-components geraria um nome
3629
+ // com hash, diferente do atual "datePickerFadeInDown" (quebraria quem lê animationName). Por
3630
+ // isso o bloco fica fora de um template styled/css/keyframes, registrado pelo CSSOM (sem
3631
+ // nonce) no primeiro render do DatePickerContainer (mesmo padrão de components/src/Loading.jsx).
3632
+ const injectDatePickerFadeInDownKeyframes = () => utils.insertKeyframes('datePickerFadeInDown', 'from { opacity: 0; transform: translateY(-10px); pointer-events: none; } to { opacity: 1; transform: none; pointer-events: none; }');
3633
+
3634
+ // styled(DatePickerContainerBase) mira num componente, não numa tag: ao contrário do antigo
3635
+ // styled.div, o styled-components não filtra prop inválida pra <div> nesse caso. O template
3636
+ // abaixo não lê nenhuma prop custom, então repassar tudo com {...props} é seguro.
3637
+ const DatePickerContainerBase = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => {
3638
+ injectDatePickerFadeInDownKeyframes();
3639
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
3640
+ ref: ref
3641
+ }, props));
3642
+ });
3643
+ const DatePickerContainer = /*#__PURE__*/styled__default["default"](DatePickerContainerBase).withConfig({
3602
3644
  displayName: "DatePicker__DatePickerContainer",
3603
3645
  componentId: "sc-1wo8j4d-0"
3604
- })(["width:20rem;position:absolute;z-index:100;background-color:white;border-radius:5px;border:1px solid ", ";user-select:none;box-shadow:0 0 4px 0 rgba(0,0,0,0.2);font-size:13px;text-align:center;animation:0.2s datePickerFadeInDown ease-out;display:none;@supports (flex-wrap:wrap){display:block;}input{padding-right:2.25rem;", "}@keyframes datePickerFadeInDown{from{opacity:0;transform:translateY(-10px);pointer-events:none;}to{opacity:1;transform:none;pointer-events:none;}}"], utils.getColor('gray210'), utils.media.mobile(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral__default["default"](["\n width: 2.5rem;\n "]))));
3646
+ })(["width:20rem;position:absolute;z-index:100;background-color:white;border-radius:5px;border:1px solid ", ";user-select:none;box-shadow:0 0 4px 0 rgba(0,0,0,0.2);font-size:13px;text-align:center;animation:0.2s datePickerFadeInDown ease-out;display:none;@supports (flex-wrap:wrap){display:block;}input{padding-right:2.25rem;", "}"], utils.getColor('gray210'), utils.media.mobile(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral__default["default"](["\n width: 2.5rem;\n "]))));
3605
3647
  const CalendarHeader = /*#__PURE__*/styled__default["default"].div.withConfig({
3606
3648
  displayName: "DatePicker__CalendarHeader",
3607
3649
  componentId: "sc-1wo8j4d-1"
@@ -3617,7 +3659,7 @@ const WeekHeader = /*#__PURE__*/styled__default["default"](CalendarContentContai
3617
3659
  const CalendarClickable = /*#__PURE__*/styled__default["default"].a.withConfig({
3618
3660
  displayName: "DatePicker__CalendarClickable",
3619
3661
  componentId: "sc-1wo8j4d-4"
3620
- })([":hover,:focus{background-color:rgba(0,0,0,0.1);cursor:pointer;}"]);
3662
+ })(["&:hover,&:focus{background-color:rgba(0,0,0,0.1);cursor:pointer;}"]);
3621
3663
  const TitleButton = /*#__PURE__*/styled__default["default"](CalendarClickable).withConfig({
3622
3664
  displayName: "DatePicker__TitleButton",
3623
3665
  componentId: "sc-1wo8j4d-5"
@@ -3629,7 +3671,7 @@ const NavigationButton = /*#__PURE__*/styled__default["default"](CalendarClickab
3629
3671
  const CalendarContent = /*#__PURE__*/styled__default["default"](CalendarClickable).withConfig({
3630
3672
  displayName: "DatePicker__CalendarContent",
3631
3673
  componentId: "sc-1wo8j4d-7"
3632
- })(["line-height:2.25rem;flex-grow:1;display:inline-block;border-radius:5px;margin-top:0.25rem;margin-left:0.25rem;", " ", " ", " ", " "], utils.ifProp('isEdge', styled.css(["color:rgba(0,0,0,0.4);"])), utils.ifProp('isSelected', styled.css(["box-shadow:inset 0 0 0 1px ", ";"], utils.getColor('gray210'))), utils.ifProp('isDisabled', "pointer-events: none;\n opacity: 0.5;"), utils.ifProp('isCurrent', styled.css(["background:", ";color:#FFF;:hover{background-color:", ";}", ""], utils.getColor('main'), props => polished.darken(0.075, utils.getColor('main')(props)), utils.ifProp('isSelected', 'box-shadow: none;'))));
3674
+ })(["line-height:2.25rem;flex-grow:1;display:inline-block;border-radius:5px;margin-top:0.25rem;margin-left:0.25rem;", " ", " ", " ", ""], utils.ifProp('isEdge', styled.css(["color:rgba(0,0,0,0.4);"])), utils.ifProp('isSelected', styled.css(["box-shadow:inset 0 0 0 1px ", ";"], utils.getColor('gray210'))), utils.ifProp('isDisabled', "pointer-events: none;\n opacity: 0.5;"), utils.ifProp('isCurrent', styled.css(["background:", ";color:#FFF;&:hover{background-color:", ";}", ""], utils.getColor('main'), props => polished.darken(0.075, utils.getColor('main')(props)), utils.ifProp('isSelected', 'box-shadow: none;'))));
3633
3675
  const DayItem = /*#__PURE__*/styled__default["default"](CalendarContent).withConfig({
3634
3676
  displayName: "DatePicker__DayItem",
3635
3677
  componentId: "sc-1wo8j4d-8"
@@ -3645,11 +3687,11 @@ const YearItem = /*#__PURE__*/styled__default["default"](CalendarContent).withCo
3645
3687
  const DatePickerInputIcon = /*#__PURE__*/styled__default["default"](components.Icon).withConfig({
3646
3688
  displayName: "DatePicker__DatePickerInputIcon",
3647
3689
  componentId: "sc-1wo8j4d-11"
3648
- })(["position:absolute;outline:none;bottom:0;font-size:21px;line-height:3rem;right:0;width:2rem;cursor:pointer;color:", ";:hover{color:", ";}display:none;@supports (flex-wrap:wrap){display:block;}", " ", ""], utils.getColor('gray150'), utils.getColor('main'), props => props.disabled && 'pointer-events: none;', utils.media.mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["\n line-height: 42px;\n width: 2.25rem;\n "]))));
3690
+ })(["position:absolute;outline:none;bottom:0;font-size:21px;line-height:3rem;right:0;width:2rem;cursor:pointer;color:", ";&:hover{color:", ";}display:none;@supports (flex-wrap:wrap){display:block;}", " ", ""], utils.getColor('gray150'), utils.getColor('main'), props => props.disabled && 'pointer-events: none;', utils.media.mobile(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["\n line-height: 42px;\n width: 2.25rem;\n "]))));
3649
3691
  /*#__PURE__*/styled__default["default"](components.Icon).withConfig({
3650
3692
  displayName: "DatePicker__ClearButton",
3651
3693
  componentId: "sc-1wo8j4d-12"
3652
- })(["color:", ";font-size:12px;position:absolute;right:40px;bottom:0;transform:translateY(-50%);cursor:pointer;width:1.5rem;line-height:1.5rem;text-align:center;border-radius:50%;background:rgba(0,0,0,0.1);:hover{background:#f7d3d4;color:", ";}"], utils.getColor('gray90'), utils.getColor('alert'));
3694
+ })(["color:", ";font-size:12px;position:absolute;right:40px;bottom:0;transform:translateY(-50%);cursor:pointer;width:1.5rem;line-height:1.5rem;text-align:center;border-radius:50%;background:rgba(0,0,0,0.1);&:hover{background:#f7d3d4;color:", ";}"], utils.getColor('gray90'), utils.getColor('alert'));
3653
3695
  const InputAndIconWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
3654
3696
  displayName: "DatePicker__InputAndIconWrapper",
3655
3697
  componentId: "sc-1wo8j4d-13"
@@ -3657,7 +3699,7 @@ const InputAndIconWrapper = /*#__PURE__*/styled__default["default"].div.withConf
3657
3699
  const ShortcutsWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
3658
3700
  displayName: "DatePicker__ShortcutsWrapper",
3659
3701
  componentId: "sc-1wo8j4d-14"
3660
- })(["display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0.25rem 0;color:", ";.link{cursor:pointer;font-weight:600;text-decoration:underline;", ":hover{color:", ";}", "}"], utils.getColor('gray150'), utils.media.mobile(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default["default"](["\n font-size: 13px; \n "]))), utils.getColor('main'), utils.ifProp('disabled', styled.css(["pointer-events:none;opacity:0.5;"])));
3702
+ })(["display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0.25rem 0;color:", ";.link{cursor:pointer;font-weight:600;text-decoration:underline;", " &:hover{color:", ";}", "}"], utils.getColor('gray150'), utils.media.mobile(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral__default["default"](["\n font-size: 13px; \n "]))), utils.getColor('main'), utils.ifProp('disabled', styled.css(["pointer-events:none;opacity:0.5;"])));
3661
3703
  const KeyMapper = level => {
3662
3704
  const upDownSpacing = level === CALENDAR_LEVEL_DAY ? 7 : 3;
3663
3705
  return {
@@ -4204,7 +4246,7 @@ const shouldPreventExpand = (e, fn) => !e.target.closest('body,[data-expand="fal
4204
4246
  const ExpandableBoxStyled = /*#__PURE__*/styled__default["default"].div.withConfig({
4205
4247
  displayName: "ExpandableBox__ExpandableBoxStyled",
4206
4248
  componentId: "sc-1nsk1wq-0"
4207
- })(["padding:1rem;border-radius:8px;background:", ";font-size:14px;outline:none;transition:background 0.2s linear;position:relative;", " ", " & ~ &{margin-top:0.75rem;}", " &{margin-top:0.75rem;}"], utils.getColor('lightBluishGray'), props => props.small && "\n padding: 0.875rem 1rem;\n min-height: 3rem;\n ", props => props.collapsed ? styled.css(["cursor:pointer;padding-right:3.25rem;:hover{background:", ";}:active{background:", ";transition:none;}"], props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))) : styled.css(["padding:1.5rem;", " ", ""], utils.media.max(340)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral__default["default"](["\n padding 1rem;\n "]))), props => props.fixMarginBottom && "\n padding-bottom: 0.5rem !important;\n "), components.SwitchDiv);
4249
+ })(["padding:1rem;border-radius:8px;background:", ";font-size:14px;outline:none;transition:background 0.2s linear;position:relative;", " ", " & ~ &{margin-top:0.75rem;}", " &{margin-top:0.75rem;}"], utils.getColor('lightBluishGray'), props => props.small && "\n padding: 0.875rem 1rem;\n min-height: 3rem;\n ", props => props.collapsed ? styled.css(["cursor:pointer;padding-right:3.25rem;&:hover{background:", ";}&:active{background:", ";transition:none;}"], props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))) : styled.css(["padding:1.5rem;", " ", ""], utils.media.max(340)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral__default["default"](["\n padding: 1rem;\n "]))), props => props.fixMarginBottom && "\n padding-bottom: 0.5rem !important;\n "), components.SwitchDiv);
4208
4250
  const EditIcon = /*#__PURE__*/styled__default["default"](components.Icon).attrs({
4209
4251
  icon: 'edit',
4210
4252
  className: 'expandable-edit-icon'
@@ -4454,18 +4496,23 @@ const FIX_STYLE = {
4454
4496
  return '';
4455
4497
  }
4456
4498
  };
4499
+
4500
+ // Precisa vir antes de RichTextContainer: o yak resolve `${ToolsContainer}` (seletor dentro de
4501
+ // props.showToolbar) estaticamente lendo o módulo de cima pra baixo — em tempo de execução
4502
+ // (sc) a ordem nunca importou, já que o template só lê ToolsContainer dentro de um callback
4503
+ // (props => ...), chamado bem depois do módulo inteiro já ter sido avaliado.
4504
+ const ToolsContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
4505
+ displayName: "RichText__ToolsContainer",
4506
+ componentId: "sc-x8c1ig-1"
4507
+ })(["background:", ";padding:0 0.125rem;border-top-left-radius:7px;border-top-right-radius:7px;transition:0.225s;max-height:0;pointer-events:none;overflow:hidden;display:flex;align-items:center;"], utils.getColor('lightBluishGray'));
4457
4508
  const RichTextContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
4458
4509
  displayName: "RichText__RichTextContainer",
4459
- componentId: "sc-x8c1ig-1"
4510
+ componentId: "sc-x8c1ig-2"
4460
4511
  })(["position:relative;width:100%;border:1px solid ", ";border-radius:8px;background:white;", ";", ";", " ", " ", " ul{list-style-type:disc;}ul,ol{padding-inline-start:25px;margin-block-start:0.5em;margin-block-end:0.5em;}"], utils.getColor('gray210'), props => props.hasErrors && "border-color: ".concat(utils.getColor(props)('alert')), props => props.showToolbar && "\n ".concat(ToolsContainer, " {\n transition: 0.5s;\n max-height: 7.5rem;\n transition: 0.6s;\n pointer-events: auto;\n }\n "), props => props.focus && "\n border-color: ".concat(utils.getColor('gray180'), ";\n box-shadow: 0px 0px 0px 2px rgba(0,0,0,0.1);\n "), props => props.locked && styled.css(["padding-right:2.25rem;background:rgba(0,0,0,0.075);"]), props => props.linkColor && styled.css(["a,a:visited,a:focus,a:active{color:", ";}a:hover{color:", ";}"], props.linkColor, polished.darken(0.05, props.linkColor)));
4461
4512
  const RichTextInput = /*#__PURE__*/styled__default["default"].div.withConfig({
4462
4513
  displayName: "RichText__RichTextInput",
4463
- componentId: "sc-x8c1ig-2"
4464
- })(["font-size:14px;color:", ";background:white;border-radius:7px;> div{overflow:auto;width:100%;outline:none;min-height:", "px;padding:0.7rem;}b,strong{font-weight:600;}a{text-decoration:underline;}> div[contenteditable=true]:empty:before{content:attr(placeholder);color:rgba(0,0,0,0.3);}", ""], utils.getColor('gray60'), props => props.minHeight || 60, props => props.disabled && "\n &[disabled] {\n background: rgba(0, 0, 0, 0.075) !important;\n opacity: 0.75 !important;\n }\n ");
4465
- const ToolsContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
4466
- displayName: "RichText__ToolsContainer",
4467
4514
  componentId: "sc-x8c1ig-3"
4468
- })(["background:", ";padding:0 0.125rem;border-top-left-radius:7px;border-top-right-radius:7px;transition:0.225s;max-height:0;pointer-events:none;overflow:hidden;display:flex;align-items:center;"], utils.getColor('lightBluishGray'));
4515
+ })(["font-size:14px;color:", ";background:white;border-radius:7px;> div{overflow:auto;width:100%;outline:none;min-height:", "px;padding:0.7rem;}b,strong{font-weight:600;}a{text-decoration:underline;}> div[contenteditable=true]:empty:before{content:attr(placeholder);color:rgba(0,0,0,0.3);}", ""], utils.getColor('gray60'), props => props.minHeight || 60, props => props.disabled && "\n &[disabled] {\n background: rgba(0, 0, 0, 0.075) !important;\n opacity: 0.75 !important;\n }\n ");
4469
4516
  const ToolButton = /*#__PURE__*/styled__default["default"](components.Button).withConfig({
4470
4517
  displayName: "RichText__ToolButton",
4471
4518
  componentId: "sc-x8c1ig-4"
@@ -5049,7 +5096,7 @@ const _excluded$2 = ["path", "disabled", "rightInfo", "label", "descText", "help
5049
5096
  const Toggle = /*#__PURE__*/styled__default["default"].div.withConfig({
5050
5097
  displayName: "ToggleCheckbox__Toggle",
5051
5098
  componentId: "sc-11ob8ah-1"
5052
- })(["cursor:pointer;flex-shrink:0;margin-left:1rem;float:right;transition:0.25s ease;width:2.75rem;height:18px;border-radius:18px;background:", ";display:inline-block;position:relative;font-weight:600;:after{content:'';transition:0.25s ease;border-radius:50%;display:block;position:absolute;top:50%;transform:translateY(-50%);width:14px;height:14px;background:white;", "}", ""], props => props.checked ? utils.getColor('main') : 'rgba(0,0,0,0.14)', props => props.checked ? styled.css(["margin-left:-2px;left:100%;transform:translate(-100%,-50%);"]) : styled.css(["margin-left:2px;left:0;"]), utils.customTheme('ToggleCheckbox'));
5099
+ })(["cursor:pointer;flex-shrink:0;margin-left:1rem;float:right;transition:0.25s ease;width:2.75rem;height:18px;border-radius:18px;background:", ";display:inline-block;position:relative;font-weight:600;&:after{content:'';transition:0.25s ease;border-radius:50%;display:block;position:absolute;top:50%;transform:translateY(-50%);width:14px;height:14px;background:white;", "}", ""], props => props.checked ? utils.getColor('main') : 'rgba(0,0,0,0.14)', props => props.checked ? styled.css(["margin-left:-2px;left:100%;transform:translate(-100%,-50%);"]) : styled.css(["margin-left:2px;left:0;"]), utils.customTheme('ToggleCheckbox'));
5053
5100
  const ToggleLabel = /*#__PURE__*/styled__default["default"].div.withConfig({
5054
5101
  displayName: "ToggleCheckbox__ToggleLabel",
5055
5102
  componentId: "sc-11ob8ah-2"
@@ -5061,7 +5108,7 @@ const DescText = /*#__PURE__*/styled__default["default"].div.withConfig({
5061
5108
  const ToggleCheckboxStyled = /*#__PURE__*/styled__default["default"](Checkbox).withConfig({
5062
5109
  displayName: "ToggleCheckbox__ToggleCheckboxStyled",
5063
5110
  componentId: "sc-11ob8ah-4"
5064
- })(["position:relative;border-radius:8px;padding:1rem;min-height:42px;font-weight:550;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:background 0.2s linear;& ~ &{margin-top:-1rem;}", " ", " ", " ", " ", ""], props => props.margin ? styled.css(["margin-bottom:", "px;"], props => props.margin) : styled.css(["margin-bottom:1.5rem;& ~ &{margin-top:-1rem;}"]), props => props.gray ? "\n background-color: rgba(0,0,0,0.06);\n :hover {\n background-color: rgba(0,0,0,0.08);\n }\n :active {\n background-color: rgba(0,0,0,0.1);\n transition: none;\n }\n " : styled.css(["background-color:", ";:hover{background:", ";}:active{background:", ";transition:none;}"], utils.getColor('lightBluishGray'), props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))), props => !props.noFocus && styled.css([":focus-within{background-color:rgba(0,0,0,0.09);:after{content:'';pointer-events:none;position:absolute;top:-3px;right:-3px;left:-3px;bottom:-3px;border-radius:9px;border:2px solid rgba(0,0,0,0.15);}}"]), props => props.disabled && "\n opacity: 0.8;\n pointer-events:none;\n ", utils.customTheme('ToggleCheckboxBox'));
5111
+ })(["position:relative;border-radius:8px;padding:1rem;min-height:42px;font-weight:550;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:background 0.2s linear;& ~ &{margin-top:-1rem;}", " ", " ", " ", " ", ""], props => props.margin ? styled.css(["margin-bottom:", "px;"], props => props.margin) : styled.css(["margin-bottom:1.5rem;& ~ &{margin-top:-1rem;}"]), props => props.gray ? "\n background-color: rgba(0,0,0,0.06);\n &:hover {\n background-color: rgba(0,0,0,0.08);\n }\n &:active {\n background-color: rgba(0,0,0,0.1);\n transition: none;\n }\n " : styled.css(["background-color:", ";&:hover{background:", ";}&:active{background:", ";transition:none;}"], utils.getColor('lightBluishGray'), props => polished.darken(0.035, utils.getColor('lightBluishGray')(props)), props => polished.darken(0.05, utils.getColor('lightBluishGray')(props))), props => !props.noFocus && styled.css(["&:focus-within{background-color:rgba(0,0,0,0.09);&:after{content:'';pointer-events:none;position:absolute;top:-3px;right:-3px;left:-3px;bottom:-3px;border-radius:9px;border:2px solid rgba(0,0,0,0.15);}}"]), props => props.disabled && "\n opacity: 0.8;\n pointer-events:none;\n ", utils.customTheme('ToggleCheckboxBox'));
5065
5112
  const ToggleCheckbox = /*#__PURE__*/styled__default["default"](_ref => {
5066
5113
  let {
5067
5114
  path,
@@ -5093,7 +5140,8 @@ const ToggleCheckbox = /*#__PURE__*/styled__default["default"](_ref => {
5093
5140
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(ToggleLabel, null, label, helpText && /*#__PURE__*/React__default["default"].createElement(HelpText, null, " ", helpText), /*#__PURE__*/React__default["default"].createElement(components.TransitionDiv, {
5094
5141
  block: true
5095
5142
  }, descText && /*#__PURE__*/React__default["default"].createElement(DescText, null, descText))), rightInfo, /*#__PURE__*/React__default["default"].createElement(Toggle, {
5096
- checked: checked
5143
+ checked: checked,
5144
+ className: checked ? 'styled-toggle-checkbox-checked' : undefined
5097
5145
  }));
5098
5146
  });
5099
5147
  }).withConfig({
@@ -5106,7 +5154,7 @@ var _templateObject;
5106
5154
  const TabButton = /*#__PURE__*/styled__default["default"](components.Button).withConfig({
5107
5155
  displayName: "TabRadiobox__TabButton",
5108
5156
  componentId: "sc-1vu3bcn-0"
5109
- })(["width:100%;margin-left:0;padding:9px 1rem;flex-grow:1;background:", ";box-shadow:none;color:", ";border:1px solid ", ";border-left-width:0;height:100%;:hover{background:", ";}", " ", " ", " ", " ", " ", ""], props => props.white ? 'white' : utils.getColor('gray240'), utils.getColor('gray120'), utils.getColor('gray210'), props => polished.desaturate(0.6, polished.lighten(0.5, utils.getColor("main")(props))), utils.ifProp('checked', styled.css(["&,&:hover{border-color:", ";background-color:", ";border-left-width:1px;color:#fff;cursor:default;}"], utils.getColor('main'), utils.getColor('main'))), props => props.isFirst && "\n border-left-width: 1px;\n ", props => props.isFirst !== undefined && !props.isFirst && "\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n :focus:after{\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n }\n ", props => props.isLast !== undefined && !props.isLast && "\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n :focus:after{\n border-bottom-right-radius: 2px;\n border-top-right-radius: 2px;\n z-index: 2;\n }\n ", utils.media.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n min-width: 0;\n ", "\n "])), props => props.icon ? "\n padding-left: 1.25rem;\n padding-right: 1rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "), utils.customTheme('TabButton'));
5157
+ })(["width:100%;margin-left:0;padding:9px 1rem;flex-grow:1;background:", ";box-shadow:none;color:", ";border:1px solid ", ";border-left-width:0;height:100%;&:hover{background:", ";}", " ", " ", " ", " ", " ", ""], props => props.white ? 'white' : utils.getColor('gray240'), utils.getColor('gray120'), utils.getColor('gray210'), props => polished.desaturate(0.6, polished.lighten(0.5, utils.getColor("main")(props))), utils.ifProp('checked', styled.css(["&,&:hover{border-color:", ";background-color:", ";border-left-width:1px;color:#fff;cursor:default;}"], utils.getColor('main'), utils.getColor('main'))), props => props.isFirst && "\n border-left-width: 1px;\n ", props => props.isFirst !== undefined && !props.isFirst && "\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n &:focus:after{\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n }\n ", props => props.isLast !== undefined && !props.isLast && "\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n &:focus:after{\n border-bottom-right-radius: 2px;\n border-top-right-radius: 2px;\n z-index: 2;\n }\n ", utils.media.mobile(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n min-width: 0;\n ", "\n "])), props => props.icon ? "\n padding-left: 1.25rem;\n padding-right: 1rem;\n " : "\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n "), utils.customTheme('TabButton'));
5110
5158
  const InnerButton$1 = /*#__PURE__*/styled__default["default"].a.withConfig({
5111
5159
  displayName: "TabRadiobox__InnerButton",
5112
5160
  componentId: "sc-1vu3bcn-1"
@@ -5148,7 +5196,7 @@ const _excluded = ["label", "white", "icon"];
5148
5196
  const Tab = /*#__PURE__*/styled__default["default"].div.withConfig({
5149
5197
  displayName: "CleanTabRadiobox__Tab",
5150
5198
  componentId: "sc-uh7jfp-0"
5151
- })(["width:100%;font-size:16px;color:", ";font-weight:500;margin-left:0;padding:12px 2.5rem;flex-grow:1;height:100%;border-bottom:1px solid ", ";position:relative;", " ", ""], utils.getColor("gray120"), utils.getColor("gray210"), props => props.checked ? styled.css(["color:", ";:after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:3px;background:", ";border-radius:10px;}"], utils.getColor("main"), utils.getColor("main")) : styled.css(["cursor:pointer;:hover{color:", ";}"], utils.getColor("gray90")), utils.customTheme('CleanTabButton'));
5199
+ })(["width:100%;font-size:16px;color:", ";font-weight:500;margin-left:0;padding:12px 2.5rem;flex-grow:1;height:100%;border-bottom:1px solid ", ";position:relative;", " ", ""], utils.getColor("gray120"), utils.getColor("gray210"), props => props.checked ? styled.css(["color:", ";&:after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:3px;background:", ";border-radius:10px;}"], utils.getColor("main"), utils.getColor("main")) : styled.css(["cursor:pointer;&:hover{color:", ";}"], utils.getColor("gray90")), utils.customTheme('CleanTabButton'));
5152
5200
  const InnerButton = /*#__PURE__*/styled__default["default"].a.withConfig({
5153
5201
  displayName: "CleanTabRadiobox__InnerButton",
5154
5202
  componentId: "sc-uh7jfp-1"
@@ -5281,7 +5329,10 @@ exports.EditableBox = EditableBox;
5281
5329
  exports.EnhanceInput = EnhanceInput;
5282
5330
  exports.ErrorFilterProvider = ErrorFilterProvider;
5283
5331
  exports.Errors = Errors;
5332
+ exports.ErrorsCloseIcon = ErrorsCloseIcon;
5333
+ exports.ErrorsContainer = ErrorsContainer;
5284
5334
  exports.ErrorsContext = ErrorsContext;
5335
+ exports.ErrorsItem = ErrorsItem;
5285
5336
  exports.ExpandableBox = ExpandableBox;
5286
5337
  exports.Field = Field;
5287
5338
  exports.FieldBox = FieldBox;
@@ -5289,6 +5340,7 @@ exports.FieldBoxAction = FieldBoxAction;
5289
5340
  exports.FieldBoxHelpText = FieldBoxHelpText;
5290
5341
  exports.FieldBoxIcon = FieldBoxIcon;
5291
5342
  exports.FieldDescription = FieldDescription;
5343
+ exports.FieldLabel = FieldLabel;
5292
5344
  exports.FileInput = FileInput;
5293
5345
  exports.FloatLabelTextInput = FloatLabelTextInput;
5294
5346
  exports.Form = Form;