@vibes.diy/use-vibes-base 0.19.8-dev → 0.19.14-dev-cli
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 +27 -27
- package/components/ControlsBar.d.ts +2 -2
- package/components/ControlsBar.js +35 -39
- package/components/ControlsBar.js.map +1 -1
- package/components/ImgGen.d.ts +5 -5
- package/components/ImgGen.js +40 -43
- package/components/ImgGen.js.map +1 -1
- package/components/ImgGenUtils/AsyncImg.d.ts +2 -2
- package/components/ImgGenUtils/AsyncImg.js +5 -5
- package/components/ImgGenUtils/ImgGenDisplay.d.ts +2 -2
- package/components/ImgGenUtils/ImgGenDisplay.js +57 -67
- package/components/ImgGenUtils/ImgGenDisplay.js.map +1 -1
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.d.ts +2 -2
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.js +28 -29
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.js.map +1 -1
- package/components/ImgGenUtils/ImgGenDisplayUtils.d.ts +1 -1
- package/components/ImgGenUtils/ImgGenDisplayUtils.js +13 -18
- package/components/ImgGenUtils/ImgGenDisplayUtils.js.map +1 -1
- package/components/ImgGenUtils/ImgGenError.d.ts +2 -2
- package/components/ImgGenUtils/ImgGenError.js +6 -6
- package/components/ImgGenUtils/ImgGenError.js.map +1 -1
- package/components/ImgGenUtils/ImgGenFileDrop.d.ts +1 -1
- package/components/ImgGenUtils/ImgGenFileDrop.js +7 -7
- package/components/ImgGenUtils/ImgGenFileDrop.js.map +1 -1
- package/components/ImgGenUtils/ImgGenModal.d.ts +3 -3
- package/components/ImgGenUtils/ImgGenModal.js +35 -35
- package/components/ImgGenUtils/ImgGenModeUtils.d.ts +2 -2
- package/components/ImgGenUtils/ImgGenModeUtils.js +17 -17
- package/components/ImgGenUtils/ImgGenModeUtils.js.map +1 -1
- package/components/ImgGenUtils/ImgGenPromptWaiting.d.ts +2 -2
- package/components/ImgGenUtils/ImgGenPromptWaiting.js +13 -13
- package/components/ImgGenUtils/ImgGenPromptWaiting.js.map +1 -1
- package/components/ImgGenUtils/ImgGenUploadWaiting.d.ts +4 -4
- package/components/ImgGenUtils/ImgGenUploadWaiting.js +26 -26
- package/components/ImgGenUtils/ImgGenUploadWaiting.js.map +1 -1
- package/components/ImgGenUtils/index.d.ts +6 -6
- package/components/ImgGenUtils/index.js +6 -6
- package/components/ImgGenUtils/overlays/DeleteConfirmationOverlay.d.ts +2 -2
- package/components/ImgGenUtils/overlays/DeleteConfirmationOverlay.js +18 -18
- package/components/ImgGenUtils/overlays/ImageOverlay.d.ts +2 -2
- package/components/ImgGenUtils/overlays/ImageOverlay.js +6 -6
- package/components/ImgGenUtils/types.d.ts +2 -2
- package/components/ImgGenUtils.d.ts +2 -2
- package/components/ImgGenUtils.js +2 -2
- package/components/ImgGenUtils.js.map +1 -1
- package/components/PromptBar.d.ts +2 -2
- package/components/PromptBar.js +5 -5
- package/constants.js +1 -1
- package/contexts/VibeContext.d.ts +23 -11
- package/contexts/VibeContext.js +113 -48
- package/contexts/VibeContext.js.map +1 -1
- package/hooks/image-gen/image-generator.d.ts +2 -2
- package/hooks/image-gen/image-generator.js +12 -12
- package/hooks/image-gen/image-generator.js.map +1 -1
- package/hooks/image-gen/index.d.ts +4 -4
- package/hooks/image-gen/index.js +3 -3
- package/hooks/image-gen/index.js.map +1 -1
- package/hooks/image-gen/use-image-gen.d.ts +1 -1
- package/hooks/image-gen/use-image-gen.js +41 -48
- package/hooks/image-gen/use-image-gen.js.map +1 -1
- package/hooks/image-gen/utils.d.ts +2 -2
- package/hooks/image-gen/utils.js +14 -14
- package/hooks/image-gen/utils.js.map +1 -1
- package/hooks/useMobile.js +7 -7
- package/hooks/useThemeDetection.js +5 -5
- package/hooks/vibes-gen/IframeVibesComponent.d.ts +1 -1
- package/hooks/vibes-gen/IframeVibesComponent.js +15 -19
- package/hooks/vibes-gen/IframeVibesComponent.js.map +1 -1
- package/hooks/vibes-gen/index.d.ts +2 -2
- package/hooks/vibes-gen/index.js +1 -1
- package/hooks/vibes-gen/use-vibes.d.ts +2 -2
- package/hooks/vibes-gen/use-vibes.js +21 -17
- package/hooks/vibes-gen/use-vibes.js.map +1 -1
- package/index.d.ts +76 -51
- package/index.js +137 -184
- package/index.js.map +1 -1
- package/package.json +18 -21
- package/utils/appSlug.js +16 -16
- package/utils/base64.js +2 -4
- package/utils/base64.js.map +1 -1
- package/utils/databaseName.d.ts +2 -0
- package/utils/databaseName.js +4 -0
- package/utils/databaseName.js.map +1 -0
- package/utils/debug.js +1 -1
- package/utils/style-utils.d.ts +1 -1
- package/utils/style-utils.js +3 -3
- package/utils/styles.d.ts +2 -2
- package/utils/styles.js +170 -170
- package/utils/vibe-control-styles.d.ts +1 -1
- package/utils/vibe-control-styles.js +75 -75
package/utils/styles.js
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
export const imgGenTheme = {
|
|
2
2
|
colors: {
|
|
3
|
-
text:
|
|
4
|
-
background:
|
|
5
|
-
overlayBg:
|
|
6
|
-
accent:
|
|
7
|
-
flash:
|
|
8
|
-
errorBg:
|
|
9
|
-
errorBorder:
|
|
10
|
-
errorText:
|
|
11
|
-
errorTextBody:
|
|
12
|
-
buttonBg:
|
|
13
|
-
deleteHover:
|
|
14
|
-
inputBorder:
|
|
15
|
-
inputBg:
|
|
16
|
-
inputText:
|
|
17
|
-
dropZoneBorder:
|
|
18
|
-
dropZoneBg:
|
|
19
|
-
dropZoneActiveBg:
|
|
20
|
-
mutedText:
|
|
21
|
-
lightBg:
|
|
22
|
-
thumbnailBorder:
|
|
23
|
-
titleText:
|
|
3
|
+
text: "#333",
|
|
4
|
+
background: "#333333",
|
|
5
|
+
overlayBg: "rgba(255, 255, 255, 0.5)",
|
|
6
|
+
accent: "#0066cc",
|
|
7
|
+
flash: "#fe0",
|
|
8
|
+
errorBg: "rgba(0, 0, 0, 0.7)",
|
|
9
|
+
errorBorder: "#ff6666",
|
|
10
|
+
errorText: "#ff6666",
|
|
11
|
+
errorTextBody: "#ffffff",
|
|
12
|
+
buttonBg: "rgba(255, 255, 255, 0.7)",
|
|
13
|
+
deleteHover: "#ff3333",
|
|
14
|
+
inputBorder: "light-dark(#ccc, #555)",
|
|
15
|
+
inputBg: "light-dark(#ffffff, #2a2a2a)",
|
|
16
|
+
inputText: "light-dark(#333, #e0e0e0)",
|
|
17
|
+
dropZoneBorder: "light-dark(#ccc, #555)",
|
|
18
|
+
dropZoneBg: "light-dark(#fafafa, #2a2a2a)",
|
|
19
|
+
dropZoneActiveBg: "light-dark(#f0f8ff, #1a3a4a)",
|
|
20
|
+
mutedText: "light-dark(#666, #aaa)",
|
|
21
|
+
lightBg: "light-dark(#f0f0f0, #404040)",
|
|
22
|
+
thumbnailBorder: "light-dark(#ddd, #555)",
|
|
23
|
+
titleText: "light-dark(#333, #e0e0e0)",
|
|
24
24
|
},
|
|
25
25
|
dimensions: {
|
|
26
|
-
borderRadius:
|
|
27
|
-
padding:
|
|
28
|
-
buttonSize:
|
|
29
|
-
progressHeight:
|
|
26
|
+
borderRadius: "8px",
|
|
27
|
+
padding: "8px",
|
|
28
|
+
buttonSize: "28px",
|
|
29
|
+
progressHeight: "8px",
|
|
30
30
|
},
|
|
31
31
|
typography: {
|
|
32
|
-
fontSize:
|
|
33
|
-
fontWeight:
|
|
34
|
-
lineHeight:
|
|
32
|
+
fontSize: "14px",
|
|
33
|
+
fontWeight: "bold",
|
|
34
|
+
lineHeight: "1.5",
|
|
35
35
|
},
|
|
36
36
|
effects: {
|
|
37
|
-
blurRadius:
|
|
38
|
-
transitionSpeed:
|
|
39
|
-
shadow:
|
|
37
|
+
blurRadius: "4px",
|
|
38
|
+
transitionSpeed: "0.2s",
|
|
39
|
+
shadow: "0 4px 8px rgba(0, 0, 0, 0.2)",
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
export const imgGenStyles = {
|
|
43
43
|
root: {
|
|
44
|
-
position:
|
|
45
|
-
maxWidth:
|
|
46
|
-
overflow:
|
|
44
|
+
position: "relative",
|
|
45
|
+
maxWidth: "100%",
|
|
46
|
+
overflow: "hidden",
|
|
47
47
|
},
|
|
48
48
|
container: {
|
|
49
|
-
position:
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
49
|
+
position: "relative",
|
|
50
|
+
width: "100%",
|
|
51
|
+
height: "100%",
|
|
52
52
|
},
|
|
53
53
|
imageContainer: {
|
|
54
|
-
position:
|
|
55
|
-
width:
|
|
56
|
-
overflow:
|
|
54
|
+
position: "relative",
|
|
55
|
+
width: "100%",
|
|
56
|
+
overflow: "hidden",
|
|
57
57
|
},
|
|
58
58
|
image: {
|
|
59
|
-
width:
|
|
60
|
-
height:
|
|
61
|
-
display:
|
|
59
|
+
width: "100%",
|
|
60
|
+
height: "auto",
|
|
61
|
+
display: "block",
|
|
62
62
|
},
|
|
63
63
|
overlay: {
|
|
64
|
-
position:
|
|
64
|
+
position: "absolute",
|
|
65
65
|
bottom: 0,
|
|
66
66
|
left: 0,
|
|
67
67
|
right: 0,
|
|
@@ -71,50 +71,50 @@ export const imgGenStyles = {
|
|
|
71
71
|
WebkitBackdropFilter: `blur(${imgGenTheme.effects.blurRadius})`, // Safari support
|
|
72
72
|
transition: `opacity ${imgGenTheme.effects.transitionSpeed} ease`,
|
|
73
73
|
zIndex: 10,
|
|
74
|
-
display:
|
|
75
|
-
flexDirection:
|
|
74
|
+
display: "flex",
|
|
75
|
+
flexDirection: "column",
|
|
76
76
|
},
|
|
77
77
|
topLine: {
|
|
78
|
-
display:
|
|
79
|
-
alignItems:
|
|
80
|
-
justifyContent:
|
|
81
|
-
width:
|
|
78
|
+
display: "flex",
|
|
79
|
+
alignItems: "center",
|
|
80
|
+
justifyContent: "space-between",
|
|
81
|
+
width: "100%",
|
|
82
82
|
},
|
|
83
83
|
prompt: {
|
|
84
|
-
width:
|
|
85
|
-
padding:
|
|
86
|
-
marginBottom:
|
|
84
|
+
width: "100%",
|
|
85
|
+
padding: "4px",
|
|
86
|
+
marginBottom: "8px",
|
|
87
87
|
},
|
|
88
88
|
promptText: {
|
|
89
89
|
color: imgGenTheme.colors.text,
|
|
90
|
-
width:
|
|
91
|
-
textAlign:
|
|
90
|
+
width: "100%",
|
|
91
|
+
textAlign: "center",
|
|
92
92
|
fontWeight: imgGenTheme.typography.fontWeight,
|
|
93
|
-
padding:
|
|
94
|
-
cursor:
|
|
93
|
+
padding: "2px",
|
|
94
|
+
cursor: "pointer",
|
|
95
95
|
},
|
|
96
96
|
controls: {
|
|
97
|
-
display:
|
|
98
|
-
alignItems:
|
|
99
|
-
justifyContent:
|
|
100
|
-
width:
|
|
101
|
-
paddingTop:
|
|
97
|
+
display: "flex",
|
|
98
|
+
alignItems: "center",
|
|
99
|
+
justifyContent: "space-between",
|
|
100
|
+
width: "100%",
|
|
101
|
+
paddingTop: "2px",
|
|
102
102
|
},
|
|
103
103
|
controlGroup: {
|
|
104
|
-
display:
|
|
105
|
-
gap:
|
|
106
|
-
alignItems:
|
|
104
|
+
display: "flex",
|
|
105
|
+
gap: "6px",
|
|
106
|
+
alignItems: "center",
|
|
107
107
|
},
|
|
108
108
|
button: {
|
|
109
109
|
background: imgGenTheme.colors.buttonBg,
|
|
110
|
-
borderRadius:
|
|
110
|
+
borderRadius: "50%",
|
|
111
111
|
width: imgGenTheme.dimensions.buttonSize,
|
|
112
112
|
height: imgGenTheme.dimensions.buttonSize,
|
|
113
|
-
display:
|
|
114
|
-
alignItems:
|
|
115
|
-
justifyContent:
|
|
116
|
-
border:
|
|
117
|
-
cursor:
|
|
113
|
+
display: "flex",
|
|
114
|
+
alignItems: "center",
|
|
115
|
+
justifyContent: "center",
|
|
116
|
+
border: "none",
|
|
117
|
+
cursor: "pointer",
|
|
118
118
|
opacity: 0.5,
|
|
119
119
|
transition: `opacity ${imgGenTheme.effects.transitionSpeed} ease`,
|
|
120
120
|
padding: 0,
|
|
@@ -122,135 +122,135 @@ export const imgGenStyles = {
|
|
|
122
122
|
color: imgGenTheme.colors.text,
|
|
123
123
|
},
|
|
124
124
|
progressContainer: {
|
|
125
|
-
position:
|
|
125
|
+
position: "absolute",
|
|
126
126
|
top: 0,
|
|
127
127
|
left: 0,
|
|
128
128
|
right: 0,
|
|
129
129
|
zIndex: 50,
|
|
130
130
|
},
|
|
131
131
|
progress: {
|
|
132
|
-
position:
|
|
132
|
+
position: "absolute",
|
|
133
133
|
top: 0,
|
|
134
134
|
left: 0,
|
|
135
135
|
height: imgGenTheme.dimensions.progressHeight,
|
|
136
136
|
backgroundColor: imgGenTheme.colors.accent,
|
|
137
|
-
transition:
|
|
137
|
+
transition: "width 0.3s ease-in-out",
|
|
138
138
|
zIndex: 11,
|
|
139
139
|
},
|
|
140
140
|
placeholder: {
|
|
141
|
-
width:
|
|
142
|
-
aspectRatio:
|
|
141
|
+
width: "100%",
|
|
142
|
+
aspectRatio: "1 / 1",
|
|
143
143
|
backgroundColor: imgGenTheme.colors.background,
|
|
144
|
-
position:
|
|
145
|
-
overflow:
|
|
146
|
-
display:
|
|
147
|
-
alignItems:
|
|
148
|
-
justifyContent:
|
|
149
|
-
boxSizing:
|
|
144
|
+
position: "relative",
|
|
145
|
+
overflow: "hidden",
|
|
146
|
+
display: "flex",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
justifyContent: "center",
|
|
149
|
+
boxSizing: "border-box",
|
|
150
150
|
},
|
|
151
151
|
statusText: {
|
|
152
|
-
width:
|
|
153
|
-
textAlign:
|
|
152
|
+
width: "100%",
|
|
153
|
+
textAlign: "center",
|
|
154
154
|
fontSize: imgGenTheme.typography.fontSize,
|
|
155
155
|
color: imgGenTheme.colors.text,
|
|
156
156
|
opacity: 0.7,
|
|
157
|
-
padding:
|
|
157
|
+
padding: "8px 0",
|
|
158
158
|
},
|
|
159
159
|
errorContainer: {
|
|
160
|
-
backgroundColor:
|
|
161
|
-
aspectRatio:
|
|
162
|
-
display:
|
|
163
|
-
flexDirection:
|
|
164
|
-
justifyContent:
|
|
165
|
-
alignItems:
|
|
166
|
-
padding:
|
|
167
|
-
width:
|
|
160
|
+
backgroundColor: "#222",
|
|
161
|
+
aspectRatio: "1 / 1",
|
|
162
|
+
display: "flex",
|
|
163
|
+
flexDirection: "column",
|
|
164
|
+
justifyContent: "center",
|
|
165
|
+
alignItems: "center",
|
|
166
|
+
padding: "1rem",
|
|
167
|
+
width: "100%",
|
|
168
168
|
borderRadius: imgGenTheme.dimensions.borderRadius,
|
|
169
|
-
overflow:
|
|
169
|
+
overflow: "hidden",
|
|
170
170
|
},
|
|
171
171
|
error: {
|
|
172
|
-
backgroundColor:
|
|
172
|
+
backgroundColor: "#000",
|
|
173
173
|
color: imgGenTheme.colors.errorText,
|
|
174
|
-
padding:
|
|
174
|
+
padding: "1.5rem",
|
|
175
175
|
borderRadius: imgGenTheme.dimensions.borderRadius,
|
|
176
176
|
border: `1px solid ${imgGenTheme.colors.errorBorder}`,
|
|
177
177
|
boxShadow: imgGenTheme.effects.shadow,
|
|
178
|
-
maxWidth:
|
|
179
|
-
display:
|
|
180
|
-
flexDirection:
|
|
181
|
-
justifyContent:
|
|
182
|
-
alignItems:
|
|
183
|
-
textAlign:
|
|
178
|
+
maxWidth: "80%",
|
|
179
|
+
display: "flex",
|
|
180
|
+
flexDirection: "column",
|
|
181
|
+
justifyContent: "center",
|
|
182
|
+
alignItems: "center",
|
|
183
|
+
textAlign: "center",
|
|
184
184
|
},
|
|
185
185
|
errorTitle: {
|
|
186
186
|
color: imgGenTheme.colors.errorText,
|
|
187
187
|
marginTop: 0,
|
|
188
|
-
fontWeight:
|
|
189
|
-
fontSize:
|
|
190
|
-
marginBottom:
|
|
191
|
-
textAlign:
|
|
188
|
+
fontWeight: "bold",
|
|
189
|
+
fontSize: "18px",
|
|
190
|
+
marginBottom: "12px",
|
|
191
|
+
textAlign: "center",
|
|
192
192
|
},
|
|
193
193
|
errorMessage: {
|
|
194
|
-
whiteSpace:
|
|
194
|
+
whiteSpace: "pre-wrap",
|
|
195
195
|
color: imgGenTheme.colors.errorTextBody,
|
|
196
196
|
fontSize: imgGenTheme.typography.fontSize,
|
|
197
197
|
lineHeight: imgGenTheme.typography.lineHeight,
|
|
198
|
-
textAlign:
|
|
199
|
-
fontFamily:
|
|
198
|
+
textAlign: "left",
|
|
199
|
+
fontFamily: "monospace, sans-serif",
|
|
200
200
|
marginBottom: 0,
|
|
201
201
|
},
|
|
202
202
|
promptInputEditMode: {
|
|
203
203
|
border: `2px solid ${imgGenTheme.colors.accent}`,
|
|
204
|
-
padding:
|
|
205
|
-
borderRadius:
|
|
204
|
+
padding: "6px 10px",
|
|
205
|
+
borderRadius: "6px",
|
|
206
206
|
},
|
|
207
207
|
uploadWaiting: {
|
|
208
|
-
display:
|
|
209
|
-
flexDirection:
|
|
210
|
-
gap:
|
|
211
|
-
padding:
|
|
212
|
-
alignItems:
|
|
213
|
-
textAlign:
|
|
208
|
+
display: "flex",
|
|
209
|
+
flexDirection: "column",
|
|
210
|
+
gap: "1rem",
|
|
211
|
+
padding: "1rem",
|
|
212
|
+
alignItems: "center",
|
|
213
|
+
textAlign: "center",
|
|
214
214
|
backgroundColor: imgGenTheme.colors.inputBg,
|
|
215
215
|
borderRadius: imgGenTheme.dimensions.borderRadius,
|
|
216
216
|
border: `1px solid ${imgGenTheme.colors.inputBorder}`,
|
|
217
217
|
},
|
|
218
218
|
promptForm: {
|
|
219
|
-
display:
|
|
220
|
-
gap:
|
|
221
|
-
width:
|
|
222
|
-
maxWidth:
|
|
223
|
-
flexDirection:
|
|
219
|
+
display: "flex",
|
|
220
|
+
gap: "0.5rem",
|
|
221
|
+
width: "100%",
|
|
222
|
+
maxWidth: "600px",
|
|
223
|
+
flexDirection: "column",
|
|
224
224
|
},
|
|
225
225
|
promptInput: {
|
|
226
|
-
width:
|
|
227
|
-
padding:
|
|
228
|
-
fontSize:
|
|
226
|
+
width: "100%",
|
|
227
|
+
padding: "0.8rem",
|
|
228
|
+
fontSize: "1rem",
|
|
229
229
|
border: `1px solid ${imgGenTheme.colors.inputBorder}`,
|
|
230
|
-
borderRadius:
|
|
231
|
-
boxSizing:
|
|
230
|
+
borderRadius: "4px",
|
|
231
|
+
boxSizing: "border-box",
|
|
232
232
|
backgroundColor: imgGenTheme.colors.inputBg,
|
|
233
233
|
color: imgGenTheme.colors.inputText,
|
|
234
234
|
},
|
|
235
235
|
promptSubmit: {
|
|
236
|
-
padding:
|
|
237
|
-
fontSize:
|
|
236
|
+
padding: "0.8rem",
|
|
237
|
+
fontSize: "1rem",
|
|
238
238
|
backgroundColor: imgGenTheme.colors.accent,
|
|
239
|
-
color:
|
|
240
|
-
border:
|
|
241
|
-
borderRadius:
|
|
242
|
-
cursor:
|
|
243
|
-
transition:
|
|
239
|
+
color: "white",
|
|
240
|
+
border: "none",
|
|
241
|
+
borderRadius: "4px",
|
|
242
|
+
cursor: "pointer",
|
|
243
|
+
transition: "background-color 0.3s",
|
|
244
244
|
},
|
|
245
245
|
fileDrop: {
|
|
246
246
|
border: `2px dashed ${imgGenTheme.colors.dropZoneBorder}`,
|
|
247
|
-
borderRadius:
|
|
248
|
-
padding:
|
|
249
|
-
textAlign:
|
|
250
|
-
cursor:
|
|
251
|
-
transition:
|
|
247
|
+
borderRadius: "8px",
|
|
248
|
+
padding: "2rem",
|
|
249
|
+
textAlign: "center",
|
|
250
|
+
cursor: "pointer",
|
|
251
|
+
transition: "border-color 0.3s, background-color 0.3s",
|
|
252
252
|
backgroundColor: imgGenTheme.colors.dropZoneBg,
|
|
253
|
-
marginTop:
|
|
253
|
+
marginTop: "1rem",
|
|
254
254
|
},
|
|
255
255
|
fileDropActive: {
|
|
256
256
|
borderColor: imgGenTheme.colors.accent,
|
|
@@ -258,54 +258,54 @@ export const imgGenStyles = {
|
|
|
258
258
|
},
|
|
259
259
|
fileDropDisabled: {
|
|
260
260
|
opacity: 0.5,
|
|
261
|
-
cursor:
|
|
261
|
+
cursor: "not-allowed",
|
|
262
262
|
},
|
|
263
263
|
fileDropMessage: {
|
|
264
264
|
color: imgGenTheme.colors.mutedText,
|
|
265
|
-
fontSize:
|
|
266
|
-
fontWeight:
|
|
265
|
+
fontSize: "1rem",
|
|
266
|
+
fontWeight: "normal",
|
|
267
267
|
},
|
|
268
268
|
uploadedPreviews: {
|
|
269
|
-
width:
|
|
270
|
-
marginTop:
|
|
269
|
+
width: "100%",
|
|
270
|
+
marginTop: "1rem",
|
|
271
271
|
},
|
|
272
272
|
uploadCount: {
|
|
273
|
-
fontSize:
|
|
273
|
+
fontSize: "0.9rem",
|
|
274
274
|
color: imgGenTheme.colors.mutedText,
|
|
275
|
-
marginBottom:
|
|
276
|
-
fontWeight:
|
|
275
|
+
marginBottom: "0.5rem",
|
|
276
|
+
fontWeight: "bold",
|
|
277
277
|
},
|
|
278
278
|
thumbnails: {
|
|
279
|
-
display:
|
|
280
|
-
gridTemplateColumns:
|
|
281
|
-
gap:
|
|
282
|
-
maxWidth:
|
|
283
|
-
margin:
|
|
279
|
+
display: "grid",
|
|
280
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(80px, 1fr))",
|
|
281
|
+
gap: "0.5rem",
|
|
282
|
+
maxWidth: "400px",
|
|
283
|
+
margin: "0 auto",
|
|
284
284
|
},
|
|
285
285
|
thumbnail: {
|
|
286
|
-
aspectRatio:
|
|
287
|
-
overflow:
|
|
288
|
-
borderRadius:
|
|
286
|
+
aspectRatio: "1 / 1",
|
|
287
|
+
overflow: "hidden",
|
|
288
|
+
borderRadius: "4px",
|
|
289
289
|
border: `1px solid ${imgGenTheme.colors.thumbnailBorder}`,
|
|
290
290
|
},
|
|
291
291
|
thumbnailImg: {
|
|
292
|
-
width:
|
|
293
|
-
height:
|
|
294
|
-
objectFit:
|
|
292
|
+
width: "100%",
|
|
293
|
+
height: "100%",
|
|
294
|
+
objectFit: "cover",
|
|
295
295
|
},
|
|
296
296
|
moreCount: {
|
|
297
|
-
display:
|
|
298
|
-
alignItems:
|
|
299
|
-
justifyContent:
|
|
297
|
+
display: "flex",
|
|
298
|
+
alignItems: "center",
|
|
299
|
+
justifyContent: "center",
|
|
300
300
|
backgroundColor: imgGenTheme.colors.lightBg,
|
|
301
301
|
color: imgGenTheme.colors.mutedText,
|
|
302
|
-
fontSize:
|
|
303
|
-
fontWeight:
|
|
302
|
+
fontSize: "0.8rem",
|
|
303
|
+
fontWeight: "bold",
|
|
304
304
|
},
|
|
305
305
|
truncate: {
|
|
306
|
-
whiteSpace:
|
|
307
|
-
overflow:
|
|
308
|
-
textOverflow:
|
|
306
|
+
whiteSpace: "nowrap",
|
|
307
|
+
overflow: "hidden",
|
|
308
|
+
textOverflow: "ellipsis",
|
|
309
309
|
},
|
|
310
310
|
};
|
|
311
311
|
export function createStyledVariant(baseStyle, variants = {}) {
|
|
@@ -313,16 +313,16 @@ export function createStyledVariant(baseStyle, variants = {}) {
|
|
|
313
313
|
}
|
|
314
314
|
export const styleUtils = {
|
|
315
315
|
hover: (styles) => ({
|
|
316
|
-
|
|
316
|
+
"&:hover": styles,
|
|
317
317
|
}),
|
|
318
318
|
disabled: (styles) => ({
|
|
319
|
-
|
|
319
|
+
"&:disabled": styles,
|
|
320
320
|
}),
|
|
321
321
|
mediaQuery: (query, styles) => ({
|
|
322
322
|
[`@media ${query}`]: styles,
|
|
323
323
|
}),
|
|
324
324
|
transition: (properties, duration = imgGenTheme.effects.transitionSpeed) => ({
|
|
325
|
-
transition: properties.map((prop) => `${prop} ${duration} ease`).join(
|
|
325
|
+
transition: properties.map((prop) => `${prop} ${duration} ease`).join(", "),
|
|
326
326
|
}),
|
|
327
327
|
};
|
|
328
328
|
//# sourceMappingURL=styles.js.map
|