bitboss-ui 0.2.70 → 0.2.71
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/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BbChip/BbChip.vue.d.ts +1 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
- package/dist/components/BbRatio/BbRatio.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbStep/BbStep.vue.d.ts +159 -0
- package/dist/components/BbTab/BbTab.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
- package/dist/composables/useConfirm.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +1 -1
- package/dist/composables/useToast.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
|
-
import type { NestedKeyOf } from '
|
|
2
|
+
import type { NestedKeyOf } from '@/types/NestedKeyOf';
|
|
3
3
|
import type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
|
|
4
4
|
export type BaseCheckboxGroupProps<T> = {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InputHTMLAttributes, HTMLAttributes } from 'vue';
|
|
2
|
-
import type { NestedKeyOf } from '
|
|
2
|
+
import type { NestedKeyOf } from '@/types/NestedKeyOf';
|
|
3
3
|
import type { SlotAttributes } from '../BaseRadio/BaseRadio.vue';
|
|
4
4
|
export type BaseRadioGroupProps<T> = {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BbCollapsibleProps } from '../BbCollapsible/BbCollapsible.vue';
|
|
2
|
-
import type { CommonProps } from '
|
|
2
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
3
3
|
export type BbAccordionProps = Partial<BbCollapsibleProps> & Pick<CommonProps, 'id'>;
|
|
4
4
|
export type BbAccordionEvents = {
|
|
5
5
|
(e: 'update:modelValue', value: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BbIconProps } from '../BbIcon/BbIcon.vue';
|
|
2
|
-
import type { CommonProps } from '
|
|
2
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
3
3
|
export type BbAlertProps = Pick<CommonProps, 'closeLabel' | 'showClose' | 'text' | 'theme' | 'title'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Name of the icon to use
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseCheckboxGroupEvents } from '../BaseCheckboxGroup/BaseCheckboxGroup.vue';
|
|
2
2
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
|
-
import type { NestedKeyOf } from '
|
|
3
|
+
import type { NestedKeyOf } from '@/types/NestedKeyOf';
|
|
4
4
|
import type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';
|
|
5
5
|
export type BbCheckboxGroupProps<T> = {
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps } from '
|
|
1
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
2
2
|
export type BbChipProps = Pick<CommonProps, 'text'> & {
|
|
3
3
|
/**
|
|
4
4
|
* Renders a button with a close icon. Used to indicate the possibility of deleting the item.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps } from '
|
|
1
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
2
2
|
export type BbCollapsibleProps = Pick<CommonProps, 'eager' | 'transitionDuration'> & {
|
|
3
3
|
/**
|
|
4
4
|
* Used by v-model to trigger opening / closing the collapsible
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseButtonProps } from '../BaseButton/BaseButton.vue';
|
|
2
|
-
import type { CommonProps } from '
|
|
2
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
3
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps, NonVoidElementTag } from '
|
|
1
|
+
import type { CommonProps, NonVoidElementTag } from '@/types/CommonProps';
|
|
2
2
|
export type DropZoneError = ReturnType<(typeof createError)[keyof typeof createError]>;
|
|
3
3
|
export type BbDropzoneProps = Pick<CommonProps, 'autofocus' | 'disabled' | 'errors' | 'hasErrors' | 'id' | 'multiple' | 'name'> & {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps } from '
|
|
1
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
2
2
|
import type { Placement } from '@floating-ui/vue';
|
|
3
3
|
export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseRadioGroupEvents } from '../BaseRadioGroup/BaseRadioGroup.vue';
|
|
2
2
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
|
-
import type { NestedKeyOf } from '
|
|
3
|
+
import type { NestedKeyOf } from '@/types/NestedKeyOf';
|
|
4
4
|
import type { SlotAttributes } from '../BaseRadio/BaseRadio.vue';
|
|
5
5
|
export type BbRadioGroupEvents = BaseRadioGroupEvents;
|
|
6
6
|
export type BbRadioGroupProps<T> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseSelectEvents } from '../BaseSelect/BaseSelect.vue';
|
|
2
|
-
import type { NestedKeyOf } from '
|
|
2
|
+
import type { NestedKeyOf } from '@/types/NestedKeyOf';
|
|
3
3
|
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
export type BbSelectProps<T> = {
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps, Size as S } from '
|
|
1
|
+
import type { CommonProps, Size as S } from '@/types/CommonProps';
|
|
2
2
|
import type { Size as IconSize } from '../BbIcon/BbIcon.vue';
|
|
3
3
|
export type Size = IconSize;
|
|
4
4
|
export type BbSpinnerProps = Pick<CommonProps, 'color'> & S<IconSize>;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'vue';
|
|
2
|
+
export type BbStepItem = {
|
|
3
|
+
/**
|
|
4
|
+
* Disables the component
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Used to render a step even when not visible.
|
|
9
|
+
* It's useful if you want the content of a step in the DOM
|
|
10
|
+
* immediately rendered
|
|
11
|
+
* even when not visible for SEO purposes.
|
|
12
|
+
*/
|
|
13
|
+
eager?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* String that identifies the step.
|
|
16
|
+
*/
|
|
17
|
+
key: string;
|
|
18
|
+
/**
|
|
19
|
+
* Label to use as the step text. While it's not made
|
|
20
|
+
* visible by default it's provided to the slot.
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
};
|
|
24
|
+
export type BbStepProps = {
|
|
25
|
+
/**
|
|
26
|
+
* Disables the component
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Prevents rendering content before it's made visible.
|
|
31
|
+
*/
|
|
32
|
+
eager?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The identifier of the component.
|
|
35
|
+
*/
|
|
36
|
+
id?: HTMLAttributes['id'];
|
|
37
|
+
/**
|
|
38
|
+
* Direction of the stepper component
|
|
39
|
+
*/
|
|
40
|
+
direction?: 'horizontal' | 'vertical';
|
|
41
|
+
/**
|
|
42
|
+
* Array of items that define the steps in the component.
|
|
43
|
+
*/
|
|
44
|
+
items: BbStepItem[];
|
|
45
|
+
/**
|
|
46
|
+
* The current step. Used by v-model.
|
|
47
|
+
*/
|
|
48
|
+
modelValue?: null | BbStepItem['key'];
|
|
49
|
+
/**
|
|
50
|
+
* Synchronizes the current step with the url.
|
|
51
|
+
*/
|
|
52
|
+
navigation?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the query key to reference for maintaining navigation
|
|
55
|
+
*/
|
|
56
|
+
querykey?: string;
|
|
57
|
+
};
|
|
58
|
+
declare const props: Readonly<Omit<import("@vue/shared").LooseRequired<BbStepProps>, "disabled" | "direction" | "querykey">> & {
|
|
59
|
+
readonly direction: "horizontal" | "vertical";
|
|
60
|
+
readonly disabled: boolean;
|
|
61
|
+
readonly querykey: string;
|
|
62
|
+
} & {
|
|
63
|
+
readonly disabled: boolean;
|
|
64
|
+
readonly eager: boolean;
|
|
65
|
+
readonly navigation: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type BbStepEvents = {
|
|
68
|
+
(e: 'update:modelValue', value: (typeof props.items)[number]['key']): void;
|
|
69
|
+
};
|
|
70
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbStepProps>, {
|
|
71
|
+
direction: string;
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
querykey: string;
|
|
74
|
+
}>, {
|
|
75
|
+
goTo: (key: string) => void;
|
|
76
|
+
next: () => void;
|
|
77
|
+
previous: () => void;
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
|
+
"update:modelValue": (value: string) => void;
|
|
80
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbStepProps>, {
|
|
81
|
+
direction: string;
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
querykey: string;
|
|
84
|
+
}>>> & {
|
|
85
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
direction: "horizontal" | "vertical";
|
|
89
|
+
querykey: string;
|
|
90
|
+
}, {}>, Readonly<{
|
|
91
|
+
icon?: ((props: {
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
highlighted: boolean;
|
|
94
|
+
selected: boolean;
|
|
95
|
+
text: string | undefined;
|
|
96
|
+
value: string;
|
|
97
|
+
}) => any) | undefined;
|
|
98
|
+
label?: ((props: {
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
highlighted: boolean;
|
|
101
|
+
selected: boolean;
|
|
102
|
+
text: string | undefined;
|
|
103
|
+
value: string;
|
|
104
|
+
}) => any) | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
[key: string]: (props: {
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
highlighted: boolean;
|
|
109
|
+
selected: boolean;
|
|
110
|
+
text: string | undefined;
|
|
111
|
+
value: string;
|
|
112
|
+
}) => any;
|
|
113
|
+
}> & {
|
|
114
|
+
icon?: ((props: {
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
highlighted: boolean;
|
|
117
|
+
selected: boolean;
|
|
118
|
+
text: string | undefined;
|
|
119
|
+
value: string;
|
|
120
|
+
}) => any) | undefined;
|
|
121
|
+
label?: ((props: {
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
highlighted: boolean;
|
|
124
|
+
selected: boolean;
|
|
125
|
+
text: string | undefined;
|
|
126
|
+
value: string;
|
|
127
|
+
}) => any) | undefined;
|
|
128
|
+
} & {
|
|
129
|
+
[key: string]: (props: {
|
|
130
|
+
disabled: boolean;
|
|
131
|
+
highlighted: boolean;
|
|
132
|
+
selected: boolean;
|
|
133
|
+
text: string | undefined;
|
|
134
|
+
value: string;
|
|
135
|
+
}) => any;
|
|
136
|
+
}>;
|
|
137
|
+
export default _default;
|
|
138
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
139
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
140
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
141
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
142
|
+
} : {
|
|
143
|
+
type: import('vue').PropType<T[K]>;
|
|
144
|
+
required: true;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
type __VLS_WithDefaults<P, D> = {
|
|
148
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
149
|
+
default: D[K];
|
|
150
|
+
}> : P[K];
|
|
151
|
+
};
|
|
152
|
+
type __VLS_Prettify<T> = {
|
|
153
|
+
[K in keyof T]: T[K];
|
|
154
|
+
} & {};
|
|
155
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
156
|
+
new (): {
|
|
157
|
+
$slots: S;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BbTableProps, MappedCell, TableColumn } from './types';
|
|
2
|
-
import type { Classes } from '
|
|
2
|
+
import type { Classes } from '@/types/Classes';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BbTableProps>, {
|
|
4
4
|
align: string;
|
|
5
5
|
accessibleLabel: (columns: MappedCell[]) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonProps } from '
|
|
1
|
+
import type { CommonProps } from '@/types/CommonProps';
|
|
2
2
|
import type { Placement } from '@floating-ui/vue';
|
|
3
3
|
export type BbTooltipProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'id' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'>;
|
|
4
4
|
type BbTooltipSlots = {
|