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.
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -0
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -0
- package/dist/components/BbButton/BbButton.vue.d.ts +32 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +51 -36
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +7 -8
- package/dist/index.css +1 -1
- package/dist/index107.js +8 -8
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index122.js +10 -10
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +93 -67
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +34 -33
- package/dist/index19.js +8 -8
- package/dist/index21.js +16 -16
- package/dist/index217.js +4 -2
- package/dist/index218.js +13 -2
- package/dist/index219.js +20 -2
- package/dist/index220.js +193 -12
- package/dist/index222.js +120 -3
- package/dist/index224.js +5 -18
- package/dist/index225.js +8 -12
- package/dist/index226.js +5 -51
- package/dist/index227.js +5 -15
- package/dist/index228.js +5 -12
- package/dist/index229.js +5 -17
- package/dist/index23.js +11 -11
- package/dist/index230.js +5 -29
- package/dist/index231.js +5 -16
- package/dist/index232.js +2 -4
- package/dist/index233.js +3 -106
- package/dist/index234.js +88 -0
- package/dist/index236.js +31 -0
- package/dist/index237.js +16 -120
- package/dist/index238.js +19 -0
- package/dist/index239.js +50 -228
- package/dist/index240.js +14 -12
- package/dist/index241.js +3 -10
- package/dist/index242.js +11 -2
- package/dist/index243.js +2 -5
- package/dist/index244.js +2 -5
- package/dist/index245.js +2 -5
- package/dist/index246.js +7 -5
- package/dist/index247.js +2 -5
- package/dist/index248.js +7 -5
- package/dist/index249.js +5 -20
- package/dist/index25.js +3 -3
- package/dist/index250.js +5 -3
- package/dist/index251.js +8 -5
- package/dist/index252.js +266 -183
- package/dist/index253.js +52 -33
- package/dist/index254.js +42 -26
- package/dist/index255.js +7 -0
- package/dist/index256.js +60 -3
- package/dist/index257.js +12 -85
- package/dist/index258.js +15 -0
- package/dist/index259.js +4 -33
- package/dist/index260.js +2 -5
- package/dist/index261.js +9 -5
- package/dist/index262.js +23 -8
- package/dist/index263.js +4 -271
- package/dist/index264.js +21 -50
- package/dist/index265.js +31 -42
- package/dist/index266.js +7 -5
- package/dist/index267.js +187 -59
- package/dist/index268.js +106 -11
- package/dist/index27.js +1 -1
- package/dist/index270.js +95 -189
- package/dist/index272.js +9 -12
- package/dist/index273.js +2 -6
- package/dist/index274.js +6 -2
- package/dist/index275.js +16 -4
- package/dist/index276.js +10 -22
- package/dist/index277.js +18 -2
- package/dist/index278.js +11 -6
- package/dist/index279.js +229 -7
- package/dist/index280.js +3 -6
- package/dist/index281.js +66 -15
- package/dist/index282.js +5 -9
- package/dist/index283.js +2 -67
- package/dist/index284.js +1 -1
- package/dist/index285.js +3 -8
- package/dist/index286.js +8 -9
- package/dist/index287.js +9 -23
- package/dist/index288.js +33 -2
- package/dist/index289.js +28 -5
- package/dist/index29.js +2 -2
- package/dist/index291.js +3 -7
- package/dist/index292.js +3 -5
- package/dist/index293.js +9 -0
- package/dist/index294.js +280 -3
- package/dist/index295.js +2 -4
- package/dist/index296.js +116 -271
- package/dist/index297.js +2 -2
- package/dist/index298.js +13 -123
- package/dist/index299.js +2 -2
- package/dist/index300.js +14 -13
- package/dist/index302.js +9 -9
- package/dist/index304.js +17 -14
- package/dist/index306.js +3 -19
- package/dist/index307.js +17 -2
- package/dist/index308.js +28 -3
- package/dist/index31.js +31 -30
- package/dist/index313.js +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.js +1 -1
- package/dist/index316.js +1 -1
- package/dist/index317.js +21 -27
- package/dist/index320.js +1 -1
- package/dist/index321.js +4 -3
- package/dist/index322.js +719 -2
- package/dist/index323.js +366 -17
- package/dist/index324.js +57 -5
- package/dist/index325.js +3 -2
- package/dist/index326.js +1 -1
- package/dist/index327.js +2 -3
- package/dist/index328.js +2 -4
- package/dist/index329.js +5 -6
- package/dist/index33.js +8 -8
- package/dist/index330.js +1 -1
- package/dist/index331.js +4 -719
- package/dist/index332.js +6 -366
- package/dist/index333.js +5 -57
- package/dist/index334.js +6 -46
- package/dist/index335.js +17 -5
- package/dist/index336.js +6 -227
- package/dist/index341.js +2 -2
- package/dist/index342.js +3 -3
- package/dist/index346.js +92 -6
- package/dist/index347.js +132 -17
- package/dist/index348.js +46 -92
- package/dist/index349.js +1 -1
- package/dist/index35.js +4 -4
- package/dist/index350.js +225 -131
- package/dist/index351.js +435 -44
- package/dist/index352.js +114 -427
- package/dist/index353.js +48 -126
- package/dist/index37.js +18 -18
- package/dist/index39.js +6 -6
- package/dist/index41.js +32 -31
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +95 -64
- package/dist/index67.js +1 -1
- package/dist/index80.js +6 -6
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +123 -87
- package/package.json +2 -2
- package/dist/index221.js +0 -5
- package/dist/index223.js +0 -4
- package/dist/index235.js +0 -102
- package/dist/index269.js +0 -6
- package/dist/index290.js +0 -10
- package/dist/index318.js +0 -24
|
@@ -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, {
|
|
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
|
-
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
12
|
-
* @
|
|
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
|
|
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
|
|
25
|
-
|
|
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
|
-
|
|
54
|
+
isOpen: boolean;
|
|
40
55
|
placement: Placement;
|
|
41
56
|
}) => any;
|
|
42
57
|
default?: (props: {
|
|
43
|
-
close: typeof
|
|
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
|
-
|
|
67
|
+
isOpen: boolean;
|
|
60
68
|
placement: Placement;
|
|
61
69
|
}) => any;
|
|
62
70
|
default?: (props: {
|
|
63
|
-
close: typeof
|
|
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
|
-
|
|
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<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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<
|
|
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
|
-
|
|
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' | '
|
|
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;
|