duoyun-ui 2.2.2 → 2.2.8

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 (388) hide show
  1. package/elements/badge.d.ts +2 -16
  2. package/elements/badge.d.ts.map +1 -1
  3. package/elements/badge.js +4 -158
  4. package/elements/badge.js.map +1 -1
  5. package/elements/banner.d.ts +2 -17
  6. package/elements/banner.d.ts.map +1 -1
  7. package/elements/banner.js +4 -127
  8. package/elements/banner.js.map +1 -1
  9. package/elements/base/chart.d.ts +2 -2
  10. package/elements/base/resize.d.ts +1 -22
  11. package/elements/base/resize.d.ts.map +1 -1
  12. package/elements/base/resize.js +1 -95
  13. package/elements/base/resize.js.map +1 -1
  14. package/elements/base/scroll.d.ts +1 -8
  15. package/elements/base/scroll.d.ts.map +1 -1
  16. package/elements/base/scroll.js +1 -158
  17. package/elements/base/scroll.js.map +1 -1
  18. package/elements/base/visible.d.ts +1 -18
  19. package/elements/base/visible.d.ts.map +1 -1
  20. package/elements/base/visible.js +1 -112
  21. package/elements/base/visible.js.map +1 -1
  22. package/elements/button.d.ts +2 -24
  23. package/elements/button.d.ts.map +1 -1
  24. package/elements/button.js +7 -287
  25. package/elements/button.js.map +1 -1
  26. package/elements/checkbox.d.ts +3 -21
  27. package/elements/checkbox.d.ts.map +1 -1
  28. package/elements/checkbox.js +6 -180
  29. package/elements/checkbox.js.map +1 -1
  30. package/elements/code-block.d.ts +2 -7
  31. package/elements/code-block.d.ts.map +1 -1
  32. package/elements/code-block.js +4 -432
  33. package/elements/code-block.js.map +1 -1
  34. package/elements/collapse.d.ts +3 -29
  35. package/elements/collapse.d.ts.map +1 -1
  36. package/elements/collapse.js +6 -197
  37. package/elements/collapse.js.map +1 -1
  38. package/elements/compartment.d.ts +2 -5
  39. package/elements/compartment.d.ts.map +1 -1
  40. package/elements/compartment.js +4 -23
  41. package/elements/compartment.js.map +1 -1
  42. package/elements/contextmenu.d.ts +5 -42
  43. package/elements/contextmenu.d.ts.map +1 -1
  44. package/elements/contextmenu.js +8 -285
  45. package/elements/contextmenu.js.map +1 -1
  46. package/elements/countdown.d.ts +2 -12
  47. package/elements/countdown.d.ts.map +1 -1
  48. package/elements/countdown.js +4 -94
  49. package/elements/countdown.js.map +1 -1
  50. package/elements/divider.d.ts +2 -8
  51. package/elements/divider.d.ts.map +1 -1
  52. package/elements/divider.js +4 -129
  53. package/elements/divider.js.map +1 -1
  54. package/elements/empty.d.ts +2 -8
  55. package/elements/empty.d.ts.map +1 -1
  56. package/elements/empty.js +4 -59
  57. package/elements/empty.js.map +1 -1
  58. package/elements/grouped-picker.d.ts +29 -0
  59. package/elements/grouped-picker.d.ts.map +1 -0
  60. package/elements/grouped-picker.js +199 -0
  61. package/elements/grouped-picker.js.map +1 -0
  62. package/elements/input.d.ts +4 -36
  63. package/elements/input.d.ts.map +1 -1
  64. package/elements/input.js +6 -489
  65. package/elements/input.js.map +1 -1
  66. package/elements/letters.d.ts +4 -0
  67. package/elements/letters.d.ts.map +1 -0
  68. package/elements/letters.js +56 -0
  69. package/elements/letters.js.map +1 -0
  70. package/elements/link.d.ts +3 -5
  71. package/elements/link.d.ts.map +1 -1
  72. package/elements/link.js +6 -38
  73. package/elements/link.js.map +1 -1
  74. package/elements/list.d.ts +5 -58
  75. package/elements/list.d.ts.map +1 -1
  76. package/elements/list.js +19 -664
  77. package/elements/list.js.map +1 -1
  78. package/elements/modal.d.ts +5 -63
  79. package/elements/modal.d.ts.map +1 -1
  80. package/elements/modal.js +13 -411
  81. package/elements/modal.js.map +1 -1
  82. package/elements/options.d.ts +4 -32
  83. package/elements/options.d.ts.map +1 -1
  84. package/elements/options.js +5 -254
  85. package/elements/options.js.map +1 -1
  86. package/elements/page-loadbar.js +1 -1
  87. package/elements/paragraph.d.ts +2 -2
  88. package/elements/paragraph.d.ts.map +1 -1
  89. package/elements/paragraph.js +4 -45
  90. package/elements/paragraph.js.map +1 -1
  91. package/elements/placeholder.d.ts +2 -14
  92. package/elements/placeholder.d.ts.map +1 -1
  93. package/elements/placeholder.js +4 -114
  94. package/elements/placeholder.js.map +1 -1
  95. package/elements/radio.d.ts +5 -24
  96. package/elements/radio.d.ts.map +1 -1
  97. package/elements/radio.js +7 -165
  98. package/elements/radio.js.map +1 -1
  99. package/elements/rate.d.ts +2 -12
  100. package/elements/rate.d.ts.map +1 -1
  101. package/elements/rate.js +4 -142
  102. package/elements/rate.js.map +1 -1
  103. package/elements/rolling-number.d.ts +4 -0
  104. package/elements/rolling-number.d.ts.map +1 -0
  105. package/elements/rolling-number.js +56 -0
  106. package/elements/rolling-number.js.map +1 -0
  107. package/elements/scroll-box.d.ts +2 -2
  108. package/elements/scroll-box.d.ts.map +1 -1
  109. package/elements/scroll-box.js +4 -5
  110. package/elements/scroll-box.js.map +1 -1
  111. package/elements/segmented.d.ts +3 -20
  112. package/elements/segmented.d.ts.map +1 -1
  113. package/elements/segmented.js +4 -191
  114. package/elements/segmented.js.map +1 -1
  115. package/elements/slider.d.ts +2 -20
  116. package/elements/slider.d.ts.map +1 -1
  117. package/elements/slider.js +4 -261
  118. package/elements/slider.js.map +1 -1
  119. package/elements/sort-box.d.ts +1 -2
  120. package/elements/sort-box.d.ts.map +1 -1
  121. package/elements/sort-box.js +4 -15
  122. package/elements/sort-box.js.map +1 -1
  123. package/elements/space.d.ts +2 -4
  124. package/elements/space.d.ts.map +1 -1
  125. package/elements/space.js +4 -37
  126. package/elements/space.js.map +1 -1
  127. package/elements/switch.d.ts +2 -11
  128. package/elements/switch.d.ts.map +1 -1
  129. package/elements/switch.js +5 -134
  130. package/elements/switch.js.map +1 -1
  131. package/elements/tag.d.ts +3 -16
  132. package/elements/tag.d.ts.map +1 -1
  133. package/elements/tag.js +4 -133
  134. package/elements/tag.js.map +1 -1
  135. package/elements/timeline.d.ts.map +1 -1
  136. package/elements/timeline.js +0 -1
  137. package/elements/timeline.js.map +1 -1
  138. package/elements/toast.js +1 -1
  139. package/elements/wait.js +1 -1
  140. package/helper/error.js +2 -39
  141. package/helper/error.js.map +1 -1
  142. package/helper/webapp.d.ts +4 -5
  143. package/helper/webapp.d.ts.map +1 -1
  144. package/helper/webapp.js +5 -11
  145. package/helper/webapp.js.map +1 -1
  146. package/lib/animations.d.ts +1 -10
  147. package/lib/animations.d.ts.map +1 -1
  148. package/lib/animations.js +1 -29
  149. package/lib/animations.js.map +1 -1
  150. package/lib/cache.d.ts +1 -18
  151. package/lib/cache.d.ts.map +1 -1
  152. package/lib/cache.js +1 -62
  153. package/lib/cache.js.map +1 -1
  154. package/lib/color.d.ts +1 -37
  155. package/lib/color.d.ts.map +1 -1
  156. package/lib/color.js +1 -98
  157. package/lib/color.js.map +1 -1
  158. package/lib/decorators.d.ts +2 -0
  159. package/lib/decorators.d.ts.map +1 -0
  160. package/lib/decorators.js +2 -0
  161. package/lib/decorators.js.map +1 -0
  162. package/lib/easing.d.ts +2 -0
  163. package/lib/easing.d.ts.map +1 -0
  164. package/lib/easing.js +2 -0
  165. package/lib/easing.js.map +1 -0
  166. package/lib/element.d.ts +1 -18
  167. package/lib/element.d.ts.map +1 -1
  168. package/lib/element.js +1 -131
  169. package/lib/element.js.map +1 -1
  170. package/lib/encode.d.ts +1 -10
  171. package/lib/encode.d.ts.map +1 -1
  172. package/lib/encode.js +1 -48
  173. package/lib/encode.js.map +1 -1
  174. package/lib/hotkeys.d.ts +1 -43
  175. package/lib/hotkeys.d.ts.map +1 -1
  176. package/lib/hotkeys.js +1 -247
  177. package/lib/hotkeys.js.map +1 -1
  178. package/lib/icons.d.ts +1 -114
  179. package/lib/icons.d.ts.map +1 -1
  180. package/lib/icons.js +1 -90
  181. package/lib/icons.js.map +1 -1
  182. package/lib/image.d.ts +1 -39
  183. package/lib/image.d.ts.map +1 -1
  184. package/lib/image.js +1 -140
  185. package/lib/image.js.map +1 -1
  186. package/lib/locale.d.ts +1 -87
  187. package/lib/locale.d.ts.map +1 -1
  188. package/lib/locale.js +1 -8
  189. package/lib/locale.js.map +1 -1
  190. package/lib/map.d.ts +1 -8
  191. package/lib/map.d.ts.map +1 -1
  192. package/lib/map.js +1 -31
  193. package/lib/map.js.map +1 -1
  194. package/lib/number.d.ts +1 -94
  195. package/lib/number.d.ts.map +1 -1
  196. package/lib/number.js +1 -169
  197. package/lib/number.js.map +1 -1
  198. package/lib/patterns.d.ts +1 -9
  199. package/lib/patterns.d.ts.map +1 -1
  200. package/lib/patterns.js +1 -11
  201. package/lib/patterns.js.map +1 -1
  202. package/lib/styles.d.ts +1 -4
  203. package/lib/styles.d.ts.map +1 -1
  204. package/lib/styles.js +1 -28
  205. package/lib/styles.js.map +1 -1
  206. package/lib/theme.d.ts +1 -85
  207. package/lib/theme.d.ts.map +1 -1
  208. package/lib/theme.js +6 -70
  209. package/lib/theme.js.map +1 -1
  210. package/lib/time.d.ts +1 -81
  211. package/lib/time.d.ts.map +1 -1
  212. package/lib/time.js +1 -255
  213. package/lib/time.js.map +1 -1
  214. package/lib/timer.d.ts +1 -25
  215. package/lib/timer.d.ts.map +1 -1
  216. package/lib/timer.js +1 -106
  217. package/lib/timer.js.map +1 -1
  218. package/lib/types.d.ts +1 -13
  219. package/lib/types.d.ts.map +1 -1
  220. package/lib/types.js +1 -16
  221. package/lib/types.js.map +1 -1
  222. package/lib/utils.d.ts +1 -79
  223. package/lib/utils.d.ts.map +1 -1
  224. package/lib/utils.js +1 -240
  225. package/lib/utils.js.map +1 -1
  226. package/locales/en.d.ts +1 -37
  227. package/locales/en.d.ts.map +1 -1
  228. package/locales/en.js +1 -36
  229. package/locales/en.js.map +1 -1
  230. package/locales/zh.d.ts +1 -3
  231. package/locales/zh.d.ts.map +1 -1
  232. package/locales/zh.js +1 -37
  233. package/locales/zh.js.map +1 -1
  234. package/package.json +4 -6
  235. package/patterns/console.d.ts +1 -1
  236. package/patterns/form.d.ts +5 -3
  237. package/patterns/form.d.ts.map +1 -1
  238. package/patterns/form.js +18 -5
  239. package/patterns/form.js.map +1 -1
  240. package/react/DyBadge.d.ts +1 -9
  241. package/react/DyBadge.js +1 -1
  242. package/react/DyBanner.d.ts +1 -6
  243. package/react/DyBanner.js +1 -1
  244. package/react/DyButton.d.ts +1 -15
  245. package/react/DyButton.js +1 -1
  246. package/react/DyCheckbox.d.ts +1 -7
  247. package/react/DyCheckbox.js +1 -1
  248. package/react/DyCheckboxGroup.d.ts +1 -7
  249. package/react/DyCheckboxGroup.js +1 -1
  250. package/react/DyCoachMark.d.ts +0 -5
  251. package/react/DyCoachMark.js +1 -1
  252. package/react/DyCodeBlock.d.ts +1 -5
  253. package/react/DyCodeBlock.js +1 -1
  254. package/react/DyCollapse.d.ts +1 -5
  255. package/react/DyCollapse.js +1 -1
  256. package/react/DyCollapsePanel.d.ts +1 -6
  257. package/react/DyCollapsePanel.js +1 -1
  258. package/react/DyCompartment.d.ts +1 -3
  259. package/react/DyCompartment.js +1 -1
  260. package/react/DyCountdown.d.ts +1 -5
  261. package/react/DyCountdown.js +1 -1
  262. package/react/DyDivider.d.ts +1 -6
  263. package/react/DyDivider.js +1 -1
  264. package/react/DyDrawer.d.ts +1 -21
  265. package/react/DyDrawer.js +1 -1
  266. package/react/DyEmpty.d.ts +1 -5
  267. package/react/DyEmpty.js +1 -1
  268. package/react/DyGroupedPicker.d.ts +27 -0
  269. package/react/DyGroupedPicker.js +22 -0
  270. package/react/DyInput.d.ts +1 -22
  271. package/react/DyInput.js +1 -1
  272. package/react/DyLegend.d.ts +0 -4
  273. package/react/DyLegend.js +1 -1
  274. package/react/DyLetters.d.ts +15 -0
  275. package/react/{DyListOutside.js → DyLetters.js} +4 -4
  276. package/react/DyList.d.ts +0 -13
  277. package/react/DyList.js +1 -1
  278. package/react/DyOptions.d.ts +1 -5
  279. package/react/DyOptions.js +1 -1
  280. package/react/DyPatForm.d.ts +1 -0
  281. package/react/DyPlaceholder.d.ts +1 -10
  282. package/react/DyPlaceholder.js +1 -1
  283. package/react/DyRadio.d.ts +1 -6
  284. package/react/DyRadio.js +1 -1
  285. package/react/DyRadioGroup.d.ts +1 -7
  286. package/react/DyRadioGroup.js +1 -1
  287. package/react/DyRate.d.ts +1 -7
  288. package/react/DyRate.js +1 -1
  289. package/react/DyRollingNumber.d.ts +15 -0
  290. package/react/{DyListItem.js → DyRollingNumber.js} +5 -5
  291. package/react/DySegmented.d.ts +1 -8
  292. package/react/DySegmented.js +1 -1
  293. package/react/DySlider.d.ts +1 -12
  294. package/react/DySlider.js +1 -1
  295. package/react/DySortItem.d.ts +1 -3
  296. package/react/DySortItem.js +1 -1
  297. package/react/DySpace.d.ts +1 -4
  298. package/react/DySpace.js +1 -1
  299. package/react/DySwitch.d.ts +1 -7
  300. package/react/DySwitch.js +1 -1
  301. package/react/DyTag.d.ts +1 -9
  302. package/react/DyTag.js +1 -1
  303. package/svelte/badge.d.ts +0 -8
  304. package/svelte/banner.d.ts +0 -5
  305. package/svelte/button.d.ts +0 -14
  306. package/svelte/checkbox.d.ts +0 -6
  307. package/svelte/coach-mark.d.ts +0 -5
  308. package/svelte/code-block.d.ts +0 -4
  309. package/svelte/collapse.d.ts +0 -4
  310. package/svelte/compartment.d.ts +0 -2
  311. package/svelte/countdown.d.ts +0 -4
  312. package/svelte/divider.d.ts +0 -5
  313. package/svelte/drawer.d.ts +0 -20
  314. package/svelte/empty.d.ts +0 -4
  315. package/svelte/grouped-picker.d.ts +19 -0
  316. package/svelte/grouped-picker.js +2 -0
  317. package/svelte/legend.d.ts +0 -4
  318. package/svelte/letters.d.ts +9 -0
  319. package/svelte/letters.js +2 -0
  320. package/svelte/list.d.ts +4 -11
  321. package/svelte/options.d.ts +0 -4
  322. package/svelte/pat-form.d.ts +1 -0
  323. package/svelte/placeholder.d.ts +0 -9
  324. package/svelte/radio.d.ts +0 -6
  325. package/svelte/rate.d.ts +0 -6
  326. package/svelte/rolling-number.d.ts +9 -0
  327. package/svelte/rolling-number.js +2 -0
  328. package/svelte/segmented.d.ts +0 -7
  329. package/svelte/slider.d.ts +0 -11
  330. package/svelte/space.d.ts +0 -3
  331. package/svelte/switch.d.ts +0 -6
  332. package/svelte/tag.d.ts +0 -8
  333. package/vue/DyBadge.vue +2 -8
  334. package/vue/DyBanner.vue +4 -6
  335. package/vue/DyButton.vue +2 -14
  336. package/vue/DyCheckbox.vue +4 -7
  337. package/vue/DyCheckboxGroup.vue +4 -7
  338. package/vue/DyCoachMark.vue +4 -8
  339. package/vue/DyCodeBlock.vue +2 -4
  340. package/vue/DyCollapse.vue +2 -4
  341. package/vue/DyCollapsePanel.vue +4 -6
  342. package/vue/DyCompartment.vue +2 -2
  343. package/vue/DyCountdown.vue +4 -5
  344. package/vue/DyDivider.vue +2 -5
  345. package/vue/DyDrawer.vue +4 -21
  346. package/vue/DyEmpty.vue +2 -4
  347. package/vue/DyGroupedPicker.vue +53 -0
  348. package/vue/DyInput.vue +4 -22
  349. package/vue/DyLegend.vue +2 -6
  350. package/vue/{DyListOutside.vue → DyLetters.vue} +8 -8
  351. package/vue/DyList.vue +4 -16
  352. package/vue/DyOptions.vue +2 -4
  353. package/vue/DyPatForm.vue +2 -2
  354. package/vue/DyPlaceholder.vue +2 -9
  355. package/vue/DyRadio.vue +4 -6
  356. package/vue/DyRadioGroup.vue +4 -7
  357. package/vue/DyRate.vue +4 -7
  358. package/vue/DyRollingNumber.vue +42 -0
  359. package/vue/DySegmented.vue +4 -8
  360. package/vue/DySlider.vue +4 -12
  361. package/vue/DySortItem.vue +2 -2
  362. package/vue/DySpace.vue +2 -3
  363. package/vue/DySwitch.vue +4 -7
  364. package/vue/DyTag.vue +4 -9
  365. package/elements/flow.d.ts +0 -52
  366. package/elements/flow.d.ts.map +0 -1
  367. package/elements/flow.js +0 -703
  368. package/elements/flow.js.map +0 -1
  369. package/elements/map.d.ts +0 -48
  370. package/elements/map.d.ts.map +0 -1
  371. package/elements/map.js +0 -396
  372. package/elements/map.js.map +0 -1
  373. package/react/DyFlow.d.ts +0 -24
  374. package/react/DyFlow.js +0 -18
  375. package/react/DyFlowCanvas.d.ts +0 -29
  376. package/react/DyFlowCanvas.js +0 -18
  377. package/react/DyListItem.d.ts +0 -24
  378. package/react/DyListOutside.d.ts +0 -15
  379. package/react/DyMap.d.ts +0 -32
  380. package/react/DyMap.js +0 -18
  381. package/svelte/flow.d.ts +0 -18
  382. package/svelte/flow.js +0 -2
  383. package/svelte/map.d.ts +0 -26
  384. package/svelte/map.js +0 -2
  385. package/vue/DyFlow.vue +0 -49
  386. package/vue/DyFlowCanvas.vue +0 -53
  387. package/vue/DyListItem.vue +0 -48
  388. package/vue/DyMap.vue +0 -56
