@digigov/css 0.29.13 → 0.29.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/css",
3
- "version": "0.29.13",
3
+ "version": "0.29.15",
4
4
  "description": "Digigov CSS - Tailwind CSS Components",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -49,7 +49,7 @@
49
49
  "tailwindcss": "2.2.6",
50
50
  "nodemon": "2.0.7",
51
51
  "next": "10.0.9",
52
- "@digigov/postcss-banner": "0.3.19",
52
+ "@digigov/postcss-banner": "0.3.21",
53
53
  "rimraf": "3.0.2",
54
54
  "postcss-js": "4.0.0",
55
55
  "postcss-load-config": "3.1.4"
@@ -3,6 +3,8 @@ const tailwindConfig = require('../../tailwind.config.js');
3
3
  const themesPlugin = require('../../themes.plugin')
4
4
 
5
5
  tailwindConfig.themes.dark = require.resolve('../../../../themes/govgr-dark');
6
+ tailwindConfig.themes.light = require.resolve('../../../../themes/govgr-light');
7
+
6
8
  module.exports = {
7
9
  ...tailwindConfig,
8
10
  plugins: [
@@ -39,3 +39,4 @@
39
39
  @import "./task-list.css";
40
40
  @import "./stepnav.css";
41
41
  @import "./dev-theme.css";
42
+ @import "./kitchensink.css";
@@ -0,0 +1,67 @@
1
+ .govgr-kitchensink-all-components {
2
+ @apply flex flex-col flex-nowrap m-16;
3
+ }
4
+ .govgr-kitchensink-category {
5
+ @apply flex flex-nowrap gap-32 mb-16;
6
+ }
7
+ .govgr-kitchensink-category__heading {
8
+ @apply uppercase text-gray300;
9
+ }
10
+ .govgr-kitchensink-letter-content {
11
+ @apply flex flex-nowrap gap-16;
12
+ }
13
+ .govgr-kitchensink-content {
14
+ @apply max-w-2xl w-2xl;
15
+ }
16
+ .govgr-kitchensink-content-wide {
17
+ @apply max-w-4xl w-4xl;
18
+ }
19
+ .govgr-kitchensink-content__info {
20
+ @apply max-w-2xl;
21
+ }
22
+ .govgr-firma-tags {
23
+ @apply flex flex-nowrap gap-2 h-16;
24
+ }
25
+ .govgr-kitchensink-card {
26
+ border-style: dashed;
27
+ container-type: inline-size;
28
+
29
+ }
30
+
31
+ /* COMPONENTS */
32
+ .govgr-kitchensink-card .govgr-modal {
33
+ position: inherit;
34
+ }
35
+ .govgr-kitchensink-card .govgr-modal__body {
36
+ margin: 1rem;
37
+ }
38
+
39
+ .govgr-kitchensink-card .govgr-dropdown {
40
+ margin-bottom: 20rem;
41
+ }
42
+ .govgr-kitchensink-card .govgr-dropdown.govgr-dropdown--up {
43
+ margin-top: 20rem;
44
+ margin-bottom: 0rem;
45
+ }
46
+ .govgr-kitchensink-card .govgr-table__cell .govgr-dropdown {
47
+ margin: 0 !important;
48
+ }
49
+ .govgr-kitchensink-card .govgr-layout-wrapper__full-height {
50
+ min-height: inherit;
51
+ }
52
+ @container (min-width: 400px) {
53
+ .govgr-kitchensink-card .govgr-drawer {
54
+ min-height: inherit;
55
+ width: 80%;
56
+ box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
57
+ }
58
+ .govgr-kitchensink-card .govgr-drawer--closed {
59
+ @apply hidden;
60
+ }
61
+ .govgr-kitchensink-card .govgr-drawer__burger-icon {
62
+ @apply block;
63
+ }
64
+ .govgr-kitchensink-card .govgr-drawer__close-icon {
65
+ @apply block;
66
+ }
67
+ }
@@ -1,17 +1,17 @@
1
1
  .govgr-modal {
2
2
  @apply hidden justify-center items-center content-center text-left
3
- mb-7 text-base-content bg-opacity-50 bg-gray200
3
+ mb-7 text-base-content bg-opacity-50 bg-gray300
4
4
  fixed z-50 left-0 top-0 w-full h-full overflow-auto;
5
5
  }
6
6
  .govgr-modal__body {
7
7
  @apply w-full max-w-md md:max-w-lg lg:max-w-4xl
8
- h-fit md:h-auto mx-4 overflow-y-auto
8
+ h-fit md:h-auto overflow-y-auto
9
9
  bg-white
10
10
  border border-solid border-base200;
11
11
  max-height:95vh;
12
12
  }
13
13
  .govgr-modal__content {
14
- @apply grid gap-6 p-5;
14
+ @apply grid p-10 gap-6 px-6 py-2;
15
15
  }
16
16
  .govgr-modal__open {
17
17
  @apply flex;
@@ -21,6 +21,9 @@
21
21
  }
22
22
  .govgr-modal__text {
23
23
  @apply text-base lg:text-xl text-lg;
24
+ .govgr-field, .govgr-body {
25
+ @apply mb-0;
26
+ }
24
27
  }
25
28
  .govgr-modal__action {
26
29
  @apply flex flex-wrap items-center gap-4;
@@ -118,6 +118,8 @@ module.exports = {
118
118
  },
119
119
  width: {
120
120
  fit: "fit-content",
121
+ '2xl':'42rem' ,
122
+ '4xl':'56rem' ,
121
123
  },
122
124
  maxWidth: {
123
125
  fit: "fit-content",
package/themes.plugin.js CHANGED
@@ -36,10 +36,7 @@ function addThemes({ addBase, addComponents, theme,config }) {
36
36
  { }
37
37
  );
38
38
  }
39
- const base = {
40
- }
41
-
42
-
39
+ const base = {}
43
40
  const themes = config("themes");
44
41
  const defaultTheme = config('defaultTheme');
45
42
  for (const customTheme in themes) {
@@ -47,18 +44,18 @@ function addThemes({ addBase, addComponents, theme,config }) {
47
44
  const customThemeObject = require(themes[customTheme]);
48
45
  if (customThemeObject.overrides) {
49
46
  if(config('mode') === 'jit'){
50
- console.log('Loading theme css from source!')
47
+ console.log('Loading theme css from source...')
51
48
  const css = fs.readFileSync(path.resolve(path.dirname(themes[customTheme]),'overrides/index.css')).toString();
52
49
  const ctx = { };
53
50
  const {plugins, options} = postcssrc.sync(ctx)
54
51
  const result = postcss(plugins)
55
52
  .process(css, options).root;
56
53
  const cssJs = postcssJs.objectify(result);
57
- addComponents({[`.${customTheme}`]: cssJs});
54
+ base[`.${customTheme}`]= cssJs;
58
55
  }else{
59
- customThemeObject.overrides.forEach(async(override) => {
56
+ customThemeObject.overrides.forEach((override) => {
60
57
  const cssJs = require(path.resolve(path.dirname(themes[customTheme]),override));
61
- addComponents({[`.${customTheme}`]: cssJs});
58
+ base[`.${customTheme}`] = cssJs;
62
59
  });
63
60
  }
64
61
  }