cps-ui-kit 21.4.1 → 21.5.0
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/package.json
CHANGED
package/styles/_mixins.scss
CHANGED
|
@@ -11,24 +11,22 @@
|
|
|
11
11
|
$inner-width: 0.0625rem,
|
|
12
12
|
$outer-width: 0.0625rem
|
|
13
13
|
) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
14
|
+
outline: none;
|
|
15
|
+
position: relative;
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
21
19
|
content: '';
|
|
22
20
|
position: absolute;
|
|
23
21
|
border-radius: $radius;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
&::before {
|
|
27
25
|
inset: -#{$inner-offset}; /* inner offset */
|
|
28
26
|
border: $inner-width solid var(--cps-color-calm);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
&::after {
|
|
32
30
|
inset: -#{$outer-offset}; /* outer offset */
|
|
33
31
|
border: $outer-width solid var(--cps-color-calm-highlighten);
|
|
34
32
|
}
|
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -1593,7 +1593,7 @@ declare class CpsButtonComponent implements OnChanges {
|
|
|
1593
1593
|
* CpsCheckboxComponent is a checkbox element.
|
|
1594
1594
|
* @group Components
|
|
1595
1595
|
*/
|
|
1596
|
-
declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
1596
|
+
declare class CpsCheckboxComponent implements OnInit, OnChanges, ControlValueAccessor {
|
|
1597
1597
|
private _control;
|
|
1598
1598
|
private document;
|
|
1599
1599
|
private _elementRef;
|
|
@@ -1602,6 +1602,11 @@ declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
|
1602
1602
|
* @group Props
|
|
1603
1603
|
*/
|
|
1604
1604
|
label: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Aria label for the checkbox, used for accessibility, it takes precedence over label.
|
|
1607
|
+
* @group Props
|
|
1608
|
+
*/
|
|
1609
|
+
ariaLabel: string;
|
|
1605
1610
|
/**
|
|
1606
1611
|
* Determines whether checkbox is disabled.
|
|
1607
1612
|
* @group Props
|
|
@@ -1658,6 +1663,7 @@ declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
|
1658
1663
|
private _value;
|
|
1659
1664
|
constructor(_control: NgControl, document: Document, _elementRef: ElementRef<HTMLElement>);
|
|
1660
1665
|
ngOnInit(): void;
|
|
1666
|
+
ngOnChanges(): void;
|
|
1661
1667
|
onChange: (event: any) => void;
|
|
1662
1668
|
onTouched: () => void;
|
|
1663
1669
|
registerOnChange(fn: any): void;
|
|
@@ -1668,7 +1674,7 @@ declare class CpsCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
|
1668
1674
|
setDisabledState(disabled: boolean): void;
|
|
1669
1675
|
focus(): void;
|
|
1670
1676
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsCheckboxComponent, [{ optional: true; self: true; }, null, null]>;
|
|
1671
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsCheckboxComponent, "cps-checkbox", never, { "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
1677
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsCheckboxComponent, "cps-checkbox", never, { "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "infoTooltip": { "alias": "infoTooltip"; "required": false; }; "infoTooltipClass": { "alias": "infoTooltipClass"; "required": false; }; "infoTooltipMaxWidth": { "alias": "infoTooltipMaxWidth"; "required": false; }; "infoTooltipPersistent": { "alias": "infoTooltipPersistent"; "required": false; }; "infoTooltipPosition": { "alias": "infoTooltipPosition"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChanged": "valueChanged"; }, never, never, true, never>;
|
|
1672
1678
|
}
|
|
1673
1679
|
|
|
1674
1680
|
/**
|