@ctlyst.id/internal-ui 3.1.19 → 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 +23 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,23 +3861,32 @@ function selectStyles(colorMode, _isError) {
|
|
|
3859
3861
|
};
|
|
3860
3862
|
},
|
|
3861
3863
|
singleValue: (base) => {
|
|
3862
|
-
return {
|
|
3864
|
+
return {
|
|
3865
|
+
...base,
|
|
3866
|
+
...selectStyle,
|
|
3867
|
+
marginLeft: 0
|
|
3868
|
+
};
|
|
3869
|
+
},
|
|
3870
|
+
input: (base) => {
|
|
3871
|
+
return {
|
|
3872
|
+
...base,
|
|
3873
|
+
...selectStyle,
|
|
3874
|
+
padding: 0,
|
|
3875
|
+
margin: 0
|
|
3876
|
+
};
|
|
3863
3877
|
},
|
|
3864
|
-
input: (base) => ({
|
|
3865
|
-
...base,
|
|
3866
|
-
...selectStyle,
|
|
3867
|
-
paddingTop: 8,
|
|
3868
|
-
paddingBottom: 8,
|
|
3869
|
-
margin: 0
|
|
3870
|
-
}),
|
|
3871
3878
|
dropdownIndicator: (base) => {
|
|
3872
3879
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
|
|
3873
3880
|
},
|
|
3874
3881
|
indicatorSeparator: (base) => {
|
|
3875
3882
|
return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
|
|
3876
3883
|
},
|
|
3877
|
-
valueContainer: (base) => {
|
|
3878
|
-
return {
|
|
3884
|
+
valueContainer: (base, { isMulti }) => {
|
|
3885
|
+
return {
|
|
3886
|
+
...base,
|
|
3887
|
+
...selectStyle,
|
|
3888
|
+
marginLeft: 0
|
|
3889
|
+
};
|
|
3879
3890
|
},
|
|
3880
3891
|
placeholder: (base) => {
|
|
3881
3892
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
|
|
@@ -4154,7 +4165,7 @@ var SelectWithCheckboxBase = ({
|
|
|
4154
4165
|
);
|
|
4155
4166
|
};
|
|
4156
4167
|
var SelectCheckbox = (props) => {
|
|
4157
|
-
const { isMulti, options, value, components,
|
|
4168
|
+
const { isMulti, options, value, components, ...rest } = props;
|
|
4158
4169
|
const selectValue = value || [];
|
|
4159
4170
|
const defaultComponents = {
|
|
4160
4171
|
DropdownIndicator,
|