@univerjs/design 0.25.1 → 1.0.0-alpha.1
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 +757 -603
- package/lib/cjs/locale/ar-SA.js +9 -2
- package/lib/cjs/locale/ca-ES.js +9 -2
- package/lib/cjs/locale/de-DE.js +9 -2
- package/lib/cjs/locale/en-US.js +9 -2
- package/lib/cjs/locale/es-ES.js +9 -2
- package/lib/cjs/locale/fa-IR.js +9 -2
- package/lib/cjs/locale/fr-FR.js +9 -2
- package/lib/cjs/locale/id-ID.js +9 -2
- package/lib/cjs/locale/it-IT.js +9 -2
- package/lib/cjs/locale/ja-JP.js +9 -2
- package/lib/cjs/locale/ko-KR.js +9 -2
- package/lib/cjs/locale/pl-PL.js +9 -2
- package/lib/cjs/locale/pt-BR.js +9 -2
- package/lib/cjs/locale/ru-RU.js +9 -2
- package/lib/cjs/locale/sk-SK.js +9 -2
- package/lib/cjs/locale/vi-VN.js +9 -2
- package/lib/cjs/locale/zh-CN.js +9 -2
- package/lib/cjs/locale/zh-HK.js +9 -2
- package/lib/cjs/locale/zh-TW.js +9 -2
- package/lib/es/index.js +764 -618
- package/lib/es/locale/ar-SA.js +9 -2
- package/lib/es/locale/ca-ES.js +9 -2
- package/lib/es/locale/de-DE.js +9 -2
- package/lib/es/locale/en-US.js +9 -2
- package/lib/es/locale/es-ES.js +9 -2
- package/lib/es/locale/fa-IR.js +9 -2
- package/lib/es/locale/fr-FR.js +9 -2
- package/lib/es/locale/id-ID.js +9 -2
- package/lib/es/locale/it-IT.js +9 -2
- package/lib/es/locale/ja-JP.js +9 -2
- package/lib/es/locale/ko-KR.js +9 -2
- package/lib/es/locale/pl-PL.js +9 -2
- package/lib/es/locale/pt-BR.js +9 -2
- package/lib/es/locale/ru-RU.js +9 -2
- package/lib/es/locale/sk-SK.js +9 -2
- package/lib/es/locale/vi-VN.js +9 -2
- package/lib/es/locale/zh-CN.js +9 -2
- package/lib/es/locale/zh-HK.js +9 -2
- package/lib/es/locale/zh-TW.js +9 -2
- package/lib/index.css +95 -8
- package/lib/index.js +764 -618
- package/lib/locale/ar-SA.js +9 -2
- package/lib/locale/ca-ES.js +9 -2
- package/lib/locale/de-DE.js +9 -2
- package/lib/locale/en-US.js +9 -2
- package/lib/locale/es-ES.js +9 -2
- package/lib/locale/fa-IR.js +9 -2
- package/lib/locale/fr-FR.js +9 -2
- package/lib/locale/id-ID.js +9 -2
- package/lib/locale/it-IT.js +9 -2
- package/lib/locale/ja-JP.js +9 -2
- package/lib/locale/ko-KR.js +9 -2
- package/lib/locale/pl-PL.js +9 -2
- package/lib/locale/pt-BR.js +9 -2
- package/lib/locale/ru-RU.js +9 -2
- package/lib/locale/sk-SK.js +9 -2
- package/lib/locale/vi-VN.js +9 -2
- package/lib/locale/zh-CN.js +9 -2
- package/lib/locale/zh-HK.js +9 -2
- package/lib/locale/zh-TW.js +9 -2
- package/lib/types/components/accordion/Accordion.d.ts +1 -1
- package/lib/types/components/accordion/Accordion.stories.d.ts +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +1 -1
- package/lib/types/components/avatar/Avatar.stories.d.ts +3 -3
- package/lib/types/components/badge/Badge.d.ts +1 -1
- package/lib/types/components/badge/Badge.stories.d.ts +1 -1
- package/lib/types/components/button/Button.stories.d.ts +3 -3
- package/lib/types/components/button/ButtonGroup.d.ts +1 -1
- package/lib/types/components/button/ButtonGroup.stories.d.ts +1 -1
- package/lib/types/components/calendar/Calendar.d.ts +1 -1
- package/lib/types/components/calendar/Calendar.stories.d.ts +1 -1
- package/lib/types/components/cascader-list/CascaderList.d.ts +1 -1
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +1 -1
- package/lib/types/components/checkbox/Checkbox.d.ts +1 -1
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +3 -3
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +2 -2
- package/lib/types/components/color-picker/AlphaSlider.d.ts +1 -1
- package/lib/types/components/color-picker/ColorInput.d.ts +1 -1
- package/lib/types/components/color-picker/ColorPicker.d.ts +1 -1
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +2 -2
- package/lib/types/components/color-picker/ColorPresets.d.ts +1 -1
- package/lib/types/components/color-picker/ColorSpectrum.d.ts +1 -1
- package/lib/types/components/color-picker/HueSlider.d.ts +1 -1
- package/lib/types/components/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +1 -1
- package/lib/types/components/confirm/Confirm.d.ts +1 -1
- package/lib/types/components/confirm/Confirm.stories.d.ts +1 -1
- package/lib/types/components/date-picker/DatePicker.d.ts +1 -1
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +1 -1
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +1 -1
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +1 -1
- package/lib/types/components/dialog/Dialog.d.ts +1 -1
- package/lib/types/components/dialog/Dialog.stories.d.ts +2 -2
- package/lib/types/components/dialog/DialogPrimitive.d.ts +2 -2
- package/lib/types/components/draggable-list/DraggableList.d.ts +1 -1
- package/lib/types/components/draggable-list/DraggableList.stories.d.ts +1 -1
- package/lib/types/components/dropdown/Dropdown.d.ts +1 -1
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +1 -1
- package/lib/types/components/dropdown/PopoverPrimitive.d.ts +4 -4
- package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +8 -2
- package/lib/types/components/dropdown-menu/DropdownMenuPrimitive.d.ts +15 -15
- package/lib/types/components/form-layout/FormLayout.d.ts +2 -2
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +1 -1
- package/lib/types/components/gallery/Gallery.stories.d.ts +1 -1
- package/lib/types/components/gradient-color-picker/GradientColorPicker.d.ts +3 -1
- package/lib/types/components/gradient-color-picker/GradientColorPicker.stories.d.ts +1 -1
- package/lib/types/components/hover-card/HoverCard.d.ts +1 -1
- package/lib/types/components/hover-card/HoverCard.stories.d.ts +1 -1
- package/lib/types/components/input/Input.stories.d.ts +5 -5
- package/lib/types/components/input-number/InputNumber.stories.d.ts +4 -4
- package/lib/types/components/kbd/Kbd.d.ts +1 -1
- package/lib/types/components/kbd/Kbd.stories.d.ts +1 -1
- package/lib/types/components/message/Message.d.ts +1 -1
- package/lib/types/components/message/Message.stories.d.ts +4 -4
- package/lib/types/components/pager/Pager.d.ts +1 -1
- package/lib/types/components/pager/Pager.stories.d.ts +1 -1
- package/lib/types/components/panel/Panel.d.ts +3 -3
- package/lib/types/components/panel/Panel.stories.d.ts +1 -1
- package/lib/types/components/popup/Popup.stories.d.ts +1 -1
- package/lib/types/components/radio/Radio.d.ts +1 -1
- package/lib/types/components/radio/Radio.stories.d.ts +2 -2
- package/lib/types/components/radio-group/RadioGroup.d.ts +1 -1
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +2 -2
- package/lib/types/components/segmented/Segmented.d.ts +1 -1
- package/lib/types/components/segmented/Segmented.stories.d.ts +1 -1
- package/lib/types/components/select/MultipleSelect.d.ts +1 -1
- package/lib/types/components/select/Select.d.ts +1 -1
- package/lib/types/components/select/Select.stories.d.ts +5 -5
- package/lib/types/components/select-list/SelectList.d.ts +1 -1
- package/lib/types/components/select-list/SelectList.stories.d.ts +1 -1
- package/lib/types/components/separator/Separator.d.ts +1 -1
- package/lib/types/components/switch/Switch.d.ts +1 -1
- package/lib/types/components/time-input/TimeInput.d.ts +1 -1
- package/lib/types/components/toaster/Toaster.d.ts +1 -1
- package/lib/types/components/tooltip/Tooltip.d.ts +1 -1
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +1 -1
- package/lib/types/components/tree/Tree.d.ts +1 -1
- package/lib/types/components/tree/Tree.stories.d.ts +1 -1
- package/lib/types/components/virtual-list/VirtualList.d.ts +2 -1
- package/lib/types/helper/class-utilities.d.ts +1 -0
- package/lib/types/index.d.ts +71 -35
- package/lib/types/locale/en-US.d.ts +7 -0
- package/lib/umd/index.js +15 -81
- 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 +11 -11
|
@@ -18,5 +18,5 @@ interface ITimeInputProps {
|
|
|
18
18
|
value?: Date;
|
|
19
19
|
onValueChange?: (value: Date) => void;
|
|
20
20
|
}
|
|
21
|
-
export declare function TimeInput(props: ITimeInputProps): import("react
|
|
21
|
+
export declare function TimeInput(props: ITimeInputProps): import("react").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
import type { ComponentProps } from 'react';
|
|
17
17
|
import { Toaster as Sonner, toast } from 'sonner';
|
|
18
18
|
export type IToasterProps = ComponentProps<typeof Sonner>;
|
|
19
|
-
declare function Toaster({ visibleToasts, ...props }: IToasterProps): import("react
|
|
19
|
+
declare function Toaster({ visibleToasts, ...props }: IToasterProps): import("react").JSX.Element;
|
|
20
20
|
export { toast, Toaster };
|
|
@@ -53,4 +53,4 @@ export interface ITooltipProps {
|
|
|
53
53
|
*/
|
|
54
54
|
onVisibleChange?: (visible: boolean) => void;
|
|
55
55
|
}
|
|
56
|
-
export declare function Tooltip(props: ITooltipProps): import("react
|
|
56
|
+
export declare function Tooltip(props: ITooltipProps): import("react").JSX.Element;
|
|
@@ -20,8 +20,9 @@ export interface IVirtualListProps<T extends object> {
|
|
|
20
20
|
children: (item: T, index: number) => ReactNode;
|
|
21
21
|
height?: number;
|
|
22
22
|
itemHeight?: number;
|
|
23
|
+
initialScrollIndex?: number;
|
|
23
24
|
overscan?: number;
|
|
24
25
|
className?: string;
|
|
25
26
|
style?: CSSProperties;
|
|
26
27
|
}
|
|
27
|
-
export declare function VirtualList<T extends object>(props: IVirtualListProps<T>): import("react
|
|
28
|
+
export declare function VirtualList<T extends object>(props: IVirtualListProps<T>): import("react").JSX.Element;
|
|
@@ -23,3 +23,4 @@ export declare const borderBottomClassName: string;
|
|
|
23
23
|
export declare const borderRightClassName: string;
|
|
24
24
|
export declare const divideYClassName = "univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-y univer-divide-x-0 univer-divide-solid";
|
|
25
25
|
export declare const divideXClassName = "univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-x univer-divide-y-0 univer-divide-solid";
|
|
26
|
+
export declare const resetButtonClassName = "univer-m-0 univer-flex univer-appearance-none univer-items-center univer-justify-center univer-border-0 univer-bg-transparent univer-p-0 univer-leading-none univer-outline-none univer-cursor-pointer";
|
package/lib/types/index.d.ts
CHANGED
|
@@ -14,50 +14,86 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import './global.css';
|
|
17
|
-
export { Accordion
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
17
|
+
export { Accordion } from './components/accordion/Accordion';
|
|
18
|
+
export type { IAccordionProps } from './components/accordion/Accordion';
|
|
19
|
+
export { Avatar } from './components/avatar/Avatar';
|
|
20
|
+
export type { IAvatarProps } from './components/avatar/Avatar';
|
|
21
|
+
export { Badge } from './components/badge/Badge';
|
|
22
|
+
export type { IBadgeProps } from './components/badge/Badge';
|
|
23
|
+
export { Button } from './components/button/Button';
|
|
24
|
+
export type { IButtonProps } from './components/button/Button';
|
|
25
|
+
export { ButtonGroup } from './components/button/ButtonGroup';
|
|
26
|
+
export type { IButtonGroupProps } from './components/button/ButtonGroup';
|
|
22
27
|
export { Calendar } from './components/calendar/Calendar';
|
|
23
|
-
export { CascaderList
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
28
|
+
export { CascaderList } from './components/cascader-list/CascaderList';
|
|
29
|
+
export type { ICascaderListProps, ICascaderOption } from './components/cascader-list/CascaderList';
|
|
30
|
+
export { CheckboxGroup } from './components/checkbox-group/CheckboxGroup';
|
|
31
|
+
export type { ICheckboxGroupProps } from './components/checkbox-group/CheckboxGroup';
|
|
32
|
+
export { Checkbox } from './components/checkbox/Checkbox';
|
|
33
|
+
export type { ICheckboxProps } from './components/checkbox/Checkbox';
|
|
34
|
+
export { ColorPicker } from './components/color-picker/ColorPicker';
|
|
35
|
+
export type { IColorPickerProps } from './components/color-picker/ColorPicker';
|
|
36
|
+
export { ColorPresets } from './components/color-picker/ColorPresets';
|
|
37
|
+
export { ConfigContext, ConfigProvider } from './components/config-provider/ConfigProvider';
|
|
38
|
+
export type { IConfigProviderProps } from './components/config-provider/ConfigProvider';
|
|
39
|
+
export { Confirm } from './components/confirm/Confirm';
|
|
40
|
+
export type { IConfirmProps } from './components/confirm/Confirm';
|
|
29
41
|
export { DatePicker } from './components/date-picker/DatePicker';
|
|
30
42
|
export { DateRangePicker } from './components/date-range-picker';
|
|
31
|
-
export { Dialog
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export
|
|
45
|
-
export {
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
43
|
+
export { Dialog } from './components/dialog/Dialog';
|
|
44
|
+
export type { IDialogProps } from './components/dialog/Dialog';
|
|
45
|
+
export { DraggableList } from './components/draggable-list';
|
|
46
|
+
export type { IDraggableListProps } from './components/draggable-list';
|
|
47
|
+
export { DropdownMenu } from './components/dropdown-menu/DropdownMenu';
|
|
48
|
+
export type { IDropdownMenuProps } from './components/dropdown-menu/DropdownMenu';
|
|
49
|
+
export { Dropdown } from './components/dropdown/Dropdown';
|
|
50
|
+
export type { IDropdownProps } from './components/dropdown/Dropdown';
|
|
51
|
+
export { FormDualColumnLayout, FormLayout } from './components/form-layout';
|
|
52
|
+
export type { IFormDualColumnLayoutProps, IFormLayoutProps } from './components/form-layout';
|
|
53
|
+
export { Gallery } from './components/gallery/Gallery';
|
|
54
|
+
export type { IGalleryProps } from './components/gallery/Gallery';
|
|
55
|
+
export { GradientColorPicker } from './components/gradient-color-picker/GradientColorPicker';
|
|
56
|
+
export type { GradientType, IGradientColorPickerProps, IGradientStop, IGradientValue, } from './components/gradient-color-picker/GradientColorPicker';
|
|
57
|
+
export { HoverCard } from './components/hover-card/HoverCard';
|
|
58
|
+
export type { IHoverCardProps } from './components/hover-card/HoverCard';
|
|
59
|
+
export { InputNumber } from './components/input-number/InputNumber';
|
|
60
|
+
export type { IInputNumberProps } from './components/input-number/InputNumber';
|
|
61
|
+
export { Input } from './components/input/Input';
|
|
62
|
+
export type { IInputProps } from './components/input/Input';
|
|
63
|
+
export { KBD } from './components/kbd/Kbd';
|
|
64
|
+
export type { IKBDProps } from './components/kbd/Kbd';
|
|
65
|
+
export { message, Messager, MessageType, removeMessage } from './components/message/Message';
|
|
66
|
+
export type { IMessageProps } from './components/message/Message';
|
|
67
|
+
export { Pager } from './components/pager/Pager';
|
|
68
|
+
export type { IPagerProps } from './components/pager/Pager';
|
|
69
|
+
export { Panel, PanelField, PanelSection } from './components/panel/Panel';
|
|
70
|
+
export type { IPanelFieldProps, IPanelProps, IPanelSectionProps } from './components/panel/Panel';
|
|
71
|
+
export { Popup } from './components/popup';
|
|
72
|
+
export type { IPopupProps } from './components/popup';
|
|
73
|
+
export { RadioGroup } from './components/radio-group/RadioGroup';
|
|
74
|
+
export type { IRadioGroupProps } from './components/radio-group/RadioGroup';
|
|
75
|
+
export { Radio } from './components/radio/Radio';
|
|
76
|
+
export type { IRadioProps } from './components/radio/Radio';
|
|
48
77
|
export { Segmented } from './components/segmented/Segmented';
|
|
49
|
-
export {
|
|
50
|
-
export
|
|
51
|
-
export {
|
|
78
|
+
export { SelectList } from './components/select-list/SelectList';
|
|
79
|
+
export type { ISelectListProps } from './components/select-list/SelectList';
|
|
80
|
+
export { MultipleSelect } from './components/select/MultipleSelect';
|
|
81
|
+
export type { IMultipleSelectProps } from './components/select/MultipleSelect';
|
|
82
|
+
export { Select } from './components/select/Select';
|
|
83
|
+
export type { ISelectProps } from './components/select/Select';
|
|
52
84
|
export { Separator } from './components/separator/Separator';
|
|
53
85
|
export { Switch } from './components/switch/Switch';
|
|
54
86
|
export { Textarea } from './components/textarea/Textarea';
|
|
55
87
|
export { TimeInput } from './components/time-input/TimeInput';
|
|
56
|
-
export {
|
|
57
|
-
export
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
88
|
+
export { toast, Toaster } from './components/toaster/Toaster';
|
|
89
|
+
export type { IToasterProps } from './components/toaster/Toaster';
|
|
90
|
+
export { Tooltip } from './components/tooltip/Tooltip';
|
|
91
|
+
export type { ITooltipProps } from './components/tooltip/Tooltip';
|
|
92
|
+
export { filterLeafNode, findNodePathFromTree, findSubTreeFromPath, mergeTreeSelected, Tree, TreeSelectionMode, } from './components/tree';
|
|
93
|
+
export type { ITreeNodeProps, ITreeProps } from './components/tree';
|
|
94
|
+
export { borderBottomClassName, borderClassName, borderLeftBottomClassName, borderLeftClassName, borderRightClassName, borderTopClassName, divideXClassName, divideYClassName, resetButtonClassName, scrollbarClassName, } from './helper/class-utilities';
|
|
60
95
|
export { clsx } from './helper/clsx';
|
|
61
96
|
export { isBrowser } from './helper/is-browser';
|
|
62
97
|
export { render, unmount } from './helper/react-dom';
|
|
63
98
|
export { resizeObserverCtor } from './helper/resize-observer';
|
|
99
|
+
export { cva } from 'class-variance-authority';
|
|
@@ -26,6 +26,12 @@ declare const locale: {
|
|
|
26
26
|
year: string;
|
|
27
27
|
weekDays: string[];
|
|
28
28
|
months: string[];
|
|
29
|
+
ariaLabels: {
|
|
30
|
+
previousMonth: string;
|
|
31
|
+
nextMonth: string;
|
|
32
|
+
selectYear: string;
|
|
33
|
+
selectMonth: string;
|
|
34
|
+
};
|
|
29
35
|
};
|
|
30
36
|
Select: {
|
|
31
37
|
empty: string;
|
|
@@ -44,6 +50,7 @@ declare const locale: {
|
|
|
44
50
|
angle: string;
|
|
45
51
|
flip: string;
|
|
46
52
|
delete: string;
|
|
53
|
+
transparency: string;
|
|
47
54
|
};
|
|
48
55
|
};
|
|
49
56
|
};
|