bitboss-ui 2.1.32 → 2.1.34

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 (206) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +13 -12
  2. package/dist/components/BaseColorInput/ColorPallette.vue.d.ts +2 -2
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +11 -6
  4. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
  5. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
  6. package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
  7. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
  8. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
  9. package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
  10. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  11. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  12. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +30 -38
  13. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +8 -3
  14. package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
  15. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
  16. package/dist/components/BbPopover/BbPopover.vue.d.ts +25 -32
  17. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
  18. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  19. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  20. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  21. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +26 -31
  22. package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
  23. package/dist/components/{CommonPopover.vue.d.ts → CommonPopover2.vue.d.ts} +2 -7
  24. package/dist/composables/useCancelableFunction.d.ts +17 -0
  25. package/dist/composables/useToast.d.ts +4 -3
  26. package/dist/index.css +1 -1
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index106.js +9 -9
  29. package/dist/index111.js +1 -1
  30. package/dist/index113.js +1 -1
  31. package/dist/index121.js +11 -11
  32. package/dist/index129.js +1 -1
  33. package/dist/index13.js +1 -1
  34. package/dist/index131.js +111 -93
  35. package/dist/index133.js +1 -1
  36. package/dist/index135.js +2 -2
  37. package/dist/index140.js +292 -250
  38. package/dist/index142.js +2 -2
  39. package/dist/index15.js +72 -74
  40. package/dist/index17.js +3 -3
  41. package/dist/index19.js +8 -8
  42. package/dist/index21.js +16 -16
  43. package/dist/index212.js +3 -3
  44. package/dist/index215.js +86 -4
  45. package/dist/index217.js +27 -9
  46. package/dist/index218.js +16 -19
  47. package/dist/index219.js +49 -195
  48. package/dist/index220.js +17 -0
  49. package/dist/index221.js +3 -117
  50. package/dist/index222.js +14 -0
  51. package/dist/index223.js +16 -34
  52. package/dist/index224.js +2 -86
  53. package/dist/index225.js +4 -0
  54. package/dist/index226.js +2 -29
  55. package/dist/index227.js +106 -17
  56. package/dist/index229.js +100 -15
  57. package/dist/index23.js +152 -152
  58. package/dist/index231.js +2 -12
  59. package/dist/index232.js +4 -16
  60. package/dist/index233.js +5 -2
  61. package/dist/index234.js +5 -2
  62. package/dist/index235.js +5 -2
  63. package/dist/index236.js +5 -5
  64. package/dist/index237.js +4 -4
  65. package/dist/index238.js +5 -5
  66. package/dist/index239.js +2 -5
  67. package/dist/index240.js +13 -5
  68. package/dist/index241.js +20 -5
  69. package/dist/index242.js +121 -5
  70. package/dist/index244.js +17 -7
  71. package/dist/index245.js +12 -250
  72. package/dist/index246.js +222 -45
  73. package/dist/index247.js +13 -44
  74. package/dist/index248.js +4 -5
  75. package/dist/index249.js +190 -53
  76. package/dist/index25.js +3 -3
  77. package/dist/index251.js +7 -3
  78. package/dist/index252.js +33 -12
  79. package/dist/index253.js +2 -106
  80. package/dist/index254.js +185 -0
  81. package/dist/index255.js +3 -100
  82. package/dist/index256.js +4 -0
  83. package/dist/index257.js +7 -2
  84. package/dist/index258.js +6 -182
  85. package/dist/index259.js +12 -6
  86. package/dist/index260.js +5 -2
  87. package/dist/index261.js +5 -2
  88. package/dist/index262.js +8 -7
  89. package/dist/index263.js +250 -7
  90. package/dist/index264.js +50 -16
  91. package/dist/index265.js +44 -12
  92. package/dist/index266.js +5 -6
  93. package/dist/index267.js +54 -223
  94. package/dist/index268.js +6 -5
  95. package/dist/index269.js +16 -10
  96. package/dist/index27.js +1 -1
  97. package/dist/index270.js +9 -3
  98. package/dist/index271.js +4 -9
  99. package/dist/index272.js +23 -23
  100. package/dist/index273.js +9 -3
  101. package/dist/index274.js +23 -9
  102. package/dist/index275.js +10 -6
  103. package/dist/index276.js +3 -16
  104. package/dist/index277.js +3 -9
  105. package/dist/index278.js +9 -8
  106. package/dist/index279.js +8 -33
  107. package/dist/index280.js +33 -28
  108. package/dist/index281.js +30 -0
  109. package/dist/index283.js +2 -5
  110. package/dist/index284.js +67 -8
  111. package/dist/index285.js +5 -2
  112. package/dist/index286.js +5 -5
  113. package/dist/index287.js +8 -3
  114. package/dist/index288.js +4 -3
  115. package/dist/index289.js +3 -7
  116. package/dist/index29.js +2 -2
  117. package/dist/index290.js +17 -11
  118. package/dist/index291.js +28 -2
  119. package/dist/index292.js +3 -4
  120. package/dist/index293.js +1 -1
  121. package/dist/index294.js +4 -17
  122. package/dist/index295.js +279 -27
  123. package/dist/index296.js +2 -4
  124. package/dist/index297.js +125 -5
  125. package/dist/index298.js +2 -280
  126. package/dist/index299.js +15 -2
  127. package/dist/index300.js +2 -16
  128. package/dist/index301.js +16 -2
  129. package/dist/index302.js +2 -16
  130. package/dist/index303.js +16 -2
  131. package/dist/index304.js +2 -19
  132. package/dist/index305.js +19 -2
  133. package/dist/index306.js +2 -15
  134. package/dist/index307.js +3 -2
  135. package/dist/index308.js +7 -19
  136. package/dist/index309.js +11 -2
  137. package/dist/index31.js +2 -2
  138. package/dist/index310.js +2 -27
  139. package/dist/index311.js +3 -2
  140. package/dist/index312.js +6 -2
  141. package/dist/index313.js +1 -1
  142. package/dist/index314.js +5 -2
  143. package/dist/index315.js +19 -2
  144. package/dist/index316.js +2 -22
  145. package/dist/index317.js +29 -0
  146. package/dist/index318.js +2 -3
  147. package/dist/index319.js +2 -3
  148. package/dist/index320.js +2 -6
  149. package/dist/index321.js +1 -1
  150. package/dist/index322.js +2 -125
  151. package/dist/index323.js +22 -2
  152. package/dist/index328.js +7 -0
  153. package/dist/index33.js +8 -8
  154. package/dist/index330.js +3 -2
  155. package/dist/index331.js +2 -8
  156. package/dist/index332.js +34 -5
  157. package/dist/index333.js +6 -8
  158. package/dist/index334.js +128 -57
  159. package/dist/index335.js +367 -56
  160. package/dist/index336.js +47 -8
  161. package/dist/index337.js +57 -128
  162. package/dist/index338.js +56 -367
  163. package/dist/index339.js +7 -6
  164. package/dist/index340.js +5 -18
  165. package/dist/index341.js +8 -228
  166. package/dist/index343.js +227 -46
  167. package/dist/index344.js +6 -92
  168. package/dist/index345.js +17 -127
  169. package/dist/index346.js +87 -430
  170. package/dist/index347.js +123 -121
  171. package/dist/index348.js +1 -1
  172. package/dist/index349.js +430 -44
  173. package/dist/index35.js +4 -4
  174. package/dist/index350.js +129 -0
  175. package/dist/index351.js +52 -0
  176. package/dist/index37.js +261 -271
  177. package/dist/index39.js +6 -6
  178. package/dist/index41.js +2 -2
  179. package/dist/index43.js +8 -8
  180. package/dist/index45.js +60 -62
  181. package/dist/index49.js +1 -1
  182. package/dist/index53.js +1 -1
  183. package/dist/index55.js +1 -1
  184. package/dist/index57.js +2 -2
  185. package/dist/index61.js +6 -6
  186. package/dist/index67.js +1 -1
  187. package/dist/index79.js +206 -182
  188. package/dist/index81.js +2 -2
  189. package/dist/index83.js +2 -2
  190. package/dist/index85.js +3 -3
  191. package/dist/index87.js +1 -1
  192. package/dist/index90.js +3 -3
  193. package/dist/index92.js +2 -2
  194. package/dist/index94.js +121 -117
  195. package/dist/types/Icon.d.ts +9 -0
  196. package/dist/utilities/functions/extractDomContainer.d.ts +1 -0
  197. package/dist/utilities/functions/parseWidthString.d.ts +6 -0
  198. package/package.json +1 -1
  199. package/dist/index216.js +0 -15
  200. package/dist/index228.js +0 -53
  201. package/dist/index230.js +0 -5
  202. package/dist/index243.js +0 -4
  203. package/dist/index250.js +0 -6
  204. package/dist/index282.js +0 -69
  205. package/dist/index324.js +0 -7
  206. package/dist/index329.js +0 -5
