@univerjs/design 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +111 -80
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +3 -3
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fr-FR.js +3 -3
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +3 -3
- package/lib/cjs/locale/pl-PL.js +3 -3
- package/lib/cjs/locale/pt-BR.js +3 -3
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +3 -3
- package/lib/es/index.js +105 -81
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +3 -3
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fr-FR.js +3 -3
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +3 -3
- package/lib/es/locale/pl-PL.js +3 -3
- package/lib/es/locale/pt-BR.js +3 -3
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +3 -3
- package/lib/index.css +85 -80
- package/lib/index.js +105 -81
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +3 -3
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fr-FR.js +3 -3
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +3 -3
- package/lib/locale/pl-PL.js +3 -3
- package/lib/locale/pt-BR.js +3 -3
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +3 -3
- package/lib/types/components/command/Command.d.ts +25 -0
- package/lib/types/components/dialog/Dialog.d.ts +0 -6
- package/lib/types/components/input-number/InputNumber.d.ts +1 -0
- package/lib/types/components/input-number/InputNumber.stories.d.ts +3 -0
- package/lib/types/components/popup/Popup.d.ts +0 -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/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/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/package.json +12 -13
- package/lib/types/helper/resize-observer.d.ts +0 -19
package/lib/cjs/index.js
CHANGED
|
@@ -10,10 +10,10 @@ let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
|
10
10
|
let _radix_ui_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
11
11
|
let _radix_ui_react_popover = require("@radix-ui/react-popover");
|
|
12
12
|
let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
13
|
+
let cmdk = require("cmdk");
|
|
13
14
|
let react_dom = require("react-dom");
|
|
14
15
|
let _radix_ui_react_hover_card = require("@radix-ui/react-hover-card");
|
|
15
16
|
let sonner = require("sonner");
|
|
16
|
-
let react_transition_group = require("react-transition-group");
|
|
17
17
|
let _radix_ui_react_separator = require("@radix-ui/react-separator");
|
|
18
18
|
let react_dom_client = require("react-dom/client");
|
|
19
19
|
|
|
@@ -1108,7 +1108,8 @@ function useDraggable(options = {}) {
|
|
|
1108
1108
|
if (!isDragging) return;
|
|
1109
1109
|
e.preventDefault();
|
|
1110
1110
|
e.stopPropagation();
|
|
1111
|
-
|
|
1111
|
+
const newPosition = calculateBounds(e.clientX, e.clientY);
|
|
1112
|
+
setPosition(newPosition);
|
|
1112
1113
|
}, [isDragging, calculateBounds]);
|
|
1113
1114
|
const endDrag = (0, react.useCallback)(() => {
|
|
1114
1115
|
setIsDragging(false);
|
|
@@ -1505,10 +1506,11 @@ function RgbInput({ hsv, alpha, format, onChange }) {
|
|
|
1505
1506
|
if (value !== "" && !/^\d*\.?\d*$/.test(value)) return;
|
|
1506
1507
|
const numValue = value === "" ? 0 : Number.parseFloat(value);
|
|
1507
1508
|
if (numValue > 1) return;
|
|
1508
|
-
|
|
1509
|
+
const newValues = {
|
|
1509
1510
|
...localValues,
|
|
1510
1511
|
a: numValue
|
|
1511
|
-
}
|
|
1512
|
+
};
|
|
1513
|
+
setLocalValues(newValues);
|
|
1512
1514
|
if (onChange) onChange(hsv[0], hsv[1], hsv[2], numValue);
|
|
1513
1515
|
return;
|
|
1514
1516
|
}
|
|
@@ -2062,6 +2064,69 @@ function ColorPicker({ format = "hex", value, onChange }) {
|
|
|
2062
2064
|
});
|
|
2063
2065
|
}
|
|
2064
2066
|
|
|
2067
|
+
//#endregion
|
|
2068
|
+
//#region src/components/command/Command.tsx
|
|
2069
|
+
function Command({ className, ...props }) {
|
|
2070
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command, {
|
|
2071
|
+
"data-slot": "command",
|
|
2072
|
+
className: clsx$1("univer-flex univer-h-full univer-w-full univer-flex-col univer-overflow-hidden univer-rounded-md univer-bg-white univer-text-gray-900 dark:!univer-bg-gray-700 dark:!univer-text-white", className),
|
|
2073
|
+
...props
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
function CommandInput({ className, ...props }) {
|
|
2077
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2078
|
+
"data-slot": "command-input-wrapper",
|
|
2079
|
+
className: "univer-flex univer-h-10 univer-items-center univer-gap-2 univer-border-0 univer-border-b univer-border-solid univer-border-gray-200 univer-px-3 dark:!univer-border-gray-600 [&>svg]:univer-size-4 [&>svg]:univer-shrink-0 [&>svg]:univer-text-gray-400",
|
|
2080
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_icons.SearchIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Input, {
|
|
2081
|
+
"data-slot": "command-input",
|
|
2082
|
+
className: clsx$1("univer-h-10 univer-w-full univer-border-none univer-bg-transparent univer-text-sm univer-outline-none placeholder:univer-text-gray-400", className),
|
|
2083
|
+
...props
|
|
2084
|
+
})]
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
function CommandList({ className, ...props }) {
|
|
2088
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.List, {
|
|
2089
|
+
"data-slot": "command-list",
|
|
2090
|
+
className: clsx$1("univer-max-h-[300px] univer-overflow-y-auto univer-overflow-x-hidden univer-p-1 [scroll-padding-block:4px]", className),
|
|
2091
|
+
...props
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
function CommandEmpty({ className, ...props }) {
|
|
2095
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Empty, {
|
|
2096
|
+
"data-slot": "command-empty",
|
|
2097
|
+
className: clsx$1("univer-py-6 univer-text-center univer-text-sm univer-text-gray-500", className),
|
|
2098
|
+
...props
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
function CommandGroup({ className, ...props }) {
|
|
2102
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Group, {
|
|
2103
|
+
"data-slot": "command-group",
|
|
2104
|
+
className: clsx$1("univer-overflow-hidden univer-p-1 [&_[cmdk-group-heading]]:univer-px-2 [&_[cmdk-group-heading]]:univer-py-1.5 [&_[cmdk-group-heading]]:univer-text-xs [&_[cmdk-group-heading]]:univer-font-medium [&_[cmdk-group-heading]]:univer-text-gray-500", className),
|
|
2105
|
+
...props
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
function CommandItem({ className, ...props }) {
|
|
2109
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Item, {
|
|
2110
|
+
"data-slot": "command-item",
|
|
2111
|
+
className: clsx$1("univer-relative univer-flex univer-cursor-default univer-select-none univer-items-center univer-gap-2 univer-rounded univer-px-2 univer-py-1.5 univer-text-sm univer-outline-none data-[disabled=true]:univer-pointer-events-none data-[selected=true]:univer-bg-gray-100 data-[disabled=true]:univer-opacity-50 dark:data-[selected=true]:!univer-bg-gray-600", className),
|
|
2112
|
+
...props
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
function CommandSeparator({ className, ...props }) {
|
|
2116
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Separator, {
|
|
2117
|
+
"data-slot": "command-separator",
|
|
2118
|
+
className: clsx$1("univer-my-1 univer-h-px univer-bg-gray-200 dark:!univer-bg-gray-600", className),
|
|
2119
|
+
...props
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
function CommandShortcut({ className, ...props }) {
|
|
2123
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2124
|
+
"data-slot": "command-shortcut",
|
|
2125
|
+
className: clsx$1("univer-ml-auto univer-text-xs univer-tracking-widest univer-text-gray-400 rtl:univer-ml-0 rtl:univer-mr-auto", className),
|
|
2126
|
+
...props
|
|
2127
|
+
});
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2065
2130
|
//#endregion
|
|
2066
2131
|
//#region src/components/confirm/Confirm.tsx
|
|
2067
2132
|
function Footer(props) {
|
|
@@ -2330,7 +2395,10 @@ function DraggableList(props) {
|
|
|
2330
2395
|
onPointerDownCapture: (e) => {
|
|
2331
2396
|
if (pointerIdRef.current !== null) return;
|
|
2332
2397
|
if (!draggableHandle) pressedHandleIdRef.current = itemId;
|
|
2333
|
-
else
|
|
2398
|
+
else {
|
|
2399
|
+
const isMatched = !!e.target.closest(draggableHandle);
|
|
2400
|
+
pressedHandleIdRef.current = isMatched ? itemId : null;
|
|
2401
|
+
}
|
|
2334
2402
|
if (pressedHandleIdRef.current !== itemId) return;
|
|
2335
2403
|
const rect = e.currentTarget.getBoundingClientRect();
|
|
2336
2404
|
dragPointerOffsetRef.current = {
|
|
@@ -2709,7 +2777,7 @@ const Input = (0, react.forwardRef)(({ autoFocus = false, className, style, type
|
|
|
2709
2777
|
|
|
2710
2778
|
//#endregion
|
|
2711
2779
|
//#region src/components/input-number/InputNumber.tsx
|
|
2712
|
-
const InputNumber = (0, react.forwardRef)(({ value, defaultValue, size = "small", min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER, step = 1, precision, formatter, parser, controls = true, className, inputClassName, controlsClassName, disabled, onChange, onKeyDown, onPressEnter, onFocus, onBlur, allowEmpty = false }, ref) => {
|
|
2780
|
+
const InputNumber = (0, react.forwardRef)(({ value, defaultValue, size = "small", min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER, step = 1, precision, formatter, parser, controls = true, className, inputClassName, controlsClassName, disabled, onChange, onKeyDown, onPressEnter, onFocus, onBlur, allowEmpty = false, allowClear = false }, ref) => {
|
|
2713
2781
|
const { locale } = (0, react.useContext)(ConfigContext);
|
|
2714
2782
|
const [internalValue, setInternalValue] = (0, react.useState)(value !== void 0 ? value : defaultValue !== void 0 ? defaultValue : null);
|
|
2715
2783
|
const lastValidValueRef = (0, react.useRef)(internalValue);
|
|
@@ -2855,6 +2923,7 @@ const InputNumber = (0, react.forwardRef)(({ value, defaultValue, size = "small"
|
|
|
2855
2923
|
className: clsx$1("univer-box-border", inputClassName),
|
|
2856
2924
|
size,
|
|
2857
2925
|
value: inputValue,
|
|
2926
|
+
allowClear,
|
|
2858
2927
|
disabled,
|
|
2859
2928
|
onChange: handleInputChange,
|
|
2860
2929
|
onFocus,
|
|
@@ -2911,14 +2980,16 @@ function Segmented({ items, value, defaultValue, onChange, className = "" }) {
|
|
|
2911
2980
|
const containerRect = containerRef.current.getBoundingClientRect();
|
|
2912
2981
|
const newRect = newItemElement.getBoundingClientRect();
|
|
2913
2982
|
const newLeft = newRect.left - containerRect.left - SEGMENTED_PADDING;
|
|
2914
|
-
if (oldItemElement)
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2983
|
+
if (oldItemElement) {
|
|
2984
|
+
const oldLeft = oldItemElement.getBoundingClientRect().left - containerRect.left - SEGMENTED_PADDING;
|
|
2985
|
+
setSlideStyle({
|
|
2986
|
+
"--slide-from": `${oldLeft}px`,
|
|
2987
|
+
"--slide-to": `${newLeft}px`,
|
|
2988
|
+
left: `${SEGMENTED_PADDING}px`,
|
|
2989
|
+
width: `${newRect.width}px`,
|
|
2990
|
+
transform: `translateX(${newLeft}px)`
|
|
2991
|
+
});
|
|
2992
|
+
} else setSlideStyle({
|
|
2922
2993
|
left: `${SEGMENTED_PADDING}px`,
|
|
2923
2994
|
width: `${newRect.width}px`,
|
|
2924
2995
|
transform: `translateX(${newLeft}px)`
|
|
@@ -3774,9 +3845,10 @@ function PanelField(props) {
|
|
|
3774
3845
|
//#endregion
|
|
3775
3846
|
//#region src/components/popup/Popup.tsx
|
|
3776
3847
|
const POPUP_POINTER_OFFSET = 2;
|
|
3848
|
+
const DEFAULT_POPUP_OFFSET = [0, 0];
|
|
3777
3849
|
const HIDDEN_POPUP_OFFSET = [-9999, -9999];
|
|
3778
3850
|
function Popup(props) {
|
|
3779
|
-
const { children, visible = false, offset =
|
|
3851
|
+
const { children, visible = false, offset = DEFAULT_POPUP_OFFSET, overflowVisible = false, placementY = "below" } = props;
|
|
3780
3852
|
const nodeRef = (0, react.useRef)(null);
|
|
3781
3853
|
const [realOffset, setRealOffset] = (0, react.useState)(HIDDEN_POPUP_OFFSET);
|
|
3782
3854
|
const { mountContainer, direction } = (0, react.useContext)(ConfigContext);
|
|
@@ -3822,29 +3894,17 @@ function Popup(props) {
|
|
|
3822
3894
|
function preventDefault(event) {
|
|
3823
3895
|
event.preventDefault();
|
|
3824
3896
|
}
|
|
3825
|
-
return (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
exitActive: "univer-popup-exit",
|
|
3834
|
-
exitDone: "univer-popup-exit-active"
|
|
3897
|
+
return (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("section", {
|
|
3898
|
+
ref: nodeRef,
|
|
3899
|
+
dir: direction,
|
|
3900
|
+
className: clsx$1("univer-popup univer-fixed univer-z-[1070] univer-origin-top-left univer-overflow-hidden univer-rounded-md univer-shadow univer-transition-[transform,opacity] univer-duration-150", visible ? "univer-[transition-timing-function:cubic-bezier(0.08,0.82,0.17,1)] univer-scale-y-100 univer-opacity-100" : "univer-[transition-timing-function:cubic-bezier(0.6,0.04,0.98,0.34)] univer-scale-y-0 univer-opacity-0"),
|
|
3901
|
+
style: {
|
|
3902
|
+
left: realOffset[0] + POPUP_POINTER_OFFSET,
|
|
3903
|
+
top: realOffset[1] + POPUP_POINTER_OFFSET,
|
|
3904
|
+
overflow: overflowVisible ? "visible" : void 0
|
|
3835
3905
|
},
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
dir: direction,
|
|
3839
|
-
className: "univer-popup",
|
|
3840
|
-
style: {
|
|
3841
|
-
left: realOffset[0] + POPUP_POINTER_OFFSET,
|
|
3842
|
-
top: realOffset[1] + POPUP_POINTER_OFFSET,
|
|
3843
|
-
overflow: overflowVisible ? "visible" : void 0
|
|
3844
|
-
},
|
|
3845
|
-
onContextMenu: preventDefault,
|
|
3846
|
-
children
|
|
3847
|
-
})
|
|
3906
|
+
onContextMenu: preventDefault,
|
|
3907
|
+
children
|
|
3848
3908
|
}), mountContainer);
|
|
3849
3909
|
}
|
|
3850
3910
|
|
|
@@ -4051,13 +4111,15 @@ function MultipleSelect(props) {
|
|
|
4051
4111
|
disabled: option.disabled,
|
|
4052
4112
|
checked: value.includes(option.value),
|
|
4053
4113
|
onSelect: (item) => {
|
|
4054
|
-
|
|
4114
|
+
const newValue = value.includes(item) ? value.filter((v) => v !== item) : [...value, item];
|
|
4115
|
+
onChange(newValue);
|
|
4055
4116
|
}
|
|
4056
4117
|
};
|
|
4057
4118
|
});
|
|
4058
4119
|
}, [options]);
|
|
4059
4120
|
function handleClose(item) {
|
|
4060
|
-
|
|
4121
|
+
const newValue = value.filter((v) => v !== item);
|
|
4122
|
+
onChange(newValue);
|
|
4061
4123
|
}
|
|
4062
4124
|
const displayValue = (0, react.useMemo)(() => {
|
|
4063
4125
|
return options.filter((option) => value.includes(option.value)).map((option, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Badge, {
|
|
@@ -4315,7 +4377,8 @@ const filterLeafNode = (tree, keyList) => {
|
|
|
4315
4377
|
const result = [];
|
|
4316
4378
|
const find = createCacheWithFindNodePathFromTree(tree);
|
|
4317
4379
|
keyList.forEach((key) => {
|
|
4318
|
-
const
|
|
4380
|
+
const path = find.findNodePathFromTreeWithCache(key);
|
|
4381
|
+
const node = findNodeFromPath(tree, path);
|
|
4319
4382
|
if (node) {
|
|
4320
4383
|
var _node$children3;
|
|
4321
4384
|
if (!((_node$children3 = node.children) === null || _node$children3 === void 0 ? void 0 : _node$children3.length)) result.push(node);
|
|
@@ -4469,45 +4532,6 @@ function unmount(container) {
|
|
|
4469
4532
|
}
|
|
4470
4533
|
}
|
|
4471
4534
|
|
|
4472
|
-
//#endregion
|
|
4473
|
-
//#region src/helper/resize-observer.ts
|
|
4474
|
-
/**
|
|
4475
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4476
|
-
*
|
|
4477
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4478
|
-
* you may not use this file except in compliance with the License.
|
|
4479
|
-
* You may obtain a copy of the License at
|
|
4480
|
-
*
|
|
4481
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4482
|
-
*
|
|
4483
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4484
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4485
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4486
|
-
* See the License for the specific language governing permissions and
|
|
4487
|
-
* limitations under the License.
|
|
4488
|
-
*/
|
|
4489
|
-
/**
|
|
4490
|
-
* All elements are observed by a single ResizeObserver is got greater performance than each element observed by separate ResizeObserver
|
|
4491
|
-
* See issue https://github.com/WICG/resize-observer/issues/59#issuecomment-408098151
|
|
4492
|
-
*/
|
|
4493
|
-
const _resizeObserverCallbacks = /* @__PURE__ */ new Set();
|
|
4494
|
-
let _resizeObserver;
|
|
4495
|
-
function resizeObserverCtor(callback) {
|
|
4496
|
-
if (!_resizeObserver) _resizeObserver = new ResizeObserver((...args) => {
|
|
4497
|
-
_resizeObserverCallbacks.forEach((callback) => callback(...args));
|
|
4498
|
-
});
|
|
4499
|
-
return {
|
|
4500
|
-
observe(target, options) {
|
|
4501
|
-
_resizeObserverCallbacks.add(callback);
|
|
4502
|
-
_resizeObserver.observe(target, options);
|
|
4503
|
-
},
|
|
4504
|
-
unobserve(target) {
|
|
4505
|
-
_resizeObserverCallbacks.delete(callback);
|
|
4506
|
-
_resizeObserver.unobserve(target);
|
|
4507
|
-
}
|
|
4508
|
-
};
|
|
4509
|
-
}
|
|
4510
|
-
|
|
4511
4535
|
//#endregion
|
|
4512
4536
|
exports.Accordion = Accordion;
|
|
4513
4537
|
exports.Avatar = Avatar;
|
|
@@ -4520,6 +4544,14 @@ exports.Checkbox = Checkbox;
|
|
|
4520
4544
|
exports.CheckboxGroup = CheckboxGroup;
|
|
4521
4545
|
exports.ColorPicker = ColorPicker;
|
|
4522
4546
|
exports.ColorPresets = ColorPresets;
|
|
4547
|
+
exports.Command = Command;
|
|
4548
|
+
exports.CommandEmpty = CommandEmpty;
|
|
4549
|
+
exports.CommandGroup = CommandGroup;
|
|
4550
|
+
exports.CommandInput = CommandInput;
|
|
4551
|
+
exports.CommandItem = CommandItem;
|
|
4552
|
+
exports.CommandList = CommandList;
|
|
4553
|
+
exports.CommandSeparator = CommandSeparator;
|
|
4554
|
+
exports.CommandShortcut = CommandShortcut;
|
|
4523
4555
|
exports.ConfigContext = ConfigContext;
|
|
4524
4556
|
exports.ConfigProvider = ConfigProvider;
|
|
4525
4557
|
exports.Confirm = Confirm;
|
|
@@ -4582,7 +4614,6 @@ exports.message = message;
|
|
|
4582
4614
|
exports.removeMessage = removeMessage;
|
|
4583
4615
|
exports.render = render;
|
|
4584
4616
|
exports.resetButtonClassName = resetButtonClassName;
|
|
4585
|
-
exports.resizeObserverCtor = resizeObserverCtor;
|
|
4586
4617
|
exports.scrollbarClassName = scrollbarClassName;
|
|
4587
4618
|
exports.selectClassName = selectClassName;
|
|
4588
4619
|
exports.toast = sonner.toast;
|
package/lib/cjs/locale/ar-SA.js
CHANGED
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "cancel·la",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "D'acord"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Cap" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Any",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"dg",
|
|
23
23
|
"dl",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Més colors",
|
|
54
54
|
cancel: "cancel·la",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "D'acord"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Lineal",
|
package/lib/cjs/locale/de-DE.js
CHANGED
package/lib/cjs/locale/es-ES.js
CHANGED
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "annuler",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "OK"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Aucun" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Année",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"Dim",
|
|
23
23
|
"Lun",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Plus de couleurs",
|
|
54
54
|
cancel: "annuler",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "OK"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Linéaire",
|
package/lib/cjs/locale/id-ID.js
CHANGED
package/lib/cjs/locale/it-IT.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "annulla",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "OK"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Nessuno" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Anno",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"Dom",
|
|
23
23
|
"Lun",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Altri Colori",
|
|
54
54
|
cancel: "annulla",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "OK"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Lineare",
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "anuluj",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "OK"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Brak" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Rok",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"nd",
|
|
23
23
|
"pn",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Więcej kolorów",
|
|
54
54
|
cancel: "anuluj",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "OK"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Liniowy",
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "cancelar",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "OK"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Nenhum" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Ano",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"Dom",
|
|
23
23
|
"Seg",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Mais Cores",
|
|
54
54
|
cancel: "cancelar",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "OK"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Linear",
|
package/lib/cjs/locale/ru-RU.js
CHANGED
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -13,11 +13,11 @@ const locale = { design: {
|
|
|
13
13
|
},
|
|
14
14
|
Confirm: {
|
|
15
15
|
cancel: "zrušiť",
|
|
16
|
-
confirm: "
|
|
16
|
+
confirm: "OK"
|
|
17
17
|
},
|
|
18
18
|
CascaderList: { empty: "Žiadne" },
|
|
19
19
|
Calendar: {
|
|
20
|
-
year: "",
|
|
20
|
+
year: "Rok",
|
|
21
21
|
weekDays: [
|
|
22
22
|
"Ne",
|
|
23
23
|
"Po",
|
|
@@ -52,7 +52,7 @@ const locale = { design: {
|
|
|
52
52
|
ColorPicker: {
|
|
53
53
|
more: "Viac farieb",
|
|
54
54
|
cancel: "zrušiť",
|
|
55
|
-
confirm: "
|
|
55
|
+
confirm: "OK"
|
|
56
56
|
},
|
|
57
57
|
GradientColorPicker: {
|
|
58
58
|
linear: "Lineárny",
|