@speakeasy-api/moonshine 1.14.1 → 1.15.0-alpha.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.
Files changed (45) hide show
  1. package/README.md +160 -4
  2. package/dist/components/Command/index.d.ts +1 -1
  3. package/dist/components/Icon/names.d.ts +1 -1
  4. package/dist/components/ThemeSwitcher/index.d.ts +5 -0
  5. package/dist/context/ConfigContext.d.ts +6 -6
  6. package/dist/context/theme.d.ts +1 -0
  7. package/dist/{createCustomLucideIcon-DKS8eoHe.mjs → createCustomLucideIcon-BMkvafcT.mjs} +3 -3
  8. package/dist/{createCustomLucideIcon-DKS8eoHe.mjs.map → createCustomLucideIcon-BMkvafcT.mjs.map} +1 -1
  9. package/dist/{gems-Ddw6EFUx.mjs → gems-BNqSEdVE.mjs} +2 -2
  10. package/dist/{gems-Ddw6EFUx.mjs.map → gems-BNqSEdVE.mjs.map} +1 -1
  11. package/dist/{go-Cw9UjnAy.mjs → go-B4Xwk9oB.mjs} +2 -2
  12. package/dist/{go-Cw9UjnAy.mjs.map → go-B4Xwk9oB.mjs.map} +1 -1
  13. package/dist/hooks/useIsMounted.d.ts +1 -0
  14. package/dist/hooks/useTheme.d.ts +2 -2
  15. package/dist/{index-CmscIs7_.mjs → index-CO54DPUh.mjs} +9308 -9276
  16. package/dist/index-CO54DPUh.mjs.map +1 -0
  17. package/dist/index.d.ts +3 -9
  18. package/dist/{lucide-icons-BcEn3U68.mjs → lucide-icons-BDw0imyx.mjs} +1537 -1535
  19. package/dist/{lucide-icons-BcEn3U68.mjs.map → lucide-icons-BDw0imyx.mjs.map} +1 -1
  20. package/dist/{maven-DP5-ZBpy.mjs → maven-TfTSKSne.mjs} +2 -2
  21. package/dist/{maven-DP5-ZBpy.mjs.map → maven-TfTSKSne.mjs.map} +1 -1
  22. package/dist/moonshine.es.js +91 -90
  23. package/dist/{npm-CY-6xVA2.mjs → npm-fLT4u-jC.mjs} +2 -2
  24. package/dist/{npm-CY-6xVA2.mjs.map → npm-fLT4u-jC.mjs.map} +1 -1
  25. package/dist/{nuget-UZX2BADf.mjs → nuget-Cqv6IGD6.mjs} +2 -2
  26. package/dist/{nuget-UZX2BADf.mjs.map → nuget-Cqv6IGD6.mjs.map} +1 -1
  27. package/dist/{packagist-BJR88RwL.mjs → packagist-DQVpl9ZR.mjs} +2 -2
  28. package/dist/{packagist-BJR88RwL.mjs.map → packagist-DQVpl9ZR.mjs.map} +1 -1
  29. package/dist/{pypi-DfN4v_v7.mjs → pypi-D_vfoHGi.mjs} +2 -2
  30. package/dist/{pypi-DfN4v_v7.mjs.map → pypi-D_vfoHGi.mjs.map} +1 -1
  31. package/dist/speakeasy-logo-024q-rQ2.mjs +5 -0
  32. package/dist/speakeasy-logo-024q-rQ2.mjs.map +1 -0
  33. package/dist/style.css +1 -1
  34. package/package.json +13 -3
  35. package/src/base.css +940 -0
  36. package/src/global.css +67 -0
  37. package/src/utilities.css +1114 -0
  38. package/types/utilities.d.ts +429 -0
  39. package/dist/components/Breadcrumb/index.d.ts +0 -16
  40. package/dist/components/__beta__/OperationGrouper/index.d.ts +0 -18
  41. package/dist/components/__beta__/SelectionBox/index.d.ts +0 -9
  42. package/dist/components/__beta__/Timeline/index.d.ts +0 -21
  43. package/dist/index-CmscIs7_.mjs.map +0 -1
  44. package/dist/speakeasy-logo-ByBTXLWb.mjs +0 -5
  45. package/dist/speakeasy-logo-ByBTXLWb.mjs.map +0 -1
