@nutui/nutui 4.3.1 → 4.3.3

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 (130) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/nutui.es.js +2 -4
  3. package/dist/nutui.js +6035 -6408
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/actionsheet/ActionSheet.js +1 -1
  6. package/dist/packages/address/Address.js +1 -1
  7. package/dist/packages/addresslist/AddressList.js +2 -2
  8. package/dist/packages/animate/Animate.js +51 -44
  9. package/dist/packages/backtop/Backtop.js +79 -89
  10. package/dist/packages/calendar/Calendar.js +814 -3
  11. package/dist/packages/calendar/index.scss +0 -1
  12. package/dist/packages/calendarcard/CalendarCard.js +1 -1
  13. package/dist/packages/card/Card.js +4 -4
  14. package/dist/packages/cascader/Cascader.js +1 -1
  15. package/dist/packages/checkbox/Checkbox.js +1 -1
  16. package/dist/packages/circleprogress/CircleProgress.js +90 -97
  17. package/dist/packages/col/Col.js +41 -30
  18. package/dist/packages/comment/Comment.js +2 -2
  19. package/dist/packages/{common-LvGbU-A3.js → common-FZL3qC99.js} +5 -2
  20. package/dist/packages/dialog/Dialog.js +1 -1
  21. package/dist/packages/ecard/Ecard.js +2 -2
  22. package/dist/packages/form/Form.js +3 -1
  23. package/dist/packages/formitem/FormItem.js +1 -1
  24. package/dist/packages/imagepreview/ImagePreview.js +1 -1
  25. package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
  26. package/dist/packages/{index.vue_vue_type_script_lang-w2sgcysj.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +1 -1
  27. package/dist/packages/input/Input.js +8 -8
  28. package/dist/packages/inputnumber/InputNumber.js +84 -103
  29. package/dist/packages/invoice/Invoice.js +87 -138
  30. package/dist/packages/layout/Layout.js +3 -0
  31. package/dist/packages/menuitem/MenuItem.js +1 -1
  32. package/dist/packages/navbar/Navbar.js +103 -115
  33. package/dist/packages/notify/Notify.js +1 -1
  34. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  35. package/dist/packages/popover/Popover.js +1 -1
  36. package/dist/packages/popup/Popup.js +1 -1
  37. package/dist/packages/price/Price.js +69 -77
  38. package/dist/packages/progress/Progress.js +96 -115
  39. package/dist/packages/radio/Radio.js +1 -1
  40. package/dist/packages/range/Range.js +1 -1
  41. package/dist/packages/rate/Rate.js +99 -141
  42. package/dist/packages/row/Row.js +43 -39
  43. package/dist/packages/searchbar/Searchbar.js +1 -1
  44. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  45. package/dist/packages/sku/Sku.js +5 -5
  46. package/dist/packages/swipe/Swipe.js +96 -110
  47. package/dist/packages/swipegroup/SwipeGroup.js +41 -23
  48. package/dist/packages/switch/Switch.js +12 -4
  49. package/dist/packages/switch/index.css +1 -1
  50. package/dist/packages/switch/index.scss +1 -1
  51. package/dist/packages/tag/Tag.js +57 -66
  52. package/dist/packages/textarea/Textarea.js +1 -1
  53. package/dist/packages/timeselect/TimeSelect.js +1 -1
  54. package/dist/packages/uploader/Uploader.js +5 -5
  55. package/dist/smartips/web-types.json +12 -3
  56. package/dist/style.css +1 -1
  57. package/dist/styles/base-jdb.css +1 -1
  58. package/dist/styles/base-jddkh.css +1 -1
  59. package/dist/styles/base-jdt.css +1 -1
  60. package/dist/styles/themes/default.scss +0 -1
  61. package/dist/styles/themes/jdb.scss +0 -1
  62. package/dist/styles/themes/jddkh.scss +0 -1
  63. package/dist/styles/themes/jdt.scss +0 -1
  64. package/dist/styles/variables-jdb.scss +0 -1
  65. package/dist/styles/variables-jddkh.scss +0 -1
  66. package/dist/styles/variables-jdt.scss +0 -1
  67. package/dist/styles/variables.scss +0 -1
  68. package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
  69. package/dist/types/__VUE/animate/index.d.ts +6 -0
  70. package/dist/types/__VUE/backtop/backtop.vue.d.ts +87 -0
  71. package/dist/types/__VUE/backtop/index.d.ts +5 -0
  72. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -12
  73. package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +88 -0
  74. package/dist/types/__VUE/circleprogress/index.d.ts +6 -0
  75. package/dist/types/__VUE/col/col.vue.d.ts +53 -0
  76. package/dist/types/__VUE/col/index.d.ts +5 -0
  77. package/dist/types/__VUE/form/common.d.ts +2 -0
  78. package/dist/types/__VUE/form/types.d.ts +0 -1
  79. package/dist/types/__VUE/input/index.vue.d.ts +1 -1
  80. package/dist/types/__VUE/inputnumber/index.d.ts +5 -0
  81. package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +112 -0
  82. package/dist/types/__VUE/invoice/index.d.ts +6 -0
  83. package/dist/types/__VUE/invoice/invoice.vue.d.ts +59 -0
  84. package/dist/types/__VUE/invoice/types.d.ts +12 -0
  85. package/dist/types/__VUE/layout/index.d.ts +4 -0
  86. package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
  87. package/dist/types/__VUE/navbar/index.d.ts +5 -0
  88. package/dist/types/__VUE/navbar/navbar.vue.d.ts +125 -0
  89. package/dist/types/__VUE/price/index.d.ts +6 -0
  90. package/dist/types/__VUE/price/price.vue.d.ts +83 -0
  91. package/dist/types/__VUE/progress/index.d.ts +6 -0
  92. package/dist/types/__VUE/progress/progress.vue.d.ts +91 -0
  93. package/dist/types/__VUE/rate/index.d.ts +5 -0
  94. package/dist/types/__VUE/rate/rate.vue.d.ts +208 -0
  95. package/dist/types/__VUE/row/index.d.ts +5 -0
  96. package/dist/types/__VUE/row/row.vue.d.ts +71 -0
  97. package/dist/types/__VUE/swipe/index.d.ts +6 -0
  98. package/dist/types/__VUE/swipe/swipe.vue.d.ts +79 -0
  99. package/dist/types/__VUE/swipe/types.d.ts +1 -0
  100. package/dist/types/__VUE/swipegroup/index.d.ts +5 -0
  101. package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +47 -0
  102. package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
  103. package/dist/types/__VUE/tag/index.d.ts +6 -0
  104. package/dist/types/__VUE/tag/tag.vue.d.ts +90 -0
  105. package/dist/types/__VUE/tag/types.d.ts +1 -1
  106. package/dist/types/index.d.ts +32 -18
  107. package/package.json +1 -1
  108. package/dist/packages/calendaritem/CalendarItem.js +0 -819
  109. package/dist/packages/calendaritem/index.css +0 -0
  110. package/dist/packages/calendaritem/index.mjs +0 -2
  111. package/dist/packages/calendaritem/index.scss +0 -0
  112. package/dist/packages/calendaritem/style/css.mjs +0 -2
  113. package/dist/packages/calendaritem/style/index.mjs +0 -2
  114. package/dist/packages/types-Ynmct7na.js +0 -4
  115. package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
  116. package/dist/types/__VUE/backtop/index.vue.d.ts +0 -98
  117. package/dist/types/__VUE/circleprogress/index.vue.d.ts +0 -95
  118. package/dist/types/__VUE/col/index.vue.d.ts +0 -42
  119. package/dist/types/__VUE/inputnumber/index.vue.d.ts +0 -117
  120. package/dist/types/__VUE/invoice/index.vue.d.ts +0 -53
  121. package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
  122. package/dist/types/__VUE/navbar/index.vue.d.ts +0 -129
  123. package/dist/types/__VUE/price/index.vue.d.ts +0 -97
  124. package/dist/types/__VUE/progress/index.vue.d.ts +0 -120
  125. package/dist/types/__VUE/rate/index.vue.d.ts +0 -240
  126. package/dist/types/__VUE/row/index.vue.d.ts +0 -62
  127. package/dist/types/__VUE/swipe/index.vue.d.ts +0 -70
  128. package/dist/types/__VUE/swipegroup/index.vue.d.ts +0 -26
  129. package/dist/types/__VUE/tag/index.vue.d.ts +0 -94
  130. /package/dist/types/__VUE/animate/{type.d.ts → types.d.ts} +0 -0
@@ -0,0 +1,125 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type NavbarProps = Partial<{
3
+ leftShow: boolean;
4
+ title: string;
5
+ titleIcon: boolean;
6
+ leftText: string;
7
+ desc: string;
8
+ fixed: boolean;
9
+ safeAreaInsetTop: boolean;
10
+ border: boolean;
11
+ placeholder: boolean;
12
+ zIndex: string | number;
13
+ }>;
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
15
+ leftShow: boolean;
16
+ title: string;
17
+ titleIcon: boolean;
18
+ leftText: string;
19
+ desc: string;
20
+ fixed: boolean;
21
+ safeAreaInsetTop: boolean;
22
+ border: boolean;
23
+ placeholder: boolean;
24
+ zIndex: string | number;
25
+ }>>, {
26
+ leftShow: boolean;
27
+ title: string;
28
+ titleIcon: boolean;
29
+ leftText: string;
30
+ desc: string;
31
+ fixed: boolean;
32
+ safeAreaInsetTop: boolean;
33
+ border: boolean;
34
+ placeholder: boolean;
35
+ zIndex: number;
36
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ clickBack: (...args: any[]) => void;
38
+ clickTitle: (...args: any[]) => void;
39
+ clickIcon: (...args: any[]) => void;
40
+ clickRight: (...args: any[]) => void;
41
+ onClickBack: (...args: any[]) => void;
42
+ onClickTitle: (...args: any[]) => void;
43
+ onClickIcon: (...args: any[]) => void;
44
+ onClickRight: (...args: any[]) => void;
45
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
46
+ leftShow: boolean;
47
+ title: string;
48
+ titleIcon: boolean;
49
+ leftText: string;
50
+ desc: string;
51
+ fixed: boolean;
52
+ safeAreaInsetTop: boolean;
53
+ border: boolean;
54
+ placeholder: boolean;
55
+ zIndex: string | number;
56
+ }>>, {
57
+ leftShow: boolean;
58
+ title: string;
59
+ titleIcon: boolean;
60
+ leftText: string;
61
+ desc: string;
62
+ fixed: boolean;
63
+ safeAreaInsetTop: boolean;
64
+ border: boolean;
65
+ placeholder: boolean;
66
+ zIndex: number;
67
+ }>>> & {
68
+ onClickBack?: ((...args: any[]) => any) | undefined;
69
+ onClickTitle?: ((...args: any[]) => any) | undefined;
70
+ onClickIcon?: ((...args: any[]) => any) | undefined;
71
+ onClickRight?: ((...args: any[]) => any) | undefined;
72
+ onOnClickBack?: ((...args: any[]) => any) | undefined;
73
+ onOnClickTitle?: ((...args: any[]) => any) | undefined;
74
+ onOnClickIcon?: ((...args: any[]) => any) | undefined;
75
+ onOnClickRight?: ((...args: any[]) => any) | undefined;
76
+ }, {
77
+ title: string;
78
+ desc: string;
79
+ fixed: boolean;
80
+ zIndex: string | number;
81
+ border: boolean;
82
+ leftShow: boolean;
83
+ titleIcon: boolean;
84
+ leftText: string;
85
+ safeAreaInsetTop: boolean;
86
+ placeholder: boolean;
87
+ }, {}>, {
88
+ "left-show"?(_: {}): any;
89
+ left?(_: {}): any;
90
+ "title-icon"?(_: {
91
+ click: () => void;
92
+ }): any;
93
+ content?(_: {}): any;
94
+ right?(_: {}): any;
95
+ }>;
96
+ declare const _nut_default: WithInstall<typeof _default>;
97
+ export default _nut_default;
98
+
99
+ declare module 'vue' {
100
+ interface GlobalComponents {
101
+ NutNavbar: typeof _default;
102
+ }
103
+ }
104
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
105
+ type __VLS_TypePropsToRuntimeProps<T> = {
106
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
107
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
108
+ } : {
109
+ type: import('vue').PropType<T[K]>;
110
+ required: true;
111
+ };
112
+ };
113
+ type __VLS_WithDefaults<P, D> = {
114
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
115
+ default: D[K];
116
+ }> : P[K];
117
+ };
118
+ type __VLS_Prettify<T> = {
119
+ [K in keyof T]: T[K];
120
+ } & {};
121
+ type __VLS_WithTemplateSlots<T, S> = T & {
122
+ new (): {
123
+ $slots: S;
124
+ };
125
+ };
@@ -0,0 +1,6 @@
1
+ import Price from './price.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { PriceProps } from './price.vue';
4
+ export type { PriceSize, PricePosition } from './types';
5
+ export type PriceInstance = ComponentPublicInstance & InstanceType<typeof Price>;
6
+ export { Price, Price as default };
@@ -0,0 +1,83 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { PricePosition, PriceSize } from './types';
3
+ export type PriceProps = Partial<{
4
+ price: string | number;
5
+ needSymbol: boolean;
6
+ symbol: string;
7
+ decimalDigits: number;
8
+ thousands: boolean;
9
+ position: PricePosition;
10
+ size: PriceSize;
11
+ strikeThrough: boolean;
12
+ }>;
13
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
14
+ price: string | number;
15
+ needSymbol: boolean;
16
+ symbol: string;
17
+ decimalDigits: number;
18
+ thousands: boolean;
19
+ position: PricePosition;
20
+ size: PriceSize;
21
+ strikeThrough: boolean;
22
+ }>>, {
23
+ price: number;
24
+ needSymbol: boolean;
25
+ symbol: string;
26
+ decimalDigits: number;
27
+ thousands: boolean;
28
+ position: string;
29
+ size: string;
30
+ strikeThrough: boolean;
31
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
32
+ price: string | number;
33
+ needSymbol: boolean;
34
+ symbol: string;
35
+ decimalDigits: number;
36
+ thousands: boolean;
37
+ position: PricePosition;
38
+ size: PriceSize;
39
+ strikeThrough: boolean;
40
+ }>>, {
41
+ price: number;
42
+ needSymbol: boolean;
43
+ symbol: string;
44
+ decimalDigits: number;
45
+ thousands: boolean;
46
+ position: string;
47
+ size: string;
48
+ strikeThrough: boolean;
49
+ }>>>, {
50
+ symbol: string;
51
+ size: PriceSize;
52
+ position: PricePosition;
53
+ price: string | number;
54
+ needSymbol: boolean;
55
+ decimalDigits: number;
56
+ thousands: boolean;
57
+ strikeThrough: boolean;
58
+ }, {}>;
59
+ declare const _nut_default: WithInstall<typeof _default>;
60
+ export default _nut_default;
61
+
62
+ declare module 'vue' {
63
+ interface GlobalComponents {
64
+ NutPrice: typeof _default;
65
+ }
66
+ }
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToRuntimeProps<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
76
+ type __VLS_WithDefaults<P, D> = {
77
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
+ default: D[K];
79
+ }> : P[K];
80
+ };
81
+ type __VLS_Prettify<T> = {
82
+ [K in keyof T]: T[K];
83
+ } & {};
@@ -0,0 +1,6 @@
1
+ import Progress from './progress.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { ProgressProps } from './progress.vue';
4
+ export type { ProgressSize, ProgressStatus } from './types';
5
+ export type ProgressInstance = ComponentPublicInstance & InstanceType<typeof Progress>;
6
+ export { Progress, Progress as default };
@@ -0,0 +1,91 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { ProgressSize, ProgressStatus } from './types';
3
+ export type ProgressProps = Partial<{
4
+ percentage: string | number;
5
+ size: ProgressSize;
6
+ status: ProgressStatus;
7
+ strokeWidth: string | number;
8
+ textInside: boolean;
9
+ showText: boolean;
10
+ strokeColor: string;
11
+ textColor: string;
12
+ textBackground: string;
13
+ isShowPercentage: boolean;
14
+ }>;
15
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
16
+ percentage: string | number;
17
+ size: ProgressSize;
18
+ status: ProgressStatus;
19
+ strokeWidth: string | number;
20
+ textInside: boolean;
21
+ showText: boolean;
22
+ strokeColor: string;
23
+ textColor: string;
24
+ textBackground: string;
25
+ isShowPercentage: boolean;
26
+ }>>, {
27
+ percentage: number;
28
+ size: string;
29
+ status: string;
30
+ textInside: boolean;
31
+ showText: boolean;
32
+ isShowPercentage: boolean;
33
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
34
+ percentage: string | number;
35
+ size: ProgressSize;
36
+ status: ProgressStatus;
37
+ strokeWidth: string | number;
38
+ textInside: boolean;
39
+ showText: boolean;
40
+ strokeColor: string;
41
+ textColor: string;
42
+ textBackground: string;
43
+ isShowPercentage: boolean;
44
+ }>>, {
45
+ percentage: number;
46
+ size: string;
47
+ status: string;
48
+ textInside: boolean;
49
+ showText: boolean;
50
+ isShowPercentage: boolean;
51
+ }>>>, {
52
+ size: ProgressSize;
53
+ percentage: string | number;
54
+ status: ProgressStatus;
55
+ textInside: boolean;
56
+ showText: boolean;
57
+ isShowPercentage: boolean;
58
+ }, {}>, {
59
+ default?(_: {}): any;
60
+ "icon-name"?(_: {}): any;
61
+ }>;
62
+ declare const _nut_default: WithInstall<typeof _default>;
63
+ export default _nut_default;
64
+
65
+ declare module 'vue' {
66
+ interface GlobalComponents {
67
+ NutProgress: typeof _default;
68
+ }
69
+ }
70
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
+ type __VLS_TypePropsToRuntimeProps<T> = {
72
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
73
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
74
+ } : {
75
+ type: import('vue').PropType<T[K]>;
76
+ required: true;
77
+ };
78
+ };
79
+ type __VLS_WithDefaults<P, D> = {
80
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
81
+ default: D[K];
82
+ }> : P[K];
83
+ };
84
+ type __VLS_Prettify<T> = {
85
+ [K in keyof T]: T[K];
86
+ } & {};
87
+ type __VLS_WithTemplateSlots<T, S> = T & {
88
+ new (): {
89
+ $slots: S;
90
+ };
91
+ };
@@ -0,0 +1,5 @@
1
+ import Rate from './rate.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { RateProps } from './rate.vue';
4
+ export type RateInstance = ComponentPublicInstance & InstanceType<typeof Rate>;
5
+ export { Rate, Rate as default };
@@ -0,0 +1,208 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type RateProps = Partial<{
3
+ count: string | number;
4
+ modelValue: string | number;
5
+ customIcon: any;
6
+ size: string | number;
7
+ activeColor: string;
8
+ voidColor: string;
9
+ readonly: boolean;
10
+ disabled: boolean;
11
+ allowHalf: boolean;
12
+ touchable: boolean;
13
+ spacing: string | number;
14
+ }>;
15
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
16
+ count: string | number;
17
+ modelValue: string | number;
18
+ customIcon: any;
19
+ size: string | number;
20
+ activeColor: string;
21
+ voidColor: string;
22
+ readonly: boolean;
23
+ disabled: boolean;
24
+ allowHalf: boolean;
25
+ touchable: boolean;
26
+ spacing: string | number;
27
+ }>>, {
28
+ count: number;
29
+ modelValue: number;
30
+ customIcon: () => import("vue").DefineComponent<{
31
+ class: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ name: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ color: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ width: {
44
+ type: (NumberConstructor | StringConstructor)[];
45
+ default: string;
46
+ };
47
+ height: {
48
+ type: (NumberConstructor | StringConstructor)[];
49
+ default: string;
50
+ };
51
+ }, {
52
+ classes: import("vue").ComputedRef<{
53
+ [x: string]: string | boolean;
54
+ "nut-icon": boolean;
55
+ }>;
56
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
57
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
58
+ class: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ name: {
63
+ type: StringConstructor;
64
+ default: string;
65
+ };
66
+ color: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ width: {
71
+ type: (NumberConstructor | StringConstructor)[];
72
+ default: string;
73
+ };
74
+ height: {
75
+ type: (NumberConstructor | StringConstructor)[];
76
+ default: string;
77
+ };
78
+ }>>, {
79
+ name: string;
80
+ width: string | number;
81
+ height: string | number;
82
+ color: string;
83
+ class: string;
84
+ }>;
85
+ activeColor: string;
86
+ voidColor: string;
87
+ readonly: boolean;
88
+ disabled: boolean;
89
+ allowHalf: boolean;
90
+ touchable: boolean;
91
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
92
+ change: (...args: any[]) => void;
93
+ "update:modelValue": (...args: any[]) => void;
94
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
95
+ count: string | number;
96
+ modelValue: string | number;
97
+ customIcon: any;
98
+ size: string | number;
99
+ activeColor: string;
100
+ voidColor: string;
101
+ readonly: boolean;
102
+ disabled: boolean;
103
+ allowHalf: boolean;
104
+ touchable: boolean;
105
+ spacing: string | number;
106
+ }>>, {
107
+ count: number;
108
+ modelValue: number;
109
+ customIcon: () => import("vue").DefineComponent<{
110
+ class: {
111
+ type: StringConstructor;
112
+ default: string;
113
+ };
114
+ name: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ color: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ width: {
123
+ type: (NumberConstructor | StringConstructor)[];
124
+ default: string;
125
+ };
126
+ height: {
127
+ type: (NumberConstructor | StringConstructor)[];
128
+ default: string;
129
+ };
130
+ }, {
131
+ classes: import("vue").ComputedRef<{
132
+ [x: string]: string | boolean;
133
+ "nut-icon": boolean;
134
+ }>;
135
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
136
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
137
+ class: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ name: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ color: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
149
+ width: {
150
+ type: (NumberConstructor | StringConstructor)[];
151
+ default: string;
152
+ };
153
+ height: {
154
+ type: (NumberConstructor | StringConstructor)[];
155
+ default: string;
156
+ };
157
+ }>>, {
158
+ name: string;
159
+ width: string | number;
160
+ height: string | number;
161
+ color: string;
162
+ class: string;
163
+ }>;
164
+ activeColor: string;
165
+ voidColor: string;
166
+ readonly: boolean;
167
+ disabled: boolean;
168
+ allowHalf: boolean;
169
+ touchable: boolean;
170
+ }>>> & {
171
+ onChange?: ((...args: any[]) => any) | undefined;
172
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
173
+ }, {
174
+ disabled: boolean;
175
+ activeColor: string;
176
+ modelValue: string | number;
177
+ count: string | number;
178
+ readonly: boolean;
179
+ customIcon: any;
180
+ voidColor: string;
181
+ allowHalf: boolean;
182
+ touchable: boolean;
183
+ }, {}>;
184
+ declare const _nut_default: WithInstall<typeof _default>;
185
+ export default _nut_default;
186
+
187
+ declare module 'vue' {
188
+ interface GlobalComponents {
189
+ NutRate: typeof _default;
190
+ }
191
+ }
192
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
193
+ type __VLS_TypePropsToRuntimeProps<T> = {
194
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
195
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
196
+ } : {
197
+ type: import('vue').PropType<T[K]>;
198
+ required: true;
199
+ };
200
+ };
201
+ type __VLS_WithDefaults<P, D> = {
202
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
203
+ default: D[K];
204
+ }> : P[K];
205
+ };
206
+ type __VLS_Prettify<T> = {
207
+ [K in keyof T]: T[K];
208
+ } & {};
@@ -0,0 +1,5 @@
1
+ import Row from './row.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { RowProps } from './row.vue';
4
+ export type RowInstance = ComponentPublicInstance & InstanceType<typeof Row>;
5
+ export { Row, Row as default };
@@ -0,0 +1,71 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type RowProps = Partial<{
3
+ type: string;
4
+ gutter: string | number;
5
+ justify: string;
6
+ align: string;
7
+ flexWrap: string;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
10
+ type: string;
11
+ gutter: string | number;
12
+ justify: string;
13
+ align: string;
14
+ flexWrap: string;
15
+ }>>, {
16
+ type: string;
17
+ gutter: string;
18
+ justify: string;
19
+ align: string;
20
+ flexWrap: string;
21
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
22
+ type: string;
23
+ gutter: string | number;
24
+ justify: string;
25
+ align: string;
26
+ flexWrap: string;
27
+ }>>, {
28
+ type: string;
29
+ gutter: string;
30
+ justify: string;
31
+ align: string;
32
+ flexWrap: string;
33
+ }>>>, {
34
+ type: string;
35
+ justify: string;
36
+ gutter: string | number;
37
+ align: string;
38
+ flexWrap: string;
39
+ }, {}>, {
40
+ default?(_: {}): any;
41
+ }>;
42
+ declare const _nut_default: WithInstall<typeof _default>;
43
+ export default _nut_default;
44
+
45
+ declare module 'vue' {
46
+ interface GlobalComponents {
47
+ NutRow: typeof _default;
48
+ }
49
+ }
50
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
+ type __VLS_TypePropsToRuntimeProps<T> = {
52
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
53
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
+ } : {
55
+ type: import('vue').PropType<T[K]>;
56
+ required: true;
57
+ };
58
+ };
59
+ type __VLS_WithDefaults<P, D> = {
60
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
+ default: D[K];
62
+ }> : P[K];
63
+ };
64
+ type __VLS_Prettify<T> = {
65
+ [K in keyof T]: T[K];
66
+ } & {};
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,6 @@
1
+ import Swipe from './swipe.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { SwipeProps } from './swipe.vue';
4
+ export type { SwipePosition } from './types';
5
+ export type SwipeInstance = ComponentPublicInstance & InstanceType<typeof Swipe>;
6
+ export { Swipe, Swipe as default };
@@ -0,0 +1,79 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import { type SwipePosition } from './types';
3
+ export type SwipeProps = Partial<{
4
+ name: string;
5
+ touchMoveStopPropagation: boolean;
6
+ touchMovePreventDefault: boolean;
7
+ disabled: boolean;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
10
+ name: string;
11
+ touchMoveStopPropagation: boolean;
12
+ touchMovePreventDefault: boolean;
13
+ disabled: boolean;
14
+ }>>, {
15
+ name: string;
16
+ touchMoveStopPropagation: boolean;
17
+ touchMovePreventDefault: boolean;
18
+ disabled: boolean;
19
+ }>, {
20
+ open: (p?: SwipePosition) => void;
21
+ close: () => void;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ click: (...args: any[]) => void;
24
+ close: (...args: any[]) => void;
25
+ open: (...args: any[]) => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
27
+ name: string;
28
+ touchMoveStopPropagation: boolean;
29
+ touchMovePreventDefault: boolean;
30
+ disabled: boolean;
31
+ }>>, {
32
+ name: string;
33
+ touchMoveStopPropagation: boolean;
34
+ touchMovePreventDefault: boolean;
35
+ disabled: boolean;
36
+ }>>> & {
37
+ onClick?: ((...args: any[]) => any) | undefined;
38
+ onClose?: ((...args: any[]) => any) | undefined;
39
+ onOpen?: ((...args: any[]) => any) | undefined;
40
+ }, {
41
+ name: string;
42
+ disabled: boolean;
43
+ touchMoveStopPropagation: boolean;
44
+ touchMovePreventDefault: boolean;
45
+ }, {}>, {
46
+ left?(_: {}): any;
47
+ default?(_: {}): any;
48
+ right?(_: {}): any;
49
+ }>;
50
+ declare const _nut_default: WithInstall<typeof _default>;
51
+ export default _nut_default;
52
+
53
+ declare module 'vue' {
54
+ interface GlobalComponents {
55
+ NutSwipe: typeof _default;
56
+ }
57
+ }
58
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
+ type __VLS_TypePropsToRuntimeProps<T> = {
60
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
61
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
62
+ } : {
63
+ type: import('vue').PropType<T[K]>;
64
+ required: true;
65
+ };
66
+ };
67
+ type __VLS_WithDefaults<P, D> = {
68
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
69
+ default: D[K];
70
+ }> : P[K];
71
+ };
72
+ type __VLS_Prettify<T> = {
73
+ [K in keyof T]: T[K];
74
+ } & {};
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -1 +1,2 @@
1
1
  export declare const SWIPE_KEY: unique symbol;
2
+ export type SwipePosition = 'left' | 'right' | '';