@univerjs/design 0.1.0-alpha.1 → 0.1.0-alpha.2

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 (174) hide show
  1. package/LICENSE.txt +178 -0
  2. package/lib/cjs/index.js +48 -2170
  3. package/lib/es/index.js +11986 -0
  4. package/lib/index.css +1 -1833
  5. package/lib/types/components/avatar/Avatar.d.ts +15 -1
  6. package/lib/types/components/avatar/Avatar.stories.d.ts +29 -0
  7. package/lib/types/components/avatar/__tests__/index.spec.d.ts +15 -1
  8. package/lib/types/components/avatar/index.d.ts +15 -1
  9. package/lib/types/components/button/Button.d.ts +15 -1
  10. package/lib/types/components/button/Button.stories.d.ts +32 -0
  11. package/lib/types/components/button/__tests__/index.spec.d.ts +15 -1
  12. package/lib/types/components/button/index.d.ts +15 -1
  13. package/lib/types/components/cascader-list/CascaderList.d.ts +15 -1
  14. package/lib/types/components/cascader-list/CascaderList.stories.d.ts +23 -0
  15. package/lib/types/components/cascader-list/index.d.ts +15 -1
  16. package/lib/types/components/checkbox/Checkbox.d.ts +15 -1
  17. package/lib/types/components/checkbox/Checkbox.stories.d.ts +26 -0
  18. package/lib/types/components/checkbox/__tests__/index.spec.d.ts +15 -1
  19. package/lib/types/components/checkbox/index.d.ts +15 -1
  20. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +15 -1
  21. package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +23 -0
  22. package/lib/types/components/checkbox-group/__tests__/index.spec.d.ts +15 -1
  23. package/lib/types/components/checkbox-group/index.d.ts +15 -1
  24. package/lib/types/components/color-picker/ColorPicker.d.ts +15 -1
  25. package/lib/types/components/color-picker/ColorPicker.stories.d.ts +23 -0
  26. package/lib/types/components/color-picker/index.d.ts +15 -1
  27. package/lib/types/components/color-picker/presets.d.ts +15 -1
  28. package/lib/types/components/config-provider/ConfigProvider.d.ts +15 -1
  29. package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +23 -0
  30. package/lib/types/components/config-provider/__tests__/index.spec.d.ts +15 -1
  31. package/lib/types/components/config-provider/index.d.ts +15 -1
  32. package/lib/types/components/confirm/Confirm.d.ts +23 -1
  33. package/lib/types/components/confirm/Confirm.stories.d.ts +23 -0
  34. package/lib/types/components/confirm/index.d.ts +15 -1
  35. package/lib/types/components/container/Container.d.ts +15 -1
  36. package/lib/types/components/container/Container.stories.d.ts +23 -0
  37. package/lib/types/components/container/__tests__/index.spec.d.ts +15 -1
  38. package/lib/types/components/container/index.d.ts +15 -1
  39. package/lib/types/components/design-token/Palette.d.ts +15 -1
  40. package/lib/types/components/design-token/Palette.stories.d.ts +19 -0
  41. package/lib/types/components/dialog/Dialog.d.ts +15 -1
  42. package/lib/types/components/dialog/Dialog.stories.d.ts +23 -0
  43. package/lib/types/components/dialog/index.d.ts +15 -1
  44. package/lib/types/components/dropdown/Dropdown.d.ts +15 -1
  45. package/lib/types/components/dropdown/Dropdown.stories.d.ts +23 -0
  46. package/lib/types/components/dropdown/index.d.ts +15 -1
  47. package/lib/types/components/icon/Icon.stories.d.ts +22 -0
  48. package/lib/types/components/input/Input.d.ts +15 -1
  49. package/lib/types/components/input/Input.stories.d.ts +29 -0
  50. package/lib/types/components/input/index.d.ts +15 -1
  51. package/lib/types/components/input-number/InputNumber.d.ts +15 -1
  52. package/lib/types/components/input-number/InputNumber.stories.d.ts +29 -0
  53. package/lib/types/components/input-number/index.d.ts +15 -1
  54. package/lib/types/components/menu/Menu.d.ts +15 -1
  55. package/lib/types/components/menu/index.d.ts +15 -1
  56. package/lib/types/components/message/Message.d.ts +15 -1
  57. package/lib/types/components/message/Message.stories.d.ts +22 -0
  58. package/lib/types/components/message/__tests__/index.spec.d.ts +15 -1
  59. package/lib/types/components/message/index.d.ts +15 -1
  60. package/lib/types/components/popup/Popup.d.ts +15 -1
  61. package/lib/types/components/popup/Popup.stories.d.ts +23 -0
  62. package/lib/types/components/popup/index.d.ts +15 -1
  63. package/lib/types/components/radio/Radio.d.ts +15 -1
  64. package/lib/types/components/radio/Radio.stories.d.ts +26 -0
  65. package/lib/types/components/radio/__tests__/index.spec.d.ts +15 -1
  66. package/lib/types/components/radio/index.d.ts +15 -1
  67. package/lib/types/components/radio-group/RadioGroup.d.ts +15 -1
  68. package/lib/types/components/radio-group/RadioGroup.stories.d.ts +23 -0
  69. package/lib/types/components/radio-group/__tests__/index.spec.d.ts +15 -1
  70. package/lib/types/components/radio-group/index.d.ts +15 -1
  71. package/lib/types/components/scrollbar/Scrollbar.d.ts +15 -1
  72. package/lib/types/components/scrollbar/Scrollbar.stories.d.ts +20 -0
  73. package/lib/types/components/scrollbar/__tests__/index.spec.d.ts +15 -1
  74. package/lib/types/components/scrollbar/index.d.ts +15 -1
  75. package/lib/types/components/select/Select.d.ts +15 -1
  76. package/lib/types/components/select/Select.stories.d.ts +26 -0
  77. package/lib/types/components/select/index.d.ts +15 -1
  78. package/lib/types/components/select-list/SelectList.d.ts +15 -1
  79. package/lib/types/components/select-list/SelectList.stories.d.ts +23 -0
  80. package/lib/types/components/select-list/index.d.ts +15 -1
  81. package/lib/types/components/slider/Slider.d.ts +15 -1
  82. package/lib/types/components/slider/Slider.stories.d.ts +23 -0
  83. package/lib/types/components/slider/__test__/index.spec.d.ts +15 -1
  84. package/lib/types/components/slider/index.d.ts +15 -1
  85. package/lib/types/components/tooltip/Tooltip.d.ts +15 -1
  86. package/lib/types/components/tooltip/Tooltip.stories.d.ts +23 -0
  87. package/lib/types/components/tooltip/index.d.ts +15 -1
  88. package/lib/types/components/tooltip/placements.d.ts +15 -1
  89. package/lib/types/components/tree/Tree.d.ts +54 -0
  90. package/lib/types/components/tree/Tree.stories.d.ts +23 -0
  91. package/lib/types/components/tree/__tests__/index.spec.d.ts +16 -0
  92. package/lib/types/components/tree/index.d.ts +16 -0
  93. package/lib/types/index.d.ts +17 -1
  94. package/lib/types/locale/en-US.d.ts +15 -1
  95. package/lib/types/locale/index.d.ts +15 -1
  96. package/lib/types/locale/interface.d.ts +15 -1
  97. package/lib/types/locale/zh-CN.d.ts +15 -1
  98. package/lib/types/themes/index.d.ts +15 -1
  99. package/lib/types/themes/theme.d.ts +15 -1
  100. package/lib/umd/index.js +48 -0
  101. package/package.json +21 -20
  102. package/LICENSE +0 -21
  103. package/lib/cjs/locale/en-US.js +0 -37
  104. package/lib/cjs/locale/zh-CN.js +0 -37
  105. package/lib/esm/index.js +0 -2016
  106. package/lib/esm/locale/en-US.js +0 -16
  107. package/lib/esm/locale/zh-CN.js +0 -16
  108. package/lib/types/components/avatar/Avatar.d.ts.map +0 -1
  109. package/lib/types/components/avatar/__tests__/index.spec.d.ts.map +0 -1
  110. package/lib/types/components/avatar/index.d.ts.map +0 -1
  111. package/lib/types/components/button/Button.d.ts.map +0 -1
  112. package/lib/types/components/button/__tests__/index.spec.d.ts.map +0 -1
  113. package/lib/types/components/button/index.d.ts.map +0 -1
  114. package/lib/types/components/cascader-list/CascaderList.d.ts.map +0 -1
  115. package/lib/types/components/cascader-list/index.d.ts.map +0 -1
  116. package/lib/types/components/checkbox/Checkbox.d.ts.map +0 -1
  117. package/lib/types/components/checkbox/__tests__/index.spec.d.ts.map +0 -1
  118. package/lib/types/components/checkbox/index.d.ts.map +0 -1
  119. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts.map +0 -1
  120. package/lib/types/components/checkbox-group/__tests__/index.spec.d.ts.map +0 -1
  121. package/lib/types/components/checkbox-group/index.d.ts.map +0 -1
  122. package/lib/types/components/color-picker/ColorPicker.d.ts.map +0 -1
  123. package/lib/types/components/color-picker/index.d.ts.map +0 -1
  124. package/lib/types/components/color-picker/presets.d.ts.map +0 -1
  125. package/lib/types/components/config-provider/ConfigProvider.d.ts.map +0 -1
  126. package/lib/types/components/config-provider/__tests__/index.spec.d.ts.map +0 -1
  127. package/lib/types/components/config-provider/index.d.ts.map +0 -1
  128. package/lib/types/components/confirm/Confirm.d.ts.map +0 -1
  129. package/lib/types/components/confirm/index.d.ts.map +0 -1
  130. package/lib/types/components/container/Container.d.ts.map +0 -1
  131. package/lib/types/components/container/__tests__/index.spec.d.ts.map +0 -1
  132. package/lib/types/components/container/index.d.ts.map +0 -1
  133. package/lib/types/components/design-token/Palette.d.ts.map +0 -1
  134. package/lib/types/components/dialog/Dialog.d.ts.map +0 -1
  135. package/lib/types/components/dialog/index.d.ts.map +0 -1
  136. package/lib/types/components/dropdown/Dropdown.d.ts.map +0 -1
  137. package/lib/types/components/dropdown/index.d.ts.map +0 -1
  138. package/lib/types/components/input/Input.d.ts.map +0 -1
  139. package/lib/types/components/input/index.d.ts.map +0 -1
  140. package/lib/types/components/input-number/InputNumber.d.ts.map +0 -1
  141. package/lib/types/components/input-number/index.d.ts.map +0 -1
  142. package/lib/types/components/menu/Menu.d.ts.map +0 -1
  143. package/lib/types/components/menu/index.d.ts.map +0 -1
  144. package/lib/types/components/message/Message.d.ts.map +0 -1
  145. package/lib/types/components/message/__tests__/index.spec.d.ts.map +0 -1
  146. package/lib/types/components/message/index.d.ts.map +0 -1
  147. package/lib/types/components/popup/Popup.d.ts.map +0 -1
  148. package/lib/types/components/popup/index.d.ts.map +0 -1
  149. package/lib/types/components/radio/Radio.d.ts.map +0 -1
  150. package/lib/types/components/radio/__tests__/index.spec.d.ts.map +0 -1
  151. package/lib/types/components/radio/index.d.ts.map +0 -1
  152. package/lib/types/components/radio-group/RadioGroup.d.ts.map +0 -1
  153. package/lib/types/components/radio-group/__tests__/index.spec.d.ts.map +0 -1
  154. package/lib/types/components/radio-group/index.d.ts.map +0 -1
  155. package/lib/types/components/scrollbar/Scrollbar.d.ts.map +0 -1
  156. package/lib/types/components/scrollbar/__tests__/index.spec.d.ts.map +0 -1
  157. package/lib/types/components/scrollbar/index.d.ts.map +0 -1
  158. package/lib/types/components/select/Select.d.ts.map +0 -1
  159. package/lib/types/components/select/index.d.ts.map +0 -1
  160. package/lib/types/components/select-list/SelectList.d.ts.map +0 -1
  161. package/lib/types/components/select-list/index.d.ts.map +0 -1
  162. package/lib/types/components/slider/Slider.d.ts.map +0 -1
  163. package/lib/types/components/slider/__test__/index.spec.d.ts.map +0 -1
  164. package/lib/types/components/slider/index.d.ts.map +0 -1
  165. package/lib/types/components/tooltip/Tooltip.d.ts.map +0 -1
  166. package/lib/types/components/tooltip/index.d.ts.map +0 -1
  167. package/lib/types/components/tooltip/placements.d.ts.map +0 -1
  168. package/lib/types/index.d.ts.map +0 -1
  169. package/lib/types/locale/en-US.d.ts.map +0 -1
  170. package/lib/types/locale/index.d.ts.map +0 -1
  171. package/lib/types/locale/interface.d.ts.map +0 -1
  172. package/lib/types/locale/zh-CN.d.ts.map +0 -1
  173. package/lib/types/themes/index.d.ts.map +0 -1
  174. package/lib/types/themes/theme.d.ts.map +0 -1
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  type Shape = 'circle' | 'square';
3
18
  type AvatarSize = number | 'middle' | 'small';
