@graupl/core 1.0.0-beta.14 → 1.0.0-beta.16

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 (125) hide show
  1. package/dist/css/base/button.css +1 -1
  2. package/dist/css/base/button.css.map +1 -1
  3. package/dist/css/base/form.css +1 -1
  4. package/dist/css/base/form.css.map +1 -1
  5. package/dist/css/base/link.css +1 -1
  6. package/dist/css/base/link.css.map +1 -1
  7. package/dist/css/base/table.css.map +1 -1
  8. package/dist/css/base.css +1 -1
  9. package/dist/css/base.css.map +1 -1
  10. package/dist/css/component/accordion.css +2 -2
  11. package/dist/css/component/accordion.css.map +1 -1
  12. package/dist/css/component/alert.css +1 -1
  13. package/dist/css/component/alert.css.map +1 -1
  14. package/dist/css/component/carousel.css +1 -1
  15. package/dist/css/component/carousel.css.map +1 -1
  16. package/dist/css/component.css +2 -2
  17. package/dist/css/component.css.map +1 -1
  18. package/dist/css/graupl.css +2 -2
  19. package/dist/css/graupl.css.map +1 -1
  20. package/dist/css/layout.css +2 -2
  21. package/dist/css/layout.css.map +1 -1
  22. package/dist/css/state/focus.css +1 -1
  23. package/dist/css/state/focus.css.map +1 -1
  24. package/dist/css/state.css +1 -1
  25. package/dist/css/state.css.map +1 -1
  26. package/dist/css/theme/color.css +1 -1
  27. package/dist/css/theme/color.css.map +1 -1
  28. package/dist/css/theme.css +1 -1
  29. package/dist/css/theme.css.map +1 -1
  30. package/dist/css/utilities/border.css +1 -1
  31. package/dist/css/utilities/border.css.map +1 -1
  32. package/dist/css/utilities/color.css +1 -1
  33. package/dist/css/utilities/color.css.map +1 -1
  34. package/dist/css/utilities/gradient.css +1 -1
  35. package/dist/css/utilities/gradient.css.map +1 -1
  36. package/dist/css/utilities/order.css.map +1 -1
  37. package/dist/css/utilities/typography.css +1 -1
  38. package/dist/css/utilities/typography.css.map +1 -1
  39. package/dist/css/utilities/visually-hidden.css.map +1 -1
  40. package/dist/css/utilities.css +1 -1
  41. package/dist/css/utilities.css.map +1 -1
  42. package/dist/js/accordion.js.map +1 -1
  43. package/dist/js/alert.js.map +1 -1
  44. package/dist/js/carousel.js.map +1 -1
  45. package/dist/js/component/accordion.cjs.js.map +1 -1
  46. package/dist/js/component/accordion.es.js.map +1 -1
  47. package/dist/js/component/accordion.iife.js.map +1 -1
  48. package/dist/js/component/alert.cjs.js.map +1 -1
  49. package/dist/js/component/alert.es.js.map +1 -1
  50. package/dist/js/component/alert.iife.js.map +1 -1
  51. package/dist/js/component/carousel.cjs.js.map +1 -1
  52. package/dist/js/component/carousel.es.js.map +1 -1
  53. package/dist/js/component/carousel.iife.js.map +1 -1
  54. package/dist/js/generator/accordion.cjs.js.map +1 -1
  55. package/dist/js/generator/accordion.es.js.map +1 -1
  56. package/dist/js/generator/accordion.iife.js.map +1 -1
  57. package/dist/js/generator/alert.cjs.js.map +1 -1
  58. package/dist/js/generator/alert.es.js.map +1 -1
  59. package/dist/js/generator/alert.iife.js.map +1 -1
  60. package/dist/js/generator/carousel.cjs.js.map +1 -1
  61. package/dist/js/generator/carousel.es.js.map +1 -1
  62. package/dist/js/generator/carousel.iife.js.map +1 -1
  63. package/dist/js/generator/navigation.cjs.js.map +1 -1
  64. package/dist/js/generator/navigation.es.js.map +1 -1
  65. package/dist/js/generator/navigation.iife.js.map +1 -1
  66. package/dist/js/graupl.js.map +1 -1
  67. package/dist/js/navigation.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/js/domHelpers.js +5 -10
  70. package/src/scss/_defaults.scss +147 -29
  71. package/src/scss/base/button/_defaults.scss +21 -5
  72. package/src/scss/base/button/_mixins.scss +1 -1
  73. package/src/scss/base/table/_defaults.scss +15 -2
  74. package/src/scss/base/table/_index.scss +4 -7
  75. package/src/scss/component/alert/_defaults.scss +22 -5
  76. package/src/scss/component/alert/_index.scss +1 -1
  77. package/src/scss/functions/_theme.scss +14 -2
  78. package/src/scss/theme/color/_defaults.scss +84 -14
  79. package/src/scss/theme/color/_index.scss +18 -3
  80. package/src/scss/theme/color/_variables.scss +63 -30
  81. package/src/scss/theme/typography/_defaults.scss +37 -7
  82. package/src/scss/utilities/_template/_defaults.scss +7 -6
  83. package/src/scss/utilities/_template/_index.scss +2 -2
  84. package/src/scss/utilities/alignment/_defaults.scss +53 -15
  85. package/src/scss/utilities/alignment/_index.scss +4 -6
  86. package/src/scss/utilities/background/_defaults.scss +117 -35
  87. package/src/scss/utilities/background/_index.scss +8 -14
  88. package/src/scss/utilities/border/_defaults.scss +77 -15
  89. package/src/scss/utilities/border/_index.scss +73 -75
  90. package/src/scss/utilities/color/_defaults.scss +55 -7
  91. package/src/scss/utilities/color/_index.scss +143 -144
  92. package/src/scss/utilities/container/_defaults.scss +21 -5
  93. package/src/scss/utilities/container/_index.scss +2 -2
  94. package/src/scss/utilities/display/_defaults.scss +18 -5
  95. package/src/scss/utilities/display/_index.scss +2 -2
  96. package/src/scss/utilities/flex/_defaults.scss +88 -25
  97. package/src/scss/utilities/flex/_index.scss +6 -10
  98. package/src/scss/utilities/gradient/_defaults.scss +64 -9
  99. package/src/scss/utilities/gradient/_index.scss +127 -129
  100. package/src/scss/utilities/height/_defaults.scss +27 -2
  101. package/src/scss/utilities/height/_index.scss +169 -163
  102. package/src/scss/utilities/inset/_defaults.scss +25 -4
  103. package/src/scss/utilities/inset/_index.scss +3 -4
  104. package/src/scss/utilities/justification/_defaults.scss +53 -15
  105. package/src/scss/utilities/justification/_index.scss +4 -6
  106. package/src/scss/utilities/list/_defaults.scss +37 -10
  107. package/src/scss/utilities/list/_index.scss +3 -4
  108. package/src/scss/utilities/order/_defaults.scss +33 -2
  109. package/src/scss/utilities/order/_index.scss +55 -67
  110. package/src/scss/utilities/position/_defaults.scss +18 -5
  111. package/src/scss/utilities/position/_index.scss +2 -2
  112. package/src/scss/utilities/ratio/_defaults.scss +15 -2
  113. package/src/scss/utilities/ratio/_index.scss +2 -2
  114. package/src/scss/utilities/spacing/_defaults.scss +18 -5
  115. package/src/scss/utilities/spacing/_index.scss +2 -2
  116. package/src/scss/utilities/typography/_defaults.scss +146 -12
  117. package/src/scss/utilities/typography/_index.scss +854 -704
  118. package/src/scss/utilities/visibility/_defaults.scss +20 -5
  119. package/src/scss/utilities/visibility/_index.scss +2 -2
  120. package/src/scss/utilities/visually-hidden/_defaults.scss +1 -0
  121. package/src/scss/utilities/visually-hidden/_index.scss +1 -0
  122. package/src/scss/utilities/width/_defaults.scss +27 -2
  123. package/src/scss/utilities/width/_index.scss +163 -163
  124. package/src/scss/utilities/z-index/_defaults.scss +17 -5
  125. package/src/scss/utilities/z-index/_index.scss +2 -2
