@gallop.software/studio 2.0.2 → 2.0.4

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.
Files changed (45) hide show
  1. package/app/layout.tsx +2 -2
  2. package/app/page.tsx +1 -1
  3. package/dist/components/StudioUI.d.mts +15 -0
  4. package/dist/components/StudioUI.d.ts +15 -0
  5. package/dist/components/StudioUI.js +6572 -0
  6. package/dist/components/StudioUI.js.map +1 -0
  7. package/dist/components/StudioUI.mjs +6572 -0
  8. package/dist/components/StudioUI.mjs.map +1 -0
  9. package/package.json +6 -2
  10. package/src/components/AddNewModal.tsx +0 -402
  11. package/src/components/ErrorModal.tsx +0 -89
  12. package/src/components/R2SetupModal.tsx +0 -400
  13. package/src/components/StudioBreadcrumb.tsx +0 -115
  14. package/src/components/StudioButton.tsx +0 -200
  15. package/src/components/StudioContext.tsx +0 -219
  16. package/src/components/StudioDetailView.tsx +0 -714
  17. package/src/components/StudioFileGrid.tsx +0 -704
  18. package/src/components/StudioFileList.tsx +0 -743
  19. package/src/components/StudioFolderPicker.tsx +0 -342
  20. package/src/components/StudioModal.tsx +0 -473
  21. package/src/components/StudioPreview.tsx +0 -399
  22. package/src/components/StudioSettings.tsx +0 -536
  23. package/src/components/StudioToolbar.tsx +0 -1448
  24. package/src/components/StudioUI.tsx +0 -731
  25. package/src/components/styles/common.ts +0 -236
  26. package/src/components/tokens.ts +0 -78
  27. package/src/components/useStudioActions.tsx +0 -497
  28. package/src/config/index.ts +0 -7
  29. package/src/config/workspace.ts +0 -52
  30. package/src/handlers/favicon.ts +0 -152
  31. package/src/handlers/files.ts +0 -784
  32. package/src/handlers/images.ts +0 -949
  33. package/src/handlers/import.ts +0 -190
  34. package/src/handlers/index.ts +0 -168
  35. package/src/handlers/list.ts +0 -627
  36. package/src/handlers/scan.ts +0 -311
  37. package/src/handlers/utils/cdn.ts +0 -234
  38. package/src/handlers/utils/files.ts +0 -64
  39. package/src/handlers/utils/index.ts +0 -4
  40. package/src/handlers/utils/meta.ts +0 -102
  41. package/src/handlers/utils/thumbnails.ts +0 -98
  42. package/src/hooks/useFileList.ts +0 -143
  43. package/src/index.tsx +0 -36
  44. package/src/lib/api.ts +0 -176
  45. package/src/types.ts +0 -119
