@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/locale/pl-PL.js
CHANGED
|
@@ -12,11 +12,11 @@ const locale = { design: {
|
|
|
12
12
|
},
|
|
13
13
|
Confirm: {
|
|
14
14
|
cancel: "anuluj",
|
|
15
|
-
confirm: "
|
|
15
|
+
confirm: "OK"
|
|
16
16
|
},
|
|
17
17
|
CascaderList: { empty: "Brak" },
|
|
18
18
|
Calendar: {
|
|
19
|
-
year: "",
|
|
19
|
+
year: "Rok",
|
|
20
20
|
weekDays: [
|
|
21
21
|
"nd",
|
|
22
22
|
"pn",
|
|
@@ -51,7 +51,7 @@ const locale = { design: {
|
|
|
51
51
|
ColorPicker: {
|
|
52
52
|
more: "Więcej kolorów",
|
|
53
53
|
cancel: "anuluj",
|
|
54
|
-
confirm: "
|
|
54
|
+
confirm: "OK"
|
|
55
55
|
},
|
|
56
56
|
GradientColorPicker: {
|
|
57
57
|
linear: "Liniowy",
|
package/lib/locale/pt-BR.js
CHANGED
|
@@ -12,11 +12,11 @@ const locale = { design: {
|
|
|
12
12
|
},
|
|
13
13
|
Confirm: {
|
|
14
14
|
cancel: "cancelar",
|
|
15
|
-
confirm: "
|
|
15
|
+
confirm: "OK"
|
|
16
16
|
},
|
|
17
17
|
CascaderList: { empty: "Nenhum" },
|
|
18
18
|
Calendar: {
|
|
19
|
-
year: "",
|
|
19
|
+
year: "Ano",
|
|
20
20
|
weekDays: [
|
|
21
21
|
"Dom",
|
|
22
22
|
"Seg",
|
|
@@ -51,7 +51,7 @@ const locale = { design: {
|
|
|
51
51
|
ColorPicker: {
|
|
52
52
|
more: "Mais Cores",
|
|
53
53
|
cancel: "cancelar",
|
|
54
|
-
confirm: "
|
|
54
|
+
confirm: "OK"
|
|
55
55
|
},
|
|
56
56
|
GradientColorPicker: {
|
|
57
57
|
linear: "Linear",
|
package/lib/locale/ru-RU.js
CHANGED
package/lib/locale/sk-SK.js
CHANGED
|
@@ -12,11 +12,11 @@ const locale = { design: {
|
|
|
12
12
|
},
|
|
13
13
|
Confirm: {
|
|
14
14
|
cancel: "zrušiť",
|
|
15
|
-
confirm: "
|
|
15
|
+
confirm: "OK"
|
|
16
16
|
},
|
|
17
17
|
CascaderList: { empty: "Žiadne" },
|
|
18
18
|
Calendar: {
|
|
19
|
-
year: "",
|
|
19
|
+
year: "Rok",
|
|
20
20
|
weekDays: [
|
|
21
21
|
"Ne",
|
|
22
22
|
"Po",
|
|
@@ -51,7 +51,7 @@ const locale = { design: {
|
|
|
51
51
|
ColorPicker: {
|
|
52
52
|
more: "Viac farieb",
|
|
53
53
|
cancel: "zrušiť",
|
|
54
|
-
confirm: "
|
|
54
|
+
confirm: "OK"
|
|
55
55
|
},
|
|
56
56
|
GradientColorPicker: {
|
|
57
57
|
linear: "Lineárny",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { ComponentProps } from 'react';
|
|
17
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
18
|
+
export declare function Command({ className, ...props }: ComponentProps<typeof CommandPrimitive>): import("react").JSX.Element;
|
|
19
|
+
export declare function CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): import("react").JSX.Element;
|
|
20
|
+
export declare function CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): import("react").JSX.Element;
|
|
21
|
+
export declare function CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): import("react").JSX.Element;
|
|
22
|
+
export declare function CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): import("react").JSX.Element;
|
|
23
|
+
export declare function CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): import("react").JSX.Element;
|
|
24
|
+
export declare function CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): import("react").JSX.Element;
|
|
25
|
+
export declare function CommandShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
@@ -47,12 +47,6 @@ export interface IDialogProps {
|
|
|
47
47
|
x: number;
|
|
48
48
|
y: number;
|
|
49
49
|
};
|
|
50
|
-
/**
|
|
51
|
-
* Whether the dialog should be destroyed on close.
|
|
52
|
-
* @deprecated
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
destroyOnClose?: boolean;
|
|
56
50
|
/**
|
|
57
51
|
* Whether the dialog should preserve its position on destroy.
|
|
58
52
|
* @default false
|
|
@@ -32,5 +32,6 @@ export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
32
32
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
33
33
|
onPressEnter?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
34
34
|
allowEmpty?: boolean;
|
|
35
|
+
allowClear?: boolean;
|
|
35
36
|
}
|
|
36
37
|
export declare const InputNumber: import("react").ForwardRefExoticComponent<IInputNumberProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -26,6 +26,9 @@ export declare const InputNumberDisabled: {
|
|
|
26
26
|
export declare const InputNumberHideControls: {
|
|
27
27
|
render(): import("react").JSX.Element;
|
|
28
28
|
};
|
|
29
|
+
export declare const InputNumberAllowClear: {
|
|
30
|
+
render(): import("react").JSX.Element;
|
|
31
|
+
};
|
|
29
32
|
export declare const InputNumberRtl: {
|
|
30
33
|
render(): import("react").JSX.Element;
|
|
31
34
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type { ICheckboxProps } from './components/checkbox/Checkbox';
|
|
|
34
34
|
export { ColorPicker } from './components/color-picker/ColorPicker';
|
|
35
35
|
export type { IColorPickerProps } from './components/color-picker/ColorPicker';
|
|
36
36
|
export { ColorPresets } from './components/color-picker/ColorPresets';
|
|
37
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from './components/command/Command';
|
|
37
38
|
export { ConfigContext, ConfigProvider } from './components/config-provider/ConfigProvider';
|
|
38
39
|
export type { IConfigProviderProps } from './components/config-provider/ConfigProvider';
|
|
39
40
|
export { Confirm } from './components/confirm/Confirm';
|
|
@@ -95,5 +96,4 @@ export { borderBottomClassName, borderClassName, borderLeftBottomClassName, bord
|
|
|
95
96
|
export { clsx } from './helper/clsx';
|
|
96
97
|
export { isBrowser } from './helper/is-browser';
|
|
97
98
|
export { render, unmount } from './helper/react-dom';
|
|
98
|
-
export { resizeObserverCtor } from './helper/resize-observer';
|
|
99
99
|
export { cva } from 'class-variance-authority';
|