@simple-reporting/base 1.0.23 → 1.0.24

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 (39) hide show
  1. package/dev/index.html +1 -1
  2. package/dev/livingdocs.config.json +6 -6
  3. package/dev/package.json +1 -1
  4. package/dev/src/Dialog.vue +3 -0
  5. package/package.json +2 -1
  6. package/scripts/beaver.js +14 -18
  7. package/scripts/build/variables.d.ts +6 -0
  8. package/scripts/build/variables.js +6 -0
  9. package/scripts/build.js +56 -16
  10. package/scripts/dotenv.d.ts +1 -0
  11. package/scripts/dotenv.js +8 -0
  12. package/scripts/init.js +1 -1
  13. package/scripts/ldd/mapLdd.js +2 -2
  14. package/scripts/utils.d.ts +1 -0
  15. package/scripts/utils.js +22 -0
  16. package/scss/colors/functions.scss +2 -10
  17. package/scss/colors/mixins.scss +0 -18
  18. package/scss/colors/root.scss +10 -0
  19. package/scss/core-styles.scss +4 -1
  20. package/scss/fonts/root.scss +4 -0
  21. package/scss/grid/functions.scss +8 -6
  22. package/scss/grid/mixins.scss +0 -77
  23. package/scss/grid/root.scss +80 -0
  24. package/scss/helpers/root.scss +4 -0
  25. package/scss/init-root.scss +12 -0
  26. package/scss/meta/root.scss +4 -0
  27. package/scss/spacer/functions.scss +2 -1
  28. package/scss/spacer/mixins.scss +0 -52
  29. package/scss/spacer/root.scss +55 -0
  30. package/scss/system/functions.scss +70 -5
  31. package/scss/system/root.scss +0 -3
  32. package/scss/system/variables.scss +1 -0
  33. package/scss/typography/functions.scss +12 -12
  34. package/scss/typography/mixins.scss +0 -221
  35. package/scss/typography/root.scss +226 -0
  36. package/srl/.srl/components/Srl/Article/Dialog/Button.vue +18 -20
  37. package/srl/.srl/components/Srl/Page/Dialog.vue +17 -19
  38. package/srl/.srl/utils/pageState.ts +2 -2
  39. package/srl/srl/pdf.scss +0 -2
package/dev/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  >this page requires javascript to work properly. please enable javascript in your
13
13
  browser</noscript
14
14
  >
15
- <div id="app" class="slr-page"></div>
15
+ <div id="app" class="srl-page"></div>
16
16
  <script type="module" src="src/entries/main.ts"></script>
17
17
  </body>
18
18
  </html>
@@ -110,24 +110,24 @@
110
110
  "identifier": "wp_cf_prettyTitle",
111
111
  "type": "text",
112
112
  "matches": [
113
- "title-h1.title-h1-text",
113
+ "title-h1.title-h1",
114
114
  "title-h2.title-h2-text",
115
115
  "title-h3.title-h3-text",
116
116
  "title-h4.title-h4-text",
117
- "title-h5.title-h5-text",
118
- "title-h6.title-h6-text"
117
+ "title-h5.title-h5",
118
+ "title-h6.title-h6"
119
119
  ]
120
120
  },
121
121
  {
122
122
  "identifier": "menuTitle",
123
123
  "type": "text",
124
124
  "matches": [
125
- "title-h1.title-h1-text",
125
+ "title-h1.title-h1",
126
126
  "title-h2.title-h2-text",
127
127
  "title-h3.title-h3-text",
128
128
  "title-h4.title-h4-text",
129
- "title-h5.title-h5-text",
130
- "title-h6.title-h6-text"
129
+ "title-h5.title-h5",
130
+ "title-h6.title-h6"
131
131
  ]
132
132
  },
133
133
  {
package/dev/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "postinstall": "srl prepare"
20
20
  },
