@progressio_resources/gravity-design-system 1.1.12 → 1.1.13

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 (24) hide show
  1. package/esm2020/lib/components/gravity-attach-file/gravity-attach-file.component.mjs +3 -3
  2. package/esm2020/lib/components/gravity-calendar/gravity-calendar.component.mjs +3 -3
  3. package/esm2020/lib/components/gravity-dialog/gravity-dialog.component.mjs +2 -2
  4. package/esm2020/lib/components/gravity-dropdown-list/gravity-dropdown-list.component.mjs +3 -3
  5. package/esm2020/lib/components/gravity-notification/gravity-notification.component.mjs +2 -2
  6. package/esm2020/lib/components/gravity-notification-instant/gravity-notification-instant-container.component.mjs +2 -2
  7. package/esm2020/lib/components/gravity-switch/gravity-switch.component.mjs +3 -3
  8. package/esm2020/lib/components/gravity-text-field/gravity-text-field.component.mjs +3 -3
  9. package/fesm2015/progressio_resources-gravity-design-system.mjs +16 -16
  10. package/fesm2015/progressio_resources-gravity-design-system.mjs.map +1 -1
  11. package/fesm2020/progressio_resources-gravity-design-system.mjs +16 -16
  12. package/fesm2020/progressio_resources-gravity-design-system.mjs.map +1 -1
  13. package/package.json +1 -1
  14. package/src/lib/styles/_responsive.scss +61 -0
  15. package/src/lib/styles/_shared.scss +0 -1
  16. package/src/lib/styles/{_card_highlight.scss → components/_card_highlight.scss} +5 -4
  17. package/src/lib/styles/{_datepicker.scss → components/_datepicker.scss} +6 -5
  18. package/src/lib/styles/fundamentals/border-radius/_hero.border-radius.scss +40 -0
  19. package/src/lib/styles/fundamentals/breakpoints/breakpoints.scss +7 -0
  20. package/src/lib/styles/fundamentals/grids/grids.scss +6 -0
  21. package/src/lib/styles/fundamentals/spacing/spacing.scss +24 -0
  22. package/src/lib/styles/gravity-design-system.scss +5 -3
  23. package/src/lib/styles/overwrite/bootstrap/_modal.scss +2 -2
  24. /package/src/lib/styles/{_link.scss → components/_link.scss} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progressio_resources/gravity-design-system",
3
3
  "description": "Gravity Design System",
4
- "version": "1.1.12",
4
+ "version": "1.1.13",
5
5
  "license": "SEE LICENSE IN LIBRARY-LICENSE",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^15.1.0",