@@ -94,6 +94,7 @@
94
94
  // The following variables control the generated classes:
95
95
  // - `$selector-base`: The base selector for the utility classes.
96
96
  // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
97
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
97
98
  // - `$screen-aware`: A flag to generate screen-aware utility classes.
98
99
  // - `$theme-aware`: A flag to generate theme-aware utility classes.
99
100
  // - `$state-aware`: A flag to generate state-aware utility classes.
@@ -109,8 +110,7 @@
109
110
  // - `$height-selector-prefix`: The prefix for the height utility classes.
110
111
  // - `$max-height-selector-prefix`: The prefix for the max-height utility classes.
111
112
  // - `$min-height-selector-prefix`: The prefix for the min-height utility classes.
112
- // - `$base-height-values`: The base properties and values for the height utility classes.
113
- // - `$custom-height-values`: The custom properties and values for the height utility classes.
113
+ // - `$custom-height-values`: [DEPRECATED] The custom properties and values for the height utility classes.
114
114
  // - `$height-values`: The combined properties and values for the height utility classes.
115
115
  //
116
116
  // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
@@ -185,37 +185,37 @@
185
185
  );
186
186
  }
187
187
 
188
- @each $spacer, $value in root-variables.$spacers {
189
- // e.g. `.h-1` or `.h-5`
190
- $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
191
-
192
- @include utility.create(
193
- $selector,
194
- height,
195
- $value,
196
- $important: defaults.$use-important
197
- );
198
-
199
- // e.g. `.max-h-1` or `.max-h-5`
200
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
201
-
202
- @include utility.create(
203
- $selector,
204
- max-height,
205
- $value,
206
- $important: defaults.$use-important
207
- );
208
-
209
- // e.g. `.min-h-1` or `.min-h-5`
210
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
211
-
212
- @include utility.create(
213
- $selector,
214
- min-height,
215
- $value,
216
- $important: defaults.$use-important
217
- );
218
- }
188
+ // @each $spacer, $value in root-variables.$spacers {
189
+ // // e.g. `.h-1` or `.h-5`
190
+ // $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
191
+
192
+ // @include utility.create(
193
+ // $selector,
194
+ // height,
195
+ // $value,
196
+ // $important: defaults.$use-important
197
+ // );
198
+
199
+ // // e.g. `.max-h-1` or `.max-h-5`
200
+ // $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
201
+
202
+ // @include utility.create(
203
+ // $selector,
204
+ // max-height,
205
+ // $value,
206
+ // $important: defaults.$use-important
207
+ // );
208
+
209
+ // // e.g. `.min-h-1` or `.min-h-5`
210
+ // $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
211
+
212
+ // @include utility.create(
213
+ // $selector,
214
+ // min-height,
215
+ // $value,
216
+ // $important: defaults.$use-important
217
+ // );
218
+ // }
219
219
 
