@digigov/css 1.0.0-6b93ebf2 → 1.0.0-871b6be5
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/defaultTheme/footer.json +1 -1
- package/defaultTheme/typography.json +22 -2
- package/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +4 -4
- package/src/base/index.css +3 -0
- package/src/components/accordion.css +50 -3
- package/src/components/admin-header.css +1 -1
- package/src/components/admin-layout.css +6 -0
- package/src/components/button.css +19 -1
- package/src/components/chip.css +11 -6
- package/src/components/drawer.css +0 -21
- package/src/components/dropdown.css +10 -11
- package/src/components/filter.css +10 -31
- package/src/components/footer.css +15 -15
- package/src/components/form.css +12 -13
- package/src/components/header.css +43 -7
- package/src/components/hidden.css +3 -0
- package/src/components/index.css +1 -0
- package/src/components/kitchensink.css +2 -2
- package/src/components/layout.css +3 -3
- package/src/components/modal.css +0 -3
- package/src/components/nav.css +63 -124
- package/src/components/pagination.css +1 -1
- package/src/components/phase-banner.css +6 -1
- package/src/components/stack.css +66 -0
- package/src/components/stepnav.css +10 -4
- package/src/components/table.css +4 -7
- package/src/components/task-list.css +3 -4
- package/src/components/typography.css +18 -2
- package/src/pages/admin-filtering-data.js +1 -1
- package/src/utilities/index.css +21 -21
- package/src/utilities/utilities.css +23 -22
- package/tailwind.config.js +2 -0
- package/themes.plugin.js +17 -17
|
@@ -396,27 +396,6 @@
|
|
|
396
396
|
.govgr-grid-inline {
|
|
397
397
|
@apply inline-grid;
|
|
398
398
|
}
|
|
399
|
-
.govgr-grid__gap-1 {
|
|
400
|
-
@apply gap-1;
|
|
401
|
-
}
|
|
402
|
-
.govgr-grid__gap-2 {
|
|
403
|
-
@apply gap-2;
|
|
404
|
-
}
|
|
405
|
-
.govgr-grid__gap-4 {
|
|
406
|
-
@apply gap-4;
|
|
407
|
-
}
|
|
408
|
-
.govgr-grid__gap-6 {
|
|
409
|
-
@apply gap-6;
|
|
410
|
-
}
|
|
411
|
-
.govgr-grid__gap-8 {
|
|
412
|
-
@apply gap-8;
|
|
413
|
-
}
|
|
414
|
-
.govgr-grid__gap-10 {
|
|
415
|
-
@apply gap-10;
|
|
416
|
-
}
|
|
417
|
-
.govgr-grid__gap-12 {
|
|
418
|
-
@apply gap-12;
|
|
419
|
-
}
|
|
420
399
|
.govgr-grid__col-auto {
|
|
421
400
|
@apply col-auto;
|
|
422
401
|
}
|
|
@@ -465,4 +444,26 @@
|
|
|
465
444
|
.govgr-print-visible-inline {
|
|
466
445
|
@apply print:inline !important;
|
|
467
446
|
}
|
|
468
|
-
|
|
447
|
+
.govgr-gap-1 {
|
|
448
|
+
@apply gap-1;
|
|
449
|
+
}
|
|
450
|
+
.govgr-gap-2 {
|
|
451
|
+
@apply gap-2;
|
|
452
|
+
}
|
|
453
|
+
.govgr-gap-4 {
|
|
454
|
+
@apply gap-4;
|
|
455
|
+
}
|
|
456
|
+
.govgr-gap-6 {
|
|
457
|
+
@apply gap-6;
|
|
458
|
+
}
|
|
459
|
+
.govgr-gap-8 {
|
|
460
|
+
@apply gap-8;
|
|
461
|
+
}
|
|
462
|
+
.govgr-gap-10 {
|
|
463
|
+
@apply gap-10;
|
|
464
|
+
}
|
|
465
|
+
.govgr-gap-12 {
|
|
466
|
+
@apply gap-12;
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
|
package/tailwind.config.js
CHANGED
package/themes.plugin.js
CHANGED
|
@@ -6,7 +6,7 @@ const postcssJs = require("postcss-js");
|
|
|
6
6
|
|
|
7
7
|
const prefix = "govgr";
|
|
8
8
|
const mediaQueriesMapping = {
|
|
9
|
-
xs: "",
|
|
9
|
+
xs: "@media (min-width: 0px)",
|
|
10
10
|
sm: "@media (min-width: 640px)",
|
|
11
11
|
md: "@media (min-width: 768px)",
|
|
12
12
|
lg: "@media (min-width: 1024px)",
|
|
@@ -28,21 +28,21 @@ function addThemes({ addBase, addComponents, theme, config }) {
|
|
|
28
28
|
}
|
|
29
29
|
hasRun = true;
|
|
30
30
|
function extractColorVars(colorObj, colorGroup = "") {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
return Object.keys(colorObj).reduce((vars, colorKey) => {
|
|
32
|
+
const value = colorObj[colorKey];
|
|
33
|
+
const colorName =
|
|
34
|
+
colorKey == "default"
|
|
35
|
+
? `--color${colorGroup}`
|
|
36
|
+
: `--color${colorGroup}-${colorKey}`;
|
|
37
|
+
const newVars =
|
|
38
|
+
typeof value === "string"
|
|
39
|
+
? {
|
|
40
|
+
[colorName]: value,
|
|
41
|
+
[`${colorName}-rgb`]: hexToRGB(value),
|
|
42
|
+
}
|
|
43
|
+
: extractColorVars(value, `-${colorKey}`);
|
|
44
|
+
return { ...vars, ...newVars };
|
|
45
|
+
}, {});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
function extractMediaQueriesFromComponentVars(componentObj, customTheme) {
|
|
@@ -129,7 +129,7 @@ function addThemes({ addBase, addComponents, theme, config }) {
|
|
|
129
129
|
extractVars(customThemeObject);
|
|
130
130
|
} else {
|
|
131
131
|
base[
|
|
132
|
-
`:root.${customTheme},.${customTheme} *::before,.${customTheme} *::after`
|
|
132
|
+
`:root.${customTheme},.${customTheme},.${customTheme} *::before,.${customTheme} *::after`
|
|
133
133
|
] = extractVars(customThemeObject);
|
|
134
134
|
}
|
|
135
135
|
|