@elliemae/ds-controlled-form 2.4.2-rc.11 → 2.4.2-rc.14

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 (194) hide show
  1. package/cjs/autocomplete/config/useAutocomplete.js +0 -1
  2. package/cjs/autocomplete/parts/A11yFocusedOption.js +9 -6
  3. package/cjs/autocomplete/parts/container/Container.js +1 -1
  4. package/cjs/autocomplete/parts/container/useKeyboardNavigation.js +2 -2
  5. package/cjs/autocomplete/parts/menu-list/MenuList.js +3 -5
  6. package/cjs/autocomplete/parts/menu-list/styled.js +2 -2
  7. package/cjs/autocomplete/parts/menu-list/useItemRenderer.js +1 -1
  8. package/cjs/checkbox/config/useValidateProps.js +6 -3
  9. package/cjs/checkbox/styles.js +72 -28
  10. package/cjs/checkbox/utils/styleHelpers.js +20 -2
  11. package/cjs/combobox/config/useComboBox.js +1 -2
  12. package/cjs/combobox/config/useCorrectOptions.js +1 -2
  13. package/cjs/combobox/parts/A11yFocusedOption.js +4 -4
  14. package/cjs/combobox/parts/A11ySelectedValues.js +2 -2
  15. package/cjs/combobox/parts/DropdownIndicator.js +13 -5
  16. package/cjs/combobox/parts/container/Container.js +1 -1
  17. package/cjs/combobox/parts/container/styled.js +11 -10
  18. package/cjs/combobox/parts/controls/Controls.js +3 -9
  19. package/cjs/combobox/parts/controls/styled.js +54 -22
  20. package/cjs/combobox/parts/controls/useOnPillsNavigation.js +4 -12
  21. package/cjs/combobox/parts/controls-input/styled.js +41 -11
  22. package/cjs/combobox/parts/controls-input/useControlsInput.js +1 -5
  23. package/cjs/combobox/parts/controls-input/useKeyboardNavigation.js +4 -6
  24. package/cjs/combobox/parts/controls-input/useMaskedOnChange.js +1 -1
  25. package/cjs/combobox/parts/header-list/HeaderList.js +1 -1
  26. package/cjs/combobox/parts/header-list/styled.js +39 -10
  27. package/cjs/combobox/parts/header-list/useHeaderListHandlers.js +4 -11
  28. package/cjs/combobox/parts/menu-list/MenuList.js +2 -2
  29. package/cjs/combobox/parts/menu-list/styled.js +37 -21
  30. package/cjs/combobox/parts/menu-list/useItemRenderer.js +3 -3
  31. package/cjs/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
  32. package/cjs/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +1 -3
  33. package/cjs/combobox/parts/multi-selected-values-container/useGroupPills.js +1 -2
  34. package/cjs/combobox/parts/styled.js +6 -7
  35. package/cjs/combobox/sharedTypes.js +2 -2
  36. package/cjs/combobox/utils/listHelper.js +4 -9
  37. package/cjs/date-range-picker/config/useRangePickerLogic.js +4 -8
  38. package/cjs/date-range-picker/parts/ControlledDateRangeCalendar.js +0 -2
  39. package/cjs/date-range-picker/parts/ControlledDateRangeFromDate.js +0 -2
  40. package/cjs/date-range-picker/parts/ControlledDateRangeToDate.js +0 -2
  41. package/cjs/date-time-picker/config/useChangeHandlers.js +3 -3
  42. package/cjs/date-time-picker/config/useControlledDateTimePicker.js +1 -1
  43. package/cjs/date-time-picker/config/useFocusTracker.js +1 -1
  44. package/cjs/date-time-picker/config/useGetDestructuredValues.js +6 -6
  45. package/cjs/date-time-picker/config/useGetPropsBasedOnType.js +1 -1
  46. package/cjs/date-time-picker/config/useGetReferences.js +1 -1
  47. package/cjs/date-time-picker/config/useRelevantValueFromProps.js +1 -1
  48. package/cjs/date-time-picker/config/useValidateProps.js +42 -11
  49. package/cjs/date-time-picker/parts/ClearButton/ClearButton.js +1 -3
  50. package/cjs/date-time-picker/parts/DateInputs/DDInput.js +3 -7
  51. package/cjs/date-time-picker/parts/DateInputs/MMInput.js +3 -7
  52. package/cjs/date-time-picker/parts/DateInputs/YYYYInput.js +3 -7
  53. package/cjs/date-time-picker/parts/DateInputs/useDateInputs.js +13 -23
  54. package/cjs/date-time-picker/parts/Pickers/Calendar/CalendarDaysList.js +4 -4
  55. package/cjs/date-time-picker/parts/Pickers/Calendar/CalendarHead.js +6 -14
  56. package/cjs/date-time-picker/parts/Pickers/Calendar/CalendarIconTrigger.js +1 -1
  57. package/cjs/date-time-picker/parts/Pickers/Calendar/Day.js +8 -10
  58. package/cjs/date-time-picker/parts/Pickers/Calendar/Styleds.js +44 -15
  59. package/cjs/date-time-picker/parts/Pickers/Calendar/useConfigCalendarCTX.js +1 -2
  60. package/cjs/date-time-picker/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js +2 -1
  61. package/cjs/date-time-picker/parts/Pickers/Calendar/useFocusLogic.js +0 -1
  62. package/cjs/date-time-picker/parts/Pickers/Calendar/usePopperTriggerLogic.js +3 -5
  63. package/cjs/date-time-picker/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +1 -1
  64. package/cjs/date-time-picker/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +3 -5
  65. package/cjs/date-time-picker/parts/Pickers/TimeWheel/HoursList.js +5 -7
  66. package/cjs/date-time-picker/parts/Pickers/TimeWheel/MeridiemList.js +6 -8
  67. package/cjs/date-time-picker/parts/Pickers/TimeWheel/MinutesList.js +5 -7
  68. package/cjs/date-time-picker/parts/Pickers/TimeWheel/SecondsList.js +2 -2
  69. package/cjs/date-time-picker/parts/Pickers/TimeWheel/Styleds.js +47 -15
  70. package/cjs/date-time-picker/parts/Pickers/TimeWheel/TimeWheelContent.js +2 -5
  71. package/cjs/date-time-picker/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +1 -1
  72. package/cjs/date-time-picker/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js +3 -3
  73. package/cjs/date-time-picker/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +2 -5
  74. package/cjs/date-time-picker/parts/Styleds.js +12 -6
  75. package/cjs/date-time-picker/parts/TimeInputs/HHInput.js +2 -4
  76. package/cjs/date-time-picker/parts/TimeInputs/MeridiemInput.js +3 -8
  77. package/cjs/date-time-picker/parts/TimeInputs/MinutesInput.js +3 -7
  78. package/cjs/date-time-picker/parts/TimeInputs/useTimeInputs.js +14 -26
  79. package/cjs/date-time-picker/utils/dateHelpers.js +17 -34
  80. package/cjs/date-time-picker/utils/hooks/useOnClickOutside.js +1 -3
  81. package/cjs/date-time-picker/utils/stringHelpers.js +5 -11
  82. package/cjs/input-group/styled.js +79 -13
  83. package/cjs/large-text-input/DSControlledLargeTextInput.js +1 -1
  84. package/cjs/large-text-input/styles.js +27 -13
  85. package/cjs/mask-hook/hooks/useNumberMask.js +1 -5
  86. package/cjs/mask-hook/hooks/usePhoneMask.js +1 -4
  87. package/cjs/mask-hook/hooks/useRegExpMask.js +4 -7
  88. package/cjs/mask-hook/hooks/useSSNMask.js +1 -4
  89. package/cjs/mask-hook/hooks/useZipCodeMask.js +1 -4
  90. package/cjs/mask-hook/utils/addSpecialCharacters.js +0 -1
  91. package/cjs/mask-hook/utils/flatStringArray.js +0 -1
  92. package/cjs/text-input/config/useInputText.js +0 -1
  93. package/cjs/text-input/styled/borders.js +18 -11
  94. package/cjs/text-input/styled/components.js +49 -10
  95. package/cjs/toggle/ControlledToggle.js +2 -3
  96. package/cjs/toggle/styles.js +7 -5
  97. package/esm/autocomplete/config/useAutocomplete.js +0 -1
  98. package/esm/autocomplete/parts/A11yFocusedOption.js +9 -5
  99. package/esm/autocomplete/parts/container/Container.js +1 -1
  100. package/esm/autocomplete/parts/container/useKeyboardNavigation.js +2 -2
  101. package/esm/autocomplete/parts/menu-list/MenuList.js +3 -5
  102. package/esm/autocomplete/parts/menu-list/styled.js +2 -2
  103. package/esm/autocomplete/parts/menu-list/useItemRenderer.js +1 -1
  104. package/esm/checkbox/config/useValidateProps.js +6 -3
  105. package/esm/checkbox/styles.js +72 -24
  106. package/esm/checkbox/utils/styleHelpers.js +20 -2
  107. package/esm/combobox/config/useComboBox.js +0 -1
  108. package/esm/combobox/config/useCorrectOptions.js +1 -2
  109. package/esm/combobox/parts/A11yFocusedOption.js +4 -4
  110. package/esm/combobox/parts/A11ySelectedValues.js +2 -2
  111. package/esm/combobox/parts/DropdownIndicator.js +13 -4
  112. package/esm/combobox/parts/container/Container.js +1 -1
  113. package/esm/combobox/parts/container/styled.js +11 -6
  114. package/esm/combobox/parts/controls/Controls.js +3 -9
  115. package/esm/combobox/parts/controls/styled.js +54 -18
  116. package/esm/combobox/parts/controls/useOnPillsNavigation.js +4 -12
  117. package/esm/combobox/parts/controls-input/styled.js +41 -7
  118. package/esm/combobox/parts/controls-input/useControlsInput.js +1 -5
  119. package/esm/combobox/parts/controls-input/useKeyboardNavigation.js +4 -6
  120. package/esm/combobox/parts/controls-input/useMaskedOnChange.js +1 -1
  121. package/esm/combobox/parts/header-list/HeaderList.js +1 -1
  122. package/esm/combobox/parts/header-list/styled.js +40 -7
  123. package/esm/combobox/parts/header-list/useHeaderListHandlers.js +4 -11
  124. package/esm/combobox/parts/menu-list/MenuList.js +2 -2
  125. package/esm/combobox/parts/menu-list/styled.js +37 -17
  126. package/esm/combobox/parts/menu-list/useItemRenderer.js +3 -3
  127. package/esm/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
  128. package/esm/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +1 -3
  129. package/esm/combobox/parts/multi-selected-values-container/useGroupPills.js +1 -2
  130. package/esm/combobox/parts/styled.js +6 -3
  131. package/esm/combobox/sharedTypes.js +2 -2
  132. package/esm/combobox/utils/listHelper.js +4 -9
  133. package/esm/date-range-picker/config/useRangePickerLogic.js +3 -7
  134. package/esm/date-range-picker/parts/ControlledDateRangeCalendar.js +0 -2
  135. package/esm/date-range-picker/parts/ControlledDateRangeFromDate.js +0 -2
  136. package/esm/date-range-picker/parts/ControlledDateRangeToDate.js +0 -2
  137. package/esm/date-time-picker/config/useChangeHandlers.js +3 -3
  138. package/esm/date-time-picker/config/useControlledDateTimePicker.js +1 -1
  139. package/esm/date-time-picker/config/useFocusTracker.js +1 -1
  140. package/esm/date-time-picker/config/useGetDestructuredValues.js +6 -6
  141. package/esm/date-time-picker/config/useGetPropsBasedOnType.js +1 -1
  142. package/esm/date-time-picker/config/useGetReferences.js +1 -1
  143. package/esm/date-time-picker/config/useRelevantValueFromProps.js +1 -1
  144. package/esm/date-time-picker/config/useValidateProps.js +42 -11
  145. package/esm/date-time-picker/parts/ClearButton/ClearButton.js +1 -3
  146. package/esm/date-time-picker/parts/DateInputs/DDInput.js +3 -7
  147. package/esm/date-time-picker/parts/DateInputs/MMInput.js +3 -7
  148. package/esm/date-time-picker/parts/DateInputs/YYYYInput.js +3 -7
  149. package/esm/date-time-picker/parts/DateInputs/useDateInputs.js +13 -23
  150. package/esm/date-time-picker/parts/Pickers/Calendar/CalendarDaysList.js +4 -4
  151. package/esm/date-time-picker/parts/Pickers/Calendar/CalendarHead.js +6 -14
  152. package/esm/date-time-picker/parts/Pickers/Calendar/CalendarIconTrigger.js +1 -1
  153. package/esm/date-time-picker/parts/Pickers/Calendar/Day.js +8 -10
  154. package/esm/date-time-picker/parts/Pickers/Calendar/Styleds.js +44 -14
  155. package/esm/date-time-picker/parts/Pickers/Calendar/useConfigCalendarCTX.js +0 -1
  156. package/esm/date-time-picker/parts/Pickers/Calendar/useCurrentDisplayedMonthYearLogic.js +2 -1
  157. package/esm/date-time-picker/parts/Pickers/Calendar/useFocusLogic.js +0 -1
  158. package/esm/date-time-picker/parts/Pickers/Calendar/usePopperTriggerLogic.js +3 -5
  159. package/esm/date-time-picker/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +1 -1
  160. package/esm/date-time-picker/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +3 -5
  161. package/esm/date-time-picker/parts/Pickers/TimeWheel/HoursList.js +5 -7
  162. package/esm/date-time-picker/parts/Pickers/TimeWheel/MeridiemList.js +6 -8
  163. package/esm/date-time-picker/parts/Pickers/TimeWheel/MinutesList.js +5 -7
  164. package/esm/date-time-picker/parts/Pickers/TimeWheel/SecondsList.js +2 -2
  165. package/esm/date-time-picker/parts/Pickers/TimeWheel/Styleds.js +47 -14
  166. package/esm/date-time-picker/parts/Pickers/TimeWheel/TimeWheelContent.js +2 -5
  167. package/esm/date-time-picker/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +1 -1
  168. package/esm/date-time-picker/parts/Pickers/TimeWheel/useCurrentDisplayedWheelsLogic.js +3 -3
  169. package/esm/date-time-picker/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +2 -5
  170. package/esm/date-time-picker/parts/Styleds.js +12 -6
  171. package/esm/date-time-picker/parts/TimeInputs/HHInput.js +2 -4
  172. package/esm/date-time-picker/parts/TimeInputs/MeridiemInput.js +3 -8
  173. package/esm/date-time-picker/parts/TimeInputs/MinutesInput.js +3 -7
  174. package/esm/date-time-picker/parts/TimeInputs/useTimeInputs.js +14 -26
  175. package/esm/date-time-picker/utils/dateHelpers.js +17 -34
  176. package/esm/date-time-picker/utils/hooks/useOnClickOutside.js +1 -3
  177. package/esm/date-time-picker/utils/stringHelpers.js +5 -11
  178. package/esm/input-group/styled.js +79 -9
  179. package/esm/large-text-input/DSControlledLargeTextInput.js +1 -1
  180. package/esm/large-text-input/styles.js +27 -9
  181. package/esm/mask-hook/hooks/useNumberMask.js +1 -5
  182. package/esm/mask-hook/hooks/usePhoneMask.js +1 -4
  183. package/esm/mask-hook/hooks/useRegExpMask.js +4 -7
  184. package/esm/mask-hook/hooks/useSSNMask.js +1 -4
  185. package/esm/mask-hook/hooks/useZipCodeMask.js +1 -4
  186. package/esm/mask-hook/utils/addSpecialCharacters.js +0 -1
  187. package/esm/mask-hook/utils/flatStringArray.js +0 -1
  188. package/esm/text-input/config/useInputText.js +0 -1
  189. package/esm/text-input/styled/borders.js +18 -7
  190. package/esm/text-input/styled/components.js +49 -6
  191. package/esm/toggle/ControlledToggle.js +0 -1
  192. package/esm/toggle/styles.js +7 -5
  193. package/package.json +15 -15
  194. package/types/text-input/config/useInputText.d.ts +3 -3
