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