glints-aries 4.1.7 → 4.1.9

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 (75) hide show
  1. package/es/@next/Input/Input.d.ts +8 -0
  2. package/es/@next/Input/Input.js +27 -5
  3. package/es/@next/Input/InputStyle.d.ts +15 -2
  4. package/es/@next/Input/InputStyle.js +36 -3
  5. package/es/@next/NumberInput/NumberInput.d.ts +12 -2
  6. package/es/@next/NumberInput/NumberInput.js +20 -2
  7. package/es/@next/Pagination/PaginationStyle.d.ts +6 -1
  8. package/es/@next/PasswordInput/PasswordInput.d.ts +16 -0
  9. package/es/@next/PasswordInput/PasswordInput.js +18 -2
  10. package/es/@next/Select/Select.d.ts +7 -1
  11. package/es/@next/Select/Select.js +27 -7
  12. package/es/@next/Select/Select.stories.d.ts +2 -0
  13. package/es/@next/Select/components/Activator/ActivatorSelect.d.ts +7 -1
  14. package/es/@next/Select/components/Activator/ActivatorSelect.js +22 -7
  15. package/es/@next/Select/components/Activator/ActivatorStyle.d.ts +15 -0
  16. package/es/@next/Select/components/Activator/ActivatorStyle.js +16 -2
  17. package/es/@next/Select/components/Activator/ActivatorTextInput.d.ts +6 -1
  18. package/es/@next/Select/components/Activator/ActivatorTextInput.js +17 -3
  19. package/es/@next/Select/components/SearchableSelectInput/ClearSelected.d.ts +2 -1
  20. package/es/@next/Select/components/SearchableSelectInput/ClearSelected.js +5 -2
  21. package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInput.d.ts +12 -0
  22. package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +29 -9
  23. package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInputStyle.d.ts +11 -2
  24. package/es/@next/Select/components/SearchableSelectInput/SearchableSelectInputStyle.js +11 -2
  25. package/es/@next/TextArea/TextArea.d.ts +14 -0
  26. package/es/@next/TextArea/TextArea.js +25 -4
  27. package/es/@next/TextArea/TextArea.stories.d.ts +1 -0
  28. package/es/@next/TextArea/TextAreaStyle.d.ts +3 -0
  29. package/es/@next/TextArea/TextAreaStyle.js +13 -3
  30. package/es/@next/TextInput/TextInput.d.ts +16 -0
  31. package/es/@next/TextInput/TextInput.js +18 -2
  32. package/es/@next/TextInput/TextInput.stories.d.ts +1 -0
  33. package/es/Input/PhoneNumberInput/PhoneNumberInput.d.ts +4 -1
  34. package/es/Input/PhoneNumberInput/PhoneNumberInput.js +12 -6
  35. package/es/Input/PhoneNumberInput/PhoneNumberInput.stories.d.ts +1 -0
  36. package/es/Input/PhoneNumberInput/PhoneNumberInputStyles.d.ts +3 -1
  37. package/es/Input/PhoneNumberInput/PhoneNumberInputStyles.js +9 -6
  38. package/lib/@next/Input/Input.d.ts +8 -0
  39. package/lib/@next/Input/Input.js +26 -4
  40. package/lib/@next/Input/InputStyle.d.ts +15 -2
  41. package/lib/@next/Input/InputStyle.js +40 -5
  42. package/lib/@next/NumberInput/NumberInput.d.ts +12 -2
  43. package/lib/@next/NumberInput/NumberInput.js +20 -2
  44. package/lib/@next/Pagination/PaginationStyle.d.ts +6 -1
  45. package/lib/@next/PasswordInput/PasswordInput.d.ts +16 -0
  46. package/lib/@next/PasswordInput/PasswordInput.js +18 -2
  47. package/lib/@next/Select/Select.d.ts +7 -1
  48. package/lib/@next/Select/Select.js +27 -7
  49. package/lib/@next/Select/Select.stories.d.ts +2 -0
  50. package/lib/@next/Select/components/Activator/ActivatorSelect.d.ts +7 -1
  51. package/lib/@next/Select/components/Activator/ActivatorSelect.js +21 -6
  52. package/lib/@next/Select/components/Activator/ActivatorStyle.d.ts +15 -0
  53. package/lib/@next/Select/components/Activator/ActivatorStyle.js +18 -3
  54. package/lib/@next/Select/components/Activator/ActivatorTextInput.d.ts +6 -1
  55. package/lib/@next/Select/components/Activator/ActivatorTextInput.js +17 -3
  56. package/lib/@next/Select/components/SearchableSelectInput/ClearSelected.d.ts +2 -1
  57. package/lib/@next/Select/components/SearchableSelectInput/ClearSelected.js +5 -2
  58. package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInput.d.ts +12 -0
  59. package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInput.js +28 -8
  60. package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInputStyle.d.ts +11 -2
  61. package/lib/@next/Select/components/SearchableSelectInput/SearchableSelectInputStyle.js +11 -2
  62. package/lib/@next/TextArea/TextArea.d.ts +14 -0
  63. package/lib/@next/TextArea/TextArea.js +25 -4
  64. package/lib/@next/TextArea/TextArea.stories.d.ts +1 -0
  65. package/lib/@next/TextArea/TextAreaStyle.d.ts +3 -0
  66. package/lib/@next/TextArea/TextAreaStyle.js +13 -3
  67. package/lib/@next/TextInput/TextInput.d.ts +16 -0
  68. package/lib/@next/TextInput/TextInput.js +18 -2
  69. package/lib/@next/TextInput/TextInput.stories.d.ts +1 -0
  70. package/lib/Input/PhoneNumberInput/PhoneNumberInput.d.ts +4 -1
  71. package/lib/Input/PhoneNumberInput/PhoneNumberInput.js +12 -6
  72. package/lib/Input/PhoneNumberInput/PhoneNumberInput.stories.d.ts +1 -0
  73. package/lib/Input/PhoneNumberInput/PhoneNumberInputStyles.d.ts +3 -1
  74. package/lib/Input/PhoneNumberInput/PhoneNumberInputStyles.js +9 -6
  75. package/package.json +1 -1
