bitboss-ui 2.0.176 → 2.1.0

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 (187) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -4
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -4
  3. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -4
  4. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +32 -28
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -4
  8. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
  9. package/dist/index.css +1 -1
  10. package/dist/index106.js +9 -9
  11. package/dist/index107.js +29 -31
  12. package/dist/index111.js +1 -1
  13. package/dist/index113.js +1 -1
  14. package/dist/index121.js +12 -12
  15. package/dist/index129.js +1 -1
  16. package/dist/index13.js +1 -1
  17. package/dist/index131.js +13 -14
  18. package/dist/index136.js +1 -1
  19. package/dist/index137.js +2 -2
  20. package/dist/index138.js +1 -1
  21. package/dist/index139.js +2 -2
  22. package/dist/index15.js +13 -14
  23. package/dist/index17.js +3 -3
  24. package/dist/index19.js +8 -8
  25. package/dist/index206.js +2 -138
  26. package/dist/index207.js +138 -2
  27. package/dist/index208.js +2 -2
  28. package/dist/index209.js +2 -13
  29. package/dist/index21.js +16 -16
  30. package/dist/index210.js +4 -66
  31. package/dist/index211.js +4 -0
  32. package/dist/index212.js +65 -176
  33. package/dist/index214.js +15 -0
  34. package/dist/index215.js +12 -28
  35. package/dist/index216.js +13 -17
  36. package/dist/index217.js +10 -50
  37. package/dist/index218.js +5 -15
  38. package/dist/index219.js +5 -3
  39. package/dist/index220.js +5 -12
  40. package/dist/index221.js +5 -16
  41. package/dist/index222.js +5 -34
  42. package/dist/index223.js +5 -2
  43. package/dist/index224.js +2 -4
  44. package/dist/index225.js +2 -2
  45. package/dist/index226.js +2 -5
  46. package/dist/index227.js +20 -5
  47. package/dist/index228.js +113 -5
  48. package/dist/index23.js +45 -46
  49. package/dist/index230.js +86 -5
  50. package/dist/index232.js +29 -2
  51. package/dist/index233.js +16 -2
  52. package/dist/index234.js +17 -2
  53. package/dist/index235.js +51 -13
  54. package/dist/index236.js +14 -10
  55. package/dist/index237.js +3 -20
  56. package/dist/index238.js +12 -113
  57. package/dist/index239.js +6 -0
  58. package/dist/index240.js +191 -100
  59. package/dist/index242.js +5 -100
  60. package/dist/index243.js +7 -0
  61. package/dist/index244.js +8 -4
  62. package/dist/index245.js +239 -186
  63. package/dist/index246.js +54 -0
  64. package/dist/index247.js +42 -16
  65. package/dist/index248.js +5 -12
  66. package/dist/index249.js +59 -5
  67. package/dist/index25.js +22 -21
  68. package/dist/index250.js +17 -227
  69. package/dist/index251.js +11 -12
  70. package/dist/index252.js +6 -3
  71. package/dist/index253.js +106 -5
  72. package/dist/index255.js +98 -6
  73. package/dist/index257.js +221 -45
  74. package/dist/index258.js +177 -44
  75. package/dist/index259.js +2 -5
  76. package/dist/index260.js +3 -60
  77. package/dist/index261.js +34 -2
  78. package/dist/index262.js +2 -2
  79. package/dist/index263.js +9 -8
  80. package/dist/index264.js +3 -23
  81. package/dist/index265.js +6 -10
  82. package/dist/index266.js +16 -3
  83. package/dist/index267.js +3 -41
  84. package/dist/index268.js +9 -7
  85. package/dist/index269.js +8 -14
  86. package/dist/index27.js +1 -1
  87. package/dist/index270.js +23 -3
  88. package/dist/index271.js +9 -6
  89. package/dist/index272.js +8 -16
  90. package/dist/index273.js +4 -8
  91. package/dist/index274.js +8 -9
  92. package/dist/index275.js +2 -8
  93. package/dist/index276.js +67 -2
  94. package/dist/index278.js +4 -67
  95. package/dist/index279.js +3 -5
  96. package/dist/index281.js +9 -0
  97. package/dist/index282.js +6 -6
  98. package/dist/index283.js +11 -3
  99. package/dist/index284.js +4 -3
  100. package/dist/index285.js +3 -17
  101. package/dist/index286.js +3 -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/index302.js +19 -3
  107. package/dist/index303.js +2 -7
  108. package/dist/index304.js +26 -10
  109. package/dist/index305.js +2 -3
  110. package/dist/index306.js +2 -3
  111. package/dist/index307.js +2 -3
  112. package/dist/index308.js +2 -6
  113. package/dist/index309.js +1 -1
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +22 -5
  116. package/dist/index312.js +3 -2
  117. package/dist/index313.js +3 -27
  118. package/dist/index314.js +2 -2
  119. package/dist/index315.js +6 -2
  120. package/dist/index316.js +1 -1
  121. package/dist/index317.js +5 -2
  122. package/dist/index318.js +5 -2
  123. package/dist/index319.js +701 -22
  124. package/dist/index320.js +356 -0
  125. package/dist/index321.js +53 -466
  126. package/dist/index322.js +33 -2
  127. package/dist/index323.js +28 -5
  128. package/dist/index325.js +2 -701
  129. package/dist/index326.js +129 -354
  130. package/dist/index327.js +365 -54
  131. package/dist/index328.js +8 -2
  132. package/dist/index329.js +5 -6
  133. package/dist/index33.js +8 -8
  134. package/dist/index330.js +8 -47
  135. package/dist/index331.js +44 -126
  136. package/dist/index332.js +6 -368
  137. package/dist/index333.js +18 -6
  138. package/dist/index334.js +57 -18
  139. package/dist/index335.js +57 -32
  140. package/dist/index336.js +227 -27
  141. package/dist/index337.js +9 -0
  142. package/dist/index338.js +92 -57
  143. package/dist/index340.js +3 -8
  144. package/dist/index341.js +128 -5
  145. package/dist/index342.js +434 -6
  146. package/dist/index343.js +125 -226
  147. package/dist/index344.js +474 -85
  148. package/dist/index345.js +43 -478
  149. package/dist/index35.js +4 -4
  150. package/dist/index37.js +20 -21
  151. package/dist/index39.js +5 -5
  152. package/dist/index41.js +2 -2
  153. package/dist/index43.js +8 -8
  154. package/dist/index45.js +8 -8
  155. package/dist/index47.js +2 -2
  156. package/dist/index49.js +3 -3
  157. package/dist/index53.js +1 -1
  158. package/dist/index55.js +1 -1
  159. package/dist/index57.js +2 -2
  160. package/dist/index61.js +3 -3
  161. package/dist/index67.js +1 -1
  162. package/dist/index79.js +18 -19
  163. package/dist/index81.js +1 -1
  164. package/dist/index83.js +2 -2
  165. package/dist/index85.js +1 -1
  166. package/dist/index87.js +1 -1
  167. package/dist/index90.js +159 -225
  168. package/dist/index92.js +2 -2
  169. package/dist/index94.js +11 -12
  170. package/dist/index96.js +1 -1
  171. package/dist/types/CommonProps.d.ts +0 -4
  172. package/package.json +1 -2
  173. package/dist/components/BbTeleport.vue.d.ts +0 -20
  174. package/dist/index213.js +0 -88
  175. package/dist/index229.js +0 -7
  176. package/dist/index231.js +0 -7
  177. package/dist/index254.js +0 -7
  178. package/dist/index256.js +0 -252
  179. package/dist/index280.js +0 -10
  180. package/dist/index311.js +0 -21
  181. package/dist/index324.js +0 -202
  182. package/dist/index339.js +0 -60
  183. package/dist/index346.js +0 -131
  184. package/dist/index348.js +0 -5
  185. package/dist/index349.js +0 -49
  186. package/dist/index350.js +0 -438
  187. package/dist/index351.js +0 -129
@@ -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;
@@ -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;
@@ -86,18 +93,15 @@ declare const __VLS_component: import('vue').DefineComponent<BbOffCanvasProps, {
86
93
  } & string) | keyof Sizes;
87
94
  transitionDuration: number;
88
95
  direction: "left" | "top" | "right" | "bottom";
89
- overlayClasses: import('../../types/Classes').Classes;
90
- panelClasses: import('../../types/Classes').Classes;
96
+ overlayClasses: Classes;
97
+ panelClasses: Classes;
91
98
  showClose: boolean;
92
- transition: string;
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.
@@ -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
  */
@@ -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