@xscriptor/xcomponents 0.1.0 → 0.1.2
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/README.md +1 -0
- package/dist/{chunk-QCMWPIG7.mjs → chunk-BXVG4SYP.mjs} +101 -3
- package/dist/chunk-BXVG4SYP.mjs.map +7 -0
- package/dist/{chunk-42XPBYTL.mjs → chunk-FW47JGYZ.mjs} +122 -4
- package/dist/chunk-FW47JGYZ.mjs.map +7 -0
- package/dist/chunk-FZRTAML3.mjs +1 -1
- package/dist/chunk-FZRTAML3.mjs.map +7 -1
- package/dist/{chunk-5G4P2E76.mjs → chunk-IK2UCTCM.mjs} +46 -6
- package/dist/chunk-IK2UCTCM.mjs.map +7 -0
- package/dist/{chunk-U27ZVCP7.mjs → chunk-WE7QZGVP.mjs} +45 -2
- package/dist/chunk-WE7QZGVP.mjs.map +7 -0
- package/dist/{chunk-2OAXRRVQ.mjs → chunk-XB3UGHSF.mjs} +94 -3
- package/dist/chunk-XB3UGHSF.mjs.map +7 -0
- package/dist/{chunk-NY22GB3E.mjs → chunk-ZDMG7X6H.mjs} +57 -2
- package/dist/chunk-ZDMG7X6H.mjs.map +7 -0
- package/dist/components/content/index.css +65 -66
- package/dist/components/content/index.css.map +7 -1
- package/dist/components/content/index.d.ts +2 -17
- package/dist/components/content/index.js +46 -10
- package/dist/components/content/index.js.map +7 -1
- package/dist/components/content/index.mjs +2 -2
- package/dist/components/content/index.mjs.map +7 -1
- package/dist/components/content/xinteractivephrase/XInteractivePhrase.d.ts +13 -0
- package/dist/components/content/xinteractivephrase/index.d.ts +3 -0
- package/dist/components/forms/index.css +114 -116
- package/dist/components/forms/index.css.map +7 -1
- package/dist/components/forms/index.d.ts +4 -68
- package/dist/components/forms/index.js +101 -8
- package/dist/components/forms/index.js.map +7 -1
- package/dist/components/forms/index.mjs +2 -2
- package/dist/components/forms/index.mjs.map +7 -1
- package/dist/components/forms/xcontactform/XContactForm.d.ts +42 -0
- package/dist/components/forms/xcontactform/index.d.ts +3 -0
- package/dist/components/forms/xnewsletter/XNewsletter.d.ts +21 -0
- package/dist/components/forms/xnewsletter/index.d.ts +3 -0
- package/dist/components/gallery/index.css +108 -111
- package/dist/components/gallery/index.css.map +7 -1
- package/dist/components/gallery/index.d.ts +4 -29
- package/dist/components/gallery/index.js +94 -8
- package/dist/components/gallery/index.js.map +7 -1
- package/dist/components/gallery/index.mjs +2 -2
- package/dist/components/gallery/index.mjs.map +7 -1
- package/dist/components/gallery/xmicrogallerytext/XMicroGalleryText.d.ts +15 -0
- package/dist/components/gallery/xmicrogallerytext/index.d.ts +3 -0
- package/dist/components/gallery/xstaticgallery/XStaticGallery.d.ts +10 -0
- package/dist/components/gallery/xstaticgallery/index.d.ts +3 -0
- package/dist/components/index.css +537 -535
- package/dist/components/index.css.map +7 -1
- package/dist/components/index.d.ts +6 -8
- package/dist/components/index.js +460 -35
- package/dist/components/index.js.map +7 -1
- package/dist/components/index.mjs +12 -12
- package/dist/components/index.mjs.map +7 -1
- package/dist/components/layout/index.css +90 -82
- package/dist/components/layout/index.css.map +7 -1
- package/dist/components/layout/index.d.ts +6 -55
- package/dist/components/layout/index.js +122 -10
- package/dist/components/layout/index.js.map +7 -1
- package/dist/components/layout/index.mjs +2 -2
- package/dist/components/layout/index.mjs.map +7 -1
- package/dist/components/layout/xfooter/XFooter.d.ts +24 -0
- package/dist/components/layout/xfooter/index.d.ts +3 -0
- package/dist/components/layout/xseparator/XSeparator.d.ts +13 -0
- package/dist/components/layout/xseparator/index.d.ts +3 -0
- package/dist/components/layout/xzigzaglayout/XZigZagLayout.d.ts +12 -0
- package/dist/components/layout/xzigzaglayout/index.d.ts +3 -0
- package/dist/components/navigation/index.css +121 -121
- package/dist/components/navigation/index.css.map +7 -1
- package/dist/components/navigation/index.d.ts +2 -76
- package/dist/components/navigation/index.js +57 -6
- package/dist/components/navigation/index.js.map +7 -1
- package/dist/components/navigation/index.mjs +2 -2
- package/dist/components/navigation/index.mjs.map +7 -1
- package/dist/components/navigation/{index.d.mts → xnavbar/XNavbar.d.ts} +6 -10
- package/dist/components/navigation/xnavbar/index.d.ts +3 -0
- package/dist/components/social/index.css +44 -44
- package/dist/components/social/index.css.map +7 -1
- package/dist/components/social/index.d.ts +2 -55
- package/dist/components/social/index.js +45 -13
- package/dist/components/social/index.js.map +7 -1
- package/dist/components/social/index.mjs +2 -2
- package/dist/components/social/index.mjs.map +7 -1
- package/dist/components/social/xsocialcontact/XSocialContact.d.ts +30 -0
- package/dist/components/social/xsocialcontact/XSocialIcons.d.ts +21 -0
- package/dist/components/social/xsocialcontact/index.d.ts +5 -0
- package/dist/index.css +537 -535
- package/dist/index.css.map +7 -1
- package/dist/index.d.ts +1 -8
- package/dist/index.js +463 -38
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +7 -1
- package/package.json +7 -4
- package/dist/chunk-2OAXRRVQ.mjs.map +0 -1
- package/dist/chunk-42XPBYTL.mjs.map +0 -1
- package/dist/chunk-5G4P2E76.mjs.map +0 -1
- package/dist/chunk-NY22GB3E.mjs.map +0 -1
- package/dist/chunk-QCMWPIG7.mjs.map +0 -1
- package/dist/chunk-U27ZVCP7.mjs.map +0 -1
- package/dist/components/content/index.d.mts +0 -17
- package/dist/components/forms/index.d.mts +0 -68
- package/dist/components/gallery/index.d.mts +0 -29
- package/dist/components/index.d.mts +0 -8
- package/dist/components/layout/index.d.mts +0 -55
- package/dist/components/social/index.d.mts +0 -55
- package/dist/index.d.mts +0 -8
|
@@ -1,229 +1,226 @@
|
|
|
1
|
-
/* src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css */
|
|
2
|
-
.
|
|
3
|
-
display: flex;
|
|
1
|
+
/* esbuild-css-modules-plugin-ns-css:src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css */
|
|
2
|
+
.XMicroGalleryText-module__container_22YC0W__012 {
|
|
4
3
|
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
5
|
gap: 2rem;
|
|
6
6
|
width: 100%;
|
|
7
|
-
align-items: center;
|
|
8
7
|
margin: 2rem 0;
|
|
8
|
+
display: flex;
|
|
9
9
|
}
|
|
10
|
-
@media (
|
|
11
|
-
.
|
|
10
|
+
@media (width >= 1024px) {
|
|
11
|
+
.XMicroGalleryText-module__container_22YC0W__012 {
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
align-items: center;
|
|
14
14
|
gap: 4rem;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.XMicroGalleryText-module__reverse_22YC0W__012 {
|
|
17
17
|
flex-direction: row-reverse;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
.
|
|
21
|
-
flex: 1;
|
|
20
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 {
|
|
22
21
|
opacity: 0;
|
|
23
|
-
transform: translateY(30px);
|
|
24
|
-
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
|
|
25
22
|
color: var(--foreground);
|
|
23
|
+
flex: 1;
|
|
24
|
+
transition: opacity .8s ease-out, transform .8s ease-out;
|
|
25
|
+
transform: translateY(30px);
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.XMicroGalleryText-module__textContent_22YC0W__012.XMicroGalleryText-module__visible_22YC0W__012 {
|
|
28
28
|
opacity: 1;
|
|
29
29
|
transform: translateY(0);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.XMicroGalleryText-module__textLeft_22YC0W__012 {
|
|
32
32
|
text-align: left;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.XMicroGalleryText-module__textRight_22YC0W__012 {
|
|
35
35
|
text-align: right;
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.XMicroGalleryText-module__textCenter_22YC0W__012 {
|
|
38
38
|
text-align: center;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
41
|
-
.
|
|
42
|
-
.
|
|
43
|
-
.
|
|
44
|
-
.
|
|
45
|
-
.
|
|
40
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 p,
|
|
41
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 div,
|
|
42
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 span,
|
|
43
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 em,
|
|
44
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 strong,
|
|
45
|
+
.XMicroGalleryText-module__textContent_22YC0W__012 a {
|
|
46
46
|
text-align: inherit;
|
|
47
47
|
max-width: none;
|
|
48
48
|
margin-left: unset;
|
|
49
49
|
margin-right: unset;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.XMicroGalleryText-module__gallery_22YC0W__012 {
|
|
52
52
|
flex: 1.5;
|
|
53
53
|
width: 100%;
|
|
54
54
|
}
|
|
55
|
-
.
|
|
56
|
-
display: grid;
|
|
57
|
-
grid-template-columns: repeat(3, 1fr);
|
|
55
|
+
.XMicroGalleryText-module__artisticGrid_22YC0W__012 {
|
|
58
56
|
grid-template-rows: 380px 220px;
|
|
57
|
+
grid-template-columns: repeat(3, 1fr);
|
|
59
58
|
gap: 1rem;
|
|
59
|
+
display: grid;
|
|
60
60
|
}
|
|
61
|
-
.
|
|
62
|
-
position: relative;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
65
|
-
border-radius: 20px;
|
|
61
|
+
.XMicroGalleryText-module__imageWrapper_22YC0W__012 {
|
|
66
62
|
opacity: 0;
|
|
67
|
-
|
|
63
|
+
border-radius: 20px;
|
|
68
64
|
transition:
|
|
69
|
-
opacity
|
|
70
|
-
transform
|
|
71
|
-
box-shadow
|
|
65
|
+
opacity .6s ease-out,
|
|
66
|
+
transform .6s ease-out,
|
|
67
|
+
box-shadow .3s;
|
|
68
|
+
position: relative;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
transform: translateY(50px) scale(.95);
|
|
71
|
+
box-shadow: 0 10px 30px #0000001a;
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.XMicroGalleryText-module__imageWrapper_22YC0W__012.XMicroGalleryText-module__visible_22YC0W__012 {
|
|
74
74
|
opacity: 1;
|
|
75
75
|
transform: translateY(0) scale(1);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.XMicroGalleryText-module__imageWrapper_22YC0W__012:hover {
|
|
78
78
|
transform: translateY(-5px);
|
|
79
|
-
box-shadow: 0 20px 40px
|
|
79
|
+
box-shadow: 0 20px 40px #00000026;
|
|
80
80
|
}
|
|
81
|
-
.
|
|
81
|
+
.XMicroGalleryText-module__previewImage_22YC0W__012 {
|
|
82
82
|
object-fit: cover;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.XMicroGalleryText-module__artisticGrid_22YC0W__012 .XMicroGalleryText-module__artistic1_22YC0W__012 .XMicroGalleryText-module__previewImage_22YC0W__012 {
|
|
85
85
|
object-position: center top;
|
|
86
86
|
transform: translateY(0);
|
|
87
87
|
}
|
|
88
|
-
.
|
|
89
|
-
grid-
|
|
90
|
-
|
|
91
|
-
transition-delay: 0.2s;
|
|
88
|
+
.XMicroGalleryText-module__artistic1_22YC0W__012 {
|
|
89
|
+
grid-area: 1 / 1 / 2 / 4;
|
|
90
|
+
transition-delay: .2s;
|
|
92
91
|
}
|
|
93
|
-
.
|
|
94
|
-
grid-
|
|
95
|
-
|
|
96
|
-
transition-delay: 0.3s;
|
|
92
|
+
.XMicroGalleryText-module__artistic2_22YC0W__012 {
|
|
93
|
+
grid-area: 2 / 1 / 3 / 2;
|
|
94
|
+
transition-delay: .3s;
|
|
97
95
|
}
|
|
98
|
-
.
|
|
99
|
-
grid-
|
|
100
|
-
|
|
101
|
-
transition-delay: 0.4s;
|
|
96
|
+
.XMicroGalleryText-module__artistic3_22YC0W__012 {
|
|
97
|
+
grid-area: 2 / 2 / 3 / 4;
|
|
98
|
+
transition-delay: .4s;
|
|
102
99
|
}
|
|
103
|
-
@media (
|
|
104
|
-
.
|
|
105
|
-
grid-template-columns: 1fr;
|
|
100
|
+
@media (width <= 768px) {
|
|
101
|
+
.XMicroGalleryText-module__artisticGrid_22YC0W__012 {
|
|
106
102
|
grid-template-rows: 240px 180px 180px;
|
|
103
|
+
grid-template-columns: 1fr;
|
|
107
104
|
}
|
|
108
|
-
.
|
|
109
|
-
.
|
|
110
|
-
.
|
|
105
|
+
.XMicroGalleryText-module__artistic1_22YC0W__012,
|
|
106
|
+
.XMicroGalleryText-module__artistic2_22YC0W__012,
|
|
107
|
+
.XMicroGalleryText-module__artistic3_22YC0W__012 {
|
|
111
108
|
grid-column: 1 / 2;
|
|
112
109
|
}
|
|
113
|
-
.
|
|
110
|
+
.XMicroGalleryText-module__artistic1_22YC0W__012 {
|
|
114
111
|
grid-row: 1 / 2;
|
|
115
112
|
}
|
|
116
|
-
.
|
|
113
|
+
.XMicroGalleryText-module__artistic2_22YC0W__012 {
|
|
117
114
|
grid-row: 2 / 3;
|
|
118
115
|
}
|
|
119
|
-
.
|
|
116
|
+
.XMicroGalleryText-module__artistic3_22YC0W__012 {
|
|
120
117
|
grid-row: 3 / 4;
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
|
-
@media (
|
|
124
|
-
.
|
|
120
|
+
@media (width <= 480px) {
|
|
121
|
+
.XMicroGalleryText-module__artisticGrid_22YC0W__012 {
|
|
125
122
|
grid-template-rows: 200px 140px 140px;
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
|
|
129
|
-
/* src/components/gallery/xstaticgallery/XStaticGallery.module.css */
|
|
130
|
-
.
|
|
126
|
+
/* esbuild-css-modules-plugin-ns-css:src/components/gallery/xstaticgallery/XStaticGallery.module.css */
|
|
127
|
+
.XStaticGallery-module__galleryContainer_7nn4pa__012 {
|
|
131
128
|
width: 100%;
|
|
132
129
|
max-width: 80rem;
|
|
133
130
|
margin: 0 auto;
|
|
134
131
|
padding: 1rem 1rem 3rem;
|
|
135
132
|
}
|
|
136
|
-
.
|
|
137
|
-
font-size: 1.875rem;
|
|
133
|
+
.XStaticGallery-module__galleryTitle_7nn4pa__012 {
|
|
138
134
|
text-align: right;
|
|
139
135
|
color: var(--primary);
|
|
136
|
+
opacity: .8;
|
|
140
137
|
margin-bottom: 3rem;
|
|
141
|
-
|
|
138
|
+
font-size: 1.875rem;
|
|
142
139
|
}
|
|
143
|
-
.
|
|
140
|
+
.XStaticGallery-module__masonryGrid_7nn4pa__012 {
|
|
144
141
|
gap: 1rem;
|
|
145
142
|
}
|
|
146
|
-
.
|
|
143
|
+
.XStaticGallery-module__masonryItem_7nn4pa__012 {
|
|
147
144
|
break-inside: avoid;
|
|
148
|
-
|
|
145
|
+
opacity: 0;
|
|
149
146
|
border-radius: 1rem;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
152
147
|
margin-bottom: 1rem;
|
|
153
|
-
opacity: 0;
|
|
154
|
-
transform: translateY(20px);
|
|
155
148
|
transition:
|
|
156
|
-
opacity
|
|
157
|
-
transform
|
|
158
|
-
box-shadow
|
|
149
|
+
opacity .5s ease-out,
|
|
150
|
+
transform .5s ease-out,
|
|
151
|
+
box-shadow .3s;
|
|
152
|
+
position: relative;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
transform: translateY(20px);
|
|
155
|
+
box-shadow: 0 4px 12px #00000014;
|
|
159
156
|
}
|
|
160
|
-
.
|
|
157
|
+
.XStaticGallery-module__masonryItem_7nn4pa__012.XStaticGallery-module__visible_7nn4pa__012 {
|
|
161
158
|
opacity: 1;
|
|
162
159
|
transform: translateY(0);
|
|
163
160
|
}
|
|
164
|
-
.
|
|
165
|
-
box-shadow: 0 12px 32px
|
|
161
|
+
.XStaticGallery-module__masonryItem_7nn4pa__012:hover {
|
|
162
|
+
box-shadow: 0 12px 32px #0000002e;
|
|
166
163
|
}
|
|
167
|
-
.
|
|
168
|
-
|
|
164
|
+
.XStaticGallery-module__imageContainer_7nn4pa__012 {
|
|
165
|
+
border-radius: 1rem;
|
|
169
166
|
width: 100%;
|
|
167
|
+
position: relative;
|
|
170
168
|
overflow: hidden;
|
|
171
|
-
border-radius: 1rem;
|
|
172
169
|
}
|
|
173
|
-
.
|
|
170
|
+
.XStaticGallery-module__galleryImage_7nn4pa__012 {
|
|
171
|
+
object-fit: cover;
|
|
174
172
|
width: 100%;
|
|
175
173
|
height: auto;
|
|
176
|
-
|
|
174
|
+
transition: transform .5s ease-out;
|
|
177
175
|
display: block;
|
|
178
|
-
transition: transform 0.5s ease-out;
|
|
179
176
|
}
|
|
180
|
-
.
|
|
177
|
+
.XStaticGallery-module__masonryItem_7nn4pa__012:hover .XStaticGallery-module__galleryImage_7nn4pa__012 {
|
|
181
178
|
transform: scale(1.05);
|
|
182
179
|
}
|
|
183
|
-
.
|
|
180
|
+
.XStaticGallery-module__imageOverlay_7nn4pa__012 {
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
background: none;
|
|
183
|
+
transition: background .3s;
|
|
184
184
|
position: absolute;
|
|
185
185
|
inset: 0;
|
|
186
|
-
background: rgba(0, 0, 0, 0);
|
|
187
|
-
transition: background 0.3s ease;
|
|
188
|
-
pointer-events: none;
|
|
189
186
|
}
|
|
190
|
-
.
|
|
191
|
-
background:
|
|
187
|
+
.XStaticGallery-module__masonryItem_7nn4pa__012:hover .XStaticGallery-module__imageOverlay_7nn4pa__012 {
|
|
188
|
+
background: #0000001a;
|
|
192
189
|
}
|
|
193
|
-
.
|
|
190
|
+
.XStaticGallery-module__cols1_7nn4pa__012 {
|
|
194
191
|
columns: 1;
|
|
195
192
|
}
|
|
196
|
-
.
|
|
193
|
+
.XStaticGallery-module__cols2_7nn4pa__012 {
|
|
197
194
|
columns: 2;
|
|
198
195
|
}
|
|
199
|
-
.
|
|
196
|
+
.XStaticGallery-module__cols3_7nn4pa__012 {
|
|
200
197
|
columns: 3;
|
|
201
198
|
}
|
|
202
|
-
.
|
|
199
|
+
.XStaticGallery-module__cols4_7nn4pa__012 {
|
|
203
200
|
columns: 4;
|
|
204
201
|
}
|
|
205
|
-
.
|
|
202
|
+
.XStaticGallery-module__cols5_7nn4pa__012 {
|
|
206
203
|
columns: 5;
|
|
207
204
|
}
|
|
208
|
-
@media (
|
|
209
|
-
.
|
|
210
|
-
.
|
|
205
|
+
@media (width <= 1280px) {
|
|
206
|
+
.XStaticGallery-module__cols4_7nn4pa__012,
|
|
207
|
+
.XStaticGallery-module__cols5_7nn4pa__012 {
|
|
211
208
|
columns: 3;
|
|
212
209
|
}
|
|
213
210
|
}
|
|
214
|
-
@media (
|
|
215
|
-
.
|
|
216
|
-
.
|
|
217
|
-
.
|
|
211
|
+
@media (width <= 768px) {
|
|
212
|
+
.XStaticGallery-module__cols3_7nn4pa__012,
|
|
213
|
+
.XStaticGallery-module__cols4_7nn4pa__012,
|
|
214
|
+
.XStaticGallery-module__cols5_7nn4pa__012 {
|
|
218
215
|
columns: 2;
|
|
219
216
|
}
|
|
220
217
|
}
|
|
221
|
-
@media (
|
|
222
|
-
.
|
|
223
|
-
.
|
|
224
|
-
.
|
|
225
|
-
.
|
|
218
|
+
@media (width <= 640px) {
|
|
219
|
+
.XStaticGallery-module__cols2_7nn4pa__012,
|
|
220
|
+
.XStaticGallery-module__cols3_7nn4pa__012,
|
|
221
|
+
.XStaticGallery-module__cols4_7nn4pa__012,
|
|
222
|
+
.XStaticGallery-module__cols5_7nn4pa__012 {
|
|
226
223
|
columns: 1;
|
|
227
224
|
}
|
|
228
225
|
}
|
|
229
|
-
/*# sourceMappingURL=index.css.map */
|
|
226
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["esbuild-css-modules-plugin-ns-css:src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css", "esbuild-css-modules-plugin-ns-css:src/components/gallery/xstaticgallery/XStaticGallery.module.css"],
|
|
4
|
+
"sourcesContent": [".XMicroGalleryText-module__container_22YC0W__012 {\n flex-direction: column;\n align-items: center;\n gap: 2rem;\n width: 100%;\n margin: 2rem 0;\n display: flex;\n}\n\n@media (width >= 1024px) {\n .XMicroGalleryText-module__container_22YC0W__012 {\n flex-direction: row;\n align-items: center;\n gap: 4rem;\n }\n\n .XMicroGalleryText-module__reverse_22YC0W__012 {\n flex-direction: row-reverse;\n }\n}\n\n.XMicroGalleryText-module__textContent_22YC0W__012 {\n opacity: 0;\n color: var(--foreground);\n flex: 1;\n transition: opacity .8s ease-out, transform .8s ease-out;\n transform: translateY(30px);\n}\n\n.XMicroGalleryText-module__textContent_22YC0W__012.XMicroGalleryText-module__visible_22YC0W__012 {\n opacity: 1;\n transform: translateY(0);\n}\n\n.XMicroGalleryText-module__textLeft_22YC0W__012 {\n text-align: left;\n}\n\n.XMicroGalleryText-module__textRight_22YC0W__012 {\n text-align: right;\n}\n\n.XMicroGalleryText-module__textCenter_22YC0W__012 {\n text-align: center;\n}\n\n.XMicroGalleryText-module__textContent_22YC0W__012 p, .XMicroGalleryText-module__textContent_22YC0W__012 div, .XMicroGalleryText-module__textContent_22YC0W__012 span, .XMicroGalleryText-module__textContent_22YC0W__012 em, .XMicroGalleryText-module__textContent_22YC0W__012 strong, .XMicroGalleryText-module__textContent_22YC0W__012 a {\n text-align: inherit;\n max-width: none;\n margin-left: unset;\n margin-right: unset;\n}\n\n.XMicroGalleryText-module__gallery_22YC0W__012 {\n flex: 1.5;\n width: 100%;\n}\n\n.XMicroGalleryText-module__artisticGrid_22YC0W__012 {\n grid-template-rows: 380px 220px;\n grid-template-columns: repeat(3, 1fr);\n gap: 1rem;\n display: grid;\n}\n\n.XMicroGalleryText-module__imageWrapper_22YC0W__012 {\n opacity: 0;\n border-radius: 20px;\n transition: opacity .6s ease-out, transform .6s ease-out, box-shadow .3s;\n position: relative;\n overflow: hidden;\n transform: translateY(50px) scale(.95);\n box-shadow: 0 10px 30px #0000001a;\n}\n\n.XMicroGalleryText-module__imageWrapper_22YC0W__012.XMicroGalleryText-module__visible_22YC0W__012 {\n opacity: 1;\n transform: translateY(0) scale(1);\n}\n\n.XMicroGalleryText-module__imageWrapper_22YC0W__012:hover {\n transform: translateY(-5px);\n box-shadow: 0 20px 40px #00000026;\n}\n\n.XMicroGalleryText-module__previewImage_22YC0W__012 {\n object-fit: cover;\n}\n\n.XMicroGalleryText-module__artisticGrid_22YC0W__012 .XMicroGalleryText-module__artistic1_22YC0W__012 .XMicroGalleryText-module__previewImage_22YC0W__012 {\n object-position: center top;\n transform: translateY(0);\n}\n\n.XMicroGalleryText-module__artistic1_22YC0W__012 {\n grid-area: 1 / 1 / 2 / 4;\n transition-delay: .2s;\n}\n\n.XMicroGalleryText-module__artistic2_22YC0W__012 {\n grid-area: 2 / 1 / 3 / 2;\n transition-delay: .3s;\n}\n\n.XMicroGalleryText-module__artistic3_22YC0W__012 {\n grid-area: 2 / 2 / 3 / 4;\n transition-delay: .4s;\n}\n\n@media (width <= 768px) {\n .XMicroGalleryText-module__artisticGrid_22YC0W__012 {\n grid-template-rows: 240px 180px 180px;\n grid-template-columns: 1fr;\n }\n\n .XMicroGalleryText-module__artistic1_22YC0W__012, .XMicroGalleryText-module__artistic2_22YC0W__012, .XMicroGalleryText-module__artistic3_22YC0W__012 {\n grid-column: 1 / 2;\n }\n\n .XMicroGalleryText-module__artistic1_22YC0W__012 {\n grid-row: 1 / 2;\n }\n\n .XMicroGalleryText-module__artistic2_22YC0W__012 {\n grid-row: 2 / 3;\n }\n\n .XMicroGalleryText-module__artistic3_22YC0W__012 {\n grid-row: 3 / 4;\n }\n}\n\n@media (width <= 480px) {\n .XMicroGalleryText-module__artisticGrid_22YC0W__012 {\n grid-template-rows: 200px 140px 140px;\n }\n}\n", ".XStaticGallery-module__galleryContainer_7nn4pa__012 {\n width: 100%;\n max-width: 80rem;\n margin: 0 auto;\n padding: 1rem 1rem 3rem;\n}\n\n.XStaticGallery-module__galleryTitle_7nn4pa__012 {\n text-align: right;\n color: var(--primary);\n opacity: .8;\n margin-bottom: 3rem;\n font-size: 1.875rem;\n}\n\n.XStaticGallery-module__masonryGrid_7nn4pa__012 {\n gap: 1rem;\n}\n\n.XStaticGallery-module__masonryItem_7nn4pa__012 {\n break-inside: avoid;\n opacity: 0;\n border-radius: 1rem;\n margin-bottom: 1rem;\n transition: opacity .5s ease-out, transform .5s ease-out, box-shadow .3s;\n position: relative;\n overflow: hidden;\n transform: translateY(20px);\n box-shadow: 0 4px 12px #00000014;\n}\n\n.XStaticGallery-module__masonryItem_7nn4pa__012.XStaticGallery-module__visible_7nn4pa__012 {\n opacity: 1;\n transform: translateY(0);\n}\n\n.XStaticGallery-module__masonryItem_7nn4pa__012:hover {\n box-shadow: 0 12px 32px #0000002e;\n}\n\n.XStaticGallery-module__imageContainer_7nn4pa__012 {\n border-radius: 1rem;\n width: 100%;\n position: relative;\n overflow: hidden;\n}\n\n.XStaticGallery-module__galleryImage_7nn4pa__012 {\n object-fit: cover;\n width: 100%;\n height: auto;\n transition: transform .5s ease-out;\n display: block;\n}\n\n.XStaticGallery-module__masonryItem_7nn4pa__012:hover .XStaticGallery-module__galleryImage_7nn4pa__012 {\n transform: scale(1.05);\n}\n\n.XStaticGallery-module__imageOverlay_7nn4pa__012 {\n pointer-events: none;\n background: none;\n transition: background .3s;\n position: absolute;\n inset: 0;\n}\n\n.XStaticGallery-module__masonryItem_7nn4pa__012:hover .XStaticGallery-module__imageOverlay_7nn4pa__012 {\n background: #0000001a;\n}\n\n.XStaticGallery-module__cols1_7nn4pa__012 {\n columns: 1;\n}\n\n.XStaticGallery-module__cols2_7nn4pa__012 {\n columns: 2;\n}\n\n.XStaticGallery-module__cols3_7nn4pa__012 {\n columns: 3;\n}\n\n.XStaticGallery-module__cols4_7nn4pa__012 {\n columns: 4;\n}\n\n.XStaticGallery-module__cols5_7nn4pa__012 {\n columns: 5;\n}\n\n@media (width <= 1280px) {\n .XStaticGallery-module__cols4_7nn4pa__012, .XStaticGallery-module__cols5_7nn4pa__012 {\n columns: 3;\n }\n}\n\n@media (width <= 768px) {\n .XStaticGallery-module__cols3_7nn4pa__012, .XStaticGallery-module__cols4_7nn4pa__012, .XStaticGallery-module__cols5_7nn4pa__012 {\n columns: 2;\n }\n}\n\n@media (width <= 640px) {\n .XStaticGallery-module__cols2_7nn4pa__012, .XStaticGallery-module__cols3_7nn4pa__012, .XStaticGallery-module__cols4_7nn4pa__012, .XStaticGallery-module__cols5_7nn4pa__012 {\n columns: 1;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,CAAC;AACC,kBAAgB;AAChB,eAAa;AACb,OAAK;AACL,SAAO;AACP,UAAQ,KAAK;AACb,WAAS;AACX;AAEA,QAAQ,SAAS;AACf,GAVD;AAWG,oBAAgB;AAChB,iBAAa;AACb,SAAK;AACP;AAEA,GAAC;AACC,oBAAgB;AAClB;AACF;AAEA,CAAC;AACC,WAAS;AACT,SAAO,IAAI;AACX,QAAM;AACN,cAAY,QAAQ,IAAI,QAAQ,EAAE,UAAU,IAAI;AAChD,aAAW,WAAW;AACxB;AAEA,CARC,iDAQiD,CAAC;AACjD,WAAS;AACT,aAAW,WAAW;AACxB;AAEA,CAAC;AACC,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,CAAC;AACC,cAAY;AACd;AAEA,CAzBC,kDAyBkD;AAAG,CAzBrD,kDAyBwG;AAAK,CAzB7G,kDAyBgK;AAAM,CAzBtK,kDAyByN;AAAI,CAzB7N,kDAyBgR;AAAQ,CAzBxR,kDAyB2U;AAC1U,cAAY;AACZ,aAAW;AACX,eAAa;AACb,gBAAc;AAChB;AAEA,CAAC;AACC,QAAM;AACN,SAAO;AACT;AAEA,CAAC;AACC,sBAAoB,MAAM;AAC1B,yBAAuB,OAAO,CAAC,EAAE;AACjC,OAAK;AACL,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,iBAAe;AACf;AAAA,IAAY,QAAQ,IAAI,QAAQ;AAAA,IAAE,UAAU,IAAI,QAAQ;AAAA,IA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XMicroGalleryTextProps {
|
|
9
|
-
images: XMicroGalleryImage[];
|
|
10
|
-
text: React.ReactNode;
|
|
11
|
-
textPosition?: 'left' | 'right';
|
|
12
|
-
textAlign?: 'left' | 'right' | 'center';
|
|
13
|
-
autoShuffle?: boolean;
|
|
14
|
-
shuffleInterval?: number;
|
|
15
|
-
}
|
|
16
|
-
declare const XMicroGalleryText: React.FC<XMicroGalleryTextProps>;
|
|
17
|
-
|
|
18
|
-
interface XStaticGalleryImage {
|
|
19
|
-
src: string;
|
|
20
|
-
alt: string;
|
|
21
|
-
}
|
|
22
|
-
interface XStaticGalleryProps {
|
|
23
|
-
images: XStaticGalleryImage[];
|
|
24
|
-
columns?: 1 | 2 | 3 | 4 | 5;
|
|
25
|
-
title?: string;
|
|
26
|
-
}
|
|
27
|
-
declare function XStaticGallery({ images, columns, title }: XStaticGalleryProps): react_jsx_runtime.JSX.Element;
|
|
28
|
-
|
|
29
|
-
export { type XMicroGalleryImage, XMicroGalleryText, type XMicroGalleryTextProps, XStaticGallery, type XStaticGalleryImage, type XStaticGalleryProps };
|
|
1
|
+
export { XMicroGalleryText } from "./xmicrogallerytext";
|
|
2
|
+
export { XStaticGallery } from "./xstaticgallery";
|
|
3
|
+
export type { XMicroGalleryTextProps, XMicroGalleryImage } from "./xmicrogallerytext";
|
|
4
|
+
export type { XStaticGalleryProps, XStaticGalleryImage } from "./xstaticgallery";
|
|
@@ -40,8 +40,54 @@ var import_react = __toESM(require("react"));
|
|
|
40
40
|
var import_image = __toESM(require("next/image"));
|
|
41
41
|
var import_framer_motion = require("framer-motion");
|
|
42
42
|
|
|
43
|
+
// esbuild-css-modules-plugin-ns-js::src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css:injector.js
|
|
44
|
+
var content = __content_placeholder__;
|
|
45
|
+
var digest = __digest_placeholder__;
|
|
46
|
+
var inject = () => {
|
|
47
|
+
setTimeout(() => {
|
|
48
|
+
if (!globalThis.document) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
let root = globalThis.document.querySelector("head");
|
|
52
|
+
if (root && root.shadowRoot) {
|
|
53
|
+
root = root.shadowRoot;
|
|
54
|
+
}
|
|
55
|
+
if (!root) {
|
|
56
|
+
root = globalThis.document.head;
|
|
57
|
+
}
|
|
58
|
+
let container = root.querySelector("#_" + digest);
|
|
59
|
+
if (!container) {
|
|
60
|
+
container = globalThis.document.createElement("style");
|
|
61
|
+
container.id = "_" + digest;
|
|
62
|
+
const text = globalThis.document.createTextNode(content);
|
|
63
|
+
container.appendChild(text);
|
|
64
|
+
root.appendChild(container);
|
|
65
|
+
}
|
|
66
|
+
}, 0);
|
|
67
|
+
};
|
|
68
|
+
|
|
43
69
|
// src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css
|
|
44
|
-
var XMicroGalleryText_default = {
|
|
70
|
+
var XMicroGalleryText_default = new Proxy({
|
|
71
|
+
"artistic1": "XMicroGalleryText-module__artistic1_22YC0W__012",
|
|
72
|
+
"artistic2": "XMicroGalleryText-module__artistic2_22YC0W__012",
|
|
73
|
+
"artistic3": "XMicroGalleryText-module__artistic3_22YC0W__012",
|
|
74
|
+
"artisticGrid": "XMicroGalleryText-module__artisticGrid_22YC0W__012",
|
|
75
|
+
"container": "XMicroGalleryText-module__container_22YC0W__012",
|
|
76
|
+
"gallery": "XMicroGalleryText-module__gallery_22YC0W__012",
|
|
77
|
+
"imageWrapper": "XMicroGalleryText-module__imageWrapper_22YC0W__012",
|
|
78
|
+
"previewImage": "XMicroGalleryText-module__previewImage_22YC0W__012",
|
|
79
|
+
"reverse": "XMicroGalleryText-module__reverse_22YC0W__012",
|
|
80
|
+
"textCenter": "XMicroGalleryText-module__textCenter_22YC0W__012",
|
|
81
|
+
"textContent": "XMicroGalleryText-module__textContent_22YC0W__012",
|
|
82
|
+
"textLeft": "XMicroGalleryText-module__textLeft_22YC0W__012",
|
|
83
|
+
"textRight": "XMicroGalleryText-module__textRight_22YC0W__012",
|
|
84
|
+
"visible": "XMicroGalleryText-module__visible_22YC0W__012"
|
|
85
|
+
}, {
|
|
86
|
+
get: function(source, key) {
|
|
87
|
+
inject();
|
|
88
|
+
return source[key];
|
|
89
|
+
}
|
|
90
|
+
});
|
|
45
91
|
|
|
46
92
|
// src/components/gallery/xmicrogallerytext/XMicroGalleryText.tsx
|
|
47
93
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -127,8 +173,53 @@ var XMicroGalleryText_default2 = XMicroGalleryText;
|
|
|
127
173
|
var import_react2 = require("react");
|
|
128
174
|
var import_image2 = __toESM(require("next/image"));
|
|
129
175
|
|
|
176
|
+
// esbuild-css-modules-plugin-ns-js::src/components/gallery/xstaticgallery/XStaticGallery.module.css:injector.js
|
|
177
|
+
var content2 = __content_placeholder__;
|
|
178
|
+
var digest2 = __digest_placeholder__;
|
|
179
|
+
var inject2 = () => {
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
if (!globalThis.document) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
let root = globalThis.document.querySelector("head");
|
|
185
|
+
if (root && root.shadowRoot) {
|
|
186
|
+
root = root.shadowRoot;
|
|
187
|
+
}
|
|
188
|
+
if (!root) {
|
|
189
|
+
root = globalThis.document.head;
|
|
190
|
+
}
|
|
191
|
+
let container = root.querySelector("#_" + digest2);
|
|
192
|
+
if (!container) {
|
|
193
|
+
container = globalThis.document.createElement("style");
|
|
194
|
+
container.id = "_" + digest2;
|
|
195
|
+
const text = globalThis.document.createTextNode(content2);
|
|
196
|
+
container.appendChild(text);
|
|
197
|
+
root.appendChild(container);
|
|
198
|
+
}
|
|
199
|
+
}, 0);
|
|
200
|
+
};
|
|
201
|
+
|
|
130
202
|
// src/components/gallery/xstaticgallery/XStaticGallery.module.css
|
|
131
|
-
var XStaticGallery_default = {
|
|
203
|
+
var XStaticGallery_default = new Proxy({
|
|
204
|
+
"cols1": "XStaticGallery-module__cols1_7nn4pa__012",
|
|
205
|
+
"cols2": "XStaticGallery-module__cols2_7nn4pa__012",
|
|
206
|
+
"cols3": "XStaticGallery-module__cols3_7nn4pa__012",
|
|
207
|
+
"cols4": "XStaticGallery-module__cols4_7nn4pa__012",
|
|
208
|
+
"cols5": "XStaticGallery-module__cols5_7nn4pa__012",
|
|
209
|
+
"galleryContainer": "XStaticGallery-module__galleryContainer_7nn4pa__012",
|
|
210
|
+
"galleryImage": "XStaticGallery-module__galleryImage_7nn4pa__012",
|
|
211
|
+
"galleryTitle": "XStaticGallery-module__galleryTitle_7nn4pa__012",
|
|
212
|
+
"imageContainer": "XStaticGallery-module__imageContainer_7nn4pa__012",
|
|
213
|
+
"imageOverlay": "XStaticGallery-module__imageOverlay_7nn4pa__012",
|
|
214
|
+
"masonryGrid": "XStaticGallery-module__masonryGrid_7nn4pa__012",
|
|
215
|
+
"masonryItem": "XStaticGallery-module__masonryItem_7nn4pa__012",
|
|
216
|
+
"visible": "XStaticGallery-module__visible_7nn4pa__012"
|
|
217
|
+
}, {
|
|
218
|
+
get: function(source, key) {
|
|
219
|
+
inject2();
|
|
220
|
+
return source[key];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
132
223
|
|
|
133
224
|
// src/components/gallery/xstaticgallery/XStaticGallery.tsx
|
|
134
225
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -179,9 +270,4 @@ function XStaticGallery({ images, columns = 4, title }) {
|
|
|
179
270
|
] }) }, index)) })
|
|
180
271
|
] });
|
|
181
272
|
}
|
|
182
|
-
|
|
183
|
-
0 && (module.exports = {
|
|
184
|
-
XMicroGalleryText,
|
|
185
|
-
XStaticGallery
|
|
186
|
-
});
|
|
187
|
-
//# sourceMappingURL=index.js.map
|
|
273
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/gallery/index.ts","../../../src/components/gallery/xmicrogallerytext/XMicroGalleryText.tsx","../../../src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css","../../../src/components/gallery/xstaticgallery/XStaticGallery.tsx","../../../src/components/gallery/xstaticgallery/XStaticGallery.module.css"],"sourcesContent":["export { XMicroGalleryText } from \"./xmicrogallerytext\";\nexport { XStaticGallery } from \"./xstaticgallery\";\nexport type { XMicroGalleryTextProps, XMicroGalleryImage } from \"./xmicrogallerytext\";\nexport type { XStaticGalleryProps, XStaticGalleryImage } from \"./xstaticgallery\";\n","import React, { useEffect, useRef } from 'react';\nimport Image from 'next/image';\nimport { motion } from 'framer-motion';\nimport styles from './XMicroGalleryText.module.css';\n\nexport interface XMicroGalleryImage {\n src: string;\n alt: string;\n}\n\nexport interface XMicroGalleryTextProps {\n images: XMicroGalleryImage[];\n text: React.ReactNode;\n textPosition?: 'left' | 'right';\n textAlign?: 'left' | 'right' | 'center';\n autoShuffle?: boolean;\n shuffleInterval?: number;\n}\n\nconst DISPLAY_COUNT = 3;\n\nconst XMicroGalleryText: React.FC<XMicroGalleryTextProps> = ({ \n images, \n text, \n textPosition = 'left',\n textAlign = 'left',\n autoShuffle = false,\n shuffleInterval = 5000\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [startIndex, setStartIndex] = React.useState(0);\n\n const visibleImages = React.useMemo(() => {\n const result: XMicroGalleryImage[] = [];\n for (let i = 0; i < DISPLAY_COUNT; i++) {\n result.push(images[(startIndex + i) % images.length]);\n }\n return result;\n }, [images, startIndex]);\n\n React.useEffect(() => {\n if (!autoShuffle || images.length <= DISPLAY_COUNT) return;\n\n const intervalId = setInterval(() => {\n setStartIndex((prev) => (prev + 1) % images.length);\n }, shuffleInterval);\n\n return () => clearInterval(intervalId);\n }, [autoShuffle, shuffleInterval, images.length]);\n\n const [isVisible, setIsVisible] = React.useState(false);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n setIsVisible(true);\n observer.disconnect();\n }\n },\n {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px'\n }\n );\n\n if (containerRef.current) {\n observer.observe(containerRef.current);\n }\n\n return () => observer.disconnect();\n }, []);\n\n const isTextRight = textPosition === 'right';\n\n const alignClass = {\n left: styles.textLeft,\n right: styles.textRight,\n center: styles.textCenter,\n }[textAlign];\n\n return (\n <div ref={containerRef} className={`${styles.container} ${isTextRight ? styles.reverse : ''}`}>\n <div className={`${styles.textContent} ${alignClass} ${isVisible ? styles.visible : ''}`}>\n {typeof text === 'string' ? (\n <div dangerouslySetInnerHTML={{ __html: text }} />\n ) : (\n text\n )}\n </div>\n \n <div className={styles.gallery}>\n <div className={styles.artisticGrid}>\n {visibleImages.map((image, index) => (\n <motion.div \n layout\n key={image.src} \n className={`${styles.imageWrapper} ${styles[`artistic${index + 1}`]} ${isVisible ? styles.visible : ''}`}\n style={{ transitionProperty: 'opacity, box-shadow' }}\n transition={{\n layout: { type: \"spring\", stiffness: 80, damping: 20 }\n }}\n >\n <Image\n src={image.src}\n alt={image.alt}\n fill\n className={styles.previewImage}\n sizes=\"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw\"\n />\n </motion.div>\n ))}\n </div>\n </div>\n </div>\n );\n};\n\nexport default XMicroGalleryText;\n",".container {\n display: flex;\n flex-direction: column;\n gap: 2rem;\n width: 100%;\n align-items: center;\n margin: 2rem 0;\n}\n\n@media (min-width: 1024px) {\n .container {\n flex-direction: row;\n align-items: center;\n gap: 4rem;\n }\n \n .reverse {\n flex-direction: row-reverse;\n }\n}\n\n.textContent {\n flex: 1;\n opacity: 0;\n transform: translateY(30px);\n transition: opacity 0.8s ease-out, transform 0.8s ease-out;\n color: var(--foreground);\n}\n\n.textContent.visible {\n opacity: 1;\n transform: translateY(0);\n}\n\n.textLeft {\n text-align: left;\n}\n\n.textRight {\n text-align: right;\n}\n\n.textCenter {\n text-align: center;\n}\n\n.textContent p,\n.textContent div,\n.textContent span,\n.textContent em,\n.textContent strong,\n.textContent a {\n text-align: inherit;\n max-width: none;\n margin-left: unset;\n margin-right: unset;\n}\n\n.gallery {\n flex: 1.5;\n width: 100%;\n}\n\n.artisticGrid {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 380px 220px;\n gap: 1rem;\n}\n\n.imageWrapper {\n position: relative;\n overflow: hidden;\n box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n border-radius: 20px;\n opacity: 0;\n transform: translateY(50px) scale(0.95);\n transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;\n}\n\n.imageWrapper.visible {\n opacity: 1;\n transform: translateY(0) scale(1);\n}\n\n.imageWrapper:hover {\n transform: translateY(-5px);\n box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);\n}\n\n.previewImage {\n object-fit: cover;\n}\n\n.artisticGrid .artistic1 .previewImage {\n object-position: center top;\n transform: translateY(0);\n}\n\n.artistic1 {\n grid-column: 1 / 4;\n grid-row: 1 / 2;\n transition-delay: 0.2s;\n}\n\n.artistic2 {\n grid-column: 1 / 2;\n grid-row: 2 / 3;\n transition-delay: 0.3s;\n}\n\n.artistic3 {\n grid-column: 2 / 4;\n grid-row: 2 / 3;\n transition-delay: 0.4s;\n}\n\n/* Responsive Design */\n@media (max-width: 768px) {\n .artisticGrid {\n grid-template-columns: 1fr;\n grid-template-rows: 240px 180px 180px;\n }\n \n .artistic1,\n .artistic2,\n .artistic3 {\n grid-column: 1 / 2;\n }\n \n .artistic1 {\n grid-row: 1 / 2;\n }\n \n .artistic2 {\n grid-row: 2 / 3;\n }\n \n .artistic3 {\n grid-row: 3 / 4;\n }\n}\n\n@media (max-width: 480px) {\n .artisticGrid {\n grid-template-rows: 200px 140px 140px;\n }\n}\n","\"use client\";\nimport React, { useEffect, useRef } from 'react';\nimport Image from 'next/image';\nimport styles from './XStaticGallery.module.css';\n\nexport interface XStaticGalleryImage {\n src: string;\n alt: string;\n}\n\nexport interface XStaticGalleryProps {\n images: XStaticGalleryImage[];\n columns?: 1 | 2 | 3 | 4 | 5;\n title?: string;\n}\n\nconst COLUMN_CLASSES: Record<number, string> = {\n 1: styles.cols1,\n 2: styles.cols2,\n 3: styles.cols3,\n 4: styles.cols4,\n 5: styles.cols5,\n};\n\nexport default function XStaticGallery({ images, columns = 4, title }: XStaticGalleryProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n (entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n entry.target.classList.add(styles.visible);\n }\n });\n },\n {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px',\n }\n );\n\n const items = containerRef.current?.querySelectorAll(`.${styles.masonryItem}`);\n items?.forEach((el) => observer.observe(el));\n\n return () => observer.disconnect();\n }, []);\n\n const colClass = COLUMN_CLASSES[columns] || COLUMN_CLASSES[4];\n\n return (\n <div ref={containerRef} className={styles.galleryContainer}>\n {title && <h2 className={styles.galleryTitle}>{title}</h2>}\n\n <div className={`${styles.masonryGrid} ${colClass}`}>\n {images.map((image, index) => (\n <div key={index} className={styles.masonryItem}>\n <div className={styles.imageContainer}>\n <Image\n src={image.src}\n alt={image.alt}\n width={600}\n height={600}\n className={styles.galleryImage}\n loading=\"lazy\"\n sizes=\"(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1280px) 33vw, 25vw\"\n />\n <div className={styles.imageOverlay} />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n",".galleryContainer {\n width: 100%;\n max-width: 80rem;\n margin: 0 auto;\n padding: 1rem 1rem 3rem;\n}\n\n.galleryTitle {\n font-size: 1.875rem;\n text-align: right;\n color: var(--primary);\n margin-bottom: 3rem;\n opacity: 0.8;\n}\n\n/* Masonry via CSS columns */\n.masonryGrid {\n gap: 1rem;\n}\n\n.masonryItem {\n break-inside: avoid;\n position: relative;\n border-radius: 1rem;\n overflow: hidden;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);\n margin-bottom: 1rem;\n opacity: 0;\n transform: translateY(20px);\n transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;\n}\n\n.masonryItem.visible {\n opacity: 1;\n transform: translateY(0);\n}\n\n.masonryItem:hover {\n box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);\n}\n\n.imageContainer {\n position: relative;\n width: 100%;\n overflow: hidden;\n border-radius: 1rem;\n}\n\n.galleryImage {\n width: 100%;\n height: auto;\n object-fit: cover;\n display: block;\n transition: transform 0.5s ease-out;\n}\n\n.masonryItem:hover .galleryImage {\n transform: scale(1.05);\n}\n\n.imageOverlay {\n position: absolute;\n inset: 0;\n background: rgba(0, 0, 0, 0);\n transition: background 0.3s ease;\n pointer-events: none;\n}\n\n.masonryItem:hover .imageOverlay {\n background: rgba(0, 0, 0, 0.1);\n}\n\n/* Column count via CSS custom property */\n.cols1 { columns: 1; }\n.cols2 { columns: 2; }\n.cols3 { columns: 3; }\n.cols4 { columns: 4; }\n.cols5 { columns: 5; }\n\n/* Responsive overrides */\n@media (max-width: 1280px) {\n .cols4, .cols5 { columns: 3; }\n}\n\n@media (max-width: 768px) {\n .cols3, .cols4, .cols5 { columns: 2; }\n}\n\n@media (max-width: 640px) {\n .cols2, .cols3, .cols4, .cols5 { columns: 1; }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA;AAAA;AAAA;;;ACAA,mBAAyC;AACzC,mBAAkB;AAClB,2BAAuB;;;ACFvB;;;ADkFI;AA/DJ,IAAM,gBAAgB;AAEtB,IAAM,oBAAsD,CAAC;AAAA,EAC3D;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,kBAAkB;AACpB,MAAM;AACJ,QAAM,mBAAe,qBAAuB,IAAI;AAChD,QAAM,CAAC,YAAY,aAAa,IAAI,aAAAC,QAAM,SAAS,CAAC;AAEpD,QAAM,gBAAgB,aAAAA,QAAM,QAAQ,MAAM;AACxC,UAAM,SAA+B,CAAC;AACtC,aAAS,IAAI,GAAG,IAAI,eAAe,KAAK;AACtC,aAAO,KAA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;AAEA,UAAM,QAAQ,aAAa,SAAS,iBAAiB,IAAI,uBAAO,WAAW,EAAE;AAC7E,WAAO,QAAQ,CAAC,OAAO,SAAS,QAAQ,EAAE,CAAC;AAE3C,WAAO,MAAM,SAAS,WAAW;AAAA,EACnC,GAAG,CAAC,CAAC;AAEL,QAAM,WAAW,eAAe,OAAO,KAAK,eAAe,CAAC;AAE5D,SACE,8CAAC,SAAI,KAAK,cAAc,WAAW,uBAAO,kBACvC;AAAA,aAAS,6CAAC,QAAG,WAAW,uBAAO,cAAe,iBAAM;AAAA,IAErD,6CAAC,SAAI,WAAW,GAAG,uBAAO,WAAW,IAAI,QAAQ,IAC9C,iBAAO,IAAI,CAAC,OAAO,UAClB,6CAAC,SAAgB,WAAW,uBAAO,aACjC,wDAAC,SAAI,WAAW,uBAAO,gBACrB;AAAA;AAAA,QAAC,cAAAC;AAAA,QAAA;AAAA,UACC,KAAK,MAAM;AAAA,UACX,KAAK,MAAM;AAAA,UACX,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW,uBAAO;AAAA,UAClB,SAAQ;AAAA,UACR,OAAM;AAAA;AAAA,MACR;AAAA,MACA,6CAAC,SAAI,WAAW,uBAAO,cAAc;AAAA,OACvC,KAZQ,KAaV,CACD,GACH;AAAA,KACF;AAEJ;","names":["XMicroGalleryText_default","React","Image","XMicroGalleryText_default","import_react","import_image","import_jsx_runtime","Image"]}
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/gallery/index.ts", "../../../src/components/gallery/xmicrogallerytext/XMicroGalleryText.tsx", "esbuild-css-modules-plugin-ns-js::src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css:injector.js", "../../../src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css", "../../../src/components/gallery/xstaticgallery/XStaticGallery.tsx", "esbuild-css-modules-plugin-ns-js::src/components/gallery/xstaticgallery/XStaticGallery.module.css:injector.js", "../../../src/components/gallery/xstaticgallery/XStaticGallery.module.css"],
|
|
4
|
+
"sourcesContent": ["export { XMicroGalleryText } from \"./xmicrogallerytext\";\nexport { XStaticGallery } from \"./xstaticgallery\";\nexport type { XMicroGalleryTextProps, XMicroGalleryImage } from \"./xmicrogallerytext\";\nexport type { XStaticGalleryProps, XStaticGalleryImage } from \"./xstaticgallery\";\n", "import React, { useEffect, useRef } from 'react';\nimport Image from 'next/image';\nimport { motion } from 'framer-motion';\nimport styles from './XMicroGalleryText.module.css';\n\nexport interface XMicroGalleryImage {\n src: string;\n alt: string;\n}\n\nexport interface XMicroGalleryTextProps {\n images: XMicroGalleryImage[];\n text: React.ReactNode;\n textPosition?: 'left' | 'right';\n textAlign?: 'left' | 'right' | 'center';\n autoShuffle?: boolean;\n shuffleInterval?: number;\n}\n\nconst DISPLAY_COUNT = 3;\n\nconst XMicroGalleryText: React.FC<XMicroGalleryTextProps> = ({ \n images, \n text, \n textPosition = 'left',\n textAlign = 'left',\n autoShuffle = false,\n shuffleInterval = 5000\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const [startIndex, setStartIndex] = React.useState(0);\n\n const visibleImages = React.useMemo(() => {\n const result: XMicroGalleryImage[] = [];\n for (let i = 0; i < DISPLAY_COUNT; i++) {\n result.push(images[(startIndex + i) % images.length]);\n }\n return result;\n }, [images, startIndex]);\n\n React.useEffect(() => {\n if (!autoShuffle || images.length <= DISPLAY_COUNT) return;\n\n const intervalId = setInterval(() => {\n setStartIndex((prev) => (prev + 1) % images.length);\n }, shuffleInterval);\n\n return () => clearInterval(intervalId);\n }, [autoShuffle, shuffleInterval, images.length]);\n\n const [isVisible, setIsVisible] = React.useState(false);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n ([entry]) => {\n if (entry.isIntersecting) {\n setIsVisible(true);\n observer.disconnect();\n }\n },\n {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px'\n }\n );\n\n if (containerRef.current) {\n observer.observe(containerRef.current);\n }\n\n return () => observer.disconnect();\n }, []);\n\n const isTextRight = textPosition === 'right';\n\n const alignClass = {\n left: styles.textLeft,\n right: styles.textRight,\n center: styles.textCenter,\n }[textAlign];\n\n return (\n <div ref={containerRef} className={`${styles.container} ${isTextRight ? styles.reverse : ''}`}>\n <div className={`${styles.textContent} ${alignClass} ${isVisible ? styles.visible : ''}`}>\n {typeof text === 'string' ? (\n <div dangerouslySetInnerHTML={{ __html: text }} />\n ) : (\n text\n )}\n </div>\n \n <div className={styles.gallery}>\n <div className={styles.artisticGrid}>\n {visibleImages.map((image, index) => (\n <motion.div \n layout\n key={image.src} \n className={`${styles.imageWrapper} ${styles[`artistic${index + 1}`]} ${isVisible ? styles.visible : ''}`}\n style={{ transitionProperty: 'opacity, box-shadow' }}\n transition={{\n layout: { type: \"spring\", stiffness: 80, damping: 20 }\n }}\n >\n <Image\n src={image.src}\n alt={image.alt}\n fill\n className={styles.previewImage}\n sizes=\"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw\"\n />\n </motion.div>\n ))}\n </div>\n </div>\n </div>\n );\n};\n\nexport default XMicroGalleryText;\n", "\nconst content = __content_placeholder__;\nconst digest = __digest_placeholder__; \nconst inject = () => {\n setTimeout(() => {\n if (!globalThis.document) {\n return;\n }\n let root = globalThis.document.querySelector(\"head\");\n if (root && root.shadowRoot) {\n root = root.shadowRoot;\n }\n if (!root) {\n root = globalThis.document.head;\n }\n let container = root.querySelector(\"#_\" + digest);\n if (!container) {\n container = globalThis.document.createElement(\"style\");\n container.id = \"_\" + digest;\n const text = globalThis.document.createTextNode(content);\n container.appendChild(text);\n root.appendChild(container);\n }\n }, 0);\n};\n\nexport { inject };\n ", "import \"esbuild-css-modules-plugin-ns-css:src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css\";\n\nimport { inject } from \"esbuild-css-modules-plugin-ns-js:src/components/gallery/xmicrogallerytext/XMicroGalleryText.module.css:injector.js\";\nexport default new Proxy({\n \"artistic1\": \"XMicroGalleryText-module__artistic1_22YC0W__012\",\n \"artistic2\": \"XMicroGalleryText-module__artistic2_22YC0W__012\",\n \"artistic3\": \"XMicroGalleryText-module__artistic3_22YC0W__012\",\n \"artisticGrid\": \"XMicroGalleryText-module__artisticGrid_22YC0W__012\",\n \"container\": \"XMicroGalleryText-module__container_22YC0W__012\",\n \"gallery\": \"XMicroGalleryText-module__gallery_22YC0W__012\",\n \"imageWrapper\": \"XMicroGalleryText-module__imageWrapper_22YC0W__012\",\n \"previewImage\": \"XMicroGalleryText-module__previewImage_22YC0W__012\",\n \"reverse\": \"XMicroGalleryText-module__reverse_22YC0W__012\",\n \"textCenter\": \"XMicroGalleryText-module__textCenter_22YC0W__012\",\n \"textContent\": \"XMicroGalleryText-module__textContent_22YC0W__012\",\n \"textLeft\": \"XMicroGalleryText-module__textLeft_22YC0W__012\",\n \"textRight\": \"XMicroGalleryText-module__textRight_22YC0W__012\",\n \"visible\": \"XMicroGalleryText-module__visible_22YC0W__012\"\n}, {\n get: function(source, key) {\n inject();\n return source[key];\n }\n});\n ", "\"use client\";\nimport React, { useEffect, useRef } from 'react';\nimport Image from 'next/image';\nimport styles from './XStaticGallery.module.css';\n\nexport interface XStaticGalleryImage {\n src: string;\n alt: string;\n}\n\nexport interface XStaticGalleryProps {\n images: XStaticGalleryImage[];\n columns?: 1 | 2 | 3 | 4 | 5;\n title?: string;\n}\n\nconst COLUMN_CLASSES: Record<number, string> = {\n 1: styles.cols1,\n 2: styles.cols2,\n 3: styles.cols3,\n 4: styles.cols4,\n 5: styles.cols5,\n};\n\nexport default function XStaticGallery({ images, columns = 4, title }: XStaticGalleryProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n (entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n entry.target.classList.add(styles.visible);\n }\n });\n },\n {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px',\n }\n );\n\n const items = containerRef.current?.querySelectorAll(`.${styles.masonryItem}`);\n items?.forEach((el) => observer.observe(el));\n\n return () => observer.disconnect();\n }, []);\n\n const colClass = COLUMN_CLASSES[columns] || COLUMN_CLASSES[4];\n\n return (\n <div ref={containerRef} className={styles.galleryContainer}>\n {title && <h2 className={styles.galleryTitle}>{title}</h2>}\n\n <div className={`${styles.masonryGrid} ${colClass}`}>\n {images.map((image, index) => (\n <div key={index} className={styles.masonryItem}>\n <div className={styles.imageContainer}>\n <Image\n src={image.src}\n alt={image.alt}\n width={600}\n height={600}\n className={styles.galleryImage}\n loading=\"lazy\"\n sizes=\"(max-width: 640px) 100vw, (max-width: 768px) 50vw, (max-width: 1280px) 33vw, 25vw\"\n />\n <div className={styles.imageOverlay} />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n", "\nconst content = __content_placeholder__;\nconst digest = __digest_placeholder__; \nconst inject = () => {\n setTimeout(() => {\n if (!globalThis.document) {\n return;\n }\n let root = globalThis.document.querySelector(\"head\");\n if (root && root.shadowRoot) {\n root = root.shadowRoot;\n }\n if (!root) {\n root = globalThis.document.head;\n }\n let container = root.querySelector(\"#_\" + digest);\n if (!container) {\n container = globalThis.document.createElement(\"style\");\n container.id = \"_\" + digest;\n const text = globalThis.document.createTextNode(content);\n container.appendChild(text);\n root.appendChild(container);\n }\n }, 0);\n};\n\nexport { inject };\n ", "import \"esbuild-css-modules-plugin-ns-css:src/components/gallery/xstaticgallery/XStaticGallery.module.css\";\n\nimport { inject } from \"esbuild-css-modules-plugin-ns-js:src/components/gallery/xstaticgallery/XStaticGallery.module.css:injector.js\";\nexport default new Proxy({\n \"cols1\": \"XStaticGallery-module__cols1_7nn4pa__012\",\n \"cols2\": \"XStaticGallery-module__cols2_7nn4pa__012\",\n \"cols3\": \"XStaticGallery-module__cols3_7nn4pa__012\",\n \"cols4\": \"XStaticGallery-module__cols4_7nn4pa__012\",\n \"cols5\": \"XStaticGallery-module__cols5_7nn4pa__012\",\n \"galleryContainer\": \"XStaticGallery-module__galleryContainer_7nn4pa__012\",\n \"galleryImage\": \"XStaticGallery-module__galleryImage_7nn4pa__012\",\n \"galleryTitle\": \"XStaticGallery-module__galleryTitle_7nn4pa__012\",\n \"imageContainer\": \"XStaticGallery-module__imageContainer_7nn4pa__012\",\n \"imageOverlay\": \"XStaticGallery-module__imageOverlay_7nn4pa__012\",\n \"masonryGrid\": \"XStaticGallery-module__masonryGrid_7nn4pa__012\",\n \"masonryItem\": \"XStaticGallery-module__masonryItem_7nn4pa__012\",\n \"visible\": \"XStaticGallery-module__visible_7nn4pa__012\"\n}, {\n get: function(source, key) {\n inject();\n return source[key];\n }\n});\n "],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA;AAAA;AAAA;;;ACAA,mBAAyC;AACzC,mBAAkB;AAClB,2BAAuB;;;ACDvB,IAAM,UAAU;AAChB,IAAM,SAAS;AACf,IAAM,SAAS,MAAM;AACnB,aAAW,MAAM;AACf,QAAI,CAAC,WAAW,UAAU;AACxB;AAAA,IACF;AACA,QAAI,OAAO,WAAW,SAAS,cAAc,MAAM;AACnD,QAAI,QAAQ,KAAK,YAAY;AAC3B,aAAO,KAAK;AAAA,IACd;AACA,QAAI,CAAC,MAAM;AACT,aAAO,WAAW,SAAS;AAAA,IAC7B;AACA,QAAI,YAAY,KAAK,cAAc,OAAO,MAAM;AAChD,QAAI,CAAC,WAAW;AACd,kBAAY,WAAW,SAAS,cAAc,OAAO;AACrD,gBAAU,KAAK,MAAM;AACrB,YAAM,OAAO,WAAW,SAAS,eAAe,OAAO;AACvD,gBAAU,YAAY,IAAI;AAC1B,WAAK,YAAY,SAAS;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC;AACN;;;ACrBA,IAAO,4BAAQ,IAAI,MAAM;AAAA,EACvB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EACh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sBAAuB,IAAI;AAEhD,+BAAU,MAAM;AACd,UAAM,WAAW,IAAI;AAAA,MACnB,CAAC,YAAY;AACX,gBAAQ,QAAQ,CAAC,UAAU;AACzB,cAAI,MAAM,gBAAgB;AACxB,kBAAM,OAAO,UAAU,IAAI,uBAAO,OAAO;AAAA,UAC3C;AAAA,QACF,CAAC;AAAA,MACH;AAAA,MACA;AAAA,QACE,WAAW;AAAA,QACX,YAAY;AAAA,MACd;AAAA,IACF;AAEA,UAAM,QAAQ,aAAa,SAAS,iBAAiB,IAAI,uBAAO,WAAW,EAAE;AAC7E,WAAO,QAAQ,CAAC,OAAO,SAAS,QAAQ,EAAE,CAAC;AAE3C,WAAO,MAAM,SAAS,WAAW;AAAA,EACnC,GAAG,CAAC,CAAC;AAEL,QAAM,WAAW,eAAe,OAAO,KAAK,eAAe,CAAC;AAE5D,SACE,8CAAC,SAAI,KAAK,cAAc,WAAW,uBAAO,kBACvC;AAAA,aAAS,6CAAC,QAAG,WAAW,uBAAO,cAAe,iBAAM;AAAA,IAErD,6CAAC,SAAI,WAAW,GAAG,uBAAO,WAAW,IAAI,QAAQ,IAC9C,iBAAO,IAAI,CAAC,OAAO,UAClB,6CAAC,SAAgB,WAAW,uBAAO,aACjC,wDAAC,SAAI,WAAW,uBAAO,gBACrB;AAAA;AAAA,QAAC,cAAAC;AAAA,QAAA;AAAA,UACC,KAAK,MAAM;AAAA,UACX,KAAK,MAAM;AAAA,UACX,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW,uBAAO;AAAA,UAClB,SAAQ;AAAA,UACR,OAAM;AAAA;AAAA,MACR;AAAA,MACA,6CAAC,SAAI,WAAW,uBAAO,cAAc;AAAA,OACvC,KAZQ,KAaV,CACD,GACH;AAAA,KACF;AAEJ;",
|
|
6
|
+
"names": ["XMicroGalleryText_default", "React", "Image", "XMicroGalleryText_default", "import_react", "import_image", "content", "digest", "inject", "inject", "import_jsx_runtime", "Image"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XMicroGalleryText_default,
|
|
3
3
|
XStaticGallery
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-XB3UGHSF.mjs";
|
|
5
5
|
export {
|
|
6
6
|
XMicroGalleryText_default as XMicroGalleryText,
|
|
7
7
|
XStaticGallery
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=index.mjs.map
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface XMicroGalleryImage {
|
|
3
|
+
src: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
}
|
|
6
|
+
export interface XMicroGalleryTextProps {
|
|
7
|
+
images: XMicroGalleryImage[];
|
|
8
|
+
text: React.ReactNode;
|
|
9
|
+
textPosition?: 'left' | 'right';
|
|
10
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
11
|
+
autoShuffle?: boolean;
|
|
12
|
+
shuffleInterval?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const XMicroGalleryText: React.FC<XMicroGalleryTextProps>;
|
|
15
|
+
export default XMicroGalleryText;
|