@rypen-dev/shared-components 4.2.14 → 5.0.1

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,30 +1,30 @@
1
1
  {
2
2
  "name": "@rypen-dev/shared-components",
3
3
  "description": "Shared styles and Vuejs ui components for Rypen projects.",
4
- "version": "4.2.14",
4
+ "version": "5.0.1",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "build": "webpack --config ./webpack.config.js",
8
8
  "prepare": "webpack --config ./webpack.config.js"
9
9
  },
10
10
  "dependencies": {
11
- "@fortawesome/fontawesome-free": "6.4.2",
11
+ "@fortawesome/fontawesome-free": "6.5.2",
12
12
  "@rypen-dev/helpers": "1.0.24",
13
13
  "foundation-sites": "6.8.1",
14
14
  "moment": "2.29.4"
15
15
  },
16
16
  "devDependencies": {
17
- "@babel/cli": "7.22.10",
18
- "@babel/core": "7.22.10",
19
- "@babel/preset-env": "7.22.10",
20
- "babel-loader": "9.1.3",
17
+ "@babel/cli": "7.2.3",
18
+ "@babel/core": "7.2.2",
19
+ "@babel/preset-env": "7.2.3",
20
+ "babel-loader": "8.0.5",
21
21
  "babel-preset-vue": "2.0.2",
22
- "url-loader": "4.1.1",
23
- "vue-loader": "17.2.2",
24
- "vue-template-compiler": "2.7.14",
25
- "webpack": "5.88.2",
26
- "webpack-cli": "5.1.4",
27
- "vue": "3.3.4"
22
+ "url-loader": "1.1.2",
23
+ "vue-loader": "15.4.1",
24
+ "vue-template-compiler": "2.7.10",
25
+ "webpack": "4.46.0",
26
+ "webpack-cli": "3.3.12",
27
+ "vue": "2.7.10"
28
28
  },
29
29
  "files": [
30
30
  "/src",
@@ -59,7 +59,7 @@ $headline-accent-color: $tertiary-alt !default;
59
59
  $headline-accent-color-alt: $warning !default;
60
60
  $headline-accent-color-reversed: $white !default;
61
61
  $headline-divider-border-color: $medium-gray !default;
62
- $headline-small-color: $medium-gray !default;
62
+ $headline-small-color: $text-gray !default;
63
63
 
64
64
  $navigation-link-color: $primary !default;
65
65
  $navigation-link-highlight: $warning !default;
@@ -43,6 +43,12 @@
43
43
  border-color: $alert;
44
44
  }
45
45
 
46
+ &.text-gray {
47
+ background-color: $text-gray;
48
+ border-color: $text-gray;
49
+ color: $white;
50
+ }
51
+
46
52
  &.secondary-purple,
