qpp-style 9.8.1 → 9.8.4
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/components/SideNav/UI/default-content.json +1 -2
- package/components/SideNav/helpers.js +2 -2
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +13 -13
- package/styles/qppds/base/_typography.scss +54 -46
- package/styles/qppds/base/index.scss +1 -6
- package/styles/qppds/components/_modal.scss +22 -0
- package/styles/qppds/settings/mixins/_index.scss +1 -0
- package/styles/qppds/settings/mixins/_type.scss +65 -0
- package/styles/qppds/utilities/_height.scss +38 -0
- package/styles/qppds/utilities/_width.scss +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qpp-style",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.4",
|
|
4
4
|
"description": "Shared style guide across the QPP program.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"homepage": "https://cmsgov.github.io/qpp-style",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
|
30
30
|
"@babel/preset-react": "^7.14.5",
|
|
31
31
|
"@babel/register": "^7.15.3",
|
|
32
|
-
"@storybook/addon-a11y": "^6.3.
|
|
33
|
-
"@storybook/addon-actions": "^6.3.
|
|
34
|
-
"@storybook/addon-backgrounds": "^6.3.
|
|
35
|
-
"@storybook/addon-docs": "^6.3.
|
|
32
|
+
"@storybook/addon-a11y": "^6.3.12",
|
|
33
|
+
"@storybook/addon-actions": "^6.3.12",
|
|
34
|
+
"@storybook/addon-backgrounds": "^6.3.12",
|
|
35
|
+
"@storybook/addon-docs": "^6.3.12",
|
|
36
36
|
"@storybook/addon-knobs": "^6.3.1",
|
|
37
|
-
"@storybook/addon-links": "^6.3.
|
|
37
|
+
"@storybook/addon-links": "^6.3.12",
|
|
38
38
|
"@storybook/addon-postcss": "^2.0.0",
|
|
39
|
-
"@storybook/addon-storysource": "^6.3.
|
|
40
|
-
"@storybook/addon-viewport": "^6.3.
|
|
41
|
-
"@storybook/addons": "^6.3.
|
|
42
|
-
"@storybook/react": "^6.3.
|
|
39
|
+
"@storybook/addon-storysource": "^6.3.12",
|
|
40
|
+
"@storybook/addon-viewport": "^6.3.12",
|
|
41
|
+
"@storybook/addons": "^6.3.12",
|
|
42
|
+
"@storybook/react": "^6.3.12",
|
|
43
43
|
"@testing-library/react": "^12.1.2",
|
|
44
44
|
"autoprefixer": "^10.3.7",
|
|
45
45
|
"babel-eslint": "^10.1.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react-test-renderer": "^17.0.2",
|
|
77
77
|
"regenerator-runtime": "^0.13.9",
|
|
78
78
|
"rimraf": "^3.0.2",
|
|
79
|
-
"sass": "^1.
|
|
79
|
+
"sass": "^1.43.2",
|
|
80
80
|
"sass-loader": "^10.2.0",
|
|
81
81
|
"sinon": "^11.1.2",
|
|
82
82
|
"style-loader": "^1.3.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"url": "https://github.com/CMSgov/qpp-style/issues"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@cmsgov/design-system": "^2.
|
|
107
|
+
"@cmsgov/design-system": "^2.9.0",
|
|
108
108
|
"@material-ui/core": "^4.12.3",
|
|
109
109
|
"@material-ui/icons": "^4.11.2",
|
|
110
110
|
"@reach/portal": "^0.16.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"d3-selection": "^1.4.2",
|
|
115
115
|
"d3-shape": "^1.3.7",
|
|
116
116
|
"jwt-decode": "^3.1.2",
|
|
117
|
-
"preact": "^10.5.
|
|
117
|
+
"preact": "^10.5.15",
|
|
118
118
|
"prop-types": "^15.7.2",
|
|
119
119
|
"react-modal": "^3.14.3",
|
|
120
120
|
"retry": "^0.13.1",
|
|
@@ -1,65 +1,73 @@
|
|
|
1
1
|
@import '../settings/index';
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@for $i from 1 through length($headings) {
|
|
14
|
-
$heading: nth($headings, $i);
|
|
3
|
+
// scope all base (global) styles nested under .qppds selector
|
|
4
|
+
// this can help avoid conflicts between new qppds styles and legacy styles
|
|
5
|
+
.qppds,
|
|
6
|
+
.qpp-prose {
|
|
7
|
+
// *:not() { // TODO: ignore component classes
|
|
8
|
+
// Override legacy qpp-style label styles
|
|
9
|
+
// TODO: reevaluate this when we get to forms and fieldsets
|
|
10
|
+
label {
|
|
11
|
+
@include input-label;
|
|
12
|
+
}
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
font-family: $font-rubik;
|
|
19
|
-
font-weight: nth($heading, 5);
|
|
20
|
-
font-size: nth($heading, 1);
|
|
21
|
-
line-height: nth($heading, 3);
|
|
14
|
+
@for $i from 1 through length($headings) {
|
|
15
|
+
$heading: nth($headings, $i);
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
@include media-breakpoint(xs) {
|
|
28
|
-
font-size: nth($heading, 1);
|
|
29
|
-
line-height: nth($heading, 3);
|
|
17
|
+
h#{$i},
|
|
18
|
+
.h#{$i} {
|
|
19
|
+
@include heading($heading);
|
|
30
20
|
}
|
|
31
21
|
}
|
|
32
|
-
}
|
|
33
22
|
|
|
34
|
-
p,
|
|
35
|
-
.p1 {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
p,
|
|
24
|
+
.p1 {
|
|
25
|
+
@include p1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p2 {
|
|
29
|
+
@include p2;
|
|
30
|
+
}
|
|
39
31
|
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
.l1 {
|
|
33
|
+
@include l1;
|
|
42
34
|
}
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
|
|
36
|
+
.l2 {
|
|
37
|
+
@include l2;
|
|
45
38
|
}
|
|
39
|
+
//}
|
|
46
40
|
}
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
// prefixed, single-use global classes for typography styles that can
|
|
43
|
+
// be used outside a .qppds wrapper.
|
|
44
|
+
.qpp-label {
|
|
45
|
+
@include input-label;
|
|
50
46
|
}
|
|
51
47
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
@for $i from 1 through length($headings) {
|
|
49
|
+
$heading: nth($headings, $i);
|
|
50
|
+
|
|
51
|
+
.qpp-h#{$i} {
|
|
52
|
+
@include heading($heading);
|
|
53
|
+
}
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
.qpp-p,
|
|
57
|
+
.qpp-p1 {
|
|
58
|
+
@include p1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.qpp-p2 {
|
|
62
|
+
@include p2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.qpp-l1 {
|
|
66
|
+
@include l1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.qpp-l2 {
|
|
70
|
+
@include l2;
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
.qpp-error-message {
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
// comment out until we're ready to replace old font-face definitions
|
|
3
3
|
// @import './fonts';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
// this can help avoid conflicts between new qppds styles and legacy styles
|
|
7
|
-
.qppds {
|
|
8
|
-
@import './typography';
|
|
9
|
-
}
|
|
10
|
-
|
|
5
|
+
@import './typography';
|
|
11
6
|
@import './backgrounds';
|
|
12
7
|
@import './layout';
|
|
13
8
|
@import './icon';
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
&__side-panel {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
.qpp-c-modal__header {
|
|
25
29
|
padding: $spacing-32 $spacing-32 0;
|
|
26
30
|
display: flex;
|
|
@@ -57,6 +61,24 @@
|
|
|
57
61
|
max-height: 60vh;
|
|
58
62
|
overflow-y: auto;
|
|
59
63
|
padding: 0 2rem;
|
|
64
|
+
|
|
65
|
+
&::-webkit-scrollbar {
|
|
66
|
+
-webkit-appearance: none; // stylelint-disable-line property-no-vendor-prefix
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&::-webkit-scrollbar:vertical {
|
|
70
|
+
width: 11px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::-webkit-scrollbar:horizontal {
|
|
74
|
+
width: 11px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&::-webkit-scrollbar-thumb {
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
border: 2px solid $white;
|
|
80
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
81
|
+
}
|
|
60
82
|
}
|
|
61
83
|
|
|
62
84
|
.qpp-c-modal__footer {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@import '../variables/index';
|
|
2
|
+
|
|
3
|
+
@mixin input-label {
|
|
4
|
+
color: $gray-80;
|
|
5
|
+
font-size: $font-size-14;
|
|
6
|
+
font-weight: $font-medium;
|
|
7
|
+
text-transform: none;
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// uses heading objects defined in src/variables/_type
|
|
12
|
+
@mixin heading($heading) {
|
|
13
|
+
font-family: $font-rubik;
|
|
14
|
+
font-weight: nth($heading, 5);
|
|
15
|
+
font-size: nth($heading, 1);
|
|
16
|
+
line-height: nth($heading, 3);
|
|
17
|
+
|
|
18
|
+
@include media-breakpoint(xxs) {
|
|
19
|
+
font-size: nth($heading, 2);
|
|
20
|
+
line-height: nth($heading, 4);
|
|
21
|
+
}
|
|
22
|
+
@include media-breakpoint(xs) {
|
|
23
|
+
font-size: nth($heading, 1);
|
|
24
|
+
line-height: nth($heading, 3);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin p1 {
|
|
29
|
+
font-family: $font-rubik;
|
|
30
|
+
font-size: $font-size-18;
|
|
31
|
+
line-height: $line-height-base;
|
|
32
|
+
|
|
33
|
+
@include media-breakpoint(xxs) {
|
|
34
|
+
font-size: $font-size-16;
|
|
35
|
+
}
|
|
36
|
+
@include media-breakpoint(xs) {
|
|
37
|
+
font-size: $font-size-18;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin p2 {
|
|
42
|
+
font-family: $font-rubik;
|
|
43
|
+
font-size: $font-size-14;
|
|
44
|
+
line-height: $line-height-base;
|
|
45
|
+
|
|
46
|
+
@include media-breakpoint(xxs) {
|
|
47
|
+
font-size: $font-size-14;
|
|
48
|
+
}
|
|
49
|
+
@include media-breakpoint(xs) {
|
|
50
|
+
font-size: $font-size-14;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin l1 {
|
|
55
|
+
font-family: $font-rubik;
|
|
56
|
+
font-size: $font-size-18;
|
|
57
|
+
line-height: $line-height-md;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin l2 {
|
|
61
|
+
font-family: $font-rubik;
|
|
62
|
+
font-size: $font-size-14;
|
|
63
|
+
line-height: $line-height-md;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
$static-height-vals: (
|
|
2
|
+
10: 10px,
|
|
3
|
+
12: 12px,
|
|
4
|
+
15: 15px,
|
|
5
|
+
16: 16px,
|
|
6
|
+
20: 20px,
|
|
7
|
+
24: 24px,
|
|
8
|
+
30: 30px,
|
|
9
|
+
32: 32px,
|
|
10
|
+
40: 40px,
|
|
11
|
+
50: 50px
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
@each $name in map-keys($static-height-vals) {
|
|
15
|
+
$value: map-get($static-height-vals, $name);
|
|
16
|
+
|
|
17
|
+
.qpp-u-height--#{$name}px {
|
|
18
|
+
height: #{$value} !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
23
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
24
|
+
|
|
25
|
+
@media (min-height: $viewport) {
|
|
26
|
+
@each $name in map-keys($static-height-vals) {
|
|
27
|
+
$value: map-get($static-height-vals, $name);
|
|
28
|
+
|
|
29
|
+
.qpp-u-#{$breakpoint}-height--#{$name}px {
|
|
30
|
+
height: #{$value} !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.qpp-u-height--auto {
|
|
37
|
+
height: auto !important;
|
|
38
|
+
}
|
|
@@ -42,3 +42,38 @@ $width-values: (
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
$static-width-vals: (
|
|
47
|
+
10: 10px,
|
|
48
|
+
12: 12px,
|
|
49
|
+
15: 15px,
|
|
50
|
+
16: 16px,
|
|
51
|
+
20: 20px,
|
|
52
|
+
24: 24px,
|
|
53
|
+
30: 30px,
|
|
54
|
+
32: 32px,
|
|
55
|
+
40: 40px,
|
|
56
|
+
50: 50px
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
@each $name in map-keys($static-width-vals) {
|
|
60
|
+
$value: map-get($static-width-vals, $name);
|
|
61
|
+
|
|
62
|
+
.qpp-u-width--#{$name}px {
|
|
63
|
+
width: #{$value} !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@each $breakpoint in map-keys($breakpoints) {
|
|
68
|
+
$viewport: map-get($breakpoints, $breakpoint);
|
|
69
|
+
|
|
70
|
+
@media (min-width: $viewport) {
|
|
71
|
+
@each $name in map-keys($static-width-vals) {
|
|
72
|
+
$value: map-get($static-width-vals, $name);
|
|
73
|
+
|
|
74
|
+
.qpp-u-#{$breakpoint}-width--#{$name}px {
|
|
75
|
+
width: #{$value} !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|