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.
- package/elements/badge.d.ts +2 -16
- package/elements/badge.d.ts.map +1 -1
- package/elements/badge.js +4 -158
- package/elements/badge.js.map +1 -1
- package/elements/banner.d.ts +2 -17
- package/elements/banner.d.ts.map +1 -1
- package/elements/banner.js +4 -127
- package/elements/banner.js.map +1 -1
- package/elements/base/chart.d.ts +2 -2
- package/elements/base/resize.d.ts +1 -22
- package/elements/base/resize.d.ts.map +1 -1
- package/elements/base/resize.js +1 -95
- package/elements/base/resize.js.map +1 -1
- package/elements/base/scroll.d.ts +1 -8
- package/elements/base/scroll.d.ts.map +1 -1
- package/elements/base/scroll.js +1 -158
- package/elements/base/scroll.js.map +1 -1
- package/elements/base/visible.d.ts +1 -18
- package/elements/base/visible.d.ts.map +1 -1
- package/elements/base/visible.js +1 -112
- package/elements/base/visible.js.map +1 -1
- package/elements/button.d.ts +2 -24
- package/elements/button.d.ts.map +1 -1
- package/elements/button.js +7 -287
- package/elements/button.js.map +1 -1
- package/elements/checkbox.d.ts +3 -21
- package/elements/checkbox.d.ts.map +1 -1
- package/elements/checkbox.js +6 -180
- package/elements/checkbox.js.map +1 -1
- package/elements/code-block.d.ts +2 -7
- package/elements/code-block.d.ts.map +1 -1
- package/elements/code-block.js +4 -432
- package/elements/code-block.js.map +1 -1
- package/elements/collapse.d.ts +3 -29
- package/elements/collapse.d.ts.map +1 -1
- package/elements/collapse.js +6 -197
- package/elements/collapse.js.map +1 -1
- package/elements/compartment.d.ts +2 -5
- package/elements/compartment.d.ts.map +1 -1
- package/elements/compartment.js +4 -23
- package/elements/compartment.js.map +1 -1
- package/elements/contextmenu.d.ts +5 -42
- package/elements/contextmenu.d.ts.map +1 -1
- package/elements/contextmenu.js +8 -285
- package/elements/contextmenu.js.map +1 -1
- package/elements/countdown.d.ts +2 -12
- package/elements/countdown.d.ts.map +1 -1
- package/elements/countdown.js +4 -94
- package/elements/countdown.js.map +1 -1
- package/elements/divider.d.ts +2 -8
- package/elements/divider.d.ts.map +1 -1
- package/elements/divider.js +4 -129
- package/elements/divider.js.map +1 -1
- package/elements/empty.d.ts +2 -8
- package/elements/empty.d.ts.map +1 -1
- package/elements/empty.js +4 -59
- package/elements/empty.js.map +1 -1
- package/elements/grouped-picker.d.ts +29 -0
- package/elements/grouped-picker.d.ts.map +1 -0
- package/elements/grouped-picker.js +199 -0
- package/elements/grouped-picker.js.map +1 -0
- package/elements/input.d.ts +4 -36
- package/elements/input.d.ts.map +1 -1
- package/elements/input.js +6 -489
- package/elements/input.js.map +1 -1
- package/elements/letters.d.ts +4 -0
- package/elements/letters.d.ts.map +1 -0
- package/elements/letters.js +56 -0
- package/elements/letters.js.map +1 -0
- package/elements/link.d.ts +3 -5
- package/elements/link.d.ts.map +1 -1
- package/elements/link.js +6 -38
- package/elements/link.js.map +1 -1
- package/elements/list.d.ts +5 -58
- package/elements/list.d.ts.map +1 -1
- package/elements/list.js +19 -664
- package/elements/list.js.map +1 -1
- package/elements/modal.d.ts +5 -63
- package/elements/modal.d.ts.map +1 -1
- package/elements/modal.js +13 -411
- package/elements/modal.js.map +1 -1
- package/elements/options.d.ts +4 -32
- package/elements/options.d.ts.map +1 -1
- package/elements/options.js +5 -254
- package/elements/options.js.map +1 -1
- package/elements/page-loadbar.js +1 -1
- package/elements/paragraph.d.ts +2 -2
- package/elements/paragraph.d.ts.map +1 -1
- package/elements/paragraph.js +4 -45
- package/elements/paragraph.js.map +1 -1
- package/elements/placeholder.d.ts +2 -14
- package/elements/placeholder.d.ts.map +1 -1
- package/elements/placeholder.js +4 -114
- package/elements/placeholder.js.map +1 -1
- package/elements/radio.d.ts +5 -24
- package/elements/radio.d.ts.map +1 -1
- package/elements/radio.js +7 -165
- package/elements/radio.js.map +1 -1
- package/elements/rate.d.ts +2 -12
- package/elements/rate.d.ts.map +1 -1
- package/elements/rate.js +4 -142
- package/elements/rate.js.map +1 -1
- package/elements/rolling-number.d.ts +4 -0
- package/elements/rolling-number.d.ts.map +1 -0
- package/elements/rolling-number.js +56 -0
- package/elements/rolling-number.js.map +1 -0
- package/elements/scroll-box.d.ts +2 -2
- package/elements/scroll-box.d.ts.map +1 -1
- package/elements/scroll-box.js +4 -5
- package/elements/scroll-box.js.map +1 -1
- package/elements/segmented.d.ts +3 -20
- package/elements/segmented.d.ts.map +1 -1
- package/elements/segmented.js +4 -191
- package/elements/segmented.js.map +1 -1
- package/elements/slider.d.ts +2 -20
- package/elements/slider.d.ts.map +1 -1
- package/elements/slider.js +4 -261
- package/elements/slider.js.map +1 -1
- package/elements/sort-box.d.ts +1 -2
- package/elements/sort-box.d.ts.map +1 -1
- package/elements/sort-box.js +4 -15
- package/elements/sort-box.js.map +1 -1
- package/elements/space.d.ts +2 -4
- package/elements/space.d.ts.map +1 -1
- package/elements/space.js +4 -37
- package/elements/space.js.map +1 -1
- package/elements/switch.d.ts +2 -11
- package/elements/switch.d.ts.map +1 -1
- package/elements/switch.js +5 -134
- package/elements/switch.js.map +1 -1
- package/elements/tag.d.ts +3 -16
- package/elements/tag.d.ts.map +1 -1
- package/elements/tag.js +4 -133
- package/elements/tag.js.map +1 -1
- package/elements/timeline.d.ts.map +1 -1
- package/elements/timeline.js +0 -1
- package/elements/timeline.js.map +1 -1
- package/elements/toast.js +1 -1
- package/elements/wait.js +1 -1
- package/helper/error.js +2 -39
- package/helper/error.js.map +1 -1
- package/helper/webapp.d.ts +4 -5
- package/helper/webapp.d.ts.map +1 -1
- package/helper/webapp.js +5 -11
- package/helper/webapp.js.map +1 -1
- package/lib/animations.d.ts +1 -10
- package/lib/animations.d.ts.map +1 -1
- package/lib/animations.js +1 -29
- package/lib/animations.js.map +1 -1
- package/lib/cache.d.ts +1 -18
- package/lib/cache.d.ts.map +1 -1
- package/lib/cache.js +1 -62
- package/lib/cache.js.map +1 -1
- package/lib/color.d.ts +1 -37
- package/lib/color.d.ts.map +1 -1
- package/lib/color.js +1 -98
- package/lib/color.js.map +1 -1
- package/lib/decorators.d.ts +2 -0
- package/lib/decorators.d.ts.map +1 -0
- package/lib/decorators.js +2 -0
- package/lib/decorators.js.map +1 -0
- package/lib/easing.d.ts +2 -0
- package/lib/easing.d.ts.map +1 -0
- package/lib/easing.js +2 -0
- package/lib/easing.js.map +1 -0
- package/lib/element.d.ts +1 -18
- package/lib/element.d.ts.map +1 -1
- package/lib/element.js +1 -131
- package/lib/element.js.map +1 -1
- package/lib/encode.d.ts +1 -10
- package/lib/encode.d.ts.map +1 -1
- package/lib/encode.js +1 -48
- package/lib/encode.js.map +1 -1
- package/lib/hotkeys.d.ts +1 -43
- package/lib/hotkeys.d.ts.map +1 -1
- package/lib/hotkeys.js +1 -247
- package/lib/hotkeys.js.map +1 -1
- package/lib/icons.d.ts +1 -114
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +1 -90
- package/lib/icons.js.map +1 -1
- package/lib/image.d.ts +1 -39
- package/lib/image.d.ts.map +1 -1
- package/lib/image.js +1 -140
- package/lib/image.js.map +1 -1
- package/lib/locale.d.ts +1 -87
- package/lib/locale.d.ts.map +1 -1
- package/lib/locale.js +1 -8
- package/lib/locale.js.map +1 -1
- package/lib/map.d.ts +1 -8
- package/lib/map.d.ts.map +1 -1
- package/lib/map.js +1 -31
- package/lib/map.js.map +1 -1
- package/lib/number.d.ts +1 -94
- package/lib/number.d.ts.map +1 -1
- package/lib/number.js +1 -169
- package/lib/number.js.map +1 -1
- package/lib/patterns.d.ts +1 -9
- package/lib/patterns.d.ts.map +1 -1
- package/lib/patterns.js +1 -11
- package/lib/patterns.js.map +1 -1
- package/lib/styles.d.ts +1 -4
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +1 -28
- package/lib/styles.js.map +1 -1
- package/lib/theme.d.ts +1 -85
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +6 -70
- package/lib/theme.js.map +1 -1
- package/lib/time.d.ts +1 -81
- package/lib/time.d.ts.map +1 -1
- package/lib/time.js +1 -255
- package/lib/time.js.map +1 -1
- package/lib/timer.d.ts +1 -25
- package/lib/timer.d.ts.map +1 -1
- package/lib/timer.js +1 -106
- package/lib/timer.js.map +1 -1
- package/lib/types.d.ts +1 -13
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -16
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +1 -79
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -240
- package/lib/utils.js.map +1 -1
- package/locales/en.d.ts +1 -37
- package/locales/en.d.ts.map +1 -1
- package/locales/en.js +1 -36
- package/locales/en.js.map +1 -1
- package/locales/zh.d.ts +1 -3
- package/locales/zh.d.ts.map +1 -1
- package/locales/zh.js +1 -37
- package/locales/zh.js.map +1 -1
- package/package.json +4 -6
- package/patterns/console.d.ts +1 -1
- package/patterns/form.d.ts +5 -3
- package/patterns/form.d.ts.map +1 -1
- package/patterns/form.js +18 -5
- package/patterns/form.js.map +1 -1
- package/react/DyBadge.d.ts +1 -9
- package/react/DyBadge.js +1 -1
- package/react/DyBanner.d.ts +1 -6
- package/react/DyBanner.js +1 -1
- package/react/DyButton.d.ts +1 -15
- package/react/DyButton.js +1 -1
- package/react/DyCheckbox.d.ts +1 -7
- package/react/DyCheckbox.js +1 -1
- package/react/DyCheckboxGroup.d.ts +1 -7
- package/react/DyCheckboxGroup.js +1 -1
- package/react/DyCoachMark.d.ts +0 -5
- package/react/DyCoachMark.js +1 -1
- package/react/DyCodeBlock.d.ts +1 -5
- package/react/DyCodeBlock.js +1 -1
- package/react/DyCollapse.d.ts +1 -5
- package/react/DyCollapse.js +1 -1
- package/react/DyCollapsePanel.d.ts +1 -6
- package/react/DyCollapsePanel.js +1 -1
- package/react/DyCompartment.d.ts +1 -3
- package/react/DyCompartment.js +1 -1
- package/react/DyCountdown.d.ts +1 -5
- package/react/DyCountdown.js +1 -1
- package/react/DyDivider.d.ts +1 -6
- package/react/DyDivider.js +1 -1
- package/react/DyDrawer.d.ts +1 -21
- package/react/DyDrawer.js +1 -1
- package/react/DyEmpty.d.ts +1 -5
- package/react/DyEmpty.js +1 -1
- package/react/DyGroupedPicker.d.ts +27 -0
- package/react/DyGroupedPicker.js +22 -0
- package/react/DyInput.d.ts +1 -22
- package/react/DyInput.js +1 -1
- package/react/DyLegend.d.ts +0 -4
- package/react/DyLegend.js +1 -1
- package/react/DyLetters.d.ts +15 -0
- package/react/{DyListOutside.js → DyLetters.js} +4 -4
- package/react/DyList.d.ts +0 -13
- package/react/DyList.js +1 -1
- package/react/DyOptions.d.ts +1 -5
- package/react/DyOptions.js +1 -1
- package/react/DyPatForm.d.ts +1 -0
- package/react/DyPlaceholder.d.ts +1 -10
- package/react/DyPlaceholder.js +1 -1
- package/react/DyRadio.d.ts +1 -6
- package/react/DyRadio.js +1 -1
- package/react/DyRadioGroup.d.ts +1 -7
- package/react/DyRadioGroup.js +1 -1
- package/react/DyRate.d.ts +1 -7
- package/react/DyRate.js +1 -1
- package/react/DyRollingNumber.d.ts +15 -0
- package/react/{DyListItem.js → DyRollingNumber.js} +5 -5
- package/react/DySegmented.d.ts +1 -8
- package/react/DySegmented.js +1 -1
- package/react/DySlider.d.ts +1 -12
- package/react/DySlider.js +1 -1
- package/react/DySortItem.d.ts +1 -3
- package/react/DySortItem.js +1 -1
- package/react/DySpace.d.ts +1 -4
- package/react/DySpace.js +1 -1
- package/react/DySwitch.d.ts +1 -7
- package/react/DySwitch.js +1 -1
- package/react/DyTag.d.ts +1 -9
- package/react/DyTag.js +1 -1
- package/svelte/badge.d.ts +0 -8
- package/svelte/banner.d.ts +0 -5
- package/svelte/button.d.ts +0 -14
- package/svelte/checkbox.d.ts +0 -6
- package/svelte/coach-mark.d.ts +0 -5
- package/svelte/code-block.d.ts +0 -4
- package/svelte/collapse.d.ts +0 -4
- package/svelte/compartment.d.ts +0 -2
- package/svelte/countdown.d.ts +0 -4
- package/svelte/divider.d.ts +0 -5
- package/svelte/drawer.d.ts +0 -20
- package/svelte/empty.d.ts +0 -4
- package/svelte/grouped-picker.d.ts +19 -0
- package/svelte/grouped-picker.js +2 -0
- package/svelte/legend.d.ts +0 -4
- package/svelte/letters.d.ts +9 -0
- package/svelte/letters.js +2 -0
- package/svelte/list.d.ts +4 -11
- package/svelte/options.d.ts +0 -4
- package/svelte/pat-form.d.ts +1 -0
- package/svelte/placeholder.d.ts +0 -9
- package/svelte/radio.d.ts +0 -6
- package/svelte/rate.d.ts +0 -6
- package/svelte/rolling-number.d.ts +9 -0
- package/svelte/rolling-number.js +2 -0
- package/svelte/segmented.d.ts +0 -7
- package/svelte/slider.d.ts +0 -11
- package/svelte/space.d.ts +0 -3
- package/svelte/switch.d.ts +0 -6
- package/svelte/tag.d.ts +0 -8
- package/vue/DyBadge.vue +2 -8
- package/vue/DyBanner.vue +4 -6
- package/vue/DyButton.vue +2 -14
- package/vue/DyCheckbox.vue +4 -7
- package/vue/DyCheckboxGroup.vue +4 -7
- package/vue/DyCoachMark.vue +4 -8
- package/vue/DyCodeBlock.vue +2 -4
- package/vue/DyCollapse.vue +2 -4
- package/vue/DyCollapsePanel.vue +4 -6
- package/vue/DyCompartment.vue +2 -2
- package/vue/DyCountdown.vue +4 -5
- package/vue/DyDivider.vue +2 -5
- package/vue/DyDrawer.vue +4 -21
- package/vue/DyEmpty.vue +2 -4
- package/vue/DyGroupedPicker.vue +53 -0
- package/vue/DyInput.vue +4 -22
- package/vue/DyLegend.vue +2 -6
- package/vue/{DyListOutside.vue → DyLetters.vue} +8 -8
- package/vue/DyList.vue +4 -16
- package/vue/DyOptions.vue +2 -4
- package/vue/DyPatForm.vue +2 -2
- package/vue/DyPlaceholder.vue +2 -9
- package/vue/DyRadio.vue +4 -6
- package/vue/DyRadioGroup.vue +4 -7
- package/vue/DyRate.vue +4 -7
- package/vue/DyRollingNumber.vue +42 -0
- package/vue/DySegmented.vue +4 -8
- package/vue/DySlider.vue +4 -12
- package/vue/DySortItem.vue +2 -2
- package/vue/DySpace.vue +2 -3
- package/vue/DySwitch.vue +4 -7
- package/vue/DyTag.vue +4 -9
- package/elements/flow.d.ts +0 -52
- package/elements/flow.d.ts.map +0 -1
- package/elements/flow.js +0 -703
- package/elements/flow.js.map +0 -1
- package/elements/map.d.ts +0 -48
- package/elements/map.d.ts.map +0 -1
- package/elements/map.js +0 -396
- package/elements/map.js.map +0 -1
- package/react/DyFlow.d.ts +0 -24
- package/react/DyFlow.js +0 -18
- package/react/DyFlowCanvas.d.ts +0 -29
- package/react/DyFlowCanvas.js +0 -18
- package/react/DyListItem.d.ts +0 -24
- package/react/DyListOutside.d.ts +0 -15
- package/react/DyMap.d.ts +0 -32
- package/react/DyMap.js +0 -18
- package/svelte/flow.d.ts +0 -18
- package/svelte/flow.js +0 -2
- package/svelte/map.d.ts +0 -26
- package/svelte/map.js +0 -2
- package/vue/DyFlow.vue +0 -49
- package/vue/DyFlowCanvas.vue +0 -53
- package/vue/DyListItem.vue +0 -48
- package/vue/DyMap.vue +0 -56
package/react/DyEmpty.d.ts
CHANGED
|
@@ -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
|
@@ -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;
|
package/react/DyInput.d.ts
CHANGED
|
@@ -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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyLegend.d.ts
CHANGED
|
@@ -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"
|
|
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/
|
|
4
|
-
export const
|
|
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-
|
|
16
|
+
return React.createElement("dy-letters", { ref: elementRef, ...props });
|
|
17
17
|
});
|
|
18
|
-
export default
|
|
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
|
-
["
|
|
12
|
+
["renderItem"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyOptions.d.ts
CHANGED
|
@@ -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 {
|
package/react/DyOptions.js
CHANGED
|
@@ -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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyPatForm.d.ts
CHANGED
|
@@ -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 = {};
|
package/react/DyPlaceholder.d.ts
CHANGED
|
@@ -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 {
|
package/react/DyPlaceholder.js
CHANGED
|
@@ -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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyRadio.d.ts
CHANGED
|
@@ -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
package/react/DyRadioGroup.d.ts
CHANGED
|
@@ -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 {
|
package/react/DyRadioGroup.js
CHANGED
|
@@ -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
|
-
[
|
|
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
|
-
[
|
|
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/
|
|
4
|
-
export const
|
|
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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
|
16
|
-
return React.createElement("dy-
|
|
16
|
+
return React.createElement("dy-rolling-number", { ref: elementRef, ...props });
|
|
17
17
|
});
|
|
18
|
-
export default
|
|
18
|
+
export default DyRollingNumber;
|
package/react/DySegmented.d.ts
CHANGED
|
@@ -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 {
|
package/react/DySegmented.js
CHANGED
|
@@ -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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DySlider.d.ts
CHANGED
|
@@ -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
|
-
[
|
|
12
|
+
[].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DySortItem.d.ts
CHANGED
|
@@ -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 {
|
package/react/DySortItem.js
CHANGED
package/react/DySpace.d.ts
CHANGED
|
@@ -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
package/react/DySwitch.d.ts
CHANGED
|
@@ -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
|
-
[
|
|
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
|
-
[
|
|
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 {
|
package/svelte/banner.d.ts
CHANGED
|
@@ -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 {
|
package/svelte/button.d.ts
CHANGED
|
@@ -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 {
|
package/svelte/checkbox.d.ts
CHANGED
|
@@ -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 {
|
package/svelte/coach-mark.d.ts
CHANGED
|
@@ -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 {
|