@paubox/ui 1.14.0 → 1.15.0
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/index.esm.js +64 -42
- package/package.json +1 -1
- package/src/theme/baseTypography.d.ts +1 -1
- package/src/theme/colors.d.ts +2 -2
package/index.esm.js
CHANGED
|
@@ -1447,7 +1447,7 @@ var paragraph300LetterSpacing = 0;
|
|
|
1447
1447
|
var button100FontSize = 16;
|
|
1448
1448
|
var button100LineHeight = 16;
|
|
1449
1449
|
var button100LetterSpacing = button100FontSize * 0.02;
|
|
1450
|
-
var button200FontSize =
|
|
1450
|
+
var button200FontSize = 14;
|
|
1451
1451
|
var button200LineHeight = 12;
|
|
1452
1452
|
var button200LetterSpacing = button200FontSize * 0.02;
|
|
1453
1453
|
// BUTTON
|
|
@@ -1500,8 +1500,8 @@ var baseTypography = /*#__PURE__*/Object.freeze({
|
|
|
1500
1500
|
paragraph300LineHeight: paragraph300LineHeight
|
|
1501
1501
|
});
|
|
1502
1502
|
|
|
1503
|
-
var textPrimary$1 = '#
|
|
1504
|
-
var textSecondary$1 = '#
|
|
1503
|
+
var textPrimary$1 = '#000000';
|
|
1504
|
+
var textSecondary$1 = '#000000';
|
|
1505
1505
|
var textPrimaryWhite$1 = '#FFFFFF';
|
|
1506
1506
|
var textPrimaryDisabled$1 = '#545D78';
|
|
1507
1507
|
var textPrimaryIconDisabled$1 = '#0000004D';
|
|
@@ -2130,7 +2130,7 @@ function _templateObject15() {
|
|
|
2130
2130
|
"\n font-size: ",
|
|
2131
2131
|
"rem;\n line-height: ",
|
|
2132
2132
|
"rem;\n letter-spacing: ",
|
|
2133
|
-
"px;\n font-weight:
|
|
2133
|
+
"px;\n font-weight: 400;\n"
|
|
2134
2134
|
]);
|
|
2135
2135
|
_templateObject15 = function _templateObject() {
|
|
2136
2136
|
return data;
|
|
@@ -2143,7 +2143,7 @@ function _templateObject16() {
|
|
|
2143
2143
|
"\n font-size: ",
|
|
2144
2144
|
"rem;\n line-height: ",
|
|
2145
2145
|
"rem;\n letter-spacing: ",
|
|
2146
|
-
"px;\n font-weight:
|
|
2146
|
+
"px;\n font-weight: 400;\n"
|
|
2147
2147
|
]);
|
|
2148
2148
|
_templateObject16 = function _templateObject() {
|
|
2149
2149
|
return data;
|
|
@@ -22777,7 +22777,7 @@ function _templateObject$l() {
|
|
|
22777
22777
|
"\n display: flex;\n justify-content: space-between;\n padding: ",
|
|
22778
22778
|
"px;\n border: 1px solid ",
|
|
22779
22779
|
";\n border-radius: ",
|
|
22780
|
-
"px;\n font-weight:
|
|
22780
|
+
"px;\n font-weight: 500;\n opacity: 0.8;\n background-color: white;\n\n html.dark & {\n background-color: ",
|
|
22781
22781
|
" !important;\n border-color: ",
|
|
22782
22782
|
";\n color: ",
|
|
22783
22783
|
";\n\n &:hover {\n background-color: ",
|
|
@@ -22984,7 +22984,8 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
22984
22984
|
function _templateObject$k() {
|
|
22985
22985
|
var data = _tagged_template_literal$k([
|
|
22986
22986
|
"\n margin-left: ",
|
|
22987
|
-
"px;\n
|
|
22987
|
+
"px;\n font-size: ",
|
|
22988
|
+
"rem;\n transition: all 150ms ease-in-out;\n transform: ",
|
|
22988
22989
|
";\n"
|
|
22989
22990
|
]);
|
|
22990
22991
|
_templateObject$k = function _templateObject() {
|
|
@@ -22993,6 +22994,9 @@ function _templateObject$k() {
|
|
|
22993
22994
|
return data;
|
|
22994
22995
|
}
|
|
22995
22996
|
var ArrowIcon = styled(ChevronDown)(_templateObject$k(), spacing(1), function(param) {
|
|
22997
|
+
var sz = param.sz;
|
|
22998
|
+
return sz === 'large' ? 1 : 0.75;
|
|
22999
|
+
}, function(param) {
|
|
22996
23000
|
var open = param.open;
|
|
22997
23001
|
return open ? 'rotate(180deg)' : 'rotate(0deg)';
|
|
22998
23002
|
});
|
|
@@ -23028,7 +23032,8 @@ var DropdownMenu = function(param) {
|
|
|
23028
23032
|
children: [
|
|
23029
23033
|
label,
|
|
23030
23034
|
/*#__PURE__*/ jsx(ArrowIcon, {
|
|
23031
|
-
open: isControlled ? openProp : open
|
|
23035
|
+
open: isControlled ? openProp : open,
|
|
23036
|
+
sz: size
|
|
23032
23037
|
})
|
|
23033
23038
|
]
|
|
23034
23039
|
})),
|
|
@@ -34283,13 +34288,14 @@ var TableHeader = function(param) {
|
|
|
34283
34288
|
];
|
|
34284
34289
|
var columnDef = header === null || header === void 0 ? void 0 : (_header_column = header.column) === null || _header_column === void 0 ? void 0 : _header_column.columnDef;
|
|
34285
34290
|
var autoWidth = !!columnDef.autoWidth;
|
|
34291
|
+
var isFixed = actionHeaders.includes(header.id);
|
|
34286
34292
|
return /*#__PURE__*/ jsxs(Th, {
|
|
34287
34293
|
variant: "paragraph200Semibold",
|
|
34288
34294
|
as: "th",
|
|
34289
34295
|
style: {
|
|
34290
34296
|
width: autoWidth ? 'auto' : "".concat(header.getSize(), "px"),
|
|
34291
|
-
minWidth: autoWidth ? 'auto' : undefined,
|
|
34292
|
-
maxWidth: autoWidth ? 'auto' : undefined,
|
|
34297
|
+
minWidth: isFixed ? "".concat(header.getSize(), "px") : autoWidth ? 'auto' : undefined,
|
|
34298
|
+
maxWidth: isFixed ? "".concat(header.getSize(), "px") : autoWidth ? 'auto' : undefined,
|
|
34293
34299
|
padding: dense ? "".concat(spacing(1), "px ").concat(spacing(header.id === 'row-select' ? 1 : 1.5), "px") : "".concat(spacing(1.5), "px ").concat(spacing(header.id === 'row-select' ? 1 : 1.5), "px")
|
|
34294
34300
|
},
|
|
34295
34301
|
children: [
|
|
@@ -34485,6 +34491,7 @@ var TableBody = function(param) {
|
|
|
34485
34491
|
var overflow = columnDef.overflow;
|
|
34486
34492
|
var maxLines = columnDef.maxLines;
|
|
34487
34493
|
var autoWidth = columnDef.autoWidth;
|
|
34494
|
+
var isFixed = cell.column.id === 'row-select' || cell.column.id === 'context';
|
|
34488
34495
|
var cellContent = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
34489
34496
|
return /*#__PURE__*/ jsx(Td, {
|
|
34490
34497
|
variant: "paragraph200Regular",
|
|
@@ -34493,6 +34500,8 @@ var TableBody = function(param) {
|
|
|
34493
34500
|
cellOverflow: overflow,
|
|
34494
34501
|
style: {
|
|
34495
34502
|
width: autoWidth ? 'auto' : "".concat(cell.column.getSize(), "px"),
|
|
34503
|
+
minWidth: isFixed ? "".concat(cell.column.getSize(), "px") : undefined,
|
|
34504
|
+
maxWidth: isFixed ? "".concat(cell.column.getSize(), "px") : undefined,
|
|
34496
34505
|
padding: dense ? "".concat(spacing(1), "px ").concat(spacing(cell.column.id === 'row-select' ? 1 : 1.5), "px") : "".concat(spacing(1.5), "px ").concat(spacing(cell.column.id === 'row-select' ? 1 : 1.5), "px")
|
|
34497
34506
|
},
|
|
34498
34507
|
children: overflow === 'clamp' && maxLines ? /*#__PURE__*/ jsx(ClampWrapper, {
|
|
@@ -34690,7 +34699,7 @@ function _templateObject$2() {
|
|
|
34690
34699
|
}
|
|
34691
34700
|
function _templateObject1$2() {
|
|
34692
34701
|
var data = _tagged_template_literal$2([
|
|
34693
|
-
"\n position: relative;\n border-collapse: collapse;\n table-layout: fixed;\n min-height: 0;\n width: 100%;\n overflow-x: auto;\n"
|
|
34702
|
+
"\n position: relative;\n border-collapse: collapse;\n table-layout: fixed;\n min-height: 0;\n min-width: 100%;\n overflow-x: auto;\n"
|
|
34694
34703
|
]);
|
|
34695
34704
|
_templateObject1$2 = function _templateObject() {
|
|
34696
34705
|
return data;
|
|
@@ -34699,7 +34708,7 @@ function _templateObject1$2() {
|
|
|
34699
34708
|
}
|
|
34700
34709
|
function _templateObject2$2() {
|
|
34701
34710
|
var data = _tagged_template_literal$2([
|
|
34702
|
-
"\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 0 ",
|
|
34711
|
+
"\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n padding: 0 0 ",
|
|
34703
34712
|
"px 0;\n gap: ",
|
|
34704
34713
|
"px;\n\n @media (max-width: 768px) {\n flex-direction: column;\n align-items: stretch;\n }\n"
|
|
34705
34714
|
]);
|
|
@@ -34710,7 +34719,7 @@ function _templateObject2$2() {
|
|
|
34710
34719
|
}
|
|
34711
34720
|
function _templateObject3$1() {
|
|
34712
34721
|
var data = _tagged_template_literal$2([
|
|
34713
|
-
"\n display: flex;\n gap: ",
|
|
34722
|
+
"\n display: flex;\n flex-wrap: wrap;\n gap: ",
|
|
34714
34723
|
"px;\n align-items: center;\n"
|
|
34715
34724
|
]);
|
|
34716
34725
|
_templateObject3$1 = function _templateObject() {
|
|
@@ -34936,35 +34945,40 @@ var Table = function(param) {
|
|
|
34936
34945
|
})
|
|
34937
34946
|
}) : toolbar
|
|
34938
34947
|
}),
|
|
34939
|
-
hasPaginationHandlers && pageInfo &&
|
|
34940
|
-
|
|
34941
|
-
|
|
34942
|
-
subText: subText,
|
|
34943
|
-
isLoading: isLoading,
|
|
34944
|
-
onPageSizeChange: function(size) {
|
|
34945
|
-
resetContainerScroll();
|
|
34946
|
-
onPageSizeChange(size);
|
|
34947
|
-
},
|
|
34948
|
-
onPageChange: function(page) {
|
|
34949
|
-
resetContainerScroll();
|
|
34950
|
-
onPageChange(page);
|
|
34951
|
-
},
|
|
34952
|
-
testId: "".concat(testId, "-pagination")
|
|
34953
|
-
}) : /*#__PURE__*/ jsx(Pagination, {
|
|
34954
|
-
mode: "cursor",
|
|
34955
|
-
pageInfo: pageInfo,
|
|
34956
|
-
subText: subText,
|
|
34957
|
-
isLoading: isLoading,
|
|
34958
|
-
onPageSizeChange: function(size) {
|
|
34959
|
-
resetContainerScroll();
|
|
34960
|
-
onPageSizeChange(size);
|
|
34961
|
-
},
|
|
34962
|
-
onPageChange: function(page) {
|
|
34963
|
-
resetContainerScroll();
|
|
34964
|
-
onPageChange(page);
|
|
34948
|
+
hasPaginationHandlers && pageInfo && /*#__PURE__*/ jsx("div", {
|
|
34949
|
+
style: {
|
|
34950
|
+
marginLeft: 'auto'
|
|
34965
34951
|
},
|
|
34966
|
-
|
|
34967
|
-
|
|
34952
|
+
children: paginationMode === 'page' && pageInfo && 'currentPage' in pageInfo ? /*#__PURE__*/ jsx(Pagination, {
|
|
34953
|
+
mode: "page",
|
|
34954
|
+
pageInfo: pageInfo,
|
|
34955
|
+
subText: subText,
|
|
34956
|
+
isLoading: isLoading,
|
|
34957
|
+
onPageSizeChange: function(size) {
|
|
34958
|
+
resetContainerScroll();
|
|
34959
|
+
onPageSizeChange(size);
|
|
34960
|
+
},
|
|
34961
|
+
onPageChange: function(page) {
|
|
34962
|
+
resetContainerScroll();
|
|
34963
|
+
onPageChange(page);
|
|
34964
|
+
},
|
|
34965
|
+
testId: "".concat(testId, "-pagination")
|
|
34966
|
+
}) : /*#__PURE__*/ jsx(Pagination, {
|
|
34967
|
+
mode: "cursor",
|
|
34968
|
+
pageInfo: pageInfo,
|
|
34969
|
+
subText: subText,
|
|
34970
|
+
isLoading: isLoading,
|
|
34971
|
+
onPageSizeChange: function(size) {
|
|
34972
|
+
resetContainerScroll();
|
|
34973
|
+
onPageSizeChange(size);
|
|
34974
|
+
},
|
|
34975
|
+
onPageChange: function(page) {
|
|
34976
|
+
resetContainerScroll();
|
|
34977
|
+
onPageChange(page);
|
|
34978
|
+
},
|
|
34979
|
+
testId: "".concat(testId, "-pagination")
|
|
34980
|
+
})
|
|
34981
|
+
})
|
|
34968
34982
|
]
|
|
34969
34983
|
}),
|
|
34970
34984
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -34992,10 +35006,18 @@ var Table = function(param) {
|
|
|
34992
35006
|
children: !error ? 'No results found.' : error
|
|
34993
35007
|
}),
|
|
34994
35008
|
/*#__PURE__*/ jsxs(TableWrapper, {
|
|
35009
|
+
style: {
|
|
35010
|
+
width: table.getCenterTotalSize()
|
|
35011
|
+
},
|
|
34995
35012
|
children: [
|
|
34996
35013
|
/*#__PURE__*/ jsx("colgroup", {
|
|
34997
35014
|
children: table.getAllColumns().map(function(column) {
|
|
34998
|
-
|
|
35015
|
+
var isFixed = column.id === 'row-select' || column.id === 'context';
|
|
35016
|
+
return /*#__PURE__*/ jsx("col", {
|
|
35017
|
+
style: isFixed ? {
|
|
35018
|
+
width: "".concat(column.getSize(), "px")
|
|
35019
|
+
} : undefined
|
|
35020
|
+
}, column.id);
|
|
34999
35021
|
})
|
|
35000
35022
|
}),
|
|
35001
35023
|
/*#__PURE__*/ jsx(TableHeader, {
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ export declare const paragraph300LetterSpacing = 0;
|
|
|
20
20
|
export declare const button100FontSize = 16;
|
|
21
21
|
export declare const button100LineHeight = 16;
|
|
22
22
|
export declare const button100LetterSpacing: number;
|
|
23
|
-
export declare const button200FontSize =
|
|
23
|
+
export declare const button200FontSize = 14;
|
|
24
24
|
export declare const button200LineHeight = 12;
|
|
25
25
|
export declare const button200LetterSpacing: number;
|
|
26
26
|
export declare const label100FontSize = 16;
|
package/src/theme/colors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const textPrimary = "#
|
|
2
|
-
export declare const textSecondary = "#
|
|
1
|
+
export declare const textPrimary = "#000000";
|
|
2
|
+
export declare const textSecondary = "#000000";
|
|
3
3
|
export declare const textPrimaryWhite = "#FFFFFF";
|
|
4
4
|
export declare const textPrimaryDisabled = "#545D78";
|
|
5
5
|
export declare const textPrimaryIconDisabled = "#0000004D";
|