@bitrix24/b24ui-nuxt 0.5.10 → 0.5.11

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 (190) hide show
  1. package/dist/meta.cjs +72112 -0
  2. package/dist/meta.d.cts +72110 -0
  3. package/dist/meta.d.mts +5060 -5060
  4. package/dist/meta.d.ts +72110 -0
  5. package/dist/meta.mjs +5060 -5060
  6. package/dist/module.cjs +63 -0
  7. package/dist/module.d.cts +15 -0
  8. package/dist/module.d.ts +15 -0
  9. package/dist/module.json +3 -3
  10. package/dist/module.mjs +1 -1
  11. package/dist/runtime/components/Advice.vue +54 -47
  12. package/dist/runtime/components/Alert.vue +96 -71
  13. package/dist/runtime/components/App.vue +34 -37
  14. package/dist/runtime/components/Avatar.vue +81 -69
  15. package/dist/runtime/components/AvatarGroup.vue +76 -53
  16. package/dist/runtime/components/Badge.vue +83 -83
  17. package/dist/runtime/components/Button.vue +157 -220
  18. package/dist/runtime/components/ButtonGroup.vue +51 -35
  19. package/dist/runtime/components/Calendar.vue +152 -186
  20. package/dist/runtime/components/Checkbox.vue +73 -84
  21. package/dist/runtime/components/Chip.vue +74 -59
  22. package/dist/runtime/components/Collapsible.vue +41 -44
  23. package/dist/runtime/components/Container.vue +27 -18
  24. package/dist/runtime/components/Countdown.vue +378 -198
  25. package/dist/runtime/components/DescriptionList.vue +149 -102
  26. package/dist/runtime/components/DropdownMenu.vue +139 -83
  27. package/dist/runtime/components/DropdownMenuContent.vue +84 -137
  28. package/dist/runtime/components/Form.vue +216 -162
  29. package/dist/runtime/components/FormField.vue +80 -76
  30. package/dist/runtime/components/Input.vue +179 -160
  31. package/dist/runtime/components/InputMenu.vue +380 -300
  32. package/dist/runtime/components/InputNumber.vue +175 -178
  33. package/dist/runtime/components/Kbd.vue +45 -33
  34. package/dist/runtime/components/Link.vue +173 -179
  35. package/dist/runtime/components/LinkBase.vue +42 -64
  36. package/dist/runtime/components/Modal.vue +127 -105
  37. package/dist/runtime/components/ModalDialogClose.vue +8 -4
  38. package/dist/runtime/components/Navbar.vue +33 -24
  39. package/dist/runtime/components/NavbarDivider.vue +33 -24
  40. package/dist/runtime/components/NavbarSection.vue +33 -24
  41. package/dist/runtime/components/NavbarSpacer.vue +33 -24
  42. package/dist/runtime/components/NavigationMenu.vue +210 -144
  43. package/dist/runtime/components/OverlayProvider.vue +17 -13
  44. package/dist/runtime/components/Popover.vue +81 -81
  45. package/dist/runtime/components/Progress.vue +136 -109
  46. package/dist/runtime/components/RadioGroup.vue +134 -120
  47. package/dist/runtime/components/Range.vue +85 -94
  48. package/dist/runtime/components/Select.vue +260 -212
  49. package/dist/runtime/components/SelectMenu.vue +365 -272
  50. package/dist/runtime/components/Separator.vue +71 -61
  51. package/dist/runtime/components/Sidebar.vue +33 -24
  52. package/dist/runtime/components/SidebarBody.vue +38 -30
  53. package/dist/runtime/components/SidebarFooter.vue +33 -24
  54. package/dist/runtime/components/SidebarHeader.vue +33 -24
  55. package/dist/runtime/components/SidebarHeading.vue +33 -24
  56. package/dist/runtime/components/SidebarLayout.vue +70 -40
  57. package/dist/runtime/components/SidebarSection.vue +33 -24
  58. package/dist/runtime/components/SidebarSpacer.vue +33 -24
  59. package/dist/runtime/components/Skeleton.vue +22 -17
  60. package/dist/runtime/components/Slideover.vue +131 -108
  61. package/dist/runtime/components/StackedLayout.vue +73 -40
  62. package/dist/runtime/components/Switch.vue +95 -100
  63. package/dist/runtime/components/Tabs.vue +107 -81
  64. package/dist/runtime/components/Textarea.vue +201 -177
  65. package/dist/runtime/components/Toast.vue +105 -94
  66. package/dist/runtime/components/Toaster.vue +116 -94
  67. package/dist/runtime/components/Tooltip.vue +64 -78
  68. package/dist/runtime/components/content/TableWrapper.vue +70 -58
  69. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  70. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  71. package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
  72. package/dist/runtime/composables/useFormField.d.ts +1 -1
  73. package/dist/runtime/prose/A.vue +23 -18
  74. package/dist/runtime/prose/Blockquote.vue +23 -18
  75. package/dist/runtime/prose/Code.vue +31 -23
  76. package/dist/runtime/prose/Em.vue +23 -18
  77. package/dist/runtime/prose/H1.vue +23 -18
  78. package/dist/runtime/prose/H2.vue +23 -18
  79. package/dist/runtime/prose/H3.vue +23 -18
  80. package/dist/runtime/prose/H4.vue +23 -18
  81. package/dist/runtime/prose/H5.vue +23 -18
  82. package/dist/runtime/prose/H6.vue +23 -18
  83. package/dist/runtime/prose/Hr.vue +19 -18
  84. package/dist/runtime/prose/Img.vue +23 -18
  85. package/dist/runtime/prose/Li.vue +23 -18
  86. package/dist/runtime/prose/Ol.vue +23 -18
  87. package/dist/runtime/prose/P.vue +23 -18
  88. package/dist/runtime/prose/Pre.vue +33 -28
  89. package/dist/runtime/prose/Strong.vue +23 -18
  90. package/dist/runtime/prose/Table.vue +54 -44
  91. package/dist/runtime/prose/Tbody.vue +23 -18
  92. package/dist/runtime/prose/Td.vue +23 -18
  93. package/dist/runtime/prose/Th.vue +23 -18
  94. package/dist/runtime/prose/Thead.vue +23 -18
  95. package/dist/runtime/prose/Tr.vue +23 -18
  96. package/dist/runtime/prose/Ul.vue +23 -18
  97. package/dist/runtime/vue/components/Link.vue +202 -201
  98. package/dist/shared/b24ui-nuxt.DrKwIWoc.cjs +7721 -0
  99. package/dist/types.d.mts +5 -3
  100. package/dist/types.d.ts +7 -0
  101. package/dist/unplugin.cjs +236 -0
  102. package/dist/unplugin.d.cts +33 -0
  103. package/dist/unplugin.d.ts +33 -0
  104. package/dist/vite.cjs +21 -0
  105. package/dist/vite.d.cts +14 -0
  106. package/dist/vite.d.ts +14 -0
  107. package/package.json +25 -13
  108. package/dist/runtime/components/Advice.vue.d.ts +0 -170
  109. package/dist/runtime/components/Alert.vue.d.ts +0 -464
  110. package/dist/runtime/components/App.vue.d.ts +0 -23
  111. package/dist/runtime/components/Avatar.vue.d.ts +0 -281
  112. package/dist/runtime/components/AvatarGroup.vue.d.ts +0 -204
  113. package/dist/runtime/components/Badge.vue.d.ts +0 -517
  114. package/dist/runtime/components/Button.vue.d.ts +0 -640
  115. package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -116
  116. package/dist/runtime/components/Calendar.vue.d.ts +0 -437
  117. package/dist/runtime/components/Checkbox.vue.d.ts +0 -354
  118. package/dist/runtime/components/Chip.vue.d.ts +0 -271
  119. package/dist/runtime/components/Collapsible.vue.d.ts +0 -118
  120. package/dist/runtime/components/Container.vue.d.ts +0 -27
  121. package/dist/runtime/components/Countdown.vue.d.ts +0 -356
  122. package/dist/runtime/components/DescriptionList.vue.d.ts +0 -379
  123. package/dist/runtime/components/DropdownMenu.vue.d.ts +0 -533
  124. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +0 -228
  125. package/dist/runtime/components/Form.vue.d.ts +0 -55
  126. package/dist/runtime/components/FormField.vue.d.ts +0 -282
  127. package/dist/runtime/components/Input.vue.d.ts +0 -755
  128. package/dist/runtime/components/InputMenu.vue.d.ts +0 -1504
  129. package/dist/runtime/components/InputNumber.vue.d.ts +0 -658
  130. package/dist/runtime/components/Kbd.vue.d.ts +0 -109
  131. package/dist/runtime/components/Link.vue.d.ts +0 -129
  132. package/dist/runtime/components/LinkBase.vue.d.ts +0 -48
  133. package/dist/runtime/components/Modal.vue.d.ts +0 -327
  134. package/dist/runtime/components/ModalDialogClose.vue.d.ts +0 -10
  135. package/dist/runtime/components/Navbar.vue.d.ts +0 -101
  136. package/dist/runtime/components/NavbarDivider.vue.d.ts +0 -101
  137. package/dist/runtime/components/NavbarSection.vue.d.ts +0 -101
  138. package/dist/runtime/components/NavbarSpacer.vue.d.ts +0 -101
  139. package/dist/runtime/components/NavigationMenu.vue.d.ts +0 -824
  140. package/dist/runtime/components/OverlayProvider.vue.d.ts +0 -2
  141. package/dist/runtime/components/Popover.vue.d.ts +0 -147
  142. package/dist/runtime/components/Progress.vue.d.ts +0 -592
  143. package/dist/runtime/components/RadioGroup.vue.d.ts +0 -723
  144. package/dist/runtime/components/Range.vue.d.ts +0 -417
  145. package/dist/runtime/components/Select.vue.d.ts +0 -1200
  146. package/dist/runtime/components/SelectMenu.vue.d.ts +0 -1298
  147. package/dist/runtime/components/Separator.vue.d.ts +0 -400
  148. package/dist/runtime/components/Sidebar.vue.d.ts +0 -101
  149. package/dist/runtime/components/SidebarBody.vue.d.ts +0 -90
  150. package/dist/runtime/components/SidebarFooter.vue.d.ts +0 -101
  151. package/dist/runtime/components/SidebarHeader.vue.d.ts +0 -101
  152. package/dist/runtime/components/SidebarHeading.vue.d.ts +0 -101
  153. package/dist/runtime/components/SidebarLayout.vue.d.ts +0 -222
  154. package/dist/runtime/components/SidebarSection.vue.d.ts +0 -101
  155. package/dist/runtime/components/SidebarSpacer.vue.d.ts +0 -101
  156. package/dist/runtime/components/Skeleton.vue.d.ts +0 -26
  157. package/dist/runtime/components/Slideover.vue.d.ts +0 -360
  158. package/dist/runtime/components/StackedLayout.vue.d.ts +0 -192
  159. package/dist/runtime/components/Switch.vue.d.ts +0 -587
  160. package/dist/runtime/components/Tabs.vue.d.ts +0 -453
  161. package/dist/runtime/components/Textarea.vue.d.ts +0 -601
  162. package/dist/runtime/components/Toast.vue.d.ts +0 -438
  163. package/dist/runtime/components/Toaster.vue.d.ts +0 -219
  164. package/dist/runtime/components/Tooltip.vue.d.ts +0 -186
  165. package/dist/runtime/components/content/TableWrapper.vue.d.ts +0 -237
  166. package/dist/runtime/prose/A.vue.d.ts +0 -84
  167. package/dist/runtime/prose/Blockquote.vue.d.ts +0 -84
  168. package/dist/runtime/prose/Code.vue.d.ts +0 -97
  169. package/dist/runtime/prose/Em.vue.d.ts +0 -84
  170. package/dist/runtime/prose/H1.vue.d.ts +0 -97
  171. package/dist/runtime/prose/H2.vue.d.ts +0 -123
  172. package/dist/runtime/prose/H3.vue.d.ts +0 -123
  173. package/dist/runtime/prose/H4.vue.d.ts +0 -123
  174. package/dist/runtime/prose/H5.vue.d.ts +0 -123
  175. package/dist/runtime/prose/H6.vue.d.ts +0 -123
  176. package/dist/runtime/prose/Hr.vue.d.ts +0 -74
  177. package/dist/runtime/prose/Img.vue.d.ts +0 -77
  178. package/dist/runtime/prose/Li.vue.d.ts +0 -84
  179. package/dist/runtime/prose/Ol.vue.d.ts +0 -84
  180. package/dist/runtime/prose/P.vue.d.ts +0 -84
  181. package/dist/runtime/prose/Pre.vue.d.ts +0 -117
  182. package/dist/runtime/prose/Strong.vue.d.ts +0 -84
  183. package/dist/runtime/prose/Table.vue.d.ts +0 -144
  184. package/dist/runtime/prose/Tbody.vue.d.ts +0 -84
  185. package/dist/runtime/prose/Td.vue.d.ts +0 -84
  186. package/dist/runtime/prose/Th.vue.d.ts +0 -84
  187. package/dist/runtime/prose/Thead.vue.d.ts +0 -84
  188. package/dist/runtime/prose/Tr.vue.d.ts +0 -84
  189. package/dist/runtime/prose/Ul.vue.d.ts +0 -84
  190. package/dist/runtime/vue/components/Link.vue.d.ts +0 -129
