voiptime-components 1.21.132 → 1.21.134
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/badge/VBadge.d.ts +25 -0
- package/dist/components/badge/VBadge.d.ts.map +1 -0
- package/dist/components/badge/types.d.ts +23 -0
- package/dist/components/badge/types.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +560 -518
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/assets/main.scss +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VBadgeProps, BadgeColor, BadgePosition } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: DefineComponent<VBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<VBadgeProps> & Readonly<{}>, {
|
|
8
|
+
color: BadgeColor;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
max: number;
|
|
11
|
+
position: BadgePosition;
|
|
12
|
+
content: number | string;
|
|
13
|
+
dot: boolean;
|
|
14
|
+
offsetX: number;
|
|
15
|
+
offsetY: number;
|
|
16
|
+
bordered: boolean;
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=VBadge.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/badge/VBadge.vue"],"names":[],"mappings":";AAoBA;AAsEE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkG7C,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;;;;;;;;;;6EAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type BadgeColor = 'primary' | 'yellow' | 'success' | 'warning' | 'danger' | 'gray';
|
|
2
|
+
export type BadgePosition = 'top-end' | 'top-start' | 'bottom-end' | 'bottom-start';
|
|
3
|
+
export interface VBadgeProps {
|
|
4
|
+
/** Вміст бейджа — число або текст. Якщо не задано і dot=false — бейдж не рендериться */
|
|
5
|
+
content?: number | string;
|
|
6
|
+
/** Максимальне число перед обрізанням у формат "99+" */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Режим крапки — без вмісту, тільки маленький індикатор */
|
|
9
|
+
dot?: boolean;
|
|
10
|
+
/** Кольорова схема бейджа */
|
|
11
|
+
color?: BadgeColor;
|
|
12
|
+
/** Кут прив'язки відносно вмісту слоту */
|
|
13
|
+
position?: BadgePosition;
|
|
14
|
+
/** Додатковий зсув по X, px */
|
|
15
|
+
offsetX?: number;
|
|
16
|
+
/** Додатковий зсув по Y, px */
|
|
17
|
+
offsetY?: number;
|
|
18
|
+
/** Біла обвідка навколо бейджа (для контрасту на фото/іконках) */
|
|
19
|
+
bordered?: boolean;
|
|
20
|
+
/** Примусово приховати бейдж (напр. якщо content === 0) */
|
|
21
|
+
hidden?: boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/badge/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC1F,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAEpF,MAAM,WAAW,WAAW;IAC1B,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|