Skip to content

Commit 2c6f634

Browse files
authored
Merge pull request #30 from CommandOSSLabs/improvement/extend-blob
Improvement/extend blob
2 parents 586d711 + 2ace492 commit 2c6f634

11 files changed

Lines changed: 421 additions & 21 deletions

File tree

packages/file-manager/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @cmdoss/file-manager
22

3+
## 2.5.0
4+
5+
### Minor Changes
6+
7+
- d8e5864: add storage cost section in extend blob modal
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [d8e5864]
12+
- @cmdoss/walrus-site-builder@2.5.0
13+
314
## 2.4.0
415

516
### Minor Changes

packages/file-manager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cmdoss/file-manager",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"license": "MIT",
55
"type": "module",
66
"exports": "./dist/index.js",

packages/walrus-site-builder-react/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @cmdoss/walrus-site-builder-react
22

3+
## 2.5.0
4+
5+
### Minor Changes
6+
7+
- d8e5864: add storage cost section in extend blob modal
8+
9+
### Patch Changes
10+
11+
- Updated dependencies [d8e5864]
12+
- @cmdoss/walrus-site-builder@2.5.0
13+
- @cmdoss/file-manager@2.5.0
14+
315
## 2.4.0
416

517
### Minor Changes

packages/walrus-site-builder-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cmdoss/walrus-site-builder-react",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"license": "MIT",
55
"type": "module",
66
"exports": {

packages/walrus-site-builder-react/src/components/extend-time-dialog/ExtendTimeDialog.css.ts

Lines changed: 145 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ export const spinner = style({
6161

6262
export const header = style({
6363
position: 'relative',
64-
marginBottom: themeVars.spacing.md
64+
marginBottom: themeVars.spacing.sm
6565
})
6666

6767
export const title = style({
68-
fontSize: '1.125rem',
68+
fontSize: '1rem',
6969
fontWeight: 600,
7070
color: themeVars.colors.foreground,
71-
marginBottom: themeVars.spacing.xs
71+
marginBottom: '0.25rem'
7272
})
7373

7474
export const description = style({
@@ -95,21 +95,21 @@ export const closeButton = style({
9595
export const body = style({
9696
display: 'flex',
9797
flexDirection: 'column',
98-
gap: themeVars.spacing.md,
98+
gap: themeVars.spacing.sm,
9999
flex: 1,
100100
overflow: 'auto'
101101
})
102102

103103
export const formSection = style({
104104
display: 'flex',
105105
flexDirection: 'column',
106-
gap: themeVars.spacing.md
106+
gap: themeVars.spacing.sm
107107
})
108108

109109
export const fieldGroup = style({
110110
display: 'flex',
111111
flexDirection: 'column',
112-
gap: themeVars.spacing.xs
112+
gap: '0.375rem'
113113
})
114114

115115
export const dateInputWrapper = style({
@@ -145,7 +145,8 @@ export const errorText = style({
145145
export const summaryGrid = style({
146146
display: 'grid',
147147
gridTemplateColumns: 'repeat(2, 1fr)',
148-
gap: themeVars.spacing.md,
148+
gap: themeVars.spacing.sm,
149+
marginTop: '0.5rem',
149150
'@media': {
150151
'(max-width: 768px)': {
151152
gridTemplateColumns: '1fr'
@@ -160,25 +161,31 @@ export const summaryCard = style({
160161
padding: themeVars.spacing.md,
161162
display: 'flex',
162163
flexDirection: 'column',
163-
gap: themeVars.spacing.xs
164+
gap: '0.375rem',
165+
transition: 'all 0.2s ease',
166+
':hover': {
167+
borderColor: themeVars.colors.border,
168+
backgroundColor: `${themeVars.colors.muted}60`
169+
}
164170
})
165171

166172
export const summaryHeader = style({
167173
display: 'flex',
168174
alignItems: 'center',
169-
gap: themeVars.spacing.xs,
175+
gap: '0.375rem',
170176
fontSize: '0.75rem',
171-
color: themeVars.colors.mutedForeground
177+
color: themeVars.colors.mutedForeground,
178+
marginBottom: '0.25rem'
172179
})
173180

174181
export const summaryContent = style({
175182
display: 'flex',
176183
flexDirection: 'column',
177-
gap: themeVars.spacing.xs
184+
gap: '0.25rem'
178185
})
179186

180187
export const summaryValue = style({
181-
fontSize: '0.875rem',
188+
fontSize: '0.8125rem',
182189
fontWeight: 600,
183190
color: themeVars.colors.foreground
184191
})
@@ -215,8 +222,131 @@ export const summaryRow = style({
215222

216223
export const footer = style({
217224
display: 'flex',
218-
gap: themeVars.spacing.md,
225+
gap: themeVars.spacing.sm,
219226
justifyContent: 'flex-end',
220-
marginTop: themeVars.spacing.md,
221-
paddingTop: themeVars.spacing.md
227+
marginTop: themeVars.spacing.sm,
228+
paddingTop: themeVars.spacing.sm,
229+
borderTop: `1px solid ${themeVars.colors.border}`
230+
})
231+
232+
export const costSection = style({
233+
borderRadius: themeVars.radius.md,
234+
border: `1px solid ${themeVars.colors.border}`,
235+
backgroundColor: `${themeVars.colors.muted}40`,
236+
padding: themeVars.spacing.md,
237+
display: 'flex',
238+
flexDirection: 'column',
239+
gap: '0.5rem',
240+
marginTop: '0.5rem',
241+
transition: 'all 0.2s ease',
242+
':hover': {
243+
borderColor: themeVars.colors.border,
244+
backgroundColor: `${themeVars.colors.muted}60`
245+
}
246+
})
247+
248+
export const costHeader = style({
249+
display: 'flex',
250+
alignItems: 'center',
251+
gap: '0.375rem',
252+
fontSize: '0.875rem',
253+
fontWeight: 600,
254+
color: themeVars.colors.foreground,
255+
marginBottom: '0.25rem'
256+
})
257+
258+
export const costContent = style({
259+
display: 'flex',
260+
flexDirection: 'column',
261+
gap: '0.375rem'
262+
})
263+
264+
export const costRow = style({
265+
display: 'flex',
266+
justifyContent: 'space-between',
267+
alignItems: 'center',
268+
fontSize: '0.8125rem'
269+
})
270+
271+
export const costLabel = style({
272+
color: themeVars.colors.mutedForeground
273+
})
274+
275+
export const costValue = style({
276+
fontWeight: 500,
277+
color: themeVars.colors.foreground
278+
})
279+
280+
export const costLoading = style({
281+
display: 'flex',
282+
alignItems: 'center',
283+
gap: '0.375rem',
284+
fontSize: '0.875rem',
285+
color: themeVars.colors.mutedForeground,
286+
padding: '0.5rem',
287+
justifyContent: 'center'
288+
})
289+
290+
export const costError = style({
291+
fontSize: '0.875rem',
292+
color: themeVars.colors.destructive,
293+
padding: '0.5rem',
294+
display: 'flex',
295+
alignItems: 'center',
296+
gap: '0.375rem',
297+
justifyContent: 'center',
298+
borderRadius: themeVars.radius.sm,
299+
backgroundColor: `${themeVars.colors.destructive}10`
300+
})
301+
302+
export const costWarning = style({
303+
fontSize: '0.75rem',
304+
color: themeVars.colors.mutedForeground,
305+
padding: '0.5rem',
306+
display: 'flex',
307+
alignItems: 'flex-start',
308+
gap: '0.375rem',
309+
borderRadius: themeVars.radius.sm,
310+
backgroundColor: 'rgba(245, 158, 11, 0.1)',
311+
border: '1px solid rgba(245, 158, 11, 0.2)',
312+
marginTop: '0.25rem'
313+
})
314+
315+
export const costDivider = style({
316+
height: '1px',
317+
backgroundColor: themeVars.colors.border,
318+
margin: '0.5rem 0'
319+
})
320+
321+
export const costTotalRow = style({
322+
display: 'flex',
323+
justifyContent: 'space-between',
324+
alignItems: 'center',
325+
paddingTop: '0.5rem',
326+
marginTop: '0.25rem',
327+
borderTop: `1px solid ${themeVars.colors.border}`
328+
})
329+
330+
export const costTotalLabel = style({
331+
fontSize: '0.875rem',
332+
fontWeight: 600,
333+
color: themeVars.colors.foreground
334+
})
335+
336+
export const costTotalValue = style({
337+
fontSize: '0.9375rem',
338+
fontWeight: 700,
339+
color: themeVars.colors.foreground
340+
})
341+
342+
export const estimatedBadge = style({
343+
fontSize: '0.625rem',
344+
fontWeight: 600,
345+
padding: '0.125rem 0.375rem',
346+
borderRadius: themeVars.radius.sm,
347+
backgroundColor: 'rgba(245, 158, 11, 0.2)',
348+
color: '#f59e0b',
349+
textTransform: 'uppercase',
350+
letterSpacing: '0.025em',
351+
marginLeft: 'auto'
222352
})

0 commit comments

Comments
 (0)