@clickhouse/click-ui 0.0.129 → 0.0.131
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/click-ui.es.js +35 -8
- package/dist/click-ui.umd.js +35 -8
- package/dist/components/Pagination/Pagination.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/components/icons/Flags/Japan.d.ts +3 -0
- package/dist/components/icons/Flags/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -1785,6 +1785,13 @@ const India = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns:
|
|
|
1785
1785
|
/* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "indiaFlagClipPath2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#fff", d: "M0 0h30v20H0z" }) })
|
|
1786
1786
|
] })
|
|
1787
1787
|
] });
|
|
1788
|
+
const Japan = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", ...props, children: [
|
|
1789
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8004_401)", children: [
|
|
1790
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M30 0H0V20H30V0Z", fill: "white" }),
|
|
1791
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 16C18.3137 16 21 13.3137 21 10C21 6.68629 18.3137 4 15 4C11.6863 4 9 6.68629 9 10C9 13.3137 11.6863 16 15 16Z", fill: "#BC002D" })
|
|
1792
|
+
] }),
|
|
1793
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_8004_401", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "30", height: "20", fill: "white" }) }) })
|
|
1794
|
+
] });
|
|
1788
1795
|
const Netherlands = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 20, viewBox: "0 0 30 20", fill: "none", ...props, children: [
|
|
1789
1796
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#netherlandsFlagClipPath)", children: [
|
|
1790
1797
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#21468B", d: "M30 0H0v20h30V0Z" }),
|
|
@@ -2262,6 +2269,7 @@ const FlagList = {
|
|
|
2262
2269
|
gb: GreatBritain,
|
|
2263
2270
|
ie: Ireland,
|
|
2264
2271
|
in: India,
|
|
2272
|
+
jp: Japan,
|
|
2265
2273
|
nl: Netherlands,
|
|
2266
2274
|
sg: Singapore,
|
|
2267
2275
|
za: SouthAfrica,
|
|
@@ -32359,9 +32367,11 @@ const Pagination = ({
|
|
|
32359
32367
|
onPrevPageClick,
|
|
32360
32368
|
onPageNumberFocus,
|
|
32361
32369
|
onPageNumberBlur,
|
|
32370
|
+
disableNextButton,
|
|
32362
32371
|
...props
|
|
32363
32372
|
}) => {
|
|
32364
32373
|
const hasRowCount = ["number", "string"].includes(typeof rowCount);
|
|
32374
|
+
const inputRef = useRef(null);
|
|
32365
32375
|
const formatNumber = (value) => {
|
|
32366
32376
|
return new Intl.NumberFormat("en").format(value);
|
|
32367
32377
|
};
|
|
@@ -32373,38 +32383,51 @@ const Pagination = ({
|
|
|
32373
32383
|
}
|
|
32374
32384
|
};
|
|
32375
32385
|
const onChange = (value) => {
|
|
32376
|
-
|
|
32386
|
+
var _a;
|
|
32387
|
+
const valueToNumber = Number(value);
|
|
32388
|
+
if (valueToNumber < 1 || ((_a = inputRef.current) == null ? void 0 : _a.disabled)) {
|
|
32389
|
+
return;
|
|
32390
|
+
}
|
|
32391
|
+
onChangeProp(valueToNumber);
|
|
32377
32392
|
};
|
|
32378
32393
|
const onPageSizeChange = (value) => {
|
|
32379
32394
|
if (typeof onPageSizeChangeProp === "function") {
|
|
32380
32395
|
onPageSizeChangeProp(Number(value));
|
|
32381
32396
|
}
|
|
32382
32397
|
};
|
|
32398
|
+
const leftButtonDisabled = currentPage <= 1;
|
|
32399
|
+
const rightButtonDisabled = !!totalPages && currentPage === totalPages || disableNextButton;
|
|
32383
32400
|
const onPrevClick = useCallback((e) => {
|
|
32401
|
+
if (leftButtonDisabled) {
|
|
32402
|
+
return;
|
|
32403
|
+
}
|
|
32384
32404
|
onChangeProp(currentPage - 1);
|
|
32385
32405
|
if (typeof onPrevPageClick === "function") {
|
|
32386
32406
|
onPrevPageClick(e);
|
|
32387
32407
|
}
|
|
32388
|
-
}, [currentPage, onChangeProp, onPrevPageClick]);
|
|
32408
|
+
}, [currentPage, leftButtonDisabled, onChangeProp, onPrevPageClick]);
|
|
32389
32409
|
const onNextClick = useCallback((e) => {
|
|
32410
|
+
if (rightButtonDisabled) {
|
|
32411
|
+
return;
|
|
32412
|
+
}
|
|
32390
32413
|
onChangeProp(currentPage + 1);
|
|
32391
32414
|
if (typeof onNextPageClick === "function") {
|
|
32392
32415
|
onNextPageClick(e);
|
|
32393
32416
|
}
|
|
32394
|
-
}, [currentPage, onChangeProp, onNextPageClick]);
|
|
32417
|
+
}, [currentPage, onChangeProp, onNextPageClick, rightButtonDisabled]);
|
|
32395
32418
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap, justifyContent: justifyContent ?? (rowCount || maxRowsPerPageList.length > 0 ? "space-between" : "center"), fillWidth, ...props, children: [
|
|
32396
32419
|
hasRowCount && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32397
32420
|
typeof rowCount === "number" ? formatNumber(rowCount) : rowCount,
|
|
32398
32421
|
" rows"
|
|
32399
32422
|
] }),
|
|
32400
32423
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
|
|
32401
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled:
|
|
32402
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur }) }),
|
|
32424
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: leftButtonDisabled, onClick: onPrevClick, "data-testid": "prev-btn" }),
|
|
32425
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32403
32426
|
!!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32404
32427
|
"of ",
|
|
32405
32428
|
formatNumber(totalPages)
|
|
32406
32429
|
] }),
|
|
32407
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-right", type: "ghost", disabled:
|
|
32430
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-right", type: "ghost", disabled: rightButtonDisabled, onClick: onNextClick, "data-testid": "next-btn" })
|
|
32408
32431
|
] }),
|
|
32409
32432
|
maxRowsPerPageList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(CustomSelect, { as: Select, onSelect: onPageSizeChange, value: pageSize.toString(), children: [
|
|
32410
32433
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "-1", children: "All rows" }),
|
|
@@ -38761,13 +38784,16 @@ Tooltip.Trigger = TooltipTrigger;
|
|
|
38761
38784
|
const RadixTooltipContent = styled($a093c7e1ec25a057$export$7c6e2c02157bb7d2).withConfig({
|
|
38762
38785
|
componentId: "sc-ymqkp1-0"
|
|
38763
38786
|
})(["display:flex;align-items:flex-start;", ""], ({
|
|
38764
|
-
theme: theme2
|
|
38787
|
+
theme: theme2,
|
|
38788
|
+
$maxWidth
|
|
38765
38789
|
}) => `
|
|
38766
38790
|
padding: ${theme2.click.tooltip.space.y} ${theme2.click.tooltip.space.x};
|
|
38767
38791
|
color: ${theme2.click.tooltip.color.label.default};
|
|
38768
38792
|
background: ${theme2.click.tooltip.color.background.default};
|
|
38769
38793
|
border-radius: ${theme2.click.tooltip.radii.all};
|
|
38770
38794
|
font: ${theme2.click.tooltip.typography.label.default};
|
|
38795
|
+
white-space: pre-wrap;
|
|
38796
|
+
${$maxWidth && `max-width: ${$maxWidth}`};
|
|
38771
38797
|
`);
|
|
38772
38798
|
const Arrow = styled.svg.withConfig({
|
|
38773
38799
|
componentId: "sc-ymqkp1-1"
|
|
@@ -38780,9 +38806,10 @@ const TooltipContent = ({
|
|
|
38780
38806
|
showArrow,
|
|
38781
38807
|
children,
|
|
38782
38808
|
sideOffset = 6,
|
|
38809
|
+
maxWidth,
|
|
38783
38810
|
...props
|
|
38784
38811
|
}) => {
|
|
38785
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(RadixTooltipContent, { sideOffset, ...props, children: [
|
|
38812
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(RadixTooltipContent, { sideOffset, $maxWidth: maxWidth, ...props, children: [
|
|
38786
38813
|
showArrow && /* @__PURE__ */ jsxRuntimeExports.jsx(Arrow, { as: $a093c7e1ec25a057$export$21b07c8f274aebd5, width: 20, height: 8 }),
|
|
38787
38814
|
children
|
|
38788
38815
|
] }) });
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -1802,6 +1802,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1802
1802
|
/* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "indiaFlagClipPath2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#fff", d: "M0 0h30v20H0z" }) })
|
|
1803
1803
|
] })
|
|
1804
1804
|
] });
|
|
1805
|
+
const Japan = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", ...props, children: [
|
|
1806
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8004_401)", children: [
|
|
1807
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M30 0H0V20H30V0Z", fill: "white" }),
|
|
1808
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 16C18.3137 16 21 13.3137 21 10C21 6.68629 18.3137 4 15 4C11.6863 4 9 6.68629 9 10C9 13.3137 11.6863 16 15 16Z", fill: "#BC002D" })
|
|
1809
|
+
] }),
|
|
1810
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_8004_401", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "30", height: "20", fill: "white" }) }) })
|
|
1811
|
+
] });
|
|
1805
1812
|
const Netherlands = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 20, viewBox: "0 0 30 20", fill: "none", ...props, children: [
|
|
1806
1813
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#netherlandsFlagClipPath)", children: [
|
|
1807
1814
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#21468B", d: "M30 0H0v20h30V0Z" }),
|
|
@@ -2279,6 +2286,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2279
2286
|
gb: GreatBritain,
|
|
2280
2287
|
ie: Ireland,
|
|
2281
2288
|
in: India,
|
|
2289
|
+
jp: Japan,
|
|
2282
2290
|
nl: Netherlands,
|
|
2283
2291
|
sg: Singapore,
|
|
2284
2292
|
za: SouthAfrica,
|
|
@@ -32376,9 +32384,11 @@ var __publicField = (obj, key, value) => {
|
|
|
32376
32384
|
onPrevPageClick,
|
|
32377
32385
|
onPageNumberFocus,
|
|
32378
32386
|
onPageNumberBlur,
|
|
32387
|
+
disableNextButton,
|
|
32379
32388
|
...props
|
|
32380
32389
|
}) => {
|
|
32381
32390
|
const hasRowCount = ["number", "string"].includes(typeof rowCount);
|
|
32391
|
+
const inputRef = React.useRef(null);
|
|
32382
32392
|
const formatNumber = (value) => {
|
|
32383
32393
|
return new Intl.NumberFormat("en").format(value);
|
|
32384
32394
|
};
|
|
@@ -32390,38 +32400,51 @@ var __publicField = (obj, key, value) => {
|
|
|
32390
32400
|
}
|
|
32391
32401
|
};
|
|
32392
32402
|
const onChange = (value) => {
|
|
32393
|
-
|
|
32403
|
+
var _a;
|
|
32404
|
+
const valueToNumber = Number(value);
|
|
32405
|
+
if (valueToNumber < 1 || ((_a = inputRef.current) == null ? void 0 : _a.disabled)) {
|
|
32406
|
+
return;
|
|
32407
|
+
}
|
|
32408
|
+
onChangeProp(valueToNumber);
|
|
32394
32409
|
};
|
|
32395
32410
|
const onPageSizeChange = (value) => {
|
|
32396
32411
|
if (typeof onPageSizeChangeProp === "function") {
|
|
32397
32412
|
onPageSizeChangeProp(Number(value));
|
|
32398
32413
|
}
|
|
32399
32414
|
};
|
|
32415
|
+
const leftButtonDisabled = currentPage <= 1;
|
|
32416
|
+
const rightButtonDisabled = !!totalPages && currentPage === totalPages || disableNextButton;
|
|
32400
32417
|
const onPrevClick = React.useCallback((e) => {
|
|
32418
|
+
if (leftButtonDisabled) {
|
|
32419
|
+
return;
|
|
32420
|
+
}
|
|
32401
32421
|
onChangeProp(currentPage - 1);
|
|
32402
32422
|
if (typeof onPrevPageClick === "function") {
|
|
32403
32423
|
onPrevPageClick(e);
|
|
32404
32424
|
}
|
|
32405
|
-
}, [currentPage, onChangeProp, onPrevPageClick]);
|
|
32425
|
+
}, [currentPage, leftButtonDisabled, onChangeProp, onPrevPageClick]);
|
|
32406
32426
|
const onNextClick = React.useCallback((e) => {
|
|
32427
|
+
if (rightButtonDisabled) {
|
|
32428
|
+
return;
|
|
32429
|
+
}
|
|
32407
32430
|
onChangeProp(currentPage + 1);
|
|
32408
32431
|
if (typeof onNextPageClick === "function") {
|
|
32409
32432
|
onNextPageClick(e);
|
|
32410
32433
|
}
|
|
32411
|
-
}, [currentPage, onChangeProp, onNextPageClick]);
|
|
32434
|
+
}, [currentPage, onChangeProp, onNextPageClick, rightButtonDisabled]);
|
|
32412
32435
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap, justifyContent: justifyContent ?? (rowCount || maxRowsPerPageList.length > 0 ? "space-between" : "center"), fillWidth, ...props, children: [
|
|
32413
32436
|
hasRowCount && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32414
32437
|
typeof rowCount === "number" ? formatNumber(rowCount) : rowCount,
|
|
32415
32438
|
" rows"
|
|
32416
32439
|
] }),
|
|
32417
32440
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
|
|
32418
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled:
|
|
32419
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur }) }),
|
|
32441
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: leftButtonDisabled, onClick: onPrevClick, "data-testid": "prev-btn" }),
|
|
32442
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { ref: inputRef, onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur, disabled: leftButtonDisabled && rightButtonDisabled }) }),
|
|
32420
32443
|
!!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
|
|
32421
32444
|
"of ",
|
|
32422
32445
|
formatNumber(totalPages)
|
|
32423
32446
|
] }),
|
|
32424
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-right", type: "ghost", disabled:
|
|
32447
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-right", type: "ghost", disabled: rightButtonDisabled, onClick: onNextClick, "data-testid": "next-btn" })
|
|
32425
32448
|
] }),
|
|
32426
32449
|
maxRowsPerPageList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(CustomSelect, { as: Select, onSelect: onPageSizeChange, value: pageSize.toString(), children: [
|
|
32427
32450
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "-1", children: "All rows" }),
|
|
@@ -38778,13 +38801,16 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38778
38801
|
const RadixTooltipContent = styled($a093c7e1ec25a057$export$7c6e2c02157bb7d2).withConfig({
|
|
38779
38802
|
componentId: "sc-ymqkp1-0"
|
|
38780
38803
|
})(["display:flex;align-items:flex-start;", ""], ({
|
|
38781
|
-
theme: theme2
|
|
38804
|
+
theme: theme2,
|
|
38805
|
+
$maxWidth
|
|
38782
38806
|
}) => `
|
|
38783
38807
|
padding: ${theme2.click.tooltip.space.y} ${theme2.click.tooltip.space.x};
|
|
38784
38808
|
color: ${theme2.click.tooltip.color.label.default};
|
|
38785
38809
|
background: ${theme2.click.tooltip.color.background.default};
|
|
38786
38810
|
border-radius: ${theme2.click.tooltip.radii.all};
|
|
38787
38811
|
font: ${theme2.click.tooltip.typography.label.default};
|
|
38812
|
+
white-space: pre-wrap;
|
|
38813
|
+
${$maxWidth && `max-width: ${$maxWidth}`};
|
|
38788
38814
|
`);
|
|
38789
38815
|
const Arrow = styled.svg.withConfig({
|
|
38790
38816
|
componentId: "sc-ymqkp1-1"
|
|
@@ -38797,9 +38823,10 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38797
38823
|
showArrow,
|
|
38798
38824
|
children,
|
|
38799
38825
|
sideOffset = 6,
|
|
38826
|
+
maxWidth,
|
|
38800
38827
|
...props
|
|
38801
38828
|
}) => {
|
|
38802
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(RadixTooltipContent, { sideOffset, ...props, children: [
|
|
38829
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(RadixTooltipContent, { sideOffset, $maxWidth: maxWidth, ...props, children: [
|
|
38803
38830
|
showArrow && /* @__PURE__ */ jsxRuntimeExports.jsx(Arrow, { as: $a093c7e1ec25a057$export$21b07c8f274aebd5, width: 20, height: 8 }),
|
|
38804
38831
|
children
|
|
38805
38832
|
] }) });
|
|
@@ -12,5 +12,6 @@ export interface PaginationProps extends Omit<ContainerProps<"div">, "children"
|
|
|
12
12
|
onPrevPageClick?: MouseEventHandler<HTMLButtonElement>;
|
|
13
13
|
onPageNumberFocus?: FocusEventHandler<HTMLInputElement>;
|
|
14
14
|
onPageNumberBlur?: FocusEventHandler<HTMLInputElement>;
|
|
15
|
+
disableNextButton?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare const Pagination: ({ totalPages, currentPage, maxRowsPerPageList, rowCount, onChange: onChangeProp, onPageSizeChange: onPageSizeChangeProp, pageSize, fillWidth, gap, justifyContent, onNextPageClick, onPrevPageClick, onPageNumberFocus, onPageNumberBlur, ...props }: PaginationProps) => ReactElement;
|
|
17
|
+
export declare const Pagination: ({ totalPages, currentPage, maxRowsPerPageList, rowCount, onChange: onChangeProp, onPageSizeChange: onPageSizeChangeProp, pageSize, fillWidth, gap, justifyContent, onNextPageClick, onPrevPageClick, onPageNumberFocus, onPageNumberBlur, disableNextButton, ...props }: PaginationProps) => ReactElement;
|
|
@@ -10,11 +10,12 @@ export declare const Tooltip: {
|
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
Content: {
|
|
13
|
-
({ showArrow, children, sideOffset, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
({ showArrow, children, sideOffset, maxWidth, ...props }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
interface TooltipContentProps extends RadixTooltip.TooltipContentProps {
|
|
18
18
|
showArrow?: boolean;
|
|
19
|
+
maxWidth?: string;
|
|
19
20
|
}
|
|
20
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SVGAttributes } from "react";
|
|
2
2
|
import { IconSize } from '../../../components/Icon/types';
|
|
3
|
-
export type FlagName = "au" | "br" | "ca" | "de" | "eu" | "gb" | "in" | "ie" | "nl" | "sg" | "sw" | "usa" | "uk" | "za";
|
|
3
|
+
export type FlagName = "au" | "br" | "ca" | "de" | "eu" | "gb" | "in" | "ie" | "jp" | "nl" | "sg" | "sw" | "usa" | "uk" | "za";
|
|
4
4
|
export interface FlagProps extends Omit<SVGAttributes<SVGElement>, "size"> {
|
|
5
5
|
name: FlagName;
|
|
6
6
|
size?: IconSize;
|
|
@@ -14,6 +14,7 @@ export declare const FlagList: {
|
|
|
14
14
|
gb: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
15
15
|
ie: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
16
16
|
in: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
jp: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
17
18
|
nl: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
18
19
|
sg: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
19
20
|
za: (props: SVGAttributes<SVGElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|