47
53
  &.secondary-alt {
48
54
  background: $secondary-alt;
@@ -82,6 +88,10 @@
82
88
  &.alert {
83
89
  color: $alert;
84
90
  }
91
+
92
+ &.text-gray {
93
+ color: $text-gray;
94
+ }
85
95
 
86
96
  &.secondary-purple,
87
97
  &.secondary-alt {
@@ -221,10 +221,24 @@ a.info {
221
221
  width: 20px;
222
222
  height: 20px;
223
223
  line-height: 20px;
224
+ font-family: $body-font-family;
225
+ letter-spacing: 0;
226
+ text-transform: none;
224
227
  text-align: center;
225
228
  font-weight: 600;
226
229
  }
227
230
 
231
+ &.small {
232
+ > span {
233
+ font-size: 0.75rem;
234
+ width: 20px;
235
+ height: 20px;
236
+ line-height: 20px;
237
+ position: relative;
238
+ top: -2px;
239
+ }
240
+ }
241
+
228
242
  @media print, screen and (min-width: map-get($breakpoints, medium)) {
229
243
  > span {
230
244
  width: 24px;
@@ -246,6 +260,7 @@ a.info {
246
260
  line-height: 0.75rem;
247
261
  font-size: 0.875rem;
248
262
  font-weight: $body-weight-normal;
263
+ white-space: nowrap;
249
264
  transition: color 300ms;
250
265
 
251
266
  &::before {
@@ -308,6 +323,40 @@ a.info {
308
323
  }
309
324
  }
310
325
 
326
+ &.small {
327
+ font-size: 0.875rem;
328
+ letter-spacing: 1.5px;
329
+
330
+ &::before {
331
+ border-bottom-width: 1px;
332
+ }
333
+
334
+ &::after {
335
+ border-top-width: 1px;
336
+ border-right-width: 1px;
337
+ width: 9px;
338
+ height: 9px;
339
+ }
340
+ }
341
+
342
+ &.secondary {
343
+ color: $secondary;
344
+
345
+ &::before,
346
+ &::after {
347
+ border-color: $secondary;
348
+ }
349
+ }
350
+
351
+ &.success-alt {
352
+ color: $success-alt;
353
+
354
+ &::before,
355
+ &::after {
356
+ border-color: $success-alt;
357
+ }
358
+ }
359
+
311
360
  &.color-text-gray {
312
361
  &::before {
313
362
  border-bottom-color: $text-gray;
@@ -361,17 +410,26 @@ a.info {
361
410
  }
362
411
  }
363
412
 
364
- &.small-no-tail {
365
- @media screen and (max-width: map-get($breakpoints, medium) - 1px) {
366
- padding-right: 20px;
413
+ &.no-tail {
414
+ padding-right: 20px;
367
415
 
368
416
  &::before {
369
417
  display: none;
370
418
  }
371
419
 
372
- &::after {
420
+ &.reversed {
421
+ padding-right: 0;
422
+ padding-left: 20px;
373
423
  }
424
+ }
374
425
 
426
+ &.small-no-tail {
427
+ @media screen and (max-width: map-get($breakpoints, medium) - 1px) {
428
+ padding-right: 20px;
429
+
430
+ &::before {
431
+ display: none;
432
+ }
375
433
  &.reversed {
376
434
  padding-right: 0;
377
435
  padding-left: 20px;
@@ -414,6 +472,12 @@ a.info {
414
472
  padding-left: $short-arrow-width + 10px;
415
473
  }
416
474
 
475
+ &.small {
476
+ &::after {
477
+ border-left-width: 1px;
478
+ }
479
+ }
480
+
417
481
  &.color-text-gray {
418
482
  &::after {
419
483
  border-left-color: $text-gray;
@@ -488,9 +552,6 @@ a.info {
488
552
  display: none;
489
553
  }
490
554
 
491
- &::after {
492
- }
493
-
494
555
  &.reversed {
495
556
  padding-right: 0;
496
557
  padding-left: 20px;
@@ -806,6 +867,16 @@ button,
806
867
  margin-right: 4px;
807
868
  }
808
869
 
870
+ > svg {
871
+ width: 28px;
872
+ height: 28px;
873
+ vertical-align: middle;
874
+ position: relative;
875
+ top: -2px;
876
+ margin-left: 6px;
877
+ margin-right: -6px;
878
+ }
879
+
809
880
  @media screen and (max-width: map-get($breakpoints, medium) - 1px) {
810
881
  &.small-full {
811
882
  width: 100% !important;
@@ -0,0 +1,97 @@
1
+ /// <reference path="../variables" />
2
+ /// <reference path="../vendor/foundation-settings" />
3
+
4
+ @media (min-width: map-get($breakpoints, medium)) {
5
+ body.flyover-open {
6
+ overflow: hidden;
7
+ }
8
+ }
9
+
10
+ .flyover-screen {
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+ z-index: 100;
17
+ transition: opacity 350ms ease-out;
18
+ }
19
+
20
+ .flyover {
21
+ position: fixed;
22
+ right: 0;
23
+ top: 0;
24
+ height: 100vh;
25
+ width: 100vw;
26
+ background-color: $body-bg-color;
27
+ overflow: hidden;
28
+ transition: right 350ms ease-out;
29
+
30
+ @include modal-shadow;
31
+
32
+ header {
33
+ flex-grow: 0;
34
+ margin-bottom: 20px;
35
+
36
+ label {
37
+ margin-bottom: 0;
38
+
39
+ small {
40
+ text-transform: none;
41
+ letter-spacing: 0;
42
+ color: $text-gray;
43
+ white-space: nowrap;
44
+ }
45
+ }
46
+ }
47
+
48
+ .body {
49
+ padding: 20px 20px 0;
50
+ height: 100%;
51
+ overflow: hidden;
52
+ display: flex;
53
+ flex-direction: column;
54
+
55
+ &.scrollable-content {
56
+ .scrollable {
57
+ flex-grow: 1;
58
+ overflow-y: auto;
59
+ margin-right: -20px;
60
+ padding-right: 20px;
61
+ }
62
+ }
63
+ }
64
+
65
+ @media print, screen and (min-width: map-get($breakpoints, large)) {
66
+ width: 50vw;
67
+
68
+ .body.restricted {
69
+ max-width: #{$true-max-width * 0.5};
70
+ }
71
+ }
72
+ }
73
+
74
+ /* FLYOVER TRANSITION */
75
+ .flyover-enter .flyover {
76
+ right: -100vw !important;
77
+
78
+ @media (min-width: map-get($breakpoints, large)) {
79
+ right: -50vw !important;
80
+ }
81
+ }
82
+
83
+ .flyover-leave-to .flyover {
84
+ right: -100vw !important;
85
+
86
+ @media (min-width: map-get($breakpoints, large)) {
87
+ right: -50vw !important;
88
+ }
89
+ }
90
+
91
+ .flyover-leave-active {
92
+ transition: opacity 250ms;
93
+
94
+ .flyover {
95
+ transition: right 250ms;
96
+ }
97
+ }
@@ -496,6 +496,13 @@ label {
496
496
  > .input-group-field:last-child {
497
497
  border-radius: 0 $input-radius $input-radius 0;
498
498
  }
499
+
500
+ &.tiny {
501
+ .input-group-field {
502
+ height: 30px;
503
+ padding: 0 0.5rem;
504
+ }
505
+ }
499
506
  }
500
507
 
501
508
  .input-container {
@@ -619,14 +626,6 @@ label {
619
626
  top: 14px;
620
627
  }
621
628
 
622
- &.date {
623
- &::after {
624
- width: 18px;
625
- height: 17px;
626
- background-size: 14px 17px;
627
- }
628
- }
629
-
630
629
  textarea {
631
630
  padding: 8px;
632
631
  font-size: 0.875rem;
@@ -760,6 +759,14 @@ label {
760
759
  //color: rgba(0, 0, 0, 0);
761
760
  opacity: 0;
762
761
  }
762
+
763
+ &.small {
764
+ &::after {
765
+ width: 18px;
766
+ height: 17px;
767
+ background-size: 14px 17px;
768
+ }
769
+ }
763
770
  }
764
771
 
765
772
  &.number.with-custom-steps {
@@ -844,6 +851,10 @@ label {
844
851
  width: 24px;
845
852
  height: 24px;
846
853
  }
854
+
855
+ &.line input {
856
+ padding-bottom: 0;
857
+ }
847
858
  }
848
859
 
849
860
  &.credit-card {
@@ -999,6 +1010,32 @@ label {
999
1010
  }
1000
1011
  }
1001
1012
 
1013
+ &.busy {
1014
+ .mini-loader {
1015
+ position: absolute;
1016
+ left: 50%;
1017
+ top: 12px;
1018
+ transform: translateX(-50%);
1019
+ background-color: $input-background-color;
1020
+
1021
+ &.primary {
1022
+ border-color: $primary;
1023
+ }
1024
+
1025
+ &.secondary-alt {
1026
+ border-color: $secondary-alt;
1027
+ }
1028
+ }
1029
+
1030
+ &.right-loader {
1031
+ .mini-loader {
1032
+ left: auto;
1033
+ right: 12px;
1034
+ transform: none;
1035
+ }
1036
+ }
1037
+ }
1038
+
1002
1039
  @media print, screen and (min-width: map-get($breakpoints, medium)) {
1003
1040
  &.medium-no-margin {
1004
1041
  margin-bottom: 0 !important;
@@ -1186,8 +1223,8 @@ select {
1186
1223
  right: 12px;
1187
1224
  border-radius: 50%;
1188
1225
  background-color: fade-out($tertiary-alt, 0.4);
1189
- font-size: 1rem;
1190
- line-height: 1rem;
1226
+ font-size: 1.425rem;
1227
+ line-height: 1.425rem;
1191
1228
  text-align: center;
1192
1229
  padding: 8px;
1193
1230
  z-index: 62;
@@ -1237,6 +1274,7 @@ select {
1237
1274
  border-left: solid 2px fade-out($dark-gray, 0.5);
1238
1275
  border-bottom: 0;
1239
1276
  transform: rotate(-45deg);
1277
+ pointer-events: none;
1240
1278
  }
1241
1279
 
1242
1280
  .preview {
@@ -1436,7 +1474,7 @@ body.hover-capable {
1436
1474
 
1437
1475
  input {
1438
1476
  position: relative;
1439
- padding: 5px 0;
1477
+ padding: 6px 0 4px;
1440
1478
  border: 0;
1441
1479
  border-bottom: solid 2px transparent;
1442
1480
  background-color: transparent;
@@ -1451,37 +1489,70 @@ body.hover-capable {
1451
1489
 
1452
1490
  .decoy {
1453
1491
  font-size: 1.75rem;
1454
- height: 2.5rem;
1455
- padding: 8px 0 4px;
1492
+ height: calc(2.5rem - 2px);
1493
+ padding: 0;
1456
1494
  font-family: $headline-font-family;
1457
1495
  font-weight: $headline-weight-normal;
1458
1496
  position: absolute;
1459
1497
  left: 0;
1460
- bottom: 0;
1498
+ bottom: -1px;
1461
1499
  color: transparent;
1462
1500
  border-bottom: solid 2px $medium-gray;
1463
1501
  min-width: 30px;
1502
+ max-width: 100%;
1464
1503
  }
1465
1504
 
1466
1505
  a {
1467
1506
  position: absolute;
1468
- top: -6px;
1469
- right: -24px;
1507
+ font-size: 16px;
1508
+ top: -2px;
1509
+ right: -20px;
1470
1510
  z-index: 3;
1471
1511
 
1472
1512
  .icon .color-target {
1473
1513
  fill: $call-to-action-color;
1474
1514
  }
1515
+
1516
+ &.larger {
1517
+ font-size: 18px;
1518
+ }
1519
+ }
1520
+
1521
+ .actions {
1522
+ display: block;
1523
+ position: absolute;
1524
+ padding-left: 15px;
1525
+ left: 100%;
1526
+ top: 50%;
1527
+ transform: translateY(-50%);
1528
+ text-align: center;
1529
+ z-index: 3;
1530
+
1531
+ a {
1532
+ display: block;
1533
+ position: relative;
1534
+ top: auto;
1535
+ left: auto;
1536
+ right: auto;
1537
+ margin-bottom: 5px;
1538
+
1539
+ &:last-child {
1540
+ margin-bottom: 0;
1541
+ }
1542
+ }
1543
+ }
1544
+
1545
+ &.no-margin {
1546
+ margin-bottom: 0;
1475
1547
  }
1476
1548
 
1477
1549
  @media print, screen and (min-width: map-get($breakpoints, medium)) {
1478
1550
  flex: 1 1 0;
1479
1551
  vertical-align: bottom;
1480
- margin: 0 40px 38px 0;
1552
+ margin: 0 26px 38px 0;
1481
1553
 
1482
1554
  input {
1483
- padding-top: 12px;
1484
- padding-bottom: 9px;
1555
+ padding: 7px 0 4px;
1485
1556
  border-bottom-width: 5px;
1486
1557
  font-size: 2.875rem;
1487
1558
  height: calc(4.5rem + 2px);
@@ -1492,11 +1563,18 @@ body.hover-capable {
1492
1563
  padding-top: 12px;
1493
1564
  padding-bottom: 7px;
1494
1565
  border-bottom-width: 5px;
1495
- height: 100%;
1566
+ height: calc(4.5rem - 5px);
1567
+ bottom: 0;
1496
1568
  }
1497
1569
 
1498
1570
  a {
1499
- top: -14px;
1571
+ font-size: 22px;
1572
+ top: 0;
1573
+ right: -26px;
1574
+
1575
+ &.larger {
1576
+ font-size: 26px;
1577
+ }
1500
1578
  }
1501
1579
  }
1502
1580
  }
@@ -79,106 +79,88 @@
79
79
  margin-top: #{$single-space * 0.25} !important;
80
80
  }
81
81
 
82
- .small-single-space {
83
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
82
+ @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
83
+ .small-single-space {
84
84
  margin-bottom: $single-space !important;
85
85
  }
86
- }
87
-
88
- .medium-single-space {
89
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
90
- margin-bottom: $single-space !important;
91
- }
92
- }
93
86
 
94
- .small-single-space-top {
95
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
87
+ .small-single-space-top {
96
88
  margin-top: $single-space !important;
97
89
  }
98
- }
99
90
 
100
- .medium-single-space-top {
101
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
102
- margin-top: $single-space !important;
103
- }
104
- }
105
-
106
- .small-double-space {
107
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
91
+ .small-double-space {
108
92
  margin-bottom: #{$single-space * 2} !important;
109
93
  }
110
- }
111
94
 
112
- .medium-double-space {
113
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
114
- margin-bottom: #{$single-space * 2} !important;
95
+ .small-double-space-top {
96
+ margin-top: #{$single-space * 2} !important;
115
97
  }
116
- }
117
98
 
118
- .medium-only-double-space {
119
- @media print, screen and (min-width: map-get($breakpoints, medium)) and (max-width: (map-get($breakpoints, large) - 1px)) {
120
- margin-bottom: #{$single-space * 2} !important;
99
+ .small-triple-space {
100
+ margin-bottom: #{$single-space * 3} !important;
121
101
  }
122
- }
123
102
 
124
- .small-double-space-top {
125
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
126
- margin-top: #{$single-space * 2} !important;
103
+ .small-half-space {
104
+ margin-bottom: #{$single-space * 0.5} !important;
127
105
  }
128
- }
129
106
 
130
- .medium-double-space-top {
131
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
132
- margin-top: #{$single-space * 2} !important;
107
+ .small-half-space-top {
108
+ margin-top: #{$single-space * 0.5} !important;
133
109
  }
134
110
  }
135
111
 
136
- .small-triple-space {
137
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
138
- margin-bottom: #{$single-space * 3} !important;
112
+ @media print, screen and (min-width: map-get($breakpoints, medium)) {
113
+ .medium-single-space {
114
+ margin-bottom: $single-space !important;
139
115
  }
140
- }
141
116
 
142
- .medium-triple-space {
143
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
144
- margin-bottom: #{$single-space * 3} !important;
117
+ .medium-single-space-top {
118
+ margin-top: $single-space !important;
145
119
  }
146
- }
147
-
148
- .small-half-space {
149
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
150
- margin-bottom: #{$single-space * 0.5} !important;
120
+
121
+ .medium-double-space {
122
+ margin-bottom: #{$single-space * 2} !important;
151
123
  }
152
- }
153
-
154
- .medium-half-space {
155
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
124
+
125
+ .medium-double-space-top {
126
+ margin-top: #{$single-space * 2} !important;
127
+ }
128
+
129
+ .medium-triple-space {
130
+ margin-bottom: #{$single-space * 3} !important;
131
+ }
132
+
133
+ .medium-half-space {
156
134
  margin-bottom: #{$single-space * 0.5} !important;
157
135
  }
158
- }
159
-
160
- .small-half-space-top {
161
- @media screen and (max-width: (map-get($breakpoints, medium) - 1px)) {
136
+
137
+ .medium-half-space-top {
162
138
  margin-top: #{$single-space * 0.5} !important;
163
139
  }
164
140
  }
165
141
 
166
- .medium-half-space-top {
167
- @media print, screen and (min-width: map-get($breakpoints, medium)) {
168
- margin-top: #{$single-space * 0.5} !important;
142
+ @media print, screen and (min-width: map-get($breakpoints, medium)) and (max-width: (map-get($breakpoints, large) - 1px)) {
143
+ .medium-only-double-space {
144
+ margin-bottom: #{$single-space * 2} !important;
169
145
  }
170
146
  }
171
147
 
172
- .large-no-space {
173
- @media print, screen and (min-width: map-get($breakpoints, large)) {
148
+ @media print, screen and (min-width: map-get($breakpoints, large)) {
149
+ .large-no-space {
174
150
  margin-bottom: 0 !important;
175
151
  }
176
- }
177
152
 
178
- .large-no-space-top {
179
- @media print, screen and (min-width: map-get($breakpoints, large)) {
153
+ .large-no-space-top {
180
154
  margin-top: 0 !important;
181
155
  }
156
+
157
+ .large-double-space-top {
158
+ margin-top: 40px !important;
159
+ }
160
+
161
+ .large-triple-space-top {
162
+ margin-top: 60px !important;
163
+ }
182
164
  }
183
165
 
184
166
  .medium-grid-container {
@@ -335,7 +317,9 @@ hr {
335
317
  }
336
318
 
337
319
  label {
320
+ line-height: 1.2;
338
321
  font-size: 0.75rem;
322
+ margin-bottom: 5px;
339
323
  }
340
324
  }
341
325