220
220
  // Generate screen-aware utilities.
221
221
  @if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
@@ -259,40 +259,40 @@
259
259
  );
260
260
  }
261
261
 
262
- @each $spacer, $value in root-variables.$spacers {
263
- // e.g. `.md:h-1` or `.lg:h-5`
264
- $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
265
-
266
- @include utility.create(
267
- $selector,
268
- height,
269
- $value,
270
- $important: defaults.$use-important,
271
- $screen: $screen-name
272
- );
273
-
274
- // e.g. `.md:max-h-1` or `.lg:max-h-5`
275
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
276
-
277
- @include utility.create(
278
- $selector,
279
- max-height,
280
- $value,
281
- $important: defaults.$use-important,
282
- $screen: $screen-name
283
- );
284
-
285
- // e.g. `.md:min-h-1` or `.lg:min-h-5`
286
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
287
-
288
- @include utility.create(
289
- $selector,
290
- min-height,
291
- $value,
292
- $important: defaults.$use-important,
293
- $screen: $screen-name
294
- );
295
- }
262
+ // @each $spacer, $value in root-variables.$spacers {
263
+ // // e.g. `.md:h-1` or `.lg:h-5`
264
+ // $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
265
+
266
+ // @include utility.create(
267
+ // $selector,
268
+ // height,
269
+ // $value,
270
+ // $important: defaults.$use-important,
271
+ // $screen: $screen-name
272
+ // );
273
+
274
+ // // e.g. `.md:max-h-1` or `.lg:max-h-5`
275
+ // $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
276
+
277
+ // @include utility.create(
278
+ // $selector,
279
+ // max-height,
280
+ // $value,
281
+ // $important: defaults.$use-important,
282
+ // $screen: $screen-name
283
+ // );
284
+
285
+ // // e.g. `.md:min-h-1` or `.lg:min-h-5`
286
+ // $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
287
+
288
+ // @include utility.create(
289
+ // $selector,
290
+ // min-height,
291
+ // $value,
292
+ // $important: defaults.$use-important,
293
+ // $screen: $screen-name
294
+ // );
295
+ // }
296
296
  }
