@thecb/components 7.8.2-beta.3 → 7.8.2-beta.4
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.cjs.js +7 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +7 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/layouts/Cluster.d.ts +1 -0
- package/src/components/molecules/pagination/Pagination.js +4 -3
- package/src/components/molecules/pagination/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -103,6 +103,7 @@ const Pagination = ({
|
|
|
103
103
|
pageNext,
|
|
104
104
|
pagePrevious,
|
|
105
105
|
setCurrentPage,
|
|
106
|
+
ariaLabel,
|
|
106
107
|
themeValues
|
|
107
108
|
}) => {
|
|
108
109
|
const { isMobile } = useContext(ThemeContext);
|
|
@@ -145,6 +146,7 @@ const Pagination = ({
|
|
|
145
146
|
overflow={true}
|
|
146
147
|
as="nav"
|
|
147
148
|
innerWrapperAs="ul"
|
|
149
|
+
aria-label={ariaLabel}
|
|
148
150
|
extraStyles="> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
149
151
|
>
|
|
150
152
|
{currentPage > 1 ? (
|
|
@@ -187,10 +189,10 @@ const Pagination = ({
|
|
|
187
189
|
padding="0"
|
|
188
190
|
extraStyles={`max-height: ${buttonHeight};`}
|
|
189
191
|
as="li"
|
|
192
|
+
key={`pagination-button-${item.index}`}
|
|
190
193
|
>
|
|
191
194
|
<ButtonWithAction
|
|
192
195
|
variant="ghost"
|
|
193
|
-
key={item.index}
|
|
194
196
|
text={item.index}
|
|
195
197
|
disabled={item.active}
|
|
196
198
|
extraDisabledStyles={extraDisabledStyles}
|
|
@@ -211,10 +213,9 @@ const Pagination = ({
|
|
|
211
213
|
</ButtonWithAction>
|
|
212
214
|
</Box>
|
|
213
215
|
) : (
|
|
214
|
-
<Box padding="0 10px">
|
|
216
|
+
<Box padding="0 10px" as="li" key={`pagination-elipsis-${index}`}>
|
|
215
217
|
<Cluster justify="flex-end">
|
|
216
218
|
<Text
|
|
217
|
-
key={index}
|
|
218
219
|
variant="pXL"
|
|
219
220
|
weight={fontWeight}
|
|
220
221
|
color={numberColor ?? themeValues.numberColor}
|