@skeletonlabs/skeleton-common 5.0.0-next.9 → 5.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-common",
3
- "version": "5.0.0-next.9",
3
+ "version": "5.0.0",
4
4
  "description": "The common package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -0,0 +1,130 @@
1
+ @keyframes marqueeX {
2
+ 0% {
3
+ transform: translateX(0%);
4
+ }
5
+ 100% {
6
+ transform: translateX(var(--marquee-translate));
7
+ }
8
+ }
9
+
10
+ @keyframes marqueeY {
11
+ 0% {
12
+ transform: translateY(0%);
13
+ }
14
+ 100% {
15
+ transform: translateY(var(--marquee-translate));
16
+ }
17
+ }
18
+
19
+ [data-scope='marquee'] {
20
+ &[data-part='root'] {
21
+ position: relative;
22
+ overflow: hidden;
23
+
24
+ &[data-paused] {
25
+ & [data-part='content'] {
26
+ animation-play-state: paused;
27
+ }
28
+ }
29
+ }
30
+
31
+ &[data-part='viewport'] {
32
+ display: flex;
33
+ overflow: hidden;
34
+ gap: var(--marquee-spacing);
35
+
36
+ &[data-orientation='horizontal'] {
37
+ flex-direction: row;
38
+ }
39
+
40
+ &[data-orientation='vertical'] {
41
+ flex-direction: column;
42
+ }
43
+ }
44
+
45
+ &[data-part='content'] {
46
+ display: flex;
47
+ flex-shrink: 0;
48
+ gap: var(--marquee-spacing);
49
+ animation-timing-function: linear;
50
+ animation-duration: var(--marquee-duration);
51
+ animation-delay: var(--marquee-delay);
52
+ animation-iteration-count: var(--marquee-loop-count);
53
+
54
+ &[data-orientation='horizontal'] {
55
+ flex-direction: row;
56
+ }
57
+
58
+ &[data-orientation='vertical'] {
59
+ flex-direction: column;
60
+ }
61
+
62
+ &[data-side='start'],
63
+ &[data-side='end'] {
64
+ animation-name: marqueeX;
65
+ }
66
+
67
+ &[data-side='top'],
68
+ &[data-side='bottom'] {
69
+ animation-name: marqueeY;
70
+ }
71
+
72
+ &[data-reverse] {
73
+ animation-direction: reverse;
74
+ }
75
+
76
+ @media (prefers-reduced-motion: reduce) {
77
+ animation: none !important;
78
+ }
79
+ }
80
+
81
+ &[data-part='edge'] {
82
+ position: absolute;
83
+ top: 0;
84
+ bottom: 0;
85
+ z-index: 10;
86
+ pointer-events: none;
87
+
88
+ &[data-side='start'] {
89
+ left: 0;
90
+ width: 20%;
91
+ background: linear-gradient(to right, var(--color-surface-50), transparent);
92
+ @variant dark {
93
+ background: linear-gradient(to right, var(--color-surface-950), transparent);
94
+ }
95
+ }
96
+
97
+ &[data-side='end'] {
98
+ right: 0;
99
+ width: 20%;
100
+ background: linear-gradient(to left, var(--color-surface-50), transparent);
101
+ @variant dark {
102
+ background: linear-gradient(to left, var(--color-surface-950), transparent);
103
+ }
104
+ }
105
+
106
+ &[data-side='top'] {
107
+ top: 0;
108
+ left: 0;
109
+ right: 0;
110
+ bottom: auto;
111
+ height: 20%;
112
+ background: linear-gradient(to bottom, var(--color-surface-50), transparent);
113
+ @variant dark {
114
+ background: linear-gradient(to bottom, var(--color-surface-950), transparent);
115
+ }
116
+ }
117
+
118
+ &[data-side='bottom'] {
119
+ bottom: 0;
120
+ left: 0;
121
+ right: 0;
122
+ top: auto;
123
+ height: 20%;
124
+ background: linear-gradient(to top, var(--color-surface-50), transparent);
125
+ @variant dark {
126
+ background: linear-gradient(to top, var(--color-surface-950), transparent);
127
+ }
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,19 @@
1
+ [data-scope='qr-code'] {
2
+ &[data-part='root'] {
3
+ display: grid;
4
+ gap: --spacing(2);
5
+ }
6
+ &[data-part='frame'] {
7
+ background-color: var(--color-surface-50);
8
+ }
9
+ &[data-part='pattern'] {
10
+ fill: var(--color-surface-950);
11
+ }
12
+ &[data-part='overlay'] {
13
+ background-color: var(--color-surface-900-100);
14
+ color: var(--color-surface-100-900);
15
+ }
16
+ &[data-part='download-trigger'] {
17
+ @apply btn preset-filled;
18
+ }
19
+ }
package/src/index.css CHANGED
@@ -2,6 +2,7 @@
2
2
  @import './components/app-bar.css';
3
3
  @import './components/avatar.css';
4
4
  @import './components/carousel.css';
5
+ @import './components/marquee.css';
5
6
  @import './components/collapsible.css';
6
7
  @import './components/combobox.css';
7
8
  @import './components/date-picker.css';
@@ -12,6 +13,7 @@
12
13
  @import './components/navigation.css';
13
14
  @import './components/pagination.css';
14
15
  @import './components/progress.css';
16
+ @import './components/qr-code.css';
15
17
  @import './components/rating-group.css';
16
18
  @import './components/segmented-control.css';
17
19
  @import './components/slider.css';