297
297
  }
298
298
 
@@ -339,40 +339,40 @@
339
339
  );
340
340
  }
341
341
 
342
- @each $spacer, $value in root-variables.$spacers {
343
- // e.g. `.dark:h-1` or `.light:h-5`
344
- $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
345
-
346
- @include utility.create(
347
- $selector,
348
- height,
349
- $value,
350
- $important: defaults.$use-important,
351
- $theme: $theme-name
352
- );
353
-
354
- // e.g. `.dark:max-h-1` or `.light:max-h-5`
355
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
356
-
357
- @include utility.create(
358
- $selector,
359
- max-height,
360
- $value,
361
- $important: defaults.$use-important,
362
- $theme: $theme-name
363
- );
364
-
365
- // e.g. `.dark:min-h-1` or `.light:min-h-5`
366
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
367
-
368
- @include utility.create(
369
- $selector,
370
- min-height,
371
- $value,
372
- $important: defaults.$use-important,
373
- $theme: $theme-name
374
- );
375
- }
342
+ // @each $spacer, $value in root-variables.$spacers {
343
+ // // e.g. `.dark:h-1` or `.light:h-5`
344
+ // $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
345
+
346
+ // @include utility.create(
347
+ // $selector,
348
+ // height,
349
+ // $value,
350
+ // $important: defaults.$use-important,
351
+ // $theme: $theme-name
352
+ // );
353
+
354
+ // // e.g. `.dark:max-h-1` or `.light:max-h-5`
355
+ // $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
356
+
357
+ // @include utility.create(
358
+ // $selector,
359
+ // max-height,
360
+ // $value,
361
+ // $important: defaults.$use-important,
362
+ // $theme: $theme-name
363
+ // );
364
+
365
+ // // e.g. `.dark:min-h-1` or `.light:min-h-5`
366
+ // $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
367
+
368
+ // @include utility.create(
369
+ // $selector,
370
+ // min-height,
371
+ // $value,
372
+ // $important: defaults.$use-important,
373
+ // $theme: $theme-name
374
+ // );
375
+ // }
376
376
  }
377
377
  }
378
378
  }
@@ -388,39 +388,16 @@
388
388
  // e.g. `.hover:h-min-content` or `.focus:h-fit-content`
389
389
  $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$height};
390
390
 
391
- @include utility.create($selector, height, $value, $state: $state-name);
392
-
393
- // e.g. `.hover:max-h-min-content` or `.focus:max-h-fit-content`
394
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$height};
395
-
396
391
  @include utility.create(
397
392
  $selector,
398
- max-height,
399
- $value,
400
- $important: defaults.$use-important,
401
- $state: $state-name
402
- );
403
-
404
- // e.g. `.hover:min-h-min-content` or `.focus:min-h-fit-content`
405
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$height};
406
-
407
- @include utility.create(
408
- $selector,
409
- min-height,
393
+ height,
410
394
  $value,
411
395
  $important: defaults.$use-important,
412
396
  $state: $state-name
413
397
  );
414
- }
415
-
416
- @each $spacer, $value in root-variables.$spacers {
417
- // e.g. `.hover:h-1` or `.focus:h-5`
418
- $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
419
-
420
- @include utility.create($selector, height, $value, $state: $state-name);
421
398
 
422
- // e.g. `.hover:max-h-1` or `.focus:max-h-5`
423
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
399
+ // e.g. `.hover:max-h-min-content` or `.focus:max-h-fit-content`
400
+ $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$height};
424
401
 
425
402
  @include utility.create(
426
403
  $selector,
@@ -430,8 +407,8 @@
430
407
  $state: $state-name
431
408
  );
432
409
 
433
- // e.g. `.hover:min-h-1` or `.focus:min-h-5`
434
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
410
+ // e.g. `.hover:min-h-min-content` or `.focus:min-h-fit-content`
411
+ $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$height};
435
412
 
436
413
  @include utility.create(
437
414
  $selector,
@@ -441,6 +418,35 @@
441
418
  $state: $state-name
442
419
  );
443
420
  }
421
+
422
+ // @each $spacer, $value in root-variables.$spacers {
423
+ // // e.g. `.hover:h-1` or `.focus:h-5`
424
+ // $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
425
+
426
+ // @include utility.create($selector, height, $value, $state: $state-name);
427
+
428
+ // // e.g. `.hover:max-h-1` or `.focus:max-h-5`
429
+ // $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
430
+
431
+ // @include utility.create(
432
+ // $selector,
433
+ // max-height,
434
+ // $value,
435
+ // $important: defaults.$use-important,
436
+ // $state: $state-name
437
+ // );
438
+
439
+ // // e.g. `.hover:min-h-1` or `.focus:min-h-5`
440
+ // $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
441
+
442
+ // @include utility.create(
443
+ // $selector,
444
+ // min-height,
445
+ // $value,
446
+ // $important: defaults.$use-important,
447
+ // $state: $state-name
448
+ // );
449
+ // }
444
450
  }
445
451
  }
446
452
 
@@ -486,40 +492,40 @@
486
492
  );
487
493
  }
488
494
 
489
- @each $spacer, $value in root-variables.$spacers {
490
- // e.g. `.md:h-1` or `.lg:h-5`
491
- $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
492
-
493
- @include utility.create(
494
- $selector,
495
- height,
496
- $value,
497
- $important: defaults.$use-important,
498
- $container: $container-name
499
- );
500
-
501
- // e.g. `.md:max-h-1` or `.lg:max-h-5`
502
- $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
503
-
504
- @include utility.create(
505
- $selector,
506
- max-height,
507
- $value,
508
- $important: defaults.$use-important,
509
- $container: $container-name
510
- );
511
-
512
- // e.g. `.md:min-h-1` or `.lg:min-h-5`
513
- $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
514
-
515
- @include utility.create(
516
- $selector,
517
- min-height,
518
- $value,
519
- $important: defaults.$use-important,
520
- $container: $container-name
521
- );
522
- }
495
+ // @each $spacer, $value in root-variables.$spacers {
496
+ // // e.g. `.md:h-1` or `.lg:h-5`
497
+ // $selector: #{$selector-prefix}#{defaults.$height-selector-prefix}#{$spacer};
498
+
499
+ // @include utility.create(
500
+ // $selector,
501
+ // height,
502
+ // $value,
503
+ // $important: defaults.$use-important,
504
+ // $container: $container-name
505
+ // );
506
+
507
+ // // e.g. `.md:max-h-1` or `.lg:max-h-5`
508
+ // $selector: #{$selector-prefix}#{defaults.$max-height-selector-prefix}#{$spacer};
509
+
510
+ // @include utility.create(
511
+ // $selector,
512
+ // max-height,
513
+ // $value,
514
+ // $important: defaults.$use-important,
515
+ // $container: $container-name
516
+ // );
517
+
518
+ // // e.g. `.md:min-h-1` or `.lg:min-h-5`
519
+ // $selector: #{$selector-prefix}#{defaults.$min-height-selector-prefix}#{$spacer};
520
+
521
+ // @include utility.create(
522
+ // $selector,
523
+ // min-height,
524
+ // $value,
525
+ // $important: defaults.$use-important,
526
+ // $container: $container-name
527
+ // );
528
+ // }
523
529
  }
524
530
  }
525
531
  }
@@ -12,6 +12,7 @@
12
12
  // Utility modifiers.
13
13
  $selector-base: root-defaults.$utility-selector-base !default;
14
14
  $use-important: root-defaults.$use-important !default;
15
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
15
16
  $screen-aware: true !default;
16
17
  $theme-aware: false !default;
17
18
  $state-aware: false !default;
@@ -26,7 +27,7 @@ $state-aware-selector-prefix: root-defaults.$utility-state-aware-selector-prefix
26
27
  $container-aware-selector-prefix: root-defaults.$utility-container-aware-selector-prefix !default;
27
28
 
28
29
  // Inset properties.
29
- $base-inset-properties: (
30
+ $-inset-properties: (
30
31
  inset: inset,
31
32
  inset-x: left right,
32
33
  inset-y: top bottom,
@@ -38,10 +39,17 @@ $base-inset-properties: (
38
39
  left: left,
39
40
  );
40
41
  $custom-inset-properties: () !default;
41
- $inset-properties: map.merge($base-inset-properties, $custom-inset-properties);
42
+ $inset-properties: () !default;
43
+
44
+ // @todo remove this once $custom-inset-properties is removed
45
+ @if $custom-inset-properties != () {
46
+ @warn "`$custom-inset-properties` is deprecated and will be removed in a future release of Graupl. Use `$inset-properties` instead.";
47
+
48
+ $inset-properties: map.merge($inset-properties, $custom-inset-properties);
49
+ }
42
50
 
43
51
  // Inset values.
44
- $base-inset-values: (
52
+ $-inset-values: (
45
53
  0: 0,
46
54
  auto: auto,
47
55
  full: 100%,
@@ -52,4 +60,17 @@ $base-inset-values: (
52
60
  two-thirds: calc(100% / 1.5),
53
61
  );
54
62
  $custom-inset-values: () !default;
55
- $inset-values: map.merge($base-inset-values, $custom-inset-values);
63
+ $inset-values: () !default;
64
+
65
+ // @todo remove this once $custom-inset-values is removed
66
+ @if $custom-inset-values != () {
67
+ @warn "`$custom-inset-values` is deprecated and will be removed in a future release of Graupl. Use `$inset-values` instead.";
68
+
69
+ $inset-values: map.merge($inset-values, $custom-inset-values);
70
+ }
71
+
72
+ // Merge custom properties with base properties if generating base utilities.
73
+ @if $generate-base-utilities {
74
+ $inset-properties: map.merge($-inset-properties, $inset-properties);
75
+ $inset-values: map.merge($-inset-values, $inset-values);
76
+ }
@@ -82,6 +82,7 @@
82
82
  // The following variables control the generated classes:
83
83
  // - `$selector-base`: The base selector for the utility classes.
84
84
  // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
85
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
85
86
  // - `$screen-aware`: A flag to generate screen-aware utility classes.
86
87
  // - `$theme-aware`: A flag to generate theme-aware utility classes.
87
88
  // - `$state-aware`: A flag to generate state-aware utility classes.
@@ -94,11 +95,9 @@
94
95
  // - `$theme-aware-selector-prefix`: The prefix for theme-aware utility classes.
95
96
  // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
96
97
  // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
97
- // - `$base-inset-properties`: The base properties and values for the inset utility classes.
98
- // - `$custom-inset-properties`: Additional properties and values for the inset utility classes.
98
+ // - `$custom-inset-properties`: [DEPRECATED] Additional properties and values for the inset utility classes.
99
99
  // - `$inset-properties`: The combined properties and values for the inset utility classes.
100
- // - `$base-inset-values`: The base inset values.
101
- // - `$custom-inset-values`: Additional inset values.
100
+ // - `$custom-inset-values`: [DEPRECATED] Additional inset values.
102
101
  // - `$inset-values`: The combined inset values.
103
102
  //
104
103
  // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
@@ -12,6 +12,7 @@
12
12
  // Utility modifiers.
13
13
  $selector-base: root-defaults.$utility-selector-base !default;
14
14
  $use-important: root-defaults.$use-important !default;
15
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
15
16
  $screen-aware: false !default;
16
17
  $theme-aware: false !default;
17
18
  $state-aware: false !default;
@@ -27,7 +28,7 @@ $container-aware-selector-prefix: root-defaults.$utility-container-aware-selecto
27
28
 
28
29
  // Justify content properties.
29
30
  $justify-content-selector-prefix: "justify-content-" !default;
30
- $base-justify-content-properties: (
31
+ $-justify-content-properties: (
31
32
  normal: normal,
32
33
  start: flex-start,
33
34
  end: flex-end,
@@ -38,28 +39,42 @@ $base-justify-content-properties: (
38
39
  stretch: stretch,
39
40
  );
40
41
  $custom-justify-content-properties: () !default;
41
- $justify-content-properties: map.merge(
42
- $base-justify-content-properties,
43
- $custom-justify-content-properties
44
- );
42
+ $justify-content-properties: () !default;
43
+
44
+ // @todo remove this once $custom-justify-content-properties is removed
45
+ @if $custom-justify-content-properties != () {
46
+ @warn "`$custom-justify-content-properties` is deprecated and will be removed in a future release of Graupl. Use `$justify-content-properties` instead.";
47
+
48
+ $justify-content-properties: map.merge(
49
+ $justify-content-properties,
50
+ $custom-justify-content-properties
51
+ );
52
+ }
45
53
 
46
54
  // Justify items properties.
47
55
  $justify-items-selector-prefix: "justify-items-" !default;
48
- $base-justify-items-properties: (
56
+ $-justify-items-properties: (
49
57
  start: start,
50
58
  end: end,
51
59
  center: center,
52
60
  stretch: stretch,
53
61
  );
54
62
  $custom-justify-items-properties: () !default;
55
- $justify-items-properties: map.merge(
56
- $base-justify-items-properties,
57
- $custom-justify-items-properties
58
- );
63
+ $justify-items-properties: () !default;
64
+
65
+ // @todo remove this once $custom-justify-items-properties is removed
66
+ @if $custom-justify-items-properties != () {
67
+ @warn "`$custom-justify-items-properties` is deprecated and will be removed in a future release of Graupl. Use `$justify-items-properties` instead.";
68
+
69
+ $justify-items-properties: map.merge(
70
+ $justify-items-properties,
71
+ $custom-justify-items-properties
72
+ );
73
+ }
59
74
 
60
75
  // Justify self properties.
61
76
  $justify-self-selector-prefix: "justify-self-" !default;
62
- $base-justify-self-properties: (
77
+ $-justify-self-properties: (
63
78
  auto: auto,
64
79
  start: start,
65
80
  end: end,
@@ -67,7 +82,30 @@ $base-justify-self-properties: (
67
82
  stretch: stretch,
68
83
  );
69
84
  $custom-justify-self-properties: () !default;
70
- $justify-self-properties: map.merge(
71
- $base-justify-self-properties,
72
- $custom-justify-self-properties
73
- );
85
+ $justify-self-properties: () !default;
86
+
87
+ // @todo remove this once $custom-justify-self-properties is removed
88
+ @if $custom-justify-self-properties != () {
89
+ @warn "`$custom-justify-self-properties` is deprecated and will be removed in a future release of Graupl. Use `$justify-self-properties` instead.";
90
+
91
+ $justify-self-properties: map.merge(
92
+ $justify-self-properties,
93
+ $custom-justify-self-properties
94
+ );
95
+ }
96
+
97
+ // Merge custom properties with base properties if generating base utilities.
98
+ @if $generate-base-utilities {
99
+ $justify-content-properties: map.merge(
100
+ $-justify-content-properties,
101
+ $justify-content-properties
102
+ );
103
+ $justify-items-properties: map.merge(
104
+ $-justify-items-properties,
105
+ $justify-items-properties
106
+ );
107
+ $justify-self-properties: map.merge(
108
+ $-justify-self-properties,
109
+ $justify-self-properties
110
+ );
111
+ }
@@ -27,6 +27,7 @@
27
27
  // The following variables control the generated classes:
28
28
  // - `$selector-base`: The base selector for the utility classes.
29
29
  // - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
30
+ // - `$generate-base-utilities`: A flag to determine if the base utility classes should be generated.
30
31
  // - `$screen-aware`: A flag to generate screen-aware utility classes.
31
32
  // - `$theme-aware`: A flag to generate theme-aware utility classes.
32
33
  // - `$state-aware`: A flag to generate state-aware utility classes.
@@ -40,16 +41,13 @@
40
41
  // - `$state-aware-selector-prefix`: The prefix for state-aware utility classes.
41
42
  // - `$container-aware-selector-prefix`: The prefix for container-aware utility classes.
42
43
  // - `$justify-content-selector-prefix`: The prefix for the justify-content utility classes.
43
- // - `$base-justify-content-properties`: The base properties and values for justify-content.
44
- // - `$custom-justify-content-properties`: The custom properties and values for justify-content.
44
+ // - `$custom-justify-content-properties`: [DEPRECATED] The custom properties and values for justify-content.
45
45
  // - `$justify-content-properties`: The combined properties and values for justify-content.
46
46
  // - `$justify-items-selector-prefix`: The prefix for the justify-items utility classes.
47
- // - `$base-justify-items-properties`: The base properties and values for justify-items.
48
- // - `$custom-justify-items-properties`: The custom properties and values for justify-items.
47
+ // - `$custom-justify-items-properties`: [DEPRECATED] The custom properties and values for justify-items.
49
48
  // - `$justify-items-properties`: The combined properties and values for justify-items.
50
49
  // - `$justify-self-selector-prefix`: The prefix for the justify-self utility classes.
51
- // - `$base-justify-self-properties`: The base properties and values for justify-self.
52
- // - `$custom-justify-self-properties`: The custom properties and values for justify-self.
50
+ // - `$custom-justify-self-properties`: [DEPRECATED] The custom properties and values for justify-self.
53
51
  // - `$justify-self-properties`: The combined properties and values for justify-self.
54
52
  //
55
53
  // Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.