@@ -0,0 +1,61 @@
1
+ @import "./fundamentals/breakpoints/breakpoints";
2
+
3
+ .hide-xl {
4
+ @media (max-width: map-get($breakpoints, xl)) {
5
+ display: none;
6
+ }
7
+ }
8
+
9
+ .hide-lg {
10
+ @media (max-width: map-get($breakpoints, lg)) {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ .hide-md {
16
+ @media (max-width: map-get($breakpoints, md)) {
17
+ display: none;
18
+ }
19
+ }
20
+
21
+ .hide-sm {
22
+ @media (max-width: map-get($breakpoints, sm)) {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ .hide-xs {
28
+ @media (max-width: map-get($breakpoints, xs)) {
29
+ display: none;
30
+ }
31
+ }
32
+
33
+ .show-xl {
34
+ @media (min-width: map-get($breakpoints, xl) + 1) {
35
+ display: none;
36
+ }
37
+ }
38
+
39
+ .show-lg {
40
+ @media (min-width: map-get($breakpoints, lg) + 1) {
41
+ display: none;
42
+ }
43
+ }
44
+
45
+ .show-md {
46
+ @media (min-width: map-get($breakpoints, md) + 1) {
47
+ display: none;
48
+ }
49
+ }
50
+
51
+ .show-sm {
52
+ @media (min-width: map-get($breakpoints, sm) + 1) {
53
+ display: none;
54
+ }
55
+ }
56
+
57
+ .show-xs {
58
+ @media (min-width: map-get($breakpoints, xs) + 1) {
59
+ display: none;
60
+ }
61
+ }
@@ -1,4 +1,3 @@
1
- $border-radius-system: 0.625rem;
2
1
  $input-height: 3rem;
3
2
 
4
3
  .text-negative {
@@ -1,12 +1,13 @@
1
- @import "fundamentals/typography/hero.typography";
2
- @import "shared";
1
+ @import "../fundamentals/typography/hero.typography";
2
+ @import "../fundamentals/border-radius/hero.border-radius";
3
+ @import "src/lib/styles/shared";
3
4
 
4
5
  .gravity-card-highlight {
5
6
  @extend .hr-body-text, .md-regular;
6
7
 
7
8
  background-color: var(--surface-primary);
8
9
  border-left: 1.25rem solid var(--bg-highlight-neutro-secondary);
9
- border-radius: $border-radius-system;
10
+ border-radius: $border-radius-md;
10
11
  color: var(--text-primary);
11
12
  padding: 1.5rem;
12
13
 
@@ -23,7 +24,7 @@
23
24
 
24
25
  &.gravity-card-content {
25
26
  border: 1px solid var(--divider-primary);
26
- border-radius: $border-radius-system;
27
+ border-radius: $border-radius-md;
27
28
  margin-top: 1rem;
28
29
  }
29
30
 
@@ -1,16 +1,17 @@
1
- @import "./fundamentals/typography/hero.typography";
2
- @import "shared";
1
+ @import "../fundamentals/typography/hero.typography";
2
+ @import "../fundamentals/border-radius/hero.border-radius";
3
+ @import "src/lib/styles/shared";
3
4
 
4
5
  ngb-datepicker.gravity-datepicker-dialog {
5
6
  background-color: var(--bg-calender-primary);
6
- border-radius: $border-radius-system;
7
+ border-radius: $border-radius-md;
7
8
  box-shadow: 0 0 10px #AAA;
8
9
  color: var(--on-bg-calender-primary);
9
10
 
10
11
  .ngb-dp-header {
11
12
  background-color: var(--bg-calendar-nav-primary);
12
- border-top-left-radius: $border-radius-system;
13
- border-top-right-radius: $border-radius-system;
13
+ border-top-left-radius: $border-radius-md;
14
+ border-top-right-radius: $border-radius-md;
14
15
  color: var(--on-bg-calendar-nav-primary);
15
16
  height: 3.125rem;
16
17
  min-width: 17.75rem;
@@ -0,0 +1,40 @@
1
+ $border-radius-none: 0;
2
+ $border-radius-xs: 0.0625rem; //1px
3
+ $border-radius-sm: 0.3125rem; //5px
4
+ $border-radius-md: 0.625rem; //10px
5
+ $border-radius-lg: 0.9375rem; //16px
6
+ $border-radius-xl: 1.25rem; //20px
7
+ $border-radius-xxl: 2rem; //32px
8
+ $border-radius-rounded: 50%;
9
+
10
+ .border-radius-none {
11
+ border-radius: $border-radius-none;
12
+ }
13
+
14
+ .border-radius-xs {
15
+ border-radius: $border-radius-xs;
16
+ }
17
+
18
+ .border-radius-sm {
19
+ border-radius: $border-radius-sm;
20
+ }
21
+
22
+ .border-radius-md {
23
+ border-radius: $border-radius-md;
24
+ }
25
+
26
+ .border-radius-lg {
27
+ border-radius: $border-radius-lg;
28
+ }
29
+
30
+ .border-radius-xl {
31
+ border-radius: $border-radius-xl;
32
+ }
33
+
34
+ .border-radius-xxl {
35
+ border-radius: $border-radius-xxl;
36
+ }
37
+
38
+ .border-radius-rounded {
39
+ border-radius: $border-radius-rounded;
40
+ }
@@ -0,0 +1,7 @@
1
+ $breakpoints: (
2
+ xs: 0,
3
+ sm: 576px,
4
+ md: 992px,
5
+ lg: 1440px,
6
+ xl: 1920px
7
+ );
@@ -0,0 +1,6 @@
1
+ $grids: (
2
+ sm: 4,
3
+ md: 6,
4
+ lg: 12,
5
+ xl: 16
6
+ );
@@ -0,0 +1,24 @@
1
+ $scss-types: padding, margin;
2
+ $spacing-sizes: xs, sm, md, lg, xl, xxl, xxxl, xxxxl;
3
+ $spacing-types: '', -top, -bottom, -left, -right, -block, -inline;
4
+
5
+ $spacing-values: (
6
+ xs: 8px,
7
+ sm: 16px,
8
+ md: 24px,
9
+ lg: 32px,
10
+ xl: 48px,
11
+ xxl: 64px,
12
+ xxxl: 96px,
13
+ xxxxl: 192px
14
+ );
15
+
16
+ @each $scss-type in $scss-types {
17
+ @each $size in $spacing-sizes {
18
+ @each $spacing-type in $spacing-types {
19
+ .gravity-#{$scss-type}#{$spacing-type}-#{$size} {
20
+ #{$scss-type}#{$spacing-type}: map-get($spacing-values, $size);
21
+ }
22
+ }
23
+ }
24
+ }
@@ -1,7 +1,9 @@
1
+ @import "./fundamentals/border-radius/hero.border-radius";
1
2
  @import "./fundamentals/colors/tokens/hero.tokens";
3
+ @import "./fundamentals/spacing/spacing";
2
4
  @import "./fundamentals/typography/hero.typography";
3
5
  @import "./overwrite/bootstrap/bootstrap-export";
4
6
  @import "./overwrite/pretty-checkbox/pretty-checkbox.scss";
5
- @import "./card_highlight";
6
- @import "./datepicker";
7
- @import "./link";
7
+ @import "components/card_highlight";
8
+ @import "components/datepicker";
9
+ @import "components/link";
@@ -1,4 +1,4 @@
1
- @import "../../shared";
1
+ @import "../../fundamentals/border-radius/hero.border-radius";
2
2
 
3
3
  $modal-margin: 3.5rem;
4
4
 
@@ -87,7 +87,7 @@ $modal-margin: 3.5rem;
87
87
 
88
88
  background-clip: padding-box;
89
89
  background-color: var(--dialog-background-color);
90
- border-radius: $border-radius-system;
90
+ border-radius: $border-radius-md;
91
91
  box-shadow: 0 27px 34px #000c208f;
92
92
  color: var(--dialog-text-color);
93
93
  display: flex;