@@ -4,6 +4,19 @@ export interface PreffixSuffixWidthProps {
4
4
  suffixWidth: number;
5
5
  }
6
6
  export declare const StyledContainer: import("styled-components").StyledComponent<"div", any, InputProps & PreffixSuffixWidthProps, never>;
7
- export declare const StyledPrefixContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const StyledSuffixContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const StyledPrefixContainer: import("styled-components").StyledComponent<"div", any, {
8
+ height?: string;
9
+ }, never>;
10
+ export declare const StyledSuffixContainer: import("styled-components").StyledComponent<"div", any, {
11
+ height?: string;
12
+ } & {
13
+ height?: string;
14
+ }, never>;
15
+ export declare const FloatingLabel: import("styled-components").StyledComponent<"label", any, {
16
+ top?: number;
17
+ left?: number;
18
+ fontSize?: string;
19
+ color?: string;
20
+ }, never>;
9
21
  export declare const StyledInput: import("styled-components").StyledComponent<"input", any, InputProps, never>;
22
+ export declare const AsteriskIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -2,13 +2,14 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.StyledSuffixContainer = exports.StyledPrefixContainer = exports.StyledInput = exports.StyledContainer = void 0;
5
+ exports.StyledSuffixContainer = exports.StyledPrefixContainer = exports.StyledInput = exports.StyledContainer = exports.FloatingLabel = exports.AsteriskIcon = void 0;
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var Breakpoints = _interopRequireWildcard(require("../utilities/breakpoints"));
8
8
  var _colors = require("../utilities/colors");
9
9
  var _spacing = require("../utilities/spacing");
10
10
  var _fonts = require("../utilities/fonts");
11
11
  var _borderRadius = require("../utilities/borderRadius");
12
+ var _Colors = require("../../Utils/Colors");
12
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
15
  var StyledContainer = _styledComponents["default"].div.withConfig({
@@ -23,15 +24,49 @@ exports.StyledContainer = StyledContainer;
23
24
  var StyledPrefixContainer = _styledComponents["default"].div.withConfig({
24
25
  displayName: "InputStyle__StyledPrefixContainer",
25
26
  componentId: "sc-15z2mnd-1"
26
- })(["position:absolute;left:0;color:", ";display:flex;align-items:center;height:36px;padding:0px ", " 0 ", ";svg{height:17px;width:17px;fill:", ";}"], _colors.Neutral.B40, _spacing.space8, _spacing.space12, _colors.Neutral.B40);
27
+ })(["position:absolute;left:0;color:", ";display:flex;align-items:center;height:", ";padding:0px ", " 0 ", ";svg{height:17px;width:17px;fill:", ";}"], _colors.Neutral.B40, function (_ref) {
28
+ var height = _ref.height;
29
+ return height != null ? height : '36px';
30
+ }, _spacing.space8, _spacing.space12, _colors.Neutral.B40);
27
31
  exports.StyledPrefixContainer = StyledPrefixContainer;
28
32
  var StyledSuffixContainer = (0, _styledComponents["default"])(StyledPrefixContainer).withConfig({
29
33
  displayName: "InputStyle__StyledSuffixContainer",
30
34
  componentId: "sc-15z2mnd-2"
31
35
  })(["left:auto;right:0;padding:0px ", " 0 ", ";"], _spacing.space12, _spacing.space4);
32
36
  exports.StyledSuffixContainer = StyledSuffixContainer;
