@ctlyst.id/internal-ui 3.1.19 → 3.1.20

Sign up to get free protection for your applications and to get access to all the features.
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,23 +4047,32 @@ 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
+ };
4055
+ },
4056
+ input: (base) => {
4057
+ return {
4058
+ ...base,
4059
+ ...selectStyle,
4060
+ padding: 0,
4061
+ margin: 0
4062
+ };
4049
4063
  },
4050
- input: (base) => ({
4051
- ...base,
4052
- ...selectStyle,
4053
- paddingTop: 8,
4054
- paddingBottom: 8,
4055
- margin: 0
4056
- }),
4057
4064
  dropdownIndicator: (base) => {
4058
4065
  return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
4059
4066
  },
4060
4067
  indicatorSeparator: (base) => {
4061
4068
  return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
4062
4069
  },
4063
- valueContainer: (base) => {
4064
- return { ...base, ...selectStyle, marginLeft: 0 };
4070
+ valueContainer: (base, { isMulti }) => {
4071
+ return {
4072
+ ...base,
4073
+ ...selectStyle,
4074
+ marginLeft: 0
4075
+ };
4065
4076
  },
4066
4077
  placeholder: (base) => {
4067
4078
  return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
@@ -4340,7 +4351,7 @@ var SelectWithCheckboxBase = ({
4340
4351
  );
4341
4352
  };
4342
4353
  var SelectCheckbox = (props) => {
4343
- const { isMulti, options, value, components, styles, ...rest } = props;
4354
+ const { isMulti, options, value, components, ...rest } = props;
4344
4355
  const selectValue = value || [];
4345
4356
  const defaultComponents = {
4346
4357
  DropdownIndicator,