@app-studio/web 0.9.44 → 0.9.45

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 (41) hide show
  1. package/dist/pages/themeTest.page.d.ts +3 -0
  2. package/dist/web.cjs.development.js +1 -1
  3. package/dist/web.cjs.development.js.map +1 -1
  4. package/dist/web.cjs.production.min.js +1 -1
  5. package/dist/web.cjs.production.min.js.map +1 -1
  6. package/dist/web.esm.js +1 -1
  7. package/dist/web.esm.js.map +1 -1
  8. package/dist/web.umd.development.js +1 -1
  9. package/dist/web.umd.development.js.map +1 -1
  10. package/dist/web.umd.production.min.js +1 -1
  11. package/dist/web.umd.production.min.js.map +1 -1
  12. package/docs/components/Badge.mdx +1 -1
  13. package/docs/components/ColorPicker.mdx +16 -16
  14. package/docs/components/DragAndDrop.mdx +11 -11
  15. package/docs/components/Drawer.mdx +3 -3
  16. package/docs/components/Gradient.mdx +40 -40
  17. package/docs/components/Loader.mdx +17 -17
  18. package/docs/components/ProgressBar.mdx +14 -14
  19. package/docs/components/StatusIndicator.mdx +5 -5
  20. package/package.json +1 -1
  21. package/dist/bot/Bot.d.ts +0 -15
  22. package/dist/bot/Cache.d.ts +0 -13
  23. package/dist/bot/Config.d.ts +0 -13
  24. package/dist/bot/ContentFetcher.d.ts +0 -9
  25. package/dist/bot/DocuCode.d.ts +0 -19
  26. package/dist/bot/FileHandler.d.ts +0 -39
  27. package/dist/bot/ai/AnthropicConnector.d.ts +0 -6
  28. package/dist/bot/ai/GeminiConnector.d.ts +0 -7
  29. package/dist/bot/ai/GroqConnector.d.ts +0 -7
  30. package/dist/bot/ai/HuggingFaceConnector.d.ts +0 -6
  31. package/dist/bot/ai/OpenAIConnector.d.ts +0 -11
  32. package/dist/bot/ai/ReplicateConnector.d.ts +0 -7
  33. package/dist/bot/ai/SambaNovaConnector.d.ts +0 -6
  34. package/dist/bot/ai/ai.config.d.ts +0 -12
  35. package/dist/bot/ai/ai.service.d.ts +0 -36
  36. package/dist/bot/data.d.ts +0 -19
  37. package/dist/bot/extractors.d.ts +0 -8
  38. package/dist/bot/index.d.ts +0 -1
  39. package/dist/bot/prompt/1-project.d.ts +0 -1
  40. package/dist/bot/prompt/2-response.d.ts +0 -1
  41. package/dist/bot/prompt/3-comment.d.ts +0 -1
