@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/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CalendarIcon, CheckMarkIcon, ClockIcon, CloseIcon, DeleteIcon, DownIcon,
|
|
1
|
+
import { CalendarIcon, CheckMarkIcon, ClockIcon, CloseIcon, DeleteIcon, DownIcon, ErrorIcon, InfoIcon, LoadingMultiIcon, MoreDownIcon, MoreLeftIcon, MoreRightIcon, MoreUpIcon, OneToOneIcon, SuccessIcon, WarningIcon, ZoomInIcon, ZoomOutIcon } from "@univerjs/icons";
|
|
2
2
|
import { Children, cloneElement, createContext, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { clsx as clsx$1 } from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { cva, cva as cva$1 } from "class-variance-authority";
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
@@ -17,6 +17,7 @@ import { Root as Root$4 } from "@radix-ui/react-separator";
|
|
|
17
17
|
import { createRoot } from "react-dom/client";
|
|
18
18
|
|
|
19
19
|
//#region src/helper/clsx.ts
|
|
20
|
+
const twMerge = extendTailwindMerge({ prefix: "univer-" });
|
|
20
21
|
function clsx(...inputs) {
|
|
21
22
|
return twMerge(clsx$1(inputs));
|
|
22
23
|
}
|
|
@@ -24,35 +25,42 @@ function clsx(...inputs) {
|
|
|
24
25
|
//#endregion
|
|
25
26
|
//#region src/components/accordion/Accordion.tsx
|
|
26
27
|
function Accordion(props) {
|
|
27
|
-
|
|
28
|
-
const
|
|
28
|
+
var _props$openIndex;
|
|
29
|
+
const { className, defaultOpenIndex = null, items, onOpenIndexChange } = props;
|
|
30
|
+
const [innerOpenIndex, setInnerOpenIndex] = useState(defaultOpenIndex);
|
|
31
|
+
const openIndex = (_props$openIndex = props.openIndex) !== null && _props$openIndex !== void 0 ? _props$openIndex : innerOpenIndex;
|
|
29
32
|
const toggleItem = (index) => {
|
|
30
|
-
|
|
33
|
+
const nextOpenIndex = openIndex === index ? null : index;
|
|
34
|
+
if (props.openIndex === void 0) setInnerOpenIndex(nextOpenIndex);
|
|
35
|
+
onOpenIndexChange === null || onOpenIndexChange === void 0 || onOpenIndexChange(nextOpenIndex);
|
|
31
36
|
};
|
|
32
37
|
return /* @__PURE__ */ jsx("div", {
|
|
33
38
|
"data-u-comp": "accordion",
|
|
34
39
|
className: clsx("univer-divide-x-0 univer-divide-y univer-divide-solid univer-divide-gray-200 dark:!univer-divide-gray-600", className),
|
|
35
|
-
children: items.map((item, index) =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"univer-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"univer-max-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children:
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
children: items.map((item, index) => {
|
|
41
|
+
var _item$id;
|
|
42
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
|
|
43
|
+
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",
|
|
44
|
+
type: "button",
|
|
45
|
+
onClick: () => toggleItem(index),
|
|
46
|
+
children: [/* @__PURE__ */ jsx(DownIcon, { className: clsx("univer-size-2.5 univer-flex-shrink-0 univer-transition-transform", {
|
|
47
|
+
"-univer-rotate-90": openIndex !== index,
|
|
48
|
+
"univer-rotate-0": openIndex === index
|
|
49
|
+
}) }), /* @__PURE__ */ jsx("span", {
|
|
50
|
+
className: "univer-font-medium",
|
|
51
|
+
children: item.label
|
|
52
|
+
})]
|
|
53
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
54
|
+
className: clsx("univer-overflow-hidden univer-transition-[max-height,opacity] univer-duration-500 univer-ease-in-out", {
|
|
55
|
+
"univer-max-h-screen": openIndex === index,
|
|
56
|
+
"univer-max-h-0": openIndex !== index
|
|
57
|
+
}),
|
|
58
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: "univer-box-border univer-px-4 univer-py-1.5",
|
|
60
|
+
children: item.children
|
|
61
|
+
})
|
|
62
|
+
})] }, (_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : index);
|
|
63
|
+
})
|
|
56
64
|
});
|
|
57
65
|
}
|
|
58
66
|
|
|
@@ -143,6 +151,7 @@ const buttonVariants = cva$1("univer-box-border univer-inline-flex univer-cursor
|
|
|
143
151
|
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"
|
|
144
152
|
},
|
|
145
153
|
size: {
|
|
154
|
+
icon: "univer-size-8 !univer-p-0",
|
|
146
155
|
small: "univer-h-6 univer-rounded-md univer-px-1.5 univer-text-xs",
|
|
147
156
|
middle: "univer-h-8 univer-rounded-lg univer-px-2 univer-text-sm",
|
|
148
157
|
large: "univer-h-10 univer-rounded-lg univer-px-3 univer-text-sm"
|
|
@@ -646,7 +655,7 @@ function DayButton(props) {
|
|
|
646
655
|
}
|
|
647
656
|
function Calendar(props) {
|
|
648
657
|
const { className, max, min, showTime = false, value, onValueChange } = props;
|
|
649
|
-
const { locale } = useContext(ConfigContext);
|
|
658
|
+
const { direction = "ltr", locale } = useContext(ConfigContext);
|
|
650
659
|
const { ariaLabels, year, weekDays, months } = locale === null || locale === void 0 ? void 0 : locale.Calendar;
|
|
651
660
|
const today = /* @__PURE__ */ new Date();
|
|
652
661
|
const [currentYear, setCurrentYear] = useState((value !== null && value !== void 0 ? value : today).getFullYear());
|
|
@@ -742,6 +751,7 @@ function Calendar(props) {
|
|
|
742
751
|
}
|
|
743
752
|
return /* @__PURE__ */ jsxs("div", {
|
|
744
753
|
"data-u-comp": "calendar",
|
|
754
|
+
dir: direction,
|
|
745
755
|
className: clsx("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),
|
|
746
756
|
children: [
|
|
747
757
|
/* @__PURE__ */ jsxs("nav", {
|
|
@@ -751,7 +761,7 @@ function Calendar(props) {
|
|
|
751
761
|
className: "univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200",
|
|
752
762
|
"aria-label": ariaLabels.previousMonth,
|
|
753
763
|
onClick: prevMonth,
|
|
754
|
-
children: /* @__PURE__ */ jsx(MoreRightIcon, { className: "univer-rotate-180" })
|
|
764
|
+
children: /* @__PURE__ */ jsx(MoreRightIcon, { className: "univer-rotate-180 rtl:!univer-rotate-0" })
|
|
755
765
|
}),
|
|
756
766
|
/* @__PURE__ */ jsxs("span", {
|
|
757
767
|
className: "univer-flex univer-items-center univer-gap-0.5 univer-text-sm univer-font-medium",
|
|
@@ -796,7 +806,7 @@ function Calendar(props) {
|
|
|
796
806
|
className: "univer-text-lg univer-text-gray-500 dark:!univer-text-gray-200",
|
|
797
807
|
"aria-label": ariaLabels.nextMonth,
|
|
798
808
|
onClick: nextMonth,
|
|
799
|
-
children: /* @__PURE__ */ jsx(MoreRightIcon, {})
|
|
809
|
+
children: /* @__PURE__ */ jsx(MoreRightIcon, { className: "rtl:univer-rotate-180" })
|
|
800
810
|
})
|
|
801
811
|
]
|
|
802
812
|
}),
|
|
@@ -2451,11 +2461,11 @@ function Pager(props) {
|
|
|
2451
2461
|
children: hasValue ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2452
2462
|
/* @__PURE__ */ jsx("button", {
|
|
2453
2463
|
"data-u-comp": "pager-left-arrow",
|
|
2454
|
-
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",
|
|
2464
|
+
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",
|
|
2455
2465
|
type: "button",
|
|
2456
2466
|
role: "button",
|
|
2457
2467
|
onClick: onClickLeftArrow,
|
|
2458
|
-
children: /* @__PURE__ */ jsx(MoreLeftIcon, {})
|
|
2468
|
+
children: /* @__PURE__ */ jsx(MoreLeftIcon, { className: "rtl:univer-rotate-180" })
|
|
2459
2469
|
}),
|
|
2460
2470
|
/* @__PURE__ */ jsx("span", {
|
|
2461
2471
|
className: "univer-mx-1",
|
|
@@ -2463,11 +2473,11 @@ function Pager(props) {
|
|
|
2463
2473
|
}),
|
|
2464
2474
|
/* @__PURE__ */ jsx("button", {
|
|
2465
2475
|
"data-u-comp": "pager-right-arrow",
|
|
2466
|
-
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",
|
|
2476
|
+
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",
|
|
2467
2477
|
type: "button",
|
|
2468
2478
|
role: "button",
|
|
2469
2479
|
onClick: onClickRightArrow,
|
|
2470
|
-
children: /* @__PURE__ */ jsx(MoreRightIcon, {})
|
|
2480
|
+
children: /* @__PURE__ */ jsx(MoreRightIcon, { className: "rtl:univer-rotate-180" })
|
|
2471
2481
|
})
|
|
2472
2482
|
] }) : /* @__PURE__ */ jsx("div", {
|
|
2473
2483
|
className: "univer-mx-1",
|
|
@@ -2506,6 +2516,7 @@ function Gallery(props) {
|
|
|
2506
2516
|
const { direction } = useContext(ConfigContext);
|
|
2507
2517
|
const dialogRef = useRef(null);
|
|
2508
2518
|
const activeImage = useMemo(() => images[activeImageIndex], [activeImageIndex, images]);
|
|
2519
|
+
const hasPagination = images.length > 1;
|
|
2509
2520
|
useEffect(() => {
|
|
2510
2521
|
if (open && dialogRef.current) dialogRef.current.focus();
|
|
2511
2522
|
}, [open]);
|
|
@@ -2580,7 +2591,7 @@ function Gallery(props) {
|
|
|
2580
2591
|
/* @__PURE__ */ jsxs("footer", {
|
|
2581
2592
|
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",
|
|
2582
2593
|
children: [
|
|
2583
|
-
/* @__PURE__ */ jsx(Pager, {
|
|
2594
|
+
hasPagination && /* @__PURE__ */ jsx(Pager, {
|
|
2584
2595
|
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",
|
|
2585
2596
|
value: activeImageIndex + 1,
|
|
2586
2597
|
total: images.length,
|
|
@@ -2660,7 +2671,10 @@ const Input = forwardRef(({ autoFocus = false, className, style, type = "text",
|
|
|
2660
2671
|
useEffect(() => {
|
|
2661
2672
|
if (allowClear && !(slot && slotRef.current)) setPaddingRight(26);
|
|
2662
2673
|
}, []);
|
|
2663
|
-
const mergedInputStyle = direction === "rtl" && paddingRight === 0 ? inputStyle : {
|
|
2674
|
+
const mergedInputStyle = direction === "rtl" && paddingRight === 0 ? inputStyle : direction === "rtl" ? {
|
|
2675
|
+
...inputStyle,
|
|
2676
|
+
paddingLeft: paddingRight
|
|
2677
|
+
} : {
|
|
2664
2678
|
...inputStyle,
|
|
2665
2679
|
paddingRight
|
|
2666
2680
|
};
|
|
@@ -2671,7 +2685,7 @@ const Input = forwardRef(({ autoFocus = false, className, style, type = "text",
|
|
|
2671
2685
|
children: [/* @__PURE__ */ jsx("input", {
|
|
2672
2686
|
ref,
|
|
2673
2687
|
type,
|
|
2674
|
-
className: clsx(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),
|
|
2688
|
+
className: clsx(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),
|
|
2675
2689
|
placeholder,
|
|
2676
2690
|
value,
|
|
2677
2691
|
disabled,
|
|
@@ -2684,7 +2698,7 @@ const Input = forwardRef(({ autoFocus = false, className, style, type = "text",
|
|
|
2684
2698
|
style: mergedInputStyle,
|
|
2685
2699
|
...props
|
|
2686
2700
|
}), hasSlotContent && /* @__PURE__ */ jsxs("div", {
|
|
2687
|
-
className: "univer-absolute univer-
|
|
2701
|
+
className: clsx("univer-absolute univer-flex univer-items-center univer-gap-1 univer-rounded-full", direction === "rtl" ? "univer-left-2" : "univer-right-2"),
|
|
2688
2702
|
ref: slotRef,
|
|
2689
2703
|
children: [slot, allowClear && value && !disabled && /* @__PURE__ */ jsx("button", {
|
|
2690
2704
|
type: "button",
|
|
@@ -2882,7 +2896,9 @@ const InputNumber = forwardRef(({ value, defaultValue, size = "small", min = Num
|
|
|
2882
2896
|
|
|
2883
2897
|
//#endregion
|
|
2884
2898
|
//#region src/components/segmented/Segmented.tsx
|
|
2899
|
+
const SEGMENTED_PADDING = 4;
|
|
2885
2900
|
function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
2901
|
+
const { direction } = useContext(ConfigContext);
|
|
2886
2902
|
const [selectedItem, setSelectedItem] = useState(value !== void 0 ? value : defaultValue || items[0].value);
|
|
2887
2903
|
const [slideStyle, setSlideStyle] = useState({});
|
|
2888
2904
|
const itemRefs = useRef(/* @__PURE__ */ new Map());
|
|
@@ -2896,14 +2912,16 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2896
2912
|
if (newItemElement && containerRef.current) {
|
|
2897
2913
|
const containerRect = containerRef.current.getBoundingClientRect();
|
|
2898
2914
|
const newRect = newItemElement.getBoundingClientRect();
|
|
2899
|
-
const newLeft = newRect.left - containerRect.left -
|
|
2915
|
+
const newLeft = newRect.left - containerRect.left - SEGMENTED_PADDING;
|
|
2900
2916
|
if (oldItemElement) setSlideStyle({
|
|
2901
|
-
"--slide-from": `${oldItemElement.getBoundingClientRect().left - containerRect.left -
|
|
2917
|
+
"--slide-from": `${oldItemElement.getBoundingClientRect().left - containerRect.left - SEGMENTED_PADDING}px`,
|
|
2902
2918
|
"--slide-to": `${newLeft}px`,
|
|
2919
|
+
left: `${SEGMENTED_PADDING}px`,
|
|
2903
2920
|
width: `${newRect.width}px`,
|
|
2904
2921
|
transform: `translateX(${newLeft}px)`
|
|
2905
2922
|
});
|
|
2906
2923
|
else setSlideStyle({
|
|
2924
|
+
left: `${SEGMENTED_PADDING}px`,
|
|
2907
2925
|
width: `${newRect.width}px`,
|
|
2908
2926
|
transform: `translateX(${newLeft}px)`
|
|
2909
2927
|
});
|
|
@@ -2911,7 +2929,7 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2911
2929
|
};
|
|
2912
2930
|
useEffect(() => {
|
|
2913
2931
|
updateSliderPosition(selectedItem);
|
|
2914
|
-
}, [selectedItem]);
|
|
2932
|
+
}, [direction, selectedItem]);
|
|
2915
2933
|
const handleClick = (itemValue) => {
|
|
2916
2934
|
const oldValue = selectedItem;
|
|
2917
2935
|
setSelectedItem(itemValue);
|
|
@@ -2920,6 +2938,7 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2920
2938
|
};
|
|
2921
2939
|
return /* @__PURE__ */ jsxs("div", {
|
|
2922
2940
|
"data-u-comp": "segmented",
|
|
2941
|
+
dir: direction,
|
|
2923
2942
|
ref: containerRef,
|
|
2924
2943
|
className: clsx("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),
|
|
2925
2944
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -4386,7 +4405,7 @@ function Tree(props) {
|
|
|
4386
4405
|
e.stopPropagation();
|
|
4387
4406
|
handleExpendItem(treeItem);
|
|
4388
4407
|
},
|
|
4389
|
-
children: /* @__PURE__ */ jsx(
|
|
4408
|
+
children: /* @__PURE__ */ jsx(DownIcon, {})
|
|
4390
4409
|
}),
|
|
4391
4410
|
/* @__PURE__ */ jsx(Checkbox, {
|
|
4392
4411
|
checked: selected && !intermediated,
|
|
@@ -4492,4 +4511,4 @@ function resizeObserverCtor(callback) {
|
|
|
4492
4511
|
}
|
|
4493
4512
|
|
|
4494
4513
|
//#endregion
|
|
4495
|
-
export { Accordion, Avatar, Badge, Button, ButtonGroup, Calendar, CascaderList, Checkbox, CheckboxGroup, ColorPicker, ColorPresets, ConfigContext, ConfigProvider, Confirm, DatePicker, DateRangePicker, Dialog, DraggableList, Dropdown, DropdownMenu, FormDualColumnLayout, FormLayout, Gallery, GradientColorPicker, HoverCard, Input, InputNumber, KBD, MessageType, Messager, MultipleSelect, Pager, Panel, PanelField, PanelSection, Popup, Radio, RadioGroup, Segmented, Select, SelectList, Separator, Switch, Textarea, TimeInput, Toaster, Tooltip, Tree, TreeSelectionMode, borderBottomClassName, borderClassName, borderLeftBottomClassName, borderLeftClassName, borderRightClassName, borderTopClassName, clsx, cva, divideXClassName, divideYClassName, filterLeafNode, findNodePathFromTree, findSubTreeFromPath, isBrowser, mergeTreeSelected, message, removeMessage, render, resetButtonClassName, resizeObserverCtor, scrollbarClassName, toast, unmount };
|
|
4514
|
+
export { Accordion, Avatar, Badge, Button, ButtonGroup, Calendar, CascaderList, Checkbox, CheckboxGroup, ColorPicker, ColorPresets, ConfigContext, ConfigProvider, Confirm, DatePicker, DateRangePicker, Dialog, DraggableList, Dropdown, DropdownMenu, FormDualColumnLayout, FormLayout, Gallery, GradientColorPicker, HoverCard, Input, InputNumber, KBD, MessageType, Messager, MultipleSelect, Pager, Panel, PanelField, PanelSection, Popup, Radio, RadioGroup, Segmented, Select, SelectList, Separator, Switch, Textarea, TimeInput, Toaster, Tooltip, Tree, TreeSelectionMode, borderBottomClassName, borderClassName, borderLeftBottomClassName, borderLeftClassName, borderRightClassName, borderTopClassName, clsx, cva, divideXClassName, divideYClassName, filterLeafNode, findNodePathFromTree, findSubTreeFromPath, isBrowser, mergeTreeSelected, message, removeMessage, render, resetButtonClassName, resizeObserverCtor, scrollbarClassName, selectClassName, toast, unmount };
|
package/lib/es/locale/ar-SA.js
CHANGED
package/lib/es/locale/ca-ES.js
CHANGED
package/lib/es/locale/de-DE.js
CHANGED
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/locale/es-ES.ts
|
|
2
2
|
const locale = { design: {
|
|
3
3
|
Confirm: {
|
|
4
|
-
cancel: "
|
|
5
|
-
confirm: "
|
|
4
|
+
cancel: "Cancelar",
|
|
5
|
+
confirm: "Aceptar"
|
|
6
6
|
},
|
|
7
7
|
CascaderList: { empty: "Cap" },
|
|
8
8
|
Calendar: {
|
|
@@ -39,20 +39,20 @@ const locale = { design: {
|
|
|
39
39
|
},
|
|
40
40
|
Select: { empty: "Cap" },
|
|
41
41
|
ColorPicker: {
|
|
42
|
-
more: "
|
|
43
|
-
cancel: "
|
|
44
|
-
confirm: "
|
|
42
|
+
more: "Más colores",
|
|
43
|
+
cancel: "Cancelar",
|
|
44
|
+
confirm: "Aceptar"
|
|
45
45
|
},
|
|
46
46
|
GradientColorPicker: {
|
|
47
47
|
linear: "Lineal",
|
|
48
48
|
radial: "Radial",
|
|
49
49
|
angular: "Angular",
|
|
50
|
-
diamond: "
|
|
51
|
-
offset: "
|
|
52
|
-
angle: "
|
|
53
|
-
flip: "
|
|
50
|
+
diamond: "Diamante",
|
|
51
|
+
offset: "Desplazamiento",
|
|
52
|
+
angle: "Ángulo",
|
|
53
|
+
flip: "Invertir",
|
|
54
54
|
delete: "Eliminar",
|
|
55
|
-
transparency: "
|
|
55
|
+
transparency: "Transparencia"
|
|
56
56
|
}
|
|
57
57
|
} };
|
|
58
58
|
|
package/lib/es/locale/fa-IR.js
CHANGED
package/lib/es/locale/fr-FR.js
CHANGED
package/lib/es/locale/id-ID.js
CHANGED
package/lib/es/locale/it-IT.js
CHANGED
package/lib/es/locale/ja-JP.js
CHANGED
package/lib/es/locale/ko-KR.js
CHANGED
package/lib/es/locale/pl-PL.js
CHANGED
package/lib/es/locale/pt-BR.js
CHANGED
package/lib/es/locale/ru-RU.js
CHANGED
package/lib/es/locale/sk-SK.js
CHANGED
package/lib/es/locale/vi-VN.js
CHANGED
package/lib/index.css
CHANGED
|
@@ -353,6 +353,11 @@
|
|
|
353
353
|
height: 1.75rem;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
.univer-size-8 {
|
|
357
|
+
width: 2rem;
|
|
358
|
+
height: 2rem;
|
|
359
|
+
}
|
|
360
|
+
|
|
356
361
|
.univer-size-9 {
|
|
357
362
|
width: 2.25rem;
|
|
358
363
|
height: 2.25rem;
|
|
@@ -415,6 +420,10 @@
|
|
|
415
420
|
height: 150px;
|
|
416
421
|
}
|
|
417
422
|
|
|
423
|
+
.univer-h-\[78px\] {
|
|
424
|
+
height: 78px;
|
|
425
|
+
}
|
|
426
|
+
|
|
418
427
|
.univer-h-\[calc\(100\%-2px\)\] {
|
|
419
428
|
height: calc(100% - 2px);
|
|
420
429
|
}
|
|
@@ -1057,6 +1066,12 @@
|
|
|
1057
1066
|
background-color: var(--univer-primary-600) !important;
|
|
1058
1067
|
}
|
|
1059
1068
|
|
|
1069
|
+
.univer-bg-\[\#e8eefc\] {
|
|
1070
|
+
--univer-tw-bg-opacity: 1;
|
|
1071
|
+
background-color: #e8eefc;
|
|
1072
|
+
background-color: rgba(232, 238, 252, var(--univer-tw-bg-opacity, 1));
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1060
1075
|
.univer-bg-\[rgba\(0\,0\,0\,0\.8\)\] {
|
|
1061
1076
|
background-color: #000c;
|
|
1062
1077
|
}
|
|
@@ -1149,6 +1164,10 @@
|
|
|
1149
1164
|
object-fit: contain;
|
|
1150
1165
|
}
|
|
1151
1166
|
|
|
1167
|
+
.\!univer-p-0 {
|
|
1168
|
+
padding: 0 !important;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1152
1171
|
.\!univer-p-2\.5 {
|
|
1153
1172
|
padding: .625rem !important;
|
|
1154
1173
|
}
|
|
@@ -1231,6 +1250,11 @@
|
|
|
1231
1250
|
padding-right: 1.75rem;
|
|
1232
1251
|
}
|
|
1233
1252
|
|
|
1253
|
+
.univer-px-8 {
|
|
1254
|
+
padding-left: 2rem;
|
|
1255
|
+
padding-right: 2rem;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1234
1258
|
.univer-py-0\.5 {
|
|
1235
1259
|
padding-top: .125rem;
|
|
1236
1260
|
padding-bottom: .125rem;
|
|
@@ -2197,6 +2221,18 @@
|
|
|
2197
2221
|
right: auto;
|
|
2198
2222
|
}
|
|
2199
2223
|
|
|
2224
|
+
.rtl\:\!univer-rotate-0:where([dir="rtl"], [dir="rtl"] *) {
|
|
2225
|
+
--univer-tw-rotate: 0deg !important;
|
|
2226
|
+
transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(0deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y)) !important;
|
|
2227
|
+
transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y)) !important;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
.rtl\:univer-rotate-180:where([dir="rtl"], [dir="rtl"] *) {
|
|
2231
|
+
--univer-tw-rotate: 180deg;
|
|
2232
|
+
transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(180deg) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
|
|
2233
|
+
transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2200
2236
|
.rtl\:univer-rounded-l-md:where([dir="rtl"], [dir="rtl"] *) {
|
|
2201
2237
|
border-top-left-radius: .375rem;
|
|
2202
2238
|
border-bottom-left-radius: .375rem;
|
|
@@ -2229,6 +2265,14 @@
|
|
|
2229
2265
|
}
|
|
2230
2266
|
}
|
|
2231
2267
|
|
|
2268
|
+
.dark\:\!univer-h-6:where(.univer-dark, .univer-dark *) {
|
|
2269
|
+
height: 1.5rem !important;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
.dark\:\!univer-h-\[78px\]:where(.univer-dark, .univer-dark *) {
|
|
2273
|
+
height: 78px !important;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2232
2276
|
.dark\:\!univer-divide-gray-600:where(.univer-dark, .univer-dark *) > :not([hidden]) ~ :not([hidden]) {
|
|
2233
2277
|
border-color: var(--univer-gray-600) !important;
|
|
2234
2278
|
}
|