@mjsz-vbr-elements/shared 2.10.0 → 2.11.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.
@@ -5,7 +5,9 @@
5
5
  background-color: #fff;
6
6
  padding: 15px;
7
7
  margin-bottom: 20px;
8
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);
8
+ box-shadow:
9
+ 0 2px 4px 0 rgba(0, 0, 0, 0.1),
10
+ 0 2px 2px 0 rgba(0, 0, 0, 0.1);
9
11
  }
10
12
 
11
13
  .is-card > div {
@@ -51,15 +53,6 @@
51
53
  display: none;
52
54
  }
53
55
 
54
- @container card-row (max-width: 640px) {
55
- .mjsz-vbr-card-item .is-team-name-long {
56
- display: none;
57
- }
58
- .mjsz-vbr-card-item .is-team-name-short {
59
- display: block;
60
- }
61
- }
62
-
63
56
  .mjsz-vbr-card-item .is-info {
64
57
  grid-column: 1/4;
65
58
  display: flex;
@@ -169,3 +162,5 @@
169
162
  width: 100%;
170
163
  aspect-ratio: 1;
171
164
  }
165
+
166
+ :export { meta: '{"e":".is-card","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",640]]]}]}' }
@@ -453,3 +453,5 @@ a:hover {
453
453
  font-size: var(--vbr-widget-badge-extra-large-font-size);
454
454
  padding: 0.2695em 0.5165em;
455
455
  }
456
+
457
+ :export { meta: '{"e":"h1,\nh2,\nh3,\nul,\nli,\np,\ndl,\ndt,\ndd","f":[]}' }
@@ -12,7 +12,7 @@
12
12
  .is-dropdown-menu .is-dropdown-item {
13
13
  display: flex;
14
14
  align-items: center;
15
- padding: .25rem 1rem;
15
+ padding: 0.25rem 1rem;
16
16
  font-family: var(--vbr-widget-font-family);
17
17
  line-height: 24px;
18
18
  color: var(--vbr-widget-dropdown-item-color);
@@ -31,3 +31,4 @@
31
31
  .is-dropdown-menu .is-dropdown-item svg {
32
32
  margin-right: 8px;
33
33
  }
34
+ :export { meta: '{"e":".is-dropdown-menu","f":[]}' }
@@ -10,7 +10,9 @@
10
10
  font-weight: 400;
11
11
  line-height: 1.5;
12
12
  background-color: #fff;
13
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
13
+ transition:
14
+ border-color 0.15s ease-in-out,
15
+ box-shadow 0.15s ease-in-out;
14
16
  appearance: none;
15
17
  }
16
18
 
@@ -82,3 +84,5 @@ label {
82
84
  color: var(--vbr-widget-toggle-group-btn-active-color);
83
85
  background-color: var(--vbr-widget-toggle-group-btn-active-bg-color);
84
86
  }
87
+
88
+ :export { meta: '{"e":".base-input","f":[]}' }
@@ -411,17 +411,9 @@
411
411
  .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-event-type-icon svg {
412
412
  display: block;
413
413
  width: 14px;
414
- height: 14px;
414
+ height: 14px
415
415
  }
416
416
 
417
- @container rows (width > 410px) {
418
-
419
- .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-event-type-icon svg {
420
- width: 24px;
421
- height: 24px
422
- }
423
- }
424
-
425
417
  .mjsz-vbr-gamecenter-timeline-game-event .is-details-container.is-penalty .is-event-type-icon {
426
418
  color: var(--vbr-widget-primary-color-0);
427
419
  background-color: var(--vbr-widget-danger-color-a400);
@@ -497,23 +489,6 @@
497
489
  background-color: var(--vbr-widget-danger-color-500);
498
490
  }
499
491
 
