@cdc/core 1.1.4 → 9.22.9

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.
Files changed (115) hide show
  1. package/LICENSE +201 -0
  2. package/assets/filtered-text.svg +1 -0
  3. package/assets/icon-caret-down.svg +3 -0
  4. package/assets/icon-caret-filled-down.svg +3 -0
  5. package/assets/icon-caret-filled-up.svg +3 -0
  6. package/assets/icon-caret-up.svg +3 -0
  7. package/assets/icon-chart-bar-paired.svg +15 -0
  8. package/assets/icon-chart-bar-stacked.svg +10 -0
  9. package/assets/icon-chart-bar.svg +3 -0
  10. package/assets/icon-chart-line.svg +3 -0
  11. package/assets/icon-chart-pie.svg +3 -0
  12. package/assets/icon-check.svg +3 -0
  13. package/assets/icon-close.svg +3 -1
  14. package/assets/icon-code.svg +2 -2
  15. package/assets/icon-dashboard.svg +34 -0
  16. package/assets/icon-databite.svg +3 -0
  17. package/assets/icon-edit.svg +3 -0
  18. package/assets/icon-file-upload.svg +3 -0
  19. package/assets/icon-filter-bars.svg +5 -0
  20. package/assets/icon-gear.svg +6 -0
  21. package/assets/icon-grid.svg +2 -3
  22. package/assets/icon-info.svg +1 -1
  23. package/assets/icon-link.svg +3 -0
  24. package/assets/{alabama-graphic.svg → icon-map-alabama.svg} +2 -2
  25. package/assets/icon-map-usa.svg +3 -0
  26. package/assets/icon-map-world.svg +3 -0
  27. package/assets/icon-minus.svg +3 -0
  28. package/assets/icon-move.svg +8 -0
  29. package/assets/icon-plus.svg +3 -0
  30. package/assets/icon-question-circle.svg +3 -0
  31. package/assets/icon-tools.svg +8 -0
  32. package/assets/icon-upload.svg +3 -0
  33. package/assets/icon-warning-circle.svg +3 -0
  34. package/assets/{icon-warning.svg → icon-warning-triangle.svg} +1 -1
  35. package/components/AdvancedEditor.js +1 -1
  36. package/components/{ErrorBoundary.js → ErrorBoundary.jsx} +0 -0
  37. package/components/{LegendCircle.js → LegendCircle.jsx} +0 -0
  38. package/components/{Loading.js → Loading.jsx} +0 -0
  39. package/components/{Waiting.js → Waiting.jsx} +0 -0
  40. package/components/elements/Button.jsx +122 -3
  41. package/components/elements/Card.jsx +13 -0
  42. package/components/inputs/InputCheckbox.jsx +11 -3
  43. package/components/inputs/InputGroup.jsx +50 -0
  44. package/components/inputs/InputSelect.jsx +2 -2
  45. package/components/inputs/InputText.jsx +17 -18
  46. package/components/inputs/InputToggle.jsx +18 -18
  47. package/components/managers/DataDesigner.jsx +171 -0
  48. package/components/ui/Icon.jsx +50 -12
  49. package/components/ui/LoadSpin.jsx +24 -0
  50. package/components/ui/Modal.jsx +7 -2
  51. package/components/ui/Overlay.jsx +3 -1
  52. package/components/ui/Tooltip.jsx +18 -9
  53. package/data/colorPalettes.js +170 -124
  54. package/data/dataDesignerTables.js +148 -0
  55. package/{components → helpers}/DataTransform.js +3 -3
  56. package/helpers/fetchRemoteData.js +43 -0
  57. package/package.json +3 -2
  58. package/styles/_data-table.scss +13 -13
  59. package/styles/_global.scss +14 -0
  60. package/styles/_reset.scss +11 -1
  61. package/styles/base.scss +17 -1
  62. package/styles/v2/base/_file-selector.scss +20 -0
  63. package/styles/v2/base/_general.scss +9 -22
  64. package/styles/v2/base/_heading.scss +20 -0
  65. package/styles/v2/base/_reset.scss +2 -1
  66. package/styles/v2/base/index.scss +5 -1
  67. package/styles/v2/components/button.scss +27 -66
  68. package/styles/v2/components/card.scss +7 -0
  69. package/styles/v2/components/data-designer.scss +100 -0
  70. package/styles/v2/components/editor.scss +2 -1
  71. package/styles/v2/components/guidance-block.scss +74 -0
  72. package/styles/v2/components/icon.scss +0 -4
  73. package/styles/v2/components/input/_input-check-radio.scss +97 -0
  74. package/styles/v2/components/input/_input-group.scss +74 -0
  75. package/styles/v2/components/input/_input-slider.scss +184 -0
  76. package/styles/v2/components/input/_input.scss +66 -0
  77. package/styles/v2/components/input/index.scss +7 -0
  78. package/styles/v2/components/loadspin.scss +100 -0
  79. package/styles/v2/components/modal.scss +13 -6
  80. package/styles/v2/components/overlay.scss +2 -0
  81. package/styles/v2/layout/_alert.scss +11 -10
  82. package/styles/v2/layout/_component.scss +8 -1
  83. package/styles/v2/layout/_data-table.scss +71 -150
  84. package/styles/v2/layout/_progression.scss +4 -2
  85. package/styles/v2/layout/index.scss +0 -2
  86. package/styles/v2/main.scss +52 -2
  87. package/styles/v2/themes/_color-definitions.scss +31 -1
  88. package/styles/v2/utils/_align.scss +17 -0
  89. package/styles/v2/utils/_breakpoints.scss +18 -0
  90. package/styles/v2/utils/_grid.scss +47 -0
  91. package/styles/v2/utils/_mixins.scss +0 -16
  92. package/styles/v2/utils/_spacers.scss +31 -0
  93. package/styles/v2/utils/_variables.scss +7 -0
  94. package/styles/v2/utils/index.scss +7 -2
  95. package/assets/asc.svg +0 -1
  96. package/assets/chart-bar-solid.svg +0 -1
  97. package/assets/chart-line-solid.svg +0 -1
  98. package/assets/chart-pie-solid.svg +0 -1
  99. package/assets/check.svg +0 -3
  100. package/assets/dashboard.svg +0 -11
  101. package/assets/data-bite-graphic.svg +0 -3
  102. package/assets/desc.svg +0 -1
  103. package/assets/file-upload-solid.svg +0 -1
  104. package/assets/horizontal-stacked-bar.svg +0 -1
  105. package/assets/link.svg +0 -1
  106. package/assets/minus.svg +0 -1
  107. package/assets/paired-bar.svg +0 -11
  108. package/assets/plus.svg +0 -1
  109. package/assets/question-circle.svg +0 -1
  110. package/assets/upload-solid.svg +0 -1
  111. package/assets/usa-graphic.svg +0 -3
  112. package/assets/world-graphic.svg +0 -3
  113. package/styles/v2/components/input.scss +0 -372
  114. package/styles/v2/layout/_header.scss +0 -13
  115. package/styles/v2/layout/_link.scss +0 -46
