fis-component 0.1.32 → 0.1.34
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 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Pagination/Pagination.stories.d.ts +1 -0
- package/dist/esm/index.js +7 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Pagination/Pagination.stories.d.ts +1 -0
- package/package.json +1 -1
|
@@ -66,3 +66,4 @@ export declare const Default: StoryObj<PaginationProps>;
|
|
|
66
66
|
export declare const Minimized: StoryObj<PaginationProps>;
|
|
67
67
|
export declare const CustomTotal: StoryObj<PaginationProps>;
|
|
68
68
|
export declare const WithRecordCounted: StoryObj<PaginationProps>;
|
|
69
|
+
export declare const Empty: StoryObj<PaginationProps>;
|
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")}
|
|
@@ -76584,6 +76584,9 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
76584
76584
|
}
|
|
76585
76585
|
};
|
|
76586
76586
|
const rangeRecords = useMemo$1(() => {
|
|
76587
|
+
if (!total || total <= 0) {
|
|
76588
|
+
return [0, 0];
|
|
76589
|
+
}
|
|
76587
76590
|
return [
|
|
76588
76591
|
(current - 1) * pageSize + 1,
|
|
76589
76592
|
current * pageSize > total ? total : current * pageSize,
|