@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
  export interface IRadioProps {
3
18
  children?: React.ReactNode;
@@ -24,4 +39,3 @@ export interface IRadioProps {
24
39
  * Radio Component
25
40
  */
26
41
  export declare function Radio(props: IRadioProps): React.JSX.Element;
27
- //# sourceMappingURL=Radio.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 { Radio } from './Radio';
19
+ declare const meta: Meta<typeof Radio>;
20
+ export default meta;
21
+ export declare const RadioBasic: {
22
+ render(): React.JSX.Element;
23
+ };
24
+ export declare const RadioDisabled: {
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 { type IRadioProps, Radio } from './Radio';
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 IRadioGroupProps {
3
18
  children: React.ReactNode[];
@@ -19,4 +34,3 @@ export interface IRadioGroupProps {
19
34
  * RadioGroup Component
20
35
  */
21
36
  export declare function RadioGroup(props: IRadioGroupProps): React.JSX.Element;
22
- //# sourceMappingURL=RadioGroup.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 { RadioGroup } from './RadioGroup';
19
+ declare const meta: Meta<typeof RadioGroup>;
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 { type IRadioGroupProps, RadioGroup } from './RadioGroup';
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 IScrollbarProps {
3
18
  children?: React.ReactNode;
@@ -6,4 +21,3 @@ export interface IScrollbarProps {
6
21
  * Scrollbar Component
7
22
  */
8
23
  export declare function Scrollbar(props: IScrollbarProps): React.JSX.Element;
9
- //# sourceMappingURL=Scrollbar.d.ts.map
@@ -0,0 +1,20 @@
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';
17
+ import { Scrollbar } from './Scrollbar';
18
+ declare const meta: Meta<typeof Scrollbar>;
19
+ export default meta;
20
+ export declare const ScrollbarBasic: StoryObj;
@@ -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 { type IScrollbarProps, Scrollbar } from './Scrollbar';
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 | React.ReactNode;
@@ -21,4 +36,3 @@ export interface ISelectProps {
21
36
  }
22
37
  export declare function Select(props: ISelectProps): React.JSX.Element;
23
38
  export {};
24
- //# sourceMappingURL=Select.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 { Select } from './Select';
19
+ declare const meta: Meta<typeof Select>;
20
+ export default meta;
21
+ export declare const SelectBasic: {
22
+ render(): React.JSX.Element;
23
+ };
24
+ export declare const SelectGroup: {
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 { type ISelectProps, Select } from './Select';
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 ISelectListProps {
3
18
  /**
@@ -24,4 +39,3 @@ export interface ISelectListProps {
24
39
  onChange: (value: string) => void;
25
40
  }
26
41
  export declare function SelectList(props: ISelectListProps): React.JSX.Element;
27
- //# sourceMappingURL=SelectList.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 { SelectList } from './SelectList';
19
+ declare const meta: Meta<typeof SelectList>;
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 { type ISelectListProps, SelectList } from './SelectList';
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 ISliderProps {
3
18
  /** The value of slider. When range is false, use number, otherwise, use [number, number] */
@@ -24,4 +39,3 @@ export interface ISliderProps {
24
39
  * Slider Component
25
40
  */
26
41
  export declare function Slider(props: ISliderProps): React.JSX.Element;
27
- //# sourceMappingURL=Slider.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 { Slider } from './Slider';
19
+ declare const meta: Meta<typeof Slider>;
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 { type ISliderProps, Slider } from './Slider';
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 ITooltipProps {
3
18
  placement?: 'top' | 'bottom';
@@ -5,4 +20,3 @@ export interface ITooltipProps {
5
20
  children: React.ReactElement;
6
21
  }
7
22
  export declare const Tooltip: (props: ITooltipProps) => React.JSX.Element;
8
- //# sourceMappingURL=Tooltip.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 { Tooltip } from './Tooltip';
19
+ declare const meta: Meta<typeof Tooltip>;
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 { type ITooltipProps, Tooltip } from './Tooltip';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +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 type { BuildInPlacements } from '@rc-component/trigger';
2
17
  export declare const placements: BuildInPlacements;
3
18
  export default placements;
4
- //# sourceMappingURL=placements.d.ts.map
@@ -0,0 +1,54 @@
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
+ export declare enum TreeSelectionMode {
18
+ ONLY_LEAF_NODE = 0,
19
+ ALL = 1
20
+ }
21
+ interface ITreeNodeProps {
22
+ title: string;
23
+ key: string;
24
+ children?: ITreeNodeProps[];
25
+ }
26
+ export interface ITreeProps {
27
+ data?: ITreeNodeProps[];
28
+ /**
29
+ * Set whether to expand all nodes by default
30
+ * @default false
31
+ */
32
+ defaultExpandAll?: boolean;
33
+ /**
34
+ * Set the selection mode
35
+ * @default TreeSelectionMode.ALL
36
+ * @description
37
+ * - `TreeSelectionMode.ONLY_LEAF_NODE` only select leaf node
38
+ * - `TreeSelectionMode.ALL` select all node
39
+ * */
40
+ selectionMode?: TreeSelectionMode;
41
+ /**
42
+ * Used for setting the currently selected value
43
+ */
44
+ value?: string | number | boolean;
45
+ /**
46
+ * Set the handler to handle `click` event
47
+ */
48
+ onChange?: (value: string | number | boolean) => void;
49
+ }
50
+ /**
51
+ * Tree Component
52
+ */
53
+ export declare function Tree(props: ITreeProps): React.JSX.Element;
54
+ export {};
@@ -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 { Tree } from './Tree';
19
+ declare const meta: Meta<typeof Tree>;
20
+ export default meta;
21
+ export declare const TreeBasic: {
22
+ render(): React.JSX.Element;
23
+ };