@ctlyst.id/internal-ui 3.1.18 → 3.1.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -3825,9 +3825,11 @@ var selectStyle = {
3825
3825
  };
3826
3826
  function selectStyles(colorMode, _isError) {
3827
3827
  return {
3828
- control: (base, { isFocused }) => {
3828
+ control: (base, { isFocused, isMulti }) => {
3829
3829
  const style = {
3830
3830
  ...base,
3831
+ minHeight: 40,
3832
+ height: isMulti ? "fit-content" : 40,
3831
3833
  flexWrap: "nowrap",
3832
3834
  borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
3833
3835
  boxShadow: "none",
@@ -3859,16 +3861,18 @@ function selectStyles(colorMode, _isError) {
3859
3861
  };
3860
3862
  },
3861
3863
  singleValue: (base) => {
3862
- return { ...base, ...selectStyle };
3864
+ return {
3865
+ ...base,
3866
+ ...selectStyle,
3867
+ marginLeft: 0
3868
+ };
3863
3869
  },
3864
3870
  input: (base) => {
3865
3871
  return {
3866
3872
  ...base,
3867
3873
  ...selectStyle,
3868
- paddingTop: 8,
3869
- paddingBottom: 8,
3870
- marginTop: 0,
3871
- marginBottom: 0
3874
+ padding: 0,
3875
+ margin: 0
3872
3876
  };
3873
3877
  },
3874
3878
  dropdownIndicator: (base) => {
@@ -3877,8 +3881,12 @@ function selectStyles(colorMode, _isError) {
3877
3881
  indicatorSeparator: (base) => {
3878
3882
  return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
3879
3883
  },
3880
- valueContainer: (base) => {
3881
- return { ...base, ...selectStyle, marginLeft: 0 };
3884
+ valueContainer: (base, { isMulti }) => {
3885
+ return {
3886
+ ...base,
3887
+ ...selectStyle,
3888
+ marginLeft: 0
3889
+ };
3882
3890
  },
3883
3891
  placeholder: (base) => {
3884
3892
  return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
@@ -4157,7 +4165,7 @@ var SelectWithCheckboxBase = ({
4157
4165
  );
4158
4166
  };
4159
4167
  var SelectCheckbox = (props) => {
4160
- const { isMulti, options, value, components, styles, ...rest } = props;
4168
+ const { isMulti, options, value, components, ...rest } = props;
4161
4169
  const selectValue = value || [];
4162
4170
  const defaultComponents = {
4163
4171
  DropdownIndicator,