@@ -1,6 +1,7 @@
1
1
  import { BaseButtonProps } from '../BaseButton/BaseButton.vue';
2
2
  import { CommonProps } from '../../types/CommonProps';
3
- export type BbDropdownProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration'> & {
3
+ import { IconType } from '../../types/Icon';
4
+ export type BbDropdownProps = Pick<CommonProps, 'arrowPadding' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'transitionDuration'> & {
4
5
  /**
5
6
  * Array used to render each dropdown button.
6
7
  * They can act as `button`, as `a`, or as `router-link`
@@ -9,9 +10,14 @@ export type BbDropdownProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disa
9
10
  */
10
11
  items: Item[];
11
12
  /**
12
- * Width of the dropdown in pixels.
13
+ * Name of the theme to apply to the component. It creates a CSS class with the name of the theme.
14
+ * @deprecated since the popover is local you should use a normal css class applied to the top level element
13
15
  */
14
- width?: number;
16
+ theme?: string;
17
+ /**
18
+ * Width of the dropdown in pixels or percentage.
19
+ */
20
+ width?: number | string;
15
21
  };
16
22
  export type Item = Omit<BaseButtonProps, 'block' | 'tag' | 'type'> & {
17
23
  /**
@@ -25,11 +31,11 @@ export type Item = Omit<BaseButtonProps, 'block' | 'tag' | 'type'> & {
25
31
  /**
26
32
  * Icon to be displayed before the text.
27
33
  */
28
- 'prepend:icon'?: string;
34
+ 'prepend:icon'?: IconType;
29
35
  /**
30
36
  * Icon to be displayed after the text.
31
37
  */
32
- 'append:icon'?: string;
38
+ 'append:icon'?: IconType;
33
39
  };