@@ -6,7 +6,7 @@ const StyledListWrapper = /*#__PURE__*/styled.div.withConfig({
6
6
  let {
7
7
  minWidth
8
8
  } = _ref;
9
- return minWidth ? "".concat(minWidth, "px") : '100%';
9
+ return minWidth ? `${minWidth}px` : '100%';
10
10
  });
11
11
  const StyledList = /*#__PURE__*/styled.ul.withConfig({
12
12
  componentId: "sc-qt1kwv-1"
@@ -17,7 +17,7 @@ const StyledVirtualListWrapper = /*#__PURE__*/styled.div.withConfig({
17
17
  let {
18
18
  maxHeight
19
19
  } = _ref2;
20
- return "".concat(!maxHeight ? '400' : maxHeight, "px");
20
+ return `${!maxHeight ? '400' : maxHeight}px`;
21
21
  });
22
22
 
23
23
  export { StyledList, StyledListWrapper, StyledVirtualListWrapper };
@@ -43,7 +43,7 @@ const useItemRenderer = () => {
43
43
  left: 0,
44
44
  width: '100%'
45
45
  },
46
- key: "".concat(option.dsId),
46
+ key: `${option.dsId}`,
47
47
  innerRef: vItem.measureRef
48
48
  };
49
49
 
@@ -1,18 +1,21 @@
1
+ import 'core-js/modules/es.error.cause.js';
1
2
  import { useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
2
3
 
3
4
  const throwError = message => {
4
- throw new Error("DSControlledCheckbox:: ".concat(message, "\n "));
5
+ throw new Error(`DSControlledCheckbox:: ${message}
6
+ `);
5
7
  };
6
8
 
7
9
  const useValidateProps = (props, propTypes) => {
8
10
  useValidateTypescriptPropTypes(props, propTypes);
9
11
 
10
12
  if (typeof props.label === 'undefined' && typeof props['aria-label'] === 'undefined') {
11
- throwError("Please provide a label or ariaLabel property to use this component.");
13
+ throwError(`Please provide a label or ariaLabel property to use this component.`);
12
14
  }
13
15
 
14
16
  if (props.checked === 'mixed' && typeof props['aria-controls'] === 'undefined') {
15
- throwError("Please provide an ariaControls property to use a checkbox mixed state. \n This property must be a string containing all the ids that this mixed checkbox is controlling.");
17
+ throwError(`Please provide an ariaControls property to use a checkbox mixed state.
18
+ This property must be a string containing all the ids that this mixed checkbox is controlling.`);
16
19
  }
17
20
  };
18
21
 
@@ -1,41 +1,51 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { styled, css } from '@elliemae/ds-system';
3
2
  import { handleBackgroundColor, handleCheckmark } from './utils/styleHelpers.js';
4
3
  import { DSCheckboxName, DSCheckboxSlots } from './exported-related/theming.js';
5
4
 
6
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
7
5
  const StyledContainer = styled('div', {
8
6
  name: DSCheckboxName,
9
7
  slot: DSCheckboxSlots.CONTAINER
10
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-grid;\n grid-template-rows: min-content;\n grid-template-columns: ", " auto;\n align-items: center;\n"])), _ref => {
8
+ })`
9
+ display: inline-grid;
10
+ grid-template-rows: min-content;
11
+ grid-template-columns: ${_ref => {
11
12
  let {
12
13
  theme
13
14
  } = _ref;
14
15
  return theme.space.xs;
15
- });
16
- const StyledCheckBox = styled('span')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n border: 1px solid ", ";\n border-radius: 2px;\n position: relative;\n background: ", ";\n ", "\n &:focus-within {\n ", ";\n &:hover {\n ", "\n }\n }\n &:hover {\n background: ", ";\n ", ";\n }\n"])), _ref2 => {
16
+ }} auto;
17
+ align-items: center;
18
+ `;
19
+ const StyledCheckBox = styled('span')`
20
+ width: ${_ref2 => {
17
21
  let {
18
22
  theme
19
23
  } = _ref2;
20
24
  return theme.space.xs;
21
- }, _ref3 => {
25
+ }};
26
+ height: ${_ref3 => {
22
27
  let {
23
28
  theme
24
29
  } = _ref3;
25
30
  return theme.space.xs;
26
- }, _ref4 => {
31
+ }};
32
+ border: 1px solid ${_ref4 => {
27
33
  let {
28
34
  theme,
29
35
  hasError
30
36
  } = _ref4;
31
37
  return hasError ? theme.colors.danger[900] : theme.colors.neutral[400];
32
- }, _ref5 => {
38
+ }};
39
+ border-radius: 2px;
40
+ position: relative;
41
+ background: ${_ref5 => {
33
42
  let {
34
43
  theme,
35
44
  disabled
36
45
  } = _ref5;
37
46
  return handleBackgroundColor(theme, disabled);
38
- }, _ref6 => {
47
+ }};
48
+ ${_ref6 => {
39
49
  let {
40
50
  theme,
41
51
  checked,
@@ -44,14 +54,18 @@ const StyledCheckBox = styled('span')(_templateObject2 || (_templateObject2 = _t
44
54
  hasError
45
55
  } = _ref6;
46
56
  return handleCheckmark(theme, checked, disabled, readOnly, hasError);
47
- }, _ref7 => {
57
+ }}
58
+ &:focus-within {
59
+ ${_ref7 => {
48
60
  let {
49
61
  theme,
50
62
  hasError,
51
63
  disabled
52
64
  } = _ref7;
53
- return !disabled && !hasError ? "border: 1px solid ".concat(theme.colors.brand[700], "; outline : 1px solid ").concat(theme.colors.brand[700], " ") : undefined;
54
- }, _ref8 => {
65
+ return !disabled && !hasError ? `border: 1px solid ${theme.colors.brand[700]}; outline : 1px solid ${theme.colors.brand[700]} ` : undefined;
66
+ }};
67
+ &:hover {
68
+ ${_ref8 => {
55
69
  let {
56
70
  theme,
57
71
  checked,
@@ -60,41 +74,71 @@ const StyledCheckBox = styled('span')(_templateObject2 || (_templateObject2 = _t
60
74
  hasError
61
75
  } = _ref8;
62
76
  return handleCheckmark(theme, checked, disabled, readOnly, hasError, true);
63
- }, _ref9 => {
77
+ }}
78
+ }
79
+ }
80
+ &:hover {
81
+ background: ${_ref9 => {
64
82
  let {
65
83
  theme,
66
84
  checked,
67
85
  disabled
68
86
  } = _ref9;
69
87
  return !disabled && (checked === 'mixed' || checked) ? theme.colors.brand[200] : undefined;
70
- }, _ref10 => {
88
+ }};
89
+ ${_ref10 => {
71
90
  let {
72
91
  theme,
73
92
  hasError,
74
93
  disabled,
75
94
  readOnly
76
95
  } = _ref10;
77
- return !hasError && !disabled && !readOnly ? " border: 1px solid ".concat(theme.colors.brand[600]) : undefined;
78
- });
79
- const checkboxStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n cursor: pointer;\n }\n &:disabled {\n cursor: not-allowed;\n }\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n"])));
96
+ return !hasError && !disabled && !readOnly ? ` border: 1px solid ${theme.colors.brand[600]}` : undefined;
97
+ }};
98
+ }
99
+ `;
100
+ const checkboxStyles = css`
101
+ &:hover {
102
+ cursor: pointer;
103
+ }
104
+ &:disabled {
105
+ cursor: not-allowed;
106
+ }
107
+ width: 100%;
108
+ height: 100%;
109
+ position: absolute;
110
+ top: 0;
111
+ left: 0;
112
+ opacity: 0;
113
+ `;
80
114
  const StyledInput = styled('input', {
81
115
  name: DSCheckboxName,
82
116
  slot: DSCheckboxSlots.INPUT
83
- })(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n"])), checkboxStyles);
117
+ })`
118
+ ${checkboxStyles}
119
+ `;
84
120
  const StyledInputMixed = styled('div', {
85
121
  name: DSCheckboxName,
86
122
  slot: DSCheckboxSlots.INPUT
87
- })(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n"])), checkboxStyles);
123
+ })`
124
+ ${checkboxStyles}
125
+ `;
88
126
  const StyledLabel = styled('label', {
89
127
  name: DSCheckboxName,
90
128
  slot: DSCheckboxSlots.LABEL
91
- })(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n &:hover {\n cursor: pointer;\n }\n ", ";\n\n color: ", ";\n font-size: 13px;\n line-height: 13px;\n display: inherit;\n"])), _ref11 => {
129
+ })`
130
+ &:hover {
131
+ cursor: pointer;
132
+ }
133
+ ${_ref11 => {
92
134
  let {
93
135
  wrapLabel,
94
136
  theme
95
137
  } = _ref11;
96
- return wrapLabel ? 'padding: 8px 0px 8px 8px;' : "padding-left: ".concat(theme.space.xxs);
97
- }, _ref12 => {
138
+ return wrapLabel ? 'padding: 8px 0px 8px 8px;' : `padding-left: ${theme.space.xxs}`;
139
+ }};
140
+
141
+ color: ${_ref12 => {
98
142
  let {
99
143
  theme,
100
144
  disabled,
@@ -102,7 +146,11 @@ const StyledLabel = styled('label', {
102
146
  checked
103
147
  } = _ref12;
104
148
  return disabled && checked !== true || readOnly ? theme.colors.neutral[500] : theme.colors.neutral[800];
105
- });
106
- const StyledWrapLabel = styled('span')(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([""])));
149
+ }};
150
+ font-size: 13px;
151
+ line-height: 13px;
152
+ display: inherit;
153
+ `;
154
+ const StyledWrapLabel = styled('span')``;
107
155
 
