@nuvler/cli 0.5.8 → 0.5.9
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvler/theme-default",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Tema padrão oficial da Nuvler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react": "^19.0.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@nuvler/theme-sdk": "^1.
|
|
67
|
+
"@nuvler/theme-sdk": "^1.4.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/react": "^19.0.0",
|
|
@@ -35,21 +35,22 @@ export function BannerCarousel({ banners, autoplay, desktopHeight = 590, mobileH
|
|
|
35
35
|
<BannerCarouselFrame count={banners.length} autoplay={autoplay}>
|
|
36
36
|
{banners.map((banner, index) => (
|
|
37
37
|
<article className="banner-slide" data-banner-slide key={`${banner.imageUrl}-${index}`} aria-hidden={index !== 0}>
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
<picture className="banner-responsive-image">
|
|
39
|
+
{(banner.mobileImage?.url || banner.mobileImageUrl) && <source media="(max-width: 800px)" srcSet={banner.mobileImage?.url || banner.mobileImageUrl} />}
|
|
40
|
+
<ImageComponent
|
|
41
|
+
image={banner.image ?? {
|
|
42
|
+
url: banner.imageUrl,
|
|
43
|
+
alt: banner.imageAlt || banner.title || "Banner",
|
|
44
|
+
width: null,
|
|
45
|
+
height: null,
|
|
46
|
+
}}
|
|
47
|
+
fallbackAlt={banner.title || "Banner"}
|
|
48
|
+
priority={priority && index === 0}
|
|
49
|
+
sizes="100vw"
|
|
50
|
+
fallbackWidth={1600}
|
|
51
|
+
fallbackHeight={640}
|
|
52
|
+
/>
|
|
53
|
+
</picture>
|
|
53
54
|
{(banner.title || banner.description || (banner.buttonLabel && banner.buttonUrl)) && (
|
|
54
55
|
<div className="banner-overlay">
|
|
55
56
|
<div className="store-container">
|
|
@@ -1723,17 +1723,23 @@ select {
|
|
|
1723
1723
|
aspect-ratio: var(--banner-desktop-aspect-ratio, 1.78);
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
|
-
.banner-
|
|
1727
|
-
.banner-slide > .store-image-placeholder {
|
|
1726
|
+
.banner-responsive-image {
|
|
1728
1727
|
position: absolute;
|
|
1729
1728
|
inset: 0;
|
|
1729
|
+
display: block;
|
|
1730
|
+
width: 100%;
|
|
1731
|
+
height: 100%;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.banner-responsive-image > img,
|
|
1735
|
+
.banner-responsive-image > .store-image-placeholder {
|
|
1730
1736
|
width: 100%;
|
|
1731
1737
|
height: 100%;
|
|
1732
1738
|
object-fit: cover;
|
|
1733
1739
|
}
|
|
1734
|
-
.banner-image-
|
|
1735
|
-
.banner-carousel-settings[data-image-fit="
|
|
1736
|
-
.banner-carousel-settings[data-image-fit="natural"] .banner-
|
|
1740
|
+
.banner-carousel-settings[data-image-fit="contain"] .banner-responsive-image > img { object-fit: contain; }
|
|
1741
|
+
.banner-carousel-settings[data-image-fit="natural"] .banner-responsive-image { display: grid; place-items: center; }
|
|
1742
|
+
.banner-carousel-settings[data-image-fit="natural"] .banner-responsive-image > img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
|
|
1737
1743
|
|
|
1738
1744
|
.banner-overlay {
|
|
1739
1745
|
position: absolute;
|
|
@@ -4371,9 +4377,6 @@ select {
|
|
|
4371
4377
|
max-height: var(--banner-mobile-height, 420px);
|
|
4372
4378
|
aspect-ratio: var(--banner-mobile-aspect-ratio, 1.78);
|
|
4373
4379
|
}
|
|
4374
|
-
.banner-image-desktop { display: none; }
|
|
4375
|
-
.banner-image-mobile { display: block; }
|
|
4376
|
-
|
|
4377
4380
|
.banner-overlay {
|
|
4378
4381
|
align-items: end;
|
|
4379
4382
|
background: linear-gradient(0deg, rgba(8, 17, 11, 0.78), rgba(8, 17, 11, 0.05) 80%);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvler/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "CLI oficial para criação, validação, preview e empacotamento de temas Nuvler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@nuvler/theme-schema": "^1.3.
|
|
24
|
-
"@nuvler/theme-sdk": "^1.
|
|
23
|
+
"@nuvler/theme-schema": "^1.3.5",
|
|
24
|
+
"@nuvler/theme-sdk": "^1.4.2",
|
|
25
25
|
"@vitejs/plugin-react": "^6.0.5",
|
|
26
26
|
"commander": "^15.0.0",
|
|
27
27
|
"react": "19.2.8",
|