37
+ var FloatingLabel = _styledComponents["default"].label.withConfig({
38
+ displayName: "InputStyle__FloatingLabel",
39
+ componentId: "sc-15z2mnd-3"
40
+ })(["position:absolute;left:", "em;top:", "em;visibility:visible;padding:0 0.3em;background:white;font-size:", ";color:", ";transition:color 0.2s ease-in-out;pointer-events:none;[data-error='true'] &{color:", ";}"], function (_ref2) {
41
+ var left = _ref2.left;
42
+ return left != null ? left : '0.5';
43
+ }, function (_ref3) {
44
+ var top = _ref3.top;
45
+ return top != null ? top : '-1.25';
46
+ }, function (_ref4) {
47
+ var fontSize = _ref4.fontSize;
48
+ return fontSize != null ? fontSize : '12px';
49
+ }, function (_ref5) {
50
+ var color = _ref5.color;
51
+ return color != null ? color : _Colors.Greyscale.devilsgrey;
52
+ }, _colors.Red.B93);
53
+ exports.FloatingLabel = FloatingLabel;
33
54
  var StyledInput = _styledComponents["default"].input.withConfig({
34
55
  displayName: "InputStyle__StyledInput",
35
- componentId: "sc-15z2mnd-3"
36
- })(["background:", ";box-sizing:border-box;border:1px solid ", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:36px;&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], _colors.Neutral.B100, _colors.Neutral.B68, _borderRadius.borderRadius4, _fonts.NotoSans, _colors.Neutral.B18, _colors.Neutral.B68, _colors.Neutral.B100, Breakpoints.large);
37
- exports.StyledInput = StyledInput;
56
+ componentId: "sc-15z2mnd-4"
57
+ })(["background:", ";box-sizing:border-box;border:", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:", ";&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], _colors.Neutral.B100, function (_ref6) {
58
+ var border = _ref6.border;
59
+ return border != null ? border : "1px solid " + _colors.Neutral.B68;
60
+ }, function (_ref7) {
61
+ var borderRadius = _ref7.borderRadius;
62
+ return borderRadius != null ? borderRadius : _borderRadius.borderRadius4;
63
+ }, _fonts.NotoSans, _colors.Neutral.B18, function (_ref8) {
64
+ var height = _ref8.height;
65
+ return height != null ? height : "36px";
66
+ }, _colors.Neutral.B68, _colors.Neutral.B100, Breakpoints.large);
67
+ exports.StyledInput = StyledInput;
68
+ var AsteriskIcon = _styledComponents["default"].span.withConfig({
69
+ displayName: "InputStyle__AsteriskIcon",
70
+ componentId: "sc-15z2mnd-5"
71
+ })(["color:", ";font-size:20px;vertical-align:middle;"], _colors.Red.B93);
72
+ exports.AsteriskIcon = AsteriskIcon;
@@ -1,4 +1,14 @@
1
1
  import React from 'react';
2
2
  import { InputProps } from '../Input/Input';
3
- export declare type NumberInputProps = Omit<InputProps, 'type' | 'prefix'>;
4
- export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
3
+ export declare type NumberInputProps = Omit<InputProps, 'type' | 'prefix'> & {
4
+ border?: string;
5
+ borderRadius?: string;
6
+ required?: boolean;
7
+ isPlaceholderFloating?: boolean;
8
+ };
9
+ export declare const NumberInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "prefix"> & {
10
+ border?: string;
11
+ borderRadius?: string;
12
+ required?: boolean;
13
+ isPlaceholderFloating?: boolean;
14
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -4,17 +4,35 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports.NumberInput = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
10
  var _Input = require("../Input/Input");
11
+ var _excluded = ["required", "border", "borderRadius", "isPlaceholderFloating", "floatingFontSize", "placeholderColor", "floatingPlaceholderTop"];
10
12
  var StyledInput = (0, _styledComponents["default"])(_Input.Input).withConfig({
11
13
  displayName: "NumberInput__StyledInput",
12
14
  componentId: "sc-1f5ws9y-0"
13
15
  })(["&[type='number']{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;}&[type='number']::-webkit-inner-spin-button,&[type='number']::-webkit-outer-spin-button{-webkit-appearance:none;}"]);
14
- var NumberInput = /*#__PURE__*/_react["default"].forwardRef(function NumberInput(props, ref) {
16
+ var NumberInput = /*#__PURE__*/_react["default"].forwardRef(function NumberInput(_ref, ref) {
17
+ var required = _ref.required,
18
+ border = _ref.border,
19
+ borderRadius = _ref.borderRadius,
20
+ isPlaceholderFloating = _ref.isPlaceholderFloating,
21
+ floatingFontSize = _ref.floatingFontSize,
22
+ placeholderColor = _ref.placeholderColor,
23
+ floatingPlaceholderTop = _ref.floatingPlaceholderTop,
24
+ props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
15
25
  return /*#__PURE__*/_react["default"].createElement(StyledInput, (0, _extends2["default"])({
16
26
  ref: ref,
17
27
  type: "number"
18
- }, props));
28
+ }, props, {
29
+ border: border,
30
+ borderRadius: borderRadius,
31
+ required: required,
32
+ isPlaceholderFloating: isPlaceholderFloating,
33
+ floatingFontSize: floatingFontSize,
34
+ placeholderColor: placeholderColor,
35
+ floatingPlaceholderTop: floatingPlaceholderTop
36
+ }));
19
37
  });
20
38
  exports.NumberInput = NumberInput;
@@ -8,4 +8,9 @@ export declare const StyledSimplePaginationButton: import("styled-components").S
8
8
  export declare const StyledBorderPaginationButton: import("styled-components").StyledComponent<"button", any, PageButtonProps, never>;
9
9
  export declare const StyledLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const StyledActiveSimplePaginationButton: import("styled-components").StyledComponent<(props: PageButtonProps) => JSX.Element, any, {}, never>;
11
- export declare const StyledSimplePaginationInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../NumberInput").NumberInputProps & React.RefAttributes<HTMLInputElement>>, any, {}, never>;
11
+ export declare const StyledSimplePaginationInput: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<import("../Input/Input").InputProps, "type" | "prefix"> & {
12
+ border?: string;
13
+ borderRadius?: string;
14
+ required?: boolean;
15
+ isPlaceholderFloating?: boolean;
16
+ } & React.RefAttributes<HTMLInputElement>>, any, {}, never>;
@@ -2,8 +2,24 @@ import React from 'react';
2
2
  export declare type PasswordInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
3
3
  onChange?: (value: string) => void;
4
4
  error?: boolean;
