@univerjs/design 0.17.0 → 0.18.0

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 (140) hide show
  1. package/lib/cjs/index.js +322 -88
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +329 -15659
  15. package/lib/es/locale/ca-ES.js +1 -50
  16. package/lib/es/locale/en-US.js +1 -50
  17. package/lib/es/locale/es-ES.js +1 -50
  18. package/lib/es/locale/fa-IR.js +1 -50
  19. package/lib/es/locale/fr-FR.js +1 -50
  20. package/lib/es/locale/ja-JP.js +1 -50
  21. package/lib/es/locale/ko-KR.js +1 -50
  22. package/lib/es/locale/ru-RU.js +1 -50
  23. package/lib/es/locale/sk-SK.js +1 -50
  24. package/lib/es/locale/vi-VN.js +1 -50
  25. package/lib/es/locale/zh-CN.js +1 -50
  26. package/lib/es/locale/zh-TW.js +1 -50
  27. package/lib/index.css +2580 -1
  28. package/lib/index.js +329 -15659
  29. package/lib/locale/ca-ES.js +1 -50
  30. package/lib/locale/en-US.js +1 -50
  31. package/lib/locale/es-ES.js +1 -50
  32. package/lib/locale/fa-IR.js +1 -50
  33. package/lib/locale/fr-FR.js +1 -50
  34. package/lib/locale/ja-JP.js +1 -50
  35. package/lib/locale/ko-KR.js +1 -50
  36. package/lib/locale/ru-RU.js +1 -50
  37. package/lib/locale/sk-SK.js +1 -50
  38. package/lib/locale/vi-VN.js +1 -50
  39. package/lib/locale/zh-CN.js +1 -50
  40. package/lib/locale/zh-TW.js +1 -50
  41. package/lib/types/components/accordion/Accordion.d.ts +16 -1
  42. package/lib/types/components/accordion/Accordion.stories.d.ts +16 -1
  43. package/lib/types/components/avatar/Avatar.d.ts +18 -3
  44. package/lib/types/components/avatar/Avatar.stories.d.ts +16 -1
  45. package/lib/types/components/badge/Badge.d.ts +16 -1
  46. package/lib/types/components/badge/Badge.stories.d.ts +16 -1
  47. package/lib/types/components/button/Button.d.ts +19 -4
  48. package/lib/types/components/button/Button.stories.d.ts +16 -1
  49. package/lib/types/components/button/ButtonGroup.d.ts +17 -2
  50. package/lib/types/components/button/ButtonGroup.stories.d.ts +16 -1
  51. package/lib/types/components/calendar/Calendar.stories.d.ts +16 -1
  52. package/lib/types/components/cascader-list/CascaderList.stories.d.ts +16 -1
  53. package/lib/types/components/checkbox/Checkbox.d.ts +16 -1
  54. package/lib/types/components/checkbox/Checkbox.stories.d.ts +16 -1
  55. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +16 -1
  56. package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +16 -1
  57. package/lib/types/components/color-picker/ColorPicker.stories.d.ts +16 -1
  58. package/lib/types/components/config-provider/ConfigProvider.d.ts +17 -2
  59. package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +16 -1
  60. package/lib/types/components/confirm/Confirm.d.ts +16 -1
  61. package/lib/types/components/confirm/Confirm.stories.d.ts +16 -1
  62. package/lib/types/components/date-picker/DatePicker.stories.d.ts +16 -1
  63. package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +16 -1
  64. package/lib/types/components/dialog/Dialog.d.ts +16 -1
  65. package/lib/types/components/dialog/Dialog.stories.d.ts +16 -1
  66. package/lib/types/components/dialog/DialogPrimitive.d.ts +24 -9
  67. package/lib/types/components/draggable-list/DraggableList.d.ts +16 -1
  68. package/lib/types/components/draggable-list/DraggableList.stories.d.ts +16 -1
  69. package/lib/types/components/dropdown/Dropdown.d.ts +16 -1
  70. package/lib/types/components/dropdown/Dropdown.stories.d.ts +16 -1
  71. package/lib/types/components/dropdown/PopoverPrimitive.d.ts +16 -1
  72. package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +16 -1
  73. package/lib/types/components/dropdown-menu/DropdownMenuPrimitive.d.ts +16 -1
  74. package/lib/types/components/form-layout/FormLayout.d.ts +16 -1
  75. package/lib/types/components/form-layout/FormLayout.stories.d.ts +16 -1
  76. package/lib/types/components/gallery/Gallery.d.ts +1 -1
  77. package/lib/types/components/gallery/Gallery.stories.d.ts +16 -1
  78. package/lib/types/components/gradient-color-picker/GradientColorPicker.stories.d.ts +16 -1
  79. package/lib/types/components/hover-card/HoverCard.d.ts +16 -1
  80. package/lib/types/components/hover-card/HoverCard.stories.d.ts +16 -1
  81. package/lib/types/components/hover-card/HoverCardPrimitive.d.ts +4 -4
  82. package/lib/types/components/input/Input.d.ts +19 -4
  83. package/lib/types/components/input/Input.stories.d.ts +16 -1
  84. package/lib/types/components/input-number/InputNumber.d.ts +17 -2
  85. package/lib/types/components/input-number/InputNumber.stories.d.ts +16 -1
  86. package/lib/types/components/kbd/Kbd.stories.d.ts +16 -1
  87. package/lib/types/components/message/Message.d.ts +16 -1
  88. package/lib/types/components/message/Message.stories.d.ts +16 -1
  89. package/lib/types/components/pager/Pager.stories.d.ts +16 -1
  90. package/lib/types/components/popup/Popup.d.ts +17 -2
  91. package/lib/types/components/popup/Popup.stories.d.ts +16 -1
  92. package/lib/types/components/radio/Radio.d.ts +16 -1
  93. package/lib/types/components/radio/Radio.stories.d.ts +16 -1
  94. package/lib/types/components/radio-group/RadioGroup.d.ts +16 -1
  95. package/lib/types/components/radio-group/RadioGroup.stories.d.ts +16 -1
  96. package/lib/types/components/segmented/Segmented.stories.d.ts +16 -1
  97. package/lib/types/components/select/MultipleSelect.d.ts +16 -1
  98. package/lib/types/components/select/Select.d.ts +16 -1
  99. package/lib/types/components/select/Select.stories.d.ts +16 -1
  100. package/lib/types/components/select-list/SelectList.stories.d.ts +16 -1
  101. package/lib/types/components/separator/Separator.d.ts +16 -1
  102. package/lib/types/components/textarea/Textarea.d.ts +17 -2
  103. package/lib/types/components/toaster/Toaster.d.ts +16 -1
  104. package/lib/types/components/tooltip/Tooltip.d.ts +16 -1
  105. package/lib/types/components/tooltip/Tooltip.stories.d.ts +16 -1
  106. package/lib/types/components/tree/Tree.d.ts +16 -1
  107. package/lib/types/components/tree/Tree.stories.d.ts +16 -1
  108. package/lib/types/components/tree/util.d.ts +16 -1
  109. package/lib/types/components/virtual-list/VirtualList.d.ts +16 -1
  110. package/lib/types/helper/clsx.d.ts +16 -1
  111. package/lib/types/index.d.ts +0 -1
  112. package/lib/types/locale/ca-ES.d.ts +16 -1
  113. package/lib/types/locale/es-ES.d.ts +16 -1
  114. package/lib/types/locale/fa-IR.d.ts +16 -1
  115. package/lib/types/locale/fr-FR.d.ts +16 -1
  116. package/lib/types/locale/ja-JP.d.ts +16 -1
  117. package/lib/types/locale/ko-KR.d.ts +16 -1
  118. package/lib/types/locale/ru-RU.d.ts +16 -1
  119. package/lib/types/locale/sk-SK.d.ts +16 -1
  120. package/lib/types/locale/vi-VN.d.ts +16 -1
  121. package/lib/types/locale/zh-CN.d.ts +16 -1
  122. package/lib/types/locale/zh-TW.d.ts +16 -1
  123. package/lib/umd/index.js +349 -71
  124. package/lib/umd/locale/ca-ES.js +1 -1
  125. package/lib/umd/locale/en-US.js +1 -1
  126. package/lib/umd/locale/es-ES.js +1 -1
  127. package/lib/umd/locale/fa-IR.js +1 -1
  128. package/lib/umd/locale/fr-FR.js +1 -1
  129. package/lib/umd/locale/ja-JP.js +1 -1
  130. package/lib/umd/locale/ko-KR.js +1 -1
  131. package/lib/umd/locale/ru-RU.js +1 -1
  132. package/lib/umd/locale/sk-SK.js +1 -1
  133. package/lib/umd/locale/vi-VN.js +1 -1
  134. package/lib/umd/locale/zh-CN.js +1 -1
  135. package/lib/umd/locale/zh-TW.js +1 -1
  136. package/package.json +7 -9
  137. package/lib/types/components/menu/Menu.d.ts +0 -27
  138. package/lib/types/components/menu/index.d.ts +0 -17
  139. package/lib/types/components/menu/menu.stories.d.ts +0 -27
  140. package/lib/types/type.d.ts +0 -18
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Dropdown } from './Dropdown';
3
18
  declare const meta: Meta<typeof Dropdown>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { ComponentProps } from 'react';
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';
2
17
  import { Anchor, Content, Root, Trigger } from '@radix-ui/react-popover';
