@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,228 +0,0 @@
1
- import type { DropdownMenuContentProps as RekaDropdownMenuContentProps } from 'reka-ui';
2
- import type { DropdownMenuItem, DropdownMenuSlots, IconComponent } from '../types';
3
- import type { ArrayOrNested, NestedItem } from '../types/utils';
4
- declare const _dropdownMenu: {
5
- content: (slotProps?: ({
6
- size?: "md" | "xs" | "sm" | "lg" | undefined;
7
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
8
- active?: boolean | undefined;
9
- loading?: boolean | undefined;
10
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
11
- arrow: (slotProps?: ({
12
- size?: "md" | "xs" | "sm" | "lg" | undefined;
13
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
14
- active?: boolean | undefined;
15
- loading?: boolean | undefined;
16
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
17
- group: (slotProps?: ({
18
- size?: "md" | "xs" | "sm" | "lg" | undefined;
19
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
20
- active?: boolean | undefined;
21
- loading?: boolean | undefined;
22
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
23
- label: (slotProps?: ({
24
- size?: "md" | "xs" | "sm" | "lg" | undefined;
25
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
26
- active?: boolean | undefined;
27
- loading?: boolean | undefined;
28
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
29
- separator: (slotProps?: ({
30
- size?: "md" | "xs" | "sm" | "lg" | undefined;
31
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
32
- active?: boolean | undefined;
33
- loading?: boolean | undefined;
34
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
35
- item: (slotProps?: ({
36
- size?: "md" | "xs" | "sm" | "lg" | undefined;
37
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
38
- active?: boolean | undefined;
39
- loading?: boolean | undefined;
40
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
41
- itemLeadingIcon: (slotProps?: ({
42
- size?: "md" | "xs" | "sm" | "lg" | undefined;
43
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
44
- active?: boolean | undefined;
45
- loading?: boolean | undefined;
46
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
47
- itemLeadingAvatar: (slotProps?: ({
48
- size?: "md" | "xs" | "sm" | "lg" | undefined;
49
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
50
- active?: boolean | undefined;
51
- loading?: boolean | undefined;
52
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
53
- itemLeadingAvatarSize: (slotProps?: ({
54
- size?: "md" | "xs" | "sm" | "lg" | undefined;
55
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
56
- active?: boolean | undefined;
57
- loading?: boolean | undefined;
58
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
59
- itemTrailing: (slotProps?: ({
60
- size?: "md" | "xs" | "sm" | "lg" | undefined;
61
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
62
- active?: boolean | undefined;
63
- loading?: boolean | undefined;
64
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
65
- itemTrailingIcon: (slotProps?: ({
66
- size?: "md" | "xs" | "sm" | "lg" | undefined;
67
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
68
- active?: boolean | undefined;
69
- loading?: boolean | undefined;
70
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
71
- itemTrailingKbds: (slotProps?: ({
72
- size?: "md" | "xs" | "sm" | "lg" | undefined;
73
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
74
- active?: boolean | undefined;
75
- loading?: boolean | undefined;
76
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
77
- itemTrailingKbdsSize: (slotProps?: ({
78
- size?: "md" | "xs" | "sm" | "lg" | undefined;
79
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
80
- active?: boolean | undefined;
81
- loading?: boolean | undefined;
82
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
83
- itemLabel: (slotProps?: ({
84
- size?: "md" | "xs" | "sm" | "lg" | undefined;
85
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
86
- active?: boolean | undefined;
87
- loading?: boolean | undefined;
88
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
89
- itemLabelExternalIcon: (slotProps?: ({
90
- size?: "md" | "xs" | "sm" | "lg" | undefined;
91
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
92
- active?: boolean | undefined;
93
- loading?: boolean | undefined;
94
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
95
- } & {
96
- content: (slotProps?: ({
97
- size?: "md" | "xs" | "sm" | "lg" | undefined;
98
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
99
- active?: boolean | undefined;
100
- loading?: boolean | undefined;
101
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
102
- arrow: (slotProps?: ({
103
- size?: "md" | "xs" | "sm" | "lg" | undefined;
104
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
105
- active?: boolean | undefined;
106
- loading?: boolean | undefined;
107
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
108
- group: (slotProps?: ({
109
- size?: "md" | "xs" | "sm" | "lg" | undefined;
110
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
111
- active?: boolean | undefined;
112
- loading?: boolean | undefined;
113
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
114
- label: (slotProps?: ({
115
- size?: "md" | "xs" | "sm" | "lg" | undefined;
116
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
117
- active?: boolean | undefined;
118
- loading?: boolean | undefined;
119
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
120
- separator: (slotProps?: ({
121
- size?: "md" | "xs" | "sm" | "lg" | undefined;
122
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
123
- active?: boolean | undefined;
124
- loading?: boolean | undefined;
125
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
126
- item: (slotProps?: ({
127
- size?: "md" | "xs" | "sm" | "lg" | undefined;
128
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
129
- active?: boolean | undefined;
130
- loading?: boolean | undefined;
131
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
132
- itemLeadingIcon: (slotProps?: ({
133
- size?: "md" | "xs" | "sm" | "lg" | undefined;
134
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
135
- active?: boolean | undefined;
136
- loading?: boolean | undefined;
137
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
138
- itemLeadingAvatar: (slotProps?: ({
139
- size?: "md" | "xs" | "sm" | "lg" | undefined;
140
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
141
- active?: boolean | undefined;
142
- loading?: boolean | undefined;
143
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
144
- itemLeadingAvatarSize: (slotProps?: ({
145
- size?: "md" | "xs" | "sm" | "lg" | undefined;
146
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
147
- active?: boolean | undefined;
148
- loading?: boolean | undefined;
149
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
150
- itemTrailing: (slotProps?: ({
151
- size?: "md" | "xs" | "sm" | "lg" | undefined;
152
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
153
- active?: boolean | undefined;
154
- loading?: boolean | undefined;
155
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
156
- itemTrailingIcon: (slotProps?: ({
157
- size?: "md" | "xs" | "sm" | "lg" | undefined;
158
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
159
- active?: boolean | undefined;
160
- loading?: boolean | undefined;
161
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
162
- itemTrailingKbds: (slotProps?: ({
163
- size?: "md" | "xs" | "sm" | "lg" | undefined;
164
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
165
- active?: boolean | undefined;
166
- loading?: boolean | undefined;
167
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
168
- itemTrailingKbdsSize: (slotProps?: ({
169
- size?: "md" | "xs" | "sm" | "lg" | undefined;
170
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
171
- active?: boolean | undefined;
172
- loading?: boolean | undefined;
173
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
174
- itemLabel: (slotProps?: ({
175
- size?: "md" | "xs" | "sm" | "lg" | undefined;
176
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
177
- active?: boolean | undefined;
178
- loading?: boolean | undefined;
179
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
180
- itemLabelExternalIcon: (slotProps?: ({
181
- size?: "md" | "xs" | "sm" | "lg" | undefined;
182
- color?: "default" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | undefined;
183
- active?: boolean | undefined;
184
- loading?: boolean | undefined;
185
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
186
- } & {};
187
- interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> extends Omit<RekaDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
188
- items?: T;
189
- portal?: boolean;
190
- sub?: boolean;
191
- labelKey: keyof NestedItem<T>;
192
- /**
193
- * @IconComponent
194
- */
195
- checkedIcon?: IconComponent;
196
- /**
197
- * @IconComponent
198
- */
199
- externalIcon?: boolean | IconComponent;
200
- class?: any;
201
- b24ui: typeof _dropdownMenu;
202
- b24uiOverride?: any;
203
- }
204
- declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
205
- props: __VLS_PrettifyLocal<any & DropdownMenuContentProps<T> & Partial<{}>> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
206
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
207
- attrs: any;
208
- slots: Readonly<Omit<DropdownMenuSlots<T>, "default"> & {
209
- default(props?: {}): any;
210
- }> & Omit<DropdownMenuSlots<T>, "default"> & {
211
- default(props?: {}): any;
212
- };
213
- emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: CustomEvent<{
214
- originalEvent: PointerEvent;
215
- }>) => void) & ((evt: "focusOutside", event: CustomEvent<{
216
- originalEvent: FocusEvent;
217
- }>) => void) & ((evt: "interactOutside", event: CustomEvent<{
218
- originalEvent: PointerEvent;
219
- }> | CustomEvent<{
220
- originalEvent: FocusEvent;
221
- }>) => void) & ((evt: "closeAutoFocus", event: Event) => void);
222
- }>) => import("vue").VNode & {
223
- __ctx?: Awaited<typeof __VLS_setup>;
224
- };
225
- export default _default;
226
- type __VLS_PrettifyLocal<T> = {
227
- [K in keyof T]: T[K];
228
- } & {};
@@ -1,55 +0,0 @@
1
- import type { FormSchema, FormError, FormInputEvents, FormErrorEvent, FormSubmitEvent, Form } from '../types/form';
2
- export interface FormProps<T extends object> {
3
- id?: string | number;
4
- /** Schema to validate the form state. Supports Standard Schema objects, Yup, Joi, and Superstructs. */
5
- schema?: FormSchema<T>;
6
- /** An object representing the current state of the form. */
7
- state: Partial<T>;
8
- /**
9
- * Custom validation function to validate the form state.
10
- * @param state - The current state of the form.
11
- * @returns A promise that resolves to an array of FormError objects, or an array of FormError objects directly.
12
- */
13
- validate?: (state: Partial<T>) => Promise<FormError[]> | FormError[];
14
- /**
15
- * The list of input events that trigger the form validation.
16
- * @defaultValue `['blur', 'change', 'input']`
17
- */
18
- validateOn?: FormInputEvents[];
19
- /** Disable all inputs inside the form. */
20
- disabled?: boolean;
21
- /**
22
- * Delay in milliseconds before validating the form on input events.
23
- * @defaultValue `300`
24
- */
25
- validateOnInputDelay?: number;
26
- /**
27
- * If true, schema transformations will be applied to the state on submit.
28
- * @defaultValue `true`
29
- */
30
- transform?: boolean;
31
- class?: any;
32
- onSubmit?: ((event: FormSubmitEvent<T>) => void | Promise<void>) | (() => void | Promise<void>);
33
- }
34
- export interface FormEmits<T extends object> {
35
- (e: 'submit', payload: FormSubmitEvent<T>): void;
36
- (e: 'error', payload: FormErrorEvent): void;
37
- }
38
- export interface FormSlots {
39
- default(props?: {
40
- errors: FormError[];
41
- }): any;
42
- }
43
- declare const _default: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
44
- props: __VLS_PrettifyLocal<any & FormProps<T> & Partial<{}>> & (import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps);
45
- expose(exposed: import("vue").ShallowUnwrapRef<Form<T>>): void;
46
- attrs: any;
47
- slots: Readonly<FormSlots> & FormSlots;
48
- emit: FormEmits<T>;
49
- }>) => import("vue").VNode & {
50
- __ctx?: Awaited<typeof __VLS_setup>;
51
- };
52
- export default _default;
53
- type __VLS_PrettifyLocal<T> = {
54
- [K in keyof T]: T[K];
55
- } & {};
@@ -1,282 +0,0 @@
1
- import type { VariantProps } from 'tailwind-variants';
2
- declare const formField: import("tailwind-variants").TVReturnType<{
3
- useDescription: {
4
- true: {
5
- wrapper: string;
6
- };
7
- false: {
8
- wrapper: string;
9
- };
10
- };
11
- size: {
12
- xs: {
13
- root: string;
14
- errorIcon: string;
15
- };
16
- sm: {
17
- root: string;
18
- errorIcon: string;
19
- };
20
- md: {
21
- root: string;
22
- errorIcon: string;
23
- };
24
- lg: {
25
- root: string;
26
- };
27
- };
28
- required: {
29
- true: {
30
- label: string;
31
- };
32
- };
33
- }, {
34
- root: string;
35
- wrapper: string;
36
- labelWrapper: string;
37
- label: string;
38
- hint: string;
39
- container: string;
40
- description: string;
41
- error: string;
42
- errorIcon: string;
43
- help: string;
44
- }, undefined, {
45
- useDescription: {
46
- true: {
47
- wrapper: string;
48
- };
49
- false: {
50
- wrapper: string;
51
- };
52
- };
53
- size: {
54
- xs: {
55
- root: string;
56
- errorIcon: string;
57
- };
58
- sm: {
59
- root: string;
60
- errorIcon: string;
61
- };
62
- md: {
63
- root: string;
64
- errorIcon: string;
65
- };
66
- lg: {
67
- root: string;
68
- };
69
- };
70
- required: {
71
- true: {
72
- label: string;
73
- };
74
- };
75
- }, {
76
- root: string;
77
- wrapper: string;
78
- labelWrapper: string;
79
- label: string;
80
- hint: string;
81
- container: string;
82
- description: string;
83
- error: string;
84
- errorIcon: string;
85
- help: string;
86
- }, import("tailwind-variants").TVReturnType<{
87
- useDescription: {
88
- true: {
89
- wrapper: string;
90
- };
91
- false: {
92
- wrapper: string;
93
- };
94
- };
95
- size: {
96
- xs: {
97
- root: string;
98
- errorIcon: string;
99
- };
100
- sm: {
101
- root: string;
102
- errorIcon: string;
103
- };
104
- md: {
105
- root: string;
106
- errorIcon: string;
107
- };
108
- lg: {
109
- root: string;
110
- };
111
- };
112
- required: {
113
- true: {
114
- label: string;
115
- };
116
- };
117
- }, {
118
- root: string;
119
- wrapper: string;
120
- labelWrapper: string;
121
- label: string;
122
- hint: string;
123
- container: string;
124
- description: string;
125
- error: string;
126
- errorIcon: string;
127
- help: string;
128
- }, undefined, {
129
- useDescription: {
130
- true: {
131
- wrapper: string;
132
- };
133
- false: {
134
- wrapper: string;
135
- };
136
- };
137
- size: {
138
- xs: {
139
- root: string;
140
- errorIcon: string;
141
- };
142
- sm: {
143
- root: string;
144
- errorIcon: string;
145
- };
146
- md: {
147
- root: string;
148
- errorIcon: string;
149
- };
150
- lg: {
151
- root: string;
152
- };
153
- };
154
- required: {
155
- true: {
156
- label: string;
157
- };
158
- };
159
- }, {
160
- root: string;
161
- wrapper: string;
162
- labelWrapper: string;
163
- label: string;
164
- hint: string;
165
- container: string;
166
- description: string;
167
- error: string;
168
- errorIcon: string;
169
- help: string;
170
- }, import("tailwind-variants").TVReturnType<{
171
- useDescription: {
172
- true: {
173
- wrapper: string;
174
- };
175
- false: {
176
- wrapper: string;
177
- };
178
- };
179
- size: {
180
- xs: {
181
- root: string;
182
- errorIcon: string;
183
- };
184
- sm: {
185
- root: string;
186
- errorIcon: string;
187
- };
188
- md: {
189
- root: string;
190
- errorIcon: string;
191
- };
192
- lg: {
193
- root: string;
194
- };
195
- };
196
- required: {
197
- true: {
198
- label: string;
199
- };
200
- };
201
- }, {
202
- root: string;
203
- wrapper: string;
204
- labelWrapper: string;
205
- label: string;
206
- hint: string;
207
- container: string;
208
- description: string;
209
- error: string;
210
- errorIcon: string;
211
- help: string;
212
- }, undefined, unknown, unknown, undefined>>>;
213
- type FormFieldVariants = VariantProps<typeof formField>;
214
- export interface FormFieldProps {
215
- /**
216
- * The element or component this component should render as.
217
- * @defaultValue 'div'
218
- */
219
- as?: any;
220
- /** The name of the FormField. Also used to match form errors. */
221
- name?: string;
222
- /** A regular expression to match form error names. */
223
- errorPattern?: RegExp;
224
- label?: string;
225
- description?: string;
226
- help?: string;
227
- error?: string | boolean;
228
- hint?: string;
229
- /**
230
- * @defaultValue 'md'
231
- */
232
- size?: FormFieldVariants['size'];
233
- /**
234
- * @defaultValue false
235
- */
236
- required?: boolean;
237
- /** If true, validation on input will be active immediately instead of waiting for a blur event. */
238
- eagerValidation?: boolean;
239
- /**
240
- * Delay in milliseconds before validating the form on input events.
241
- * @defaultValue `300`
242
- */
243
- validateOnInputDelay?: number;
244
- class?: any;
245
- b24ui?: Partial<typeof formField.slots>;
246
- }
247
- export interface FormFieldSlots {
248
- label(props: {
249
- label?: string;
250
- }): any;
251
- hint(props: {
252
- hint?: string;
253
- }): any;
254
- description(props: {
255
- description?: string;
256
- }): any;
257
- help(props: {
258
- help?: string;
259
- }): any;
260
- error(props: {
261
- error?: string | boolean;
262
- }): any;
263
- default(props: {
264
- error?: string | boolean;
265
- }): any;
266
- }
267
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FormFieldProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<FormFieldProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<FormFieldSlots> & FormFieldSlots>;
268
- export default _default;
269
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
270
- type __VLS_TypePropsToOption<T> = {
271
- [K in keyof T]-?: {} extends Pick<T, K> ? {
272
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
273
- } : {
274
- type: import('vue').PropType<T[K]>;
275
- required: true;
276
- };
277
- };
278
- type __VLS_WithTemplateSlots<T, S> = T & {
279
- new (): {
280
- $slots: S;
281
- };
282
- };