21
21
  "dependencies": {
22
- "@simple-reporting/base": "^1.0.23",
22
+ "@simple-reporting/base": "^1.0.24",
23
23
  "axios": "^1.12.2",
24
24
  "chalk": "^5.6.2",
25
25
  "exceljs": "^4.4.0",
@@ -57,6 +57,9 @@ body:has(.srl-page__dialog[open]) {
57
57
  opacity: 0;
58
58
  pointer-events: none;
59
59
  transition: opacity 0.3s;
60
+ position: fixed;
61
+ inset: 0;
62
+ margin: 10vh auto 0;
60
63
 
61
64
  &::backdrop {
62
65
  background-color: rgba(0, 0, 0, 0.3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-reporting/base",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Manage srl templates, build and publish",
5
5
  "bin": {
6
6
  "srl": "cli.js"
@@ -22,6 +22,7 @@
22
22
  "chalk": "^5.6.2",
23
23
  "colors": "^1.4.0",
24
24
  "commander": "^11.1.0",
25
+ "dotenv": "^17.2.3",
25
26
  "enquirer": "^2.4.1",
26
27
  "fs": "^0.0.1-security",
27
28
  "fs-extra": "^11.3.2",
package/scripts/beaver.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'node:fs';
2
2
  import path from 'node:path/posix';
3
3
  import { colors } from './colors.js';
4
- import { readNsWowJson } from './utils.js';
4
+ import { readNsWowJson, deepAssign } from './utils.js';
5
5
  import colorPalette from '@kne/color-palette';
6
6
  import folders from './folders.js';
7
+ import { buildVariables } from "./build/variables.js";
8
+
7
9
  /**
8
10
  * Maps the values of an object or array recursively.
9
11
  *
@@ -176,24 +178,18 @@ async function beaver(verbose = 0) {
176
178
  verbose = verbose ? 1 : 0;
177
179
  }
178
180
 
179
- if (typeof configJson.system === 'undefined') {
180
- configJson.system = {};
181
- }
182
-
183
- if (typeof configJson.system.environment === 'undefined') {
184
- configJson.system.environment = process.env.NODE_ENV;
185
- }
181
+ const configAssigned = deepAssign(configJson, buildVariables);
186
182
 
187
- if (typeof configJson.fonts !== 'undefined') {
188
- const fontBasePath = configJson.fonts['font-base-path'] ?? '';
183
+ if (typeof configAssigned.fonts !== 'undefined') {
184
+ const fontBasePath = configAssigned.fonts['font-base-path'] ?? '';
189
185
  if (fontBasePath.length) {
190
- configJson.fonts['font-base-path'] = '.' + path.normalize(fontBasePath);
186
+ configAssigned.fonts['font-base-path'] = '.' + path.normalize(fontBasePath);
191
187
  }
192
- if (typeof configJson.fonts.fonts !== 'undefined') {
193
- for (let x = 0; x < configJson.fonts.fonts.length; x++) {
194
- let font = configJson.fonts.fonts[x];
188
+ if (typeof configAssigned.fonts.fonts !== 'undefined') {
189
+ for (let x = 0; x < configAssigned.fonts.fonts.length; x++) {
190
+ let font = configAssigned.fonts.fonts[x];
195
191
  if (typeof font === 'string') {
196
- configJson.fonts.fonts[x] = JSON.parse(
192
+ configAssigned.fonts.fonts[x] = JSON.parse(
197
193
  readFileSync(
198
194
  path.join(process.cwd(), fontBasePath, font, 'styles.json'),
199
195
  ),
@@ -205,10 +201,10 @@ async function beaver(verbose = 0) {
205
201
 
206
202
  const map = {};
207
203
 
208
- for (const file in configJson) {
204
+ for (const file in configAssigned) {
209
205
  map[file] = {};
210
- for (const variable in configJson[file]) {
211
- map[file][variable] = mapValues(configJson[file][variable]);
206
+ for (const variable in configAssigned[file]) {
207
+ map[file][variable] = mapValues(configAssigned[file][variable]);
212
208
  }
213
209
  }
214
210
 
@@ -0,0 +1,6 @@
1
+ export namespace buildVariables {
2
+ namespace system {
3
+ let environment: string;
4
+ let build: string;
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ export const buildVariables = {
2
+ system: {
3
+ environment: 'development',
4
+ build: 'app',
5
+ }
6
+ }
package/scripts/build.js CHANGED
@@ -24,6 +24,8 @@ import folders from './folders.js';
24
24
  import { mapLdd } from './ldd/mapLdd.js';
25
25
  import { LivingdocsDesignValidator } from './ldd/LivingdocsDesignValidator.js';
26
26
  import { camelCase } from './utils.js';
27
+ import { buildVariables } from "./build/variables.js";
28
+ import './dotenv.js';
27
29
 
28
30
  const placeholderId = '6297EAFB-33A0-48B8-8D64-E61CDC3E9035';
29
31
  const nswowPath = folders.srlImports;
@@ -84,6 +86,10 @@ async function cleanOutput() {
84
86
  */
85
87
  async function buildApp() {
86
88
  console.log("\n\nBuild application");
89
+ buildVariables.system.environment = 'production';
90
+ buildVariables.system.build = 'app';
91
+ buildVariables.system['size-unit'] = 'rem';
92
+
87
93
  await checkFolders();
88
94
  const build = await viteBuild({
89
95
  build: {
@@ -101,7 +107,7 @@ async function buildApp() {
101
107
 
102
108
  // Copy public folder exclude nswow folders
103
109
  console.log(
104
- '\n\nCopy public folder exclude nswow folders and exclude folder',
110
+ '\n\nCopy public folder exclude nswow folders and assets, template, exclude folder and index.html',
105
111
  );
106
112
  await cpSync(join(folders.srlPublic, '/'), join(outputPath, 'app'), {
107
113
  filter: (src) => {
@@ -110,7 +116,10 @@ async function buildApp() {
110
116
  src.startsWith(join(folders.srlPublic, 'html')) ||
111
117
  src.startsWith(join(folders.srlPublic, 'images')) ||
112
118
  src.startsWith(join(folders.srlPublic, 'json')) ||
113
- src.startsWith(join(folders.srlPublic, 'exclude'))
119
+ src.startsWith(join(folders.srlPublic, 'exclude')) ||
120
+ src.startsWith(join(folders.srlPublic, 'assets')) ||
121
+ src.startsWith(join(folders.srlPublic, 'template')) ||
122
+ src.startsWith(join(folders.srlPublic, 'index.html'))
114
123
  ) {
115
124
  return false;
116
125
  } else {
@@ -144,9 +153,7 @@ async function buildApp() {
144
153
  index = index.replace(
145
154
  /(<div\s+[^>]*id\s*=\s*["']app["'][^>]*>)([\s\S]*?)(<\/div>)/i,
146
155
  `$1
147
- <template>
148
- [[content-${placeholderId}]]
149
- </template>
156
+ [[content-${placeholderId}]]
150
157
  $3`,
151
158
  );
152
159
 
@@ -192,6 +199,10 @@ async function buildApp() {
192
199
  */
193
200
  async function buildDDev() {
194
201
  console.log("\n\nBuild application for DDEV");
202
+ buildVariables.system.environment = 'production';
203
+ buildVariables.system.build = 'app';
204
+ buildVariables.system['size-unit'] = 'rem';
205
+
195
206
  await checkFolders();
196
207
  const build = await viteBuild({
197
208
  build: {
@@ -280,6 +291,10 @@ async function zipLdd() {
280
291
  */
281
292
  async function buildPdf() {
282
293
  console.log("\n\nBuild PDF");
294
+ buildVariables.system.environment = 'production';
295
+ buildVariables.system.build = 'pdf';
296
+ buildVariables.system['size-unit'] = 'rem';
297
+
283
298
  await checkFolders();
284
299
 
285
300
  const config = {
@@ -312,6 +327,10 @@ async function buildPdf() {
312
327
 
313
328
  async function buildXbrl() {
314
329
  console.log("\n\nBuild XBRL");
330
+ buildVariables.system.environment = 'production';
331
+ buildVariables.system.build = 'xbrl';
332
+ buildVariables.system['size-unit'] = 'rem';
333
+
315
334
  await checkFolders();
316
335
 
317
336
  const config = {
@@ -351,6 +370,10 @@ async function buildXbrl() {
351
370
  */
352
371
  async function buildLdd(version) {
353
372
  console.log("\n\nBuild Livingdocs");
373
+ buildVariables.system.environment = 'production';
374
+ buildVariables.system.build = 'ldd';
375
+ buildVariables.system['size-unit'] = 'rem';
376
+
354
377
  await checkFolders();
355
378
  await mapLdd();
356
379
 
@@ -478,7 +501,7 @@ async function buildLdd(version) {
478
501
  }
479
502
 
480
503
  async function buildPdfCustomer(customer) {
481
-
504
+ const internalLddUrl = process.env.INTERNAL_LDD_URL ?? nsWowInternalLddUrl;
482
505
  const customersDir = join(folders.root, 'pdf', 'customers');
483
506
 
484
507
  if (customer === 'all') {
@@ -594,7 +617,7 @@ async function buildPdfCustomer(customer) {
594
617
 
595
618
  const pdfXmlStart = `<configuration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n`;
596
619
  const pdfXmlEnd = `\n</configuration>`;
597
- const nsWowUrl = `${nsWowInternalLddUrl}/${lddJson.name}/${lddJson.version}/pdf`;
620
+ const nsWowUrl = `${internalLddUrl}/${lddJson.name}/${lddJson.version}/pdf`;
598
621
 
599
622
  const pdfConfig = [];
600
623
  cssReferences.forEach( p => {
@@ -640,6 +663,9 @@ async function buildPdfCustomer(customer) {
640
663
  */
641
664
  async function buildWord() {
642
665
  console.log("\n\nBuild Word");
666
+ buildVariables.system.environment = 'production';
667
+ buildVariables.system.build = 'word';
668
+ buildVariables.system['size-unit'] = 'pt';
643
669
  await checkFolders();
644
670
 
645
671
  const config = {
@@ -740,16 +766,32 @@ function cleanupScssAlias(string) {
740
766
  async function mapScss() {
741
767
  await checkFolders();
742
768
  try {
769
+ const internalLddUrl = process.env.INTERNAL_LDD_URL ?? nsWowInternalLddUrl;
743
770
  const packageJson = await readPackageJson();
744
771
 
745
772
  const relativePathToRoot = join('..', '..', '/');
746
773
 
747
774
  const output = {
748
- app: [],
749
- ldd: [],
750
- pdf: [],
751
- word: [],
752
- xbrl: [],
775
+ app: [
776
+ `"../../srl/config" as *`,
777
+ `"@simple-reporting/base/scss/init-root.scss" as *`
778
+ ],
779
+ ldd: [
780
+ `"../../srl/config" as *`,
781
+ `"@simple-reporting/base/scss/init-root.scss" as *`
782
+ ],
783
+ pdf: [
784
+ `"../../srl/config" as *`,
785
+ `"@simple-reporting/base/scss/init-root.scss" as *`
786
+ ],
787
+ word: [
788
+ `"../../srl/config" as *`,
789
+ `"@simple-reporting/base/scss/init-root.scss" as *`
790
+ ],
791
+ xbrl: [
792
+ `"../../srl/config" as *`,
793
+ `"@simple-reporting/base/scss/init-root.scss" as *`
794
+ ],
753
795
  };
754
796
 
755
797
  const fontFiles = await glob(join(folders.srlAssets, 'fonts', '**', '*.scss'), {
@@ -759,7 +801,7 @@ async function mapScss() {
759
801
  const fontsOutput = []
760
802
 
761
803
  if (fontFiles.length) {
762
- fontsOutput.push(`@import "${nsWowInternalLddUrl}/${packageJson.name}/${packageJson.version}/fonts/style.css";`);
804
+ fontsOutput.push(`@import "${internalLddUrl}/${packageJson.name}/${packageJson.version}/fonts/style.css";`);
763
805
  fontFiles.forEach(f => {
764
806
  output.app.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
765
807
  output.xbrl.push(`"${relativePathToRoot}${f.relativePosix()}" as *`);
@@ -908,9 +950,7 @@ async function mapScss() {
908
950
 
909
951
  await writeFileSync(
910
952
  join(folders.srlImports, 'xbrl.scss'),
911
- output.xbrl.length
912
- ? `@use ` + output.xbrl.join(`;\n@use `)
913
- : `;\n` + `;\n@use "@simple-reporting/base/scss/xbrl-core-styles.scss" as *;\n`,
953
+ `@use ` + output.xbrl.join(`;\n@use `) + `;\n@use "@simple-reporting/base/scss/xbrl-core-styles.scss" as *;\n`,
914
954
  );
915
955
 
916
956
  return true;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import dotenv from 'dotenv'
2
+ import folders from './folders.js';
3
+ import { join } from 'node:path/posix';
4
+
5
+ dotenv.config({quiet: true, path: join(folders.root, '.env.nswow')});
6
+ dotenv.config({quiet: true, path: join(folders.root, '.env.production.local')});
7
+ dotenv.config({quiet: true, path: join(folders.root, '.env.production')});
8
+ dotenv.config({quiet: true});
package/scripts/init.js CHANGED
@@ -58,7 +58,7 @@ async function init(folder, options) {
58
58
 
59
59
  await writeFileSync(
60
60
  `${projectPath}/.gitignore`,
61
- `/.output/\n/.srl/\n/node_modules/\n/public/downloads/\n/public/html/\n/public/images/\n/public/json/\n/public/exclude/\n/dev-dist/\n/.DS_Store\n/.idea`,
61
+ `/.output/\n/.srl/\n/node_modules/\n/public/downloads/\n/public/html/\n/public/images/\n/public/json/\n/public/exclude/\n/dev-dist/\n/.DS_Store\n/.idea\n/**/*.lcoal\n`,
62
62
  );
63
63
  console.log(`Project has created`);
64
64
  console.log(`cd ${folder}`);
@@ -141,7 +141,7 @@ async function mapComponents(lddJson) {
141
141
  components.forEach((component) => {
142
142
  // ldd static component
143
143
  try {
144
- const htmlFile = globSync(join(groupPath, component, '*.html'));
144
+ const htmlFile = globSync(join(groupPath, component, '*.html'), { posix: true });
145
145
  if (htmlFile.length) {
146
146
  const htmlPath = htmlFile[0];
147
147
  const ldConfPath = join(groupPath, component, `ld-conf.json`);
@@ -164,7 +164,7 @@ async function mapComponents(lddJson) {
164
164
 
165
165
  // vue async component
166
166
  try {
167
- const vueFiles = globSync(join(groupPath, component, '*.vue'));
167
+ const vueFiles = globSync(join(groupPath, component, '*.vue'), { posix: true });
168
168
  if (vueFiles.length) {
169
169
  vueFiles.forEach( c => {
170
170
  const vueFile = c.split('/').pop();
@@ -61,4 +61,5 @@ export function camelCase(str: string): string;
61
61
  * @returns {Promise<string>} The package version.
62
62
  */
63
63
  export function getPackageVersion(packageName: string): Promise<string>;
64
+ export function deepAssign(target: any, ...sources: any[]): any;
64
65
  export { writeJson };
package/scripts/utils.js CHANGED
@@ -146,6 +146,27 @@ function getPackageVersion(packageName) {
146
146
  });
147
147
  }
148
148
 
149
+ function deepAssign(target, ...sources) {
150
+ for (const source of sources) {
151
+ if (typeof source !== 'object' || source === null) continue;
152
+ for (const key of Object.keys(source)) {
153
+ if (
154
+ typeof source[key] === 'object' &&
155
+ source[key] !== null &&
156
+ !Array.isArray(source[key])
157
+ ) {
158
+ if (!target[key] || typeof target[key] !== 'object') {
159
+ target[key] = {};
160
+ }
161
+ deepAssign(target[key], source[key]);
162
+ } else {
163
+ target[key] = source[key];
164
+ }
165
+ }
166
+ }
167
+ return target;
168
+ }
169
+
149
170
  export {
150
171
  writeJson,
151
172
  lddGroupNames,
@@ -160,4 +181,5 @@ export {
160
181
  writeNsWowJson,
161
182
  camelCase,
162
183
  getPackageVersion,
184
+ deepAssign,
163
185
  };
@@ -2,17 +2,9 @@
2
2
  @use 'variables';
3
3
  @use '../system';
4
4
 
5
- @function get($colorName, $media: false) {
5
+ @function get($colorName) {
6
6
  @if not map.has-key(variables.$colors, $colorName) {
7
7
  @error "Invalid color \"#{$colorName}\" specified! Choose one of #{map.keys(variables.$colors)}";
8
8
  }
9
-
10
- @if $media {
11
- @return var(
12
- --#{variables.$variable-prefix}color-#{$colorName}-#{$media},
13
- var(--#{variables.$variable-prefix}color-#{$colorName})
14
- );
15
- }
16
-
17
- @return var(--#{variables.$variable-prefix}color-#{$colorName});
9
+ @return system.root-style(#{variables.$variable-prefix}color-#{$colorName});
18
10
  }
@@ -4,24 +4,6 @@
4
4
  @use 'functions';
5
5
  @use '../system';
6
6
 
7
- @mixin set($colorName, $value, $media: false) {
8
- @if not map.has-key(variables.$colors, $colorName) {
9
- @error "Invalid color \"#{$colorName}\" specified! Choose one of #{map.keys(variables.$colors)}";
10
- }
11
- @if $media {
12
- --#{variables.$variable-prefix}color-#{"" + $colorName}-#{$media}: #{$value};
13
- } @else {
14
- --#{variables.$variable-prefix}color-#{"" + $colorName}: #{$value};
15
- }
16
- }
17
-
18
- @each $colorName, $colors in variables.$colors {
19
- @include system.add-root-style(
20
- #{variables.$variable-prefix}color-#{'' + $colorName},
21
- map.get($colors, color)
22
- );
23
- }
24
-
25
7
  @mixin core-styles {
26
8
  @at-root {
27
9
  @each $colorName, $colors in variables.$colors {
@@ -0,0 +1,10 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
5
+ @each $colorName, $colors in variables.$colors {
6
+ @include system.add-root-style(
7
+ #{variables.$variable-prefix}color-#{'' + $colorName},
8
+ map.get($colors, color)
9
+ );
10
+ }
@@ -1,6 +1,7 @@
1
1
  @use 'config';
2
2
  @use 'index';
3
3
  @use 'system/root';
4
+ @use "system/variables";
4
5
 
5
6
  @use 'modern-css-reset';
6
7
 
@@ -12,7 +13,9 @@ li {
12
13
  margin: 0;
13
14
  }
14
15
 
15
- @include root.core-styles;
16
+ @if variables.$build != word {
17
+ @include root.core-styles;
18
+ }
16
19
  @include index.core-styles;
17
20
  @include index.system-core-styles;
18
21
  @include index.fonts-core-styles;
@@ -0,0 +1,4 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
@@ -1,31 +1,33 @@
1
1
  @use 'sass:map';
2
2
  @use 'variables';
3
+ @use '../system';
4
+
3
5
 
4
6
  @function get-container-max-width() {
5
- @return var(--#{variables.$variable-prefix}container-max-width, 0);
7
+ @return system.root-style(#{variables.$variable-prefix}container-max-width, 0);
6
8
  }
7
9
 
8
10
  @function get-container-padding() {
9
- @return var(--#{variables.$variable-prefix}container-padding, 0);
11
+ @return system.root-style(#{variables.$variable-prefix}container-padding, 0);
10
12
  }
11
13
 
12
14
  @function get-breakpoint($breakpoint) {
13
15
  @if not map.has-key(variables.$breakpoints, $breakpoint) {
14
16
  @error "Invalid breakpoint for container specified! Choose one of #{map.keys(variables.$breakpoints)}";
15
17
  }
16
- @return var(--#{variables.$variable-prefix}-breakpoint-#{$breakpoint});
18
+ @return system.root-style(#{variables.$variable-prefix}-breakpoint-#{$breakpoint});
17
19
  }
18
20
 
19
21
  @function get-gutter-columns() {
20
- @return var(--#{variables.$variable-prefix}gutter-columns);
22
+ @return system.root-style(#{variables.$variable-prefix}gutter-columns);
21
23
  }
22
24
 
23
25
  @function get-gutter-row-gap() {
24
- @return var(--#{variables.$variable-prefix}gutter-row-gap);
26
+ @return system.root-style(#{variables.$variable-prefix}gutter-row-gap);
25
27
  }
26
28
 
27
29
  @function get-gutter-column-gap() {
28
- @return var(--#{variables.$variable-prefix}gutter-column-gap);
30
+ @return system.root-style(#{variables.$variable-prefix}gutter-column-gap);
29
31
  }
30
32
 
31
33
  @function calculate-pdf-col-span-minus-one-gutter($span) {
@@ -160,83 +160,6 @@
160
160
  }
161
161
  }
162
162
 
163
- @each $breakpoint, $min-width in variables.$breakpoints {
164
- $size-unit: false;
165
- @if $breakpoint == print {
166
- $size-unit: in;
167
- }
168
-
169
- @include system.add-root-style(
170
- #{variables.$variable-prefix}breakpoint-#{$breakpoint},
171
- system.size-unit($min-width, $size-unit)
172
- );
173
-
174
- $container: map.get(variables.$containers, $breakpoint);
175
-
176
- $container-max-width: map.get($container, max-width);
177
- @if not $container-max-width {
178
- $container-max-width: unset;
179
- }
180
-
181
- @include system.add-root-style(
182
- #{variables.$variable-prefix}container-max-width,
183
- system.size-unit($container-max-width, $size-unit),
184
- $breakpoint
185
- );
186
-
187
- $container-padding: map.get($container, padding);
188
- @if not $container-padding {
189
- $container-padding: unset;
190
- }
191
-
192
- @include system.add-root-style(
193
- #{variables.$variable-prefix}container-padding,
194
- system.size-unit($container-padding, $size-unit),
195
- $breakpoint
196
- );
197
-
198
- $gutter: map.get(variables.$gutter, $breakpoint);
199
- @if not $gutter {
200
- $gutter: (
201
- columns: 1,
202
- );
203
- }
204
-
205
- $columns: map.get(variables.$columns, $breakpoint);
206
-
207
- $gap: map.get($gutter, gap);
208
- $row-gap: unset;
209
- $column-gap: unset;
210
- @if $gap {
211
- $row-gap: $gap;
212
- $column-gap: $gap;
213
- } @else {
214
- @if map.has-key($gutter, row-gap) {
215
- $row-gap: map.get($gutter, row-gap);
216
- }
217
- @if map.has-key($gutter, column-gap) {
218
- $column-gap: map.get($gutter, column-gap);
219
- }
220
- }
221
-
222
- @include system.add-root-style(
223
- #{variables.$variable-prefix}gutter-columns,
224
- $columns,
225
- $breakpoint
226
- );
227
- @include system.add-root-style(
228
- #{variables.$variable-prefix}gutter-row-gap,
229
- system.size-unit($row-gap, $size-unit),
230
- $breakpoint
231
- );
232
-
233
- @include system.add-root-style(
234
- #{variables.$variable-prefix}gutter-column-gap,
235
- system.size-unit($column-gap, $size-unit),
236
- $breakpoint
237
- );
238
- }
239
-
240
163
  @mixin pdf-flex-col($span) {
241
164
  width: functions.calculate-pdf-col-span-minus-one-gutter($span);
242
165
  }