5
+ height?: string;
6
+ border?: string;
7
+ borderRadius?: string;
8
+ required?: boolean;
9
+ isPlaceholderFloating?: boolean;
10
+ floatingFontSize?: string;
11
+ placeholderColor?: string;
12
+ floatingPlaceholderTop?: number;
5
13
  };
6
14
  export declare const PasswordInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
7
15
  onChange?: (value: string) => void;
8
16
  error?: boolean;
17
+ height?: string;
18
+ border?: string;
19
+ borderRadius?: string;
20
+ required?: boolean;
21
+ isPlaceholderFloating?: boolean;
22
+ floatingFontSize?: string;
23
+ placeholderColor?: string;
24
+ floatingPlaceholderTop?: number;
9
25
  } & React.RefAttributes<HTMLInputElement>>;
@@ -9,13 +9,21 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _Icon = require("../Icon");
10
10
  var _Input = require("../Input/Input");
11
11
  var _PasswordInputStyle = require("./PasswordInputStyle");
12
- var _excluded = ["value", "onChange", "error"];
12
+ var _excluded = ["value", "onChange", "error", "height", "border", "borderRadius", "required", "isPlaceholderFloating", "floatingFontSize", "placeholderColor", "floatingPlaceholderTop"];
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
  var PasswordInput = /*#__PURE__*/_react["default"].forwardRef(function PasswordInput(_ref, ref) {
16
16
  var value = _ref.value,
17
17
  _onChange = _ref.onChange,
18
18
  error = _ref.error,
19
+ height = _ref.height,
20
+ border = _ref.border,
21
+ borderRadius = _ref.borderRadius,
22
+ required = _ref.required,
23
+ isPlaceholderFloating = _ref.isPlaceholderFloating,
24
+ floatingFontSize = _ref.floatingFontSize,
25
+ placeholderColor = _ref.placeholderColor,
26
+ floatingPlaceholderTop = _ref.floatingPlaceholderTop,
19
27
  props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
20
28
  var _useState = (0, _react.useState)(false),
21
29
  showPassword = _useState[0],
@@ -38,7 +46,15 @@ var PasswordInput = /*#__PURE__*/_react["default"].forwardRef(function PasswordI
38
46
  return _onChange == null ? void 0 : _onChange(e.currentTarget.value);
39
47
  },
40
48
  error: error,
41
- suffix: !props.disabled && suffixComponent
49
+ suffix: !props.disabled && suffixComponent,
50
+ height: height,
51
+ border: border,
52
+ borderRadius: borderRadius,
53
+ required: required,
54
+ isPlaceholderFloating: isPlaceholderFloating,
55
+ floatingFontSize: floatingFontSize,
56
+ placeholderColor: placeholderColor,
57
+ floatingPlaceholderTop: floatingPlaceholderTop
42
58
  }, props)));
43
59
  });
44
60
  exports.PasswordInput = PasswordInput;
@@ -50,8 +50,14 @@ export interface SelectProps {
50
50
  selectedValues?: string[];
51
51
  /** sets a width for the Select component*/
52
52
  width: string;
53
+ height?: string;
53
54
  /** sets z-index override for option list dropdown. z-index default to 400 */
54
55
  zIndexOverride?: number;
56
+ border?: string;
57
+ borderRadius?: string;
58
+ required?: boolean;
59
+ isPopoverActive?: boolean;
60
+ isPlaceholderFloating?: boolean;
55
61
  }
56
- export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onFocus, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, zIndexOverride, }: SelectProps) => JSX.Element;
62
+ export declare const Select: ({ allowMultiple, customActivatorIcon, disabled, hasError, helpText, label, listHeight, loadingOptions, name, onBlur, onClose, onFocus, onRemoveTag, onSelect, onSelectClick, optionListFitContent, options, placeholder, prefix, searchable, searchableProps, optionsPlaceholderProps, showPopoverOnFocus, scrollable, sections, selectedValues, width, height, zIndexOverride, border, borderRadius, required, isPlaceholderFloating, isPopoverActive, }: SelectProps) => JSX.Element;
57
63
  export {};