@@ -2,11 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunEmptyElement } from '../elements/empty';
4
4
  export * from '../elements/empty';
5
- export type DyEmptyProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunEmptyElement> & {
6
- icon?: DuoyunEmptyElement['icon'];
7
- text?: DuoyunEmptyElement['text'];
8
- slotName?: DuoyunEmptyElement['slotName'];
9
- };
5
+ export type DyEmptyProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunEmptyElement> & {};
10
6
  export type DyEmptyExpose = {};
11
7
  declare global {
12
8
  namespace JSX {
package/react/DyEmpty.js CHANGED
@@ -9,7 +9,7 @@ export const DyEmpty = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["icon", "text", "slotName"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -0,0 +1,27 @@
1
+ import { HTMLAttributes, RefAttributes } from 'react';
2
+ import { ForwardRefExoticComponent } from 'react';
3
+ import { DuoyunGroupedPickerElement } from '../elements/grouped-picker';
4
+ export * from '../elements/grouped-picker';
5
+ export type DyGroupedPickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunGroupedPickerElement> & {
6
+ placeholder?: DuoyunGroupedPickerElement['placeholder'];
7
+ disabled?: DuoyunGroupedPickerElement['disabled'];
8
+ borderless?: DuoyunGroupedPickerElement['borderless'];
9
+ fit?: DuoyunGroupedPickerElement['fit'];
10
+ active?: DuoyunGroupedPickerElement['active'];
11
+ options?: DuoyunGroupedPickerElement['options'];
12
+ value?: DuoyunGroupedPickerElement['value'];
13
+ renderValue?: DuoyunGroupedPickerElement['renderValue'];
14
+ 'onchange'?: (event: CustomEvent<Parameters<DuoyunGroupedPickerElement['change']>[0]>) => void;
15
+ };
16
+ export type DyGroupedPickerExpose = {
17
+ showPicker: DuoyunGroupedPickerElement['showPicker'];
18
+ };
19
+ declare global {
20
+ namespace JSX {
21
+ interface IntrinsicElements {
22
+ 'dy-grouped-picker': DyGroupedPickerProps;
23
+ }
24
+ }
25
+ }
26
+ export declare const DyGroupedPicker: ForwardRefExoticComponent<Omit<DyGroupedPickerProps, "ref"> & RefAttributes<DyGroupedPickerExpose>>;
27
+ export default DyGroupedPicker;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
3
+ export * from '../elements/grouped-picker';
4
+ export const DyGroupedPicker = forwardRef(function (props, ref) {
5
+ const elementRef = useRef(null);
6
+ useImperativeHandle(ref, () => {
7
+ return {
8
+ showPicker(...args) {
9
+ return elementRef.current.showPicker(...args);
10
+ },
11
+ };
12
+ }, []);
13
+ // React Bug?
14
+ useLayoutEffect(() => {
15
+ const element = elementRef.current;
16
+ ["placeholder", "disabled", "borderless", "fit", "active", "options", "value", "renderValue"].map(name => {
17
+ element[name] = props[name];
18
+ });
19
+ }, []);
20
+ return React.createElement("dy-grouped-picker", { ref: elementRef, ...props });
21
+ });
22
+ export default DyGroupedPicker;
@@ -2,28 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunInputElement } from '../elements/input';
4
4
  export * from '../elements/input';
5
- export type DyInputProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunInputElement> & {
6
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunInputElement['change']>[0]>) => void;
7
- 'onclear'?: (event: CustomEvent<Parameters<DuoyunInputElement['clear']>[0]>) => void;
8
- name?: DuoyunInputElement['name'];
9
- value?: DuoyunInputElement['value'];
10
- type?: DuoyunInputElement['type'];
11
- placeholder?: DuoyunInputElement['placeholder'];
12
- spellcheck?: DuoyunInputElement['spellcheck'];
13
- required?: DuoyunInputElement['required'];
14
- disabled?: DuoyunInputElement['disabled'];
15
- autofocus?: DuoyunInputElement['autofocus'];
16
- clearable?: DuoyunInputElement['clearable'];
17
- alwayclearable?: DuoyunInputElement['alwayclearable'];
18
- rows?: DuoyunInputElement['rows'];
19
- step?: DuoyunInputElement['step'];
20
- min?: DuoyunInputElement['min'];
21
- max?: DuoyunInputElement['max'];
22
- dataList?: DuoyunInputElement['dataList'];
23
- icon?: DuoyunInputElement['icon'];
24
- filled?: DuoyunInputElement['filled'];
25
- composing?: DuoyunInputElement['composing'];
26
- };
5
+ export type DyInputProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunInputElement> & {};
27
6
  export type DyInputExpose = {};
28
7
  declare global {
29
8
  namespace JSX {
package/react/DyInput.js CHANGED
@@ -9,7 +9,7 @@ export const DyInput = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["name", "value", "type", "placeholder", "spellcheck", "required", "disabled", "autofocus", "clearable", "alwayclearable", "rows", "step", "min", "max", "dataList", "icon", "filled", "composing"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -7,10 +7,6 @@ export type DyLegendProps = HTMLAttributes<HTMLDivElement> & RefAttributes<Duoyu
7
7
  legends?: DuoyunLegendElement['legends'];
8
8
  value?: DuoyunLegendElement['value'];
9
9
  'onchange'?: (event: CustomEvent<Parameters<DuoyunLegendElement['change']>[0]>) => void;
10
- topOverflow?: DuoyunLegendElement['topOverflow'];
11
- rightOverflow?: DuoyunLegendElement['rightOverflow'];
12
- bottomOverflow?: DuoyunLegendElement['bottomOverflow'];
13
- leftOverflow?: DuoyunLegendElement['leftOverflow'];
14
10
  };
15
11
  export type DyLegendExpose = {};
16
12
  declare global {
package/react/DyLegend.js CHANGED
@@ -9,7 +9,7 @@ export const DyLegend = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["colors", "legends", "value", "topOverflow", "rightOverflow", "bottomOverflow", "leftOverflow"].map(name => {
12
+ ["colors", "legends", "value"].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, RefAttributes } from 'react';
2
+ import { ForwardRefExoticComponent } from 'react';
3
+ import { DuoyunLettersElement } from '../elements/letters';
4
+ export * from '../elements/letters';
5
+ export type DyLettersProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunLettersElement> & {};
6
+ export type DyLettersExpose = {};
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'dy-letters': DyLettersProps;
11
+ }
12
+ }
13
+ }
14
+ export declare const DyLetters: ForwardRefExoticComponent<Omit<DyLettersProps, "ref"> & RefAttributes<DyLettersExpose>>;
15
+ export default DyLetters;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
3
- export * from '../elements/list';
4
- export const DyListOutside = forwardRef(function (props, ref) {
3
+ export * from '../elements/letters';
4
+ export const DyLetters = forwardRef(function (props, ref) {
5
5
  const elementRef = useRef(null);
6
6
  useImperativeHandle(ref, () => {
7
7
  return {};
@@ -13,6 +13,6 @@ export const DyListOutside = forwardRef(function (props, ref) {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
16
- return React.createElement("dy-list-outside", { ref: elementRef, ...props });
16
+ return React.createElement("dy-letters", { ref: elementRef, ...props });
17
17
  });
18
- export default DyListOutside;
18
+ export default DyLetters;
package/react/DyList.d.ts CHANGED
@@ -3,20 +3,7 @@ import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunListElement } from '../elements/list';
4
4
  export * from '../elements/list';
5
5
  export type DyListProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunListElement> & {
6
- /**@deprecated */
7
- data?: DuoyunListElement['data'];
8
- items?: DuoyunListElement['items'];
9
- 'onbackward'?: (event: CustomEvent<Parameters<DuoyunListElement['backward']>[0]>) => void;
10
- key?: DuoyunListElement['key'];
11
6
  renderItem?: DuoyunListElement['renderItem'];
12
- debug?: DuoyunListElement['debug'];
13
- infinite?: DuoyunListElement['infinite'];
14
- getKey?: DuoyunListElement['getKey'];
15
- 'onforward'?: (event: CustomEvent<Parameters<DuoyunListElement['forward']>[0]>) => void;
16
- 'onitemshow'?: (event: CustomEvent<Parameters<DuoyunListElement['itemshow']>[0]>) => void;
17
- persistentState?: DuoyunListElement['persistentState'];
18
- persistentState?: DuoyunListElement['persistentState'];
19
- scrollContainer?: DuoyunListElement['scrollContainer'];
20
7
  };
21
8
  export type DyListExpose = {};
22
9
  declare global {
package/react/DyList.js CHANGED
@@ -9,7 +9,7 @@ export const DyList = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["data", "items", "key", "renderItem", "debug", "infinite", "getKey", "persistentState", "persistentState", "scrollContainer"].map(name => {
12
+ ["renderItem"].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,11 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunOptionsElement } from '../elements/options';
4
4
  export * from '../elements/options';
5
- export type DyOptionsProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunOptionsElement> & {
6
- searchable?: DuoyunOptionsElement['searchable'];
7
- options?: DuoyunOptionsElement['options'];
8
- adder?: DuoyunOptionsElement['adder'];
9
- };
5
+ export type DyOptionsProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunOptionsElement> & {};
10
6
  export type DyOptionsExpose = {};
11
7
  declare global {
12
8
  namespace JSX {
@@ -9,7 +9,7 @@ export const DyOptions = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["searchable", "options", "adder"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -5,6 +5,7 @@ export * from '../patterns/form';
5
5
  export type DyPatFormProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DyPatFormElement> & {
6
6
  data?: DyPatFormElement['data'];
7
7
  formItems?: DyPatFormElement['formItems'];
8
+ 'onchange'?: (event: CustomEvent<Parameters<DyPatFormElement['change']>[0]>) => void;
8
9
  valid?: DyPatFormElement['valid'];
9
10
  };
10
11
  export type DyPatFormExpose = {};
@@ -2,16 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunPlaceholderElement } from '../elements/placeholder';
4
4
  export * from '../elements/placeholder';
5
- export type DyPlaceholderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunPlaceholderElement> & {
6
- /**@deprecated */
7
- mode?: DuoyunPlaceholderElement['mode'];
8
- type?: DuoyunPlaceholderElement['type'];
9
- center?: DuoyunPlaceholderElement['center'];
10
- width?: DuoyunPlaceholderElement['width'];
11
- color?: DuoyunPlaceholderElement['color'];
12
- maxLine?: DuoyunPlaceholderElement['maxLine'];
13
- minLine?: DuoyunPlaceholderElement['minLine'];
14
- };
5
+ export type DyPlaceholderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunPlaceholderElement> & {};
15
6
  export type DyPlaceholderExpose = {};
16
7
  declare global {
17
8
  namespace JSX {
@@ -9,7 +9,7 @@ export const DyPlaceholder = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["mode", "type", "center", "width", "color", "maxLine", "minLine"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,12 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunRadioElement } from '../elements/radio';
4
4
  export * from '../elements/radio';
5
- export type DyRadioProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioElement> & {
6
- checked?: DuoyunRadioElement['checked'];
7
- disabled?: DuoyunRadioElement['disabled'];
8
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunRadioElement['change']>[0]>) => void;
9
- value?: DuoyunRadioElement['value'];
10
- };
5
+ export type DyRadioProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioElement> & {};
11
6
  export type DyRadioExpose = {};
12
7
  declare global {
13
8
  namespace JSX {
package/react/DyRadio.js CHANGED
@@ -9,7 +9,7 @@ export const DyRadio = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["checked", "disabled", "value"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,13 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunRadioGroupElement } from '../elements/radio';
4
4
  export * from '../elements/radio';
5
- export type DyRadioGroupProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioGroupElement> & {
6
- orientation?: DuoyunRadioGroupElement['orientation'];
7
- disabled?: DuoyunRadioGroupElement['disabled'];
8
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunRadioGroupElement['change']>[0]>) => void;
9
- value?: DuoyunRadioGroupElement['value'];
10
- options?: DuoyunRadioGroupElement['options'];
11
- };
5
+ export type DyRadioGroupProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioGroupElement> & {};
12
6
  export type DyRadioGroupExpose = {};
13
7
  declare global {
14
8
  namespace JSX {
@@ -9,7 +9,7 @@ export const DyRadioGroup = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["orientation", "disabled", "value", "options"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
package/react/DyRate.d.ts CHANGED
@@ -2,13 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunRateElement } from '../elements/rate';
4
4
  export * from '../elements/rate';
5
- export type DyRateProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRateElement> & {
6
- value?: DuoyunRateElement['value'];
7
- total?: DuoyunRateElement['total'];
8
- disabled?: DuoyunRateElement['disabled'];
9
- readonly?: DuoyunRateElement['readonly'];
10
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunRateElement['change']>[0]>) => void;
11
- };
5
+ export type DyRateProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRateElement> & {};
12
6
  export type DyRateExpose = {};
13
7
  declare global {
14
8
  namespace JSX {
package/react/DyRate.js CHANGED
@@ -9,7 +9,7 @@ export const DyRate = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["value", "total", "disabled", "readonly"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes, RefAttributes } from 'react';
2
+ import { ForwardRefExoticComponent } from 'react';
3
+ import { DuoyunRollingNumberElement } from '../elements/rolling-number';
4
+ export * from '../elements/rolling-number';
5
+ export type DyRollingNumberProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRollingNumberElement> & {};
6
+ export type DyRollingNumberExpose = {};
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'dy-rolling-number': DyRollingNumberProps;
11
+ }
12
+ }
13
+ }
14
+ export declare const DyRollingNumber: ForwardRefExoticComponent<Omit<DyRollingNumberProps, "ref"> & RefAttributes<DyRollingNumberExpose>>;
15
+ export default DyRollingNumber;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
3
- export * from '../elements/list';
4
- export const DyListItem = forwardRef(function (props, ref) {
3
+ export * from '../elements/rolling-number';
4
+ export const DyRollingNumber = forwardRef(function (props, ref) {
5
5
  const elementRef = useRef(null);
6
6
  useImperativeHandle(ref, () => {
7
7
  return {};
@@ -9,10 +9,10 @@ export const DyListItem = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["visible", "intersectionRoot", "intersectionRootMargin", "item", "renderItem", "key"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
16
- return React.createElement("dy-list-item", { ref: elementRef, ...props });
16
+ return React.createElement("dy-rolling-number", { ref: elementRef, ...props });
17
17
  });
18
- export default DyListItem;
18
+ export default DyRollingNumber;
@@ -2,14 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunSegmentedElement } from '../elements/segmented';
4
4
  export * from '../elements/segmented';
5
- export type DySegmentedProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSegmentedElement> & {
6
- disabled?: DuoyunSegmentedElement['disabled'];
7
- small?: DuoyunSegmentedElement['small'];
8
- animating?: DuoyunSegmentedElement['animating'];
9
- options?: DuoyunSegmentedElement['options'];
10
- value?: DuoyunSegmentedElement['value'];
11
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunSegmentedElement['change']>[0]>) => void;
12
- };
5
+ export type DySegmentedProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSegmentedElement> & {};
13
6
  export type DySegmentedExpose = {};
14
7
  declare global {
15
8
  namespace JSX {
@@ -9,7 +9,7 @@ export const DySegmented = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["disabled", "small", "animating", "options", "value"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,18 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunSliderElement } from '../elements/slider';
4
4
  export * from '../elements/slider';
5
- export type DySliderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSliderElement> & {
6
- label?: DuoyunSliderElement['label'];
7
- orientation?: DuoyunSliderElement['orientation'];
8
- editable?: DuoyunSliderElement['editable'];
9
- disabled?: DuoyunSliderElement['disabled'];
10
- value?: DuoyunSliderElement['value'];
11
- min?: DuoyunSliderElement['min'];
12
- max?: DuoyunSliderElement['max'];
13
- step?: DuoyunSliderElement['step'];
14
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunSliderElement['change']>[0]>) => void;
15
- 'onend'?: (event: CustomEvent<Parameters<DuoyunSliderElement['end']>[0]>) => void;
16
- };
5
+ export type DySliderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSliderElement> & {};
17
6
  export type DySliderExpose = {};
18
7
  declare global {
19
8
  namespace JSX {
package/react/DySlider.js CHANGED
@@ -9,7 +9,7 @@ export const DySlider = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["label", "orientation", "editable", "disabled", "value", "min", "max", "step"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,9 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunSortItemElement } from '../elements/sort-box';
4
4
  export * from '../elements/sort-box';
5
- export type DySortItemProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSortItemElement> & {
6
- handle?: DuoyunSortItemElement['handle'];
7
- };
5
+ export type DySortItemProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSortItemElement> & {};
8
6
  export type DySortItemExpose = {};
9
7
  declare global {
10
8
  namespace JSX {
@@ -9,7 +9,7 @@ export const DySortItem = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["handle"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,10 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunSpaceElement } from '../elements/space';
4
4
  export * from '../elements/space';
5
- export type DySpaceProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSpaceElement> & {
6
- size?: DuoyunSpaceElement['size'];
7
- orientation?: DuoyunSpaceElement['orientation'];
8
- };
5
+ export type DySpaceProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSpaceElement> & {};
9
6
  export type DySpaceExpose = {};
10
7
  declare global {
11
8
  namespace JSX {
package/react/DySpace.js CHANGED
@@ -9,7 +9,7 @@ export const DySpace = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["size", "orientation"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
@@ -2,13 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunSwitchElement } from '../elements/switch';
4
4
  export * from '../elements/switch';
5
- export type DySwitchProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSwitchElement> & {
6
- disabled?: DuoyunSwitchElement['disabled'];
7
- checked?: DuoyunSwitchElement['checked'];
8
- value?: DuoyunSwitchElement['value'];
9
- neutral?: DuoyunSwitchElement['neutral'];
10
- 'onchange'?: (event: CustomEvent<Parameters<DuoyunSwitchElement['change']>[0]>) => void;
11
- };
5
+ export type DySwitchProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunSwitchElement> & {};
12
6
  export type DySwitchExpose = {};
13
7
  declare global {
14
8
  namespace JSX {
package/react/DySwitch.js CHANGED
@@ -9,7 +9,7 @@ export const DySwitch = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["disabled", "checked", "value", "neutral"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
package/react/DyTag.d.ts CHANGED
@@ -2,15 +2,7 @@ import { HTMLAttributes, RefAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { DuoyunTagElement } from '../elements/tag';
4
4
  export * from '../elements/tag';
5
- export type DyTagProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunTagElement> & {
6
- closable?: DuoyunTagElement['closable'];
7
- color?: DuoyunTagElement['color'];
8
- /**@deprecated */
9
- mode?: DuoyunTagElement['mode'];
10
- type?: DuoyunTagElement['type'];
11
- small?: DuoyunTagElement['small'];
12
- 'onclose'?: (event: CustomEvent<Parameters<DuoyunTagElement['close']>[0]>) => void;
13
- };
5
+ export type DyTagProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunTagElement> & {};
14
6
  export type DyTagExpose = {};
15
7
  declare global {
16
8
  namespace JSX {
package/react/DyTag.js CHANGED
@@ -9,7 +9,7 @@ export const DyTag = forwardRef(function (props, ref) {
9
9
  // React Bug?
10
10
  useLayoutEffect(() => {
11
11
  const element = elementRef.current;
12
- ["closable", "color", "mode", "type", "small"].map(name => {
12
+ [].map(name => {
13
13
  element[name] = props[name];
14
14
  });
15
15
  }, []);
package/svelte/badge.d.ts CHANGED
@@ -1,14 +1,6 @@
1
1
  import type { HTMLAttributes } from "svelte/elements";
2
- import { DuoyunBadgeElement } from '../elements/badge';
3
2
  export * from '../elements/badge';
4
3
  interface DyBadgeProps extends HTMLAttributes<HTMLElement> {
5
- color?: DuoyunBadgeElement['color'];
6
- count?: DuoyunBadgeElement['count'];
7
- dot?: DuoyunBadgeElement['dot'];
8
- small?: DuoyunBadgeElement['small'];
9
- max?: DuoyunBadgeElement['max'];
10
- inline?: DuoyunBadgeElement['inline'];
11
- icon?: DuoyunBadgeElement['icon'];
12
4
  }
13
5
  declare module "svelte/elements" {
14
6
  interface SvelteHTMLElements {
@@ -1,11 +1,6 @@
1
1
  import type { HTMLAttributes } from "svelte/elements";
2
- import { DuoyunBannerElement } from '../elements/banner';
3
2
  export * from '../elements/banner';
4
3
  interface DyBannerProps extends HTMLAttributes<HTMLElement> {
5
- closable?: DuoyunBannerElement['closable'];
6
- status?: DuoyunBannerElement['status'];
7
- action?: DuoyunBannerElement['action'];
8
- 'on:close'?: (event: CustomEvent<Parameters<DuoyunBannerElement['close']>[0]>) => void;
9
4
  }
10
5
  declare module "svelte/elements" {
11
6
  interface SvelteHTMLElements {
@@ -1,20 +1,6 @@
1
1
  import type { HTMLAttributes } from "svelte/elements";
2
- import { DuoyunButtonElement } from '../elements/button';
3
2
  export * from '../elements/button';
4
3
  interface DyButtonProps extends HTMLAttributes<HTMLElement> {
5
- type?: DuoyunButtonElement['type'];
6
- color?: DuoyunButtonElement['color'];
7
- small?: DuoyunButtonElement['small'];
8
- round?: DuoyunButtonElement['round'];
9
- square?: DuoyunButtonElement['square'];
10
- disabled?: DuoyunButtonElement['disabled'];
11
- borderless?: DuoyunButtonElement['borderless'];
12
- dropdown?: DuoyunButtonElement['dropdown'];
13
- route?: DuoyunButtonElement['route'];
14
- params?: DuoyunButtonElement['params'];
15
- query?: DuoyunButtonElement['query'];
16
- icon?: DuoyunButtonElement['icon'];
17
- active?: DuoyunButtonElement['active'];
18
4
  }
19
5
  declare module "svelte/elements" {
20
6
  interface SvelteHTMLElements {
@@ -1,12 +1,6 @@
1
1
  import type { HTMLAttributes } from "svelte/elements";
2
- import { DuoyunCheckboxGroupElement } from '../elements/checkbox';
3
2
  export * from '../elements/checkbox';
4
3
  interface DyCheckboxGroupProps extends HTMLAttributes<HTMLElement> {
5
- orientation?: DuoyunCheckboxGroupElement['orientation'];
6
- disabled?: DuoyunCheckboxGroupElement['disabled'];
7
- 'on:change'?: (event: CustomEvent<Parameters<DuoyunCheckboxGroupElement['change']>[0]>) => void;
8
- value?: DuoyunCheckboxGroupElement['value'];
9
- options?: DuoyunCheckboxGroupElement['options'];
10
4
  }
11
5
  declare module "svelte/elements" {
12
6
  interface SvelteHTMLElements {
@@ -6,11 +6,6 @@ interface DyCoachMarkProps extends HTMLAttributes<HTMLElement> {
6
6
  width?: DuoyunCoachMarkElement['width'];
7
7
  size?: DuoyunCoachMarkElement['size'];
8
8
  color?: DuoyunCoachMarkElement['color'];
9
- 'on:show'?: (event: CustomEvent<Parameters<DuoyunCoachMarkElement['show']>[0]>) => void;
10
- 'on:hide'?: (event: CustomEvent<Parameters<DuoyunCoachMarkElement['hide']>[0]>) => void;
11
- visible?: DuoyunCoachMarkElement['visible'];
12
- intersectionRoot?: DuoyunCoachMarkElement['intersectionRoot'];
13
- intersectionRootMargin?: DuoyunCoachMarkElement['intersectionRootMargin'];
14
9
  }
15
10
  declare module "svelte/elements" {
16
11
  interface SvelteHTMLElements {