108
156
  export { StyledCheckBox, StyledContainer, StyledInput, StyledInputMixed, StyledLabel, StyledWrapLabel };
@@ -22,11 +22,29 @@ const handleCheckmark = function (theme, checked, disabled, readOnly, hasError)
22
22
  let isHovering = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
23
23
 
24
24
  if (checked === 'mixed') {
25
- return "&:before {\n position: absolute;\n content: '';\n top: 6px;\n left: 3px;\n background: ".concat(handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError), ";\n width: ").concat(theme.space.xxs, ";\n height: 2px;\n }");
25
+ return `&:before {
26
+ position: absolute;
27
+ content: '';
28
+ top: 6px;
29
+ left: 3px;
30
+ background: ${handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError)};
31
+ width: ${theme.space.xxs};
32
+ height: 2px;
33
+ }`;
26
34
  }
27
35
 
28
36
  if (checked) {
29
- return "&:before {\n position: absolute;\n content: '';\n top: 3px;\n left: 2px;\n border-left: 2px solid ".concat(handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError), ";\n border-bottom: 2px solid ").concat(handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError), ";\n height: 5px;\n width: 10px;\n transform: rotate(-45deg);\n }");
37
+ return `&:before {
38
+ position: absolute;
39
+ content: '';
40
+ top: 3px;
41
+ left: 2px;
42
+ border-left: 2px solid ${handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError)};
43
+ border-bottom: 2px solid ${handleCheckMarkColor(theme, checked, isHovering, disabled, readOnly, hasError)};
44
+ height: 5px;
45
+ width: 10px;
46
+ transform: rotate(-45deg);
47
+ }`;
30
48
  }