@@ -39,8 +39,7 @@ var Select = function Select(_ref) {
39
39
  options = _ref$options === void 0 ? [] : _ref$options,
40
40
  placeholder = _ref.placeholder,
41
41
  prefix = _ref.prefix,
42
- _ref$searchable = _ref.searchable,
43
- searchable = _ref$searchable === void 0 ? false : _ref$searchable,
42
+ searchable = _ref.searchable,
44
43
  searchableProps = _ref.searchableProps,
45
44
  optionsPlaceholderProps = _ref.optionsPlaceholderProps,
46
45
  _ref$showPopoverOnFoc = _ref.showPopoverOnFocus,
@@ -50,14 +49,20 @@ var Select = function Select(_ref) {
50
49
  sections = _ref.sections,
51
50
  selectedValues = _ref.selectedValues,
52
51
  width = _ref.width,
53
- zIndexOverride = _ref.zIndexOverride;
52
+ height = _ref.height,
53
+ zIndexOverride = _ref.zIndexOverride,
54
+ border = _ref.border,
55
+ borderRadius = _ref.borderRadius,
56
+ required = _ref.required,
57
+ isPlaceholderFloating = _ref.isPlaceholderFloating,
58
+ isPopoverActive = _ref.isPopoverActive;
54
59
  var _useState = (0, _react.useState)(false),
55
60
  popoverActive = _useState[0],
56
61
  setPopoverActive = _useState[1];
57
62
  var _useState2 = (0, _react.useState)(''),
58
63
  optionListHeight = _useState2[0],
59
64
  setOptionListHeight = _useState2[1];
60
- var _useState3 = (0, _react.useState)(options),
65
+ var _useState3 = (0, _react.useState)([]),
61
66
  menuOptions = _useState3[0],
62
67
  setMenuOptions = _useState3[1];
63
68
  var optionsLength = options.length;
@@ -80,6 +85,11 @@ var Select = function Select(_ref) {
80
85
  var updateMenuOptions = function updateMenuOptions(newState) {
81
86
  setMenuOptions(newState);
82
87
  };
88
+ (0, _react.useEffect)(function () {
89
+ if (isPopoverActive === false && popoverActive) {
90
+ setPopoverActive(false);
91
+ }
92
+ }, [isPopoverActive, popoverActive]);
83
93
  var handleClose = function handleClose() {
84
94
  setPopoverActive(false);
85
95
  onClose == null ? void 0 : onClose();
@@ -133,6 +143,7 @@ var Select = function Select(_ref) {
133
143
  onChange: searchableProps == null ? void 0 : searchableProps.onInputChange,
134
144
  placeholder: placeholder != null ? placeholder : 'Search',
135
145
  width: width,
146
+ height: height,
136
147
  selectedValues: selectedValues,
137
148
  onBlur: onBlur,
138
149
  onSelect: onSelect,
@@ -146,7 +157,11 @@ var Select = function Select(_ref) {
146
157
  options: options,
147
158
  updateMenuOptions: updateMenuOptions,
148
159
  prefix: prefix,
149
- name: name
160
+ name: name,
161
+ isPlaceholderFloating: isPlaceholderFloating,
162
+ required: required,
163
+ border: border,
164
+ borderRadius: borderRadius
150
165
  });
151
166
  }
152
167
  return /*#__PURE__*/_react["default"].createElement(_ActivatorSelect.ActivatorSelect, {
@@ -159,18 +174,23 @@ var Select = function Select(_ref) {
159
174
  onRemoveTag: onRemoveTag,
160
175
  onSelectClick: handleSelectClick,
161
176
  width: width,
177
+ height: height,
162
178
  selectedValues: selectedValues,
163
179
  options: options,
164
180
  name: name,
165
181
  prefix: prefix,
166
- onClick: onSelectClick
182
+ onClick: onSelectClick,
183
+ required: required,
184
+ border: border,
185
+ borderRadius: borderRadius,
186
+ isPlaceholderFloating: isPlaceholderFloating
167
187
  });
168
188
  };
169
189
  return /*#__PURE__*/_react["default"].createElement(_Popover.Popover, {
170
190
  active: popoverActive,
171
191
  activator: /*#__PURE__*/_react["default"].createElement(_SelectStyle.ActivatorWrapper, {
172
192
  width: width
173
- }, label && /*#__PURE__*/_react["default"].createElement(_Label.Label, null, label), activator(), helpText && /*#__PURE__*/_react["default"].createElement(_SelectStyle.HelpTextContainer, null, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
193
+ }, label && !isPlaceholderFloating && /*#__PURE__*/_react["default"].createElement(_Label.Label, null, label), activator(), helpText && /*#__PURE__*/_react["default"].createElement(_SelectStyle.HelpTextContainer, null, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
174
194
  as: "span",
175
195
  variant: "subtitle2",
176
196
  color: disabled ? _colors.Neutral.B85 : _colors.Neutral.B40
@@ -2,7 +2,9 @@ import { Meta } from '@storybook/react';
2
2
  declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  export declare const NonSearchableSingleSelect: any;
5
+ export declare const NonSearchableSingleSelectWithFloatingPlaceholder: any;
5
6
  export declare const NonSearchableMultipleSelect: any;
7
+ export declare const NonSearchableMultipleSelectWithFloatingPlaceholder: any;
6
8
  export declare const WithErrorNonSearchable: any;
7
9
  export declare const NonSearchableDisabled: any;
8
10
  export declare const NonSearchablePrefixed: any;
@@ -14,5 +14,11 @@ export interface ActivatorSelectProps extends Omit<React.ButtonHTMLAttributes<HT
14
14
  onSelectClick?(): void;
15
15
  options?: Option[];
16
16
  width?: string;
17
+ height?: string;
18
+ required?: boolean;
19
+ floatingFontSize?: string;
20
+ isPlaceholderFloating?: boolean;
21
+ border?: string;
22
+ borderRadius?: string;
17
23
  }
18
- export declare const ActivatorSelect: ({ customActivatorIcon, placeholder, selectedValues, onClick, onRemoveTag, width, allowMultiple, disabled, onSelectClick, hasError, options, prefix, ...props }: ActivatorSelectProps) => JSX.Element;
24
+ export declare const ActivatorSelect: ({ customActivatorIcon, placeholder, selectedValues, onClick, onRemoveTag, width, allowMultiple, disabled, onSelectClick, hasError, options, prefix, required, border, borderRadius, height, floatingFontSize, isPlaceholderFloating, ...props }: ActivatorSelectProps) => JSX.Element;
@@ -9,7 +9,8 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _Typography = require("../../../Typography");
10
10
  var _colors = require("../../../utilities/colors");
11
11
  var _ActivatorStyle = require("./ActivatorStyle");
12
- var _excluded = ["customActivatorIcon", "placeholder", "selectedValues", "onClick", "onRemoveTag", "width", "allowMultiple", "disabled", "onSelectClick", "hasError", "options", "prefix"];
12
+ var _InputStyle = require("../../../Input/InputStyle");
13
+ var _excluded = ["customActivatorIcon", "placeholder", "selectedValues", "onClick", "onRemoveTag", "width", "allowMultiple", "disabled", "onSelectClick", "hasError", "options", "prefix", "required", "border", "borderRadius", "height", "floatingFontSize", "isPlaceholderFloating"];
13
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
16
  var ActivatorSelect = function ActivatorSelect(_ref) {
@@ -28,6 +29,12 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
28
29
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
29
30
  options = _ref.options,
30
31
  prefix = _ref.prefix,
32
+ required = _ref.required,
33
+ border = _ref.border,
34
+ borderRadius = _ref.borderRadius,
35
+ height = _ref.height,
36
+ floatingFontSize = _ref.floatingFontSize,
37
+ isPlaceholderFloating = _ref.isPlaceholderFloating,
31
38
  props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
32
39
  var _useState = (0, _react.useState)([]),
33
40
  filteredValues = _useState[0],
@@ -56,11 +63,12 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
56
63
  onSelectClick();
57
64
  onClick == null ? void 0 : onClick(e);
58
65
  };
59
- var placeholderMarkup = /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
66
+ var selectedPlaceholder = required ? placeholder + "*" : placeholder;
67
+ var placeholderMarkup = isPlaceholderFloating ? undefined : /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
60
68
  variant: "body1",
61
69
  as: "span",
62
70
  color: disabled ? _colors.Neutral.B85 : _colors.Neutral.B68
63
- }, placeholder);
71
+ }, selectedPlaceholder);
64
72
  var tagsMarkup = function tagsMarkup() {
65
73
  if (!hasSelectedValues) {
66
74
  return placeholderMarkup;
@@ -83,15 +91,22 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
83
91
  "data-error": hasError,
84
92
  onClick: handleClick,
85
93
  disabled: disabled,
86
- width: width
94
+ width: width,
95
+ height: height,
96
+ border: border,
97
+ borderRadius: borderRadius,
98
+ isPlaceholderFloating: isPlaceholderFloating
87
99
  }), /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.WithPrefixContainer, null, prefix && /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.StyledPrefixContainer, null, prefix), allowMultiple ? tagsMarkup() : /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.StyledSelectTypography, {
88
100
  variant: "body1",
89
101
  "data-disabled": disabled,
90
102
  color: hasSelectedValues ? _colors.Neutral.B18 : _colors.Neutral.B40
91
- }, hasSelectedValues ? selectedLabels[0] : placeholderMarkup)), /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.StyledIcon, {
103
+ }, hasSelectedValues ? selectedLabels[0] : placeholderMarkup)), /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.SuffixContainer, null, /*#__PURE__*/_react["default"].createElement(_ActivatorStyle.StyledIcon, {
92
104
  height: 24,
93
105
  name: customActivatorIcon || 'ri-arrow-m-down-line',
94
106
  fill: disabled ? _colors.Neutral.B85 : _colors.Neutral.B40
95
- }));
107
+ })), isPlaceholderFloating && /*#__PURE__*/_react["default"].createElement(_InputStyle.FloatingLabel, {
108
+ "data-testid": "textarea-label",
109
+ fontSize: floatingFontSize
110
+ }, placeholder, required && /*#__PURE__*/_react["default"].createElement(_InputStyle.AsteriskIcon, null, "*")));
96
111
  };
