@ctlyst.id/internal-ui 3.1.17 → 3.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +22 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -376,7 +376,8 @@ var BreadCrumb = (props) => {
|
|
376
376
|
bg: "white",
|
377
377
|
variant: "ghost",
|
378
378
|
"aria-label": "Edit",
|
379
|
-
icon: /* @__PURE__ */ jsx14(ChevronLeft, { size: 5 })
|
379
|
+
icon: /* @__PURE__ */ jsx14(ChevronLeft, { size: 5 }),
|
380
|
+
onClick: backButton
|
380
381
|
}
|
381
382
|
),
|
382
383
|
/* @__PURE__ */ jsx14(Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title })
|
@@ -3860,17 +3861,24 @@ function selectStyles(colorMode, _isError) {
|
|
3860
3861
|
singleValue: (base) => {
|
3861
3862
|
return { ...base, ...selectStyle };
|
3862
3863
|
},
|
3863
|
-
input: (base) => {
|
3864
|
-
|
3865
|
-
|
3864
|
+
input: (base) => ({
|
3865
|
+
...base,
|
3866
|
+
...selectStyle,
|
3867
|
+
paddingTop: 8,
|
3868
|
+
paddingBottom: 8,
|
3869
|
+
margin: 0
|
3870
|
+
}),
|
3866
3871
|
dropdownIndicator: (base) => {
|
3867
3872
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
|
3868
3873
|
},
|
3869
3874
|
indicatorSeparator: (base) => {
|
3870
3875
|
return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
|
3871
3876
|
},
|
3877
|
+
valueContainer: (base) => {
|
3878
|
+
return { ...base, ...selectStyle, marginLeft: 0 };
|
3879
|
+
},
|
3872
3880
|
placeholder: (base) => {
|
3873
|
-
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
3881
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
|
3874
3882
|
},
|
3875
3883
|
clearIndicator: (base) => {
|
3876
3884
|
return { ...base, cursor: "pointer" };
|
@@ -3946,8 +3954,9 @@ function Select2({
|
|
3946
3954
|
...components
|
3947
3955
|
},
|
3948
3956
|
value,
|
3957
|
+
maxMenuHeight: 320,
|
3949
3958
|
onChange,
|
3950
|
-
styles: { ...selectStyles(colorMode, isError) },
|
3959
|
+
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3951
3960
|
theme: themeSelect,
|
3952
3961
|
...rest
|
3953
3962
|
}
|
@@ -3969,6 +3978,7 @@ function SelectAsync({
|
|
3969
3978
|
AsyncPaginate,
|
3970
3979
|
{
|
3971
3980
|
classNamePrefix: "react-select",
|
3981
|
+
maxMenuHeight: 320,
|
3972
3982
|
components: {
|
3973
3983
|
DropdownIndicator,
|
3974
3984
|
ClearIndicator
|
@@ -3991,6 +4001,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3991
4001
|
ReactSelectAsyncCreatable,
|
3992
4002
|
{
|
3993
4003
|
classNamePrefix: "react-select",
|
4004
|
+
maxMenuHeight: 320,
|
3994
4005
|
components: {
|
3995
4006
|
DropdownIndicator,
|
3996
4007
|
ClearIndicator
|
@@ -4012,6 +4023,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4012
4023
|
ReactSelectCreatable,
|
4013
4024
|
{
|
4014
4025
|
classNamePrefix: "react-select",
|
4026
|
+
maxMenuHeight: 320,
|
4015
4027
|
components: {
|
4016
4028
|
DropdownIndicator,
|
4017
4029
|
ClearIndicator
|
@@ -4114,6 +4126,7 @@ var InputOption = ({
|
|
4114
4126
|
] });
|
4115
4127
|
};
|
4116
4128
|
var SelectWithCheckboxBase = ({
|
4129
|
+
styles,
|
4117
4130
|
isError = false,
|
4118
4131
|
components,
|
4119
4132
|
options,
|
@@ -4130,8 +4143,9 @@ var SelectWithCheckboxBase = ({
|
|
4130
4143
|
options,
|
4131
4144
|
value,
|
4132
4145
|
onChange,
|
4133
|
-
styles: { ...selectStyles(colorMode, !!isError) },
|
4146
|
+
styles: { ...selectStyles(colorMode, !!isError), ...styles },
|
4134
4147
|
theme: themeSelect,
|
4148
|
+
maxMenuHeight: 320,
|
4135
4149
|
closeMenuOnSelect: false,
|
4136
4150
|
hideSelectedOptions: false,
|
4137
4151
|
components,
|
@@ -4140,7 +4154,7 @@ var SelectWithCheckboxBase = ({
|
|
4140
4154
|
);
|
4141
4155
|
};
|
4142
4156
|
var SelectCheckbox = (props) => {
|
4143
|
-
const { isMulti, options, value, components, ...rest } = props;
|
4157
|
+
const { isMulti, options, value, components, styles, ...rest } = props;
|
4144
4158
|
const selectValue = value || [];
|
4145
4159
|
const defaultComponents = {
|
4146
4160
|
DropdownIndicator,
|