500
- @container rows (width > 410px) {
501
-
502
- .mjsz-vbr-gamecenter-timeline-game-event .is-details-container {
503
- grid-template-columns: auto 1fr auto;
504
- grid-template-areas: 'type-icon detail-title team-logo' 'type-icon detail-list team-logo'
505
- }
506
-
507
- .mjsz-vbr-gamecenter-timeline-game-event .is-details-container:not(:has(.is-details-list)) {
508
- grid-template-areas: 'type-icon detail-title team-logo';
509
- align-items: center;
510
- }
511
-
512
- .mjsz-vbr-gamecenter-timeline-game-event .is-details-container .is-team-logo {
513
- display: block;
514
- }
515
- }
516
-
517
492
  .mjsz-vbr-gamecenter-timeline-game-event .is-timestamp {
518
493
  grid-area: time;
519
494
 
@@ -537,47 +512,6 @@
537
512
  border-color: var(--vbr-widget-gamecenter-away-team-identifier-color);
538
513
  }
539
514
 
540
- @container rows (width > 500px) {
541
-
542
- .mjsz-vbr-gamecenter-timeline-game-event {
543
- --columns: 1fr 0.15fr 2px 0.15fr 1fr;
544
- --areas: '. . . . .' 'details time time time .' '. . . . .'
545
- }
546
-
547
- .mjsz-vbr-gamecenter-timeline-game-event .is-timeline {
548
- grid-column: 3/4;
549
- grid-row: 1/-1;
550
- }
551
-
552
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='away'] {
553
- --areas: '. . . . .' '. time time time details' '. . . . .';
554
- }
555
-
556
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container {
557
- grid-template-columns: auto 1fr;
558
- grid-template-areas: 'team-logo detail-title type-icon' 'team-logo detail-list type-icon';
559
- }
560
-
561
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container:not(:has(.is-details-list)) {
562
- grid-template-areas: 'team-logo detail-title type-icon';
563
- }
564
-
565
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container {
566
-
567
- border-inline-end: none;
568
- border-inline-start: 5px solid var(--vbr-widget-gamecenter-home-team-identifier-color);
569
- }
570
-
571
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-details-list,
572
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-details-title {
573
- text-align: right;
574
- }
575
-
576
- .mjsz-vbr-gamecenter-timeline-game-event[data-team='home'] .is-details-container .is-poi-data {
577
- justify-content: flex-end;
578
- }
579
- }
580
-
581
515
  .mjsz-vbr-gamecenter-timeline-lineups {
582
516
  margin-block-start: 1rem;
583
517
  padding-block-end: 2rem;
@@ -590,16 +524,9 @@
590
524
 
591
525
  .mjsz-vbr-gamecenter-timeline-lineups .is-container {
592
526
  display: grid;
593
- gap: 2rem;
527
+ gap: 2rem
594
528
  }
595
529
 
596
- @container rows (width >= 768px) {
597
-
598
- .mjsz-vbr-gamecenter-timeline-lineups .is-container {
599
- grid-template-columns: 1fr 1fr
600
- }
601
- }
602
-
603
530
  .mjsz-vbr-gamecenter-timeline-lineups-lines {
604
531
  display: grid;
605
532
  grid-template-columns: 1fr;
@@ -640,56 +567,18 @@
640
567
  border-inline-end: 3px solid var(--vbr-widget-gamecenter-away-team-identifier-color);
641
568
  }
642
569
 
643
- @container rows (width >= 768px) {
644
-
645
- .mjsz-vbr-gamecenter-timeline-lineups-lines {
646
- grid-template-columns: 1fr 1fr;
647
- grid-template-areas: '. lw' 'ld lw' 'ld c' 'rd c' 'rd rw' '. rw';
648
- grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr
649
- }
650
-
651
- .mjsz-vbr-gamecenter-timeline-lineups-lines.is-away-team {
652
- grid-template-areas: 'lw .' 'lw ld' 'c ld' 'c rd' 'rw rd' 'rw .';
653
- }
654
-
655
- .mjsz-vbr-gamecenter-timeline-lineups-lines:has(.is-gk) {
656
- display: flex;
657
- justify-content: center;
658
- grid-template-columns: none;
659
- grid-template-areas: none;
660
- }
661
-
662
- .mjsz-vbr-gamecenter-timeline-lineups-lines .is-gk {
663
- width: 50%;
664
- }
665
- }
666
-
667
570
  .mjsz-vbr-gamecenter-timeline-lineups-lines-simple {
668
571
  display: grid;
669
572
  grid-template-columns: 1fr;
670
- gap: 0.5rem;
573
+ gap: 0.5rem
671
574
  }
672
575
 
673
- @container rows (width >= 768px) {
674
-
675
- .mjsz-vbr-gamecenter-timeline-lineups-lines-simple {
676
- grid-template-columns: 1fr 1fr
677
- }
678
- }
679
-
680
576
  .mjsz-vbr-gamecenter-timeline-lineups-lines-referees {
681
577
  display: grid;
682
578
  grid-template-columns: 1fr;
683
- gap: 0.5rem;
579
+ gap: 0.5rem
684
580
  }
685
581
 
686
- @container rows (width >= 768px) {
687
-
688
- .mjsz-vbr-gamecenter-timeline-lineups-lines-referees {
689
- grid-template-columns: 1fr 1fr 1fr 1fr
690
- }
691
- }
692
-
693
582
  .mjsz-vbr-gamecenter-timeline-lineups .is-official-person-container {
694
583
  display: grid;
695
584
  grid-template-columns: 40px 1fr;
@@ -826,13 +715,6 @@
826
715
  flex: 1;
827
716
  }
828
717
 
829
- @container rows (width >= 768px) {
830
-
831
- .mjsz-vbr-gamecenter-timeline-game-officials .is-game-officials-container {
832
- flex-direction: row
833
- }
834
- }
835
-
836
718
  .mjsz-vbr-gamecenter-timeline-data-table {
837
719
  margin-block-end: 1rem;
838
720
  min-width: 0;
@@ -869,3 +751,5 @@
869
751
  outline: 1px solid var(--vbr-widget-gamecenter-away-team-identifier-border-color);
870
752
  outline-offset: -1px;
871
753
  }
754
+
755
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":"&:not(:has(.is-details-list))","d":{"grid-template-areas":"'type-icon detail-title team-logo'","align-items":"center"}},{"e":".is-team-logo","d":{"display":"block"}}],"a":[[["width",">",410]]]},{"b":[{"e":".is-timeline","d":{"grid-column":"3/4","grid-row":"1/-1"}},{"e":"&[data-team='away']","d":{"--areas":"'. . . . .' '. time time time details' '. . . . .'"}},{"e":"&[data-team='home'] .is-details-container","d":{"grid-template-columns":"auto 1fr","grid-template-areas":"'team-logo detail-title type-icon' 'team-logo detail-list type-icon'","border-inline-end":"none","border-inline-start":"5px solid var(--vbr-widget-gamecenter-home-team-identifier-color)"}}],"a":[[["width",">",500]]]},{"b":[{"e":"&.is-away-team","d":{"grid-template-areas":"'lw .' 'lw ld' 'c ld' 'c rd' 'rw rd' 'rw .'"}},{"e":"&:has(.is-gk)","d":{"display":"flex","justify-content":"center","grid-template-columns":"none","grid-template-areas":"none"}},{"e":".is-gk","d":{"width":"50%"}}],"a":[[["width",">=",768]]]}]}' }
@@ -200,17 +200,6 @@
200
200
  align-items: center;
201
201
  }