97
112
  exports.ActivatorSelect = ActivatorSelect;
@@ -6,8 +6,23 @@ export declare const StyledTag: import("styled-components").StyledComponent<impo
6
6
  export declare const StyledTextInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../../../Input/Input").InputProps, "type" | "onChange"> & {
7
7
  canClear?: boolean;
8
8
  onChange?: (value: string) => void;
9
+ height?: string;
10
+ border?: string;
11
+ borderRadius?: string;
12
+ required?: boolean;
13
+ isPlaceholderFloating?: boolean;
14
+ floatingFontSize?: string;
15
+ placeholderColor?: string;
16
+ floatingPlaceholderTop?: number;
9
17
  } & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
10
18
  export declare const StyledSelectTypography: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../../../Typography").TypographyProps) => JSX.Element, any, {}, never>;
11
19
  export declare const WithPrefixContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
12
20
  export declare const StyledPrefixContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
21
  export declare const StyledIcon: import("styled-components").StyledComponent<({ name, ...props }: import("../../../Icon").IconProps) => JSX.Element, any, {}, never>;
22
+ export declare const SuffixContainer: import("styled-components").StyledComponent<"div", any, {
23
+ height?: string;
24
+ } & {
25
+ height?: string;
26
+ } & {
27
+ height?: string;
28
+ }, never>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
- exports.WithPrefixContainer = exports.TagsContainer = exports.StyledTextInput = exports.StyledTag = exports.StyledSelectTypography = exports.StyledSelect = exports.StyledPrefixContainer = exports.StyledIcon = void 0;
5
+ exports.WithPrefixContainer = exports.TagsContainer = exports.SuffixContainer = exports.StyledTextInput = exports.StyledTag = exports.StyledSelectTypography = exports.StyledSelect = exports.StyledPrefixContainer = exports.StyledIcon = void 0;
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var Breakpoints = _interopRequireWildcard(require("../../../utilities/breakpoints/Breakpoints"));
8
8
  var _borderRadius = require("../../../utilities/borderRadius");
