@univerjs/design 0.1.4 → 0.1.6
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/README.md +16 -1
- package/lib/cjs/index.js +11 -11
- package/lib/es/index.js +3464 -3428
- package/lib/index.css +1 -1
- package/lib/types/components/avatar/Avatar.d.ts +2 -16
- package/lib/types/components/avatar/Avatar.stories.d.ts +3 -17
- package/lib/types/components/button/Button.d.ts +2 -16
- package/lib/types/components/button/Button.stories.d.ts +3 -17
- package/lib/types/components/cascader-list/CascaderList.d.ts +2 -16
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +3 -17
- package/lib/types/components/checkbox/Checkbox.d.ts +2 -16
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +3 -17
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +2 -16
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +3 -17
- package/lib/types/components/color-picker/ColorPicker.d.ts +2 -16
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +3 -17
- package/lib/types/components/config-provider/ConfigProvider.d.ts +3 -17
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +3 -17
- package/lib/types/components/confirm/Confirm.d.ts +2 -16
- package/lib/types/components/confirm/Confirm.stories.d.ts +3 -17
- package/lib/types/components/container/Container.d.ts +2 -16
- package/lib/types/components/container/Container.stories.d.ts +3 -17
- package/lib/types/components/date-picker/DatePicker.d.ts +5 -18
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +3 -17
- package/lib/types/components/date-picker/Panel.d.ts +6 -0
- package/lib/types/components/date-picker/index.d.ts +2 -0
- package/lib/types/components/date-range-picker/DateRangePicker.d.ts +4 -18
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +3 -17
- package/lib/types/components/design-token/Palette.d.ts +2 -16
- package/lib/types/components/design-token/Palette.stories.d.ts +2 -16
- package/lib/types/components/dialog/Dialog.d.ts +2 -16
- package/lib/types/components/dialog/Dialog.stories.d.ts +3 -17
- package/lib/types/components/dropdown/Dropdown.d.ts +9 -18
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +3 -17
- package/lib/types/components/form-layout/FormLayout.d.ts +3 -17
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +3 -17
- package/lib/types/components/icon/Icon.stories.d.ts +3 -17
- package/lib/types/components/input/Input.d.ts +4 -18
- package/lib/types/components/input/Input.stories.d.ts +3 -17
- package/lib/types/components/input/InputWithSlot.d.ts +3 -17
- package/lib/types/components/input/InputWithSlot.stories.d.ts +3 -17
- package/lib/types/components/input-number/InputNumber.d.ts +2 -16
- package/lib/types/components/input-number/InputNumber.stories.d.ts +3 -17
- package/lib/types/components/menu/Menu.d.ts +3 -17
- package/lib/types/components/message/Message.stories.d.ts +3 -17
- package/lib/types/components/pager/Pager.d.ts +2 -16
- package/lib/types/components/pager/Pager.stories.d.ts +3 -17
- package/lib/types/components/popup/Popup.d.ts +2 -16
- package/lib/types/components/popup/Popup.stories.d.ts +3 -17
- package/lib/types/components/popup/RectPopup.d.ts +9 -16
- package/lib/types/components/radio/Radio.d.ts +2 -16
- package/lib/types/components/radio/Radio.stories.d.ts +3 -17
- package/lib/types/components/radio-group/RadioGroup.d.ts +2 -16
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +3 -17
- package/lib/types/components/scrollbar/Scrollbar.d.ts +2 -16
- package/lib/types/components/scrollbar/Scrollbar.stories.d.ts +2 -16
- package/lib/types/components/segmented/Segmented.d.ts +3 -17
- package/lib/types/components/segmented/Segmented.stories.d.ts +3 -17
- package/lib/types/components/select/Select.d.ts +8 -16
- package/lib/types/components/select/Select.stories.d.ts +3 -17
- package/lib/types/components/select-list/SelectList.d.ts +5 -18
- package/lib/types/components/select-list/SelectList.stories.d.ts +3 -17
- package/lib/types/components/slider/Slider.d.ts +2 -16
- package/lib/types/components/slider/Slider.stories.d.ts +3 -17
- package/lib/types/components/textarea/Textarea.d.ts +49 -0
- package/lib/types/components/textarea/Textarea.stories.d.ts +12 -0
- package/lib/types/components/textarea/index.d.ts +16 -0
- package/lib/types/components/tooltip/Tooltip.d.ts +3 -17
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +3 -17
- package/lib/types/components/tooltip/placements.d.ts +2 -16
- package/lib/types/components/tree/Tree.d.ts +2 -16
- package/lib/types/components/tree/Tree.stories.d.ts +3 -17
- package/lib/types/index.d.ts +2 -0
- package/lib/types/locale/en-US.d.ts +2 -16
- package/lib/types/locale/interface.d.ts +2 -16
- package/lib/types/locale/zh-CN.d.ts +2 -16
- package/lib/umd/index.js +11 -11
- package/package.json +10 -9
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
17
3
|
export declare enum TreeSelectionMode {
|
|
18
4
|
ONLY_LEAF_NODE = 0,
|
|
19
5
|
ALL = 1
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Inc.
|
|
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 { Meta } from '@storybook/react';
|
|
17
|
-
import React from 'react';
|
|
18
1
|
import { Tree } from './Tree';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { Meta } from '@storybook/react';
|
|
4
|
+
|
|
19
5
|
declare const meta: Meta<typeof Tree>;
|
|
20
6
|
export default meta;
|
|
21
7
|
export declare const TreeBasic: {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export { ConfigContext, ConfigProvider, type IConfigProviderProps } from './comp
|
|
|
23
23
|
export { Confirm, type IConfirmProps } from './components/confirm';
|
|
24
24
|
export { Container, type IContainerProps } from './components/container';
|
|
25
25
|
export { DatePicker, type IDatePickerProps } from './components/date-picker';
|
|
26
|
+
export { DatePanel } from './components/date-picker';
|
|
27
|
+
export type { DatePanelProps } from './components/date-picker';
|
|
26
28
|
export { Dialog, type IDialogProps } from './components/dialog';
|
|
27
29
|
export { Dropdown, type IDropdownProps } from './components/dropdown';
|
|
28
30
|
export { FormDualColumnLayout, type IFormDualColumnLayoutProps, FormLayout, type IFormLayoutProps } from './components/form-layout';
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ILocale } from './interface';
|
|
1
|
+
import { ILocale } from './interface';
|
|
2
|
+
|
|
17
3
|
declare const locale: ILocale;
|
|
18
4
|
export default locale;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 PickerZhCN from 'rc-picker/lib/locale/zh_CN';
|
|
1
|
+
import { default as PickerZhCN } from 'rc-picker/lib/locale/zh_CN';
|
|
2
|
+
|
|
17
3
|
export interface ILocale {
|
|
18
4
|
design: {
|
|
19
5
|
Confirm: Record<string, any>;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ILocale } from './interface';
|
|
1
|
+
import { ILocale } from './interface';
|
|
2
|
+
|
|
17
3
|
declare const locale: ILocale;
|
|
18
4
|
export default locale;
|