bitboss-ui 2.1.66 → 2.1.68

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 (168) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -0
  2. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -0
  3. package/dist/components/BbButton/BbButton.vue.d.ts +32 -1
  4. package/dist/components/BbPopover/BbPopover.vue.d.ts +51 -36
  5. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +7 -8
  6. package/dist/index.css +1 -1
  7. package/dist/index107.js +8 -8
  8. package/dist/index112.js +1 -1
  9. package/dist/index114.js +1 -1
  10. package/dist/index122.js +10 -10
  11. package/dist/index13.js +1 -1
  12. package/dist/index130.js +1 -1
  13. package/dist/index132.js +93 -67
  14. package/dist/index134.js +1 -1
  15. package/dist/index136.js +2 -2
  16. package/dist/index143.js +2 -2
  17. package/dist/index15.js +5 -5
  18. package/dist/index17.js +34 -33
  19. package/dist/index19.js +8 -8
  20. package/dist/index21.js +16 -16
  21. package/dist/index217.js +4 -2
  22. package/dist/index218.js +13 -2
  23. package/dist/index219.js +20 -2
  24. package/dist/index220.js +193 -12
  25. package/dist/index222.js +120 -3
  26. package/dist/index224.js +5 -18
  27. package/dist/index225.js +8 -12
  28. package/dist/index226.js +5 -51
  29. package/dist/index227.js +5 -15
  30. package/dist/index228.js +5 -12
  31. package/dist/index229.js +5 -17
  32. package/dist/index23.js +11 -11
  33. package/dist/index230.js +5 -29
  34. package/dist/index231.js +5 -16
  35. package/dist/index232.js +2 -4
  36. package/dist/index233.js +3 -106
  37. package/dist/index234.js +88 -0
  38. package/dist/index236.js +31 -0
  39. package/dist/index237.js +16 -120
  40. package/dist/index238.js +19 -0
  41. package/dist/index239.js +50 -228
  42. package/dist/index240.js +14 -12
  43. package/dist/index241.js +3 -10
  44. package/dist/index242.js +11 -2
  45. package/dist/index243.js +2 -5
  46. package/dist/index244.js +2 -5
  47. package/dist/index245.js +2 -5
  48. package/dist/index246.js +7 -5
  49. package/dist/index247.js +2 -5
  50. package/dist/index248.js +7 -5
  51. package/dist/index249.js +5 -20
  52. package/dist/index25.js +3 -3
  53. package/dist/index250.js +5 -3
  54. package/dist/index251.js +8 -5
  55. package/dist/index252.js +266 -183
  56. package/dist/index253.js +52 -33
  57. package/dist/index254.js +42 -26
  58. package/dist/index255.js +7 -0
  59. package/dist/index256.js +60 -3
  60. package/dist/index257.js +12 -85
  61. package/dist/index258.js +15 -0
  62. package/dist/index259.js +4 -33
  63. package/dist/index260.js +2 -5
  64. package/dist/index261.js +9 -5
  65. package/dist/index262.js +23 -8
  66. package/dist/index263.js +4 -271
  67. package/dist/index264.js +21 -50
  68. package/dist/index265.js +31 -42
  69. package/dist/index266.js +7 -5
  70. package/dist/index267.js +187 -59
  71. package/dist/index268.js +106 -11
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +95 -189
  74. package/dist/index272.js +9 -12
  75. package/dist/index273.js +2 -6
  76. package/dist/index274.js +6 -2
  77. package/dist/index275.js +16 -4
  78. package/dist/index276.js +10 -22
  79. package/dist/index277.js +18 -2
  80. package/dist/index278.js +11 -6
  81. package/dist/index279.js +229 -7
  82. package/dist/index280.js +3 -6
  83. package/dist/index281.js +66 -15
  84. package/dist/index282.js +5 -9
  85. package/dist/index283.js +2 -67
  86. package/dist/index284.js +1 -1
  87. package/dist/index285.js +3 -8
  88. package/dist/index286.js +8 -9
  89. package/dist/index287.js +9 -23
  90. package/dist/index288.js +33 -2
  91. package/dist/index289.js +28 -5
  92. package/dist/index29.js +2 -2
  93. package/dist/index291.js +3 -7
  94. package/dist/index292.js +3 -5
  95. package/dist/index293.js +9 -0
  96. package/dist/index294.js +280 -3
  97. package/dist/index295.js +2 -4
  98. package/dist/index296.js +116 -271
  99. package/dist/index297.js +2 -2
  100. package/dist/index298.js +13 -123
  101. package/dist/index299.js +2 -2
  102. package/dist/index300.js +14 -13
  103. package/dist/index302.js +9 -9
  104. package/dist/index304.js +17 -14
  105. package/dist/index306.js +3 -19
  106. package/dist/index307.js +17 -2
  107. package/dist/index308.js +28 -3
  108. package/dist/index31.js +31 -30
  109. package/dist/index313.js +1 -1
  110. package/dist/index314.js +1 -1
  111. package/dist/index315.js +1 -1
  112. package/dist/index316.js +1 -1
  113. package/dist/index317.js +21 -27
  114. package/dist/index320.js +1 -1
  115. package/dist/index321.js +4 -3
  116. package/dist/index322.js +719 -2
  117. package/dist/index323.js +366 -17
  118. package/dist/index324.js +57 -5
  119. package/dist/index325.js +3 -2
  120. package/dist/index326.js +1 -1
  121. package/dist/index327.js +2 -3
  122. package/dist/index328.js +2 -4
  123. package/dist/index329.js +5 -6
  124. package/dist/index33.js +8 -8
  125. package/dist/index330.js +1 -1
  126. package/dist/index331.js +4 -719
  127. package/dist/index332.js +6 -366
  128. package/dist/index333.js +5 -57
  129. package/dist/index334.js +6 -46
  130. package/dist/index335.js +17 -5
  131. package/dist/index336.js +6 -227
  132. package/dist/index341.js +2 -2
  133. package/dist/index342.js +3 -3
  134. package/dist/index346.js +92 -6
  135. package/dist/index347.js +132 -17
  136. package/dist/index348.js +46 -92
  137. package/dist/index349.js +1 -1
  138. package/dist/index35.js +4 -4
  139. package/dist/index350.js +225 -131
  140. package/dist/index351.js +435 -44
  141. package/dist/index352.js +114 -427
  142. package/dist/index353.js +48 -126
  143. package/dist/index37.js +18 -18
  144. package/dist/index39.js +6 -6
  145. package/dist/index41.js +32 -31
  146. package/dist/index43.js +8 -8
  147. package/dist/index45.js +6 -6
  148. package/dist/index49.js +1 -1
  149. package/dist/index53.js +1 -1
  150. package/dist/index55.js +1 -1
  151. package/dist/index57.js +2 -2
  152. package/dist/index61.js +95 -64
  153. package/dist/index67.js +1 -1
  154. package/dist/index80.js +6 -6
  155. package/dist/index82.js +1 -1
  156. package/dist/index84.js +2 -2
  157. package/dist/index86.js +3 -3
  158. package/dist/index88.js +1 -1
  159. package/dist/index91.js +3 -3
  160. package/dist/index93.js +2 -2
  161. package/dist/index95.js +123 -87
  162. package/package.json +2 -2
  163. package/dist/index221.js +0 -5
  164. package/dist/index223.js +0 -4
  165. package/dist/index235.js +0 -102
  166. package/dist/index269.js +0 -6
  167. package/dist/index290.js +0 -10
  168. package/dist/index318.js +0 -24
