@internetstiftelsen/styleguide 2.26.0 → 2.26.2-beta.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.26.0",
3
+ "version": "2.26.2-beta.0.1",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
package/src/app.scss CHANGED
@@ -90,6 +90,7 @@ $namespace: '';
90
90
  @import 'organisms/video-guide/video-guide';
91
91
  @import 'organisms/timeline/timeline';
92
92
  @import 'organisms/members-service-product/members-service-product';
93
+ @import 'organisms/schedule/schedule';
93
94
 
94
95
  // Structures
95
96
  @import 'structures/manifest';
Binary file
@@ -349,5 +349,10 @@
349
349
  <symbol id="icon-diamond" viewbox="0 0 32 32">
350
350
  <path d="M27 4H5l-4 8.7 14 16.1 1 1.2 1-1.2 14-16.1L27 4zm1.2 7.5h-5l3-4.4 2 4.4zm-3.8-5.4-3.1 4.6-3.1-4.6h6.2zm-5 5.4h-6.7l3.4-5 3.3 5zm-5.6-5.4-3.1 4.6-3.1-4.6h6.2zm-8 1 3 4.4h-5l2-4.4zm-1.3 6.5H10l3.3 10.2-8.8-10.2zm11.5 12-3.9-12.1h7.8L16 25.6zm6-12H27.6l-8.8 10.2L22 13.6z"/>
351
351
  </symbol>
352
+
353
+ <symbol id="icon-world" viewbox="0 0 32 32">
354
+ <path d="M16 .5C7.4.5.5 7.4.5 16S7.4 31.5 16 31.5 31.5 24.6 31.5 16 24.6.5 16 .5zM7.1 7.2c.8-.8 1.6-1.4 2.5-2l-.8 2.5h2.4l2.4-2.4V4.1h-1.2l-1.2 1.2v-.9c1.5-.6 3.1-.9 4.8-.9 2.4 0 4.7.7 6.6 1.9v.1L24 6.9l-1.3 1.3-1.9-1.8h-2.4l-2.4 3 1.2 2.6 1.2-.8V10h1.2l1.3 1.1-1.3 1.3-4.8 2.4h-1.2v2.4h1.2l2.4-1.2 1.2 1.2h2.4V16l1-1.4 2.6-1V16H22v1.2h2.4l2.4 3.6 1.2-1.2v-1.2h-1.2v-1.2H28l.5-.1c-.2 2.2-1 4.3-2.2 6.1h-.8l-2.9-4.8-3 1.2-3.6-1.2-3.6 1.2-1.2 3.6 1.2 2.4h2.4l1.2-1.2 1.2 1.2v2.9c-.4 0-.8.1-1.2.1C9.1 28.5 3.5 22.9 3.5 16c0-1.2.2-2.4.5-3.6h1.2V9.6c.4-.7.9-1.4 1.4-2l.5-.4z"/>
355
+ <path d="M13.6 10h1.2v2.4h-1.2z"/>
356
+ </symbol>
352
357
  </defs>
353
358
  </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" id="icon-world" width="32" height="32" viewbox="0 0 32 32">
2
+ <path d="M16 .5C7.4.5.5 7.4.5 16S7.4 31.5 16 31.5 31.5 24.6 31.5 16 24.6.5 16 .5zM7.1 7.2c.8-.8 1.6-1.4 2.5-2l-.8 2.5h2.4l2.4-2.4V4.1h-1.2l-1.2 1.2v-.9c1.5-.6 3.1-.9 4.8-.9 2.4 0 4.7.7 6.6 1.9v.1L24 6.9l-1.3 1.3-1.9-1.8h-2.4l-2.4 3 1.2 2.6 1.2-.8V10h1.2l1.3 1.1-1.3 1.3-4.8 2.4h-1.2v2.4h1.2l2.4-1.2 1.2 1.2h2.4V16l1-1.4 2.6-1V16H22v1.2h2.4l2.4 3.6 1.2-1.2v-1.2h-1.2v-1.2H28l.5-.1c-.2 2.2-1 4.3-2.2 6.1h-.8l-2.9-4.8-3 1.2-3.6-1.2-3.6 1.2-1.2 3.6 1.2 2.4h2.4l1.2-1.2 1.2 1.2v2.9c-.4 0-.8.1-1.2.1C9.1 28.5 3.5 22.9 3.5 16c0-1.2.2-2.4.5-3.6h1.2V9.6c.4-.7.9-1.4 1.4-2l.5-.4z"/>
3
+ <path d="M13.6 10h1.2v2.4h-1.2z"/>
4
+ </svg>
package/src/components.js CHANGED
@@ -29,3 +29,4 @@ import './molecules/continue-video-guide/continue-video-guide';
29
29
  import './organisms/video-guide/video-guide';
30
30
  import './organisms/timeline/timeline';
31
31
  import './molecules/overview-navigation/overview-navigation';