@@ -37,4 +52,3 @@ export interface IAvatarProps {
37
52
  */
38
53
  export declare function Avatar(props: IAvatarProps): React.JSX.Element;
39
54
  export {};
40
- //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1,29 @@
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
+ import { Avatar } from './Avatar';
19
+ declare const meta: Meta<typeof Avatar>;
20
+ export default meta;
21
+ export declare const AvatarShape: {
22
+ render(): React.JSX.Element;
23
+ };
24
+ export declare const AvatarSize: {
25
+ render(): React.JSX.Element;
26
+ };
27
+ export declare const AvatarSrc: {
28
+ render(): React.JSX.Element;
29
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { Avatar, type IAvatarProps } from './Avatar';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  export type ButtonType = 'primary' | 'default' | 'text' | 'link';
3
18
  export type ButtonSize = 'small' | 'middle' | 'large';
@@ -33,4 +48,3 @@ export interface IButtonProps {
33
48
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
34
49
  }
35
50
  export declare function Button(props: IButtonProps): React.JSX.Element;
36
- //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1,32 @@
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
+ import { Button } from './Button';
19
+ declare const meta: Meta<typeof Button>;
20
+ export default meta;
21
+ export declare const ButtonType: {
22
+ render(): React.JSX.Element;
23
+ };
24
+ export declare const ButtonSize: {
25
+ render(): React.JSX.Element;
26
+ };
27
+ export declare const ButtonBlock: {
28
+ render(): React.JSX.Element;
29
+ };
30
+ export declare const ButtonDisabled: {
31
+ render(): React.JSX.Element;
32
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { Button, type ButtonSize, type ButtonType, type IButtonProps } from './Button';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  interface IOption {
3
18
  label: string;
@@ -22,4 +37,3 @@ export interface ICascaderListProps {
22
37
  }
23
38
  export declare function CascaderList(props: ICascaderListProps): React.JSX.Element;
24
39
  export {};
25
- //# sourceMappingURL=CascaderList.d.ts.map
@@ -0,0 +1,23 @@
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
+ import { CascaderList } from './CascaderList';
19
+ declare const meta: Meta<typeof CascaderList>;
20
+ export default meta;
21
+ export declare const Playground: {
22
+ render(): React.JSX.Element;
23
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { CascaderList, type ICascaderListProps } from './CascaderList';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  export interface ICheckboxProps {
3
18
  children?: React.ReactNode;
@@ -24,4 +39,3 @@ export interface ICheckboxProps {
24
39
  * Checkbox Component
25
40
  */
26
41
  export declare function Checkbox(props: ICheckboxProps): React.JSX.Element;
27
- //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1,26 @@
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
+ import { Checkbox } from './Checkbox';
19
+ declare const meta: Meta<typeof Checkbox>;
20
+ export default meta;
21
+ export declare const CheckboxBasic: {
22
+ render(): React.JSX.Element;
23
+ };
24
+ export declare const CheckboxDisabled: {
25
+ render(): React.JSX.Element;
26
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { Checkbox, type ICheckboxProps } from './Checkbox';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  export interface ICheckboxGroupProps {
3
18
  children: React.ReactNode[];
@@ -19,4 +34,3 @@ export interface ICheckboxGroupProps {
19
34
  * CheckboxGroup Component
20
35
  */
21
36
  export declare function CheckboxGroup(props: ICheckboxGroupProps): React.JSX.Element;
22
- //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -0,0 +1,23 @@
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
+ import { CheckboxGroup } from './CheckboxGroup';
19
+ declare const meta: Meta<typeof CheckboxGroup>;
20
+ export default meta;
21
+ export declare const Playground: {
22
+ render(): React.JSX.Element;
23
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { CheckboxGroup, type ICheckboxGroupProps } from './CheckboxGroup';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  export interface IColorPickerProps {
3
18
  color?: string;
@@ -5,4 +20,3 @@ export interface IColorPickerProps {
5
20
  onChange?: (value: string) => void;
6
21
  }
7
22
  export declare function ColorPicker(props: IColorPickerProps): React.JSX.Element;
8
- //# sourceMappingURL=ColorPicker.d.ts.map
@@ -0,0 +1,23 @@
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
+ import { ColorPicker } from './ColorPicker';
19
+ declare const meta: Meta<typeof ColorPicker>;
20
+ export default meta;
21
+ export declare const Playground: {
22
+ render(): React.JSX.Element;
23
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { ColorPicker, type IColorPickerProps } from './ColorPicker';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export declare const colorPresets: string[];
2
- //# sourceMappingURL=presets.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  import type { ILocale } from '../../locale';
3
18
  export interface IConfigProviderProps {
@@ -7,4 +22,3 @@ export interface IConfigProviderProps {
7
22
  }
8
23
  export declare const ConfigContext: React.Context<Omit<IConfigProviderProps, "children">>;
9
24
  export declare function ConfigProvider(props: IConfigProviderProps): React.JSX.Element;
10
- //# sourceMappingURL=ConfigProvider.d.ts.map
@@ -0,0 +1,23 @@
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
+ import { ConfigProvider } from './ConfigProvider';
19
+ declare const meta: Meta<typeof ConfigProvider>;
20
+ export default meta;
21
+ export declare const Playground: {
22
+ render(): React.JSX.Element;
23
+ };
@@ -1,2 +1,16 @@
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
+ */
1
16
  export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1,2 +1,16 @@
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
+ */
1
16
  export { ConfigContext, ConfigProvider, type IConfigProviderProps } from './ConfigProvider';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,18 @@
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
+ */
1
16
  import React from 'react';
2
17
  export interface IConfirmProps {
3
18
  children: React.ReactNode;
@@ -10,6 +25,14 @@ export interface IConfirmProps {
10
25
  * The title of the Confirm.
11
26
  */
12
27
  title?: React.ReactNode;
28
+ /**
29
+ * The text of the Confirm's confirm button.
30
+ */
31
+ cancelText?: string;
32
+ /**
33
+ * The text of the Confirm's cancel button.
34
+ */
35
+ confirmText?: string;
13
36
  /**
14
37
  * Callback when the Confirm is closed.
15
38
  */
@@ -20,4 +43,3 @@ export interface IConfirmProps {
20
43
  onConfirm?: () => void;
21
44
  }
22
45
  export declare function Confirm(props: IConfirmProps): React.JSX.Element;
23
- //# sourceMappingURL=Confirm.d.ts.map
@@ -0,0 +1,23 @@
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
+ import { Confirm } from './Confirm';
19
+ declare const meta: Meta<typeof Confirm>;
20
+ export default meta;
21
+ export declare const ConfirmBasic: {
22
+ render(): React.JSX.Element;
23
+ };