@oliasoft-open-source/react-ui-library 3.11.0-beta-18 → 3.11.0-beta-20
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/global.css +3 -7
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -15249,15 +15249,11 @@ html[data-theme='dark'] {
|
|
|
15249
15249
|
._detailedLabel_16b8a_662 :last-child {
|
|
15250
15250
|
float: right;
|
|
15251
15251
|
}
|
|
15252
|
-
.
|
|
15252
|
+
._paginationContainer_1tmz4_1 {
|
|
15253
15253
|
display: flex;
|
|
15254
15254
|
align-items: center;
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
display: flex;
|
|
15258
|
-
padding-left: 0;
|
|
15259
|
-
list-style: none;
|
|
15260
|
-
margin: 0 1rem;
|
|
15255
|
+
flex-wrap: wrap;
|
|
15256
|
+
gap: 4px;
|
|
15261
15257
|
}
|
|
15262
15258
|
/*
|
|
15263
15259
|
This file has shared variables that are re-used in other LESS files/modules
|
package/dist/index.js
CHANGED
|
@@ -29358,13 +29358,11 @@ const validateSelectedPage = (selectedPage, numPages, errorMessageTemplate = "Se
|
|
|
29358
29358
|
}
|
|
29359
29359
|
return valid;
|
|
29360
29360
|
};
|
|
29361
|
-
const paginationContainer = "
|
|
29362
|
-
const pagination = "_pagination_1g3st_1";
|
|
29361
|
+
const paginationContainer = "_paginationContainer_1tmz4_1";
|
|
29363
29362
|
const styles$k = {
|
|
29364
|
-
paginationContainer
|
|
29365
|
-
pagination
|
|
29363
|
+
paginationContainer
|
|
29366
29364
|
};
|
|
29367
|
-
const Pagination = ({ pagination
|
|
29365
|
+
const Pagination = ({ pagination }) => {
|
|
29368
29366
|
const {
|
|
29369
29367
|
rowCount,
|
|
29370
29368
|
selectedPage,
|
|
@@ -29372,7 +29370,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
29372
29370
|
onSelectPage,
|
|
29373
29371
|
rowsPerPage,
|
|
29374
29372
|
errorMessageTemplate
|
|
29375
|
-
} =
|
|
29373
|
+
} = pagination;
|
|
29376
29374
|
const showAll = Number(rowsPerPage == null ? void 0 : rowsPerPage.value) === 0;
|
|
29377
29375
|
const numPages = numberOfPages(rowCount, rowsPerPage);
|
|
29378
29376
|
const [unvalidatedSelectedPage, setUnvalidatedSelectedPage] = useState(
|
|
@@ -29416,6 +29414,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
29416
29414
|
}),
|
|
29417
29415
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
29418
29416
|
small: small2,
|
|
29417
|
+
round: true,
|
|
29419
29418
|
basic: true,
|
|
29420
29419
|
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDoubleLeft, {}),
|
|
29421
29420
|
onClick: () => setSelectedPage(String(1)),
|
|
@@ -29423,6 +29422,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
29423
29422
|
}),
|
|
29424
29423
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
29425
29424
|
small: small2,
|
|
29425
|
+
round: true,
|
|
29426
29426
|
basic: true,
|
|
29427
29427
|
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleLeft, {}),
|
|
29428
29428
|
onClick: () => setSelectedPage(String(selectedPage - 1)),
|
|
@@ -29451,6 +29451,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
29451
29451
|
}),
|
|
29452
29452
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
29453
29453
|
small: small2,
|
|
29454
|
+
round: true,
|
|
29454
29455
|
basic: true,
|
|
29455
29456
|
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleRight, {}),
|
|
29456
29457
|
onClick: () => setSelectedPage(String(selectedPage + 1)),
|
|
@@ -29458,6 +29459,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
29458
29459
|
}),
|
|
29459
29460
|
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
29460
29461
|
small: small2,
|
|
29462
|
+
round: true,
|
|
29461
29463
|
basic: true,
|
|
29462
29464
|
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDoubleRight, {}),
|
|
29463
29465
|
onClick: () => setSelectedPage(String(numPages)),
|
|
@@ -59183,12 +59185,12 @@ const styles$8 = {
|
|
|
59183
59185
|
section
|
|
59184
59186
|
};
|
|
59185
59187
|
const Footer = (props) => {
|
|
59186
|
-
const { colSpan, pagination
|
|
59188
|
+
const { colSpan, pagination, actions: actions2, content: content2 } = props;
|
|
59187
59189
|
const hasActions2 = actions2 && actions2.length;
|
|
59188
59190
|
const hasContent = content2 != null;
|
|
59189
59191
|
const hasPagination = () => {
|
|
59190
|
-
if (
|
|
59191
|
-
const { rowCount, rowsPerPage } =
|
|
59192
|
+
if (pagination) {
|
|
59193
|
+
const { rowCount, rowsPerPage } = pagination;
|
|
59192
59194
|
const minRows = rowsPerPage.options[0].value;
|
|
59193
59195
|
return rowCount > minRows;
|
|
59194
59196
|
}
|
|
@@ -59208,7 +59210,7 @@ const Footer = (props) => {
|
|
|
59208
59210
|
className: styles$8.section,
|
|
59209
59211
|
children: [
|
|
59210
59212
|
hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx(Pagination, {
|
|
59211
|
-
pagination
|
|
59213
|
+
pagination
|
|
59212
59214
|
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
|
|
59213
59215
|
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
59214
59216
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
@@ -60760,10 +60762,11 @@ Tabs.propTypes = propTypes$1.exports.oneOfType([
|
|
|
60760
60762
|
propTypes$1.exports.shape(TabsShape),
|
|
60761
60763
|
propTypes$1.exports.shape(TabsShapeDeprecated)
|
|
60762
60764
|
]).isRequired;
|
|
60763
|
-
const TextLink = ({ children, href, target, testId }) => {
|
|
60765
|
+
const TextLink = ({ children, href, target, onClick, testId }) => {
|
|
60764
60766
|
return /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
60765
60767
|
href,
|
|
60766
60768
|
target,
|
|
60769
|
+
onClick,
|
|
60767
60770
|
"data-testid": testId,
|
|
60768
60771
|
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
60769
60772
|
link: true,
|
|
@@ -60774,12 +60777,14 @@ const TextLink = ({ children, href, target, testId }) => {
|
|
|
60774
60777
|
TextLink.defaultProps = {
|
|
60775
60778
|
href: null,
|
|
60776
60779
|
target: null,
|
|
60777
|
-
testId: void 0
|
|
60780
|
+
testId: void 0,
|
|
60781
|
+
onClick: void 0
|
|
60778
60782
|
};
|
|
60779
60783
|
TextLink.propTypes = {
|
|
60780
60784
|
href: propTypes$1.exports.string,
|
|
60781
60785
|
target: propTypes$1.exports.string,
|
|
60782
|
-
testId: propTypes$1.exports.string
|
|
60786
|
+
testId: propTypes$1.exports.string,
|
|
60787
|
+
onClick: propTypes$1.exports.func
|
|
60783
60788
|
};
|
|
60784
60789
|
const inputInTable = "_inputInTable_16zvb_341";
|
|
60785
60790
|
const inputHover = "_inputHover_16zvb_350";
|