@@ -13,12 +13,22 @@ var _TextInput = require("../../../TextInput");
13
13
  var _Tag = require("../../../Tag");
14
14
  var _Typography = require("../../../Typography");
15
15
  var _Icon = require("../../../Icon");
16
+ var _InputStyle = require("../../../Input/InputStyle");
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
19
  var StyledSelect = _styledComponents["default"].button.withConfig({
19
20
  displayName: "ActivatorStyle__StyledSelect",
20
21
  componentId: "sc-rui73p-0"
21
- })(["display:flex;align-items:center;justify-content:space-between;height:36px;cursor:pointer;padding:0px 8px 0px 12px;border:1px solid ", ";box-shadow:0px 1px 0px rgba(0,0,0,0.05);border-radius:", ";background:", ";width:", ";color:", ";font-family:", ",sans-serif;font-weight:400;font-size:16px;line-height:150%;letter-spacing:0px;@media (max-width:", "){font-size:14px;}&:focus{outline:none;box-shadow:0px 0px 0px 1px #ffffff,0px 0px 0px 3px #6cc9ec;}&:disabled{background:", ";pointer-events:none;cursor:default;border:1px solid ", ";}&[data-error='true']{border:1px solid ", ";border-radius:", ";}"], _colors.Neutral.B68, _borderRadius.borderRadius4, _colors.Neutral.B100, function (props) {
22
+ })(["position:relative;display:flex;align-items:center;justify-content:space-between;height:", ";cursor:pointer;padding:0px 8px 0px 12px;border:", ";box-shadow:0px 1px 0px rgba(0,0,0,0.05);border-radius:", ";background:", ";width:", ";color:", ";font-family:", ",sans-serif;font-weight:400;font-size:16px;line-height:150%;letter-spacing:0px;@media (max-width:", "){font-size:14px;}&:focus{outline:none;box-shadow:0px 0px 0px 1px #ffffff,0px 0px 0px 3px #6cc9ec;}&:disabled{background:", ";pointer-events:none;cursor:default;border:1px solid ", ";}&[data-error='true']{border:1px solid ", ";border-radius:", ";}"], function (props) {
23
+ var _props$height;
24
+ return (_props$height = props.height) != null ? _props$height : '36px';
25
+ }, function (_ref) {
26
+ var border = _ref.border;
27
+ return border != null ? border : "1px solid " + _colors.Neutral.B68;
28
+ }, function (_ref2) {
29
+ var borderRadius = _ref2.borderRadius;
30
+ return borderRadius != null ? borderRadius : _borderRadius.borderRadius4;
31
+ }, _colors.Neutral.B100, function (props) {
22
32
  return props.width;
23
33
  }, _colors.Neutral.B18, _fonts.NotoSans, Breakpoints.large, _colors.Neutral.B95, _colors.Neutral.B85, _colors.Red.B93, _borderRadius.borderRadius4);
24
34
  exports.StyledSelect = StyledSelect;
@@ -58,4 +68,9 @@ var StyledIcon = (0, _styledComponents["default"])(_Icon.Icon).withConfig({
58
68
  displayName: "ActivatorStyle__StyledIcon",
59
69
  componentId: "sc-rui73p-7"
60
70
  })(["margin-left:auto;"]);
61
- exports.StyledIcon = StyledIcon;
71
+ exports.StyledIcon = StyledIcon;
72
+ var SuffixContainer = (0, _styledComponents["default"])(_InputStyle.StyledSuffixContainer).withConfig({
73
+ displayName: "ActivatorStyle__SuffixContainer",
74
+ componentId: "sc-rui73p-8"
75
+ })(["z-index:2;"]);
76
+ exports.SuffixContainer = SuffixContainer;
@@ -12,11 +12,16 @@ export interface ActivatorTextInputProps extends Omit<TextInputProps, 'onChange'
12
12
  }): void;
13
13
  selectedValues?: string[];
14
14
  width?: string;
15
+ height?: string;
15
16
  inputValue?: string;
16
17
  updateInputValue?: (newValue: string) => void;
17
18
  searchableSelectState?: SearchableSelectState;
18
19
  updateSearchableSelectState?: (newState: SearchableSelectState) => void;
19
20
  options?: Option[];
20
21
  updateMenuOptions?: (newState: Option[]) => void;
22
+ border?: string;
23
+ borderRadius?: string;
24
+ isPlaceholderFloating?: boolean;
25
+ required?: boolean;
21
26
  }
22
- export declare const ActivatorTextInput: ({ allowMultiple, disabled, hasError, onChange, onBlur, onFocus, onSelect, prefix, selectedValues, width, inputValue, updateInputValue, options, updateMenuOptions, ...props }: ActivatorTextInputProps) => JSX.Element;
27
+ export declare const ActivatorTextInput: ({ allowMultiple, disabled, hasError, onChange, onBlur, onFocus, onSelect, prefix, selectedValues, width, inputValue, updateInputValue, options, updateMenuOptions, border, borderRadius, isPlaceholderFloating, required, height, ...props }: ActivatorTextInputProps) => JSX.Element;
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _Icon = require("../../../Icon");
10
10
  var _SearchableSelectInput = require("../SearchableSelectInput/SearchableSelectInput");
11
11
  var _ActivatorStyle = require("./ActivatorStyle");