34
40
  export type MappedItem = Item & {
35
41
  /**
@@ -52,6 +58,7 @@ declare function __VLS_template(): {
52
58
  onClick: (...args: any[]) => any;
53
59
  onKeydown: (event: KeyboardEvent) => void;
54
60
  disabled?: BbDropdownProps["disabled"];
61
+ ref: (reference: unknown) => void;
55
62
  };
56
63
  disabled?: boolean;
57
64
  open: boolean;
@@ -101,6 +108,7 @@ declare function __VLS_template(): {
101
108
  onClick: (...args: any[]) => any;
102
109
  onKeydown: (event: KeyboardEvent) => void;
103
110
  disabled?: BbDropdownProps["disabled"];
111
+ ref: (reference: unknown) => void;
104
112
  };
105
113
  disabled?: boolean;
106
114
  open: boolean;
@@ -143,20 +151,19 @@ declare function __VLS_template(): {
143
151
  }) => any;
144
152
  };
145
153
  refs: {
146
- wrapper: ({
154
+ popover: ({
147
155
  $: import('vue').ComponentInternalInstance;
148
156
  $data: {};
149
157
  $props: {
150
158
  readonly modelValue?: boolean | undefined;
159
+ readonly eager?: boolean | undefined;
151
160
  readonly transitionDuration?: number | undefined;
152
161
  readonly arrowPadding?: number | undefined;
153
- readonly block?: boolean | undefined;
154
162
  readonly offset?: number | undefined;
155
163
  readonly padding?: number | undefined;
156
164
  readonly placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | undefined;
157
- readonly containerAttributes?: Record<string, any> | undefined;
165
+ readonly anchor?: any;
158
166
  readonly dialog?: boolean | undefined;
159
- readonly renderContent?: boolean | undefined;
160
167
  readonly tag?: string | undefined;
161
168
  readonly flip?: boolean | undefined;
162
169
  readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -168,7 +175,6 @@ declare function __VLS_template(): {
168
175
  [x: string]: unknown;
169
176
  } & {
170
177
  wrapper: unknown;
171
- content: unknown;
172
178
  bubblearrow: HTMLSpanElement;
173
179
  };
174
180
  $slots: Readonly<{
@@ -181,10 +187,9 @@ declare function __VLS_template(): {
181
187
  $el: any;
182
188
  $options: import('vue').ComponentOptionsBase<Readonly<{
183
189
  modelValue?: boolean;
184
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
185
- containerAttributes?: Record<string, any>;
190
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
191
+ anchor?: any;
186
192
  dialog?: boolean;
187
- renderContent?: boolean;
188
193
  tag?: string;
189
194
  flip?: boolean;
190
195
  }> & Readonly<{
@@ -195,7 +200,6 @@ declare function __VLS_template(): {
195
200
  transitionDuration: number;
196
201
  padding: number;
197
202
  tag: string;
198
- renderContent: boolean;
199
203
  flip: boolean;
200
204
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
201
205
  beforeCreate?: (() => void) | (() => void)[];
@@ -221,31 +225,27 @@ declare function __VLS_template(): {
221
225
  transitionDuration: number;
222
226
  padding: number;
223
227
  tag: string;
224
- renderContent: boolean;
225
228
  flip: boolean;
226
229
  }> & Omit<Readonly<{
227
230
  modelValue?: boolean;
228
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
229
- containerAttributes?: Record<string, any>;
231
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
232
+ anchor?: any;
230
233
  dialog?: boolean;
231
- renderContent?: boolean;
232
234
  tag?: string;
233
235
  flip?: boolean;
234
236
  }> & Readonly<{
235
237
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
236
- }>, "transitionDuration" | "padding" | "tag" | "renderContent" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
238
+ }>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
237
239
  $slots: {
238
- activator?(_: {}): any;
239
240
  default?(_: {}): any;
240
241
  };
241
242
  }) | null;
242
- content: HTMLSpanElement;
243
243
  };
244
244
  rootEl: any;
245
245
  };
246
246
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
247
247
  declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbDropdownProps> & Readonly<{}>, {
248
- width: number;
248
+ width: number | string;
249
249
  transitionDuration: number;
250
250
  arrowPadding: number;
251
251
  offset: number;
@@ -253,20 +253,19 @@ declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}
253
253
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
254
254
  theme: string;
255
255
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
256
- wrapper: ({
256
+ popover: ({
257
257
  $: import('vue').ComponentInternalInstance;
258
258
  $data: {};
259
259
  $props: {
260
260
  readonly modelValue?: boolean | undefined;
261
+ readonly eager?: boolean | undefined;
261
262
  readonly transitionDuration?: number | undefined;
262
263
  readonly arrowPadding?: number | undefined;
263
- readonly block?: boolean | undefined;
264
264
  readonly offset?: number | undefined;
265
265
  readonly padding?: number | undefined;
266
266
  readonly placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | undefined;
267
- readonly containerAttributes?: Record<string, any> | undefined;
267
+ readonly anchor?: any;
268
268
  readonly dialog?: boolean | undefined;
269
- readonly renderContent?: boolean | undefined;
270
269
  readonly tag?: string | undefined;
271
270
  readonly flip?: boolean | undefined;
272
271
  readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -278,7 +277,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}
278
277
  [x: string]: unknown;
279
278
  } & {
280
279
  wrapper: unknown;
281
- content: unknown;
282
280
  bubblearrow: HTMLSpanElement;
283
281
  };
284
282
  $slots: Readonly<{
@@ -291,10 +289,9 @@ declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}
291
289
  $el: any;
292
290
  $options: import('vue').ComponentOptionsBase<Readonly<{
293
291
  modelValue?: boolean;
294
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
295
- containerAttributes?: Record<string, any>;
292
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
293
+ anchor?: any;
296
294
  dialog?: boolean;
297
- renderContent?: boolean;
298
295
  tag?: string;
299
296
  flip?: boolean;
300
297
  }> & Readonly<{
@@ -305,7 +302,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}
305
302
  transitionDuration: number;
306
303
  padding: number;
307
304
  tag: string;
308
- renderContent: boolean;
309
305
  flip: boolean;
310
306
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
311
307
  beforeCreate?: (() => void) | (() => void)[];
@@ -331,25 +327,21 @@ declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}
331
327
  transitionDuration: number;
332
328
  padding: number;
333
329
  tag: string;
334
- renderContent: boolean;
335
330
  flip: boolean;
336
331
  }> & Omit<Readonly<{
337
332
  modelValue?: boolean;
338
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
339
- containerAttributes?: Record<string, any>;
333
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
334
+ anchor?: any;
340
335
  dialog?: boolean;
341
- renderContent?: boolean;
342
336
  tag?: string;
343
337
  flip?: boolean;
344
338
  }> & Readonly<{
345
339
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
346
- }>, "transitionDuration" | "padding" | "tag" | "renderContent" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
340
+ }>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
347
341
  $slots: {
348
- activator?(_: {}): any;
349
342
  default?(_: {}): any;
350
343
  };
351
344
  }) | null;
352
- content: HTMLSpanElement;
353
345
  }, any>;
354
346
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
355
347
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { BbDropdownProps, MappedItem } from '../BbDropdown/BbDropdown.vue';
2
- export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'items' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration' | 'width'> & {
2
+ import { IconType } from '../../types/Icon';
3
+ export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'disabled' | 'eager' | 'id' | 'items' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration' | 'width'> & {
3
4
  /**
4
5
  * Tracks tha loading status internally.
5
6
  */
@@ -7,7 +8,11 @@ export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'bloc
7
8
  /**
8
9
  * Icon to be added on the right of the text
9
10
  */
10
- 'append:icon'?: string;
11
+ 'append:icon'?: IconType;
12
+ /**
13
+ * Displays the component as full width.
14
+ */
15
+ block?: boolean;
11
16
  /**
12
17
  * Disables the click handler while the component is loading.
13
18
  */
@@ -19,7 +24,7 @@ export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'bloc
19
24
  /**
20
25
  * Icon to be added on the right of the text
21
26
  */
22
- 'prepend:icon'?: string;
27
+ 'prepend:icon'?: IconType;
23
28
  /**
24
29
  * Sets the size of the button. When the value is a string, it will be applied to all screen sizes.
25
30
  * Otherwise, it will be applied to the screen size specified by the object.
@@ -1,4 +1,5 @@
1
1
  import { Size as S } from '../../types/CommonProps';
2
+ import { IconType } from '../../types/Icon';
2
3
  export type Size = {
3
4
  xs: number;
4
5
  sm: number;
@@ -7,7 +8,7 @@ export type Size = {
7
8
  xl: number;
8
9
  xxl: number;
9
10
  };
10
- export type BbIconProps = S<Size> & {
11
+ export interface BbIconProps extends S<Size> {
11
12
  /**
12
13
  * Define a color for the component.
13
14
  *
@@ -17,8 +18,8 @@ export type BbIconProps = S<Size> & {
17
18
  /**
18
19
  * Name of the icon to use
19
20
  */
20
- type: string;
21
- };
21
+ type: IconType;
22
+ }
22
23
  declare const _default: import('vue').DefineComponent<BbIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbIconProps> & Readonly<{}>, {
23
24
  size: number | ({
24
25
  size?: any;
@@ -1,10 +1,11 @@
1
1
  import { BaseNumberInputEvents, BaseNumberInputSlots } from '../BaseNumberInput/BaseNumberInput.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BbNumberInputProps = {
4
5
  /**
5
6
  * Name of the icon to be added at the end of the input.
6
7
  */
7
- 'append:icon'?: string;
8
+ 'append:icon'?: IconType;
8
9
  /**
9
10
  * Guides to the browser as to the type of information expected in the field.
10
11
  */
@@ -93,7 +94,7 @@ export type BbNumberInputProps = {
93
94
  /**
94
95
  * Name of the icon to be added at the start of the input.
95
96
  */
96
- 'prepend:icon'?: string;
97
+ 'prepend:icon'?: IconType;
97
98
  /**
98
99
  * Sets the input in a readonly state.
99
100
  */
@@ -133,7 +134,7 @@ declare function __VLS_template(): {
133
134
  $data: {};
134
135
  $props: {
135
136
  readonly [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
136
- readonly 'append:icon'?: string | undefined;
137
+ readonly 'append:icon'?: IconType | undefined;
137
138
  readonly ariaDescribedby?: string | undefined;
138
139
  readonly autocomplete?: string | undefined;
139
140
  readonly autofocus?: (boolean | "true" | "false") | undefined;
@@ -149,7 +150,7 @@ declare function __VLS_template(): {
149
150
  readonly modelValue: number | string | null;
150
151
  readonly name?: string | undefined;
151
152
  readonly placeholder?: string | undefined;
152
- readonly 'prepend:icon'?: string | undefined;
153
+ readonly 'prepend:icon'?: IconType | undefined;
153
154
  readonly readonly?: boolean | undefined;
154
155
  readonly required?: boolean | undefined;
155
156
  readonly step?: number | undefined;
@@ -238,7 +239,7 @@ declare const __VLS_component: import('vue').DefineComponent<BbNumberInputProps,
238
239
  $data: {};
239
240
  $props: {
240
241
  readonly [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
241
- readonly 'append:icon'?: string | undefined;
242
+ readonly 'append:icon'?: IconType | undefined;
242
243
  readonly ariaDescribedby?: string | undefined;
243
244
  readonly autocomplete?: string | undefined;
244
245
  readonly autofocus?: (boolean | "true" | "false") | undefined;
@@ -254,7 +255,7 @@ declare const __VLS_component: import('vue').DefineComponent<BbNumberInputProps,
254
255
  readonly modelValue: number | string | null;
255
256
  readonly name?: string | undefined;
256
257
  readonly placeholder?: string | undefined;
257
- readonly 'prepend:icon'?: string | undefined;
258
+ readonly 'prepend:icon'?: IconType | undefined;
258
259
  readonly readonly?: boolean | undefined;
259
260
  readonly required?: boolean | undefined;
260
261
  readonly step?: number | undefined;
@@ -7,6 +7,11 @@ export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | '
7
7
  * By default it's the first tabbable item.
8
8
  */
9
9
  focusTarget?: string;
10
+ /**
11
+ * Name of the theme to apply to the component. It creates a CSS class with the name of the theme.
12
+ * @deprecated since the popover is local you should use a normal css class applied to the top level element
13
+ */
14
+ theme?: string;
10
15
  /**
11
16
  * Width of the dropdown in pixels.
12
17
  */
@@ -28,6 +33,7 @@ declare function __VLS_template(): {
28
33
  onClick: typeof onTriggerClick;
29
34
  id: string;
30
35
  disabled: boolean;
36
+ ref: (reference: unknown) => void;
31
37
  };
32
38
  disabled: boolean;
33
39
  open: boolean;
@@ -47,6 +53,7 @@ declare function __VLS_template(): {
47
53
  onClick: typeof onTriggerClick;
48
54
  id: string;
49
55
  disabled: boolean;
56
+ ref: (reference: unknown) => void;
50
57
  };
51
58
  disabled: boolean;
52
59
  open: boolean;
@@ -60,20 +67,19 @@ declare function __VLS_template(): {
60
67
  }) => any;
61
68
  };
62
69
  refs: {
63
- wrapper: ({
70
+ popover: ({
64
71
  $: import('vue').ComponentInternalInstance;
65
72
  $data: {};
66
73
  $props: {
67
74
  readonly modelValue?: boolean | undefined;
75
+ readonly eager?: boolean | undefined;
68
76
  readonly transitionDuration?: number | undefined;
69
77
  readonly arrowPadding?: number | undefined;
70
- readonly block?: boolean | undefined;
71
78
  readonly offset?: number | undefined;
72
79
  readonly padding?: number | undefined;
73
80
  readonly placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | undefined;
74
- readonly containerAttributes?: Record<string, any> | undefined;
81
+ readonly anchor?: any;
75
82
  readonly dialog?: boolean | undefined;
76
- readonly renderContent?: boolean | undefined;
77
83
  readonly tag?: string | undefined;
78
84
  readonly flip?: boolean | undefined;
79
85
  readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -85,7 +91,6 @@ declare function __VLS_template(): {
85
91
  [x: string]: unknown;
86
92
  } & {
87
93
  wrapper: unknown;
88
- content: unknown;
89
94
  bubblearrow: HTMLSpanElement;
90
95
  };
91
96
  $slots: Readonly<{
@@ -98,10 +103,9 @@ declare function __VLS_template(): {
98
103
  $el: any;
99
104
  $options: import('vue').ComponentOptionsBase<Readonly<{
100
105
  modelValue?: boolean;
101
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
102
- containerAttributes?: Record<string, any>;
106
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
107
+ anchor?: any;
103
108
  dialog?: boolean;
104
- renderContent?: boolean;
105
109
  tag?: string;
106
110
  flip?: boolean;
107
111
  }> & Readonly<{
@@ -112,7 +116,6 @@ declare function __VLS_template(): {
112
116
  transitionDuration: number;
113
117
  padding: number;
114
118
  tag: string;
115
- renderContent: boolean;
116
119
  flip: boolean;
117
120
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
118
121
  beforeCreate?: (() => void) | (() => void)[];
@@ -138,25 +141,22 @@ declare function __VLS_template(): {
138
141
  transitionDuration: number;
139
142
  padding: number;
140
143
  tag: string;
141
- renderContent: boolean;
142
144
  flip: boolean;
143
145
  }> & Omit<Readonly<{
144
146
  modelValue?: boolean;
145
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
146
- containerAttributes?: Record<string, any>;
147
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
148
+ anchor?: any;
147
149
  dialog?: boolean;
148
- renderContent?: boolean;
149
150
  tag?: string;
150
151
  flip?: boolean;
151
152
  }> & Readonly<{
152
153
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
153
- }>, "transitionDuration" | "padding" | "tag" | "renderContent" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
154
+ }>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
154
155
  $slots: {
155
- activator?(_: {}): any;
156
156
  default?(_: {}): any;
157
157
  };
158
158
  }) | null;
159
- content: HTMLSpanElement;
159
+ popoverDom: HTMLSpanElement;
160
160
  };
161
161
  rootEl: any;
162
162
  };
@@ -180,20 +180,19 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
180
180
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
181
181
  theme: string;
182
182
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
183
- wrapper: ({
183
+ popover: ({
184
184
  $: import('vue').ComponentInternalInstance;
185
185
  $data: {};
186
186
  $props: {
187
187
  readonly modelValue?: boolean | undefined;
188
+ readonly eager?: boolean | undefined;
188
189
  readonly transitionDuration?: number | undefined;
189
190
  readonly arrowPadding?: number | undefined;
190
- readonly block?: boolean | undefined;
191
191
  readonly offset?: number | undefined;
192
192
  readonly padding?: number | undefined;
193
193
  readonly placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | undefined;
194
- readonly containerAttributes?: Record<string, any> | undefined;
194
+ readonly anchor?: any;
195
195
  readonly dialog?: boolean | undefined;
196
- readonly renderContent?: boolean | undefined;
197
196
  readonly tag?: string | undefined;
198
197
  readonly flip?: boolean | undefined;
199
198
  readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -205,7 +204,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
205
204
  [x: string]: unknown;
206
205
  } & {
207
206
  wrapper: unknown;
208
- content: unknown;
209
207
  bubblearrow: HTMLSpanElement;
210
208
  };
211
209
  $slots: Readonly<{
@@ -218,10 +216,9 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
218
216
  $el: any;
219
217
  $options: import('vue').ComponentOptionsBase<Readonly<{
220
218
  modelValue?: boolean;
221
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
222
- containerAttributes?: Record<string, any>;
219
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
220
+ anchor?: any;
223
221
  dialog?: boolean;
224
- renderContent?: boolean;
225
222
  tag?: string;
226
223
  flip?: boolean;
227
224
  }> & Readonly<{
@@ -232,7 +229,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
232
229
  transitionDuration: number;
233
230
  padding: number;
234
231
  tag: string;
235
- renderContent: boolean;
236
232
  flip: boolean;
237
233
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
238
234
  beforeCreate?: (() => void) | (() => void)[];
@@ -258,25 +254,22 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
258
254
  transitionDuration: number;
259
255
  padding: number;
260
256
  tag: string;
261
- renderContent: boolean;
262
257
  flip: boolean;
263
258
  }> & Omit<Readonly<{
264
259
  modelValue?: boolean;
265
- } & Pick<CommonProps, "transitionDuration" | "arrowPadding" | "block" | "offset" | "padding" | "placement"> & {
266
- containerAttributes?: Record<string, any>;
260
+ } & Pick<CommonProps, "eager" | "transitionDuration" | "arrowPadding" | "offset" | "padding" | "placement"> & {
261
+ anchor?: any;
267
262
  dialog?: boolean;
268
- renderContent?: boolean;
269
263
  tag?: string;
270
264
  flip?: boolean;
271
265
  }> & Readonly<{
272
266
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
273
- }>, "transitionDuration" | "padding" | "tag" | "renderContent" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
267
+ }>, "transitionDuration" | "padding" | "tag" | "flip"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
274
268
  $slots: {
275
- activator?(_: {}): any;
276
269
  default?(_: {}): any;
277
270
  };
278
271
  }) | null;
279
- content: HTMLSpanElement;
272
+ popoverDom: HTMLSpanElement;
280
273
  }, any>;
281
274
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
282
275
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { BaseSelectEvents } from '../BaseSelect/BaseSelect.vue';
2
2
  import { NestedKeyOf } from '../../types/NestedKeyOf';
3
3
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
4
+ import { IconType } from '../../types/Icon';
4
5
  export type BbSelectProps<T> = {
5
6
  /**
6
7
  * Allows typing into the input.
@@ -9,7 +10,7 @@ export type BbSelectProps<T> = {
9
10
  /**
10
11
  * Name of the icon to be added at the end of the input.
11
12
  */
12
- 'append:icon'?: string;
13
+ 'append:icon'?: IconType;
13
14
  /**
14
15
  * Guides to the browser as to the type of information expected in the field.
15
16
  */
@@ -159,7 +160,7 @@ export type BbSelectProps<T> = {
159
160
  /**
160
161
  * Name of the icon to be added at the start of the input.
161
162
  */
162
- 'prepend:icon'?: string;
163
+ 'prepend:icon'?: IconType;
163
164
  /**
164
165
  * Sets the input as required.
165
166
  */
@@ -1,10 +1,11 @@
1
1
  import { BaseTagEvents } from '../BaseTag/BaseTag.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BbTagProps = {
4
5
  /**
5
6
  * Name of the icon to be added at the end of the input.
6
7
  */
7
- 'append:icon'?: string;
8
+ 'append:icon'?: IconType;
8
9
  /**
9
10
  * Guides to the browser as to the type of information expected in the field.
10
11
  */
@@ -99,7 +100,7 @@ export type BbTagProps = {
99
100
  /**
100
101
  * Name of the icon to be added at the start of the input.
101
102
  */
102
- 'prepend:icon'?: string;
103
+ 'prepend:icon'?: IconType;
103
104
  /**
104
105
  * Sets the input in a readonly state.
105
106
  */
@@ -1,11 +1,12 @@
1
1
  import { BaseTextInputEvents, BaseTextInputSlots } from '../BaseTextInput/BaseTextInput.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
3
  import { MaskInputOptions } from 'maska';
4
+ import { IconType } from '../../types/Icon';
4
5
  export type BbTextInputProps = {
5
6
  /**
6
7
  * Name of the icon to be added at the end of the input.
7
8
  */
8
- 'append:icon'?: string;
9
+ 'append:icon'?: IconType;
9
10
  /**
10
11
  * Guides to the browser as to the type of information expected in the field.
11
12
  */
@@ -95,7 +96,7 @@ export type BbTextInputProps = {
95
96
  /**
96
97
  * Name of the icon to be added at the start of the input.
97
98
  */
98
- 'prepend:icon'?: string;
99
+ 'prepend:icon'?: IconType;
99
100
  /**
100
101
  * Sets the input in a readonly state.
101
102
  */
@@ -1,10 +1,11 @@
1
1
  import { BaseTextareaEvents, BaseTextareaSlots } from '../BaseTextarea/BaseTextarea.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BbTextareaProps = {
4
5
  /**
5
6
  * Name of the icon to be added at the end of the input.
6
7
  */
7
- 'append:icon'?: string;
8
+ 'append:icon'?: IconType;
8
9
  /**
9
10
  * Guides to the browser as to the type of information expected in the field.
10
11
  */
@@ -85,7 +86,7 @@ export type BbTextareaProps = {
85
86
  /**
86
87
  * Name of the icon to be added at the start of the input.
87
88
  */
88
- 'prepend:icon'?: string;
89
+ 'prepend:icon'?: IconType;
89
90
  /**
90
91
  * Sets the input in a readonly state.
91
92
  */