@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 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 })
@@ -4046,17 +4047,24 @@ function selectStyles(colorMode, _isError) {
4046
4047
  singleValue: (base) => {
4047
4048
  return { ...base, ...selectStyle };
4048
4049
  },
4049
- input: (base) => {
4050
- return { ...base, ...selectStyle };
4051
- },
4050
+ input: (base) => ({
4051
+ ...base,
4052
+ ...selectStyle,
4053
+ paddingTop: 8,
4054
+ paddingBottom: 8,
4055
+ margin: 0
4056
+ }),
4052
4057
  dropdownIndicator: (base) => {
4053
4058
  return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
4054
4059
  },
4055
4060
  indicatorSeparator: (base) => {
4056
4061
  return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
4057
4062
  },
4063
+ valueContainer: (base) => {
4064
+ return { ...base, ...selectStyle, marginLeft: 0 };
4065
+ },
4058
4066
  placeholder: (base) => {
4059
- return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
4067
+ return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
4060
4068
  },
4061
4069
  clearIndicator: (base) => {
4062
4070
  return { ...base, cursor: "pointer" };
@@ -4132,8 +4140,9 @@ function Select2({
4132
4140
  ...components
4133
4141
  },
4134
4142
  value,
4143
+ maxMenuHeight: 320,
4135
4144
  onChange,
4136
- styles: { ...selectStyles(colorMode, isError) },
4145
+ styles: { ...selectStyles(colorMode, isError), ...styles },
4137
4146
  theme: themeSelect,
4138
4147
  ...rest
4139
4148
  }
@@ -4155,6 +4164,7 @@ function SelectAsync({
4155
4164
  import_react_select_async_paginate.AsyncPaginate,
4156
4165
  {
4157
4166
  classNamePrefix: "react-select",
4167
+ maxMenuHeight: 320,
4158
4168
  components: {
4159
4169
  DropdownIndicator,
4160
4170
  ClearIndicator
@@ -4177,6 +4187,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
4177
4187
  import_async_creatable.default,
4178
4188
  {
4179
4189
  classNamePrefix: "react-select",
4190
+ maxMenuHeight: 320,
4180
4191
  components: {
4181
4192
  DropdownIndicator,
4182
4193
  ClearIndicator
@@ -4198,6 +4209,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
4198
4209
  import_creatable.default,
4199
4210
  {
4200
4211
  classNamePrefix: "react-select",
4212
+ maxMenuHeight: 320,
4201
4213
  components: {
4202
4214
  DropdownIndicator,
4203
4215
  ClearIndicator
@@ -4300,6 +4312,7 @@ var InputOption = ({
4300
4312
  ] });
4301
4313
  };
4302
4314
  var SelectWithCheckboxBase = ({
4315
+ styles,
4303
4316
  isError = false,
4304
4317
  components,
4305
4318
  options,
@@ -4316,8 +4329,9 @@ var SelectWithCheckboxBase = ({
4316
4329
  options,
4317
4330
  value,
4318
4331
  onChange,
4319
- styles: { ...selectStyles(colorMode, !!isError) },
4332
+ styles: { ...selectStyles(colorMode, !!isError), ...styles },
4320
4333
  theme: themeSelect,
4334
+ maxMenuHeight: 320,
4321
4335
  closeMenuOnSelect: false,
4322
4336
  hideSelectedOptions: false,
4323
4337
  components,
@@ -4326,7 +4340,7 @@ var SelectWithCheckboxBase = ({
4326
4340
  );
4327
4341
  };
4328
4342
  var SelectCheckbox = (props) => {
4329
- const { isMulti, options, value, components, ...rest } = props;
4343
+ const { isMulti, options, value, components, styles, ...rest } = props;
4330
4344
  const selectValue = value || [];
4331
4345
  const defaultComponents = {
4332
4346
  DropdownIndicator,