202
202
 
203
- @container rows (max-width: 500px) {
204
-
205
- .mjsz-vbr-gamecenter-game-event {
206
- --cols: 1fr 1fr 1fr 1fr 1fr 1fr
207
- }
208
-
209
- .mjsz-vbr-gamecenter-game-event > *:last-of-type {
210
- grid-column: 2/7;
211
- }
212
- }
213
-
214
203
  .mjsz-vbr-gamecenter-game-event:nth-child(odd) {
215
204
  background-color: var(--vbr-widget-table-stripped-bg-color);
216
205
  }
@@ -371,3 +360,5 @@
371
360
  gap: 20px;
372
361
  margin-bottom: 20px;
373
362
  }
363
+
364
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":"> *:last-of-type","d":{"grid-column":"2/7"}}],"a":[[["max-width",":",500]]]}]}' }
@@ -25,37 +25,9 @@
25
25
  flex-shrink: 0;
26
26
  flex-grow: 0;
27
27
  flex-basis: 100%;
28
- scroll-snap-align: start;
28
+ scroll-snap-align: start
29
29
  }
30
30
 
31
- @container games-timeline (width > 375px) {
32
-
33
- .mjsz-vbr-games-timeline .is-slide {
34
- flex-basis: 50%
35
- }
36
- }
37
-
38
- @container games-timeline (width > 500px) {
39
-
40
- .mjsz-vbr-games-timeline .is-slide {
41
- flex-basis: 33.3334%
42
- }
43
- }
44
-
45
- @container games-timeline (width > 700px) {
46
-
47
- .mjsz-vbr-games-timeline .is-slide {
48
- flex-basis: 25%
49
- }
50
- }
51
-
52
- @container games-timeline (width > 880px) {
53
-
54
- .mjsz-vbr-games-timeline .is-slide {
55
- flex-basis: 20%
56
- }
57
- }
58
-
59
31
  .mjsz-vbr-games-timeline > button {
60
32
  position: relative;
61
33
  display: grid;
@@ -268,3 +240,5 @@
268
240
  .mjsz-vbr-score-display .is-slide-transition-leave-to {
269
241
  transform: translateY(100%);
270
242
  }
243
+
244
+ :export { meta: '{"e":".games-timeline","f":[]}' }
package/dist/css/grid.css CHANGED
@@ -56,3 +56,5 @@
56
56
  grid-template-columns: var(--columns-tablet)
57
57
  }
