bitboss-ui 2.1.33 → 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 (194) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +7 -6
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +7 -6
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +3 -2
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -2
  5. package/dist/components/BaseTag/BaseTag.vue.d.ts +11 -10
  6. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -2
  7. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +3 -2
  8. package/dist/components/BbButton/BbButton.vue.d.ts +5 -5
  9. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +3 -2
  10. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -2
  11. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -2
  12. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -2
  13. package/dist/components/BbIcon/BbIcon.vue.d.ts +4 -3
  14. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -6
  15. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -2
  16. package/dist/components/BbTag/BbTag.vue.d.ts +3 -2
  17. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +3 -2
  18. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +3 -2
  19. package/dist/components/CommonInputInnerContainer.vue.d.ts +3 -2
  20. package/dist/composables/useToast.d.ts +4 -3
  21. package/dist/index.d.ts +10 -0
  22. package/dist/index106.js +7 -7
  23. package/dist/index111.js +1 -1
  24. package/dist/index113.js +1 -1
  25. package/dist/index121.js +10 -10
  26. package/dist/index129.js +1 -1
  27. package/dist/index13.js +1 -1
  28. package/dist/index131.js +6 -6
  29. package/dist/index133.js +1 -1
  30. package/dist/index139.js +1 -1
  31. package/dist/index141.js +1 -1
  32. package/dist/index142.js +2 -2
  33. package/dist/index15.js +5 -5
  34. package/dist/index17.js +3 -3
  35. package/dist/index19.js +8 -8
  36. package/dist/index21.js +16 -16
  37. package/dist/index213.js +2 -2
  38. package/dist/index214.js +2 -2
  39. package/dist/index215.js +85 -12
  40. package/dist/index217.js +27 -11
  41. package/dist/index218.js +17 -3
  42. package/dist/index219.js +51 -86
  43. package/dist/index220.js +17 -0
  44. package/dist/index221.js +3 -29
  45. package/dist/index222.js +11 -16
  46. package/dist/index223.js +13 -48
  47. package/dist/index224.js +2 -15
  48. package/dist/index225.js +2 -3
  49. package/dist/index226.js +2 -12
  50. package/dist/index227.js +106 -16
  51. package/dist/index229.js +100 -2
  52. package/dist/index23.js +12 -12
  53. package/dist/index231.js +2 -16
  54. package/dist/index232.js +4 -10
  55. package/dist/index233.js +5 -3
  56. package/dist/index234.js +5 -9
  57. package/dist/index235.js +5 -121
  58. package/dist/index236.js +7 -0
  59. package/dist/index237.js +5 -23
  60. package/dist/index238.js +5 -4
  61. package/dist/index239.js +2 -23
  62. package/dist/index240.js +13 -5
  63. package/dist/index241.js +20 -5
  64. package/dist/index242.js +121 -5
  65. package/dist/index244.js +18 -5
  66. package/dist/index245.js +12 -5
  67. package/dist/index246.js +229 -5
  68. package/dist/index247.js +13 -2
  69. package/dist/index248.js +4 -8
  70. package/dist/index249.js +186 -239
  71. package/dist/index25.js +3 -3
  72. package/dist/index251.js +7 -44
  73. package/dist/index252.js +34 -5
  74. package/dist/index253.js +2 -60
  75. package/dist/index254.js +182 -105
  76. package/dist/index255.js +5 -0
  77. package/dist/index256.js +2 -100
  78. package/dist/index257.js +9 -0
  79. package/dist/index258.js +7 -2
  80. package/dist/index259.js +13 -4
  81. package/dist/index260.js +5 -5
  82. package/dist/index261.js +5 -2
  83. package/dist/index262.js +7 -19
  84. package/dist/index263.js +250 -2
  85. package/dist/index264.js +52 -7
  86. package/dist/index265.js +44 -7
  87. package/dist/index266.js +5 -34
  88. package/dist/index267.js +60 -2
  89. package/dist/index268.js +6 -18
  90. package/dist/index269.js +16 -12
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +9 -229
  93. package/dist/index271.js +4 -3
  94. package/dist/index272.js +22 -3
  95. package/dist/index273.js +8 -196
  96. package/dist/index274.js +25 -0
  97. package/dist/index275.js +8 -181
  98. package/dist/index276.js +2 -6
  99. package/dist/index277.js +3 -9
  100. package/dist/index278.js +1 -1
  101. package/dist/index281.js +1 -1
  102. package/dist/index284.js +67 -5
  103. package/dist/index285.js +5 -67
  104. package/dist/index286.js +5 -7
  105. package/dist/index287.js +7 -10
  106. package/dist/index288.js +4 -5
  107. package/dist/index289.js +1 -1
  108. package/dist/index29.js +3 -3
  109. package/dist/index290.js +1 -1
  110. package/dist/index292.js +3 -718
  111. package/dist/index293.js +3 -366
  112. package/dist/index294.js +3 -57
  113. package/dist/index295.js +280 -3
  114. package/dist/index296.js +2 -280
  115. package/dist/index297.js +125 -2
  116. package/dist/index298.js +2 -16
  117. package/dist/index299.js +15 -2
  118. package/dist/index300.js +2 -16
  119. package/dist/index301.js +16 -2
  120. package/dist/index302.js +2 -19
  121. package/dist/index303.js +16 -2
  122. package/dist/index304.js +2 -15
  123. package/dist/index305.js +19 -2
  124. package/dist/index306.js +2 -19
  125. package/dist/index307.js +3 -2
  126. package/dist/index308.js +7 -27
  127. package/dist/index309.js +11 -2
  128. package/dist/index31.js +2 -2
  129. package/dist/index310.js +1 -1
  130. package/dist/index311.js +3 -2
  131. package/dist/index312.js +6 -2
  132. package/dist/index313.js +1 -1
  133. package/dist/index314.js +5 -22
  134. package/dist/index315.js +21 -0
  135. package/dist/index316.js +2 -3
  136. package/dist/index317.js +27 -3
  137. package/dist/index318.js +2 -6
  138. package/dist/index319.js +2 -4
  139. package/dist/index320.js +2 -125
  140. package/dist/index321.js +2 -2
  141. package/dist/index322.js +1 -1
  142. package/dist/index323.js +24 -0
  143. package/dist/index325.js +718 -5
  144. package/dist/index326.js +366 -8
  145. package/dist/index327.js +58 -2
  146. package/dist/index328.js +4 -4
  147. package/dist/index33.js +8 -8
  148. package/dist/index330.js +3 -4
  149. package/dist/index331.js +2 -93
  150. package/dist/index335.js +2 -2
  151. package/dist/index336.js +47 -58
  152. package/dist/index337.js +33 -33
  153. package/dist/index338.js +58 -2
  154. package/dist/index339.js +7 -6
  155. package/dist/index340.js +5 -6
  156. package/dist/index341.js +8 -19
  157. package/dist/index342.js +6 -46
  158. package/dist/index343.js +227 -7
  159. package/dist/index344.js +6 -5
  160. package/dist/index345.js +19 -8
  161. package/dist/index346.js +86 -221
  162. package/dist/index348.js +473 -421
  163. package/dist/index349.js +422 -113
  164. package/dist/index35.js +4 -4
  165. package/dist/index350.js +123 -484
  166. package/dist/index37.js +57 -59
  167. package/dist/index39.js +7 -7
  168. package/dist/index41.js +2 -2
  169. package/dist/index43.js +8 -8
  170. package/dist/index45.js +60 -62
  171. package/dist/index49.js +1 -1
  172. package/dist/index53.js +1 -1
  173. package/dist/index55.js +1 -1
  174. package/dist/index57.js +2 -2
  175. package/dist/index61.js +6 -6
  176. package/dist/index67.js +1 -1
  177. package/dist/index79.js +6 -6
  178. package/dist/index81.js +1 -1
  179. package/dist/index83.js +2 -2
  180. package/dist/index85.js +3 -3
  181. package/dist/index87.js +1 -1
  182. package/dist/index90.js +3 -3
  183. package/dist/index92.js +2 -2
  184. package/dist/index94.js +5 -5
  185. package/dist/index96.js +1 -1
  186. package/dist/types/Icon.d.ts +9 -0
  187. package/package.json +2 -2
  188. package/dist/index216.js +0 -15
  189. package/dist/index228.js +0 -4
  190. package/dist/index230.js +0 -8
  191. package/dist/index243.js +0 -7
  192. package/dist/index250.js +0 -54
  193. package/dist/index324.js +0 -5
  194. package/dist/index329.js +0 -5