3
18
  declare function PopoverPrimitive({ ...props }: ComponentProps<typeof Root>): import("react/jsx-runtime").JSX.Element;
4
19
  declare function PopoverTrigger({ ...props }: ComponentProps<typeof Trigger>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,19 @@
1
- import { ComponentProps, ReactNode } from 'react';
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, ReactNode } from 'react';
2
17
  import { DropdownMenuContent } from './DropdownMenuPrimitive';
3
18
  interface IDropdownMenuNormalItem {
4
19
  type: 'item';
@@ -1,4 +1,19 @@
1
- import { ComponentProps } from 'react';
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';
2
17
  import { CheckboxItem, Content, Group, Item, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from '@radix-ui/react-dropdown-menu';
3
18
  declare function DropdownMenuPrimitive({ ...props }: ComponentProps<typeof Root>): import("react/jsx-runtime").JSX.Element;
4
19
  declare function DropdownMenuPortal({ ...props }: ComponentProps<typeof Portal>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,19 @@
1
- import { CSSProperties, PropsWithChildren, ReactNode } from 'react';
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 { CSSProperties, PropsWithChildren, ReactNode } from 'react';
2
17
  export interface IFormLayoutProps {
3
18
  label?: ReactNode;
4
19
  desc?: ReactNode;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  declare const meta: Meta;
3
18
  export default meta;
4
19
  export declare const Playground: {
@@ -19,4 +19,4 @@ export interface IGalleryProps {
19
19
  open?: boolean;
20
20
  onOpenChange?: (open: boolean) => void;
21
21
  }
22
- export declare function Gallery(props: IGalleryProps): import('react').ReactPortal | null;
22
+ export declare function Gallery(props: IGalleryProps): import("react").ReactPortal | null;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Gallery } from './Gallery';
3
18
  declare const meta: Meta<typeof Gallery>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { GradientColorPicker } from './GradientColorPicker';
3
18
  declare const meta: Meta<typeof GradientColorPicker>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { ComponentProps, ReactNode } from 'react';
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, ReactNode } from 'react';
2
17
  import { HoverCardContent } from './HoverCardPrimitive';
3
18
  export interface IHoverCardProps extends ComponentProps<typeof HoverCardContent> {
4
19
  children: ReactNode;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { HoverCard } from './HoverCard';
3
18
  declare const meta: Meta<typeof HoverCard>;
4
19
  export default meta;
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- declare const HoverCardPrimitive: import('react').FC<import('@radix-ui/react-hover-card').HoverCardProps>;
17
- declare const HoverCardPortal: import('react').FC<import('@radix-ui/react-hover-card').HoverCardPortalProps>;
18
- declare const HoverCardTrigger: import('react').ForwardRefExoticComponent<import('@radix-ui/react-hover-card').HoverCardTriggerProps & import('react').RefAttributes<HTMLAnchorElement>>;
19
- declare const HoverCardContent: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-hover-card').HoverCardContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
16
+ declare const HoverCardPrimitive: import("react").FC<import("@radix-ui/react-hover-card").HoverCardProps>;
17
+ declare const HoverCardPortal: import("react").FC<import("@radix-ui/react-hover-card").HoverCardPortalProps>;
18
+ declare const HoverCardTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-hover-card").HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
19
+ declare const HoverCardContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-hover-card").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
20
  export { HoverCardContent, HoverCardPortal, HoverCardPrimitive, HoverCardTrigger };
@@ -1,9 +1,24 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import { InputHTMLAttributes } from 'react';
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 { VariantProps } from 'class-variance-authority';
17
+ import type { InputHTMLAttributes } from 'react';
3
18
  type InputProps = InputHTMLAttributes<HTMLInputElement>;
4
19
  export declare const inputVariants: (props?: ({
5
20
  size?: "small" | "middle" | "large" | "mini" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
21
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
22
  export interface IInputProps extends Pick<InputProps, 'onFocus' | 'onBlur'>, VariantProps<typeof inputVariants> {
8
23
  autoFocus?: boolean;
9
24
  className?: string;
@@ -20,5 +35,5 @@ export interface IInputProps extends Pick<InputProps, 'onFocus' | 'onBlur'>, Var
20
35
  inputStyle?: React.CSSProperties;
21
36
  slot?: React.ReactNode;
22
37
  }
23
- export declare const Input: import('react').ForwardRefExoticComponent<IInputProps & import('react').RefAttributes<HTMLInputElement>>;
38
+ export declare const Input: import("react").ForwardRefExoticComponent<IInputProps & import("react").RefAttributes<HTMLInputElement>>;
24
39
  export {};
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Input } from './Input';
3
18
  declare const meta: Meta<typeof Input>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { InputHTMLAttributes, KeyboardEvent } from 'react';
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 { InputHTMLAttributes, KeyboardEvent } from 'react';
2
17
  export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'defaultValue' | 'size'> {
3
18
  value?: number | null;
4
19
  defaultValue?: number;
@@ -18,4 +33,4 @@ export interface IInputNumberProps extends Omit<InputHTMLAttributes<HTMLInputEle
18
33
  onPressEnter?: (e: KeyboardEvent<HTMLInputElement>) => void;
19
34
  allowEmpty?: boolean;
20
35
  }
21
- export declare const InputNumber: import('react').ForwardRefExoticComponent<IInputNumberProps & import('react').RefAttributes<HTMLInputElement>>;
36
+ export declare const InputNumber: import("react").ForwardRefExoticComponent<IInputNumberProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { InputNumber } from './InputNumber';
3
18
  declare const meta: Meta<typeof InputNumber>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { KBD } from './Kbd';
3
18
  declare const meta: Meta<typeof KBD>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { ComponentProps } from 'react';
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';
2
17
  import { Toaster as Sonner } from 'sonner';
3
18
  export declare enum MessageType {
4
19
  Success = "success",
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Messager } from './Message';
3
18
  declare const meta: Meta<typeof Messager>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  declare const meta: Meta;
3
18
  export default meta;
4
19
  export declare const Playground: {
@@ -1,4 +1,19 @@
1
- import { ReactElement } from 'react';
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 { ReactElement } from 'react';
2
17
  import './index.css';
3
18
  export interface IPopupProps {
4
19
  children: ReactElement;
@@ -23,4 +38,4 @@ export interface IPopupProps {
23
38
  */
24
39
  placementY?: 'below' | 'above';
25
40
  }
26
- export declare function Popup(props: IPopupProps): import('react').ReactPortal;
41
+ export declare function Popup(props: IPopupProps): import("react").ReactPortal;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Popup } from './Popup';
3
18
  declare const meta: Meta<typeof Popup>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { ReactNode } from 'react';
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 { ReactNode } from 'react';
2
17
  export interface IRadioProps {
3
18
  children?: ReactNode;
4
19
  /**
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Radio } from './Radio';
3
18
  declare const meta: Meta<typeof Radio>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { CSSProperties, ReactNode } from 'react';
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 { CSSProperties, ReactNode } from 'react';
2
17
  export interface IRadioGroupProps {
3
18
  children: ReactNode[];
4
19
  /**
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { RadioGroup } from './RadioGroup';
3
18
  declare const meta: Meta<typeof RadioGroup>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { Meta } from '@storybook/react';
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 { Meta } from '@storybook/react';
2
17
  import { Segmented } from './Segmented';
3
18
  declare const meta: Meta<typeof Segmented>;
4
19
  export default meta;
@@ -1,4 +1,19 @@
1
- import { ReactNode } from 'react';
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 { ReactNode } from 'react';
2
17
  interface IOption {
3
18
  label?: string | ReactNode;
4
19
  value?: string;
@@ -1,4 +1,19 @@
1
- import { ReactNode } from 'react';
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 { ReactNode } from 'react';
2
17
  interface IOption {
3
18
  label?: string | ReactNode;
4
19
  value?: string;