58
58
  }
59
+
60
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
@@ -47,3 +47,4 @@
47
47
  border-color: var(--vbr-widget-paginator-active-bg-color);
48
48
  cursor: default;
49
49
  }
50
+ :export { meta: '{"e":".paginator","f":[]}' }
@@ -3,10 +3,9 @@
3
3
 
4
4
  .mjsz-vbr-playoffs .mjsz-vbr-table-grid {
5
5
  display: grid;
6
- grid-template-columns: 60px 160px minmax(60px, 0.41fr) minmax(160px, 1fr) minmax(40px, 60px) 70px minmax(160px, 1fr) minmax(
7
- 180px,
8
- 0.9fr
9
- );
6
+ grid-template-columns:
7
+ 60px 160px minmax(60px, 0.41fr) minmax(160px, 1fr) minmax(40px, 60px) 70px minmax(160px, 1fr)
8
+ minmax(180px, 0.9fr);
10
9
  color: var(--vbr-widget-table-color);
11
10
  }
12
11
 
@@ -73,15 +72,6 @@
73
72
  display: none;
74
73
  }
75
74
 
76
- @container table-wrapper (max-width: 768px) {
77
- .mjsz-vbr-playoffs .mjsz-vbr-table-grid .is-team-name-long {
78
- display: none;
79
- }
80
- .mjsz-vbr-playoffs .mjsz-vbr-table-grid .is-team-name-short {
81
- display: block;
82
- }
83
- }
84
-
85
75
  .mjsz-vbr-playoffs .mjsz-vbr-section-title {
86
76
  padding: 10px;
87
77
  text-align: center;
@@ -116,15 +106,6 @@
116
106
  display: none;
117
107
  }
118
108
 
119
- @container section-details (max-width: 768px) {
120
- .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-team-name-long {
121
- display: none;
122
- }
123
- .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-team-name-short {
124
- display: block;
125
- }
126
- }
127
-
128
109
  .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-logo-image {
129
110
  width: 70px;
130
111
  height: 70px;
@@ -146,3 +127,5 @@
146
127
  .mjsz-vbr-playoffs .mjsz-vbr-section-details .is-right {
147
128
  text-align: right;
148
129
  }
130
+
131
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",768]]]}]}' }
@@ -61,7 +61,7 @@
61
61
  align-items: center;
62
62
  }