32
+ import './organisms/schedule/schedule-filter';
@@ -1 +1 @@
1
- [{"id":"search","name":"Search"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"diamond","name":"Diamond"}]
1
+ [{"id":"search","name":"Search"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"diamond","name":"Diamond"},{"id":"world","name":"World"}]
@@ -0,0 +1,162 @@
1
+ @charset "UTF-8";
2
+
3
+ @include organism(schedule-filter) {
4
+ margin-bottom: rhythm(2);
5
+ padding-bottom: rhythm(1);
6
+ position: sticky;
7
+ top: -1px;
8
+ padding-top: 1px;
9
+ background-color: $color-ash;
10
+ z-index: z_index(foregroundMinus);
11
+ transition: box-shadow 0.25s ease, border-width 0.25s ease;
12
+
13
+ &.is-sticky {
14
+ border-bottom: 1px solid $color-concrete;
15
+ margin-left: -#{$grid-gutter-width};
16
+ margin-right: -#{$grid-gutter-width};
17
+ padding-left: $grid-gutter-width;
18
+ padding-right: $grid-gutter-width;
19
+ @extend %box-shadow;
20
+ }
21
+
22
+ @include e(button) {
23
+ font-size: $size-base;
24
+
25
+ @include bp-up(md) {
26
+ pointer-events: none;
27
+
28
+ &:hover,
29
+ &:focus {
30
+ text-decoration: none;
31
+ }
32
+
33
+ svg {
34
+ display: none;
35
+ }
36
+ }
37
+ }
38
+ @include e(list) {
39
+ padding: 0 0 rhythm(1) 0;
40
+ margin: 0;
41
+ display: flex;
42
+ flex-wrap: wrap;
43
+
44
+ &[aria-hidden='true'] {
45
+ display: none;
46
+
47
+ @include bp-up(md) {
48
+ display: flex;
49
+ }
50
+ }
51
+
52
+ dt {
53
+ width: 100%;
54
+ flex-basis: 100%;
55
+ font-family: $font-family-headings;
56
+ }
57
+
58
+ dt,
59
+ dd {
60
+ margin: 0;
61
+ padding: 0;
62
+ }
63
+ }
64
+ }
65
+
66
+ @include organism(schedule) {
67
+ margin-bottom: rhythm(8);
68
+
69
+ @include e(item) {
70
+ background-color: $color-snow;
71
+ border-right: $border-radius;
72
+ padding: rhythm(1) rhythm(3) rhythm(1) rhythm(2);
73
+ border-left-width: 4px;
74
+ border-left-style: solid;
75
+ border-radius: $border-radius;
76
+ margin-bottom: rhythm(2);
77
+
78
+ &__full {
79
+ display: none;
80
+
81
+ &[aria-hidden='true'] {
82
+ display: none;
83
+ }
84
+
85
+ &[aria-hidden='false'] {
86
+ display: block;
87
+
88
+ & + [class*='short'] {
89
+ display: none;
90
+ }
91
+ }
92
+ }
93
+
94
+ p:last-child {
95
+ margin-bottom: 0;
96
+ }
97
+
98
+ @include m(keynote) {
99
+ background-color: $color-cyberspace;
100
+ color: $color-snow;
101
+ border-color: $color-cyberspace;
102
+ padding: rhythm(2) rhythm(3) rhythm(2) rhythm(2);
103
+ }
104
+
105
+ @include m(granit) {
106
+ border-color: $color-granit;
107
+ }
108
+
109
+ @include m(lemon) {
110
+ border-color: $color-lemon;
111
+ }
112
+
113
+ @include m(jade) {
114
+ border-color: $color-jade;
115
+ }
116
+
117
+ @include m(ruby) {
118
+ border-color: $color-ruby;
119
+ }
120
+
121
+ @include m(peacock) {
122
+ border-color: $color-peacock;
123
+ }
124
+
125
+ @include m(ocean) {
126
+ border-color: $color-ocean;
127
+ }
128
+
129
+ @include m(transparent) {
130
+ background-color: transparent;
131
+ border-color: transparent;
132
+ }
133
+
134
+ @include e(image) {
135
+ border-radius: 50%;
136
+ width: rem(50px);
137
+ height: rem(50px);
138
+
139
+ @include m(medium) {
140
+ width: rem(75px);
141
+ height: rem(75px);
142
+ }
143
+
144
+ @include m(large) {
145
+ width: rem(125px);
146
+ height: rem(125px);
147
+ margin-bottom: rhythm(2);
148
+
149
+ @include bp-up(md) {
150
+ margin-bottom: 0;
151
+ }
152
+ }
153
+ }
154
+
155
+ @include e(close-btn) {
156
+ position: absolute;
157
+ top: 0;
158
+ right: 0;
159
+ z-index: z_index(middleGround);
160
+ }
161
+ }
162
+ }
@@ -0,0 +1,10 @@
1
+ const el = document.querySelector('.js-filter');
2
+
3
+ if (el) {
4
+ const observer = new IntersectionObserver(
5
+ ([e]) => el.classList.toggle('is-sticky', e.intersectionRatio < 1),
6
+ { threshold: [1] },
7
+ );
8
+
9
+ observer.observe(el);
10
+ }