@univerjs/design 1.0.0-alpha.2 → 1.0.0-alpha.3
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 +60 -40
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/es-ES.js +10 -10
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/es/index.js +61 -42
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/es-ES.js +10 -10
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/index.css +44 -0
- package/lib/index.js +61 -42
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/es-ES.js +10 -10
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/types/components/accordion/Accordion.d.ts +4 -0
- package/lib/types/components/button/Button.d.ts +1 -1
- package/lib/types/components/message/Message.d.ts +2 -2
- package/lib/types/components/segmented/Segmented.d.ts +2 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/index.js +14 -14
- 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/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/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -18,42 +18,50 @@ let _radix_ui_react_separator = require("@radix-ui/react-separator");
|
|
|
18
18
|
let react_dom_client = require("react-dom/client");
|
|
19
19
|
|
|
20
20
|
//#region src/helper/clsx.ts
|
|
21
|
+
const twMerge = (0, tailwind_merge.extendTailwindMerge)({ prefix: "univer-" });
|
|
21
22
|
function clsx$1(...inputs) {
|
|
22
|
-
return
|
|
23
|
+
return twMerge((0, clsx.clsx)(inputs));
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
//#endregion
|
|
26
27
|
//#region src/components/accordion/Accordion.tsx
|
|
27
28
|
function Accordion(props) {
|
|
28
|
-
|
|
29
|
-
const
|
|
29
|
+
var _props$openIndex;
|
|
30
|
+
const { className, defaultOpenIndex = null, items, onOpenIndexChange } = props;
|
|
31
|
+
const [innerOpenIndex, setInnerOpenIndex] = (0, react.useState)(defaultOpenIndex);
|
|
32
|
+
const openIndex = (_props$openIndex = props.openIndex) !== null && _props$openIndex !== void 0 ? _props$openIndex : innerOpenIndex;
|
|
30
33
|
const toggleItem = (index) => {
|
|
31
|
-
|
|
34
|
+
const nextOpenIndex = openIndex === index ? null : index;
|
|
35
|
+
if (props.openIndex === void 0) setInnerOpenIndex(nextOpenIndex);
|
|
36
|
+
onOpenIndexChange === null || onOpenIndexChange === void 0 || onOpenIndexChange(nextOpenIndex);
|
|
32
37
|
};
|
|
33
38
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
34
39
|
"data-u-comp": "accordion",
|
|
35
40
|
className: clsx$1("univer-divide-x-0 univer-divide-y univer-divide-solid univer-divide-gray-200 dark:!univer-divide-gray-600", className),
|
|
36
|
-
children: items.map((item, index) =>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"univer-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"univer-max-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children:
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
children: items.map((item, index) => {
|
|
42
|
+
var _item$id;
|
|
43
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
44
|
+
className: "univer-box-border univer-flex univer-w-full univer-cursor-pointer univer-items-center univer-gap-1.5 univer-border-none univer-bg-transparent univer-p-4 univer-text-left univer-text-gray-700 hover:univer-text-gray-900 focus:univer-outline-none dark:!univer-text-gray-200 dark:hover:!univer-text-white",
|
|
45
|
+
type: "button",
|
|
46
|
+
onClick: () => toggleItem(index),
|
|
47
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.DownIcon, { className: clsx$1("univer-size-2.5 univer-flex-shrink-0 univer-transition-transform", {
|
|
48
|
+
"-univer-rotate-90": openIndex !== index,
|
|
49
|
+
"univer-rotate-0": openIndex === index
|
|
50
|
+
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
51
|
+
className: "univer-font-medium",
|
|
52
|
+
children: item.label
|
|
53
|
+
})]
|
|
54
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
55
|
+
className: clsx$1("univer-overflow-hidden univer-transition-[max-height,opacity] univer-duration-500 univer-ease-in-out", {
|
|
56
|
+
"univer-max-h-screen": openIndex === index,
|
|
57
|
+
"univer-max-h-0": openIndex !== index
|
|
58
|
+
}),
|
|
59
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
60
|
+
className: "univer-box-border univer-px-4 univer-py-1.5",
|
|
61
|
+
children: item.children
|
|
62
|
+
})
|
|
63
|
+
})] }, (_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : index);
|
|
64
|
+
})
|
|
57
65
|
});
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -144,6 +152,7 @@ const buttonVariants = (0, class_variance_authority.cva)("univer-box-border univ
|
|
|
144
152
|
ghost: "univer-border-transparent univer-bg-transparent univer-text-gray-900 hover:univer-bg-gray-100 active:univer-bg-gray-200 dark:!univer-text-white dark:hover:!univer-bg-gray-700 dark:active:!univer-bg-gray-600"
|
|
145
153
|
},
|
|
146
154
|
size: {
|
|
155
|
+
icon: "univer-size-8 !univer-p-0",
|
|
147
156
|
small: "univer-h-6 univer-rounded-md univer-px-1.5 univer-text-xs",
|
|
148
157
|
middle: "univer-h-8 univer-rounded-lg univer-px-2 univer-text-sm",
|
|
149
158
|
large: "univer-h-10 univer-rounded-lg univer-px-3 univer-text-sm"
|
|
@@ -647,7 +656,7 @@ function DayButton(props) {
|
|
|
647
656
|
}
|
|
648
657
|
function Calendar(props) {
|
|
649
658
|
const { className, max, min, showTime = false, value, onValueChange } = props;
|
|
650
|
-
const { locale } = (0, react.useContext)(ConfigContext);
|
|
659
|
+
const { direction = "ltr", locale } = (0, react.useContext)(ConfigContext);
|
|
651
660
|
const { ariaLabels, year, weekDays, months } = locale === null || locale === void 0 ? void 0 : locale.Calendar;
|
|
652
661
|
const today = /* @__PURE__ */ new Date();
|
|
653
662
|
const [currentYear, setCurrentYear] = (0, react.useState)((value !== null && value !== void 0 ? value : today).getFullYear());
|
|
@@ -743,6 +752,7 @@ function Calendar(props) {
|
|
|
743
752
|
}
|
|
744
753
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
745
754
|
"data-u-comp": "calendar",
|
|
755
|
+
dir: direction,
|
|
746
756
|
className: clsx$1("univer-mx-auto univer-max-w-xs univer-select-none univer-rounded univer-bg-white univer-text-gray-900 dark:!univer-bg-gray-900 dark:!univer-text-white", className),
|
|
747
757
|
children: [
|
|
748
758
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("nav", {
|
|
@@ -752,7 +762,7 @@ function Calendar(props) {
|
|
|
752
762
|
className: "univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200",
|
|
753
763
|
"aria-label": ariaLabels.previousMonth,
|
|
754
764
|
onClick: prevMonth,
|
|
755
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, { className: "univer-rotate-180" })
|
|
765
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, { className: "univer-rotate-180 rtl:!univer-rotate-0" })
|
|
756
766
|
}),
|
|
757
767
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
758
768
|
className: "univer-flex univer-items-center univer-gap-0.5 univer-text-sm univer-font-medium",
|
|
@@ -797,7 +807,7 @@ function Calendar(props) {
|
|
|
797
807
|
className: "univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200",
|
|
798
808
|
"aria-label": ariaLabels.nextMonth,
|
|
799
809
|
onClick: nextMonth,
|
|
800
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, {})
|
|
810
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, { className: "rtl:univer-rotate-180" })
|
|
801
811
|
})
|
|
802
812
|
]
|
|
803
813
|
}),
|
|
@@ -2452,11 +2462,11 @@ function Pager(props) {
|
|
|
2452
2462
|
children: hasValue ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
2453
2463
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2454
2464
|
"data-u-comp": "pager-left-arrow",
|
|
2455
|
-
className: "univer-inline-flex univer-size-4 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-600",
|
|
2465
|
+
className: "univer-inline-flex univer-size-4 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 dark:hover:!univer-bg-gray-600",
|
|
2456
2466
|
type: "button",
|
|
2457
2467
|
role: "button",
|
|
2458
2468
|
onClick: onClickLeftArrow,
|
|
2459
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreLeftIcon, {})
|
|
2469
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreLeftIcon, { className: "rtl:univer-rotate-180" })
|
|
2460
2470
|
}),
|
|
2461
2471
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2462
2472
|
className: "univer-mx-1",
|
|
@@ -2464,11 +2474,11 @@ function Pager(props) {
|
|
|
2464
2474
|
}),
|
|
2465
2475
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2466
2476
|
"data-u-comp": "pager-right-arrow",
|
|
2467
|
-
className: "univer-inline-flex univer-size-4 univer-cursor-pointer univer-items-center univer-rounded univer-border-none univer-bg-transparent univer-p-0 hover:univer-bg-gray-50 dark:hover:!univer-bg-gray-600",
|
|
2477
|
+
className: "univer-inline-flex univer-size-4 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 dark:hover:!univer-bg-gray-600",
|
|
2468
2478
|
type: "button",
|
|
2469
2479
|
role: "button",
|
|
2470
2480
|
onClick: onClickRightArrow,
|
|
2471
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, {})
|
|
2481
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.MoreRightIcon, { className: "rtl:univer-rotate-180" })
|
|
2472
2482
|
})
|
|
2473
2483
|
] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2474
2484
|
className: "univer-mx-1",
|
|
@@ -2507,6 +2517,7 @@ function Gallery(props) {
|
|
|
2507
2517
|
const { direction } = (0, react.useContext)(ConfigContext);
|
|
2508
2518
|
const dialogRef = (0, react.useRef)(null);
|
|
2509
2519
|
const activeImage = (0, react.useMemo)(() => images[activeImageIndex], [activeImageIndex, images]);
|
|
2520
|
+
const hasPagination = images.length > 1;
|
|
2510
2521
|
(0, react.useEffect)(() => {
|
|
2511
2522
|
if (open && dialogRef.current) dialogRef.current.focus();
|
|
2512
2523
|
}, [open]);
|
|
@@ -2581,7 +2592,7 @@ function Gallery(props) {
|
|
|
2581
2592
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("footer", {
|
|
2582
2593
|
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",
|
|
2583
2594
|
children: [
|
|
2584
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Pager, {
|
|
2595
|
+
hasPagination && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Pager, {
|
|
2585
2596
|
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",
|
|
2586
2597
|
value: activeImageIndex + 1,
|
|
2587
2598
|
total: images.length,
|
|
@@ -2661,7 +2672,10 @@ const Input = (0, react.forwardRef)(({ autoFocus = false, className, style, type
|
|
|
2661
2672
|
(0, react.useEffect)(() => {
|
|
2662
2673
|
if (allowClear && !(slot && slotRef.current)) setPaddingRight(26);
|
|
2663
2674
|
}, []);
|
|
2664
|
-
const mergedInputStyle = direction === "rtl" && paddingRight === 0 ? inputStyle : {
|
|
2675
|
+
const mergedInputStyle = direction === "rtl" && paddingRight === 0 ? inputStyle : direction === "rtl" ? {
|
|
2676
|
+
...inputStyle,
|
|
2677
|
+
paddingLeft: paddingRight
|
|
2678
|
+
} : {
|
|
2665
2679
|
...inputStyle,
|
|
2666
2680
|
paddingRight
|
|
2667
2681
|
};
|
|
@@ -2672,7 +2686,7 @@ const Input = (0, react.forwardRef)(({ autoFocus = false, className, style, type
|
|
|
2672
2686
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
2673
2687
|
ref,
|
|
2674
2688
|
type,
|
|
2675
|
-
className: clsx$1(inputVariants({ size }), borderClassName, disabled && "univer-cursor-not-allowed univer-bg-gray-50 univer-text-gray-400 dark:!univer-text-gray-500", allowClear && !slot && "univer-pr-8", inputClass),
|
|
2689
|
+
className: clsx$1(inputVariants({ size }), borderClassName, disabled && "univer-cursor-not-allowed univer-bg-gray-50 univer-text-gray-400 dark:!univer-text-gray-500", allowClear && !slot && (direction === "rtl" ? "univer-pl-8" : "univer-pr-8"), inputClass),
|
|
2676
2690
|
placeholder,
|
|
2677
2691
|
value,
|
|
2678
2692
|
disabled,
|
|
@@ -2685,7 +2699,7 @@ const Input = (0, react.forwardRef)(({ autoFocus = false, className, style, type
|
|
|
2685
2699
|
style: mergedInputStyle,
|
|
2686
2700
|
...props
|
|
2687
2701
|
}), hasSlotContent && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2688
|
-
className: "univer-absolute univer-
|
|
2702
|
+
className: clsx$1("univer-absolute univer-flex univer-items-center univer-gap-1 univer-rounded-full", direction === "rtl" ? "univer-left-2" : "univer-right-2"),
|
|
2689
2703
|
ref: slotRef,
|
|
2690
2704
|
children: [slot, allowClear && value && !disabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2691
2705
|
type: "button",
|
|
@@ -2883,7 +2897,9 @@ const InputNumber = (0, react.forwardRef)(({ value, defaultValue, size = "small"
|
|
|
2883
2897
|
|
|
2884
2898
|
//#endregion
|
|
2885
2899
|
//#region src/components/segmented/Segmented.tsx
|
|
2900
|
+
const SEGMENTED_PADDING = 4;
|
|
2886
2901
|
function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
2902
|
+
const { direction } = (0, react.useContext)(ConfigContext);
|
|
2887
2903
|
const [selectedItem, setSelectedItem] = (0, react.useState)(value !== void 0 ? value : defaultValue || items[0].value);
|
|
2888
2904
|
const [slideStyle, setSlideStyle] = (0, react.useState)({});
|
|
2889
2905
|
const itemRefs = (0, react.useRef)(/* @__PURE__ */ new Map());
|
|
@@ -2897,14 +2913,16 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2897
2913
|
if (newItemElement && containerRef.current) {
|
|
2898
2914
|
const containerRect = containerRef.current.getBoundingClientRect();
|
|
2899
2915
|
const newRect = newItemElement.getBoundingClientRect();
|
|
2900
|
-
const newLeft = newRect.left - containerRect.left -
|
|
2916
|
+
const newLeft = newRect.left - containerRect.left - SEGMENTED_PADDING;
|
|
2901
2917
|
if (oldItemElement) setSlideStyle({
|
|
2902
|
-
"--slide-from": `${oldItemElement.getBoundingClientRect().left - containerRect.left -
|
|
2918
|
+
"--slide-from": `${oldItemElement.getBoundingClientRect().left - containerRect.left - SEGMENTED_PADDING}px`,
|
|
2903
2919
|
"--slide-to": `${newLeft}px`,
|
|
2920
|
+
left: `${SEGMENTED_PADDING}px`,
|
|
2904
2921
|
width: `${newRect.width}px`,
|
|
2905
2922
|
transform: `translateX(${newLeft}px)`
|
|
2906
2923
|
});
|
|
2907
2924
|
else setSlideStyle({
|
|
2925
|
+
left: `${SEGMENTED_PADDING}px`,
|
|
2908
2926
|
width: `${newRect.width}px`,
|
|
2909
2927
|
transform: `translateX(${newLeft}px)`
|
|
2910
2928
|
});
|
|
@@ -2912,7 +2930,7 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2912
2930
|
};
|
|
2913
2931
|
(0, react.useEffect)(() => {
|
|
2914
2932
|
updateSliderPosition(selectedItem);
|
|
2915
|
-
}, [selectedItem]);
|
|
2933
|
+
}, [direction, selectedItem]);
|
|
2916
2934
|
const handleClick = (itemValue) => {
|
|
2917
2935
|
const oldValue = selectedItem;
|
|
2918
2936
|
setSelectedItem(itemValue);
|
|
@@ -2921,6 +2939,7 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2921
2939
|
};
|
|
2922
2940
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2923
2941
|
"data-u-comp": "segmented",
|
|
2942
|
+
dir: direction,
|
|
2924
2943
|
ref: containerRef,
|
|
2925
2944
|
className: clsx$1("univer-relative univer-box-border univer-flex univer-min-w-0 univer-gap-1 univer-rounded-lg univer-bg-gray-100 univer-p-1 dark:!univer-bg-gray-800", className),
|
|
2926
2945
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -4387,7 +4406,7 @@ function Tree(props) {
|
|
|
4387
4406
|
e.stopPropagation();
|
|
4388
4407
|
handleExpendItem(treeItem);
|
|
4389
4408
|
},
|
|
4390
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.
|
|
4409
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.DownIcon, {})
|
|
4391
4410
|
}),
|
|
4392
4411
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Checkbox, {
|
|
4393
4412
|
checked: selected && !intermediated,
|
|
@@ -4568,5 +4587,6 @@ exports.render = render;
|
|
|
4568
4587
|
exports.resetButtonClassName = resetButtonClassName;
|
|
4569
4588
|
exports.resizeObserverCtor = resizeObserverCtor;
|
|
4570
4589
|
exports.scrollbarClassName = scrollbarClassName;
|
|
4590
|
+
exports.selectClassName = selectClassName;
|
|
4571
4591
|
exports.toast = sonner.toast;
|
|
4572
4592
|
exports.unmount = unmount;
|
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/es-ES.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
//#region src/locale/es-ES.ts
|
|
3
3
|
const locale = { design: {
|
|
4
4
|
Confirm: {
|
|
5
|
-
cancel: "
|
|
6
|
-
confirm: "
|
|
5
|
+
cancel: "Cancelar",
|
|
6
|
+
confirm: "Aceptar"
|
|
7
7
|
},
|
|
8
8
|
CascaderList: { empty: "Cap" },
|
|
9
9
|
Calendar: {
|
|
@@ -40,20 +40,20 @@ const locale = { design: {
|
|
|
40
40
|
},
|
|
41
41
|
Select: { empty: "Cap" },
|
|
42
42
|
ColorPicker: {
|
|
43
|
-
more: "
|
|
44
|
-
cancel: "
|
|
45
|
-
confirm: "
|
|
43
|
+
more: "Más colores",
|
|
44
|
+
cancel: "Cancelar",
|
|
45
|
+
confirm: "Aceptar"
|
|
46
46
|
},
|
|
47
47
|
GradientColorPicker: {
|
|
48
48
|
linear: "Lineal",
|
|
49
49
|
radial: "Radial",
|
|
50
50
|
angular: "Angular",
|
|
51
|
-
diamond: "
|
|
52
|
-
offset: "
|
|
53
|
-
angle: "
|
|
54
|
-
flip: "
|
|
51
|
+
diamond: "Diamante",
|
|
52
|
+
offset: "Desplazamiento",
|
|
53
|
+
angle: "Ángulo",
|
|
54
|
+
flip: "Invertir",
|
|
55
55
|
delete: "Eliminar",
|
|
56
|
-
transparency: "
|
|
56
|
+
transparency: "Transparencia"
|
|
57
57
|
}
|
|
58
58
|
} };
|
|
59
59
|
|
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