@ctlyst.id/internal-ui 3.1.16 → 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.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 })
@@ -1200,12 +1201,9 @@ var DataTable = React5.forwardRef((props, ref) => {
1200
1201
  onClick: (e) => {
1201
1202
  e.stopPropagation();
1202
1203
  },
1203
- overflow: "hidden",
1204
- textOverflow: "ellipsis",
1204
+ noOfLines: 2,
1205
1205
  sx: {
1206
- display: "-webkit-inline-box",
1207
- WebkitLineClamp: "2",
1208
- WebkitBoxOrient: "vertical"
1206
+ display: "-webkit-inline-box"
1209
1207
  },
1210
1208
  children: flexRender(cell.column.columnDef.cell, cell.getContext())
1211
1209
  }
@@ -3864,7 +3862,14 @@ function selectStyles(colorMode, _isError) {
3864
3862
  return { ...base, ...selectStyle };
3865
3863
  },
3866
3864
  input: (base) => {
3867
- return { ...base, ...selectStyle };
3865
+ return {
3866
+ ...base,
3867
+ ...selectStyle,
3868
+ paddingTop: 8,
3869
+ paddingBottom: 8,
3870
+ marginTop: 0,
3871
+ marginBottom: 0
3872
+ };
3868
3873
  },
3869
3874
  dropdownIndicator: (base) => {
3870
3875
  return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
@@ -3872,8 +3877,11 @@ function selectStyles(colorMode, _isError) {
3872
3877
  indicatorSeparator: (base) => {
3873
3878
  return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
3874
3879
  },
3880
+ valueContainer: (base) => {
3881
+ return { ...base, ...selectStyle, marginLeft: 0 };
3882
+ },
3875
3883
  placeholder: (base) => {
3876
- return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
3884
+ return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)", marginLeft: 0 };
3877
3885
  },
3878
3886
  clearIndicator: (base) => {
3879
3887
  return { ...base, cursor: "pointer" };
@@ -3949,8 +3957,9 @@ function Select2({
3949
3957
  ...components
3950
3958
  },
3951
3959
  value,
3960
+ maxMenuHeight: 320,
3952
3961
  onChange,
3953
- styles: { ...selectStyles(colorMode, isError) },
3962
+ styles: { ...selectStyles(colorMode, isError), ...styles },
3954
3963
  theme: themeSelect,
3955
3964
  ...rest
3956
3965
  }
@@ -3972,6 +3981,7 @@ function SelectAsync({
3972
3981
  AsyncPaginate,
3973
3982
  {
3974
3983
  classNamePrefix: "react-select",
3984
+ maxMenuHeight: 320,
3975
3985
  components: {
3976
3986
  DropdownIndicator,
3977
3987
  ClearIndicator
@@ -3994,6 +4004,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
3994
4004
  ReactSelectAsyncCreatable,
3995
4005
  {
3996
4006
  classNamePrefix: "react-select",
4007
+ maxMenuHeight: 320,
3997
4008
  components: {
3998
4009
  DropdownIndicator,
3999
4010
  ClearIndicator
@@ -4015,6 +4026,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
4015
4026
  ReactSelectCreatable,
4016
4027
  {
4017
4028
  classNamePrefix: "react-select",
4029
+ maxMenuHeight: 320,
4018
4030
  components: {
4019
4031
  DropdownIndicator,
4020
4032
  ClearIndicator
@@ -4117,6 +4129,7 @@ var InputOption = ({
4117
4129
  ] });
4118
4130
  };
4119
4131
  var SelectWithCheckboxBase = ({
4132
+ styles,
4120
4133
  isError = false,
4121
4134
  components,
4122
4135
  options,
@@ -4133,8 +4146,9 @@ var SelectWithCheckboxBase = ({
4133
4146
  options,
4134
4147
  value,
4135
4148
  onChange,
4136
- styles: { ...selectStyles(colorMode, !!isError) },
4149
+ styles: { ...selectStyles(colorMode, !!isError), ...styles },
4137
4150
  theme: themeSelect,
4151
+ maxMenuHeight: 320,
4138
4152
  closeMenuOnSelect: false,
4139
4153
  hideSelectedOptions: false,
4140
4154
  components,
@@ -4143,7 +4157,7 @@ var SelectWithCheckboxBase = ({
4143
4157
  );
4144
4158
  };
4145
4159
  var SelectCheckbox = (props) => {
4146
- const { isMulti, options, value, components, ...rest } = props;
4160
+ const { isMulti, options, value, components, styles, ...rest } = props;
4147
4161
  const selectValue = value || [];
4148
4162
  const defaultComponents = {
4149
4163
  DropdownIndicator,