@@ -1,9 +1,10 @@
1
1
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
+ import { IconType } from '../../types/Icon';
2
3
  export type BaseColorInputProps = {
3
4
  /**
4
5
  * Name of the icon to be added at the end of the input.
5
6
  */
6
- 'append:icon'?: string;
7
+ 'append:icon'?: IconType;
7
8
  /**
8
9
  * Guides to the browser as to the type of information expected in the field.
9
10
  */
@@ -56,7 +57,7 @@ export type BaseColorInputProps = {
56
57
  /**
57
58
  * Name of the icon to be added at the start of the input.
58
59
  */
59
- 'prepend:icon'?: string;
60
+ 'prepend:icon'?: IconType;
60
61
  /**
61
62
  * Sets the input in a readonly state.
62
63
  */
@@ -142,9 +143,9 @@ declare function __VLS_template(): {
142
143
  $: import('vue').ComponentInternalInstance;
143
144
  $data: {};
144
145
  $props: {
145
- readonly 'append:icon'?: string | undefined;
146
+ readonly 'append:icon'?: IconType | undefined;
146
147
  readonly clearable?: boolean | undefined;
147
- readonly 'prepend:icon'?: string | undefined;
148
+ readonly 'prepend:icon'?: IconType | undefined;
148
149
  readonly preventFocus?: boolean | undefined;
149
150
  readonly "onClick:clear"?: (() => any) | undefined;
150
151
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -285,9 +286,9 @@ declare const __VLS_component: import('vue').DefineComponent<BaseColorInputProps
285
286
  $: import('vue').ComponentInternalInstance;
286
287
  $data: {};
287
288
  $props: {
288
- readonly 'append:icon'?: string | undefined;
289
+ readonly 'append:icon'?: IconType | undefined;
289
290
  readonly clearable?: boolean | undefined;
290
- readonly 'prepend:icon'?: string | undefined;
291
+ readonly 'prepend:icon'?: IconType | undefined;
291
292
  readonly preventFocus?: boolean | undefined;
292
293
  readonly "onClick:clear"?: (() => any) | undefined;
293
294
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -1,5 +1,6 @@
1
1
  import { default as it } from 'dayjs/locale/it';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BaseDatePickerInputProps = {
4
5
  /**
5
6
  * Allows typing into the input.
@@ -8,7 +9,7 @@ export type BaseDatePickerInputProps = {
8
9
  /**
9
10
  * Name of the icon to be added at the end of the input.
10
11
  */
11
- 'append:icon'?: string;
12
+ 'append:icon'?: IconType;
12
13
  /**
13
14
  * Guides to the browser as to the type of information expected in the field.
14
15
  */
@@ -69,7 +70,7 @@ export type BaseDatePickerInputProps = {
69
70
  /**
70
71
  * Name of the icon to be added at the start of the input.
71
72
  */
72
- 'prepend:icon'?: string;
73
+ 'prepend:icon'?: IconType;
73
74
  /**
74
75
  * Selects a range of dates between two dates. It selects all of the days between start and end
75
76
  */
@@ -166,9 +167,9 @@ declare function __VLS_template(): {
166
167
  $: import('vue').ComponentInternalInstance;
167
168
  $data: {};
168
169
  $props: {
169
- readonly 'append:icon'?: string | undefined;
170
+ readonly 'append:icon'?: IconType | undefined;
170
171
  readonly clearable?: boolean | undefined;
171
- readonly 'prepend:icon'?: string | undefined;
172
+ readonly 'prepend:icon'?: IconType | undefined;
172
173
  readonly preventFocus?: boolean | undefined;
173
174
  readonly "onClick:clear"?: (() => any) | undefined;
174
175
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -362,9 +363,9 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
362
363
  $: import('vue').ComponentInternalInstance;
363
364
  $data: {};
364
365
  $props: {
365
- readonly 'append:icon'?: string | undefined;
366
+ readonly 'append:icon'?: IconType | undefined;
366
367
  readonly clearable?: boolean | undefined;
367
- readonly 'prepend:icon'?: string | undefined;
368
+ readonly 'prepend:icon'?: IconType | undefined;
368
369
  readonly preventFocus?: boolean | undefined;
369
370
  readonly "onClick:clear"?: (() => any) | undefined;
370
371
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -1,9 +1,10 @@
1
1
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
+ import { IconType } from '../../types/Icon';
2
3
  export type BaseNumberInputProps = {
3
4
  /**
4
5
  * Name of the icon to be added at the end of the input.
5
6
  */
6
- 'append:icon'?: string;
7
+ 'append:icon'?: IconType;
7
8
  /**
8
9
  * Guides to the browser as to the type of information expected in the field.
9
10
  */
@@ -68,7 +69,7 @@ export type BaseNumberInputProps = {
68
69
  /**
69
70
  * Name of the icon to be added at the start of the input.
70
71
  */
71
- 'prepend:icon'?: string;
72
+ 'prepend:icon'?: IconType;
72
73
  /**
73
74
  * Sets the input in a readonly state.
74
75
  */
@@ -1,3 +1,4 @@
1
+ import { IconType } from '../../types/Icon';
1
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
3
  export type BaseSelectProps<Item> = {
3
4
  /**
@@ -7,7 +8,7 @@ export type BaseSelectProps<Item> = {
7
8
  /**
8
9
  * Name of the icon to be added at the end of the input.
9
10
  */
10
- 'append:icon'?: string;
11
+ 'append:icon'?: IconType;
11
12
  /**
12
13
  * Guides to the browser as to the type of information expected in the field.
13
14
  */
@@ -133,7 +134,7 @@ export type BaseSelectProps<Item> = {
133
134
  /**
134
135
  * Name of the icon to be added at the start of the input.
135
136
  */
136
- 'prepend:icon'?: string;
137
+ 'prepend:icon'?: IconType;
137
138
  /**
138
139
  * Time to wait when the users stops writing in the input before querying data.
139
140
  * Especially useful when searching live data on big datasets.
@@ -1,10 +1,11 @@
1
1
  import { nextTick, InputHTMLAttributes, HTMLAttributes } from 'vue';
2
2
  import { Option as BaseOption } from '../../types/Option';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BaseTagProps = {
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
  */
@@ -75,7 +76,7 @@ export type BaseTagProps = {
75
76
  /**
76
77
  * Name of the icon to be added at the start of the input.
77
78
  */
78
- 'prepend:icon'?: string;
79
+ 'prepend:icon'?: IconType;
79
80
  /**
80
81
  * Sets the input in a readonly state.
81
82
  */
@@ -158,9 +159,9 @@ declare function __VLS_template(): {
158
159
  $: import('vue').ComponentInternalInstance;
159
160
  $data: {};
160
161
  $props: {
161
- readonly 'append:icon'?: string | undefined;
162
+ readonly 'append:icon'?: IconType | undefined;
162
163
  readonly clearable?: boolean | undefined;
163
- readonly 'prepend:icon'?: string | undefined;
164
+ readonly 'prepend:icon'?: IconType | undefined;
164
165
  readonly preventFocus?: boolean | undefined;
165
166
  readonly "onClick:clear"?: (() => any) | undefined;
166
167
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -180,7 +181,7 @@ declare function __VLS_template(): {
180
181
  $host: Element | null;
181
182
  $emit: (event: "click:clear") => void;
182
183
  $el: HTMLSpanElement;
183
- $options: import('vue').ComponentOptionsBase<Readonly<import('../../index').CommonInputInnerContainerProps> & Readonly<{
184
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
184
185
  "onClick:clear"?: (() => any) | undefined;
185
186
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
186
187
  "click:clear": () => any;
@@ -204,7 +205,7 @@ declare function __VLS_template(): {
204
205
  $forceUpdate: () => void;
205
206
  $nextTick: typeof nextTick;
206
207
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
207
- } & Readonly<{}> & Omit<Readonly<import('../../index').CommonInputInnerContainerProps> & Readonly<{
208
+ } & Readonly<{}> & Omit<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
208
209
  "onClick:clear"?: (() => any) | undefined;
209
210
  }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
210
211
  $slots: {
@@ -360,9 +361,9 @@ declare const __VLS_component: import('vue').DefineComponent<BaseTagProps, {}, {
360
361
  $: import('vue').ComponentInternalInstance;
361
362
  $data: {};
362
363
  $props: {
363
- readonly 'append:icon'?: string | undefined;
364
+ readonly 'append:icon'?: IconType | undefined;
364
365
  readonly clearable?: boolean | undefined;
365
- readonly 'prepend:icon'?: string | undefined;
366
+ readonly 'prepend:icon'?: IconType | undefined;
366
367
  readonly preventFocus?: boolean | undefined;
367
368
  readonly "onClick:clear"?: (() => any) | undefined;
368
369
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -382,7 +383,7 @@ declare const __VLS_component: import('vue').DefineComponent<BaseTagProps, {}, {
382
383
  $host: Element | null;
383
384
  $emit: (event: "click:clear") => void;
384
385
  $el: HTMLSpanElement;
385
- $options: import('vue').ComponentOptionsBase<Readonly<import('../../index').CommonInputInnerContainerProps> & Readonly<{
386
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
386
387
  "onClick:clear"?: (() => any) | undefined;
387
388
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
388
389
  "click:clear": () => any;
@@ -406,7 +407,7 @@ declare const __VLS_component: import('vue').DefineComponent<BaseTagProps, {}, {
406
407
  $forceUpdate: () => void;
407
408
  $nextTick: typeof nextTick;
408
409
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
409
- } & Readonly<{}> & Omit<Readonly<import('../../index').CommonInputInnerContainerProps> & Readonly<{
410
+ } & Readonly<{}> & Omit<Readonly<import('../CommonInputInnerContainer.vue').CommonInputInnerContainerProps> & Readonly<{
410
411
  "onClick:clear"?: (() => any) | undefined;
411
412
  }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
412
413
  $slots: {
@@ -1,10 +1,11 @@
1
1
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
2
  import { MaskInputOptions } from 'maska';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BaseTextInputProps = {
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
  */
@@ -69,7 +70,7 @@ export type BaseTextInputProps = {
69
70
  /**
70
71
  * Name of the icon to be added at the start of the input.
71
72
  */
72
- 'prepend:icon'?: string;
73
+ 'prepend:icon'?: IconType;
73
74
  /**
74
75
  * Sets the input in a readonly state.
75
76
  */
@@ -1,9 +1,10 @@
1
1
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
2
+ import { IconType } from '../../types/Icon';
2
3
  export type BaseTextareaProps = {
3
4
  /**
4
5
  * Name of the icon to be added at the end of the input.
5
6
  */
6
- 'append:icon'?: string;
7
+ 'append:icon'?: IconType;
7
8
  /**
8
9
  * Guides to the browser as to the type of information expected in the field.
9
10
  */
@@ -60,7 +61,7 @@ export type BaseTextareaProps = {
60
61
  /**
61
62
  * Name of the icon to be added at the start of the input.
62
63
  */
63
- 'prepend:icon'?: string;
64
+ 'prepend:icon'?: IconType;
64
65
  /**
65
66
  * Sets the input in a readonly state.
66
67
  */
@@ -1,4 +1,5 @@
1
1
  import { RouteLocationRaw } from 'vue-router';
2
+ import { IconType } from '../../types/Icon';
2
3
  type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
4
  export type BbButtonProps = {
4
5
  /**
@@ -18,7 +19,7 @@ export type BbButtonProps = {
18
19
  /**
19
20
  * Icon to be added on the right of the text
20
21
  */
21
- 'append:icon'?: string;
22
+ 'append:icon'?: IconType;
22
23
  /**
23
24
  * Displays the component as full width.
24
25
  */
@@ -31,7 +32,7 @@ export type BbButtonProps = {
31
32
  /**
32
33
  * Disables the click handler while the component is loading.
33
34
  */
34
- disabledWhileLoading?: boolean;
35
+ enabledWhileLoading?: boolean;
35
36
  /**
36
37
  * Class to apply when the link is exact active
37
38
  */
@@ -50,7 +51,7 @@ export type BbButtonProps = {
50
51
  /**
51
52
  * Used when only an icon with no text should be displayed
52
53
  */
53
- icon?: string;
54
+ icon?: IconType;
54
55
  /**
55
56
  * Triggers a loading indicator
56
57
  */
@@ -69,7 +70,7 @@ export type BbButtonProps = {
69
70
  /**
70
71
  * Icon to be added on the left of the text
71
72
  */
72
- 'prepend:icon'?: string;
73
+ 'prepend:icon'?: IconType;
73
74
  preserveScroll?: boolean | ((props: {
74
75
  [key: string]: unknown;
75
76
  }) => boolean);
@@ -120,7 +121,6 @@ declare function __VLS_template(): {
120
121
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
121
122
  declare const __VLS_component: import('vue').DefineComponent<BbButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbButtonProps> & Readonly<{}>, {
122
123
  size: Sizes | Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "default", Sizes>>;
123
- disabledWhileLoading: boolean;
124
124
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
125
125
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
126
126
  export default _default;
@@ -1,10 +1,11 @@
1
1
  import { BaseColorInputEvents, BaseColorInputSlots } from '../BaseColorInput/BaseColorInput.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
+ import { IconType } from '../../types/Icon';
3
4
  export type BbColorInputProps = {
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
  */
@@ -81,7 +82,7 @@ export type BbColorInputProps = {
81
82
  /**
82
83
  * Name of the icon to be added at the start of the input.
83
84
  */
84
- 'prepend:icon'?: string;
85
+ 'prepend:icon'?: IconType;
85
86
  /**
86
87
  * Sets the input in a readonly state.
87
88
  */
@@ -1,6 +1,7 @@
1
1
  import { BaseDatePickerInputEvents } from '../BaseDatePickerInput/BaseDatePickerInput.vue';
2
2
  import { HTMLAttributes, InputHTMLAttributes } from 'vue';
3
3
  import { Locale } from 'dayjs/locale/it';
4
+ import { IconType } from '../../types/Icon';
4
5
  export type BbDatePickerInputProps = {
5
6
  /**
6
7
  * Allows typing into the input.
@@ -9,7 +10,7 @@ export type BbDatePickerInputProps = {
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
  */
@@ -98,7 +99,7 @@ export type BbDatePickerInputProps = {
98
99
  /**
99
100
  * Name of the icon to be added at the start of the input.
100
101
  */
101
- 'prepend:icon'?: string;
102
+ 'prepend:icon'?: IconType;
102
103
  /**
103
104
  * Selects a range of dates between two dates. It selects all of the days between start and end
104
105
  */
@@ -1,5 +1,6 @@
1
1
  import { BaseButtonProps } from '../BaseButton/BaseButton.vue';
2
2
  import { CommonProps } from '../../types/CommonProps';
3
+ import { IconType } from '../../types/Icon';
3
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.
@@ -30,11 +31,11 @@ export type Item = Omit<BaseButtonProps, 'block' | 'tag' | 'type'> & {
30
31
  /**
31
32
  * Icon to be displayed before the text.
32
33
  */
33
- 'prepend:icon'?: string;
34
+ 'prepend:icon'?: IconType;
34
35
  /**
35
36
  * Icon to be displayed after the text.
36
37
  */
37
- 'append:icon'?: string;
38
+ 'append:icon'?: IconType;
38
39
  };
39
40
  export type MappedItem = Item & {
40
41
  /**
@@ -1,4 +1,5 @@
1
1
  import { BbDropdownProps, MappedItem } from '../BbDropdown/BbDropdown.vue';
2
+ import { IconType } from '../../types/Icon';
2
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.
@@ -7,7 +8,7 @@ export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'disa
7
8
  /**
8
9
  * Icon to be added on the right of the text
9
10
  */
10
- 'append:icon'?: string;
11
+ 'append:icon'?: IconType;
11
12
  /**
12
13
  * Displays the component as full width.
13
14
  */
@@ -23,7 +24,7 @@ export type BbDropdownButtonProps = Pick<BbDropdownProps, 'arrowPadding' | 'disa
23
24
  /**
24
25
  * Icon to be added on the right of the text
25
26
  */
26
- 'prepend:icon'?: string;
27
+ 'prepend:icon'?: IconType;
27
28
  /**
28
29
  * Sets the size of the button. When the value is a string, it will be applied to all screen sizes.
29
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;
@@ -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
  */
@@ -1,8 +1,9 @@
1
+ import { IconType } from '../index';
1
2
  export type CommonInputInnerContainerProps = {
2
3
  /**
3
4
  * Name of the icon to be added at the end of the input.
4
5
  */
5
- 'append:icon'?: string;
6
+ 'append:icon'?: IconType;
6
7
  /**
7
8
  * Whether the input is clearable.
8
9
  */
@@ -10,7 +11,7 @@ export type CommonInputInnerContainerProps = {
10
11
  /**
11
12
  * Name of the icon to be added at the start of the input.
12
13
  */
13
- 'prepend:icon'?: string;
14
+ 'prepend:icon'?: IconType;
14
15
  preventFocus?: boolean;
15
16
  };
16
17
  declare function __VLS_template(): {
@@ -1,4 +1,5 @@
1
1
  import { CommonProps } from '../types/CommonProps';
2
+ import { IconType } from '../types/Icon';
2
3
  export type Message = {
3
4
  /**
4
5
  * Title of the message. Displayed in a more prominant fashion.
@@ -11,7 +12,7 @@ export type Message = {
11
12
  /**
12
13
  * Name of the icon to display.
13
14
  */
14
- icon?: string;
15
+ icon?: IconType;
15
16
  /**
16
17
  * Theme of the toast message. By default the theme is `default`.
17
18
  */
@@ -68,7 +69,7 @@ export declare const state: {
68
69
  stack: {
69
70
  title?: string | undefined;
70
71
  text: string;
71
- icon?: string | undefined;
72
+ icon?: IconType | undefined;
72
73
  theme?: string | undefined;
73
74
  id: string;
74
75
  showClose?: boolean | undefined;
@@ -79,7 +80,7 @@ export declare const useToast: () => {
79
80
  dismiss: (id: Message["id"]) => {
80
81
  title?: string | undefined;
81
82
  text: string;
82
- icon?: string | undefined;
83
+ icon?: IconType | undefined;
83
84
  theme?: string | undefined;
84
85
  id: string;
85
86
  showClose?: boolean | undefined;