@univerjs/design 0.1.4 → 0.1.5

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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/index.js +12 -11
  3. package/lib/es/index.js +5319 -5189
  4. package/lib/types/components/avatar/Avatar.d.ts +2 -16
  5. package/lib/types/components/avatar/Avatar.stories.d.ts +3 -17
  6. package/lib/types/components/button/Button.d.ts +2 -16
  7. package/lib/types/components/button/Button.stories.d.ts +3 -17
  8. package/lib/types/components/cascader-list/CascaderList.d.ts +2 -16
  9. package/lib/types/components/cascader-list/CascaderList.stories.d.ts +3 -17
  10. package/lib/types/components/checkbox/Checkbox.d.ts +2 -16
  11. package/lib/types/components/checkbox/Checkbox.stories.d.ts +3 -17
  12. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +2 -16
  13. package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +3 -17
  14. package/lib/types/components/color-picker/ColorPicker.d.ts +2 -16
  15. package/lib/types/components/color-picker/ColorPicker.stories.d.ts +3 -17
  16. package/lib/types/components/config-provider/ConfigProvider.d.ts +3 -17
  17. package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +3 -17
  18. package/lib/types/components/confirm/Confirm.d.ts +2 -16
  19. package/lib/types/components/confirm/Confirm.stories.d.ts +3 -17
  20. package/lib/types/components/container/Container.d.ts +2 -16
  21. package/lib/types/components/container/Container.stories.d.ts +3 -17
  22. package/lib/types/components/date-picker/DatePicker.d.ts +3 -17
  23. package/lib/types/components/date-picker/DatePicker.stories.d.ts +3 -17
  24. package/lib/types/components/date-range-picker/DateRangePicker.d.ts +4 -18
  25. package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +3 -17
  26. package/lib/types/components/design-token/Palette.d.ts +2 -16
  27. package/lib/types/components/design-token/Palette.stories.d.ts +2 -16
  28. package/lib/types/components/dialog/Dialog.d.ts +2 -16
  29. package/lib/types/components/dialog/Dialog.stories.d.ts +3 -17
  30. package/lib/types/components/dropdown/Dropdown.d.ts +9 -18
  31. package/lib/types/components/dropdown/Dropdown.stories.d.ts +3 -17
  32. package/lib/types/components/form-layout/FormLayout.d.ts +2 -17
  33. package/lib/types/components/form-layout/FormLayout.stories.d.ts +3 -17
  34. package/lib/types/components/icon/Icon.stories.d.ts +3 -17
  35. package/lib/types/components/input/Input.d.ts +3 -17
  36. package/lib/types/components/input/Input.stories.d.ts +3 -17
  37. package/lib/types/components/input/InputWithSlot.d.ts +3 -17
  38. package/lib/types/components/input/InputWithSlot.stories.d.ts +3 -17
  39. package/lib/types/components/input-number/InputNumber.d.ts +2 -16
  40. package/lib/types/components/input-number/InputNumber.stories.d.ts +3 -17
  41. package/lib/types/components/menu/Menu.d.ts +3 -17
  42. package/lib/types/components/message/Message.stories.d.ts +3 -17
  43. package/lib/types/components/pager/Pager.d.ts +2 -16
  44. package/lib/types/components/pager/Pager.stories.d.ts +3 -17
  45. package/lib/types/components/popup/Popup.d.ts +2 -16
  46. package/lib/types/components/popup/Popup.stories.d.ts +3 -17
  47. package/lib/types/components/popup/RectPopup.d.ts +2 -16
  48. package/lib/types/components/radio/Radio.d.ts +2 -16
  49. package/lib/types/components/radio/Radio.stories.d.ts +3 -17
  50. package/lib/types/components/radio-group/RadioGroup.d.ts +2 -16
  51. package/lib/types/components/radio-group/RadioGroup.stories.d.ts +3 -17
  52. package/lib/types/components/scrollbar/Scrollbar.d.ts +2 -16
  53. package/lib/types/components/scrollbar/Scrollbar.stories.d.ts +2 -16
  54. package/lib/types/components/segmented/Segmented.d.ts +3 -17
  55. package/lib/types/components/segmented/Segmented.stories.d.ts +3 -17
  56. package/lib/types/components/select/Select.d.ts +2 -16
  57. package/lib/types/components/select/Select.stories.d.ts +3 -17
  58. package/lib/types/components/select-list/SelectList.d.ts +2 -16
  59. package/lib/types/components/select-list/SelectList.stories.d.ts +3 -17
  60. package/lib/types/components/slider/Slider.d.ts +2 -16
  61. package/lib/types/components/slider/Slider.stories.d.ts +3 -17
  62. package/lib/types/components/tooltip/Tooltip.d.ts +3 -17
  63. package/lib/types/components/tooltip/Tooltip.stories.d.ts +3 -17
  64. package/lib/types/components/tooltip/placements.d.ts +2 -16
  65. package/lib/types/components/tree/Tree.d.ts +2 -16
  66. package/lib/types/components/tree/Tree.stories.d.ts +3 -17
  67. package/lib/types/locale/en-US.d.ts +2 -16
  68. package/lib/types/locale/interface.d.ts +2 -16
  69. package/lib/types/locale/zh-CN.d.ts +2 -16
  70. package/lib/umd/index.js +12 -11
  71. package/package.json +5 -5
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  type Shape = 'circle' | 'square';
18
4
  type AvatarSize = number | 'middle' | 'small';
