bitboss-ui 2.0.176 → 2.1.1

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 (195) hide show
  1. package/dist/components/BaseButton/BaseButton.vue.d.ts +1 -1
  2. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -4
  3. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -4
  4. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
  5. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -4
  6. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  7. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +33 -29
  8. package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
  9. package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -4
  10. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
  11. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
  12. package/dist/index.css +1 -1
  13. package/dist/index106.js +8 -8
  14. package/dist/index107.js +29 -31
  15. package/dist/index111.js +1 -1
  16. package/dist/index113.js +1 -1
  17. package/dist/index121.js +11 -11
  18. package/dist/index129.js +1 -1
  19. package/dist/index13.js +1 -1
  20. package/dist/index131.js +13 -14
  21. package/dist/index133.js +1 -1
  22. package/dist/index136.js +1 -1
  23. package/dist/index138.js +1 -1
  24. package/dist/index139.js +2 -2
  25. package/dist/index15.js +13 -14
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +8 -8
  28. package/dist/index207.js +2 -2
  29. package/dist/index208.js +2 -2
  30. package/dist/index209.js +13 -13
  31. package/dist/index21.js +16 -16
  32. package/dist/index210.js +12 -65
  33. package/dist/index211.js +13 -0
  34. package/dist/index212.js +33 -176
  35. package/dist/index213.js +59 -79
  36. package/dist/index215.js +13 -29
  37. package/dist/index216.js +4 -17
  38. package/dist/index217.js +18 -49
  39. package/dist/index218.js +197 -15
  40. package/dist/index220.js +113 -12
  41. package/dist/index222.js +3 -34
  42. package/dist/index223.js +86 -2
  43. package/dist/index225.js +29 -2
  44. package/dist/index226.js +17 -5
  45. package/dist/index227.js +51 -5
  46. package/dist/index228.js +15 -5
  47. package/dist/index229.js +3 -5
  48. package/dist/index23.js +45 -46
  49. package/dist/index230.js +12 -5
  50. package/dist/index231.js +16 -5
  51. package/dist/index232.js +2 -2
  52. package/dist/index233.js +4 -2
  53. package/dist/index234.js +5 -2
  54. package/dist/index235.js +5 -13
  55. package/dist/index236.js +5 -11
  56. package/dist/index237.js +5 -20
  57. package/dist/index238.js +5 -113
  58. package/dist/index239.js +7 -0
  59. package/dist/index240.js +2 -106
  60. package/dist/index241.js +4 -0
  61. package/dist/index242.js +2 -100
  62. package/dist/index244.js +12 -4
  63. package/dist/index245.js +5 -196
  64. package/dist/index246.js +108 -0
  65. package/dist/index248.js +100 -12
  66. package/dist/index25.js +45 -51
  67. package/dist/index250.js +3 -3
  68. package/dist/index251.js +176 -12
  69. package/dist/index252.js +5 -3
  70. package/dist/index253.js +4 -4
  71. package/dist/index254.js +8 -5
  72. package/dist/index255.js +248 -6
  73. package/dist/index256.js +42 -240
  74. package/dist/index257.js +35 -43
  75. package/dist/index258.js +5 -44
  76. package/dist/index259.js +60 -5
  77. package/dist/index260.js +2 -60
  78. package/dist/index263.js +9 -8
  79. package/dist/index264.js +3 -23
  80. package/dist/index265.js +6 -10
  81. package/dist/index266.js +16 -3
  82. package/dist/index267.js +3 -41
  83. package/dist/index268.js +9 -7
  84. package/dist/index269.js +8 -14
  85. package/dist/index27.js +1 -1
  86. package/dist/index270.js +23 -3
  87. package/dist/index271.js +9 -6
  88. package/dist/index272.js +8 -16
  89. package/dist/index273.js +2 -9
  90. package/dist/index274.js +5 -9
  91. package/dist/index275.js +66 -7
  92. package/dist/index276.js +5 -2
  93. package/dist/index277.js +8 -5
  94. package/dist/index278.js +7 -67
  95. package/dist/index279.js +10 -4
  96. package/dist/index280.js +2 -8
  97. package/dist/{index348.js → index281.js} +1 -1
  98. package/dist/index283.js +7 -3
  99. package/dist/index284.js +4 -3
  100. package/dist/index285.js +5 -17
  101. package/dist/index286.js +4 -28
  102. package/dist/index287.js +3 -2
  103. package/dist/index288.js +17 -4
  104. package/dist/index289.js +28 -4
  105. package/dist/index29.js +3 -3
  106. package/dist/index290.js +3 -280
  107. package/dist/index291.js +3 -2
  108. package/dist/index292.js +271 -116
  109. package/dist/index293.js +2 -2
  110. package/dist/index294.js +123 -13
  111. package/dist/index295.js +2 -2
  112. package/dist/index296.js +13 -14
  113. package/dist/index298.js +9 -9
  114. package/dist/index300.js +14 -17
  115. package/dist/index302.js +19 -3
  116. package/dist/index303.js +2 -7
  117. package/dist/index304.js +3 -11
  118. package/dist/index305.js +1 -1
  119. package/dist/index306.js +2 -3
  120. package/dist/index307.js +6 -3
  121. package/dist/index308.js +18 -5
  122. package/dist/index309.js +2 -2
  123. package/dist/index31.js +2 -2
  124. package/dist/index310.js +27 -5
  125. package/dist/index311.js +2 -19
  126. package/dist/index312.js +2 -2
  127. package/dist/index313.js +2 -27
  128. package/dist/index314.js +2 -2
  129. package/dist/index315.js +1 -1
  130. package/dist/index316.js +21 -1
  131. package/dist/index318.js +5 -2
  132. package/dist/index319.js +701 -22
  133. package/dist/index320.js +356 -0
  134. package/dist/index321.js +53 -466
  135. package/dist/index322.js +1 -1
  136. package/dist/index323.js +8 -5
  137. package/dist/index324.js +6 -200
  138. package/dist/index325.js +7 -700
  139. package/dist/index326.js +7 -354
  140. package/dist/index327.js +221 -51
  141. package/dist/index328.js +58 -2
  142. package/dist/index329.js +58 -7
  143. package/dist/index33.js +8 -8
  144. package/dist/index330.js +32 -46
  145. package/dist/index331.js +27 -128
  146. package/dist/index333.js +128 -6
  147. package/dist/index334.js +366 -16
  148. package/dist/index335.js +46 -32
  149. package/dist/index336.js +7 -28
  150. package/dist/index337.js +21 -0
  151. package/dist/index338.js +92 -57
  152. package/dist/index340.js +3 -8
  153. package/dist/index341.js +128 -5
  154. package/dist/index342.js +434 -6
  155. package/dist/index343.js +125 -226
  156. package/dist/index344.js +474 -85
  157. package/dist/index345.js +43 -478
  158. package/dist/index35.js +4 -4
  159. package/dist/index37.js +19 -20
  160. package/dist/index39.js +13 -13
  161. package/dist/index41.js +2 -2
  162. package/dist/index43.js +8 -8
  163. package/dist/index45.js +8 -8
  164. package/dist/index47.js +2 -2
  165. package/dist/index49.js +3 -3
  166. package/dist/index53.js +1 -1
  167. package/dist/index55.js +1 -1
  168. package/dist/index57.js +1 -1
  169. package/dist/index61.js +3 -3
  170. package/dist/index67.js +1 -1
  171. package/dist/index79.js +18 -19
  172. package/dist/index81.js +1 -1
  173. package/dist/index83.js +2 -2
  174. package/dist/index85.js +1 -1
  175. package/dist/index87.js +1 -1
  176. package/dist/index90.js +152 -225
  177. package/dist/index92.js +2 -2
  178. package/dist/index94.js +11 -12
  179. package/dist/index96.js +1 -1
  180. package/dist/types/CommonProps.d.ts +0 -4
  181. package/package.json +2 -3
  182. package/dist/components/BbTeleport.vue.d.ts +0 -20
  183. package/dist/index219.js +0 -5
  184. package/dist/index221.js +0 -18
  185. package/dist/index224.js +0 -6
  186. package/dist/index249.js +0 -8
  187. package/dist/index282.js +0 -9
  188. package/dist/index317.js +0 -4
  189. package/dist/index332.js +0 -371
  190. package/dist/index339.js +0 -60
  191. package/dist/index346.js +0 -131
  192. package/dist/index349.js +0 -49
  193. package/dist/index350.js +0 -438
  194. package/dist/index351.js +0 -129
  195. /package/dist/{index247.js → index243.js} +0 -0
