@ctlyst.id/internal-ui 3.1.17 → 3.1.18
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 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -6
- 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 })
|
|
@@ -3861,7 +3862,14 @@ function selectStyles(colorMode, _isError) {
|
|
|
3861
3862
|
return { ...base, ...selectStyle };
|
|
3862
3863
|
},
|
|
3863
3864
|
input: (base) => {
|
|
3864
|
-
return {
|
|
3865
|
+
return {
|
|
3866
|
+
...base,
|
|
3867
|
+
...selectStyle,
|
|
3868
|
+
paddingTop: 8,
|
|
3869
|
+
paddingBottom: 8,
|
|
3870
|
+
marginTop: 0,
|
|
3871
|
+
marginBottom: 0
|
|
3872
|
+
};
|
|
3865
3873
|
},
|
|
3866
3874
|
dropdownIndicator: (base) => {
|
|
3867
3875
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
|
|
@@ -3869,8 +3877,11 @@ function selectStyles(colorMode, _isError) {
|
|
|
3869
3877
|
indicatorSeparator: (base) => {
|
|
3870
3878
|
return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
|
|
3871
3879
|
},
|
|
3880
|
+
valueContainer: (base) => {
|
|
3881
|
+
return { ...base, ...selectStyle, marginLeft: 0 };
|
|
3882
|
+
},
|
|
3872
3883
|
placeholder: (base) => {
|
|
3873
|
-
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
|
3884
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
|
|
3874
3885
|
},
|
|
3875
3886
|
clearIndicator: (base) => {
|
|
3876
3887
|
return { ...base, cursor: "pointer" };
|
|
@@ -3946,8 +3957,9 @@ function Select2({
|
|
|
3946
3957
|
...components
|
|
3947
3958
|
},
|
|
3948
3959
|
value,
|
|
3960
|
+
maxMenuHeight: 320,
|
|
3949
3961
|
onChange,
|
|
3950
|
-
styles: { ...selectStyles(colorMode, isError) },
|
|
3962
|
+
styles: { ...selectStyles(colorMode, isError), ...styles },
|
|
3951
3963
|
theme: themeSelect,
|
|
3952
3964
|
...rest
|
|
3953
3965
|
}
|
|
@@ -3969,6 +3981,7 @@ function SelectAsync({
|
|
|
3969
3981
|
AsyncPaginate,
|
|
3970
3982
|
{
|
|
3971
3983
|
classNamePrefix: "react-select",
|
|
3984
|
+
maxMenuHeight: 320,
|
|
3972
3985
|
components: {
|
|
3973
3986
|
DropdownIndicator,
|
|
3974
3987
|
ClearIndicator
|
|
@@ -3991,6 +4004,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
|
3991
4004
|
ReactSelectAsyncCreatable,
|
|
3992
4005
|
{
|
|
3993
4006
|
classNamePrefix: "react-select",
|
|
4007
|
+
maxMenuHeight: 320,
|
|
3994
4008
|
components: {
|
|
3995
4009
|
DropdownIndicator,
|
|
3996
4010
|
ClearIndicator
|
|
@@ -4012,6 +4026,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
|
4012
4026
|
ReactSelectCreatable,
|
|
4013
4027
|
{
|
|
4014
4028
|
classNamePrefix: "react-select",
|
|
4029
|
+
maxMenuHeight: 320,
|
|
4015
4030
|
components: {
|
|
4016
4031
|
DropdownIndicator,
|
|
4017
4032
|
ClearIndicator
|
|
@@ -4114,6 +4129,7 @@ var InputOption = ({
|
|
|
4114
4129
|
] });
|
|
4115
4130
|
};
|
|
4116
4131
|
var SelectWithCheckboxBase = ({
|
|
4132
|
+
styles,
|
|
4117
4133
|
isError = false,
|
|
4118
4134
|
components,
|
|
4119
4135
|
options,
|
|
@@ -4130,8 +4146,9 @@ var SelectWithCheckboxBase = ({
|
|
|
4130
4146
|
options,
|
|
4131
4147
|
value,
|
|
4132
4148
|
onChange,
|
|
4133
|
-
styles: { ...selectStyles(colorMode, !!isError) },
|
|
4149
|
+
styles: { ...selectStyles(colorMode, !!isError), ...styles },
|
|
4134
4150
|
theme: themeSelect,
|
|
4151
|
+
maxMenuHeight: 320,
|
|
4135
4152
|
closeMenuOnSelect: false,
|
|
4136
4153
|
hideSelectedOptions: false,
|
|
4137
4154
|
components,
|
|
@@ -4140,7 +4157,7 @@ var SelectWithCheckboxBase = ({
|
|
|
4140
4157
|
);
|
|
4141
4158
|
};
|
|
4142
4159
|
var SelectCheckbox = (props) => {
|
|
4143
|
-
const { isMulti, options, value, components, ...rest } = props;
|
|
4160
|
+
const { isMulti, options, value, components, styles, ...rest } = props;
|
|
4144
4161
|
const selectValue = value || [];
|
|
4145
4162
|
const defaultComponents = {
|
|
4146
4163
|
DropdownIndicator,
|