31
49
 
32
50
  return '';
@@ -4,7 +4,6 @@ import 'core-js/modules/esnext.iterator.filter.js';
4
4
  import 'core-js/modules/esnext.async-iterator.for-each.js';
5
5
  import 'core-js/modules/esnext.iterator.for-each.js';
6
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
- import 'core-js/modules/web.dom-collections.iterator.js';
8
7
  import { useRef, useState, useMemo, useCallback, useEffect } from 'react';
9
8
  import { useVirtual } from 'react-virtual';
10
9
  import { useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import { useMemo } from 'react';
3
2
  import { uid } from 'uid';
4
3
  import { MENU_OPTION_TYPES } from '../constants.js';
@@ -24,7 +23,7 @@ const useCorrectOptions = (propsWithDefaults, inputValue, showSelectedOptions) =
24
23
  if (onCreate && inputValue && filteredOptions.findIndex(option => option.type === MENU_OPTION_TYPES.OPTION && option.label === inputValue) === -1) {
25
24
  const creatableUuid = uid();
26
25
  const creatableItem = {
27
- dsId: "creatable-".concat(creatableUuid),
26
+ dsId: `creatable-${creatableUuid}`,
28
27
  label: inputValue,
29
28
  type: 'creatable'
30
29
  };
@@ -19,7 +19,7 @@ const A11yFocusedOption = () => {
19
19
  } = useContext(ComboBoxContext);
20
20
  const selectabledOptions = getSelectableOptions(filteredOptions);
21
21
  const focusOption = filteredOptions.find(option => option.dsId === focusOptionIdx);
22
- const isFocusOptionSelected = (focusOption === null || focusOption === void 0 ? void 0 : focusOption.type) === 'option' && isSelected(selectedValues, focusOption);
22
+ const isFocusOptionSelected = focusOption?.type === 'option' && isSelected(selectedValues, focusOption);
23
23
  const focusSelectableOptionIdx = selectabledOptions.findIndex(option => option.dsId === focusOptionIdx);
24
24
  const navigationContext = 'Use up and down to choose options,press enter to choose focused option, press Escape to excuse dropdown menu';
25
25
  return useMemo(() => {
@@ -27,12 +27,12 @@ const A11yFocusedOption = () => {
27
27
  "aria-live": "polite",
28
28
  "aria-atomic": "false",
29
29
  "aria-relevant": "additions text"
30
- }, menuState, "option ".concat(focusOption === null || focusOption === void 0 ? void 0 : focusOption.label, " ").concat(isFocusOptionSelected ? 'selected and ' : '', "focused .").concat(focusSelectableOptionIdx + 1, " of ").concat(selectabledOptions.length, ". ").concat(navigationContext, " "));
31
- if ((focusOption === null || focusOption === void 0 ? void 0 : focusOption.type) === 'creatable') return /*#__PURE__*/_jsx(StyledA11ySelectedValues, {
30
+ }, menuState, `option ${focusOption?.label} ${isFocusOptionSelected ? 'selected and ' : ''}focused .${focusSelectableOptionIdx + 1} of ${selectabledOptions.length}. ${navigationContext} `);
31
+ if (focusOption?.type === 'creatable') return /*#__PURE__*/_jsx(StyledA11ySelectedValues, {
32
32
  "aria-live": "assertive",
33
33
  "aria-atomic": "false",
34
34
  "aria-relevant": "additions text"
35
- }, menuState, "Press enter to Add: ".concat(focusOption === null || focusOption === void 0 ? void 0 : focusOption.label, ". ").concat(navigationContext));
35
+ }, menuState, `Press enter to Add: ${focusOption?.label}. ${navigationContext}`);
36
36
  return null;
37
37
  }, [focusOption, menuState, isFocusOptionSelected, focusSelectableOptionIdx, selectabledOptions.length]);