@@ -1,24 +1,28 @@
1
- .collapsed + .table-container {
1
+ .cove-data-table {
2
+ position: relative;
3
+ }
4
+
5
+ .collapsed + .cove-data-table__table-wrapper {
2
6
  border-bottom: none;
3
7
  }
4
8
 
5
- .table-container {
6
- overflow-x: auto;
9
+ .cove-data-table__table-wrapper {
7
10
  border-right: 1px solid $lightGray;
8
11
  border-left: 1px solid $lightGray;
9
12
  border-bottom: 1px solid $lightGray;
13
+ overflow-x: auto;
10
14
  }
11
15
 
12
- div.data-table-heading {
13
- background: rgba(0, 0, 0, 0.05);
14
- padding: .5em .7em;
15
- border: $lightGray 1px solid;
16
- border-bottom: 0;
17
- cursor: pointer;
18
- background-image: url(~@cdc/core/assets/minus.svg);
16
+ .cove-data-table__table-heading {
17
+ padding: 0.5em 0.7em;
18
+ //TODO find fix
19
+ //background-image: url(~@cdc/core/assets/icon-minus.svg);
19
20
  background-size: 15px 15px; // Need to define both for IE11
20
21
  background-position: right .7em center;
21
22
  background-repeat: no-repeat;
23
+ border: $lightGray 1px solid;
24
+ border-bottom: 0;
25
+ cursor: pointer;
22
26
 
23
27
  &:focus {
24
28
  z-index: 2;
@@ -26,20 +30,17 @@ div.data-table-heading {
26
30
  }
27
31
 
28
32
  &.collapsed {
29
- background-image: url(~@cdc/core/assets/plus.svg);
30
- background-size: 15px 15px; // Need to define both for IE11
31
- background-position: right .7em center;
32
- background-repeat: no-repeat;
33
+ //TODO find fix
34
+ //background-image: url(~@cdc/core/core/assets/icon-plus.svg);
33
35
  border-bottom: $lightGray 1px solid;
34
36
  }
35
37
  }
36
38
 
37
- table.data-table {
39
+ .cove-data-table__table {
38
40
  width: 100%;
39
41
  background: #fff;
40
42
  position: relative;
41
43
  border: none;
42
- overflow-x: auto;
43
44
  border-collapse: collapse;
44
45
  overflow: auto;
45
46
  appearance: none;
@@ -48,32 +49,14 @@ table.data-table {
48
49
  box-sizing: border-box
49
50
  }
50
51
 
51
- thead {
52
- user-select: none;
53
- -moz-user-select: none;
54
- user-select: none;
55
-
56
- tr {
57
- background: none;
58
- }
59
- }
60
-
61
52
  thead {
62
53
  color: #fff;
63
54
  background-color: $mediumGray;
64
-
65
- .resizer {
66
- cursor: e-resize;
67
- width: 10px;
68
- position: absolute;
69
- top: 0;
70
- bottom: 0;
71
- right: 0;
72
- touch-action: none;
73
- }
55
+ user-select: none;
74
56
 
75
57
  tr {
76
58
  text-align: left;
59
+ background: none;
77
60
  }
78
61
 
79
62
  th,
@@ -90,23 +73,6 @@ table.data-table {
90
73
  }
91
74
  }
92
75
 
93
- th.sort {
94
- background-color: darken($mediumGray, 10%);
95
- background-repeat: no-repeat;
96
- background-position: right .5em center;
97
- background-size: 10px 5px;
98
- }
99
-
100
- th.sort-asc,
101
- td.sort-asc {
102
- background-image: url(~@cdc/core/assets/asc.svg);
103
- }
104
-
105
- th.sort-desc,
106
- td.sort-desc {
107
- background-image: url(~@cdc/core/assets/desc.svg);
108
- }
109
-
110
76
  th:last-child,
111
77
  td:last-child {
112
78
  border-right: 0
@@ -124,16 +90,30 @@ table.data-table {
124
90
  }
125
91
 
126
92
  tr {
127
- border-bottom: solid 1px #E5E5E5;
93
+ border-bottom: solid 1px #e5e5e5;
128
94
  min-width: 100%; // Needed to fill content up
95
+
129
96
  &:last-child {
130
97
  border-bottom: 0
131
98
  }
132
99
  }
133
100
 
134
101
  td {
102
+ position: relative;
135
103
  padding: .3em .7em;
136
104
  border-right: 1px solid rgba(0, 0, 0, 0.1);
105
+
106
+ a {
107
+ padding: .3em .7em;
108
+ position: absolute;
109
+ top: 0;
110
+ bottom: 0;
111
+ right: 0;
112
+ left: 0;
113
+ display: block;
114
+ color: inherit;
115
+ text-decoration: none;
116
+ }
137
117
  }
138
118
 
139
119
  th,
@@ -151,23 +131,7 @@ table.data-table {
151
131
  }
152
132
  }
153
133
 
154
- td {
155
- position: relative;
156
- }
157
-
158
- td a {
159
- padding: .3em .7em;
160
- position: absolute;
161
- top: 0;
162
- bottom: 0;
163
- right: 0;
164
- left: 0;
165
- display: block;
166
- color: inherit;
167
- text-decoration: none;
168
- }
169
-
170
- td span.table-link {
134
+ .table-link {
171
135
  text-decoration: underline;
172
136
  cursor: pointer;
173
137
  color: #075290;
@@ -178,101 +142,58 @@ table.data-table {
178
142
  margin-left: 5px;
179
143
  }
180
144
  }
181
- }
182
-
183
- .no-data {
184
- position: relative;
185
-
186
- .no-data-message {
187
- @include emptyState;
188
145
 
189
- h3 {
190
- font-size: 1.3rem;
191
- font-weight: 600;
192
- margin-bottom: .3rem;
193
- }
146
+ .sort {
147
+ background-color: darken($mediumGray, 10%);
148
+ background-repeat: no-repeat;
149
+ background-position: right .5em center;
150
+ background-size: 10px 5px;
194
151
  }
195
152
 
196
- tr:hover {
197
- background: #fff;
153
+ .sort-asc {
154
+ //TODO find fix
155
+ //background-image: url(~@cdc/core/assets/icon-caret-filled-up.svg);
198
156
  }
199
157
 
200
- th, td {
201
- width: 50%;
158
+ .sort-desc {
159
+ //TODO find fix
160
+ //background-image: url(~@cdc/core/assets/icon-caret-filled-down.svg);
161
+ }
202
162
 
203
- &::before {
204
- content: "\00a0";
205
- }
163
+ .resizer {
164
+ cursor: e-resize;
165
+ width: 10px;
166
+ position: absolute;
167
+ top: 0;
168
+ bottom: 0;
169
+ right: 0;
170
+ touch-action: none;
206
171
  }
207
172
  }
208
173
 
209
- .data-table-pagination {
210
- margin: 1rem 0;
211
- display: flex;
212
- align-items: center;
213
-
214
- ul {
215
- list-style: none;
216
- margin: 0 1rem 0 0;
217
- display: flex;
218
-
219
- li + li {
220
- margin-left: .3rem;
221
- }
222
-
223
- button {
224
- background: $mediumGray;
225
- padding: .6rem .8rem;
174
+ .cove-data-table__footer {
175
+ margin-top: 1rem;
176
+ }
226
177
 
227
- &:hover {
228
- background: lighten($mediumGray, 5%);
229
- }
230
- }
178
+ .cove-data-table__pagination {
179
+ }
231
180
 
232
- button.btn-next {
233
- &::before {
234
- content: " ";
235
- background-image: url(~@cdc/core/assets/asc.svg);
236
- background-size: 10px 5px;
237
- width: 10px;
238
- height: 5px;
239
- display: block;
240
- transform: rotate(90deg);
241
- }
242
- }
181
+ .cove-data-table__pagination--index {
182
+ }
243
183
 
244
- button.btn-prev {
245
- &::before {
246
- content: " ";
247
- background-image: url(~@cdc/core/assets/asc.svg);
248
- background-size: 10px 5px;
249
- width: 10px;
250
- height: 5px;
251
- display: block;
252
- transform: rotate(-90deg);
253
- }
254
- }
184
+ .cove-data-table__no-data {
185
+ position: relative;
186
+ user-select: none;
255
187
 
256
- button[disabled] {
257
- background: $mediumGray;
258
- opacity: .3;
259
- cursor: default;
188
+ th, td {
189
+ width: 50%;
260
190
 
261
- &:hover {
262
- background: $mediumGray;
263
- }
191
+ &::before {
192
+ content: "\00a0";
264
193
  }
265
194
  }
266
195
  }
267
196
 
268
- .btn-download {
269
- color: #fff;
270
- float: right;
271
- text-decoration: none;
272
- transition: .3s all;
273
- margin: 1em 0;
274
-
275
- &:hover {
276
- transition: .3s all;
277
- }
197
+ .cove-data-table__no-data--message {
198
+ @include emptyState;
278
199
  }
@@ -1,4 +1,5 @@
1
- .waiting {
1
+ //TODO: Replace any '.waiting' classes with below
2
+ .waiting-splash {
2
3
  @include emptyState;
3
4
  padding-top: 0;
4
5
 
@@ -25,7 +26,8 @@
25
26
  }
26
27
  }
27
28
 
28
- .loading {
29
+ //TODO: Replace any '.loading' classes with below
30
+ .loading-splash {
29
31
  position: absolute;
30
32
  top: 0;
31
33
  right: 0;
@@ -1,7 +1,5 @@
1
1
  @import "alert";
2
2
  @import "component";
3
3
  @import "data-table";
4
- @import "header";
5
- @import "link";
6
4
  @import "progression";
7
5
  @import "tooltip";
@@ -1,15 +1,65 @@
1
1
  @import 'utils';
2
- @import 'base';
3
2
  @import 'themes';
4
3
 
5
4
  .cove {
5
+ @import 'base';
6
6
  color: $baseColor;
7
7
  font-size: 16px;
8
8
  line-height: 1.4;
9
9
 
10
+ :focus,
11
+ [tabindex]:focus-visible {
12
+ outline: 2px solid rgba(255,102,1,.9);
13
+ }
14
+
15
+ margin: 0;
16
+ font: 1em/1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue, Fira Sans, sans-serif;
17
+ font-weight: 400;
18
+ font-style: normal;
19
+ text-rendering: optimizeLegibility;
20
+ -webkit-font-smoothing: antialiased;
21
+ color: #111;
22
+
23
+ strong {
24
+ font-weight: 600;
25
+ }
26
+
27
+ .subtext {
28
+ margin-top: 1em;
29
+ }
30
+
31
+ .warning {
32
+ padding: .75em 1em;
33
+ margin: 1em 0;
34
+ background-color: #FFD2D2;
35
+ color: #D8000C;
36
+ font-size: .8em;
37
+ border: #D8000C 1px solid;
38
+ border-radius: .4em;
39
+
40
+ strong {
41
+ font-weight: 600;
42
+ display: block;
43
+ }
44
+ }
45
+
46
+ .sr-only,
47
+ .sr-only-focusable:not(:focus) {
48
+ position: absolute !important;
49
+ width: 1px !important;
50
+ height: 1px !important;
51
+ padding: 0 !important;
52
+ margin: -1px !important;
53
+ overflow: hidden !important;
54
+ clip: rect(0, 0, 0, 0) !important;
55
+ white-space: nowrap !important;
56
+ border: 0 !important;
57
+ display: flex;
58
+ }
59
+
10
60
  @import 'layout';
11
61
 
12
62
  @include breakpointClass(md) {
13
63
  font-size: 16px;
14
64
  }
15
- }
65
+ }
@@ -4,7 +4,7 @@ $theme: (
4
4
  'amber': ('#fbab18', '#ffd54f', '#ffecb3', '#fff7e1'),
5
5
  'blue': ('#005eaa', '#88c3ea', '#c0e9ff', '#edf9ff'),
6
6
  'brown': ('#705043', '#ad907b', '#d7ccc8', '#f2ebe8'),
7
- 'cyan': ('#006778', '#65b0bd', '#cce5e9', '#ebf5f6'),
7
+ 'cyan': ('#007B91', '#65b0bd', '#cce5e9', '#ebf5f6'),
8
8
  'green': ('#4b830d', '#84bc49', '#dcedc8', '#f1f8e9'),
9
9
  'indigo': ('#26418f', '#92a6dd', '#dee8ff', '#f2f6ff'),
10
10
  'orange': ('#bb4d00', '#ffad42', '#ffe97d', '#fff4cf'),
@@ -44,6 +44,36 @@ $theme: (
44
44
  border-top: 1px solid string.unquote(nth($theme-colors, 1));
45
45
  }
46
46
 
47
+ .cove-component__inner:not(.component--has-title) .cove-component__content {
48
+ border-top: 1px solid #ccc;
49
+ }
50
+
51
+ .cove-component__header {
52
+ border-color: string.unquote(nth($theme-colors, 2));
53
+ }
54
+
55
+ .cove-component__content.component--has-accent {
56
+ border-left: .5rem solid string.unquote(nth($theme-colors, 1)) !important;
57
+ }
58
+
59
+ .cove-component__content.component--has-background:not(.component--hideBackgroundColor) {
60
+ background: string.unquote(nth($theme-colors, 3));
61
+ }
62
+ }
63
+
64
+ &.theme-#{$theme-name} {
65
+
66
+ .cove-component__content:not(.no-borders).component--has-borderColorTheme {
67
+ border-left: 1px solid string.unquote(nth($theme-colors, 1));
68
+ border-right: 1px solid string.unquote(nth($theme-colors, 1));
69
+ border-bottom: 1px solid string.unquote(nth($theme-colors, 1));
70
+ }
71
+
72
+ // when component doesn't have a title add border top
73
+ .cove-component__inner:not(.component--has-title) .cove-component__content.component--has-borderColorTheme:not(.no-borders) {
74
+ border-top: 1px solid string.unquote(nth($theme-colors, 1));
75
+ }
76
+
47
77
  // should probably be in color definitions but logically makes sense here.
48
78
  .cove-component__inner:not(.component--has-title) .cove-component__content {
49
79
  border-top: 1px solid #ccc;
@@ -0,0 +1,17 @@
1
+ // Content Align Classes
2
+ @mixin align($propNames, $className, $valueName) {
3
+ @each $propName in $propNames {
4
+ #{'.align-' + $propName + '-' + $className} {
5
+ #{'align-' + $propName}: #{$valueName} !important;
6
+ }
7
+ }
8
+ }
9
+
10
+ @include align(('content', 'items', 'self'), 'start', 'flex-start');
11
+ @include align(('content', 'items', 'self'), 'end', 'flex-end');
12
+ @include align(('content', 'items', 'self'), 'center', 'center');
13
+ @include align(('content', 'items', 'self'), 'stretch', 'stretch');
14
+
15
+ @include align(('items', 'self'), 'baseline', 'baseline');
16
+ @include align('content', 'around', 'space-around');
17
+ @include align('content', 'between', 'space-between');
@@ -0,0 +1,18 @@
1
+ // Breakpoint Classes
2
+ @mixin breakpoint($class) {
3
+ @if $class == xs {@media (max-width: 767.98px) { @content; }}
4
+ @else if $class == sm {@media (min-width: 768px) { @content; }}
5
+ @else if $class == md {@media (min-width: 960px) { @content; }}
6
+ @else if $class == lg {@media (min-width: 1170px) { @content; }}
7
+ @else if $class == xl {@media (min-width: 1280px) { @content; }}
8
+ @else {@warn "Breakpoint mixin supports: xs, sm, md, lg, xl";}
9
+ }
10
+
11
+ @mixin breakpointClass($class) {
12
+ @if $class == xs { &.xs, &.xxs {@content;} }
13
+ @else if $class == sm { &.sm, &.md, &.lg, &.xl {@content;} }
14
+ @else if $class == md { &.md, &.lg, &.xl {@content;} }
15
+ @else if $class == lg { &.lg, &.xl {@content;} }
16
+ @else if $class == xl { &.xl {@content;} }
17
+ @else {@warn "Breakpoint Class mixin supports: xs, sm, md, lg, xl";}
18
+ }
@@ -0,0 +1,47 @@
1
+ $grid-gap-offset: 8;
2
+ $grid-gap-max: 64;
3
+ $grid-columns: 12;
4
+
5
+ @mixin create-grid-selectors($breakpoint: null) {
6
+ $infix: if($breakpoint == null, '', '-#{$breakpoint}');
7
+
8
+ @for $i from 1 through $grid-columns {
9
+ .col#{$infix}-#{$i} {
10
+ grid-column-end: span $i;
11
+ }
12
+ .col-offset#{$infix}-#{$i} {
13
+ grid-column-start: $i + 1;
14
+ }
15
+ .row#{$infix}-#{$i} {
16
+ grid-row-end: span $i;
17
+ }
18
+ .row-offset#{$infix}-#{$i} {
19
+ grid-row-start: $i + 1;
20
+ }
21
+ }
22
+ }
23
+
24
+ @mixin grid-gaps() {
25
+ $i: 0;
26
+ @while ($i * $grid-gap-offset) <= $grid-gap-max {
27
+ .grid-gap-#{$i} {
28
+ grid-gap: #{($i * $grid-gap-offset) + 'px'};
29
+ gap: #{($i * $grid-gap-offset) + 'px'};
30
+ }
31
+ $i: $i + 1;
32
+ }
33
+ }
34
+
35
+ .grid {
36
+ display: grid;
37
+ grid-template-columns: repeat($grid-columns, 1fr);
38
+ }
39
+
40
+ @include create-grid-selectors;
41
+ @include grid-gaps;
42
+
43
+ @each $breakpoint, $width in $cove-breakpoints {
44
+ @media (min-width: $width) {
45
+ @include create-grid-selectors($breakpoint);
46
+ }
47
+ }
@@ -11,19 +11,3 @@
11
11
  justify-content: center;
12
12
  z-index: 7;
13
13
  }
14
-
15
- @mixin breakpoint($class) {
16
- @if $class == xs {@media (max-width: 767px) { @content; }}
17
- @else if $class == sm {@media (min-width: 768px) { @content; }}
18
- @else if $class == md {@media (min-width: 960px) { @content; }}
19
- @else if $class == lg {@media (min-width: 1300px) { @content; }}
20
- @else {@warn "Breakpoint mixin supports: xs, sm, md, lg";}
21
- }
22
-
23
- @mixin breakpointClass($class) {
24
- @if $class == xs { &.xs, &.xxs {@content;} }
25
- @else if $class == sm { &.sm, &.md, &.lg {@content;} }
26
- @else if $class == md { &.md, &.lg {@content;} }
27
- @else if $class == lg { &.lg {@content;} }
28
- @else {@warn "Breakpoint Class mixin supports: xs, sm, md, lg";}
29
- }
@@ -0,0 +1,31 @@
1
+ // Content Spacer Classes
2
+ $cove-spacers-offset: 8;
3
+ $cove-spacers-max: 64;
4
+
5
+ @mixin spacers($className, $styleNameCollection) {
6
+ $i: 0;
7
+ @while ($i * $cove-spacers-offset) <= $cove-spacers-max {
8
+ #{$className + $i} {
9
+ @each $styleName in $styleNameCollection {
10
+ #{$styleName}: #{($i * $cove-spacers-offset) + 'px'} !important;
11
+ }
12
+ }
13
+ $i: $i + 1;
14
+ }
15
+ }
16
+
17
+ @include spacers('.p-', 'padding');
18
+ @include spacers('.pt-', 'padding-top');
19
+ @include spacers('.pr-', 'padding-right');
20
+ @include spacers('.pb-', 'padding-bottom');
21
+ @include spacers('.pl-', 'padding-left');
22
+ @include spacers('.px-', ('padding-left', 'padding-right'));
23
+ @include spacers('.py-', ('padding-top', 'padding-bottom'));
24
+
25
+ @include spacers('.m-', 'margin');
26
+ @include spacers('.mt-', 'margin-top');
27
+ @include spacers('.mr-', 'margin-right');
28
+ @include spacers('.mb-', 'margin-bottom');
29
+ @include spacers('.ml-', 'margin-left');
30
+ @include spacers('.mx-', ('margin-left', 'margin-right'));
31
+ @include spacers('.mx-', ('margin-top', 'margin-bottom'));
@@ -1,2 +1,9 @@
1
+ $cove-breakpoints: (
2
+ xs: 480px,
3
+ sm: 768px,
4
+ md: 960px,
5
+ lg: 1170px,
6
+ xl: 1280px
7
+ );
1
8
  $editorWidth: 350px;
2
9
  $transition-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
@@ -1,4 +1,9 @@
1
+ @import "variables";
2
+ @import "mixins";
3
+
4
+ @import "align";
1
5
  @import "animations";
6
+ @import "breakpoints";
2
7
  @import "functions";
3
- @import "mixins";
4
- @import "variables";
8
+ @import "grid";
9
+ @import "spacers";
package/assets/asc.svg DELETED
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 10 5" xmlns="http://www.w3.org/2000/svg"><path d="M0 5l5-5 5 5z" fill="#FFF" fill-rule="nonzero"/></svg>
@@ -1 +0,0 @@
1
- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chart-bar" class="svg-inline--fa fa-chart-bar fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"></path></svg>
@@ -1 +0,0 @@
1
- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path></svg>
@@ -1 +0,0 @@
1
- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chart-pie" class="svg-inline--fa fa-chart-pie fa-w-17" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 544 512"><path fill="currentColor" d="M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"></path></svg>
package/assets/check.svg DELETED
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
2
- <path fill="currentColor" d="M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"/>
3
- </svg>
@@ -1,11 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
2
- <svg x="0" y="0" width="512" height="512" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
3
- <path fill="currentColor" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path>
4
- </svg>
5
- <svg x="512" y="0" width="512" height="512" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chart-pie" class="svg-inline--fa fa-chart-pie fa-w-17" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 544 512">
6
- <path fill="currentColor" d="M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"></path>
7
- </svg>
8
- <svg x="0" y="512" width="1024" height="512" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 252 137">
9
- <path fill="currentColor" d="M10.834,5.084 L11.167,7.251 L12.834,10.751 L12,14.418 L10.167,12.085 L9,9.418 L6.334,8.918 L2.167,8.418 L1,8.418 L1.667,10.751 L4,14.084 L4,17.417 L4.667,21.084 L7.667,21.417 L8.834,23.084 L5.167,22.584 L4,23.417 L4.5,26.917 L3.834,30.75 L4,35.25 L2.834,38.25 L1.5,42.583 L2.5,45.583 L3.167,49.416 L3.667,52.249 L3,56.082 L3.5,58.749 L4.667,61.416 L5.667,64.749 L6.5,66.916 L10,69.749 L11.667,69.582 L14,69.915 L11.5,70.582 L12.167,71.749 L10,72.082 L12,74.249 L14,76.416 L13.334,78.249 L16,82.082 L18.834,84.415 L19.167,87.248 L21.5,88.415 L24.667,89.415 L27.167,91.582 L29.334,92.915 L31.667,94.748 L33,95.748 L34.5,99.081 L43,98.914 L59.667,104.747 L73.5,104.747 L73.167,103.414 L79.834,103.414 L82.5,104.914 L84,106.414 L87.834,109.081 L89.167,113.914 L93,115.914 L95.334,116.914 L98.5,113.081 L102.667,113.581 L104.334,114.914 L108.834,122.247 L110.334,124.081 L111.5,128.247 L120.334,131.747 L120,128.747 L119.667,124.581 L122.5,121.247 L122,120.247 L124.834,117.914 L126.334,118.747 L128.834,115.914 L130.334,113.914 L132.5,113.914 L137.334,112.914 L140.834,114.414 L143.5,114.414 L144.5,113.247 L145.667,114.081 L145.834,115.581 L149.334,116.747 L152.667,116.247 L155.5,116.414 L153.167,114.581 L153,113.581 L154.5,112.747 L154.334,111.914 L152,111.914 L149.334,112.247 L151,110.747 L151.834,109.747 L152.667,110.581 L157.5,109.914 L158.167,110.747 L161.5,110.747 L163.334,110.247 L166,110.081 L168.5,111.081 L170,110.914 L171.5,113.081 L174.5,113.247 L176.167,111.914 L177.834,111.914 L181.167,114.747 L183,116.747 L183.5,119.414 L183.167,122.747 L184.334,126.247 L187.5,130.247 L189.334,134.081 L190,135.581 L193.334,134.914 L194.167,131.247 L194.167,125.747 L192.5,121.247 L192,120.081 L191.667,116.747 L188.834,113.414 L188.334,109.414 L188.5,106.081 L189.834,102.414 L192.334,100.414 L192.167,98.914 L195.167,98.414 L199.5,93.581 L201.5,91.914 L203.667,92.247 L205.667,88.414 L208.5,86.914 C208.5,86.914 210.668,87.247 210.834,86.414 C211,85.581 213.167,81.581 213.167,81.581 L210.834,80.248 L212.167,79.081 L212.5,78.248 L211.167,74.915 L209.834,73.415 L211.5,71.582 L210.167,69.915 L209.834,66.582 L209.667,63.749 L210.667,62.916 L211.334,67.083 L211.834,69.083 L213,70.916 L212.667,73.916 L214.5,70.249 L215.667,67.416 L215.834,65.749 L214.167,63.749 L214,62.916 L214.5,62.416 L217.167,64.083 L218,62.083 L219.834,60.25 L220.167,58.25 L219.834,55.917 L220,54.75 L220.334,53.083 L221.667,54.916 L222.334,54.916 L224.334,54.583 L226.334,54.416 L229,53.583 L228.5,52.583 L225.834,52.75 L223.334,53.417 L222.167,54.084 L222,52.917 L222.834,51.917 L225,51.417 L227.667,50.917 L229.5,50.417 L231,49.417 L234.5,50.25 C234.5,50.25 236,51.083 236.167,50.583 C236.334,50.083 236.834,48.75 236.834,48.75 L235.667,47.417 L235.167,45.417 L235.5,42.084 L235.834,39.417 L237.334,37.417 L237.667,36.584 L238.667,37.084 L241.834,33.584 L243,33.584 L245.667,33.251 L246.5,31.584 L248.834,31.584 L250.834,29.917 L250.084,29 L249.167,26.75 L248.167,26 L248.584,20.417 L248.084,15.334 L245.084,14.417 L242.5,15.334 L241.084,15.167 L235.334,28.584 L232.667,28.751 L231.5,29.751 L217.334,29.668 L213.834,32.918 L211.667,34.251 L210.667,37.084 L210.167,38.584 L207.667,40.251 L205.167,40.251 L203.334,39.418 L201,39.751 L198,40.751 L198.167,42.251 L198,44.918 L196.5,46.251 L193.5,46.918 L188.834,49.251 L185.334,50.418 L182,50.585 L180,49.085 L181,47.252 L181.5,46.752 L182.167,44.919 L183.417,44.169 L185,41.419 L183.334,39.252 L183,35.752 L180.834,35.085 L178,37.085 L179,34.752 L180.667,32.419 L180,30.252 L179.5,27.752 L176.834,26.752 L174.5,24.752 L171.667,25.919 L171.834,28.086 L170.167,30.086 L168.834,29.419 L166.334,32.252 L166.334,35.585 L166.667,38.918 L168.167,41.251 L168,46.251 L164.834,49.251 L162.5,49.418 L161.334,45.918 L160.167,43.418 L160.667,40.085 L160.167,36.752 L161.334,34.585 L162,32.418 L163.167,28.751 L160.5,31.751 L162,26.584 L164.334,24.584 L167.167,24.417 L169.334,23.417 L172.834,23.417 L175.667,23.417 L177.5,22.917 L179.667,23.25 L180.667,24.917 L184.834,26.417 L185.667,24.084 L182.834,24.417 L181,24.25 L178.334,22.25 L176.667,21.25 L174.75,19.833 L172.834,20.416 L171,19.083 L166.667,19.25 L164.334,20.75 L162.5,19.583 L160.334,18.25 L157.167,18.083 L160.334,13.583 L156.667,15.25 L153.667,17.583 L150.667,19.25 L148,19.583 L147.667,17.916 L142.167,19.083 L146.792,15.041 L150.042,12.666 L154.084,9.499 L152.417,9.249 L146.917,9.416 L144.417,8.916 L142.167,8.541 L139.917,6.916 L137.417,7.083 L132.667,5.916 L131.417,4.416 L130.75,2.083 L129.584,1 L129.667,2.25 L128.5,4.083 L11.5,4.166 L10.834,5.084 L10.834,5.084 Z"/>
10
- </svg>
11
- </svg>
@@ -1,3 +0,0 @@
1
- <svg viewBox="0 0 308 151">
2
- <path fill="currentColor" d="M293,0 C301.284271,-3.29815278e-15 308,6.71572875 308,15 L308,136 C308,144.284271 301.284271,151 293,151 L15,151 C6.71572875,151 1.01453063e-15,144.284271 0,136 L0,15 C-1.01453063e-15,6.71572875 6.71572875,1.52179594e-15 15,0 L293,0 Z M62,32 C37.699471,32 18,51.699471 18,76 C18,100.300529 37.699471,120 62,120 C86.300529,120 106,100.300529 106,76 C106,51.699471 86.300529,32 62,32 Z M287,102 L124,102 C122.343146,102 121,103.343146 121,105 L121,105 L121,115 C121,116.656854 122.343146,118 124,118 L124,118 L287,118 C288.656854,118 290,116.656854 290,115 L290,115 L290,105 C290,103.343146 288.656854,102 287,102 L287,102 Z M287,68 L124,68 C122.343146,68 121,69.3431458 121,71 L121,71 L121,81 C121,82.6568542 122.343146,84 124,84 L124,84 L287,84 C288.656854,84 290,82.6568542 290,81 L290,81 L290,71 C290,69.3431458 288.656854,68 287,68 L287,68 Z M287,34 L124,34 C122.343146,34 121,35.3431458 121,37 L121,37 L121,47 C121,48.6568542 122.343146,50 124,50 L124,50 L287,50 C288.656854,50 290,48.6568542 290,47 L290,47 L290,37 C290,35.3431458 288.656854,34 287,34 L287,34 Z"/>
3
- </svg>
package/assets/desc.svg DELETED
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 10 5" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l5 5 5-5z" fill="#FFF" fill-rule="nonzero"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"/></svg>