@cfpb/cfpb-design-system 3.2.7 → 3.2.8
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 +245 -109
- package/dist/components/cfpb-buttons/index.css +1 -1
- package/dist/components/cfpb-buttons/index.css.map +2 -2
- package/dist/components/cfpb-buttons/index.js +1 -1
- package/dist/components/cfpb-buttons/index.js.map +1 -1
- package/dist/components/cfpb-expandables/index.css +1 -1
- package/dist/components/cfpb-expandables/index.css.map +2 -2
- package/dist/components/cfpb-expandables/index.js.map +2 -2
- package/dist/components/cfpb-forms/index.css +1 -1
- package/dist/components/cfpb-forms/index.css.map +2 -2
- package/dist/components/cfpb-forms/index.js.map +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js.map +2 -2
- package/dist/utilities/index.css +1 -1
- package/dist/utilities/index.css.map +2 -2
- package/dist/utilities/index.js.map +2 -2
- package/package.json +2 -10
- package/src/components/cfpb-buttons/button-group.scss +1 -0
- package/src/components/cfpb-buttons/button.scss +1 -0
- package/src/components/cfpb-expandables/summary-minimal.js +0 -1
- package/src/components/cfpb-expandables/summary.js +0 -1
- package/src/utilities/behavior/behavior.js +0 -1
- package/src/utilities/behavior/flyout-menu.js +0 -1
- package/src/utilities/breakpoint-state.js +1 -1
- package/src/utilities/type-checkers.js +1 -2
- package/changelog-template.hbs +0 -142
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfpb/cfpb-design-system",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.8",
|
|
4
4
|
"description": "CFPB's UI framework",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": {
|
|
@@ -21,13 +21,5 @@
|
|
|
21
21
|
"url": "https://github.com/cfpb/design-system/issues"
|
|
22
22
|
},
|
|
23
23
|
"gitHead": "d9b9862ef0a34a0ca6f4835347ac7f202ed50e3e",
|
|
24
|
-
"type": "module"
|
|
25
|
-
"auto-changelog": {
|
|
26
|
-
"commitLimit": false,
|
|
27
|
-
"ignoreCommitPattern": "^Update \".+\" page",
|
|
28
|
-
"output": "./CHANGELOG.md",
|
|
29
|
-
"startingVersion": "v3",
|
|
30
|
-
"template": "./changelog-template.hbs",
|
|
31
|
-
"unreleased": true
|
|
32
|
-
}
|
|
24
|
+
"type": "module"
|
|
33
25
|
}
|
|
@@ -45,7 +45,6 @@ function _findElements(behaviorSelector, baseElement) {
|
|
|
45
45
|
behaviorElements.length === 0 &&
|
|
46
46
|
behaviorSelector.indexOf(BEHAVIOR_PREFIX) === -1
|
|
47
47
|
) {
|
|
48
|
-
// eslint-disable-next-line no-use-before-define
|
|
49
48
|
behaviorElements = find(behaviorSelector, baseElement);
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -53,7 +53,7 @@ function getBreakpointState(width) {
|
|
|
53
53
|
width = width || window.innerWidth;
|
|
54
54
|
|
|
55
55
|
let rangeKey;
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
for (rangeKey in varsBreakpoints) {
|
|
58
58
|
breakpointState[rangeKey] = _inBreakpointRange(
|
|
59
59
|
varsBreakpoints[rangeKey],
|
|
@@ -121,7 +121,7 @@ function isFunction(value) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// TODO Fix complexity issue
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
/**
|
|
126
126
|
* @name isEmpty
|
|
127
127
|
* @kind function
|
|
@@ -138,7 +138,6 @@ function isEmpty(value) {
|
|
|
138
138
|
/^\s*$/.test(value)
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
/* eslint-enable complexity, no-mixed-operators */
|
|
142
141
|
|
|
143
142
|
// Expose public methods.
|
|
144
143
|
export {
|
package/changelog-template.hbs
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
## Changelog
|
|
2
|
-
|
|
3
|
-
{{!--
|
|
4
|
-
Introduction
|
|
5
|
-
• This template tries to follow conventional commits format https://www.conventionalcommits.org/en/v1.0.0/
|
|
6
|
-
• The template uses regex to filter commit types into their own headings (this is more than just fixes and features headings)
|
|
7
|
-
• It also uses the replaceText function in package.json to remove the commit type text from the message, because the headers are shown instead.
|
|
8
|
-
|
|
9
|
-
• The text 'Breaking:' or 'Breaking changes:' can be located anywhere in the commit.
|
|
10
|
-
• The types feat:, fix:, chore:, docs:, refactor:, test:, style:, perf: must be at the beginning of the commit subject with an : on end.
|
|
11
|
-
• They can optionally have a scope set to outline the module or component that is affected eg feat(bldAssess):
|
|
12
|
-
• There is a short hash on the end of every commit that is currently commented out so that change log did not grow too long (due to some system's file size limitations). You can uncomment if you wish [`{{shorthash}}`]({{href}})
|
|
13
|
-
|
|
14
|
-
Example Definitions
|
|
15
|
-
• feat: A new feature
|
|
16
|
-
• fix: A bug fix
|
|
17
|
-
• perf: A code change that improves performance
|
|
18
|
-
• refactor: A code change that neither fixes a bug nor adds a feature
|
|
19
|
-
• style: Changes that do not affect the meaning of the code (white-space, formatting, spelling mistakes, missing semi-colons, etc)
|
|
20
|
-
• test: Adding missing tests or correcting existing tests
|
|
21
|
-
• docs: Adding/updating documentation
|
|
22
|
-
• chore: Something like updating a library version, or moving files to be in a better location and updating all file refs
|
|
23
|
-
--}}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{{!-- In package.json need to add this to remove label text from the change log output (because the markdown headers are now used to group them).
|
|
27
|
-
NOTES • Individual brackets have been escaped twice to be Json compliant.
|
|
28
|
-
• For items that define a scope eg feat(bldAssess): We remove the 1st bracket and then re-add it so we can select the right piece of text
|
|
29
|
-
{
|
|
30
|
-
"name": "my-awesome-package",
|
|
31
|
-
|
|
32
|
-
"auto-changelog": {
|
|
33
|
-
"replaceText": {
|
|
34
|
-
"([bB]reaking:)": "",
|
|
35
|
-
"([bB]reaking change:)": "",
|
|
36
|
-
"(^[fF]eat:)": "",
|
|
37
|
-
"(^[fF]eat\\()": "\\(",
|
|
38
|
-
"(^[fF]ix:)": "",
|
|
39
|
-
"(^[fF]ix\\()": "\\(",
|
|
40
|
-
"(^[cC]hore:)": "",
|
|
41
|
-
"(^[cC]hore\\()": "\\(",
|
|
42
|
-
"(^[dD]ocs:)": "",
|
|
43
|
-
"(^[dD]ocs\\()": "\\(",
|
|
44
|
-
"(^[rR]efactor:)": "",
|
|
45
|
-
"(^[rR]efactor\\()": "\\(",
|
|
46
|
-
"(^[tT]est:)": "",
|
|
47
|
-
"(^[tT]est\\()": "\\(",
|
|
48
|
-
"(^[sS]tyle:)": "",
|
|
49
|
-
"(^[sS]tyle\\()": "\\(",
|
|
50
|
-
"(^[pP]erf:)": "",
|
|
51
|
-
"(^[pP]erf\\()": "\\("
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
--}}
|
|
57
|
-
|
|
58
|
-
{{!--
|
|
59
|
-
Regex reminders
|
|
60
|
-
^ = starts with
|
|
61
|
-
\( = ( character (otherwise it is interpreted as a regex lookup group)
|
|
62
|
-
* = zero or more of the previous character
|
|
63
|
-
\s = whitespace
|
|
64
|
-
. = any character except newline
|
|
65
|
-
| = or
|
|
66
|
-
[aA] = character a or character A
|
|
67
|
-
--}}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{{#each releases}}
|
|
71
|
-
{{#if href}}
|
|
72
|
-
##{{#unless major}}#{{/unless}} [{{title}}]({{href}}) - {{#if tag}} {{niceDate}} {{/if}}
|
|
73
|
-
|
|
74
|
-
{{else}}
|
|
75
|
-
### {{title}}
|
|
76
|
-
{{/if}}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
{{#if summary}}
|
|
80
|
-
{{summary}}
|
|
81
|
-
{{/if}}
|
|
82
|
-
|
|
83
|
-
{{#each fixes}}
|
|
84
|
-
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}}{{/each}}
|
|
85
|
-
{{/each}}
|
|
86
|
-
|
|
87
|
-
{{! List merge commits with 'breaking:' or 'Breaking change:' anywhere in the message under a heading}}
|
|
88
|
-
{{#commit-list merges heading='### Breaking Changes :warning:' message='[bB]reaking [cC]hange:|[bB]reaking:' exclude='\[skip-changelog\]'}}
|
|
89
|
-
- {{message}} @{{author}} [`#{{id}}`]({{href}})
|
|
90
|
-
{{/commit-list}}
|
|
91
|
-
|
|
92
|
-
{{! List commits organised under a heading, but not those already listed in the breaking section }}
|
|
93
|
-
{{#commit-list merges heading='### Build' message='^[bB]uild:|^[bB]uild\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
94
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
95
|
-
{{/commit-list}}
|
|
96
|
-
|
|
97
|
-
{{#commit-list merges heading='### Deprecated Features' message='^[dD]eprecate:|^[dD]eprecate\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
98
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
99
|
-
{{/commit-list}}
|
|
100
|
-
|
|
101
|
-
{{#commit-list merges heading='### New Features' message='^[fF]eat:|^[fF]eat\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
102
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
103
|
-
{{/commit-list}}
|
|
104
|
-
|
|
105
|
-
{{#commit-list merges heading='### Fixes' message='^[fF]ix:|^[fF]ix\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
106
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
107
|
-
{{/commit-list}}
|
|
108
|
-
|
|
109
|
-
{{#commit-list merges heading='### Chores And Housekeeping' message='^[cC]hore:|^[cC]hore\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
110
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
111
|
-
{{/commit-list}}
|
|
112
|
-
|
|
113
|
-
{{#commit-list merges heading='### Documentation Changes' message='^[dD]ocs:|^[dD]ocs\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
114
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
115
|
-
{{/commit-list}}
|
|
116
|
-
|
|
117
|
-
{{#commit-list merges heading='### Refactoring and Updates' message='^[rR]efactor:|^[rR]efactor\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
118
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
119
|
-
{{/commit-list}}
|
|
120
|
-
|
|
121
|
-
{{#commit-list merges heading='### Changes to Test Assests' message='^[tT]est:|^[tT]est\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
122
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
123
|
-
{{/commit-list}}
|
|
124
|
-
|
|
125
|
-
{{#commit-list merges heading='### Tidying of Code eg Whitespace' message='^[sS]tyle:|^[sS]tyle\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
126
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
127
|
-
{{/commit-list}}
|
|
128
|
-
|
|
129
|
-
{{#commit-list merges heading='### Performance Improvements' message='^[pP]erf:|^[pP]erf\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
130
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
131
|
-
{{/commit-list}}
|
|
132
|
-
|
|
133
|
-
{{#commit-list merges heading='### CI Improvements' message='^[cC][iI]:|^[cC][iI]\(' exclude='[bB]reaking [cC]hange:|[bB]reaking:|\[skip-changelog\]'}}
|
|
134
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
135
|
-
{{/commit-list}}
|
|
136
|
-
|
|
137
|
-
{{#commit-list merges heading='### General Changes' exclude='[bB]reaking [cC]hange:|[bB]reaking:|^[bB]uild:|^[bB]uild ?\(|^[dD]eprecate:|^[dD]eprecate ?\(|^[fF]eat:|^[fF]eat ?\(|^[fF]ix:|^[fF]ix ?\(|^[cC]hore:|^[cC]hore ?\(|^[cC][iI]:|^[cC][iI] ?\(|^[dD]ocs:|^[dD]ocs ?\(|^[rR]efactor:|^[rR]efactor ?\(|^[tT]est:|^[tT]est ?\(|^[sS]tyle:|^[sS]tyle ?\(|^[pP]erf:|^[pP]erf ?\(|\[skip-changelog\]'}}
|
|
138
|
-
- {{message}} ({{author}}{{#if href}} - [#{{id}}]({{href}}){{/if}})
|
|
139
|
-
{{/commit-list}}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
{{/each}}
|