@@ -0,0 +1,429 @@
1
+ /**
2
+ * Auto-generated TypeScript definitions for Moonshine utilities
3
+ * Generated on: 2025-08-01T14:51:18.739Z
4
+ *
5
+ * DO NOT EDIT THIS FILE DIRECTLY
6
+ * Run 'pnpm generate:docs' to update
7
+ */
8
+
9
+ /**
10
+ * Custom utility classes defined in utilities.css
11
+ */
12
+ export type MoonshineUtilities =
13
+ | 'typography-heading-xl'
14
+ | 'typography-heading-lg'
15
+ | 'typography-heading-md'
16
+ | 'typography-heading-sm'
17
+ | 'typography-heading-xs'
18
+ | 'typography-heading-xxs'
19
+ | 'typography-body-lg'
20
+ | 'typography-body-md'
21
+ | 'typography-body-sm'
22
+ | 'typography-body-xs'
23
+ | 'container'
24
+ | 'bg-mask'
25
+ | 'text-display-2xl'
26
+ | 'text-display-xl'
27
+ | 'text-display-lg'
28
+ | 'text-display-md'
29
+ | 'text-display-sm'
30
+ | 'text-display-xs'
31
+ | 'text-heading-xl'
32
+ | 'text-heading-lg'
33
+ | 'text-heading-md'
34
+ | 'text-heading-sm'
35
+ | 'text-heading-xs'
36
+ | 'text-body-lg'
37
+ | 'text-body-md'
38
+ | 'text-body-sm'
39
+ | 'text-body-xs'
40
+ | 'text-codeline-md'
41
+ | 'text-codeline-sm'
42
+ | 'text-codeline-xs'
43
+ | 'text-button-md'
44
+ | 'text-button-sm'
45
+ | 'text-button-xs'
46
+ | 'text-highlight'
47
+ | 'text-default'
48
+ | 'text-muted'
49
+ | 'text-placeholder'
50
+ | 'text-disabled'
51
+ | 'text-highlight-fixed-dark'
52
+ | 'text-default-fixed-dark'
53
+ | 'text-muted-fixed-dark'
54
+ | 'text-highlight-fixed-light'
55
+ | 'text-default-fixed-light'
56
+ | 'text-muted-fixed-light'
57
+ | 'text-highlight-inverse'
58
+ | 'text-default-inverse'
59
+ | 'text-muted-inverse'
60
+ | 'text-link-primary'
61
+ | 'text-link-secondary'
62
+ | 'text-link-visited'
63
+ | 'text-default-destructive'
64
+ | 'text-link-destructive'
65
+ | 'text-default-information'
66
+ | 'text-link-information'
67
+ | 'text-default-success'
68
+ | 'text-link-success'
69
+ | 'text-default-warning'
70
+ | 'text-link-warning'
71
+ | 'bg-gradient-primary'
72
+ | 'border-gradient-primary'
73
+ | 'bg-surface-primary'
74
+ | 'bg-surface-secondary'
75
+ | 'bg-warning'
76
+ | 'text-warning'
77
+ | 'border-warning'
78
+ | 'underline-link-primary'
79
+ | 'underline-link-secondary'
80
+ | 'underline-link-visited'
81
+ | 'border-neutral-active'
82
+ | 'border-neutral-hover'
83
+ | 'border-neutral-default'
84
+ | 'border-neutral-disabled'
85
+ | 'border-neutral-softest'
86
+ | 'border-neutral-inset'
87
+ | 'border-neutral-alpha'
88
+ | 'border-destructive-highlight'
89
+ | 'border-destructive-default'
90
+ | 'border-destructive-muted'
91
+ | 'border-destructive-softest'
92
+ | 'border-information-highlight'
93
+ | 'border-information-default'
94
+ | 'border-information-muted'
95
+ | 'border-information-softest'
96
+ | 'border-success-highlight'
97
+ | 'border-success-default'
98
+ | 'border-success-muted'
99
+ | 'border-success-softest'
100
+ | 'border-warning-highlight'
101
+ | 'border-warning-default'
102
+ | 'border-warning-muted'
103
+ | 'border-warning-softest'
104
+ | 'border-focus'
105
+ | 'fill-neutral-highlight'
106
+ | 'fill-neutral-active'
107
+ | 'fill-neutral-default'
108
+ | 'fill-neutral-muted'
109
+ | 'fill-neutral-highlight-fixed-dark'
110
+ | 'fill-neutral-default-fixed-dark'
111
+ | 'fill-neutral-muted-fixed-dark'
112
+ | 'fill-neutral-highlight-fixed-light'
113
+ | 'fill-neutral-default-fixed-light'
114
+ | 'fill-neutral-muted-fixed-light'
115
+ | 'fill-neutral-highlight-inverse'
116
+ | 'fill-neutral-default-inverse'
117
+ | 'fill-neutral-muted-inverse'
118
+ | 'fill-link-primary'
119
+ | 'fill-link-secondary'
120
+ | 'fill-link-visited'
121
+ | 'fill-destructive-highlight'
122
+ | 'fill-destructive-default'
123
+ | 'fill-destructive-muted'
124
+ | 'fill-information-highlight'
125
+ | 'fill-information-default'
126
+ | 'fill-information-muted'
127
+ | 'fill-success-highlight'
128
+ | 'fill-success-default'
129
+ | 'fill-success-muted'
130
+ | 'fill-warning-highlight'
131
+ | 'fill-warning-default'
132
+ | 'fill-warning-muted'
133
+ | 'stroke-neutral-highlight'
134
+ | 'stroke-neutral-active'
135
+ | 'stroke-neutral-default'
136
+ | 'stroke-neutral-muted'
137
+ | 'stroke-neutral-highlight-fixed-dark'
138
+ | 'stroke-neutral-default-fixed-dark'
139
+ | 'stroke-neutral-muted-fixed-dark'
140
+ | 'stroke-neutral-highlight-fixed-light'
141
+ | 'stroke-neutral-default-fixed-light'
142
+ | 'stroke-neutral-muted-fixed-light'
143
+ | 'stroke-neutral-highlight-inverse'
144
+ | 'stroke-neutral-default-inverse'
145
+ | 'stroke-neutral-muted-inverse'
146
+ | 'stroke-link-primary'
147
+ | 'stroke-link-secondary'
148
+ | 'stroke-link-visited'
149
+ | 'stroke-destructive-highlight'
150
+ | 'stroke-destructive-default'
151
+ | 'stroke-destructive-muted'
152
+ | 'stroke-information-highlight'
153
+ | 'stroke-information-default'
154
+ | 'stroke-information-muted'
155
+ | 'stroke-success-highlight'
156
+ | 'stroke-success-default'
157
+ | 'stroke-success-muted'
158
+ | 'stroke-warning-highlight'
159
+ | 'stroke-warning-default'
160
+ | 'stroke-warning-muted'
161
+ | 'bg-surface-primary-default'
162
+ | 'bg-surface-primary-inverse'
163
+ | 'bg-surface-secondary-default'
164
+ | 'bg-surface-secondary-inverse'
165
+ | 'bg-surface-tertiary-default'
166
+ | 'bg-surface-tertiary-inverse'
167
+ | 'bg-highlight'
168
+ | 'bg-active'
169
+ | 'bg-default'
170
+ | 'bg-muted'
171
+ | 'bg-inset'
172
+ | 'bg-surface-primary-fixed-light'
173
+ | 'bg-surface-secondary-fixed-light'
174
+ | 'bg-surface-tertiary-fixed-light'
175
+ | 'bg-surface-primary-fixed-dark'
176
+ | 'bg-surface-secondary-fixed-dark'
177
+ | 'bg-surface-tertiary-fixed-dark'
178
+ | 'bg-destructive-highlight'
179
+ | 'bg-destructive-default'
180
+ | 'bg-destructive-muted'
181
+ | 'bg-destructive-softest'
182
+ | 'bg-information-highlight'
183
+ | 'bg-information-default'
184
+ | 'bg-information-muted'
185
+ | 'bg-information-softest'
186
+ | 'bg-success-highlight'
187
+ | 'bg-success-default'
188
+ | 'bg-success-muted'
189
+ | 'bg-success-softest'
190
+ | 'bg-warning-highlight'
191
+ | 'bg-warning-default'
192
+ | 'bg-warning-muted'
193
+ | 'bg-warning-softest';
194
+
195
+ /**
196
+ * Semantic color utilities available from theme
197
+ * These are auto-generated from theme colors with standard prefixes
198
+ */
199
+ export type MoonshineColorUtilities =
200
+ | 'bg-link'
201
+ | 'text-link'
202
+ | 'border-link'
203
+ | 'ring-link'
204
+ | 'divide-link'
205
+ | 'bg-background'
206
+ | 'text-background'
207
+ | 'border-background'
208
+ | 'ring-background'
209
+ | 'divide-background'
210
+ | 'bg-background-pure'
211
+ | 'text-background-pure'
212
+ | 'border-background-pure'
213
+ | 'ring-background-pure'
214
+ | 'divide-background-pure'
215
+ | 'bg-foreground'
216
+ | 'text-foreground'
217
+ | 'border-foreground'
218
+ | 'ring-foreground'
219
+ | 'divide-foreground'
220
+ | 'bg-card'
221
+ | 'text-card'
222
+ | 'border-card'
223
+ | 'ring-card'
224
+ | 'divide-card'
225
+ | 'bg-card-foreground'
226
+ | 'text-card-foreground'
227
+ | 'border-card-foreground'
228
+ | 'ring-card-foreground'
229
+ | 'divide-card-foreground'
230
+ | 'bg-popover'
231
+ | 'text-popover'
232
+ | 'border-popover'
233
+ | 'ring-popover'
234
+ | 'divide-popover'
235
+ | 'bg-popover-foreground'
236
+ | 'text-popover-foreground'
237
+ | 'border-popover-foreground'
238
+ | 'ring-popover-foreground'
239
+ | 'divide-popover-foreground'
240
+ | 'bg-primary'
241
+ | 'text-primary'
242
+ | 'border-primary'
243
+ | 'ring-primary'
244
+ | 'divide-primary'
245
+ | 'bg-primary-foreground'
246
+ | 'text-primary-foreground'
247
+ | 'border-primary-foreground'
248
+ | 'ring-primary-foreground'
249
+ | 'divide-primary-foreground'
250
+ | 'bg-secondary'
251
+ | 'text-secondary'
252
+ | 'border-secondary'
253
+ | 'ring-secondary'
254
+ | 'divide-secondary'
255
+ | 'bg-secondary-foreground'
256
+ | 'text-secondary-foreground'
257
+ | 'border-secondary-foreground'
258
+ | 'ring-secondary-foreground'
259
+ | 'divide-secondary-foreground'
260
+ | 'bg-muted'
261
+ | 'text-muted'
262
+ | 'border-muted'
263
+ | 'ring-muted'
264
+ | 'divide-muted'
265
+ | 'bg-muted-foreground'
266
+ | 'text-muted-foreground'
267
+ | 'border-muted-foreground'
268
+ | 'ring-muted-foreground'
269
+ | 'divide-muted-foreground'
270
+ | 'bg-accent'
271
+ | 'text-accent'
272
+ | 'border-accent'
273
+ | 'ring-accent'
274
+ | 'divide-accent'
275
+ | 'bg-accent-foreground'
276
+ | 'text-accent-foreground'
277
+ | 'border-accent-foreground'
278
+ | 'ring-accent-foreground'
279
+ | 'divide-accent-foreground'
280
+ | 'bg-destructive'
281
+ | 'text-destructive'
282
+ | 'border-destructive'
283
+ | 'ring-destructive'
284
+ | 'divide-destructive'
285
+ | 'bg-border'
286
+ | 'text-border'
287
+ | 'border-border'
288
+ | 'ring-border'
289
+ | 'divide-border'
290
+ | 'bg-input'
291
+ | 'text-input'
292
+ | 'border-input'
293
+ | 'ring-input'
294
+ | 'divide-input'
295
+ | 'bg-ring'
296
+ | 'text-ring'
297
+ | 'border-ring'
298
+ | 'ring-ring'
299
+ | 'divide-ring'
300
+ | 'bg-chart-1'
301
+ | 'text-chart-1'
302
+ | 'border-chart-1'
303
+ | 'ring-chart-1'
304
+ | 'divide-chart-1'
305
+ | 'bg-chart-2'
306
+ | 'text-chart-2'
307
+ | 'border-chart-2'
308
+ | 'ring-chart-2'
309
+ | 'divide-chart-2'
310
+ | 'bg-chart-3'
311
+ | 'text-chart-3'
312
+ | 'border-chart-3'
313
+ | 'ring-chart-3'
314
+ | 'divide-chart-3'
315
+ | 'bg-chart-4'
316
+ | 'text-chart-4'
317
+ | 'border-chart-4'
318
+ | 'ring-chart-4'
319
+ | 'divide-chart-4'
320
+ | 'bg-chart-5'
321
+ | 'text-chart-5'
322
+ | 'border-chart-5'
323
+ | 'ring-chart-5'
324
+ | 'divide-chart-5'
325
+ | 'bg-sidebar'
326
+ | 'text-sidebar'
327
+ | 'border-sidebar'
328
+ | 'ring-sidebar'
329
+ | 'divide-sidebar'
330
+ | 'bg-sidebar-foreground'
331
+ | 'text-sidebar-foreground'
332
+ | 'border-sidebar-foreground'
333
+ | 'ring-sidebar-foreground'
334
+ | 'divide-sidebar-foreground'
335
+ | 'bg-sidebar-primary'
336
+ | 'text-sidebar-primary'
337
+ | 'border-sidebar-primary'
338
+ | 'ring-sidebar-primary'
339
+ | 'divide-sidebar-primary'
340
+ | 'bg-sidebar-primary-foreground'
341
+ | 'text-sidebar-primary-foreground'
342
+ | 'border-sidebar-primary-foreground'
343
+ | 'ring-sidebar-primary-foreground'
344
+ | 'divide-sidebar-primary-foreground'
345
+ | 'bg-sidebar-accent'
346
+ | 'text-sidebar-accent'
347
+ | 'border-sidebar-accent'
348
+ | 'ring-sidebar-accent'
349
+ | 'divide-sidebar-accent'
350
+ | 'bg-sidebar-accent-foreground'
351
+ | 'text-sidebar-accent-foreground'
352
+ | 'border-sidebar-accent-foreground'
353
+ | 'ring-sidebar-accent-foreground'
354
+ | 'divide-sidebar-accent-foreground'
355
+ | 'bg-sidebar-border'
356
+ | 'text-sidebar-border'
357
+ | 'border-sidebar-border'
358
+ | 'ring-sidebar-border'
359
+ | 'divide-sidebar-border'
360
+ | 'bg-sidebar-ring'
361
+ | 'text-sidebar-ring'
362
+ | 'border-sidebar-ring'
363
+ | 'ring-sidebar-ring'
364
+ | 'divide-sidebar-ring'
365
+ | 'bg-success'
366
+ | 'text-success'
367
+ | 'border-success'
368
+ | 'ring-success'
369
+ | 'divide-success'
370
+ | 'bg-success-foreground'
371
+ | 'text-success-foreground'
372
+ | 'border-success-foreground'
373
+ | 'ring-success-foreground'
374
+ | 'divide-success-foreground'
375
+ | 'bg-info'
376
+ | 'text-info'
377
+ | 'border-info'
378
+ | 'ring-info'
379
+ | 'divide-info'
380
+ | 'bg-info-foreground'
381
+ | 'text-info-foreground'
382
+ | 'border-info-foreground'
383
+ | 'ring-info-foreground'
384
+ | 'divide-info-foreground'
385
+ | 'bg-warning'
386
+ | 'text-warning'
387
+ | 'border-warning'
388
+ | 'ring-warning'
389
+ | 'divide-warning'
390
+ | 'bg-warning-foreground'
391
+ | 'text-warning-foreground'
392
+ | 'border-warning-foreground'
393
+ | 'ring-warning-foreground'
394
+ | 'divide-warning-foreground'
395
+ | 'bg-destructive-foreground'
396
+ | 'text-destructive-foreground'
397
+ | 'border-destructive-foreground'
398
+ | 'ring-destructive-foreground'
399
+ | 'divide-destructive-foreground'
400
+ | 'bg-feature'
401
+ | 'text-feature'
402
+ | 'border-feature'
403
+ | 'ring-feature'
404
+ | 'divide-feature'
405
+ | 'bg-feature-foreground'
406
+ | 'text-feature-foreground'
407
+ | 'border-feature-foreground'
408
+ | 'ring-feature-foreground'
409
+ | 'divide-feature-foreground'
410
+ | 'bg-body'
411
+ | 'text-body'
412
+ | 'border-body'
413
+ | 'ring-body'
414
+ | 'divide-body'
415
+ | 'bg-body-muted'
416
+ | 'text-body-muted'
417
+ | 'border-body-muted'
418
+ | 'ring-body-muted'
419
+ | 'divide-body-muted';
420
+
421
+ /**
422
+ * All available Moonshine utility classes
423
+ */
424
+ export type MoonshineClasses = MoonshineUtilities | MoonshineColorUtilities;
425
+
426
+ /**
427
+ * Helper type for className props
428
+ */
429
+ export type MoonshineClassName = MoonshineClasses | MoonshineClasses[] | undefined | null | false;
@@ -1,16 +0,0 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- export interface BreadcrumbProps {
3
- children: ReactElement<typeof BreadcrumbItem>[];
4
- separator?: ReactNode;
5
- className?: string;
6
- }
7
- declare const Breadcrumb: {
8
- ({ children, separator, className, }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
9
- Item: ({ children, className }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
10
- };
11
- interface BreadcrumbItemProps {
12
- children: ReactNode;
13
- className?: string;
14
- }
15
- declare const BreadcrumbItem: ({ children, className }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
16
- export { Breadcrumb };
@@ -1,18 +0,0 @@
1
- import { UniqueIdentifier } from '@dnd-kit/core';
2
- export interface Group {
3
- id: UniqueIdentifier;
4
- name: string;
5
- operations: Operation[];
6
- path: string;
7
- color: string;
8
- }
9
- export interface Operation {
10
- id: UniqueIdentifier;
11
- name: string;
12
- path: string;
13
- }
14
- export interface OperationGrouperProps {
15
- groups: Group[];
16
- onItemMove: (operation: Operation, oldGroup: Group, newGroup: Group) => void;
17
- }
18
- export declare function OperationGrouper({ groups, onItemMove, }: OperationGrouperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface SelectionBoxProps<T extends HTMLElement> {
3
- targetRef: React.RefObject<T> | undefined;
4
- display: 'block' | 'inline';
5
- ancestorContainerRef?: React.RefObject<HTMLElement>;
6
- className?: string;
7
- }
8
- export declare const SelectionBox: <T extends HTMLElement>({ targetRef, display, ancestorContainerRef, className, }: SelectionBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,21 +0,0 @@
1
- import { IconName } from '../../Icon/names';
2
- import { PropsWithChildren } from 'react';
3
- interface ItemProps extends React.HTMLAttributes<HTMLDivElement> {
4
- title: string;
5
- description: string;
6
- iconName: IconName;
7
- className?: string;
8
- style?: React.CSSProperties;
9
- anchorElement: HTMLElement;
10
- }
11
- interface RootProps extends PropsWithChildren {
12
- className?: string;
13
- }
14
- export type { RootProps, ItemProps };
15
- export declare const Timeline: import('react').FC<RootProps> & {
16
- Item: import('react').FC<ItemProps>;
17
- Content: {
18
- ({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
19
- displayName: string;
20
- };
21
- };