@@ -104,6 +104,7 @@ export type SlotAttributes = {
104
104
  disabled: boolean;
105
105
  falseValue: any;
106
106
  focused: boolean;
107
+ focusVisible: boolean;
107
108
  hasErrors: boolean;
108
109
  id: BaseCheckboxProps['id'];
109
110
  name: BaseCheckboxProps['name'];
@@ -74,6 +74,7 @@ export type SlotAttributes = {
74
74
  checked: boolean;
75
75
  disabled: Exclude<BaseRadioProps['disabled'], undefined>;
76
76
  focused: boolean;
77
+ focusVisible: boolean;
77
78
  hasErrors: Exclude<BaseRadioProps['hasErrors'], undefined>;
78
79
  id: BaseRadioProps['id'];
79
80
  name: BaseRadioProps['name'];
@@ -1,5 +1,6 @@
1
1
  import { RouteLocationRaw } from 'vue-router';
2
2
  import { IconType } from '../../types/Icon';
3
+ import { Placement } from '@floating-ui/vue';
3
4
  type Sizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
5
  export type BbButtonProps = {
5
6
  /**
@@ -99,6 +100,22 @@ export type BbButtonProps = {
99
100
  * Text content of the component.
100
101
  */
101
102
  text?: string;
103
+ /**
104
+ * Text content for a tooltip displayed on hover.
105
+ * When provided, a {@link BbTooltip} is lazily loaded and attached to the button.
106
+ */
107
+ tooltip?: string;
108
+ /**
109
+ * Placement of the tooltip relative to the button.
110
+ * Accepts any {@link Placement} value from Floating UI.
111
+ * @default 'top'
112
+ */
113
+ tooltipPlacement?: Placement;
114
+ /**
115
+ * The delay in milliseconds before the tooltip is shown.
116
+ * @default 0
117
+ */
118
+ tooltipTimeout?: number;
102
119
  /**
103
120
  * Route Location the link should navigate to when clicked on.
104
121
  */
@@ -112,14 +129,28 @@ declare function __VLS_template(): {
112
129
  attrs: Partial<{}>;
113
130
  slots: Readonly<{
114
131
  default?: (props: object) => any;
132
+ /**
133
+ * Custom content for the tooltip. Falls back to the {@link BbButtonProps.tooltip | tooltip} prop text.
134
+ */
135
+ tooltip?: (props: {
136
+ text: string | undefined;
137
+ }) => any;
115
138
  }> & {
116
139
  default?: (props: object) => any;
140
+ /**
141
+ * Custom content for the tooltip. Falls back to the {@link BbButtonProps.tooltip | tooltip} prop text.
142
+ */
143
+ tooltip?: (props: {
144
+ text: string | undefined;
145
+ }) => any;
117
146
  };
118
147
  refs: {};
119
148
  rootEl: any;
120
149
  };
121
150
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
122
- declare const __VLS_component: import('vue').DefineComponent<BbButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbButtonProps> & Readonly<{}>, {
151
+ declare const __VLS_component: import('vue').DefineComponent<BbButtonProps, {
152
+ el: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
153
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbButtonProps> & Readonly<{}>, {
123
154
  size: Sizes | Partial<Record<"xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "default", Sizes>>;
124
155
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
125
156
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,73 +1,81 @@
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'> & {
4
+ export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | 'block' | 'disabled' | 'eager' | 'id' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
5
5
  /**
6
- * Elements that obtains focus immediately after opening the popover.
7
- * By default it's the first tabbable item.
6
+ * External activator element or component ref.
7
+ * When provided, the activator slot is not rendered and click events
8
+ * are attached programmatically to the referenced element.
9
+ */
10
+ activator?: HTMLElement | Record<string, any> | null;
11
+ /**
12
+ * Selector for the element that receives focus after opening.
13
+ * Defaults to the close button, or first focusable element if no close button.
8
14
  */
9
15
  focusTarget?: string;
10
16
  /**
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
17
+ * Whether to restore focus to the activator when closed.
18
+ * @default true
19
+ */
20
+ restoreFocus?: boolean;
21
+ /**
22
+ * @deprecated Use a CSS class on the component instead.
13
23
  */
14
24
  theme?: string;
15
25
  /**
16
- * Width of the dropdown in pixels.
26
+ * Width of the popover. Accepts pixels or percentage (relative to activator width).
17
27
  */
18
28
  width?: number | string;
19
29
  };
30
+ type __VLS_Props = BbPopoverProps;
20
31
  export type BbPopoverEvents = {
21
32
  (e: 'shown'): void;
22
33
  (e: 'hidden'): void;
23
34
  };
24
- declare const onTriggerClick: (event: MouseEvent) => Promise<void>;
25
- declare const onClickClose: () => Promise<void>;
35
+ declare const activatorProps: import('vue').ComputedRef<{
36
+ 'aria-expanded': boolean | undefined;
37
+ 'aria-controls': string | undefined;
38
+ 'aria-haspopup': "dialog";
39
+ id: string;
40
+ disabled: boolean;
41
+ ref: (reference: unknown) => void;
42
+ onClick: (event: MouseEvent) => Promise<void>;
43
+ }>;
44
+ declare const close: () => void;
45
+ type __VLS_PublicProps = {
46
+ modelValue?: boolean;
47
+ } & __VLS_Props;
26
48
  declare function __VLS_template(): {
27
49
  attrs: Partial<{}>;
28
50
  slots: Readonly<{
29
51
  activator?: (props: {
30
- props: {
31
- "aria-controls": string | undefined;
32
- "aria-expanded": boolean;
33
- onClick: typeof onTriggerClick;
34
- id: string;
35
- disabled: boolean;
36
- ref: (reference: unknown) => void;
37
- };
52
+ props: typeof activatorProps.value;
38
53
  disabled: boolean;
39
- open: boolean;
54
+ isOpen: boolean;
40
55
  placement: Placement;
41
56
  }) => any;
42
57
  default?: (props: {
43
- close: typeof onClickClose;
58
+ close: typeof close;
44
59
  disabled: boolean;
45
60
  open: boolean;
46
61
  placement: Placement;
47
62
  }) => any;
48
63
  }> & {
49
64
  activator?: (props: {
50
- props: {
51
- "aria-controls": string | undefined;
52
- "aria-expanded": boolean;
53
- onClick: typeof onTriggerClick;
54
- id: string;
55
- disabled: boolean;
56
- ref: (reference: unknown) => void;
57
- };
65
+ props: typeof activatorProps.value;
58
66
  disabled: boolean;
59
- open: boolean;
67
+ isOpen: boolean;
60
68
  placement: Placement;
61
69
  }) => any;
62
70
  default?: (props: {
63
- close: typeof onClickClose;
71
+ close: typeof close;
64
72
  disabled: boolean;
65
73
  open: boolean;
66
74
  placement: Placement;
67
75
  }) => any;
68
76
  };
69
77
  refs: {
70
- popover: ({
78
+ popoverRef: ({
71
79
  $: import('vue').ComponentInternalInstance;
72
80
  $data: {};
73
81
  $props: {
@@ -160,16 +168,22 @@ declare function __VLS_template(): {
160
168
  rootEl: any;
161
169
  };
162
170
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
163
- declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
164
- open: (event: MouseEvent) => Promise<void>;
165
- close: () => Promise<void>;
166
- closed: import('vue').ComputedRef<boolean>;
167
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
171
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
172
+ /** Opens the popover programmatically */
173
+ show: (event: MouseEvent) => Promise<void>;
174
+ /** Closes the popover programmatically */
175
+ close: () => void;
176
+ /** Whether the popover is currently open */
177
+ isOpen: import('vue').ComputedRef<boolean>;
178
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
179
+ "update:modelValue": (value: boolean) => any;
180
+ } & {
168
181
  shown: () => any;
169
182
  hidden: () => any;
170
- }, string, import('vue').PublicProps, Readonly<BbPopoverProps> & Readonly<{
183
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
171
184
  onShown?: (() => any) | undefined;
172
185
  onHidden?: (() => any) | undefined;
186
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
173
187
  }>, {
174
188
  showClose: boolean;
175
189
  transitionDuration: number;
@@ -178,8 +192,9 @@ declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
178
192
  offset: number;
179
193
  padding: number;
180
194
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
195
+ restoreFocus: boolean;
181
196
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
182
- popover: ({
197
+ popoverRef: ({
183
198
  $: import('vue').ComponentInternalInstance;
184
199
  $data: {};
185
200
  $props: {
@@ -1,6 +1,12 @@
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' | 'theme' | 'transitionDuration'> & {
3
+ export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
4
+ /**
5
+ * External activator element or component ref.
6
+ * When provided, the activator slot is not rendered and event listeners
7
+ * are attached programmatically to the referenced element.
8
+ */
9
+ activator?: HTMLElement | Record<string, any> | null;
4
10
  /**
5
11
  * Name of the theme to apply to the component. It creates a CSS class with the name of the theme.
6
12
  * @deprecated since the popover is local you should use a normal css class applied to the top level element
@@ -20,10 +26,6 @@ type __VLS_Props = BbTooltipProps;
20
26
  type BbTooltipSlots = {
21
27
  activator?: (props: {
22
28
  props: {
23
- 'aria-describedby'?: string;
24
- onMouseenter: typeof onMouseenter;
25
- onFocus: typeof onFocus;
26
- onBlur: typeof closeTooltip;
27
29
  ref: (reference: unknown) => void;
28
30
  };
29
31
  disabled?: boolean;
@@ -32,9 +34,6 @@ type BbTooltipSlots = {
32
34
  }) => any;
33
35
  default?: (props: object) => any;
34
36
  };
35
- declare const onMouseenter: () => void;
36
- declare const onFocus: () => void;
37
- declare const closeTooltip: import('lodash').DebouncedFuncLeading<() => Promise<void>>;
38
37
  type __VLS_PublicProps = {
39
38
  modelValue?: boolean;
40
39
  } & __VLS_Props;