@indico-data/design-system 3.0.3 → 3.0.5
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/lib/index.css +91 -1
- package/lib/index.esm.css +91 -1
- package/lib/index.esm.js +6 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/forms/input/Input.tsx +1 -0
- package/src/components/forms/input/styles/Input.scss +3 -0
- package/src/components/forms/radio/Radio.stories.tsx +17 -13
- package/src/components/forms/radio/styles/Radio.scss +0 -1
- package/src/components/pagination/Pagination.tsx +2 -2
- package/src/components/tanstackTable/TanstackTable.tsx +5 -1
- package/src/styles/_gap.scss +18 -0
- package/src/styles/_padding.scss +15 -11
- package/src/styles/index.scss +1 -0
- package/src/styles/variables/_gap.scss +19 -0
- package/src/styles/variables/index.scss +1 -0
- package/src/stylesAndAnimations/sizing/Sizing.mdx +19 -19
- package/src/stylesAndAnimations/utilityClasses/UtilityClassesData.ts +17 -0
package/lib/index.css
CHANGED
|
@@ -591,6 +591,26 @@
|
|
|
591
591
|
--pf-negative-margin-16: -64px;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
+
:root {
|
|
595
|
+
--pf-gap-0: 0;
|
|
596
|
+
--pf-gap-1: 4px;
|
|
597
|
+
--pf-gap-2: 8px;
|
|
598
|
+
--pf-gap-3: 12px;
|
|
599
|
+
--pf-gap-4: 16px;
|
|
600
|
+
--pf-gap-5: 20px;
|
|
601
|
+
--pf-gap-6: 24px;
|
|
602
|
+
--pf-gap-7: 28px;
|
|
603
|
+
--pf-gap-8: 32px;
|
|
604
|
+
--pf-gap-9: 36px;
|
|
605
|
+
--pf-gap-10: 40px;
|
|
606
|
+
--pf-gap-11: 44px;
|
|
607
|
+
--pf-gap-12: 48px;
|
|
608
|
+
--pf-gap-13: 52px;
|
|
609
|
+
--pf-gap-14: 56px;
|
|
610
|
+
--pf-gap-15: 60px;
|
|
611
|
+
--pf-gap-16: 64px;
|
|
612
|
+
}
|
|
613
|
+
|
|
594
614
|
:root {
|
|
595
615
|
--pf-size-0: 0;
|
|
596
616
|
--pf-size-1: 4px;
|
|
@@ -1287,6 +1307,9 @@ a:hover,
|
|
|
1287
1307
|
color: var(--pf-form-input-color);
|
|
1288
1308
|
cursor: pointer;
|
|
1289
1309
|
}
|
|
1310
|
+
.input-wrapper .is-clearable {
|
|
1311
|
+
padding-right: var(--pf-padding-6);
|
|
1312
|
+
}
|
|
1290
1313
|
|
|
1291
1314
|
:root {
|
|
1292
1315
|
--pf-number-input-padding: 10px;
|
|
@@ -1344,7 +1367,6 @@ a:hover,
|
|
|
1344
1367
|
|
|
1345
1368
|
.radio-wrapper {
|
|
1346
1369
|
display: flex;
|
|
1347
|
-
margin-bottom: var(--pf-margin-2);
|
|
1348
1370
|
align-items: center;
|
|
1349
1371
|
}
|
|
1350
1372
|
|
|
@@ -8005,6 +8027,74 @@ p,
|
|
|
8005
8027
|
margin-top: var(--pf-negative-margin-16);
|
|
8006
8028
|
}
|
|
8007
8029
|
|
|
8030
|
+
.gap-0 {
|
|
8031
|
+
gap: var(--pf-gap-0);
|
|
8032
|
+
}
|
|
8033
|
+
|
|
8034
|
+
.gap-1 {
|
|
8035
|
+
gap: var(--pf-gap-1);
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8038
|
+
.gap-2 {
|
|
8039
|
+
gap: var(--pf-gap-2);
|
|
8040
|
+
}
|
|
8041
|
+
|
|
8042
|
+
.gap-3 {
|
|
8043
|
+
gap: var(--pf-gap-3);
|
|
8044
|
+
}
|
|
8045
|
+
|
|
8046
|
+
.gap-4 {
|
|
8047
|
+
gap: var(--pf-gap-4);
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
.gap-5 {
|
|
8051
|
+
gap: var(--pf-gap-5);
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
.gap-6 {
|
|
8055
|
+
gap: var(--pf-gap-6);
|
|
8056
|
+
}
|
|
8057
|
+
|
|
8058
|
+
.gap-7 {
|
|
8059
|
+
gap: var(--pf-gap-7);
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
.gap-8 {
|
|
8063
|
+
gap: var(--pf-gap-8);
|
|
8064
|
+
}
|
|
8065
|
+
|
|
8066
|
+
.gap-9 {
|
|
8067
|
+
gap: var(--pf-gap-9);
|
|
8068
|
+
}
|
|
8069
|
+
|
|
8070
|
+
.gap-10 {
|
|
8071
|
+
gap: var(--pf-gap-10);
|
|
8072
|
+
}
|
|
8073
|
+
|
|
8074
|
+
.gap-11 {
|
|
8075
|
+
gap: var(--pf-gap-11);
|
|
8076
|
+
}
|
|
8077
|
+
|
|
8078
|
+
.gap-12 {
|
|
8079
|
+
gap: var(--pf-gap-12);
|
|
8080
|
+
}
|
|
8081
|
+
|
|
8082
|
+
.gap-13 {
|
|
8083
|
+
gap: var(--pf-gap-13);
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
.gap-14 {
|
|
8087
|
+
gap: var(--pf-gap-14);
|
|
8088
|
+
}
|
|
8089
|
+
|
|
8090
|
+
.gap-15 {
|
|
8091
|
+
gap: var(--pf-gap-15);
|
|
8092
|
+
}
|
|
8093
|
+
|
|
8094
|
+
.gap-16 {
|
|
8095
|
+
gap: var(--pf-gap-16);
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8008
8098
|
@keyframes spin {
|
|
8009
8099
|
0% {
|
|
8010
8100
|
transform: rotate(0deg);
|
package/lib/index.esm.css
CHANGED
|
@@ -591,6 +591,26 @@
|
|
|
591
591
|
--pf-negative-margin-16: -64px;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
+
:root {
|
|
595
|
+
--pf-gap-0: 0;
|
|
596
|
+
--pf-gap-1: 4px;
|
|
597
|
+
--pf-gap-2: 8px;
|
|
598
|
+
--pf-gap-3: 12px;
|
|
599
|
+
--pf-gap-4: 16px;
|
|
600
|
+
--pf-gap-5: 20px;
|
|
601
|
+
--pf-gap-6: 24px;
|
|
602
|
+
--pf-gap-7: 28px;
|
|
603
|
+
--pf-gap-8: 32px;
|
|
604
|
+
--pf-gap-9: 36px;
|
|
605
|
+
--pf-gap-10: 40px;
|
|
606
|
+
--pf-gap-11: 44px;
|
|
607
|
+
--pf-gap-12: 48px;
|
|
608
|
+
--pf-gap-13: 52px;
|
|
609
|
+
--pf-gap-14: 56px;
|
|
610
|
+
--pf-gap-15: 60px;
|
|
611
|
+
--pf-gap-16: 64px;
|
|
612
|
+
}
|
|
613
|
+
|
|
594
614
|
:root {
|
|
595
615
|
--pf-size-0: 0;
|
|
596
616
|
--pf-size-1: 4px;
|
|
@@ -1287,6 +1307,9 @@ a:hover,
|
|
|
1287
1307
|
color: var(--pf-form-input-color);
|
|
1288
1308
|
cursor: pointer;
|
|
1289
1309
|
}
|
|
1310
|
+
.input-wrapper .is-clearable {
|
|
1311
|
+
padding-right: var(--pf-padding-6);
|
|
1312
|
+
}
|
|
1290
1313
|
|
|
1291
1314
|
:root {
|
|
1292
1315
|
--pf-number-input-padding: 10px;
|
|
@@ -1344,7 +1367,6 @@ a:hover,
|
|
|
1344
1367
|
|
|
1345
1368
|
.radio-wrapper {
|
|
1346
1369
|
display: flex;
|
|
1347
|
-
margin-bottom: var(--pf-margin-2);
|
|
1348
1370
|
align-items: center;
|
|
1349
1371
|
}
|
|
1350
1372
|
|
|
@@ -8005,6 +8027,74 @@ p,
|
|
|
8005
8027
|
margin-top: var(--pf-negative-margin-16);
|
|
8006
8028
|
}
|
|
8007
8029
|
|
|
8030
|
+
.gap-0 {
|
|
8031
|
+
gap: var(--pf-gap-0);
|
|
8032
|
+
}
|
|
8033
|
+
|
|
8034
|
+
.gap-1 {
|
|
8035
|
+
gap: var(--pf-gap-1);
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8038
|
+
.gap-2 {
|
|
8039
|
+
gap: var(--pf-gap-2);
|
|
8040
|
+
}
|
|
8041
|
+
|
|
8042
|
+
.gap-3 {
|
|
8043
|
+
gap: var(--pf-gap-3);
|
|
8044
|
+
}
|
|
8045
|
+
|
|
8046
|
+
.gap-4 {
|
|
8047
|
+
gap: var(--pf-gap-4);
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
.gap-5 {
|
|
8051
|
+
gap: var(--pf-gap-5);
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
.gap-6 {
|
|
8055
|
+
gap: var(--pf-gap-6);
|
|
8056
|
+
}
|
|
8057
|
+
|
|
8058
|
+
.gap-7 {
|
|
8059
|
+
gap: var(--pf-gap-7);
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
.gap-8 {
|
|
8063
|
+
gap: var(--pf-gap-8);
|
|
8064
|
+
}
|
|
8065
|
+
|
|
8066
|
+
.gap-9 {
|
|
8067
|
+
gap: var(--pf-gap-9);
|
|
8068
|
+
}
|
|
8069
|
+
|
|
8070
|
+
.gap-10 {
|
|
8071
|
+
gap: var(--pf-gap-10);
|
|
8072
|
+
}
|
|
8073
|
+
|
|
8074
|
+
.gap-11 {
|
|
8075
|
+
gap: var(--pf-gap-11);
|
|
8076
|
+
}
|
|
8077
|
+
|
|
8078
|
+
.gap-12 {
|
|
8079
|
+
gap: var(--pf-gap-12);
|
|
8080
|
+
}
|
|
8081
|
+
|
|
8082
|
+
.gap-13 {
|
|
8083
|
+
gap: var(--pf-gap-13);
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
.gap-14 {
|
|
8087
|
+
gap: var(--pf-gap-14);
|
|
8088
|
+
}
|
|
8089
|
+
|
|
8090
|
+
.gap-15 {
|
|
8091
|
+
gap: var(--pf-gap-15);
|
|
8092
|
+
}
|
|
8093
|
+
|
|
8094
|
+
.gap-16 {
|
|
8095
|
+
gap: var(--pf-gap-16);
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8008
8098
|
@keyframes spin {
|
|
8009
8099
|
0% {
|
|
8010
8100
|
transform: rotate(0deg);
|
package/lib/index.esm.js
CHANGED
|
@@ -5473,6 +5473,7 @@ const Input = React__default.forwardRef((_a, ref) => {
|
|
|
5473
5473
|
onChange === null || onChange === void 0 ? void 0 : onChange({ target: { value: '' } });
|
|
5474
5474
|
};
|
|
5475
5475
|
const inputClasses = classNames('input', {
|
|
5476
|
+
'is-clearable': isClearable,
|
|
5476
5477
|
error: hasErrors,
|
|
5477
5478
|
'input--has-icon': iconName,
|
|
5478
5479
|
}, className);
|
|
@@ -5515,7 +5516,7 @@ const Pagination = (_a) => {
|
|
|
5515
5516
|
const isNextButtonDisabled = currentPage === totalPages;
|
|
5516
5517
|
const isPreviousButtonDisabled = currentPage === 1;
|
|
5517
5518
|
const hasError = Number(inputValue) > totalPages || Number(inputValue) < 1;
|
|
5518
|
-
return (jsx("div", Object.assign({ className: classes }, rest, { children: jsx(Container, { children: jsxs(Row, { gutterWidth: 12, align: "center", children: [jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__previous", children: jsx(Button$1, { "data-testid": "pagination-previous-button", ariaLabel: "Previous Page", variant: "link", onClick: handlePreviousPage, iconLeft: "chevron-left", isDisabled: isPreviousButtonDisabled }) }) }), jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__current-page", children: jsx(LabeledInput, { "data-testid": "pagination-current-page-input", className: classNames('pagination__current-page-input', {
|
|
5519
|
+
return (jsx("div", Object.assign({ className: classes }, rest, { children: jsx(Container, { children: jsxs(Row, { gutterWidth: 12, align: "center", children: [jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__previous", children: jsx(Button$1, { "data-testid": "pagination-previous-button", ariaLabel: "Previous Page", variant: "link", onClick: handlePreviousPage, iconLeft: "chevron-left", isDisabled: isPreviousButtonDisabled || totalPages === 0 }) }) }), jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__current-page", children: jsx(LabeledInput, { "data-testid": "pagination-current-page-input", className: classNames('pagination__current-page-input', {
|
|
5519
5520
|
'has-error': hasError,
|
|
5520
5521
|
}), value: totalPages === 0 ? '0' : inputValue, name: "currentPage", label: "Current Page", hasHiddenLabel: true, onKeyDown: (e) => {
|
|
5521
5522
|
if (e.key === 'Enter') {
|
|
@@ -5527,7 +5528,7 @@ const Pagination = (_a) => {
|
|
|
5527
5528
|
if (value === '' || /^\d*$/.test(value)) {
|
|
5528
5529
|
setInputValue(value);
|
|
5529
5530
|
}
|
|
5530
|
-
}, onBlur: (e) => validateAndUpdatePage(e.currentTarget.value) }) }) }), jsx(Col, { xs: "content", children: jsx("p", { className: "pagination__page-total", children: totalPagesText }) }), jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__next", children: jsx(Button$1, { "data-testid": "pagination-next-button", ariaLabel: "Next Page", variant: "link", onClick: handleNextPage, iconLeft: "chevron-right", isDisabled: isNextButtonDisabled }) }) })] }) }) })));
|
|
5531
|
+
}, onBlur: (e) => validateAndUpdatePage(e.currentTarget.value) }) }) }), jsx(Col, { xs: "content", children: jsx("p", { className: "pagination__page-total", children: totalPagesText }) }), jsx(Col, { xs: "content", children: jsx("div", { className: "pagination__next", children: jsx(Button$1, { "data-testid": "pagination-next-button", ariaLabel: "Next Page", variant: "link", onClick: handleNextPage, iconLeft: "chevron-right", isDisabled: isNextButtonDisabled || totalPages === 0 }) }) })] }) }) })));
|
|
5531
5532
|
};
|
|
5532
5533
|
|
|
5533
5534
|
const TablePagination$1 = ({ rowsPerPage, rowCount, onChangePage, currentPage, totalEntriesText, }) => {
|
|
@@ -41533,7 +41534,9 @@ function TanstackTable(_a) {
|
|
|
41533
41534
|
};
|
|
41534
41535
|
return (jsxs("div", { className: "tanstack-table__outer-container", children: [jsxs("div", { className: "tanstack-table__container", children: [jsxs("table", { className: classNames('tanstack-table', className, {
|
|
41535
41536
|
'is-striped': isStriped,
|
|
41536
|
-
}), children: [jsx("thead", { className: "tanstack-table__thead", children: jsx(TableHeader, { table: table, ref: thRefs }) }), jsx("tbody", { className: "tanstack-table__tbody", children: renderBody() })] }), hasSelectedRows && (jsx(ActionBar, { table: table, TableActions: TableActions, className: actionBarClassName }))] }), shouldRenderPagination ? (jsx(TablePagination, { currentPage: currentPage, rowCount: rowCount, onChangePage: onChangePage, rowsPerPage: rowsPerPage, totalEntriesText: totalEntriesText !== null && totalEntriesText !== void 0 ? totalEntriesText :
|
|
41537
|
+
}), children: [jsx("thead", { className: "tanstack-table__thead", children: jsx(TableHeader, { table: table, ref: thRefs }) }), jsx("tbody", { className: "tanstack-table__tbody", children: renderBody() })] }), hasSelectedRows && (jsx(ActionBar, { table: table, TableActions: TableActions, className: actionBarClassName }))] }), shouldRenderPagination ? (jsx(TablePagination, { currentPage: currentPage, rowCount: rowCount, onChangePage: onChangePage, rowsPerPage: rowsPerPage, totalEntriesText: (totalEntriesText !== null && totalEntriesText !== void 0 ? totalEntriesText : rowCount === 1)
|
|
41538
|
+
? '1 entry'
|
|
41539
|
+
: `${totalRowsOnPage} of ${rowCount} entries` })) : null] }));
|
|
41537
41540
|
}
|
|
41538
41541
|
|
|
41539
41542
|
/**
|