@ctlyst.id/internal-ui 3.1.16 → 3.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +25 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -752,7 +752,8 @@ var BreadCrumb = (props) => {
|
|
752
752
|
bg: "white",
|
753
753
|
variant: "ghost",
|
754
754
|
"aria-label": "Edit",
|
755
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_internal_icon4.ChevronLeft, { size: 5 })
|
755
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_internal_icon4.ChevronLeft, { size: 5 }),
|
756
|
+
onClick: backButton
|
756
757
|
}
|
757
758
|
),
|
758
759
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react9.Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title })
|
@@ -1537,12 +1538,9 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1537
1538
|
onClick: (e) => {
|
1538
1539
|
e.stopPropagation();
|
1539
1540
|
},
|
1540
|
-
|
1541
|
-
textOverflow: "ellipsis",
|
1541
|
+
noOfLines: 2,
|
1542
1542
|
sx: {
|
1543
|
-
display: "-webkit-inline-box"
|
1544
|
-
WebkitLineClamp: "2",
|
1545
|
-
WebkitBoxOrient: "vertical"
|
1543
|
+
display: "-webkit-inline-box"
|
1546
1544
|
},
|
1547
1545
|
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1548
1546
|
}
|
@@ -4050,7 +4048,14 @@ function selectStyles(colorMode, _isError) {
|
|
4050
4048
|
return { ...base, ...selectStyle };
|
4051
4049
|
},
|
4052
4050
|
input: (base) => {
|
4053
|
-
return {
|
4051
|
+
return {
|
4052
|
+
...base,
|
4053
|
+
...selectStyle,
|
4054
|
+
paddingTop: 8,
|
4055
|
+
paddingBottom: 8,
|
4056
|
+
marginTop: 0,
|
4057
|
+
marginBottom: 0
|
4058
|
+
};
|
4054
4059
|
},
|
4055
4060
|
dropdownIndicator: (base) => {
|
4056
4061
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
|
@@ -4058,8 +4063,11 @@ function selectStyles(colorMode, _isError) {
|
|
4058
4063
|
indicatorSeparator: (base) => {
|
4059
4064
|
return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
|
4060
4065
|
},
|
4066
|
+
valueContainer: (base) => {
|
4067
|
+
return { ...base, ...selectStyle, marginLeft: 0 };
|
4068
|
+
},
|
4061
4069
|
placeholder: (base) => {
|
4062
|
-
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
4070
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
|
4063
4071
|
},
|
4064
4072
|
clearIndicator: (base) => {
|
4065
4073
|
return { ...base, cursor: "pointer" };
|
@@ -4135,8 +4143,9 @@ function Select2({
|
|
4135
4143
|
...components
|
4136
4144
|
},
|
4137
4145
|
value,
|
4146
|
+
maxMenuHeight: 320,
|
4138
4147
|
onChange,
|
4139
|
-
styles: { ...selectStyles(colorMode, isError) },
|
4148
|
+
styles: { ...selectStyles(colorMode, isError), ...styles },
|
4140
4149
|
theme: themeSelect,
|
4141
4150
|
...rest
|
4142
4151
|
}
|
@@ -4158,6 +4167,7 @@ function SelectAsync({
|
|
4158
4167
|
import_react_select_async_paginate.AsyncPaginate,
|
4159
4168
|
{
|
4160
4169
|
classNamePrefix: "react-select",
|
4170
|
+
maxMenuHeight: 320,
|
4161
4171
|
components: {
|
4162
4172
|
DropdownIndicator,
|
4163
4173
|
ClearIndicator
|
@@ -4180,6 +4190,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
4180
4190
|
import_async_creatable.default,
|
4181
4191
|
{
|
4182
4192
|
classNamePrefix: "react-select",
|
4193
|
+
maxMenuHeight: 320,
|
4183
4194
|
components: {
|
4184
4195
|
DropdownIndicator,
|
4185
4196
|
ClearIndicator
|
@@ -4201,6 +4212,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4201
4212
|
import_creatable.default,
|
4202
4213
|
{
|
4203
4214
|
classNamePrefix: "react-select",
|
4215
|
+
maxMenuHeight: 320,
|
4204
4216
|
components: {
|
4205
4217
|
DropdownIndicator,
|
4206
4218
|
ClearIndicator
|
@@ -4303,6 +4315,7 @@ var InputOption = ({
|
|
4303
4315
|
] });
|
4304
4316
|
};
|
4305
4317
|
var SelectWithCheckboxBase = ({
|
4318
|
+
styles,
|
4306
4319
|
isError = false,
|
4307
4320
|
components,
|
4308
4321
|
options,
|
@@ -4319,8 +4332,9 @@ var SelectWithCheckboxBase = ({
|
|
4319
4332
|
options,
|
4320
4333
|
value,
|
4321
4334
|
onChange,
|
4322
|
-
styles: { ...selectStyles(colorMode, !!isError) },
|
4335
|
+
styles: { ...selectStyles(colorMode, !!isError), ...styles },
|
4323
4336
|
theme: themeSelect,
|
4337
|
+
maxMenuHeight: 320,
|
4324
4338
|
closeMenuOnSelect: false,
|
4325
4339
|
hideSelectedOptions: false,
|
4326
4340
|
components,
|
@@ -4329,7 +4343,7 @@ var SelectWithCheckboxBase = ({
|
|
4329
4343
|
);
|
4330
4344
|
};
|
4331
4345
|
var SelectCheckbox = (props) => {
|
4332
|
-
const { isMulti, options, value, components, ...rest } = props;
|
4346
|
+
const { isMulti, options, value, components, styles, ...rest } = props;
|
4333
4347
|
const selectValue = value || [];
|
4334
4348
|
const defaultComponents = {
|
4335
4349
|
DropdownIndicator,
|