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 +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -65775,7 +65775,7 @@ const DivContainerSC$6 = styled.div `
|
|
|
65775
65775
|
}
|
|
65776
65776
|
}
|
|
65777
65777
|
|
|
65778
|
-
&:hover:not(:has(${InputSC$2}:disabled)):not(:has(.icon-suffix:hover)) {
|
|
65778
|
+
&:hover:not(:has(${InputSC$2}:disabled)):not(:has(${InputSC$2}:read-only)):not(:has(.icon-suffix:hover)) {
|
|
65779
65779
|
outline-color: ${getTheme("com/input/field/default/border/hover")};
|
|
65780
65780
|
background-color: ${getTheme("com/input/field/default/background/hover")};
|
|
65781
65781
|
|
|
@@ -65783,7 +65783,7 @@ const DivContainerSC$6 = styled.div `
|
|
|
65783
65783
|
color: ${getTheme("com/input/field/default/icon/color-icon/hover")};
|
|
65784
65784
|
}
|
|
65785
65785
|
}
|
|
65786
|
-
&:has(${InputSC$2}:focus) {
|
|
65786
|
+
&:has(${InputSC$2}:focus):not(:has(${InputSC$2}:read-only)) {
|
|
65787
65787
|
outline-color: ${getTheme("com/input/field/default/border/active")};
|
|
65788
65788
|
background-color: ${getTheme("com/input/field/default/background/active")};
|
|
65789
65789
|
box-shadow: 0 0 0 ${getTheme("com/actived-mark/gap-spacing")}
|
|
@@ -65801,7 +65801,7 @@ const DivContainerSC$6 = styled.div `
|
|
|
65801
65801
|
color: ${getTheme("com/input/field/negative/icon/color-icon/default")};
|
|
65802
65802
|
}
|
|
65803
65803
|
|
|
65804
|
-
&:hover:not(:has(${InputSC$2}:disabled)):not(:has(.icon-suffix:hover)) {
|
|
65804
|
+
&:hover:not(:has(${InputSC$2}:disabled)):not(:has(${InputSC$2}:read-only)):not(:has(.icon-suffix:hover)) {
|
|
65805
65805
|
outline-color: ${getTheme("com/input/field/negative/border/hover")};
|
|
65806
65806
|
background-color: ${getTheme("com/input/field/negative/background/hover")};
|
|
65807
65807
|
|
|
@@ -65810,7 +65810,7 @@ const DivContainerSC$6 = styled.div `
|
|
|
65810
65810
|
}
|
|
65811
65811
|
}
|
|
65812
65812
|
|
|
65813
|
-
&:has(${InputSC$2}:focus) {
|
|
65813
|
+
&:has(${InputSC$2}:focus):not(:has(${InputSC$2}:read-only)) {
|
|
65814
65814
|
outline-color: ${getTheme("com/input/field/negative/border/active")};
|
|
65815
65815
|
background-color: ${getTheme("com/input/field/negative/background/active")};
|
|
65816
65816
|
box-shadow: 0 0 0 ${getTheme("com/actived-mark/gap-spacing")}
|
|
@@ -69356,7 +69356,7 @@ const normalizeText = (value) => {
|
|
|
69356
69356
|
.trim();
|
|
69357
69357
|
};
|
|
69358
69358
|
|
|
69359
|
-
const FISMenuSelect = ({ placeholder, groups, size = "md", multi = false, selectedValues = [], onChangeSelected, searchValue = "", onSearchChange, loading = false, noData = false, noResult = false, combobox, className, onClickMenu, loadingText = "
|
|
69359
|
+
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, }) => {
|
|
69360
69360
|
// Chiều cao hàng = min-height item + gap xs (4px): md 36+4, lg 44+4.
|
|
69361
69361
|
const intrinsicItemHeight = virtualItemHeight ?? (size === "lg" ? 48 : 40);
|
|
69362
69362
|
const [localSearch, setLocalSearch] = useState(searchValue);
|
|
@@ -72982,7 +72982,7 @@ const FISCombobox = forwardRef(({ className, options, value, disabled = false, t
|
|
|
72982
72982
|
const count = selected.length;
|
|
72983
72983
|
return multiDisplayText
|
|
72984
72984
|
? multiDisplayText(count)
|
|
72985
|
-
:
|
|
72985
|
+
: `Đã chọn ${count.toString().padStart(2, "0")} tùy chọn`;
|
|
72986
72986
|
}
|
|
72987
72987
|
else {
|
|
72988
72988
|
const selected = flatItems.find((item) => item.value === value);
|
|
@@ -75789,7 +75789,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
|
|
|
75789
75789
|
}
|
|
75790
75790
|
return multiDisplayText
|
|
75791
75791
|
? multiDisplayText(count)
|
|
75792
|
-
:
|
|
75792
|
+
: `Đã chọn ${count.toString().padStart(2, "0")} tùy chọn`;
|
|
75793
75793
|
}
|
|
75794
75794
|
else {
|
|
75795
75795
|
if (value) {
|