@rypen-dev/shared-components 6.0.5 → 6.1.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rypen-dev/shared-components",
3
3
  "description": "Shared styles and Vuejs ui components for Rypen projects. Starting with version 6, this package is built with Webpack 5 and Vue 3.",
4
- "version": "6.0.5",
4
+ "version": "6.1.0",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "build": "webpack --config ./webpack.config.js",
package/scss/_mixins.scss CHANGED
@@ -1,6 +1,8 @@
1
1
  /// <reference path="./variables" />
2
2
  /// <reference path="./vendor/foundation-settings" />
3
3
 
4
+ @use './variables' as *;
5
+
4
6
  @mixin button-shadow {
5
7
  box-shadow: 0 6px 20px 1px $shadow-color;
6
8
  }
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  // Breakpoints
2
4
  $breakpoint-small: 0 !default;
3
5
  $breakpoint-medium: 768px !default;
@@ -22,14 +24,14 @@ $accent-dark-blue: #3D68AD; // new for studio
22
24
 
23
25
  $secondary-purple: #8d7bcd; // highlight purple
24
26
  $tertiary-purple: #b1a0e0; // highlight purple 2
25
- $shadow-purple: fade-out(#4e2c6b, 0.84); // grape 16
27
+ $shadow-purple: color.adjust(#4e2c6b, $alpha: -84%); // grape 16
26
28
 
27
29
  $light-gray: #f7f7f7 !default; // light gray
28
30
  $medium-gray: #dcd6e8 !default; // pale grey
29
31
  $middle-gray: #eaeaea !default;
30
32
  $dark-gray: #767676 !default;
31
- $gray-overlay: fade-out($black, 0.97) !default;
32
- $gray-underlay: fade-out($medium-gray, 0.5) !default;
33
+ $gray-overlay: color.adjust($black, $alpha: -97%) !default;
34
+ $gray-underlay: color.adjust($medium-gray, $alpha: -50%) !default;
33
35
  $text-gray: #c2c1c8 !default;
34
36
  $border-gray: #e4e4e4 !default;
35
37
  $shadow-color: $shadow-purple !default;
@@ -75,7 +77,7 @@ $navigation-link-highlight: $warning !default;
75
77
  $navigation-divider-color: $medium-gray !default;
76
78
 
77
79
  $call-to-action-color: $alert !default;
78
- $call-to-action-color-active: darken($alert, 20%) !default;
80
+ $call-to-action-color-active: color.scale($alert, $lightness: -20%) !default;
79
81
  $default-button-bg-color: $white !default;
80
82
  $default-button-hover-bg-color: $primary !default;
81
83
  $button-hover-bg-color: $white !default;
@@ -1,3 +1,6 @@
1
+ @use './variables' as *;
2
+ @use './vendor/foundation-settings' as *;
3
+
1
4
  .order-summary {
2
5
  .value {
3
6
  font-size: 1.25rem;
@@ -2,6 +2,8 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
5
7
  // called "labels" in foundation
6
8
 
7
9
  .label {
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  @use "sass:math";
6
9
 
7
10
  .cta-link {
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  .photo-collage {
6
9
  position: relative;
7
10
  width: 250px;
@@ -1,6 +1,9 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
+ @use '../variables' as *;
5
+ @use '../vendor/foundation-settings' as *;
6
+
4
7
  @media (min-width: map-get($breakpoints, medium)) {
5
8
  body.flyover-open {
6
9
  overflow: hidden;
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  input[type=date]::-webkit-datetime-edit-text {
6
9
  color: $input-placeholder-color;
7
10
  }
@@ -1,3 +1,6 @@
1
+ @use '../variables' as *;
2
+ @use '../vendor/foundation-settings' as *;
3
+
1
4
  @media all and (max-width: map-get($breakpoints, medium) - 1px) {
2
5
  body:after {
3
6
  content: 'size-small';
@@ -1,6 +1,9 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
+ @use '../variables' as *;
5
+ @use '../vendor/foundation-settings' as *;
6
+
4
7
  .loader {
5
8
  text-align: center;
6
9
  padding: 30px 0;
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  .modal-mask {
6
9
  position: fixed;
7
10
  z-index: 1000;
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  nav > ul {
6
9
  list-style-type: none;
7
10
  margin: 0;
@@ -1,3 +1,6 @@
1
+ @use '../variables' as *;
2
+ @use '../vendor/foundation-settings' as *;
3
+
1
4
  .notification-row {
2
5
  .notification-summary {
3
6
  display: flex;
@@ -2,6 +2,11 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
8
+ @use "sass:color";
9
+
5
10
  .pill {
6
11
  width: auto !important;
7
12
  display: inline-block;
@@ -29,7 +34,7 @@
29
34
  &:hover,
30
35
  &:focus,
31
36
  &.active {
32
- background-color: fade-out($primary, 0.75) !important;
37
+ background-color: color.adjust($primary, $alpha: -0.75) !important;
33
38
  color: $primary !important;
34
39
  }
35
40
 
@@ -41,7 +46,7 @@
41
46
  &:hover,
42
47
  &:focus,
43
48
  &.active {
44
- background-color: fade-out($warning, 0.75) !important;
49
+ background-color: color.adjust($warning, $alpha: -0.75) !important;
45
50
  color: $warning !important;
46
51
  }
47
52
  }
@@ -54,7 +59,7 @@
54
59
  &:hover,
55
60
  &:focus,
56
61
  &.active {
57
- background-color: fade-out($secondary-pill-color, 0.75) !important;
62
+ background-color: color.adjust($secondary-pill-color, $alpha: -0.75) !important;
58
63
  color: $secondary-pill-color !important;
59
64
  }
60
65
  }
@@ -67,7 +72,7 @@
67
72
  &:hover,
68
73
  &:focus,
69
74
  &.active {
70
- background-color: fade-out($secondary-alt, 0.75) !important;
75
+ background-color: color.adjust($secondary-alt, $alpha: -0.75) !important;
71
76
  color: $secondary-alt !important;
72
77
  }
73
78
  }
@@ -80,7 +85,7 @@
80
85
  &:hover,
81
86
  &:focus,
82
87
  &.active {
83
- background-color: fade-out($success-alt, 0.75) !important;
88
+ background-color: color.adjust($success-alt, $alpha: -0.75) !important;
84
89
  color: $success-alt !important;
85
90
  }
86
91
  }
@@ -93,7 +98,7 @@
93
98
  &:hover,
94
99
  &:focus,
95
100
  &:active {
96
- background-color: fade-out($quaternary, 0.75) !important;
101
+ background-color: color.adjust($quaternary, $alpha: -0.75) !important;
97
102
  color: $quaternary !important;
98
103
  }
99
104
  }
@@ -132,28 +137,28 @@
132
137
  &.orange,
133
138
  &.warning {
134
139
  &::before {
135
- background-color: fade-out($warning, 0.75);
140
+ background-color: color.adjust($warning, $alpha: -0.75);
136
141
  }
137
142
  }
138
143
 
139
144
  &.teal,
140
145
  &.secondary {
141
146
  &::before {
142
- background-color: fade-out($secondary-pill-color, 0.75);
147
+ background-color: color.adjust($secondary-pill-color, $alpha: -0.75);
143
148
  }
144
149
  }
145
150
 
146
151
  &.turquoise,
147
152
  &.success-alt {
148
153
  &::before {
149
- background-color: fade-out($success-alt, 0.75);
154
+ background-color: color.adjust($success-alt, $alpha: -0.75);
150
155
  }
151
156
  }
152
157
 
153
158
  &.blue,
154
159
  &.quaternary {
155
160
  &::before {
156
- background-color: fade-out($quaternary, 0.75);
161
+ background-color: color.adjust($quaternary, $alpha: -0.75);
157
162
  }
158
163
  }
159
164
  }
@@ -190,7 +195,7 @@
190
195
  }
191
196
 
192
197
  &.floating {
193
- box-shadow: 0 6px 17px 1px fade-out($secondary-alt, 0.35) !important;
198
+ box-shadow: 0 6px 17px 1px color.adjust($secondary-alt, $alpha: -0.35) !important;
194
199
  }
195
200
 
196
201
  &.large {
@@ -1,3 +1,6 @@
1
+ @use '../variables' as *;
2
+ @use '../vendor/foundation-settings' as *;
3
+
1
4
  @media print {
2
5
  @page {
3
6
  size: 8.5in 11in;
@@ -1,3 +1,6 @@
1
+ @use '../variables' as *;
2
+ @use '../vendor/foundation-settings' as *;
3
+
1
4
  .progress-bar {
2
5
  ol {
3
6
  list-style-type: none;
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  .image-selector {
6
9
  position: relative;
7
10
  margin-bottom: 20px;
@@ -64,7 +67,7 @@
64
67
  left: 0;
65
68
  width: 100%;
66
69
  padding: 0.5rem;
67
- background-color: fade-out($white, 0.15);
70
+ background-color: color.adjust($white, $alpha: -0.15);
68
71
  font-size: 0.875rem;
69
72
  text-align: center;
70
73
  text-transform: uppercase;
@@ -1,6 +1,9 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
+ @use '../variables' as *;
5
+ @use '../vendor/foundation-settings' as *;
6
+
4
7
  .modal-container {
5
8
  .modal-body {
6
9
  .form.side-by-side {
@@ -2,6 +2,9 @@
2
2
  /// <reference path="../mixins" />
3
3
  /// <reference path="../vendor/foundation-settings" />
4
4
 
5
+ @use '../variables' as *;
6
+ @use '../vendor/foundation-settings' as *;
7
+
5
8
  .specsheet {
6
9
  padding: 1rem 0;
7
10
  font-weight: $headline-weight-normal;
@@ -1,6 +1,9 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
+ @use '../variables' as *;
5
+ @use '../vendor/foundation-settings' as *;
6
+
4
7
  div.table {
5
8
  font-size: 0.9375rem;
6
9
  color: $table-text-color;
@@ -1,3 +1,6 @@
1
+ @use '../variables' as *;
2
+ @use '../vendor/foundation-settings' as *;
3
+
1
4
  .tooltip-container {
2
5
  position: relative;
3
6
 
@@ -1,6 +1,9 @@
1
1
  /// <reference path="../variables" />
2
2
  /// <reference path="../vendor/foundation-settings" />
3
3
 
4
+ @use '../variables' as *;
5
+ @use '../vendor/foundation-settings' as *;
6
+
4
7
  @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Ubuntu:300,400,500');
5
8
 
6
9
  // OpenSans: Light = 300, Regular = 400, Semi-Bold = 600, Bold = 700 (Extra-Bold = 800)
@@ -2,6 +2,9 @@
2
2
  /// <reference path="./mixins" />
3
3
  /// <reference path="./vendor/foundation-settings" />
4
4
 
5
+ @use './variables' as *;
6
+ @use './vendor/foundation-settings' as *;
7
+
5
8
  // --> Originally from layout.scss
6
9
  .pill.menu {
7
10
  &::before,
@@ -2,6 +2,9 @@
2
2
  /// <reference path="./mixins" />
3
3
  /// <reference path="./vendor/foundation-settings" />
4
4
 
5
+ @use './variables' as *;
6
+ @use './vendor/foundation-settings' as *;
7
+
5
8
  .project-footer {
6
9
  margin-top: 30px;
7
10
 
package/scss/styles.scss CHANGED
@@ -1,9 +1,9 @@
1
- @import './mixins';
1
+ @use './variables' as *;
2
+ @use './mixins';
2
3
 
3
4
  // Vendor
4
- @import './vendor/foundation-settings';
5
- @import 'foundation-sites/scss/foundation';
6
- //@import '../node_modules/@fortawesome/fontawesome-free/scss/fontawesome';
5
+ @use './vendor/foundation-settings' as *;
6
+ @use 'foundation-sites/scss/foundation';
7
7
 
8
8
  // Individual Foundation Pieces
9
9
  @include foundation-global-styles;
@@ -47,20 +47,20 @@
47
47
  @include foundation-visibility-classes;
48
48
  //@include foundation-float-classes;
49
49
 
50
- @import './partials/layout';
51
- @import './partials/navigation';
52
- @import './partials/badges';
53
- @import './partials/buttons';
54
- @import './partials/forms';
55
- @import './partials/loader';
56
- @import './partials/modals';
57
- @import './partials/flyovers';
58
- @import './partials/pills';
59
- @import './partials/tables';
60
- @import './partials/tooltips';
61
- @import './partials/typography';
62
- @import './partials/content';
63
- @import './partials/specsheet';
64
- @import './partials/notifications';
65
- @import './partials/progressbar';
66
- @import './partials/print';
50
+ @use './partials/layout';
51
+ @use './partials/navigation';
52
+ @use './partials/badges';
53
+ @use './partials/buttons';
54
+ @use './partials/forms';
55
+ @use './partials/loader';
56
+ @use './partials/modals';
57
+ @use './partials/flyovers';
58
+ @use './partials/pills';
59
+ @use './partials/tables';
60
+ @use './partials/tooltips';
61
+ @use './partials/typography';
62
+ @use './partials/content';
63
+ @use './partials/specsheet';
64
+ @use './partials/notifications';
65
+ @use './partials/progressbar';
66
+ @use './partials/print';
@@ -1,5 +1,5 @@
1
1
   /// <reference path="../variables" />
2
- @use '../../variables' as *;
2
+ @use '../variables' as *;
3
3
 
4
4
  // Foundation for Sites Settings
5
5
  // -----------------------------