38
38
  };
@@ -17,10 +17,10 @@ const A11ySelectedValues = () => {
17
17
 
18
18
  if (Array.isArray(selectedValues)) {
19
19
  if (selectedValues.length > 0) {
20
- msg = "Options selected: ".concat(selectedValues.map(item => item.label).join(', '));
20
+ msg = `Options selected: ${selectedValues.map(item => item.label).join(', ')}`;
21
21
  }
22
22
  } else if (selectedValues) {
23
- msg = "Option selected: ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.label);
23
+ msg = `Option selected: ${selectedValues?.label}`;
24
24
  }
25
25
 
26
26
  return /*#__PURE__*/_jsx(StyledA11ySelectedValues, {
@@ -1,5 +1,4 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
3
2
  import { useContext, useMemo, useCallback } from 'react';
4
3
  import { styled } from '@elliemae/ds-system';
5
4
  import { DSButtonV2 } from '@elliemae/ds-button';
@@ -7,14 +6,24 @@ import { ChevronSmallDown } from '@elliemae/ds-icons';
7
6
  import { ComboBoxContext } from '../ComboBoxCTX.js';
8
7
  import { ComboboxDataTestid } from '../ComboboxDataTestids.js';
9
8
 
10
- var _templateObject;
11
- const StyledDropDownButton = styled(DSButtonV2)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &:focus::after {\n border: none;\n }\n &:hover:not(:disabled) {\n background-color: transparent;\n }\n\n & svg {\n fill: ", ";\n }\n"])), _ref => {
9
+ const StyledDropDownButton = styled(DSButtonV2)`
10
+ &:focus::after {
11
+ border: none;
12
+ }
13
+ &:hover:not(:disabled) {
14
+ background-color: transparent;
15
+ }
16
+
17
+ & svg {
18
+ fill: ${_ref => {
12
19
  let {
13
20
  theme,
14
21
  disabled
15
22
  } = _ref;
16
23
  return disabled ? theme.colors.neutral['400'] : theme.colors.brand['700'];
17
- });
24
+ }};
25
+ }
26
+ `;
18
27
  const DropdownIndicator = () => {
19
28
  const {
20
29
  props: {
@@ -51,7 +51,7 @@ const Container = () => {
51
51
  }, []);
52
52
  const handleCloseMenu = useCallback(() => {
53
53
  setMenuState(false, 'blur');
54
- if (innerRef !== null && innerRef !== void 0 && innerRef.current) innerRef.current.blur();
54
+ if (innerRef?.current) innerRef.current.blur();
55
55
  }, [innerRef, setMenuState]);
56
56
  useEffect(() => {
57
57
  const closeMenuOnWindowBlur = () => {
@@ -1,22 +1,27 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { styled } from '@elliemae/ds-system';
3
2
  import { DSComboBoxName, DSComboboxSlots } from '../../theming.js';
4
3
 
5
- var _templateObject, _templateObject2;
6
4
  const StyledContainer = styled('div', {
7
5
  name: DSComboBoxName,
8
6
  slot: DSComboboxSlots.CONTAINER
9
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n cursor: ", ";\n"])), _ref => {
7
+ })`
8
+ position: relative;
9
+ cursor: ${_ref => {
10
10
  let {
11
11
  disabled
12
12
  } = _ref;
13
13
  return disabled ? 'not-allowed' : 'default';
14
- });
15
- const StyledPopperWrapper = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n cursor: ", ";\n overflow: auto;\n"])), _ref2 => {
14
+ }};
15
+ `;
16
+ const StyledPopperWrapper = styled('div')`
17
+ position: relative;
18
+ cursor: ${_ref2 => {
16
19
  let {
17
20
  disabled
18
21
  } = _ref2;
19
22
  return disabled ? 'not-allowed' : 'default';
20
- });
23
+ }};
24
+ overflow: auto;
25
+ `;
21
26
 
22
27
  export { StyledContainer, StyledPopperWrapper };
@@ -34,20 +34,16 @@ const Controls = () => {
34
34
  controlsWrapperRef
35
35
  } = useContext(ComboBoxContext);
36
36
  const handleOnClick = useCallback(() => {
37
- var _innerRef$current2;
38
-
39
37
  if (disabled) return;
40
38
 
41
39
  if (hasFocus && menuState && !inline) {
42
- var _innerRef$current;
43
-
44
40
  setMenuState(false);
45
41
  setFocusOptionIdx('');
46
- (_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 ? void 0 : _innerRef$current.blur();
42
+ innerRef.current?.blur();
47
43
  return;
48
44
  }
49
45
 
50
- (_innerRef$current2 = innerRef.current) === null || _innerRef$current2 === void 0 ? void 0 : _innerRef$current2.focus();
46
+ innerRef.current?.focus();
51
47
  setMenuState(true);
52
48
  window.requestAnimationFrame(() => {
53
49
  window.requestAnimationFrame(() => {
@@ -60,9 +56,7 @@ const Controls = () => {
60
56
  if (menuState || disabled) {
61
57
  e.stopPropagation();
62
58
  } else {
63
- var _innerRef$current3;
64
-
65
- (_innerRef$current3 = innerRef.current) === null || _innerRef$current3 === void 0 ? void 0 : _innerRef$current3.focus();
59
+ innerRef.current?.focus();
66
60
  setMenuState(true);
67
61
  }
68
62
  }, [menuState, innerRef, disabled, setMenuState]); // callback to prevent onBlur on the input when clicking in all the wrapper
@@ -1,58 +1,94 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { css, styled } from '@elliemae/ds-system';
3
2
  import { Grid } from '@elliemae/ds-grid';
4
3
  import { DSComboBoxName, DSComboboxSlots } from '../../theming.js';
5
4
 
6
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
7
- const normalBorder = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n"])), _ref => {
5
+ const normalBorder = css`
6
+ border: 1px solid ${_ref => {
8
7
  let {
9
8
  hasError,
10
9
  theme
11
10
  } = _ref;
12
11
  return hasError ? theme.colors.danger[900] : theme.colors.neutral[400];
13
- });
14
- const focusBorder = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n outline: 2px solid ", ";\n outline-offset: -2px;\n"])), _ref2 => {
12
+ }};
13
+ `;
14
+ const focusBorder = css`
15
+ outline: 2px solid ${_ref2 => {
15
16
  let {
16
17
  theme
17
18
  } = _ref2;
18
19
  return theme.colors.brand[700];
19
- });
20
- const hoverBorder = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n"])), _ref3 => {
20
+ }};
21
+ outline-offset: -2px;
22
+ `;
23
+ const hoverBorder = css`
24
+ border: 1px solid ${_ref3 => {
21
25
  let {
22
26
  theme
23
27
  } = _ref3;
24
28
  return theme.colors.brand[700];
25
- });
29
+ }};
30
+ `;
26
31
  const StyledControlsWrapper = styled(Grid, {
27
32
  name: DSComboBoxName,
28
33
  slot: DSComboboxSlots.INPUT_WRAPPER
29
- })(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: ", ";\n position: relative;\n border-radius: 2px;\n min-width: ", ";\n align-items: center;\n align-content: center;\n height: 28px;\n padding-left: 8px;\n margin: ", ";\n ", "\n &:hover {\n ", "\n }\n &:focus-within {\n ", "\n }\n"])), _ref4 => {
34
+ })`
35
+ background: ${_ref4 => {
30
36
  let {
31
37
  disabled,
32
38
  theme
33
39
  } = _ref4;
34
40
  return disabled ? theme.colors.neutral['080'] : '#ffffff';
35
- }, _ref5 => {
41
+ }};
42
+ position: relative;
43
+ border-radius: 2px;
44
+ min-width: ${_ref5 => {
36
45
  let {
37
46
  minWidth,
38
47
  inline
39
48
  } = _ref5;
40
- return inline || !minWidth ? '' : "".concat(minWidth, "px");
41
- }, _ref6 => {
49
+ return inline || !minWidth ? '' : `${minWidth}px`;
50
+ }};
51
+ align-items: center;
52
+ align-content: center;
53
+ height: 28px;
54
+ padding-left: 8px;
55
+ margin: ${_ref6 => {
42
56
  let {
43
57
  inline
44
58
  } = _ref6;
45
59
  return inline ? '10px 16px' : '';
46
- }, normalBorder, hoverBorder, focusBorder);
47
- const StyledSelection = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 13px;\n margin-right: 3px;\n display: flex;\n"])));
48
- const StyledHeaderActionsWrapper = styled(Grid)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n height: 100%;\n .em-ds-button--text:focus::after {\n border: none;\n }\n"])));
49
- const StyleDropdownIndicator = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([""])));
50
- const StyleHeaderActionsSeparator = styled.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n align-self: stretch;\n margin: 4px 0px;\n width: 1px;\n background-color: ", ";\n"])), _ref7 => {
60
+ }};
61
+ ${normalBorder}
62
+ &:hover {
63
+ ${hoverBorder}
64
+ }
65
+ &:focus-within {
66
+ ${focusBorder}
67
+ }
68
+ `;
69
+ const StyledSelection = styled.div`
70
+ font-size: 13px;
71
+ margin-right: 3px;
72
+ display: flex;
73
+ `;
74
+ const StyledHeaderActionsWrapper = styled(Grid)`
75
+ height: 100%;
76
+ .em-ds-button--text:focus::after {
77
+ border: none;
78
+ }
79
+ `;
80
+ const StyleDropdownIndicator = styled.div``;
81
+ const StyleHeaderActionsSeparator = styled.span`
82
+ align-self: stretch;
83
+ margin: 4px 0px;
84
+ width: 1px;
85
+ background-color: ${_ref7 => {
51
86
  let {
52
87
  theme,
53
88
  disabled
54
89
  } = _ref7;
55
90
  return disabled ? theme.colors.neutral['400'] : theme.colors.neutral['500'];
56
- });
91
+ }};
92
+ `;
57
93
 
58
94
  export { StyleDropdownIndicator, StyleHeaderActionsSeparator, StyledControlsWrapper, StyledHeaderActionsWrapper, StyledSelection };
@@ -17,30 +17,22 @@ const useOnPillsNavigation = () => {
17
17
  const onKeyDownPills = useCallback(e => {
18
18
  if ((e.key === 'ArrowLeft' || e.key === 'ArrowRight' || e.key === 'ArrowUp' || e.key === 'ArrowDown') && inputValue === '') {
19
19
  if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
20
- var _innerRef$current;
21
-
22
- (_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 ? void 0 : _innerRef$current.focus();
20
+ innerRef.current?.focus();
23
21
  setMenuState(true, 'open', e);
24
22
  return;
25
23
  }
26
24
 
27
25
  if (e.key === 'ArrowLeft') {
28
- var _selectedOptionsRef$c;
29
-
30
- const removablePills = (_selectedOptionsRef$c = selectedOptionsRef.current) === null || _selectedOptionsRef$c === void 0 ? void 0 : _selectedOptionsRef$c.querySelectorAll(REMOVABLE_PILL_SELECTOR);
26
+ const removablePills = selectedOptionsRef.current?.querySelectorAll(REMOVABLE_PILL_SELECTOR);
31
27
 
32
28
  if (hasFocus && removablePills) {
33
- var _removablePills;
34
-
35
- (_removablePills = removablePills[removablePills.length - 1]) === null || _removablePills === void 0 ? void 0 : _removablePills.focus();
29
+ removablePills[removablePills.length - 1]?.focus();
36
30
  }
37
31
  }
38
32
 
39
33
  if (e.key === 'ArrowRight') {
40
- var _innerRef$current2;
41
-
42
34
  e.preventDefault();
43
- (_innerRef$current2 = innerRef.current) === null || _innerRef$current2 === void 0 ? void 0 : _innerRef$current2.focus();
35
+ innerRef.current?.focus();
44
36
  }
45
37
  }
46
38
  }, [inputValue, innerRef, setMenuState, selectedOptionsRef, hasFocus]);
@@ -1,19 +1,53 @@
1
- import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
2
1
  import { styled } from '@elliemae/ds-system';
3
2
  import { DSComboBoxName, DSComboboxSlots } from '../../theming.js';
4
3
 
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
6
4
  const StyledInput = styled('input', {
7
5
  name: DSComboBoxName,
8
6
  slot: DSComboboxSlots.INPUT
9
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 13px;\n line-height: 13px;\n border: none;\n padding: 0;\n outline: none;\n color: ", ";\n &:focus {\n outline: none;\n }\n ", "\n &::placeholder {\n color: transparent;\n }\n"])), props => props.theme.colors.neutral[700], _ref => {
7
+ })`
8
+ font-size: 13px;
9
+ line-height: 13px;
10
+ border: none;
11
+ padding: 0;
12
+ outline: none;
13
+ color: ${props => props.theme.colors.neutral[700]};
14
+ &:focus {
15
+ outline: none;
16
+ }
17
+ ${_ref => {
10
18
  let {
11
19
  withoutCaret
12
20
  } = _ref;
13
21
  return withoutCaret && 'caret-color: transparent;';
14
- });
15
- const StyledInputPlaceHolder = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-style: italic;\n color: ", ";\n position: absolute;\n display: flex;\n align-items: center;\n width: 100%;\n user-select: none;\n height: 28px;\n font-size: 13px;\n & span::after {\n content: '';\n padding: 1px;\n }\n"])), props => props.theme.colors.neutral[500]);
16
- const StyledInputWidthReference = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n visibility: hidden;\n position: absolute;\n top: -9999px;\n"])));
17
- const StyledInputWrapper = styled('div')(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n display: flex;\n"])));
22
+ }}
23
+ &::placeholder {
24
+ color: transparent;
25
+ }
26
+ `;
27
+ const StyledInputPlaceHolder = styled.div`
28
+ font-style: italic;
29
+ color: ${props => props.theme.colors.neutral[500]};
30
+ position: absolute;
31
+ display: flex;
32
+ align-items: center;
33
+ width: 100%;
34
+ user-select: none;
35
+ height: 28px;
36
+ font-size: 13px;
37
+ & span::after {
38
+ content: '';
39
+ padding: 1px;
40
+ }
41
+ `;
42
+ const StyledInputWidthReference = styled.span`
43
+ visibility: hidden;
44
+ position: absolute;
45
+ top: -9999px;
46
+ `;
47
+ const StyledInputWrapper = styled('div')`
48
+ position: relative;
49
+ align-items: center;
50
+ display: flex;
51
+ `;
18
52
 
19
53
  export { StyledInput, StyledInputPlaceHolder, StyledInputWidthReference, StyledInputWrapper };