@univerjs/design 1.0.0-beta.1 → 1.0.0-beta.2
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/cjs/index.js +124 -40
- package/lib/cjs/locale/ar-SA.js +3 -0
- package/lib/cjs/locale/ca-ES.js +3 -0
- package/lib/cjs/locale/de-DE.js +3 -0
- package/lib/cjs/locale/en-US.js +3 -0
- package/lib/cjs/locale/es-ES.js +3 -0
- package/lib/cjs/locale/fa-IR.js +3 -0
- package/lib/cjs/locale/fr-FR.js +3 -0
- package/lib/cjs/locale/id-ID.js +3 -0
- package/lib/cjs/locale/it-IT.js +3 -0
- package/lib/cjs/locale/ja-JP.js +3 -0
- package/lib/cjs/locale/ko-KR.js +3 -0
- package/lib/cjs/locale/pl-PL.js +3 -0
- package/lib/cjs/locale/pt-BR.js +3 -0
- package/lib/cjs/locale/ru-RU.js +3 -0
- package/lib/cjs/locale/sk-SK.js +3 -0
- package/lib/cjs/locale/vi-VN.js +3 -0
- package/lib/cjs/locale/zh-CN.js +3 -0
- package/lib/cjs/locale/zh-HK.js +3 -0
- package/lib/cjs/locale/zh-TW.js +3 -0
- package/lib/es/index.js +124 -40
- package/lib/es/locale/ar-SA.js +3 -0
- package/lib/es/locale/ca-ES.js +3 -0
- package/lib/es/locale/de-DE.js +3 -0
- package/lib/es/locale/en-US.js +3 -0
- package/lib/es/locale/es-ES.js +3 -0
- package/lib/es/locale/fa-IR.js +3 -0
- package/lib/es/locale/fr-FR.js +3 -0
- package/lib/es/locale/id-ID.js +3 -0
- package/lib/es/locale/it-IT.js +3 -0
- package/lib/es/locale/ja-JP.js +3 -0
- package/lib/es/locale/ko-KR.js +3 -0
- package/lib/es/locale/pl-PL.js +3 -0
- package/lib/es/locale/pt-BR.js +3 -0
- package/lib/es/locale/ru-RU.js +3 -0
- package/lib/es/locale/sk-SK.js +3 -0
- package/lib/es/locale/vi-VN.js +3 -0
- package/lib/es/locale/zh-CN.js +3 -0
- package/lib/es/locale/zh-HK.js +3 -0
- package/lib/es/locale/zh-TW.js +3 -0
- package/lib/index.css +75 -2
- package/lib/index.js +124 -40
- package/lib/locale/ar-SA.js +3 -0
- package/lib/locale/ca-ES.js +3 -0
- package/lib/locale/de-DE.js +3 -0
- package/lib/locale/en-US.js +3 -0
- package/lib/locale/es-ES.js +3 -0
- package/lib/locale/fa-IR.js +3 -0
- package/lib/locale/fr-FR.js +3 -0
- package/lib/locale/id-ID.js +3 -0
- package/lib/locale/it-IT.js +3 -0
- package/lib/locale/ja-JP.js +3 -0
- package/lib/locale/ko-KR.js +3 -0
- package/lib/locale/pl-PL.js +3 -0
- package/lib/locale/pt-BR.js +3 -0
- package/lib/locale/ru-RU.js +3 -0
- package/lib/locale/sk-SK.js +3 -0
- package/lib/locale/vi-VN.js +3 -0
- package/lib/locale/zh-CN.js +3 -0
- package/lib/locale/zh-HK.js +3 -0
- package/lib/locale/zh-TW.js +3 -0
- package/lib/types/components/pager/Pager.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +3 -0
- package/lib/umd/index.js +20 -17
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -2500,9 +2500,12 @@ const FormDualColumnLayout = (props) => {
|
|
|
2500
2500
|
* limitations under the License.
|
|
2501
2501
|
*/
|
|
2502
2502
|
function Pager(props) {
|
|
2503
|
-
const { className, value: current = 0, total: count = 0, loop, text: propText, onChange } = props;
|
|
2503
|
+
const { className, value: current = 0, total: count = 0, loop, text: propText, previousButtonAriaLabel, nextButtonAriaLabel, onChange } = props;
|
|
2504
|
+
const { locale } = useContext(ConfigContext);
|
|
2504
2505
|
const text = propText ?? `${current}/${count}`;
|
|
2505
2506
|
const hasValue = count > 0;
|
|
2507
|
+
const previousButtonDisabled = !loop && current <= 1;
|
|
2508
|
+
const nextButtonDisabled = !loop && current >= count;
|
|
2506
2509
|
const onClickLeftArrow = () => {
|
|
2507
2510
|
if (current === 1) {
|
|
2508
2511
|
if (loop) onChange === null || onChange === void 0 || onChange(count);
|
|
@@ -2519,23 +2522,33 @@ function Pager(props) {
|
|
|
2519
2522
|
children: hasValue ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2520
2523
|
/* @__PURE__ */ jsx("button", {
|
|
2521
2524
|
"data-u-comp": "pager-left-arrow",
|
|
2522
|
-
className: "univer-inline-flex univer-size-
|
|
2525
|
+
className: "univer-inline-flex univer-size-6 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 univer-text-current hover:univer-bg-gray-50 focus-visible:univer-outline-none focus-visible:univer-ring-2 focus-visible:univer-ring-primary-500 disabled:univer-cursor-default disabled:univer-opacity-40 dark:hover:!univer-bg-gray-600",
|
|
2523
2526
|
type: "button",
|
|
2524
|
-
|
|
2527
|
+
"aria-label": previousButtonAriaLabel ?? (locale === null || locale === void 0 ? void 0 : locale.Accessibility.previous) ?? "Previous",
|
|
2528
|
+
disabled: previousButtonDisabled,
|
|
2525
2529
|
onClick: onClickLeftArrow,
|
|
2526
|
-
children: /* @__PURE__ */ jsx(MoreLeftIcon, {
|
|
2530
|
+
children: /* @__PURE__ */ jsx(MoreLeftIcon, {
|
|
2531
|
+
className: "rtl:univer-rotate-180",
|
|
2532
|
+
"aria-hidden": "true"
|
|
2533
|
+
})
|
|
2527
2534
|
}),
|
|
2528
2535
|
/* @__PURE__ */ jsx("span", {
|
|
2529
2536
|
className: "univer-mx-1",
|
|
2537
|
+
"aria-live": "polite",
|
|
2538
|
+
"aria-atomic": "true",
|
|
2530
2539
|
children: text
|
|
2531
2540
|
}),
|
|
2532
2541
|
/* @__PURE__ */ jsx("button", {
|
|
2533
2542
|
"data-u-comp": "pager-right-arrow",
|
|
2534
|
-
className: "univer-inline-flex univer-size-
|
|
2543
|
+
className: "univer-inline-flex univer-size-6 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 univer-text-current hover:univer-bg-gray-50 focus-visible:univer-outline-none focus-visible:univer-ring-2 focus-visible:univer-ring-primary-500 disabled:univer-cursor-default disabled:univer-opacity-40 dark:hover:!univer-bg-gray-600",
|
|
2535
2544
|
type: "button",
|
|
2536
|
-
|
|
2545
|
+
"aria-label": nextButtonAriaLabel ?? (locale === null || locale === void 0 ? void 0 : locale.Accessibility.next) ?? "Next",
|
|
2546
|
+
disabled: nextButtonDisabled,
|
|
2537
2547
|
onClick: onClickRightArrow,
|
|
2538
|
-
children: /* @__PURE__ */ jsx(MoreRightIcon, {
|
|
2548
|
+
children: /* @__PURE__ */ jsx(MoreRightIcon, {
|
|
2549
|
+
className: "rtl:univer-rotate-180",
|
|
2550
|
+
"aria-hidden": "true"
|
|
2551
|
+
})
|
|
2539
2552
|
})
|
|
2540
2553
|
] }) : /* @__PURE__ */ jsx("div", {
|
|
2541
2554
|
className: "univer-mx-1",
|
|
@@ -2561,40 +2574,83 @@ function Pager(props) {
|
|
|
2561
2574
|
* See the License for the specific language governing permissions and
|
|
2562
2575
|
* limitations under the License.
|
|
2563
2576
|
*/
|
|
2564
|
-
const
|
|
2565
|
-
univer-
|
|
2566
|
-
univer-bg-
|
|
2567
|
-
|
|
2577
|
+
const toolbarButtonClassName = `
|
|
2578
|
+
!univer-border-transparent !univer-bg-transparent !univer-text-gray-300
|
|
2579
|
+
hover:!univer-bg-gray-600 hover:!univer-text-gray-0
|
|
2580
|
+
focus-visible:!univer-outline-none focus-visible:!univer-ring-2 focus-visible:!univer-ring-gray-0
|
|
2581
|
+
`;
|
|
2582
|
+
const focusableElementSelector = `
|
|
2583
|
+
button:not([disabled]), [href], input:not([disabled]), select:not([disabled]),
|
|
2584
|
+
textarea:not([disabled]), [tabindex]:not([tabindex="-1"])
|
|
2568
2585
|
`;
|
|
2569
2586
|
function Gallery(props) {
|
|
2587
|
+
var _locale$Accessibility;
|
|
2570
2588
|
const { className, images, open, onOpenChange } = props;
|
|
2571
|
-
const [isVisible, setIsVisible] = useState(
|
|
2589
|
+
const [isVisible, setIsVisible] = useState(Boolean(open));
|
|
2572
2590
|
const [activeImageIndex, setActiveImageIndex] = useState(0);
|
|
2573
2591
|
const [zoomLevel, setZoomLevel] = useState(1);
|
|
2574
2592
|
const { direction, locale } = useContext(ConfigContext);
|
|
2575
2593
|
const dialogRef = useRef(null);
|
|
2594
|
+
const closeButtonRef = useRef(null);
|
|
2595
|
+
const previouslyFocusedElementRef = useRef(null);
|
|
2576
2596
|
const activeImage = images[activeImageIndex];
|
|
2577
2597
|
const hasPagination = images.length > 1;
|
|
2598
|
+
const imageLabel = (locale === null || locale === void 0 || (_locale$Accessibility = locale.Accessibility.image) === null || _locale$Accessibility === void 0 ? void 0 : _locale$Accessibility.replace("{0}", String(activeImageIndex + 1)).replace("{1}", String(images.length))) ?? `Image ${activeImageIndex + 1} of ${images.length}`;
|
|
2578
2599
|
useEffect(() => {
|
|
2579
|
-
|
|
2600
|
+
const timer = setTimeout(() => {
|
|
2601
|
+
var _previouslyFocusedEle;
|
|
2602
|
+
setIsVisible(Boolean(open));
|
|
2603
|
+
if (!open && ((_previouslyFocusedEle = previouslyFocusedElementRef.current) === null || _previouslyFocusedEle === void 0 ? void 0 : _previouslyFocusedEle.isConnected)) previouslyFocusedElementRef.current.focus();
|
|
2604
|
+
if (!open) previouslyFocusedElementRef.current = null;
|
|
2605
|
+
}, open ? 0 : 150);
|
|
2606
|
+
return () => clearTimeout(timer);
|
|
2580
2607
|
}, [open]);
|
|
2581
2608
|
useEffect(() => {
|
|
2609
|
+
var _closeButtonRef$curre;
|
|
2582
2610
|
if (!open) return;
|
|
2583
|
-
|
|
2584
|
-
|
|
2611
|
+
previouslyFocusedElementRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
2612
|
+
(_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 || _closeButtonRef$curre.focus();
|
|
2613
|
+
}, [open]);
|
|
2614
|
+
useEffect(() => {
|
|
2615
|
+
if (!open && !isVisible) return;
|
|
2616
|
+
const handler = (event) => {
|
|
2617
|
+
if (event.key === "Escape" && open) {
|
|
2618
|
+
event.preventDefault();
|
|
2619
|
+
event.stopPropagation();
|
|
2620
|
+
onOpenChange === null || onOpenChange === void 0 || onOpenChange(false);
|
|
2621
|
+
return;
|
|
2622
|
+
}
|
|
2623
|
+
if (event.key !== "Tab" || !dialogRef.current) return;
|
|
2624
|
+
const focusableElements = Array.from(dialogRef.current.querySelectorAll(focusableElementSelector));
|
|
2625
|
+
if (focusableElements.length === 0) {
|
|
2626
|
+
event.preventDefault();
|
|
2627
|
+
dialogRef.current.focus();
|
|
2628
|
+
return;
|
|
2629
|
+
}
|
|
2630
|
+
const firstElement = focusableElements[0];
|
|
2631
|
+
const lastElement = focusableElements[focusableElements.length - 1];
|
|
2632
|
+
const activeElement = document.activeElement;
|
|
2633
|
+
if (event.shiftKey && (activeElement === firstElement || !dialogRef.current.contains(activeElement))) {
|
|
2634
|
+
event.preventDefault();
|
|
2635
|
+
lastElement.focus();
|
|
2636
|
+
} else if (!event.shiftKey && (activeElement === lastElement || !dialogRef.current.contains(activeElement))) {
|
|
2637
|
+
event.preventDefault();
|
|
2638
|
+
firstElement.focus();
|
|
2639
|
+
}
|
|
2585
2640
|
};
|
|
2586
2641
|
window.addEventListener("keydown", handler);
|
|
2587
2642
|
return () => window.removeEventListener("keydown", handler);
|
|
2588
|
-
}, [
|
|
2643
|
+
}, [
|
|
2644
|
+
isVisible,
|
|
2645
|
+
onOpenChange,
|
|
2646
|
+
open
|
|
2647
|
+
]);
|
|
2589
2648
|
useEffect(() => {
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
return () => clearTimeout(timer);
|
|
2596
|
-
}
|
|
2597
|
-
}, [open]);
|
|
2649
|
+
return () => {
|
|
2650
|
+
var _previouslyFocusedEle2;
|
|
2651
|
+
if ((_previouslyFocusedEle2 = previouslyFocusedElementRef.current) === null || _previouslyFocusedEle2 === void 0 ? void 0 : _previouslyFocusedEle2.isConnected) previouslyFocusedElementRef.current.focus();
|
|
2652
|
+
};
|
|
2653
|
+
}, []);
|
|
2598
2654
|
useEffect(() => {
|
|
2599
2655
|
if (!open) return;
|
|
2600
2656
|
const handleWheel = (e) => {
|
|
@@ -2613,17 +2669,17 @@ function Gallery(props) {
|
|
|
2613
2669
|
setZoomLevel(1);
|
|
2614
2670
|
return;
|
|
2615
2671
|
}
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2672
|
+
setZoomLevel((previousZoomLevel) => Math.min(Math.max(.5, previousZoomLevel + ratio), 2));
|
|
2673
|
+
}
|
|
2674
|
+
function handleClose() {
|
|
2675
|
+
onOpenChange === null || onOpenChange === void 0 || onOpenChange(false);
|
|
2620
2676
|
}
|
|
2621
2677
|
return createPortal(/* @__PURE__ */ jsxs("div", {
|
|
2622
2678
|
"data-u-comp": "gallery",
|
|
2623
2679
|
dir: direction,
|
|
2624
2680
|
role: "dialog",
|
|
2625
2681
|
"aria-modal": "true",
|
|
2626
|
-
"aria-label": locale === null || locale === void 0 ? void 0 : locale.Accessibility.imageGallery,
|
|
2682
|
+
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.Accessibility.imageGallery) ?? "Image gallery",
|
|
2627
2683
|
tabIndex: -1,
|
|
2628
2684
|
ref: dialogRef,
|
|
2629
2685
|
className: clsx("univer-fixed univer-inset-0 univer-z-[1080] univer-flex univer-h-screen univer-w-screen univer-select-none univer-items-center univer-justify-center", {
|
|
@@ -2634,7 +2690,18 @@ function Gallery(props) {
|
|
|
2634
2690
|
/* @__PURE__ */ jsx("div", {
|
|
2635
2691
|
className: "univer-absolute univer-inset-0 univer-size-full univer-bg-gray-900 univer-opacity-80",
|
|
2636
2692
|
"aria-hidden": "true",
|
|
2637
|
-
onClick:
|
|
2693
|
+
onClick: handleClose
|
|
2694
|
+
}),
|
|
2695
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2696
|
+
ref: closeButtonRef,
|
|
2697
|
+
"data-u-comp": "gallery-close",
|
|
2698
|
+
type: "button",
|
|
2699
|
+
variant: "ghost",
|
|
2700
|
+
size: "icon",
|
|
2701
|
+
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.Accessibility.close) ?? "Close",
|
|
2702
|
+
className: "univer-absolute univer-right-4 univer-top-4 univer-z-10 univer-size-10 univer-rounded-full !univer-border-gray-500 !univer-bg-gray-800 !univer-text-gray-0 hover:!univer-bg-gray-700 focus-visible:!univer-outline-none focus-visible:!univer-ring-2 focus-visible:!univer-ring-gray-0 rtl:univer-left-4 rtl:univer-right-auto",
|
|
2703
|
+
onClick: handleClose,
|
|
2704
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { "aria-hidden": "true" })
|
|
2638
2705
|
}),
|
|
2639
2706
|
/* @__PURE__ */ jsx("div", {
|
|
2640
2707
|
className: "univer-relative univer-flex univer-w-fit univer-items-center univer-justify-center",
|
|
@@ -2642,10 +2709,16 @@ function Gallery(props) {
|
|
|
2642
2709
|
className: "univer-h-full univer-w-full univer-object-contain univer-transition-transform univer-duration-300 univer-ease-out",
|
|
2643
2710
|
style: { transform: `scale(${zoomLevel})` },
|
|
2644
2711
|
src: activeImage,
|
|
2645
|
-
alt:
|
|
2712
|
+
alt: imageLabel,
|
|
2646
2713
|
draggable: false
|
|
2647
2714
|
})
|
|
2648
2715
|
}),
|
|
2716
|
+
/* @__PURE__ */ jsx("span", {
|
|
2717
|
+
className: "univer-sr-only",
|
|
2718
|
+
"aria-live": "polite",
|
|
2719
|
+
"aria-atomic": "true",
|
|
2720
|
+
children: imageLabel
|
|
2721
|
+
}),
|
|
2649
2722
|
/* @__PURE__ */ jsxs("footer", {
|
|
2650
2723
|
className: "univer-absolute univer-bottom-6 univer-left-1/2 univer-flex -univer-translate-x-1/2 univer-items-center univer-gap-3 univer-rounded-full univer-bg-gray-800 univer-px-6 univer-py-3 univer-text-gray-400 rtl:univer-flex-row-reverse",
|
|
2651
2724
|
children: [
|
|
@@ -2653,26 +2726,37 @@ function Gallery(props) {
|
|
|
2653
2726
|
className: "!univer-text-gray-400 [&_[data-u-comp=pager-left-arrow]:hover]:!univer-bg-gray-600 [&_[data-u-comp=pager-right-arrow]:hover]:!univer-bg-gray-600",
|
|
2654
2727
|
value: activeImageIndex + 1,
|
|
2655
2728
|
total: images.length,
|
|
2729
|
+
previousButtonAriaLabel: (locale === null || locale === void 0 ? void 0 : locale.Accessibility.previous) ?? "Previous",
|
|
2730
|
+
nextButtonAriaLabel: (locale === null || locale === void 0 ? void 0 : locale.Accessibility.next) ?? "Next",
|
|
2656
2731
|
onChange: (value) => setActiveImageIndex(value - 1)
|
|
2657
2732
|
}),
|
|
2658
|
-
/* @__PURE__ */ jsx(
|
|
2733
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2659
2734
|
type: "button",
|
|
2660
|
-
"
|
|
2661
|
-
|
|
2735
|
+
variant: "ghost",
|
|
2736
|
+
size: "icon",
|
|
2737
|
+
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.Accessibility.zoomIn) ?? "Zoom in",
|
|
2738
|
+
className: toolbarButtonClassName,
|
|
2739
|
+
disabled: zoomLevel >= 2,
|
|
2662
2740
|
onClick: () => handleToggleZoom(.25),
|
|
2663
2741
|
children: /* @__PURE__ */ jsx(ZoomInIcon, { "aria-hidden": "true" })
|
|
2664
2742
|
}),
|
|
2665
|
-
/* @__PURE__ */ jsx(
|
|
2743
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2666
2744
|
type: "button",
|
|
2667
|
-
"
|
|
2668
|
-
|
|
2745
|
+
variant: "ghost",
|
|
2746
|
+
size: "icon",
|
|
2747
|
+
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.Accessibility.zoomOut) ?? "Zoom out",
|
|
2748
|
+
className: toolbarButtonClassName,
|
|
2749
|
+
disabled: zoomLevel <= .5,
|
|
2669
2750
|
onClick: () => handleToggleZoom(-.25),
|
|
2670
2751
|
children: /* @__PURE__ */ jsx(ZoomOutIcon, { "aria-hidden": "true" })
|
|
2671
2752
|
}),
|
|
2672
|
-
/* @__PURE__ */ jsx(
|
|
2753
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2673
2754
|
type: "button",
|
|
2674
|
-
"
|
|
2675
|
-
|
|
2755
|
+
variant: "ghost",
|
|
2756
|
+
size: "icon",
|
|
2757
|
+
"aria-label": (locale === null || locale === void 0 ? void 0 : locale.Accessibility.resetZoom) ?? "Reset zoom",
|
|
2758
|
+
className: toolbarButtonClassName,
|
|
2759
|
+
disabled: zoomLevel === 1,
|
|
2676
2760
|
onClick: () => handleToggleZoom("reset"),
|
|
2677
2761
|
children: /* @__PURE__ */ jsx(OneToOneIcon, { "aria-hidden": "true" })
|
|
2678
2762
|
})
|
package/lib/locale/ar-SA.js
CHANGED
package/lib/locale/ca-ES.js
CHANGED
package/lib/locale/de-DE.js
CHANGED
package/lib/locale/en-US.js
CHANGED
package/lib/locale/es-ES.js
CHANGED
package/lib/locale/fa-IR.js
CHANGED
package/lib/locale/fr-FR.js
CHANGED
package/lib/locale/id-ID.js
CHANGED
package/lib/locale/it-IT.js
CHANGED
package/lib/locale/ja-JP.js
CHANGED
package/lib/locale/ko-KR.js
CHANGED
package/lib/locale/pl-PL.js
CHANGED
package/lib/locale/pt-BR.js
CHANGED
package/lib/locale/ru-RU.js
CHANGED
package/lib/locale/sk-SK.js
CHANGED
package/lib/locale/vi-VN.js
CHANGED
package/lib/locale/zh-CN.js
CHANGED
package/lib/locale/zh-HK.js
CHANGED
package/lib/locale/zh-TW.js
CHANGED
|
@@ -19,6 +19,8 @@ export interface IPagerProps {
|
|
|
19
19
|
value: number;
|
|
20
20
|
total: number;
|
|
21
21
|
loop?: boolean;
|
|
22
|
+
previousButtonAriaLabel?: string;
|
|
23
|
+
nextButtonAriaLabel?: string;
|
|
22
24
|
onChange?(value: number): void;
|
|
23
25
|
}
|
|
24
26
|
export declare function Pager(props: IPagerProps): import("react").JSX.Element;
|