@ctlyst.id/internal-ui 3.1.18 → 3.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4011,9 +4011,11 @@ var selectStyle = {
4011
4011
  };
4012
4012
  function selectStyles(colorMode, _isError) {
4013
4013
  return {
4014
- control: (base, { isFocused }) => {
4014
+ control: (base, { isFocused, isMulti }) => {
4015
4015
  const style = {
4016
4016
  ...base,
4017
+ minHeight: 40,
4018
+ height: isMulti ? "fit-content" : 40,
4017
4019
  flexWrap: "nowrap",
4018
4020
  borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
4019
4021
  boxShadow: "none",
@@ -4045,16 +4047,18 @@ function selectStyles(colorMode, _isError) {
4045
4047
  };
4046
4048
  },
4047
4049
  singleValue: (base) => {
4048
- return { ...base, ...selectStyle };
4050
+ return {
4051
+ ...base,
4052
+ ...selectStyle,
4053
+ marginLeft: 0
4054
+ };
4049
4055
  },
4050
4056
  input: (base) => {
4051
4057
  return {
4052
4058
  ...base,
4053
4059
  ...selectStyle,
4054
- paddingTop: 8,
4055
- paddingBottom: 8,
4056
- marginTop: 0,
4057
- marginBottom: 0
4060
+ padding: 0,
4061
+ margin: 0
4058
4062
  };
4059
4063
  },
4060
4064
  dropdownIndicator: (base) => {
@@ -4063,8 +4067,12 @@ function selectStyles(colorMode, _isError) {
4063
4067
  indicatorSeparator: (base) => {
4064
4068
  return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
4065
4069
  },
4066
- valueContainer: (base) => {
4067
- return { ...base, ...selectStyle, marginLeft: 0 };
4070
+ valueContainer: (base, { isMulti }) => {
4071
+ return {
4072
+ ...base,
4073
+ ...selectStyle,
4074
+ marginLeft: 0
4075
+ };
4068
4076
  },
4069
4077
  placeholder: (base) => {
4070
4078
  return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
@@ -4343,7 +4351,7 @@ var SelectWithCheckboxBase = ({
4343
4351
  );
4344
4352
  };
4345
4353
  var SelectCheckbox = (props) => {
4346
- const { isMulti, options, value, components, styles, ...rest } = props;
4354
+ const { isMulti, options, value, components, ...rest } = props;
4347
4355
  const selectValue = value || [];
4348
4356
  const defaultComponents = {
4349
4357
  DropdownIndicator,