fis-component 0.1.31 → 0.1.33

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/cjs/index.js CHANGED
@@ -65795,7 +65795,7 @@ const DivContainerSC$6 = styled.div `
65795
65795
  }
65796
65796
  }
65797
65797
 
65798
- &:hover:not(:has(${InputSC$2}:disabled)):not(:has(.icon-suffix:hover)) {
65798
+ &:hover:not(:has(${InputSC$2}:disabled)):not(:has(${InputSC$2}:read-only)):not(:has(.icon-suffix:hover)) {
65799
65799
  outline-color: ${getTheme("com/input/field/default/border/hover")};
65800
65800
  background-color: ${getTheme("com/input/field/default/background/hover")};
65801
65801
 
@@ -65803,7 +65803,7 @@ const DivContainerSC$6 = styled.div `
65803
65803
  color: ${getTheme("com/input/field/default/icon/color-icon/hover")};
65804
65804
  }
65805
65805
  }
65806
- &:has(${InputSC$2}:focus) {
65806
+ &:has(${InputSC$2}:focus):not(:has(${InputSC$2}:read-only)) {
65807
65807
  outline-color: ${getTheme("com/input/field/default/border/active")};
65808
65808
  background-color: ${getTheme("com/input/field/default/background/active")};
65809
65809
  box-shadow: 0 0 0 ${getTheme("com/actived-mark/gap-spacing")}
@@ -65821,7 +65821,7 @@ const DivContainerSC$6 = styled.div `
65821
65821
  color: ${getTheme("com/input/field/negative/icon/color-icon/default")};
65822
65822
  }
65823
65823
 
65824
- &:hover:not(:has(${InputSC$2}:disabled)):not(:has(.icon-suffix:hover)) {
65824
+ &:hover:not(:has(${InputSC$2}:disabled)):not(:has(${InputSC$2}:read-only)):not(:has(.icon-suffix:hover)) {
65825
65825
  outline-color: ${getTheme("com/input/field/negative/border/hover")};
65826
65826
  background-color: ${getTheme("com/input/field/negative/background/hover")};
65827
65827
 
@@ -65830,7 +65830,7 @@ const DivContainerSC$6 = styled.div `
65830
65830
  }
65831
65831
  }
65832
65832
 
65833
- &:has(${InputSC$2}:focus) {
65833
+ &:has(${InputSC$2}:focus):not(:has(${InputSC$2}:read-only)) {
65834
65834
  outline-color: ${getTheme("com/input/field/negative/border/active")};
65835
65835
  background-color: ${getTheme("com/input/field/negative/background/active")};
65836
65836
  box-shadow: 0 0 0 ${getTheme("com/actived-mark/gap-spacing")}
@@ -69376,7 +69376,7 @@ const normalizeText = (value) => {
69376
69376
  .trim();
69377
69377
  };
69378
69378
 
69379
- const FISMenuSelect = ({ placeholder, groups, size = "md", multi = false, selectedValues = [], onChangeSelected, searchValue = "", onSearchChange, loading = false, noData = false, noResult = false, combobox, className, onClickMenu, loadingText = "Data loading...", noDataText = "No data", noResultText = "No result", removeSelectedText = "Remove selected", selectedGroupLabel = "Selected", maxHeight, focusSearchInput = true, onPopupScroll, normalizeTextSearch = false, renderOption, searchDebounce = 300, footer, showSearch, onSearchInput, virtualized = false, virtualItemHeight, }) => {
69379
+ const FISMenuSelect = ({ placeholder, groups, size = "md", multi = false, selectedValues = [], onChangeSelected, searchValue = "", onSearchChange, loading = false, noData = false, noResult = false, combobox, className, onClickMenu, loadingText = "Đang tải dữ liệu...", noDataText = "Không có dữ liệu", noResultText = "Không tìm thấy kết quả", removeSelectedText = "Bỏ chọn", selectedGroupLabel = "ĐÃ CHỌN", maxHeight, focusSearchInput = true, onPopupScroll, normalizeTextSearch = false, renderOption, searchDebounce = 300, footer, showSearch, onSearchInput, virtualized = false, virtualItemHeight, }) => {
69380
69380
  // Chiều cao hàng = min-height item + gap xs (4px): md 36+4, lg 44+4.
69381
69381
  const intrinsicItemHeight = virtualItemHeight ?? (size === "lg" ? 48 : 40);
69382
69382
  const [localSearch, setLocalSearch] = React.useState(searchValue);
@@ -73002,7 +73002,7 @@ const FISCombobox = React.forwardRef(({ className, options, value, disabled = fa
73002
73002
  const count = selected.length;
73003
73003
  return multiDisplayText
73004
73004
  ? multiDisplayText(count)
73005
- : `Selected ${count.toString().padStart(2, "0")} option${count !== 1 ? "s" : ""}`;
73005
+ : `Đã chọn ${count.toString().padStart(2, "0")} tùy chọn`;
73006
73006
  }
73007
73007
  else {
73008
73008
  const selected = flatItems.find((item) => item.value === value);
@@ -75809,7 +75809,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75809
75809
  }
75810
75810
  return multiDisplayText
75811
75811
  ? multiDisplayText(count)
75812
- : `Selected ${count.toString().padStart(2, "0")} option${count !== 1 ? "s" : ""}`;
75812
+ : `Đã chọn ${count.toString().padStart(2, "0")} tùy chọn`;
75813
75813
  }
75814
75814
  else {
75815
75815
  if (value) {