@@ -85,8 +85,8 @@ declare function __VLS_template(): {
85
85
  };
86
86
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
87
87
  declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{}>, {
88
- tag: string;
89
88
  type: HTMLButtonElement["type"];
89
+ tag: string;
90
90
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
91
91
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
92
92
  export default _default;
@@ -65,10 +65,6 @@ export type BaseColorInputProps = {
65
65
  * Sets the input as required.
66
66
  */
67
67
  required?: boolean;
68
- /**
69
- * The target to teleport the floating component to.
70
- */
71
- teleportTarget?: string;
72
68
  /**
73
69
  * The transition duration of the floating component.
74
70
  */
@@ -87,10 +87,6 @@ export type BaseDatePickerInputProps = {
87
87
  * @param date
88
88
  */
89
89
  selectable?: (date: Date) => boolean;
90
- /**
91
- * Target element to teleport the calendar to.
92
- */
93
- teleportTarget?: string;
94
90
  };
95
91
  export type BaseDatePickerInputEvents = {
96
92
  (e: 'active'): void;
@@ -87,10 +87,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
87
87
  size: number | keyof Sizes | ({
88
88
  size?: any;
89
89
  } & string);
90
+ showClose: boolean;
90
91
  transitionDuration: number;
91
92
  overlayClasses: Classes;
92
93
  panelClasses: Classes;
93
- showClose: boolean;
94
94
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
95
95
  dialog: HTMLDialogElement;
96
96
  header: HTMLDivElement;
@@ -163,10 +163,6 @@ export type BaseSelectProps<Item> = {
163
163
  * @param count - Number of selected labels.
164
164
  */
165
165
  selectedLabelsFn?: (count: number) => string;
166
- /**
167
- * Target to teleport the listbox to.
168
- */
169
- teleportTarget?: string;
170
166
  /**
171
167
  * How long the transition has to last in milliseconds
172
168
  */
@@ -1,6 +1,6 @@
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' | 'teleportTarget'> & {
3
+ export type BbDropdownProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'theme' | 'transitionDuration'> & {
4
4
  /**
5
5
  * Array used to render each dropdown button.
6
6
  * They can act as `button`, as `a`, or as `router-link`
@@ -1,41 +1,47 @@
1
+ import { Classes } from '../../types/Classes';
1
2
  import { CommonProps, Size } from '../../types/CommonProps';
2
3
  export type Sizes = {
3
4
  sm: number;
4
5
  md: number;
5
6
  lg: number;
6
7
  };
7
- export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'disabled' | 'eager' | 'panelClasses' | 'overlayClasses' | 'persistent' | 'showClose' | 'title' | 'transition' | 'transitionDuration'> & Size<Sizes> & {
8
+ export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'disabled' | 'eager' | 'persistent' | 'showClose' | 'title' | 'transitionDuration'> & Size<Sizes> & {
8
9
  /**
9
10
  * Description of the content of the modal. Extremely useful for accessibility reasons.
10
11
  */
11
12
  description?: string;
12
13
  /**
13
- * Elements that obtains focus immediately after opening the offcanvas.
14
+ * Elements that obtains focus immediately after opening the dialog.
14
15
  * By default it's the first tabbable item.
15
16
  */
16
17
  focusTarget?: string;
17
18
  /**
18
- * Displays the offcanvas as fullscreen with no margin to the page
19
+ * Displays the modal as fullscreen with no margin to the page
19
20
  */
20
21
  fullscreen?: boolean | 'mobile';
21
22
  /**
22
- * Defines the state open / closed of the modal.
23
+ * Classes to apply to the panel of the dialog.
24
+ * @deprecated Pass a common `class` attribute to the component instead.
23
25
  */
24
- modelValue?: boolean | null;
26
+ panelClasses?: Classes;
27
+ /**
28
+ * Classes to apply to the overlay of the dialog.
29
+ * @deprecated Pass a common `class` attribute to the component instead.
30
+ */
31
+ overlayClasses?: Classes;
25
32
  /**
26
33
  * Defines the direction the offcanvas should appear from
27
34
  */
28
35
  direction?: 'left' | 'top' | 'right' | 'bottom';
29
36
  };
37
+ type __VLS_Props = BbOffCanvasProps;
30
38
  export type BbOffCanvasEvents = {
31
- (e: 'shown'): void;
32
- (e: 'hidden'): void;
33
- (e: 'update:modelValue', value: boolean): void;
39
+ (e: 'shown' | 'hidden'): void;
34
40
  };
35
41
  export type BbOffCanvasSlots = {
36
42
  header?: (props: {
37
43
  titleId: typeof titleId;
38
- close: typeof onCloseClick;
44
+ close: typeof userClose;
39
45
  title: BbOffCanvasProps['title'];
40
46
  }) => any;
41
47
  title?: (props: {
@@ -47,36 +53,37 @@ export type BbOffCanvasSlots = {
47
53
  text: BbOffCanvasProps['description'];
48
54
  }) => any;
49
55
  default?: (props: object) => any;
50
- content?: (props: {
51
- close: typeof onCloseClick;
52
- }) => any;
53
56
  footer?: (props: object) => any;
54
57
  };
55
58
  declare const titleId: string;
56
59
  declare const descriptionId: string;
57
60
  /**
58
- * On click on the X button
61
+ * This function is called when the user attempts to close the dialog.
62
+ * It differs from programmatically closing the dialog in that it allows for
63
+ * custom logic to be executed.
59
64
  */
60
- declare const onCloseClick: () => void;
65
+ declare const userClose: (event: Event) => false | undefined;
66
+ type __VLS_PublicProps = {
67
+ modelValue?: boolean;
68
+ } & __VLS_Props;
61
69
  declare function __VLS_template(): {
62
70
  attrs: Partial<{}>;
63
71
  slots: Readonly<BbOffCanvasSlots> & BbOffCanvasSlots;
64
72
  refs: {
65
- overlay: HTMLDivElement;
66
- panel: HTMLDivElement;
67
- content: HTMLDivElement;
73
+ dialog: HTMLDialogElement;
68
74
  header: HTMLDivElement;
69
75
  body: HTMLDivElement;
70
76
  footer: HTMLDivElement;
71
77
  };
72
- rootEl: any;
78
+ rootEl: HTMLDialogElement;
73
79
  };
74
80
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
75
- declare const __VLS_component: import('vue').DefineComponent<BbOffCanvasProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
81
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
82
+ "update:modelValue": (value: boolean) => any;
83
+ } & {
76
84
  shown: () => any;
77
85
  hidden: () => any;
78
- "update:modelValue": (value: boolean) => any;
79
- }, string, import('vue').PublicProps, Readonly<BbOffCanvasProps> & Readonly<{
86
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
80
87
  onShown?: (() => any) | undefined;
81
88
  onHidden?: (() => any) | undefined;
82
89
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -84,20 +91,17 @@ declare const __VLS_component: import('vue').DefineComponent<BbOffCanvasProps, {
84
91
  size: number | ({
85
92
  size?: any;
86
93
  } & string) | keyof Sizes;
94
+ showClose: boolean;
87
95
  transitionDuration: number;
88
96
  direction: "left" | "top" | "right" | "bottom";
89
- overlayClasses: import('../../types/Classes').Classes;
90
- panelClasses: import('../../types/Classes').Classes;
91
- showClose: boolean;
92
- transition: string;
97
+ overlayClasses: Classes;
98
+ panelClasses: Classes;
93
99
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
94
- overlay: HTMLDivElement;
95
- panel: HTMLDivElement;
96
- content: HTMLDivElement;
100
+ dialog: HTMLDialogElement;
97
101
  header: HTMLDivElement;
98
102
  body: HTMLDivElement;
99
103
  footer: HTMLDivElement;
100
- }, any>;
104
+ }, HTMLDialogElement>;
101
105
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
102
106
  export default _default;
103
107
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { nextTick } from 'vue';
2
2
  import { CommonProps } from '../../types/CommonProps';
3
3
  import { Placement } from '@floating-ui/vue';
4
- export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration' | 'teleportTarget'> & {
4
+ export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
5
5
  /**
6
6
  * Elements that obtains focus immediately after opening the popover.
7
7
  * By default it's the first tabbable item.
@@ -167,12 +167,12 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
167
167
  onShown?: (() => any) | undefined;
168
168
  onHidden?: (() => any) | undefined;
169
169
  }>, {
170
+ showClose: boolean;
170
171
  transitionDuration: number;
171
172
  arrowPadding: number;
172
173
  offset: number;
173
174
  padding: number;
174
175
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
175
- showClose: boolean;
176
176
  theme: string;
177
177
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
178
178
  wrapper: ({
@@ -193,10 +193,6 @@ export type BbSelectProps<T> = {
193
193
  * you either always return the previous items or you stash them passing `true` to this option.
194
194
  */
195
195
  stash?: boolean;
196
- /**
197
- * Target to teleport the listbox to.
198
- */
199
- teleportTarget?: string;
200
196
  /**
201
197
  * How long the transition has to last in milliseconds
202
198
  */
@@ -30,9 +30,9 @@ declare function __VLS_template(): {
30
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
31
  declare const __VLS_component: import('vue').DefineComponent<BbSmoothHeightProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbSmoothHeightProps> & Readonly<{}>, {
32
32
  transitionDuration: number;
33
- mutationOptions: MutationObserverInit;
34
- strategy: "resize" | "mutation";
35
33
  tag: keyof Omit<HTMLElementTagNameMap, import('../../types/VoidHtmlElements').VoidHTMLElements>;
34
+ strategy: "resize" | "mutation";
35
+ mutationOptions: MutationObserverInit;
36
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
37
37
  container: unknown;
38
38
  content: unknown;
@@ -1,6 +1,6 @@
1
1
  import { CommonProps } from '../../types/CommonProps';
2
2
  import { Placement } from '@floating-ui/vue';
3
- export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'showClose' | 'teleportTarget' | 'theme' | 'transitionDuration'> & {
3
+ export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
4
4
  /**
5
5
  * The delay in milliseconds before the tooltip is shown.
6
6
  * @default 0
@@ -133,11 +133,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
133
133
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
134
134
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
135
135
  }>, {
136
+ showClose: boolean;
136
137
  transitionDuration: number;
137
138
  arrowPadding: number;
138
139
  padding: number;
139
140
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
140
- showClose: boolean;
141
141
  theme: string;
142
142
  timeout: number;
143
143
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {