@terrahq/design-system 0.8.0 → 0.10.0

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 (32) hide show
  1. package/README.md +5 -4
  2. package/bin/terra-ds.mjs +0 -4
  3. package/dist/icons.css +1 -0
  4. package/dist/style.css +1 -1
  5. package/package.json +1 -1
  6. package/src/scss/framework/_var/_vars.scss +14 -15
  7. package/src/scss/framework/components/btn.scss +1 -0
  8. package/src/scss/framework/foundation/font/_make-font.scss +12 -12
  9. package/src/scss/framework/foundation/gap/_make-gap.scss +10 -10
  10. package/src/scss/framework/foundation/grid/_columns.scss +51 -10
  11. package/src/scss/framework/foundation/grid/_container.scss +0 -7
  12. package/src/scss/framework/foundation/grid/_make-container.scss +3 -3
  13. package/src/scss/framework/foundation/section/_make-section.scss +18 -18
  14. package/src/scss/framework/foundation/spaces/_make-spaces.scss +10 -10
  15. package/src/scss/framework/utilities/_align-items.scss +5 -5
  16. package/src/scss/framework/utilities/_aspect-ratio.scss +5 -5
  17. package/src/scss/framework/utilities/_display.scss +6 -5
  18. package/src/scss/framework/utilities/_flex-direction.scss +5 -5
  19. package/src/scss/framework/utilities/_font-style.scss +5 -5
  20. package/src/scss/framework/utilities/_font-weight.scss +5 -5
  21. package/src/scss/framework/utilities/_height.scss +5 -5
  22. package/src/scss/framework/utilities/_justify-content.scss +5 -5
  23. package/src/scss/framework/utilities/_order.scss +5 -5
  24. package/src/scss/framework/utilities/_overflow.scss +6 -5
  25. package/src/scss/framework/utilities/_position.scss +5 -5
  26. package/src/scss/framework/utilities/_spacing.scss +26 -26
  27. package/src/scss/framework/utilities/_states.scss +0 -7
  28. package/src/scss/framework/utilities/_text-align.scss +7 -7
  29. package/src/scss/framework/utilities/_text-transform.scss +47 -0
  30. package/src/scss/framework/utilities/_utilities.scss +1 -0
  31. package/src/scss/framework/utilities/_width.scss +5 -5
  32. package/terra.config.example.js +1 -2
@@ -25,13 +25,6 @@
25
25
  }
26
26
  }
27
27
 
28
- // u--hover-tint-{letter}: a faint wash of the color (10%) on hover, for quiet buttons: pair it with the same f--color-{letter}
29
- @each $name, $color in $color-options {
30
- .u--hover-tint-#{$name}:hover {
31
- background-color: rgba($color, $tint-alpha);
32
- }
33
- }
34
-
35
28
  // u--group on a parent, u--group-hover-* on its children
36
29
  @each $name, $color in $color-options {
37
30
  .u--group:hover .u--group-hover-color-#{$name} {
@@ -9,26 +9,26 @@ $text-align-values: (
9
9
 
10
10
  $text-align-breakpoints: (
11
11
  all: $all,
12
- desktop: $desktop,
13
- laptop: $laptop,
14
- tabletl: $tabletl,
15
- tabletm: $tabletm,
16
12
  tablets: $tablets,
17
- mobile: $mobile,
13
+ tabletm: $tabletm,
14
+ tabletl: $tabletl,
15
+ laptop: $laptop,
16
+ desktop: $desktop,
17
+ wide: $wide,
18
18
  );
19
19
 
20
20
  @mixin text-align-utility($text-prop, $breakpoints) {
21
21
  @each $breakpoint-name, $breakpoint-value in $breakpoints {
22
22
  @if ($breakpoint-value == 0) {
23
23
  @each $name, $property in $text-prop {
24
- .u--text-align-#{$name} {
24
+ .u--text-#{$name} {
25
25
  text-align: $property;
26
26
  }
27
27
  }
28
28
  } @else {
29
29
  @media screen and ($viewport-type: $breakpoint-value) {
30
30
  @each $name, $property in $text-prop {
31
- .u--text-align-#{$breakpoint-name}-#{$name} {
31
+ .u--text-#{$breakpoint-name}-#{$name} {
32
32
  text-align: $property;
33
33
  }
34
34
  }
@@ -0,0 +1,47 @@
1
+ @use "@scss/framework/_var/_vars.scss" as *;
2
+ @use "sass:meta";
3
+
4
+ $text-transform-values: (
5
+ // capitalize: capitalize,
6
+ uppercase: uppercase,
7
+ // lowercase:lowercase,
8
+ // none:none,
9
+ );
10
+
11
+ $text-transform-breakpoints: (
12
+ all: $all,
13
+ // tablets: $tablets,
14
+ // tabletm: $tabletm,
15
+ //tabletl: $tabletl,
16
+ // laptop: $laptop,
17
+ // desktop: $desktop,
18
+ // wide: $wide,
19
+ );
20
+
21
+ @mixin text-transform-utility($text-prop, $breakpoints) {
22
+ @each $breakpoint-name, $breakpoint-value in $breakpoints {
23
+ @if ($breakpoint-value == 0) {
24
+ @each $name, $property in $text-prop {
25
+ .u--text-#{$name} {
26
+ text-transform: $property;
27
+ }
28
+ }
29
+ } @else {
30
+ @media screen and ($viewport-type: $breakpoint-value) {
31
+ @each $name, $property in $text-prop {
32
+ .u--text-#{$breakpoint-name}-#{$name} {
33
+ text-transform: $property;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ @if meta.variable-exists(text-transform-breakpoints) {
41
+ @include text-transform-utility(
42
+ $text-transform-values,
43
+ $text-transform-breakpoints
44
+ );
45
+ } @else {
46
+ @include text-transform-utility($text-transform-values, $breakpoints-grid);
47
+ }
@@ -26,3 +26,4 @@
26
26
  @forward './min-width.scss';
27
27
  @forward './cursor.scss';
28
28
  @forward './size.scss';
29
+ @forward './text-transform.scss';
@@ -11,12 +11,12 @@ $width-values: (
11
11
 
12
12
  $width-breakpoints: (
13
13
  all: $all,
14
- desktop: $desktop,
15
- laptop: $laptop,
16
- tabletl: $tabletl,
17
- tabletm: $tabletm,
18
14
  tablets: $tablets,
19
- mobile: $mobile,
15
+ tabletm: $tabletm,
16
+ tabletl: $tabletl,
17
+ laptop: $laptop,
18
+ desktop: $desktop,
19
+ wide: $wide,
20
20
  );
21
21
 
22
22
  @mixin width-utility($width-prop, $breakpoints) {
@@ -11,13 +11,12 @@ export default {
11
11
  shadows: { a: '0 1px 2px rgb(15 15 15 / .06), 0 4px 16px rgb(15 15 15 / .08)' }, // f--shadow-* (default a, b, c)
12
12
 
13
13
  // Scales of the utilities (each step is a class)
14
- spacing: [0, 1, 2, 4, 8], // u--p-*, u--m-*, u--gap-* (x 8px; default 0 to 10, 12 and 15)
14
+ spacing: [0, 1, 2, 4, 8], // u--padding-*, u--margin-*, u--gap-* (x 8px; default 0 to 10, 12 and 15)
15
15
  sizes: [2, 4, 5, 6, 8], // u--height-*, u--width-* (x 8px; default 2, 3, 4, 5, 6, 8, 10, 12)
16
16
  minWidth: [10, 20, 30, 40], // u--min-width-* (x 8px; this is the default)
17
17
  opacity: { 100: 1, 85: 0.85, 70: 0.7, 50: 0.5 }, // u--opacity-* (this is the default)
18
18
  zIndex: [0, 10, 20, 40], // u--z-index-* (this is the default)
19
19
  offsets: { 0: '0', 100: '100%' }, // u--top-*, u--right-*, u--bottom-*, u--left-* (this is the default)
20
- tint: 0.1, // strength of u--hover-tint-* (this is the default)
21
20
 
22
21
  // Motion
23
22
  time: { a: '0.1s', b: '0.3s', c: '0.6s' }, // micro-interactions, expansion, background dimming (this is the default)