@sharadox/sharadox-web-library 0.53.0-development.87 → 0.53.1-development.91
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/CHANGELOG.md +4 -0
- package/distribution/style/token/index.scss +2 -40
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of `@sharadox/sharadox-web-library`, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.53.1
|
|
6
|
+
|
|
7
|
+
The tokens forward style-web-library's `style-helper` instead of defining $ease, below, tint, on-scroll and skip-entrance themselves; the compiled CSS is byte-identical. A site using these tokens needs `@sharadox/next-js-configuration-web-library` 0.3.0+ and `@sharadox/style-web-library` 0.3.0+ installed.
|
|
8
|
+
|
|
5
9
|
## 0.53.0
|
|
6
10
|
|
|
7
11
|
- `utility/sharadox-email` is `utility/branded-email` (`brandedEmail`, `brandedEmailImages`): the library's name no longer repeats inside it.
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
+
@forward "style-helper";
|
|
2
|
+
@use "style-helper" as *;
|
|
1
3
|
// Sharadox design helpers. Colors are CSS custom properties set by the active style (content/style: Black, White…),
|
|
2
4
|
// so everything here works in every style. Only build-time helpers live in this file.
|
|
3
|
-
@use "sass:list";
|
|
4
|
-
|
|
5
|
-
$ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
6
|
-
|
|
7
|
-
/// Below a viewport width.
|
|
8
|
-
@mixin below($width) {
|
|
9
|
-
@media (max-width: $width) {
|
|
10
|
-
@content;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
5
|
|
|
14
6
|
/// Fills the positioned parent and centers the content.
|
|
15
7
|
@mixin fill-center {
|
|
@@ -19,11 +11,6 @@ $ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
|
19
11
|
place-items: center;
|
|
20
12
|
}
|
|
21
13
|
|
|
22
|
-
/// The foreground color at an opacity, for lights, glows and hairlines that follow the style.
|
|
23
|
-
@function tint($amount) {
|
|
24
|
-
@return color-mix(in srgb, var(--foreground) $amount, transparent);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
14
|
/// The background color at an opacity, for frosted bars and shadows that follow the style.
|
|
28
15
|
@function shade($amount) {
|
|
29
16
|
@return color-mix(in srgb, var(--background) $amount, transparent);
|
|
@@ -38,28 +25,3 @@ $ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
|
38
25
|
background: linear-gradient(180deg, $color 50%, transparent 0) $at / 1px #{$dash + $gap} repeat-y;
|
|
39
26
|
}
|
|
40
27
|
}
|
|
41
|
-
|
|
42
|
-
/// Animates something in as it scrolls into view (CSS scroll-driven animation, where supported, and only when the
|
|
43
|
-
/// visitor allows motion). The element's normal styles are its final state, so it is complete everywhere else.
|
|
44
|
-
@mixin on-scroll($keyframes, $range: entry 10% cover 40%) {
|
|
45
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
46
|
-
@supports (animation-timeline: view()) {
|
|
47
|
-
animation: $keyframes linear both;
|
|
48
|
-
animation-timeline: view();
|
|
49
|
-
animation-range: $range;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/// Marks a time-based entrance animation: it plays on a first visit, and shows its final state at once when the page
|
|
55
|
-
/// was rebuilt in place (a soft navigation, such as switching language). Pass one duration per listed animation to
|
|
56
|
-
/// keep loops running, for example `skip-entrance(0s, 2.4s)` for `entrance …, shimmer 2.4s infinite`.
|
|
57
|
-
@mixin skip-entrance($durations...) {
|
|
58
|
-
@if list.length($durations) == 0 {
|
|
59
|
-
$durations: 0s;
|
|
60
|
-
}
|
|
61
|
-
:global(:root[data-soft-navigation]) & {
|
|
62
|
-
animation-duration: $durations !important;
|
|
63
|
-
animation-delay: 0s !important;
|
|
64
|
-
}
|
|
65
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.1-development.91",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -55,33 +55,33 @@
|
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@sharadox/animation-web-library": "^0.3.
|
|
58
|
+
"@sharadox/animation-web-library": "^0.3.1",
|
|
59
59
|
"@sharadox/consent-web-library": "^0.4.0",
|
|
60
60
|
"@sharadox/email-web-library": "^0.5.0",
|
|
61
|
-
"@sharadox/form-web-library": "^0.7.
|
|
62
|
-
"@sharadox/globe-web-library": "^0.2.
|
|
63
|
-
"@sharadox/icon-web-library": "^0.6.
|
|
64
|
-
"@sharadox/internationalization-web-library": "^0.
|
|
65
|
-
"@sharadox/legal-web-library": "^0.1.
|
|
66
|
-
"@sharadox/menu-web-library": "^0.1.
|
|
67
|
-
"@sharadox/metadata-web-library": "^0.
|
|
68
|
-
"@sharadox/pointer-web-library": "^0.3.
|
|
69
|
-
"@sharadox/privacy-web-library": "^0.1.
|
|
70
|
-
"@sharadox/scroll-web-library": "^0.
|
|
71
|
-
"@sharadox/style-web-library": "^0.
|
|
72
|
-
"@sharadox/time-web-library": "^0.2.
|
|
61
|
+
"@sharadox/form-web-library": "^0.7.1",
|
|
62
|
+
"@sharadox/globe-web-library": "^0.2.3",
|
|
63
|
+
"@sharadox/icon-web-library": "^0.6.1",
|
|
64
|
+
"@sharadox/internationalization-web-library": "^0.4.0",
|
|
65
|
+
"@sharadox/legal-web-library": "^0.1.2",
|
|
66
|
+
"@sharadox/menu-web-library": "^0.1.2",
|
|
67
|
+
"@sharadox/metadata-web-library": "^0.9.0",
|
|
68
|
+
"@sharadox/pointer-web-library": "^0.3.1",
|
|
69
|
+
"@sharadox/privacy-web-library": "^0.1.3",
|
|
70
|
+
"@sharadox/scroll-web-library": "^0.7.1",
|
|
71
|
+
"@sharadox/style-web-library": "^0.3.0",
|
|
72
|
+
"@sharadox/time-web-library": "^0.2.2",
|
|
73
73
|
"@sharadox/web-library": "^0.9.0",
|
|
74
74
|
"marked": "^17.0.6",
|
|
75
75
|
"motion": "^12.43.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@sharadox/es-lint-configuration-web-library": "^0.1.
|
|
79
|
-
"@sharadox/library-build-web-library": "^0.
|
|
80
|
-
"@sharadox/prettier-configuration-web-library": "^0.1.
|
|
81
|
-
"@sharadox/test-web-library": "^0.
|
|
82
|
-
"@sharadox/turborepo-configuration-web-library": "^0.1.
|
|
83
|
-
"@sharadox/type-script-configuration-web-library": "^0.2.
|
|
84
|
-
"@sharadox/vitest-configuration-web-library": "^0.
|
|
78
|
+
"@sharadox/es-lint-configuration-web-library": "^0.1.2",
|
|
79
|
+
"@sharadox/library-build-web-library": "^0.2.0",
|
|
80
|
+
"@sharadox/prettier-configuration-web-library": "^0.1.1",
|
|
81
|
+
"@sharadox/test-web-library": "^0.4.0",
|
|
82
|
+
"@sharadox/turborepo-configuration-web-library": "^0.1.2",
|
|
83
|
+
"@sharadox/type-script-configuration-web-library": "^0.2.2",
|
|
84
|
+
"@sharadox/vitest-configuration-web-library": "^0.2.0",
|
|
85
85
|
"@testing-library/dom": "^10.4.2",
|
|
86
86
|
"@testing-library/react": "^16.3.3",
|
|
87
87
|
"@types/node": "^24.19.2",
|