63
63
 
64
- @media (width > 500px) {
64
+ @media (min-width: 501px) {
65
65
 
66
66
  .mjsz-vbr-statistics-double-bar {
67
67
  grid-template-areas: 'title title title title' 'value-start bar-start bar-end value-end'
@@ -125,3 +125,5 @@
125
125
  line-height: 1.5rem;
126
126
  color: var(--vbr-widget-primary-color-500);
127
127
  }
128
+
129
+ :export { meta: '{"e":".progress","f":[]}' }
@@ -31,3 +31,5 @@ ol,
31
31
  ul {
32
32
  list-style: none;
33
33
  }
34
+
35
+ :export { meta: '{"e":"h1,\nh2,\nh3,\nul,\nli,\np,\ndl,\ndt,\ndd","f":[]}' }
@@ -8,3 +8,4 @@
8
8
  .mjsz-vbr-table-responsive table {
9
9
  width: 100%;
10
10
  }
11
+ :export { meta: '{"e":".table-responsive","f":[]}' }
@@ -221,15 +221,6 @@
221
221
  display: none;
222
222
  }
223
223
 
224
- @container table-wrapper (max-width: 768px) {
225
- .mjsz-vbr-table td .is-team-name-long {
226
- display: none;
227
- }
228
- .mjsz-vbr-table td .is-team-name-short {
229
- display: block;
230
- }
231
- }
232
-
233
224
  .mjsz-vbr-table th,
234
225
  .mjsz-vbr-table td {
235
226
  padding: 8px;
@@ -279,3 +270,5 @@
279
270
  color: var(--vbr-widget-table-active-hover-color);
280
271
  background-color: var(--vbr-widget-table-active-hover-bg-color);
281
272
  }
273
+
274
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[{"b":[{"e":".is-team-name-long","d":{"display":"none"}},{"e":".is-team-name-short","d":{"display":"block"}}],"a":[[["max-width",":",768]]]}]}' }
@@ -24,3 +24,5 @@
24
24
  width: 100%;
25
25
  aspect-ratio: 1;
26
26
  }
27
+
28
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
@@ -98,3 +98,4 @@
98
98
  .is-w-10 {
99
99
  width: 32px;
100
100
  }
101
+ :export { meta: '{"e":".is-text-right","f":[]}' }
@@ -249,3 +249,5 @@
249
249
  --vbr-widget-games-timeline-external-link-color: var(--vbr-widget-primary-color-500);
250
250
  --vbr-widget-games-timeline-external-link-size: var(--vbr-widget-typography-font-size-200);
251
251
  }
252
+
253
+ :export { meta: '{"e":"table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td","f":[]}' }
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/shared",
3
+ "type": "module",
4
+ "version": "2.11.0",
3
5
  "private": false,
4
- "version": "2.10.0",
5
6
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
6
7
  "homepage": "https://api.icehockey.hu/widgets/docs/v2/",
7
- "type": "module",
8
- "files": [
9
- "dist"
10
- ],
11
- "module": "./dist/icons/index.js",
12
8
  "exports": {
13
9
  ".": {
14
10
  "import": "./dist/icons/index.js"
@@ -21,12 +17,18 @@
21
17
  "require": "./dist/css/*.css"
22
18
  }
23
19
  },
20
+ "module": "./dist/icons/index.js",
21
+ "files": [
22
+ "dist"
23
+ ],
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-vue": "^5.2.1",
26
+ "@zeecoder/postcss-container-query": "^3.1.0",
26
27
  "glob": "^11.0.1",
27
28
  "nodemon": "^3.1.9",
28
29
  "postcss": "^8.4.49",
29
30
  "postcss-import": "^16.1.0",
31
+ "postcss-media-minmax": "^5.0.0",
30
32
  "postcss-mixins": "^11.0.3",
31
33
  "postcss-nested": "^7.0.2",
32
34
  "postcss-prefixer": "^3.0.0",