@carefirst/library 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/components/badge/badge.component.mjs +9 -17
- package/esm2022/lib/interfaces/badge.interface.mjs +15 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/carefirst-library.mjs +14 -3
- package/fesm2022/carefirst-library.mjs.map +1 -1
- package/lib/components/badge/badge.component.d.ts +4 -4
- package/lib/interfaces/badge.interface.d.ts +2 -0
- package/package.json +1 -1
- package/public/styles/app.scss +8 -0
- package/public-api.d.ts +1 -0
@@ -1,20 +1,20 @@
|
|
1
1
|
import { type OnChanges, type SimpleChanges } from '@angular/core';
|
2
2
|
import { type IconsT } from '../../interfaces/icon.interface';
|
3
|
+
import { type BadgeTypeT } from '../../interfaces/badge.interface';
|
3
4
|
import * as i0 from "@angular/core";
|
4
|
-
declare const badgeTypeC: readonly ["primary", "white", "success", "alert", "accent", "warning", "disabled", "feedback-success", "feedback-error", "feedback-warning", "feedback-busy", "custom-color"];
|
5
|
-
type BadgeTypeT = (typeof badgeTypeC)[number];
|
6
5
|
export declare class BadgeComponent implements OnChanges {
|
7
6
|
type: BadgeTypeT;
|
8
7
|
icon?: IconsT | undefined;
|
9
8
|
small?: boolean | string | undefined;
|
10
9
|
large?: boolean | string | undefined;
|
10
|
+
stretch?: boolean | string | undefined;
|
11
11
|
inputType: typeof this.type;
|
12
12
|
inputIcon: typeof this.icon | undefined;
|
13
13
|
fontsize: number;
|
14
14
|
inputSmall: boolean;
|
15
15
|
inputLarge: boolean;
|
16
|
+
inputStretch: boolean;
|
16
17
|
ngOnChanges(changes: SimpleChanges): void;
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "cf-badge", never, { "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; }, {}, never, ["*"], false, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "cf-badge", never, { "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "small": { "alias": "small"; "required": false; }; "large": { "alias": "large"; "required": false; }; "stretch": { "alias": "stretch"; "required": false; }; }, {}, never, ["*"], false, never>;
|
19
20
|
}
|
20
|
-
export {};
|
package/package.json
CHANGED
package/public/styles/app.scss
CHANGED
@@ -119,3 +119,11 @@ cf-icon {
|
|
119
119
|
display: block;
|
120
120
|
width: fit-content;
|
121
121
|
}
|
122
|
+
|
123
|
+
/*===============================================
|
124
|
+
=================== CF Badges ==================
|
125
|
+
===============================================*/
|
126
|
+
cf-badge:has(div.stretch) {
|
127
|
+
width: 100%;
|
128
|
+
display: block;
|
129
|
+
}
|
package/public-api.d.ts
CHANGED
@@ -24,3 +24,4 @@ export * as CFSpacerI from './lib/interfaces/spacer.interface';
|
|
24
24
|
export * as CFNotificationI from './lib/interfaces/notification.interface';
|
25
25
|
export * as CFInputI from './lib/interfaces/input.interface';
|
26
26
|
export * as CFCodeInputI from './lib/interfaces/verification-code.interface';
|
27
|
+
export * as CFBadgeI from './lib/interfaces/badge.interface';
|