@@ -1,236 +0,0 @@
1
- import { css, keyframes } from '@emotion/react'
2
- import { colors, fontSize } from '../tokens'
3
-
4
- // Common keyframes
5
- export const spin = keyframes`
6
- to { transform: rotate(360deg); }
7
- `
8
-
9
- // Loading states
10
- export const loadingStyles = {
11
- container: css`
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- height: 256px;
16
- `,
17
- spinner: css`
18
- width: 32px;
19
- height: 32px;
20
- border-radius: 50%;
21
- border: 3px solid ${colors.border};
22
- border-top-color: ${colors.primary};
23
- animation: ${spin} 0.8s linear infinite;
24
- `,
25
- }
26
-
27
- // Empty states
28
- export const emptyStyles = {
29
- container: css`
30
- display: flex;
31
- flex-direction: column;
32
- align-items: center;
33
- justify-content: center;
34
- height: 256px;
35
- color: ${colors.textSecondary};
36
- `,
37
- icon: css`
38
- width: 48px;
39
- height: 48px;
40
- margin-bottom: 16px;
41
- opacity: 0.5;
42
- `,
43
- text: css`
44
- font-size: ${fontSize.base};
45
- margin: 0 0 4px 0;
46
-
47
- &:last-child {
48
- color: ${colors.textMuted};
49
- font-size: ${fontSize.sm};
50
- }
51
- `,
52
- }
53
-
54
- // Buttons
55
- export const buttonStyles = {
56
- base: css`
57
- display: flex;
58
- align-items: center;
59
- gap: 6px;
60
- padding: 8px 12px;
61
- border-radius: 6px;
62
- font-size: ${fontSize.sm};
63
- font-weight: 500;
64
- border: 1px solid ${colors.border};
65
- background: ${colors.surface};
66
- color: ${colors.text};
67
- cursor: pointer;
68
- transition: all 0.15s ease;
69
- white-space: nowrap;
70
-
71
- &:hover:not(:disabled) {
72
- background: ${colors.surfaceHover};
73
- border-color: #d0d5dd;
74
- }
75
-
76
- &:disabled {
77
- opacity: 0.5;
78
- cursor: not-allowed;
79
- }
80
- `,
81
- primary: css`
82
- background: ${colors.primary};
83
- border-color: ${colors.primary};
84
- color: white;
85
-
86
- &:hover:not(:disabled) {
87
- background: ${colors.primaryHover};
88
- border-color: ${colors.primaryHover};
89
- }
90
- `,
91
- danger: css`
92
- color: ${colors.danger};
93
-
94
- &:hover:not(:disabled) {
95
- background: ${colors.dangerLight};
96
- border-color: ${colors.dangerLight};
97
- }
98
- `,
99
- icon: css`
100
- width: 16px;
101
- height: 16px;
102
- flex-shrink: 0;
103
- `,
104
- }
105
-
106
- // Checkboxes
107
- export const checkboxStyles = {
108
- checkbox: css`
109
- width: 16px;
110
- height: 16px;
111
- accent-color: ${colors.primary};
112
- cursor: pointer;
113
- `,
114
- }
115
-
116
- // Copy button with tooltip
117
- export const copyButtonStyles = {
118
- button: css`
119
- height: 28px;
120
- width: 28px;
121
- color: ${colors.textMuted};
122
- background: transparent;
123
- border: none;
124
- padding: 0;
125
- cursor: pointer;
126
- border-radius: 4px;
127
- transition: all 0.15s ease;
128
- display: flex;
129
- align-items: center;
130
- justify-content: center;
131
- position: relative;
132
-
133
- &:hover {
134
- color: ${colors.text};
135
- }
136
- `,
137
- icon: css`
138
- width: 18px;
139
- height: 18px;
140
- `,
141
- tooltip: css`
142
- position: absolute;
143
- top: 50%;
144
- right: 100%;
145
- transform: translateY(-50%);
146
- background: #1a1f36;
147
- color: white;
148
- padding: 4px 8px;
149
- border-radius: 4px;
150
- font-size: 12px;
151
- white-space: nowrap;
152
- margin-right: 6px;
153
- pointer-events: none;
154
- z-index: 100;
155
-
156
- &::before {
157
- content: '';
158
- position: absolute;
159
- right: -4px;
160
- top: 50%;
161
- transform: translateY(-50%);
162
- border-left: 4px solid #1a1f36;
163
- border-top: 4px solid transparent;
164
- border-bottom: 4px solid transparent;
165
- }
166
- `,
167
- }
168
-
169
- // CDN badge
170
- export const cdnBadgeStyles = {
171
- badge: css`
172
- display: inline-flex;
173
- align-items: center;
174
- gap: 4px;
175
- padding: 2px 6px;
176
- border-radius: 4px;
177
- font-size: ${fontSize.xs};
178
- font-weight: 500;
179
- background: ${colors.successLight};
180
- color: ${colors.success};
181
- `,
182
- icon: css`
183
- width: 12px;
184
- height: 12px;
185
- `,
186
- empty: css`
187
- color: ${colors.textMuted};
188
- font-size: ${fontSize.sm};
189
- `,
190
- }
191
-
192
- // Folder icons
193
- export const folderIconStyles = {
194
- folder: css`
195
- width: 48px;
196
- height: 48px;
197
- color: ${colors.folder};
198
- `,
199
- imagesFolder: css`
200
- width: 48px;
201
- height: 48px;
202
- color: ${colors.imagesFolder};
203
- `,
204
- lock: css`
205
- width: 16px;
206
- height: 16px;
207
- position: absolute;
208
- bottom: 0;
209
- right: 0;
210
- color: ${colors.imagesFolder};
211
- `,
212
- }
213
-
214
- // Select all row
215
- export const selectAllStyles = {
216
- row: css`
217
- display: flex;
218
- align-items: center;
219
- gap: 8px;
220
- padding: 8px 0;
221
- margin-bottom: 8px;
222
- border-bottom: 1px solid ${colors.border};
223
- `,
224
- label: css`
225
- display: flex;
226
- align-items: center;
227
- gap: 8px;
228
- font-size: ${fontSize.sm};
229
- color: ${colors.textSecondary};
230
- cursor: pointer;
231
-
232
- &:hover {
233
- color: ${colors.text};
234
- }
235
- `,
236
- }
@@ -1,78 +0,0 @@
1
- import { css } from '@emotion/react'
2
-
3
- /**
4
- * Stripe-inspired design tokens for Studio
5
- * These are self-contained and agnostic of any parent template styling
6
- */
7
-
8
- // Base font stack - system fonts that work everywhere
9
- export const fontStack = `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif`
10
-
11
- // Color palette
12
- export const colors = {
13
- // Primary brand
14
- primary: '#635bff',
15
- primaryHover: '#5851e5',
16
- primaryLight: '#f0f0ff',
17
-
18
- // Backgrounds
19
- background: '#f6f9fc',
20
- surface: '#ffffff',
21
- surfaceHover: '#f6f9fc',
22
-
23
- // Borders
24
- border: '#d8dee4',
25
- borderLight: '#e3e8ee',
26
- borderHover: '#c1c9d2',
27
-
28
- // Text
29
- text: '#1a1f36',
30
- textSecondary: '#697386',
31
- textMuted: '#8792a2',
32
-
33
- // Status
34
- success: '#0d7d4d',
35
- successLight: '#e6f7ef',
36
- danger: '#df1b41',
37
- dangerHover: '#c41535',
38
- dangerLight: '#fff5f7',
39
-
40
- // Shadows
41
- shadow: 'rgba(50, 50, 93, 0.1)',
42
- shadowDark: 'rgba(50, 50, 93, 0.2)',
43
-
44
- // Special folders
45
- folder: '#64748b',
46
- imagesFolder: '#8b5cf6',
47
- imagesFolderLight: '#f3f0ff',
48
- }
49
-
50
- // Font sizes - slightly larger for better readability
51
- export const fontSize = {
52
- xs: '13px',
53
- sm: '14px',
54
- base: '16px',
55
- md: '17px',
56
- lg: '19px',
57
- xl: '22px',
58
- }
59
-
60
- // Base reset styles for Studio container - isolates from parent template
61
- export const baseReset = css`
62
- font-family: ${fontStack};
63
- font-size: ${fontSize.base};
64
- line-height: 1.5;
65
- color: ${colors.text};
66
- -webkit-font-smoothing: antialiased;
67
- -moz-osx-font-smoothing: grayscale;
68
- box-sizing: border-box;
69
-
70
- *, *::before, *::after {
71
- box-sizing: border-box;
72
- }
73
-
74
- button, input, select, textarea {
75
- font-family: inherit;
76
- font-size: inherit;
77
- }
78
- `