@cfpb/cfpb-design-system 3.13.1 → 3.14.1
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/CHANGELOG.md +22 -1
- package/dist/components/cfpb-expandables/index.js +1 -1
- package/dist/components/cfpb-expandables/index.js.map +4 -4
- package/dist/components/cfpb-forms/index.js +1 -1
- package/dist/components/cfpb-forms/index.js.map +4 -4
- package/dist/elements/cfpb-button/index.js +3 -3
- package/dist/elements/cfpb-button/index.js.map +2 -2
- package/dist/elements/cfpb-file-upload/index.js +4 -3
- package/dist/elements/cfpb-file-upload/index.js.map +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +2 -2
- package/package.json +2 -1
- package/src/elements/cfpb-button/index.js +5 -3
- package/src/elements/cfpb-file-upload/index.js +10 -3
- package/src/utilities/utilities.scss +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfpb/cfpb-design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.1",
|
|
4
4
|
"description": "CFPB's UI framework",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"email": "tech@cfpb.gov",
|
|
13
13
|
"url": "https://cfpb.github.io/design-system"
|
|
14
14
|
},
|
|
15
|
+
"sideEffects": false,
|
|
15
16
|
"publishConfig": {
|
|
16
17
|
"access": "public",
|
|
17
18
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,9 @@ export class CfpbButton extends LitElement {
|
|
|
48
48
|
</button>
|
|
49
49
|
`;
|
|
50
50
|
}
|
|
51
|
-
}
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
static init() {
|
|
53
|
+
window.customElements.get('cfpb-button') ||
|
|
54
|
+
window.customElements.define('cfpb-button', CfpbButton);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { html, LitElement, css, unsafeCSS } from 'lit';
|
|
2
2
|
import { ref, createRef } from 'lit/directives/ref.js';
|
|
3
3
|
import styles from './cfpb-file-upload.component.scss';
|
|
4
|
+
import { CfpbButton } from '../cfpb-button';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
@@ -96,7 +97,13 @@ export class CfpbFileUpload extends LitElement {
|
|
|
96
97
|
</div>
|
|
97
98
|
`;
|
|
98
99
|
}
|
|
99
|
-
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
static init() {
|
|
102
|
+
// Initialize internal button.
|
|
103
|
+
CfpbButton.init();
|
|
104
|
+
|
|
105
|
+
// Initialize parent file upload.
|
|
106
|
+
window.customElements.get('cfpb-file-upload') ||
|
|
107
|
+
window.customElements.define('cfpb-file-upload', CfpbFileUpload);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -273,14 +273,13 @@ $ba: Link underline active color.
|
|
|
273
273
|
}
|
|
274
274
|
/* stylelint-enable */
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
border-bottom-width: 1px;
|
|
278
|
-
}
|
|
279
|
-
|
|
276
|
+
// Turn off the default bottom `border` on the default and `:hover` states.
|
|
280
277
|
@mixin u-link-no-border() {
|
|
281
278
|
border-bottom-width: 0 !important;
|
|
282
279
|
}
|
|
283
280
|
|
|
281
|
+
// Turn off the default bottom `border` on the default state,
|
|
282
|
+
// but force a bottom border on the `:hover` state.
|
|
284
283
|
@mixin u-link-hover-border() {
|
|
285
284
|
border-bottom-width: 0 !important;
|
|
286
285
|
|