12
- var _excluded = ["allowMultiple", "disabled", "hasError", "onChange", "onBlur", "onFocus", "onSelect", "prefix", "selectedValues", "width", "inputValue", "updateInputValue", "options", "updateMenuOptions"];
12
+ var _excluded = ["allowMultiple", "disabled", "hasError", "onChange", "onBlur", "onFocus", "onSelect", "prefix", "selectedValues", "width", "inputValue", "updateInputValue", "options", "updateMenuOptions", "border", "borderRadius", "isPlaceholderFloating", "required", "height"];
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
  var ActivatorTextInput = function ActivatorTextInput(_ref) {
@@ -32,6 +32,11 @@ var ActivatorTextInput = function ActivatorTextInput(_ref) {
32
32
  updateInputValue = _ref.updateInputValue,
33
33
  options = _ref.options,
34
34
  updateMenuOptions = _ref.updateMenuOptions,
35
+ border = _ref.border,
36
+ borderRadius = _ref.borderRadius,
37
+ isPlaceholderFloating = _ref.isPlaceholderFloating,
38
+ required = _ref.required,
39
+ height = _ref.height,
35
40
  props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
36
41
  var activatorRef = (0, _react.useRef)(null);
37
42
  var _useState = (0, _react.useState)(false),
@@ -75,7 +80,11 @@ var ActivatorTextInput = function ActivatorTextInput(_ref) {
75
80
  onFocus: onFocus,
76
81
  error: hasError,
77
82
  disabled: disabled,
78
- width: width
83
+ width: width,
84
+ border: border,
85
+ borderRadius: borderRadius,
86
+ isPlaceholderFloating: isPlaceholderFloating,
87
+ required: required
79
88
  })) : /*#__PURE__*/_react["default"].createElement(_SearchableSelectInput.SearchableSelectInput, (0, _extends2["default"])({}, props, {
80
89
  ref: activatorRef,
81
90
  prefix: prefix,
@@ -91,7 +100,12 @@ var ActivatorTextInput = function ActivatorTextInput(_ref) {
91
100
  inputValue: inputValue,
92
101
  updateInputValue: updateInputValue,
93
102
  options: options,
94
- updateMenuOptions: updateMenuOptions
103
+ updateMenuOptions: updateMenuOptions,
104
+ border: border,
105
+ borderRadius: borderRadius,
106
+ isPlaceholderFloating: isPlaceholderFloating,
107
+ required: required,
108
+ height: height
95
109
  })));
96
110
  };
97
111
  exports.ActivatorTextInput = ActivatorTextInput;
@@ -5,5 +5,6 @@ export interface ClearSelectedProps {
5
5
  }): void;
6
6
  handleClearIconClick?: () => void;
7
7
  updateInputValue?(newValue: string): void;
8
+ height?: string;
8
9
  }
9
- export declare const ClearSelected: ({ onSelect, handleClearIconClick, updateInputValue, }: ClearSelectedProps) => JSX.Element;
10
+ export declare const ClearSelected: ({ onSelect, handleClearIconClick, updateInputValue, height, }: ClearSelectedProps) => JSX.Element;
@@ -9,7 +9,8 @@ var _SearchableSelectInputStyle = require("./SearchableSelectInputStyle");
9
9
  var ClearSelected = function ClearSelected(_ref) {
10
10
  var onSelect = _ref.onSelect,
11
11
  handleClearIconClick = _ref.handleClearIconClick,
12
- updateInputValue = _ref.updateInputValue;
12
+ updateInputValue = _ref.updateInputValue,
13
+ height = _ref.height;
13
14
  var onClearIconClick = function onClearIconClick() {
14
15
  updateInputValue('');
15
16
  onSelect({
@@ -17,7 +18,9 @@ var ClearSelected = function ClearSelected(_ref) {
17
18
  });
18
19
  handleClearIconClick();
19
20
  };
20
- return /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.ClearSelectedContainer, null, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
21
+ return /*#__PURE__*/_react["default"].createElement(_SearchableSelectInputStyle.ClearSelectedContainer, {
22
+ height: height
23
+ }, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
21
24
  name: "ri-close-circle-fill",
22
25
  style: {
23
26
  cursor: 'pointer'
@@ -20,6 +20,12 @@ export declare type SearchableSelectInputProps = Omit<InputProps, 'type' | 'onCh
20
20
  updateSearchableSelectState?: (newState: SearchableSelectState) => void;
21
21
  options?: Option[];
22
22
  updateMenuOptions?: (newState: Option[]) => void;
23
+ border?: string;
24
+ borderRadius?: string;
25
+ floatingFontSize?: string;
26
+ isPlaceholderFloating?: boolean;
27
+ required?: boolean;
28
+ height?: string;
23
29
  };
24
30
  export declare const SearchableSelectInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "onChange" | "onSelect"> & {
25
31
  canClear?: boolean;
@@ -35,4 +41,10 @@ export declare const SearchableSelectInput: React.ForwardRefExoticComponent<Omit
35
41
  updateSearchableSelectState?: (newState: SearchableSelectState) => void;
36
42
  options?: Option[];
37
43
  updateMenuOptions?: (newState: Option[]) => void;
44
+ border?: string;
45
+ borderRadius?: string;
46
+ floatingFontSize?: string;
47
+ isPlaceholderFloating?: boolean;
48
+ required?: boolean;
49
+ height?: string;
38
50
  } & React.RefAttributes<HTMLInputElement>>;