@ctlyst.id/internal-ui 3.1.17 → 3.1.18

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