19
5
  type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
@@ -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 { Avatar } from './Avatar';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Avatar>;
20
6
  export default meta;
21
7
  export declare const AvatarShape: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export type ButtonType = 'primary' | 'default' | 'text' | 'link';
18
4
  export type ButtonSize = 'small' | 'middle' | 'large';
19
5
  export interface IButtonProps {
@@ -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 { Button } from './Button';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Button>;
20
6
  export default meta;
21
7
  export declare const ButtonType: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  interface IOption {
18
4
  label: string;
19
5
  value: string;
@@ -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 { CascaderList } from './CascaderList';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof CascaderList>;
20
6
  export default meta;
21
7
  export declare const Playground: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface ICheckboxProps {
18
4
  children?: React.ReactNode;
19
5
  /**
@@ -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 { Checkbox } from './Checkbox';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Checkbox>;
20
6
  export default meta;
21
7
  export declare const CheckboxBasic: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface ICheckboxGroupProps {
18
4
  children: React.ReactNode[];
19
5
  /**
@@ -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 { CheckboxGroup } from './CheckboxGroup';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof CheckboxGroup>;
20
6
  export default meta;
21
7
  export declare const Playground: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface IColorPickerProps {
18
4
  color?: string;
19
5
  onClick?: (color: string, e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
@@ -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 { ColorPicker } from './ColorPicker';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof ColorPicker>;
20
6
  export default meta;
21
7
  export declare const Playground: {
@@ -1,20 +1,6 @@
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 React from 'react';
17
- import type { ILocale } from '../../locale';
1
+ import { ILocale } from '../../locale';
2
+ import { default as React } from 'react';
3
+
18
4
  export interface IConfigProviderProps {
19
5
  children: React.ReactNode;
20
6
  locale: ILocale;
@@ -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 { ConfigProvider } from './ConfigProvider';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof ConfigProvider>;
20
6
  export default meta;
21
7
  export declare const Playground: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface IConfirmProps {
18
4
  children: React.ReactNode;
19
5
  /**
@@ -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 { Confirm } from './Confirm';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Confirm>;
20
6
  export default meta;
21
7
  export declare const ConfirmBasic: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface IContainerProps {
18
4
  children?: React.ReactNode;
19
5
  /** Semantic DOM class */
@@ -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 { Container } from './Container';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Container>;
20
6
  export default meta;
21
7
  export declare const Playground: {
@@ -1,20 +1,6 @@
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 React from 'react';
17
- import type { Dayjs } from 'dayjs';
1
+ import { Dayjs } from 'dayjs';
2
+ import { default as React } from 'react';
3
+
18
4
  export interface IDatePickerProps {
19
5
  /**
20
6
  * The value of the date picker.
@@ -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 { DatePicker } from './DatePicker';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof DatePicker>;
20
6
  export default meta;
21
7
  export declare const DatePickerBasic: {
@@ -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 React from 'react';
17
- import type { Dayjs } from 'dayjs';
18
- import type { NoUndefinedRangeValueType } from 'rc-picker/lib/PickerInput/RangePicker';
1
+ import { NoUndefinedRangeValueType } from 'rc-picker/lib/PickerInput/RangePicker';
2
+ import { Dayjs } from 'dayjs';
3
+ import { default as React } from 'react';
4
+
19
5
  export interface IDateRangePickerProps {
20
6
  /**
21
7
  * The value of the date picker.
@@ -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 { DateRangePicker } from './DateRangePicker';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof DateRangePicker>;
20
6
  export default meta;
21
7
  export declare const DateRangePickerBasic: {
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  interface IProps {
18
4
  theme: Record<string, string>;
19
5
  }
@@ -1,19 +1,5 @@
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, StoryObj } from '@storybook/react';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+
17
3
  declare const meta: Meta;
18
4
  export default meta;
19
5
  export declare const Playground: StoryObj;
@@ -1,19 +1,5 @@
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 React from 'react';
1
+ import { default as React } from 'react';
2
+
17
3
  export interface IDialogProps {
18
4
  children: React.ReactNode;
19
5
  /**
@@ -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 { Dialog } from './Dialog';
2
+ import { default as React } from 'react';
3
+ import { Meta } from '@storybook/react';
4
+
19
5
  declare const meta: Meta<typeof Dialog>;
20
6
  export default meta;
21
7
  export declare const DialogBasic: {