@@ -74,7 +74,7 @@ export const PositionDemo = () => (
74
74
  position="relative"
75
75
  height="100px"
76
76
  width="200px"
77
- backgroundColor="#F2EFE5"
77
+ backgroundColor="color.warmGray.100"
78
78
  >
79
79
  <Badge position={position as Position} content={position} />
80
80
  </View>
@@ -52,7 +52,7 @@ import { ColorPicker } from '@app-studio/web';
52
52
 
53
53
  export const DefaultValueColorPicker = () => (
54
54
  <ColorPicker
55
- defaultValue="#10b981"
55
+ defaultValue="color.emerald.500"
56
56
  onChange={(color) => console.log(color)}
57
57
  />
58
58
  );
@@ -69,11 +69,11 @@ import { ColorPicker } from '@app-studio/web';
69
69
 
70
70
  export const PredefinedColorPicker = () => {
71
71
  const colors = [
72
- { color: '#ef4444', label: 'Red' },
73
- { color: '#3b82f6', label: 'Blue' },
74
- { color: '#10b981', label: 'Green' },
75
- { color: '#f59e0b', label: 'Orange' },
76
- { color: '#8b5cf6', label: 'Purple' },
72
+ { color: 'color.red.500', label: 'Red' },
73
+ { color: 'color.blue.500', label: 'Blue' },
74
+ { color: 'color.emerald.500', label: 'Green' },
75
+ { color: 'color.amber.500', label: 'Orange' },
76
+ { color: 'color.violet.500', label: 'Purple' },
77
77
  ];
78
78
 
79
79
  return (
@@ -200,7 +200,7 @@ import { ColorPicker } from '@app-studio/web';
200
200
  export const DisabledColorPicker = () => (
201
201
  <ColorPicker
202
202
  isDisabled
203
- value="#3b82f6"
203
+ value="color.blue.500"
204
204
  onChange={(color) => console.log(color)}
205
205
  />
206
206
  );
@@ -219,7 +219,7 @@ import { ColorPicker } from '@app-studio/web';
219
219
  export const ReadOnlyColorPicker = () => (
220
220
  <ColorPicker
221
221
  isReadOnly
222
- value="#3b82f6"
222
+ value="color.blue.500"
223
223
  onChange={(color) => console.log(color)}
224
224
  />
225
225
  );
@@ -385,10 +385,10 @@ export const StyledColorPicker = () => (
385
385
  views={{
386
386
  trigger: {
387
387
  borderWidth: 2,
388
- borderColor: '#3b82f6',
388
+ borderColor: 'color.blue.500',
389
389
  },
390
390
  dropdown: {
391
- backgroundColor: '#f9fafb',
391
+ backgroundColor: 'color.coolGray.50',
392
392
  padding: 20,
393
393
  },
394
394
  colorSwatch: {
@@ -411,12 +411,12 @@ export const CompleteColorPicker = () => {
411
411
  const [color, setColor] = useState('#3b82f6');
412
412
 
413
413
  const predefinedColors = [
414
- { color: '#ef4444', label: 'Red' },
415
- { color: '#3b82f6', label: 'Blue' },
416
- { color: '#10b981', label: 'Green' },
417
- { color: '#f59e0b', label: 'Orange' },
418
- { color: '#8b5cf6', label: 'Purple' },
419
- { color: '#ec4899', label: 'Pink' },
414
+ { color: 'color.red.500', label: 'Red' },
415
+ { color: 'color.blue.500', label: 'Blue' },
416
+ { color: 'color.emerald.500', label: 'Green' },
417
+ { color: 'color.amber.500', label: 'Orange' },
418
+ { color: 'color.violet.500', label: 'Purple' },
419
+ { color: 'color.pink.500', label: 'Pink' },
420
420
  ];
421
421
 
422
422
  return (
@@ -115,7 +115,7 @@ export const CustomRenderDragAndDrop = () => {
115
115
  gap={10}
116
116
  alignItems="center"
117
117
  padding={12}
118
- backgroundColor={item.completed ? '#d1fae5' : '#fee2e2'}
118
+ backgroundColor={item.completed ? 'color.emerald.100' : 'color.red.100'}
119
119
  borderRadius={8}
120
120
  >
121
121
  <Text fontWeight="bold">#{index + 1}</Text>
@@ -147,7 +147,7 @@ export const ContainerPropsDragAndDrop = () => {
147
147
  onChange={setItems}
148
148
  renderItem={(item) => <Text>{item}</Text>}
149
149
  containerProps={{
150
- backgroundColor: '#f3f4f6',
150
+ backgroundColor: 'color.coolGray.100',
151
151
  padding: 20,
152
152
  borderRadius: 12,
153
153
  gap: 10,
@@ -177,7 +177,7 @@ export const ItemPropsDragAndDrop = () => {
177
177
  renderItem={(item) => <Text>{item}</Text>}
178
178
  itemProps={{
179
179
  padding: 15,
180
- backgroundColor: '#ffffff',
180
+ backgroundColor: 'white',
181
181
  borderRadius: 8,
182
182
  cursor: 'grab',
183
183
  boxShadow: '0 2px 4px rgba(0,0,0,0.1)',
@@ -207,13 +207,13 @@ export const StyledDragAndDrop = () => {
207
207
  renderItem={(item) => <Text>{item}</Text>}
208
208
  views={{
209
209
  container: {
210
- backgroundColor: '#1f2937',
210
+ backgroundColor: 'color.coolGray.800',
211
211
  padding: 20,
212
212
  borderRadius: 16,
213
213
  },
214
214
  item: {
215
- backgroundColor: '#374151',
216
- color: '#ffffff',
215
+ backgroundColor: 'color.coolGray.700',
216
+ color: 'white',
217
217
  padding: 16,
218
218
  borderRadius: 8,
219
219
  marginBottom: 8,
@@ -266,9 +266,9 @@ export const TaskListDragAndDrop = () => {
266
266
  ]);
267
267
 
268
268
  const priorityColors = {
269
- high: '#ef4444',
270
- medium: '#f59e0b',
271
- low: '#10b981',
269
+ high: 'color.red.500',
270
+ medium: 'color.amber.500',
271
+ low: 'color.emerald.500',
272
272
  };
273
273
 
274
274
  return (
@@ -278,7 +278,7 @@ export const TaskListDragAndDrop = () => {
278
278
  renderItem={(task, index) => (
279
279
  <View
280
280
  padding={16}
281
- backgroundColor="#ffffff"
281
+ backgroundColor="white"
282
282
  borderRadius={12}
283
283
  borderLeftWidth={4}
284
284
  borderLeftColor={priorityColors[task.priority]}
@@ -298,7 +298,7 @@ export const TaskListDragAndDrop = () => {
298
298
  {task.priority}
299
299
  </Text>
300
300
  </Horizontal>
301
- <Text fontSize={14} color="#6b7280">
301
+ <Text fontSize={14} color="color.coolGray.500">
302
302
  {task.description}
303
303
  </Text>
304
304
  </Vertical>
@@ -434,15 +434,15 @@ export const DetailsDrawer = () => {
434
434
  <Drawer.Body>
435
435
  <Vertical gap={20}>
436
436
  <div>
437
- <Text fontSize={14} color="#6b7280">Name</Text>
437
+ <Text fontSize={14} color="color.coolGray.500">Name</Text>
438
438
  <Text fontSize={16}>Premium Widget</Text>
439
439
  </div>
440
440
  <div>
441
- <Text fontSize={14} color="#6b7280">Price</Text>
441
+ <Text fontSize={14} color="color.coolGray.500">Price</Text>
442
442
  <Text fontSize={16}>$99.99</Text>
443
443
  </div>
444
444
  <div>
445
- <Text fontSize={14} color="#6b7280">Description</Text>
445
+ <Text fontSize={14} color="color.coolGray.500">Description</Text>
446
446
  <Text fontSize={16}>
447
447
  A high-quality widget with advanced features
448
448
  and premium materials.
@@ -14,8 +14,8 @@ import { Gradient } from '@app-studio/web';
14
14
 
15
15
  export const DefaultGradient = () => (
16
16
  <Gradient
17
- from="#3b82f6"
18
- to="#8b5cf6"
17
+ from="color.blue.500"
18
+ to="color.violet.500"
19
19
  width={300}
20
20
  height={200}
21
21
  />
@@ -38,22 +38,22 @@ export const GradientTypes = () => (
38
38
  <Vertical gap={15}>
39
39
  <Gradient
40
40
  type="linear"
41
- from="#3b82f6"
42
- to="#8b5cf6"
41
+ from="color.blue.500"
42
+ to="color.violet.500"
43
43
  width={300}
44
44
  height={100}
45
45
  />
46
46
  <Gradient
47
47
  type="radial"
48
- from="#3b82f6"
49
- to="#8b5cf6"
48
+ from="color.blue.500"
49
+ to="color.violet.500"
50
50
  width={300}
51
51
  height={100}
52
52
  />
53
53
  <Gradient
54
54
  type="conic"
55
- from="#3b82f6"
56
- to="#8b5cf6"
55
+ from="color.blue.500"
56
+ to="color.violet.500"
57
57
  width={300}
58
58
  height={100}
59
59
  />
@@ -73,9 +73,9 @@ import { Vertical } from 'app-studio';
73
73
 
74
74
  export const SimpleGradients = () => (
75
75
  <Vertical gap={15}>
76
- <Gradient from="#ef4444" to="#f59e0b" width={300} height={100} />
77
- <Gradient from="#10b981" to="#3b82f6" width={300} height={100} />
78
- <Gradient from="#8b5cf6" to="#ec4899" width={300} height={100} />
76
+ <Gradient from="color.red.500" to="color.amber.500" width={300} height={100} />
77
+ <Gradient from="color.emerald.500" to="color.blue.500" width={300} height={100} />
78
+ <Gradient from="color.violet.500" to="color.pink.500" width={300} height={100} />
79
79
  </Vertical>
80
80
  );
81
81
  ```
@@ -127,8 +127,8 @@ export const DirectionalGradients = () => (
127
127
  <Gradient
128
128
  key={direction}
129
129
  direction={direction as any}
130
- from="#3b82f6"
131
- to="#8b5cf6"
130
+ from="color.blue.500"
131
+ to="color.violet.500"
132
132
  width={300}
133
133
  height={100}
134
134
  />
@@ -154,16 +154,16 @@ export const RadialShapes = () => (
154
154
  <Gradient
155
155
  type="radial"
156
156
  shape="circle"
157
- from="#3b82f6"
158
- to="#8b5cf6"
157
+ from="color.blue.500"
158
+ to="color.violet.500"
159
159
  width={200}
160
160
  height={200}
161
161
  />
162
162
  <Gradient
163
163
  type="radial"
164
164
  shape="ellipse"
165
- from="#3b82f6"
166
- to="#8b5cf6"
165
+ from="color.blue.500"
166
+ to="color.violet.500"
167
167
  width={300}
168
168
  height={200}
169
169
  />
@@ -195,8 +195,8 @@ export const RadialPositions = () => (
195
195
  key={position}
196
196
  type="radial"
197
197
  position={position as any}
198
- from="#3b82f6"
199
- to="#8b5cf6"
198
+ from="color.blue.500"
199
+ to="color.violet.500"
200
200
  width={300}
201
201
  height={100}
202
202
  />
@@ -217,8 +217,8 @@ import { Gradient } from '@app-studio/web';
217
217
 
218
218
  export const AnimatedGradient = () => (
219
219
  <Gradient
220
- from="#3b82f6"
221
- to="#8b5cf6"
220
+ from="color.blue.500"
221
+ to="color.violet.500"
222
222
  animate
223
223
  width={300}
224
224
  height={200}
@@ -240,16 +240,16 @@ import { Vertical } from 'app-studio';
240
240
  export const AnimationDurations = () => (
241
241
  <Vertical gap={15}>
242
242
  <Gradient
243
- from="#3b82f6"
244
- to="#8b5cf6"
243
+ from="color.blue.500"
244
+ to="color.violet.500"
245
245
  animate
246
246
  animationDuration={1}
247
247
  width={300}
248
248
  height={80}
249
249
  />
250
250
  <Gradient
251
- from="#3b82f6"
252
- to="#8b5cf6"
251
+ from="color.blue.500"
252
+ to="color.violet.500"
253
253
  animate
254
254
  animationDuration={5}
255
255
  width={300}
@@ -271,14 +271,14 @@ import { Text, Center } from 'app-studio';
271
271
 
272
272
  export const GradientWithContent = () => (
273
273
  <Gradient
274
- from="#3b82f6"
275
- to="#8b5cf6"
274
+ from="color.blue.500"
275
+ to="color.violet.500"
276
276
  width={300}
277
277
  height={200}
278
278
  borderRadius={16}
279
279
  >
280
280
  <Center width="100%" height="100%">
281
- <Text color="#ffffff" fontSize={24} fontWeight="bold">
281
+ <Text color="white" fontSize={24} fontWeight="bold">
282
282
  Gradient Background
283
283
  </Text>
284
284
  </Center>
@@ -297,8 +297,8 @@ import { Gradient } from '@app-studio/web';
297
297
 
298
298
  export const StyledGradient = () => (
299
299
  <Gradient
300
- from="#3b82f6"
301
- to="#8b5cf6"
300
+ from="color.blue.500"
301
+ to="color.violet.500"
302
302
  width={300}
303
303
  height={200}
304
304
  views={{
@@ -379,28 +379,28 @@ import { Text, Vertical, Button } from 'app-studio';
379
379
 
380
380
  export const GradientCard = () => (
381
381
  <Gradient
382
- from="#667eea"
383
- to="#764ba2"
382
+ from="color.indigo.400"
383
+ to="color.purple.700"
384
384
  width={350}
385
385
  borderRadius={16}
386
386
  boxShadow="0 10px 40px rgba(0,0,0,0.2)"
387
387
  >
388
388
  <Vertical gap={20} padding={30}>
389
- <Text color="#ffffff" fontSize={28} fontWeight="bold">
389
+ <Text color="white" fontSize={28} fontWeight="bold">
390
390
  Premium Plan
391
391
  </Text>
392
- <Text color="#ffffff" fontSize={48} fontWeight="bold">
392
+ <Text color="white" fontSize={48} fontWeight="bold">
393
393
  $99
394
394
  <Text as="span" fontSize={20}>/month</Text>
395
395
  </Text>
396
396
  <Vertical gap={10}>
397
- <Text color="#ffffff">✓ Unlimited projects</Text>
398
- <Text color="#ffffff">✓ Priority support</Text>
399
- <Text color="#ffffff">✓ Advanced analytics</Text>
397
+ <Text color="white">✓ Unlimited projects</Text>
398
+ <Text color="white">✓ Priority support</Text>
399
+ <Text color="white">✓ Advanced analytics</Text>
400
400
  </Vertical>
401
401
  <Button
402
- backgroundColor="#ffffff"
403
- color="#667eea"
402
+ backgroundColor="white"
403
+ color="color.indigo.400"
404
404
  isFullWidth
405
405
  >
406
406
  Get Started
@@ -434,7 +434,7 @@ export const AnimatedBackground = () => (
434
434
  >
435
435
  <Center width="100%" height="100%">
436
436
  <Text
437
- color="#ffffff"
437
+ color="white"
438
438
  fontSize={40}
439
439
  fontWeight="bold"
440
440
  textAlign="center"
@@ -93,11 +93,11 @@ import { Horizontal } from 'app-studio';
93
93
 
94
94
  export const ColoredLoaders = () => (
95
95
  <Horizontal gap={30}>
96
- <Loader loaderColor="#3b82f6" />
97
- <Loader loaderColor="#10b981" />
98
- <Loader loaderColor="#ef4444" />
99
- <Loader loaderColor="#f59e0b" />
100
- <Loader loaderColor="#8b5cf6" />
96
+ <Loader loaderColor="color.blue.500" />
97
+ <Loader loaderColor="color.emerald.500" />
98
+ <Loader loaderColor="color.red.500" />
99
+ <Loader loaderColor="color.amber.500" />
100
+ <Loader loaderColor="color.violet.500" />
101
101
  </Horizontal>
102
102
  );
103
103
  ```
@@ -170,8 +170,8 @@ import { Loader } from '@app-studio/web';
170
170
 
171
171
  export const ColoredTextLoader = () => (
172
172
  <Loader
173
- loaderColor="#3b82f6"
174
- textColor="#3b82f6"
173
+ loaderColor="color.blue.500"
174
+ textColor="color.blue.500"
175
175
  >
176
176
  Loading...
177
177
  </Loader>
@@ -277,7 +277,7 @@ export const ButtonLoader = () => {
277
277
  isDisabled={loading}
278
278
  >
279
279
  <Horizontal gap={10} alignItems="center">
280
- {loading && <Loader size={16} loaderColor="#ffffff" />}
280
+ {loading && <Loader size={16} loaderColor="white" />}
281
281
  {loading ? 'Submitting...' : 'Submit'}
282
282
  </Horizontal>
283
283
  </Button>
@@ -298,31 +298,31 @@ export const LoaderShowcase = () => (
298
298
  <Vertical gap={15}>
299
299
  <Text fontWeight="bold">Spinner Variants</Text>
300
300
  <Horizontal gap={20}>
301
- <Loader type="spinner" size="sm" loaderColor="#3b82f6" />
302
- <Loader type="spinner" size="md" loaderColor="#10b981" />
303
- <Loader type="spinner" size="lg" loaderColor="#ef4444" />
301
+ <Loader type="spinner" size="sm" loaderColor="color.blue.500" />
302
+ <Loader type="spinner" size="md" loaderColor="color.emerald.500" />
303
+ <Loader type="spinner" size="lg" loaderColor="color.red.500" />
304
304
  </Horizontal>
305
305
  </Vertical>
306
306
 
307
307
  <Vertical gap={15}>
308
308
  <Text fontWeight="bold">Dotted Variants</Text>
309
309
  <Horizontal gap={20}>
310
- <Loader type="dotted" size="sm" loaderColor="#3b82f6" />
311
- <Loader type="dotted" size="md" loaderColor="#10b981" />
312
- <Loader type="dotted" size="lg" loaderColor="#ef4444" />
310
+ <Loader type="dotted" size="sm" loaderColor="color.blue.500" />
311
+ <Loader type="dotted" size="md" loaderColor="color.emerald.500" />
312
+ <Loader type="dotted" size="lg" loaderColor="color.red.500" />
313
313
  </Horizontal>
314
314
  </Vertical>
315
315
 
316
316
  <Vertical gap={15}>
317
317
  <Text fontWeight="bold">With Text</Text>
318
318
  <Horizontal gap={30}>
319
- <Loader type="spinner" loaderColor="#3b82f6" textColor="#3b82f6">
319
+ <Loader type="spinner" loaderColor="color.blue.500" textColor="color.blue.500">
320
320
  Loading...
321
321
  </Loader>
322
322
  <Loader
323
323
  type="dotted"
324
- loaderColor="#10b981"
325
- textColor="#10b981"
324
+ loaderColor="color.emerald.500"
325
+ textColor="color.emerald.500"
326
326
  textPosition="right"
327
327
  >
328
328
  Processing
@@ -70,11 +70,11 @@ import { Vertical } from 'app-studio';
70
70
 
71
71
  export const ColoredProgressBars = () => (
72
72
  <Vertical gap={15}>
73
- <ProgressBar value={60} color="#3b82f6" />
74
- <ProgressBar value={60} color="#10b981" />
75
- <ProgressBar value={60} color="#ef4444" />
76
- <ProgressBar value={60} color="#f59e0b" />
77
- <ProgressBar value={60} color="#8b5cf6" />
73
+ <ProgressBar value={60} color="color.blue.500" />
74
+ <ProgressBar value={60} color="color.emerald.500" />
75
+ <ProgressBar value={60} color="color.red.500" />
76
+ <ProgressBar value={60} color="color.amber.500" />
77
+ <ProgressBar value={60} color="color.violet.500" />
78
78
  </Vertical>
79
79
  );
80
80
  ```
@@ -93,18 +93,18 @@ export const BackgroundColorProgressBars = () => (
93
93
  <Vertical gap={15}>
94
94
  <ProgressBar
95
95
  value={60}
96
- color="#3b82f6"
97
- backgroundColor="#dbeafe"
96
+ color="color.blue.500"
97
+ backgroundColor="color.blue.100"
98
98
  />
99
99
  <ProgressBar
100
100
  value={60}
101
- color="#10b981"
102
- backgroundColor="#d1fae5"
101
+ color="color.emerald.500"
102
+ backgroundColor="color.emerald.100"
103
103
  />
104
104
  <ProgressBar
105
105
  value={60}
106
- color="#ef4444"
107
- backgroundColor="#fee2e2"
106
+ color="color.red.500"
107
+ backgroundColor="color.red.100"
108
108
  />
109
109
  </Vertical>
110
110
  );
@@ -246,7 +246,7 @@ export const FileUploadProgress = () => {
246
246
  <Text fontSize={14}>Uploading... {progress}%</Text>
247
247
  <ProgressBar
248
248
  value={progress}
249
- color="#10b981"
249
+ color="color.emerald.500"
250
250
  height={8}
251
251
  />
252
252
  </Vertical>
@@ -275,7 +275,7 @@ export const MultiStepProgress = () => {
275
275
  <Text>Step {step} of {totalSteps}</Text>
276
276
  <ProgressBar
277
277
  value={progress}
278
- color="#3b82f6"
278
+ color="color.blue.500"
279
279
  height={10}
280
280
  />
281
281
  </Vertical>
@@ -430,7 +430,7 @@ export const CompleteProgressExample = () => {
430
430
  </Horizontal>
431
431
  <ProgressBar
432
432
  value={overallProgress}
433
- color="#3b82f6"
433
+ color="color.blue.500"
434
434
  height={12}
435
435
  radius={6}
436
436
  />
@@ -154,7 +154,7 @@ export const OrderStatus = () => (
154
154
  <Vertical gap={15}>
155
155
  <Text fontSize={18} fontWeight="bold">Order #12345</Text>
156
156
  <StatusIndicator status="success" label="Delivered" />
157
- <Text fontSize={14} color="#6b7280">
157
+ <Text fontSize={14} color="color.coolGray.500">
158
158
  Your order was delivered on March 15, 2024
159
159
  </Text>
160
160
  </Vertical>
@@ -242,12 +242,12 @@ export const PaymentStatus = () => (
242
242
  <Horizontal justifyContent="space-between" alignItems="center">
243
243
  <Vertical gap={5}>
244
244
  <Text fontSize={16} fontWeight="bold">Payment to Acme Corp</Text>
245
- <Text fontSize={14} color="#6b7280">$1,234.56</Text>
245
+ <Text fontSize={14} color="color.coolGray.500">$1,234.56</Text>
246
246
  </Vertical>
247
247
  <StatusIndicator status="success" label="Paid" />
248
248
  </Horizontal>
249
249
 
250
- <Text fontSize={14} color="#6b7280">
250
+ <Text fontSize={14} color="color.coolGray.500">
251
251
  Transaction ID: TXN-2024-03-15-001
252
252
  </Text>
253
253
  </Vertical>
@@ -283,7 +283,7 @@ export const ServerStatusDashboard = () => {
283
283
  <Horizontal justifyContent="space-between" alignItems="center">
284
284
  <Vertical gap={5}>
285
285
  <Text fontWeight="bold">{server.name}</Text>
286
- <Text fontSize={14} color="#6b7280">
286
+ <Text fontSize={14} color="color.coolGray.500">
287
287
  Uptime: {server.uptime}
288
288
  </Text>
289
289
  </Vertical>
@@ -342,7 +342,7 @@ export const NotificationStatus = () => {
342
342
  <StatusIndicator status={notification.status} />
343
343
  <Vertical gap={2}>
344
344
  <Text>{notification.message}</Text>
345
- <Text fontSize={12} color="#6b7280">{notification.time}</Text>
345
+ <Text fontSize={12} color="color.coolGray.500">{notification.time}</Text>
346
346
  </Vertical>
347
347
  </Horizontal>
348
348
  ))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-studio/web",
3
- "version": "0.9.44",
3
+ "version": "0.9.45",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/components/index.d.ts",
6
6
  "files": [
package/dist/bot/Bot.d.ts DELETED
@@ -1,15 +0,0 @@
1
- import { AiService } from './ai/ai.service';
2
- import { ProviderType } from './ai/ai.config';
3
- import { FileHandler } from './FileHandler';
4
- export declare class Bot {
5
- readonly aiService: AiService;
6
- readonly fileHandler: FileHandler;
7
- private readonly cache;
8
- private readonly cacheKey;
9
- constructor(cacheKey: string);
10
- generatePropsData(componentFolder: string, componentName: string, model?: string, provider?: ProviderType): Promise<any>;
11
- isValidPropsStructure(data: any): boolean;
12
- isObject(value: any): boolean;
13
- generateMarkdown(componentFolder: string, componentName: string, propsData: any, // Accept generated props data
14
- outputFilePath: string): Promise<void>;
15
- }
@@ -1,13 +0,0 @@
1
- export declare class Cache {
2
- private readonly cacheDirectory;
3
- constructor(cacheDirectory?: string);
4
- generateCacheKey(prompt: string): string;
5
- getFromCache(cacheKey: string): any | null;
6
- getJsonFromCache(cacheKey: string): any;
7
- saveJsonToCache(cacheKey: string, content: any): void;
8
- saveToCache(cacheKey: string, content: string): void;
9
- saveEachJsonToCache(cacheKey: string, content: any, fileNameKey: string): void;
10
- cacheExist(cacheKey: string): boolean;
11
- cacheFolderExist(cacheKey: string): boolean;
12
- createFile(cacheKey: string, fileContent?: string, fileName?: string): Promise<string>;
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- API_CONFIG : Un objet contenant les paramètres de configuration pour l'API OpenAI, tels que la clé API et l'organisation. Ces valeurs peuvent être définies directement ou récupérées à partir de variables d'environnement.
3
- APPLICATION_SETTINGS : Un objet pour les paramètres généraux de l'application. Vous pouvez inclure ici des configurations telles que le mode de débogage, les paramètres de journalisation, etc.
4
- */
5
- export declare const API_CONFIG: {
6
- openaiApiKey: string;
7
- openaiOrganization: string;
8
- defaultModel: string;
9
- };
10
- export declare const APPLICATION_SETTINGS: {
11
- debugMode: boolean;
12
- cacheDirectory: string;
13
- };
@@ -1,9 +0,0 @@
1
- export declare class ContentFetcher {
2
- private readonly cache;
3
- private readonly cacheKey;
4
- constructor(cacheKey: string);
5
- private static isLinkValid;
6
- private fetchAndProcessContent;
7
- processAllLinks(links: string[]): Promise<void>;
8
- private urlToMarkdown;
9
- }
@@ -1,19 +0,0 @@
1
- export declare class DocuCode {
2
- private readonly fileHandler;
3
- private readonly cache;
4
- private readonly cacheKey;
5
- private readonly aiService;
6
- private selectedModel;
7
- private selectedProvider;
8
- constructor(cacheKey: string, model?: string, provider?: string);
9
- commentCodeFile(filePath: string): Promise<void>;
10
- processComments(filePath: string, code: string, commentsJson: any): Promise<void>;
11
- removeCommentsAndCleanFile(filePath: string): Promise<void>;
12
- processDirectory(dirPath: string): Promise<any>;
13
- splitArrayToJSON(code: string): {
14
- line: number;
15
- code: string;
16
- }[];
17
- insertComments(code: string, comments: any[]): string;
18
- compareStrings(line: string, codeSnippet: string): boolean;
19
- }