@@ -1,118 +0,0 @@
1
- import type { CollapsibleRootProps, CollapsibleRootEmits } from 'reka-ui';
2
- declare const collapsible: import("tailwind-variants").TVReturnType<{
3
- [key: string]: {
4
- [key: string]: import("tailwind-variants").ClassValue | {
5
- root?: import("tailwind-variants").ClassValue;
6
- content?: import("tailwind-variants").ClassValue;
7
- };
8
- };
9
- } | {
10
- [x: string]: {
11
- [x: string]: import("tailwind-variants").ClassValue | {
12
- root?: import("tailwind-variants").ClassValue;
13
- content?: import("tailwind-variants").ClassValue;
14
- };
15
- };
16
- } | {
17
- [x: string]: {
18
- [x: string]: import("tailwind-variants").ClassValue | {
19
- root?: import("tailwind-variants").ClassValue;
20
- content?: import("tailwind-variants").ClassValue;
21
- };
22
- };
23
- } | {}, {
24
- root: string;
25
- content: string;
26
- }, undefined, {
27
- [key: string]: {
28
- [key: string]: import("tailwind-variants").ClassValue | {
29
- root?: import("tailwind-variants").ClassValue;
30
- content?: import("tailwind-variants").ClassValue;
31
- };
32
- };
33
- } | {
34
- [x: string]: {
35
- [x: string]: import("tailwind-variants").ClassValue | {
36
- root?: import("tailwind-variants").ClassValue;
37
- content?: import("tailwind-variants").ClassValue;
38
- };
39
- };
40
- } | {}, {
41
- root: string;
42
- content: string;
43
- }, import("tailwind-variants").TVReturnType<{
44
- [key: string]: {
45
- [key: string]: import("tailwind-variants").ClassValue | {
46
- root?: import("tailwind-variants").ClassValue;
47
- content?: import("tailwind-variants").ClassValue;
48
- };
49
- };
50
- } | {
51
- [x: string]: {
52
- [x: string]: import("tailwind-variants").ClassValue | {
53
- root?: import("tailwind-variants").ClassValue;
54
- content?: import("tailwind-variants").ClassValue;
55
- };
56
- };
57
- } | {}, {
58
- root: string;
59
- content: string;
60
- }, undefined, {
61
- [key: string]: {
62
- [key: string]: import("tailwind-variants").ClassValue | {
63
- root?: import("tailwind-variants").ClassValue;
64
- content?: import("tailwind-variants").ClassValue;
65
- };
66
- };
67
- } | {}, {
68
- root: string;
69
- content: string;
70
- }, import("tailwind-variants").TVReturnType<unknown, {
71
- root: string;
72
- content: string;
73
- }, undefined, unknown, unknown, undefined>>>;
74
- export interface CollapsibleProps extends Pick<CollapsibleRootProps, 'defaultOpen' | 'open' | 'disabled' | 'unmountOnHide'> {
75
- /**
76
- * The element or component this component should render as.
77
- * @defaultValue 'div'
78
- */
79
- as?: any;
80
- class?: any;
81
- b24ui?: Partial<typeof collapsible.slots>;
82
- }
83
- export interface CollapsibleEmits extends CollapsibleRootEmits {
84
- }
85
- export interface CollapsibleSlots {
86
- default(props: {
87
- open: boolean;
88
- }): any;
89
- content(props?: {}): any;
90
- }
91
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CollapsibleProps>, {
92
- unmountOnHide: boolean;
93
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
94
- unmountOnHide: boolean;
95
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<CollapsibleSlots> & CollapsibleSlots>;
96
- export default _default;
97
- type __VLS_WithDefaults<P, D> = {
98
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
99
- default: D[K];
100
- }> : P[K];
101
- };
102
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
103
- type __VLS_TypePropsToOption<T> = {
104
- [K in keyof T]-?: {} extends Pick<T, K> ? {
105
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
106
- } : {
107
- type: import('vue').PropType<T[K]>;
108
- required: true;
109
- };
110
- };
111
- type __VLS_WithTemplateSlots<T, S> = T & {
112
- new (): {
113
- $slots: S;
114
- };
115
- };
116
- type __VLS_PrettifyLocal<T> = {
117
- [K in keyof T]: T[K];
118
- } & {};
@@ -1,27 +0,0 @@
1
- export interface ContainerProps {
2
- /**
3
- * The element or component this component should render as.
4
- * @defaultValue 'div'
5
- */
6
- as?: any;
7
- class?: any;
8
- }
9
- export interface ContainerSlots {
10
- default(props?: {}): any;
11
- }
12
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ContainerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ContainerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ContainerSlots> & ContainerSlots>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToOption<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
@@ -1,356 +0,0 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
- import type { UseComponentIconsProps } from '../composables/useComponentIcons';
3
- declare const countdown: import("tailwind-variants").TVReturnType<{
4
- size: {
5
- xs: {
6
- base: string;
7
- leadingIcon: string;
8
- leadingAvatarSize: string;
9
- };
10
- sm: {
11
- base: string;
12
- leadingIcon: string;
13
- leadingAvatarSize: string;
14
- };
15
- md: {
16
- base: string;
17
- leadingIcon: string;
18
- leadingAvatarSize: string;
19
- };
20
- lg: {
21
- base: string;
22
- leadingIcon: string;
23
- leadingAvatarSize: string;
24
- };
25
- xl: {
26
- base: string;
27
- leadingIcon: string;
28
- leadingAvatarSize: string;
29
- };
30
- };
31
- leading: {
32
- true: string;
33
- };
34
- useCircle: {
35
- true: {
36
- base: string;
37
- circleBase: string;
38
- };
39
- };
40
- }, {
41
- base: string;
42
- label: string;
43
- leadingIcon: string;
44
- leadingAvatar: string;
45
- leadingAvatarSize: string;
46
- circleBase: string;
47
- circleGroup: string;
48
- circleElement: string;
49
- circlePath: string;
50
- }, undefined, {
51
- size: {
52
- xs: {
53
- base: string;
54
- leadingIcon: string;
55
- leadingAvatarSize: string;
56
- };
57
- sm: {
58
- base: string;
59
- leadingIcon: string;
60
- leadingAvatarSize: string;
61
- };
62
- md: {
63
- base: string;
64
- leadingIcon: string;
65
- leadingAvatarSize: string;
66
- };
67
- lg: {
68
- base: string;
69
- leadingIcon: string;
70
- leadingAvatarSize: string;
71
- };
72
- xl: {
73
- base: string;
74
- leadingIcon: string;
75
- leadingAvatarSize: string;
76
- };
77
- };
78
- leading: {
79
- true: string;
80
- };
81
- useCircle: {
82
- true: {
83
- base: string;
84
- circleBase: string;
85
- };
86
- };
87
- }, {
88
- base: string;
89
- label: string;
90
- leadingIcon: string;
91
- leadingAvatar: string;
92
- leadingAvatarSize: string;
93
- circleBase: string;
94
- circleGroup: string;
95
- circleElement: string;
96
- circlePath: string;
97
- }, import("tailwind-variants").TVReturnType<{
98
- size: {
99
- xs: {
100
- base: string;
101
- leadingIcon: string;
102
- leadingAvatarSize: string;
103
- };
104
- sm: {
105
- base: string;
106
- leadingIcon: string;
107
- leadingAvatarSize: string;
108
- };
109
- md: {
110
- base: string;
111
- leadingIcon: string;
112
- leadingAvatarSize: string;
113
- };
114
- lg: {
115
- base: string;
116
- leadingIcon: string;
117
- leadingAvatarSize: string;
118
- };
119
- xl: {
120
- base: string;
121
- leadingIcon: string;
122
- leadingAvatarSize: string;
123
- };
124
- };
125
- leading: {
126
- true: string;
127
- };
128
- useCircle: {
129
- true: {
130
- base: string;
131
- circleBase: string;
132
- };
133
- };
134
- }, {
135
- base: string;
136
- label: string;
137
- leadingIcon: string;
138
- leadingAvatar: string;
139
- leadingAvatarSize: string;
140
- circleBase: string;
141
- circleGroup: string;
142
- circleElement: string;
143
- circlePath: string;
144
- }, undefined, {
145
- size: {
146
- xs: {
147
- base: string;
148
- leadingIcon: string;
149
- leadingAvatarSize: string;
150
- };
151
- sm: {
152
- base: string;
153
- leadingIcon: string;
154
- leadingAvatarSize: string;
155
- };
156
- md: {
157
- base: string;
158
- leadingIcon: string;
159
- leadingAvatarSize: string;
160
- };
161
- lg: {
162
- base: string;
163
- leadingIcon: string;
164
- leadingAvatarSize: string;
165
- };
166
- xl: {
167
- base: string;
168
- leadingIcon: string;
169
- leadingAvatarSize: string;
170
- };
171
- };
172
- leading: {
173
- true: string;
174
- };
175
- useCircle: {
176
- true: {
177
- base: string;
178
- circleBase: string;
179
- };
180
- };
181
- }, {
182
- base: string;
183
- label: string;
184
- leadingIcon: string;
185
- leadingAvatar: string;
186
- leadingAvatarSize: string;
187
- circleBase: string;
188
- circleGroup: string;
189
- circleElement: string;
190
- circlePath: string;
191
- }, import("tailwind-variants").TVReturnType<{
192
- size: {
193
- xs: {
194
- base: string;
195
- leadingIcon: string;
196
- leadingAvatarSize: string;
197
- };
198
- sm: {
199
- base: string;
200
- leadingIcon: string;
201
- leadingAvatarSize: string;
202
- };
203
- md: {
204
- base: string;
205
- leadingIcon: string;
206
- leadingAvatarSize: string;
207
- };
208
- lg: {
209
- base: string;
210
- leadingIcon: string;
211
- leadingAvatarSize: string;
212
- };
213
- xl: {
214
- base: string;
215
- leadingIcon: string;
216
- leadingAvatarSize: string;
217
- };
218
- };
219
- leading: {
220
- true: string;
221
- };
222
- useCircle: {
223
- true: {
224
- base: string;
225
- circleBase: string;
226
- };
227
- };
228
- }, {
229
- base: string;
230
- label: string;
231
- leadingIcon: string;
232
- leadingAvatar: string;
233
- leadingAvatarSize: string;
234
- circleBase: string;
235
- circleGroup: string;
236
- circleElement: string;
237
- circlePath: string;
238
- }, undefined, unknown, unknown, undefined>>>;
239
- type CountdownVariants = VariantProps<typeof countdown>;
240
- export interface CountdownData {
241
- days: number;
242
- hours: number;
243
- minutes: number;
244
- seconds: number;
245
- milliseconds: number;
246
- totalDays: number;
247
- totalHours: number;
248
- totalMinutes: number;
249
- totalSeconds: number;
250
- totalMilliseconds: number;
251
- }
252
- export interface CountdownProps extends Omit<UseComponentIconsProps, 'loading' | 'trailing' | 'trailingIcon'> {
253
- /**
254
- * The element or component this component should render as
255
- * @defaultValue 'span'
256
- */
257
- as?: any;
258
- /**
259
- * @defaultValue 'md'
260
- */
261
- size?: CountdownVariants['size'];
262
- /**
263
- * Emits the countdown events
264
- * @defaultValue true
265
- */
266
- emitEvents?: boolean;
267
- /**
268
- * Number of seconds to countdown
269
- * @defaultValue 0
270
- */
271
- seconds?: number | string;
272
- /**
273
- * Should seconds be divided into minutes?
274
- * @defaultValue true
275
- */
276
- showMinutes?: boolean;
277
- /**
278
- * Shows a `Circle` around the countdown
279
- * @defaultValue false
280
- */
281
- useCircle?: boolean;
282
- /**
283
- * The interval time (in milliseconds) of the countdown progress
284
- * @defaultValue 1000
285
- */
286
- interval?: number;
287
- /**
288
- * Starts the countdown automatically when initialized
289
- * @defaultValue true
290
- */
291
- needStartImmediately?: boolean;
292
- /**
293
- * Generate the current time of a specific time zone
294
- * @defaultValue Date.now()
295
- */
296
- now?: () => number;
297
- class?: any;
298
- b24ui?: Partial<typeof countdown.slots>;
299
- }
300
- export interface CountdownEmits {
301
- (e: 'start' | 'end' | 'abort'): void;
302
- (e: 'progress', payload: CountdownData): void;
303
- }
304
- export interface CountdownSlots {
305
- leading(props?: {}): any;
306
- default(props: CountdownData & {
307
- formatTime: string;
308
- }): any;
309
- }
310
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CountdownProps>, {
311
- as: string;
312
- needStartImmediately: boolean;
313
- emitEvents: boolean;
314
- interval: number;
315
- now: () => number;
316
- seconds: number;
317
- showMinutes: boolean;
318
- useCircle: boolean;
319
- }>>, {
320
- start: () => void;
321
- abort: () => void;
322
- stop: () => void;
323
- restart: () => void;
324
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
325
- as: any;
326
- useCircle: boolean;
327
- emitEvents: boolean;
328
- seconds: number | string;
329
- showMinutes: boolean;
330
- interval: number;
331
- needStartImmediately: boolean;
332
- now: () => number;
333
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<CountdownSlots> & CountdownSlots>;
334
- export default _default;
335
- type __VLS_WithDefaults<P, D> = {
336
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
337
- default: D[K];
338
- }> : P[K];
339
- };
340
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
341
- type __VLS_TypePropsToOption<T> = {
342
- [K in keyof T]-?: {} extends Pick<T, K> ? {
343
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
344
- } : {
345
- type: import('vue').PropType<T[K]>;
346
- required: true;
347
- };
348
- };
349
- type __VLS_WithTemplateSlots<T, S> = T & {
350
- new (): {
351
- $slots: S;
352
- };
353
- };
354
- type __VLS_PrettifyLocal<T> = {
355
- [K in keyof T]: T[K];
356
- } & {};