entasis 0.4.1 → 0.6.0

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 (180) hide show
  1. package/README.md +1 -0
  2. package/dist/attachments/spinnerOverlay.theme.d.ts +2 -36
  3. package/dist/components/AIAskUserQuestion/aiAskUserQuestion.theme.d.ts +2 -30
  4. package/dist/components/AIChat/aiChat.theme.d.ts +2 -14
  5. package/dist/components/AIComposer/aiComposer.theme.d.ts +2 -50
  6. package/dist/components/AIContext/aiContext.theme.d.ts +2 -37
  7. package/dist/components/AIConversation/aiConversation.theme.d.ts +2 -4
  8. package/dist/components/AIFilePreview/aiFilePreview.theme.d.ts +2 -17
  9. package/dist/components/AIMarker/aiMarker.theme.d.ts +2 -18
  10. package/dist/components/AIMessage/aiMessage.theme.d.ts +2 -72
  11. package/dist/components/AIMessageActions/aiMessageActions.theme.d.ts +2 -29
  12. package/dist/components/AIModelSelector/aiModelSelector.theme.d.ts +2 -25
  13. package/dist/components/AIReasoning/aiReasoning.theme.d.ts +2 -9
  14. package/dist/components/AISuggestion/aiSuggestion.theme.d.ts +2 -6
  15. package/dist/components/AIThread/aiThread.theme.d.ts +2 -35
  16. package/dist/components/AIThreadToc/aiThreadToc.theme.d.ts +2 -44
  17. package/dist/components/AITool/aiTool.mcp.d.ts +1 -1
  18. package/dist/components/AITool/aiTool.mcp.js +1 -1
  19. package/dist/components/AITool/aiTool.theme.d.ts +2 -170
  20. package/dist/components/AITool/aiTool.theme.js +14 -12
  21. package/dist/components/Accordion/accordion.theme.d.ts +2 -135
  22. package/dist/components/Alert/alert.theme.d.ts +2 -88
  23. package/dist/components/AppShell/appShell.theme.d.ts +2 -34
  24. package/dist/components/AspectRatio/aspectRatio.theme.d.ts +2 -5
  25. package/dist/components/AudioPlayer/audioPlayer.theme.d.ts +2 -179
  26. package/dist/components/Avatar/avatar.theme.d.ts +2 -38
  27. package/dist/components/Avatar/avatarGroup.theme.d.ts +2 -17
  28. package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +2 -33
  29. package/dist/components/Button/Button.svelte +15 -13
  30. package/dist/components/Button/button.theme.d.ts +2 -55
  31. package/dist/components/ButtonGroup/buttonGroup.theme.d.ts +2 -4
  32. package/dist/components/Card/card.theme.d.ts +2 -119
  33. package/dist/components/Carousel/carousel.theme.d.ts +2 -73
  34. package/dist/components/Chart/chart.theme.d.ts +2 -24
  35. package/dist/components/Chip/chip.theme.d.ts +2 -56
  36. package/dist/components/Code/code.theme.d.ts +2 -9
  37. package/dist/components/Collapsible/collapsible.theme.d.ts +2 -44
  38. package/dist/components/Command/command.theme.d.ts +2 -103
  39. package/dist/components/Confirmation/confirmation.theme.d.ts +2 -10
  40. package/dist/components/ContextMenu/contextMenu.theme.d.ts +2 -10
  41. package/dist/components/DataTable/dataTable.theme.d.ts +2 -160
  42. package/dist/components/Dialog/Dialog.svelte +16 -0
  43. package/dist/components/Dialog/dialog.mcp.d.ts +1 -1
  44. package/dist/components/Dialog/dialog.mcp.js +2 -1
  45. package/dist/components/Dialog/dialog.props.d.ts +5 -0
  46. package/dist/components/Dialog/dialog.theme.d.ts +2 -137
  47. package/dist/components/Dialog/dialog.theme.js +12 -8
  48. package/dist/components/Diff/diff.theme.d.ts +2 -6
  49. package/dist/components/DocumentViewer/documentViewer.theme.d.ts +2 -87
  50. package/dist/components/Empty/empty.theme.d.ts +2 -71
  51. package/dist/components/EventCalendar/eventCalendar.theme.d.ts +2 -3171
  52. package/dist/components/FloatingWindow/floatingWindow.theme.d.ts +2 -96
  53. package/dist/components/Form/Calendar/CalendarPrimitive.svelte.d.ts +2 -63
  54. package/dist/components/Form/Calendar/calendar.theme.d.ts +2 -63
  55. package/dist/components/Form/CheckboxesInput/checkboxesInput.theme.d.ts +2 -100
  56. package/dist/components/Form/ColorInput/colorInput.theme.d.ts +2 -32
  57. package/dist/components/Form/ColorPicker/colorPicker.theme.d.ts +2 -127
  58. package/dist/components/Form/Combobox/combobox.theme.d.ts +2 -50
  59. package/dist/components/Form/DateInput/dateInput.theme.d.ts +2 -26
  60. package/dist/components/Form/DateSelector/dateSelector.theme.d.ts +2 -17
  61. package/dist/components/Form/Field/field.theme.d.ts +2 -146
  62. package/dist/components/Form/File/fileInput.theme.d.ts +2 -41
  63. package/dist/components/Form/Form/form.state.svelte.d.ts +4 -4
  64. package/dist/components/Form/Form/form.theme.d.ts +2 -129
  65. package/dist/components/Form/Form/visibility.d.ts +54 -54
  66. package/dist/components/Form/KeyValueInput/keyValueInput.theme.d.ts +2 -50
  67. package/dist/components/Form/MultiStepForm/multiStepForm.state.svelte.d.ts +4 -4
  68. package/dist/components/Form/MultiStepForm/multiStepForm.theme.d.ts +2 -25
  69. package/dist/components/Form/NumberInput/numberInput.theme.d.ts +2 -25
  70. package/dist/components/Form/PasswordInput/passwordInput.theme.d.ts +2 -25
  71. package/dist/components/Form/PhoneInput/phoneInput.theme.d.ts +2 -112
  72. package/dist/components/Form/PinInput/pinInput.theme.d.ts +2 -38
  73. package/dist/components/Form/RadioInput/radioInput.theme.d.ts +2 -94
  74. package/dist/components/Form/Select/select.theme.d.ts +2 -71
  75. package/dist/components/Form/Slider/slider.theme.d.ts +2 -266
  76. package/dist/components/Form/Switch/switch.theme.d.ts +2 -40
  77. package/dist/components/Form/TagGroup/tagGroup.theme.d.ts +2 -19
  78. package/dist/components/Form/TagsInput/tagsInput.theme.d.ts +2 -53
  79. package/dist/components/Form/TextArea/textArea.theme.d.ts +2 -25
  80. package/dist/components/Form/TextInput/textInput.theme.d.ts +2 -25
  81. package/dist/components/Form/TimeInput/timeInput.theme.d.ts +2 -47
  82. package/dist/components/Form/VoiceInput/voiceInput.theme.d.ts +2 -155
  83. package/dist/components/GanttChart/ganttChart.theme.d.ts +2 -2478
  84. package/dist/components/Globe/globe.theme.d.ts +2 -13
  85. package/dist/components/Grid/grid.theme.d.ts +2 -18
  86. package/dist/components/Grid/gridSpan.theme.d.ts +2 -4
  87. package/dist/components/Heading/heading.theme.d.ts +2 -41
  88. package/dist/components/Hitbox/hitbox.theme.d.ts +2 -10
  89. package/dist/components/HoverCard/hoverCard.theme.d.ts +11 -27
  90. package/dist/components/HoverCard/hoverCard.theme.js +9 -4
  91. package/dist/components/ImageGallery/imageGallery.theme.d.ts +2 -6
  92. package/dist/components/ImageZoom/imageZoom.theme.d.ts +2 -16
  93. package/dist/components/Kanban/kanban.theme.d.ts +2 -60
  94. package/dist/components/Kbd/kbd.theme.d.ts +2 -33
  95. package/dist/components/Layout/layoutSpacing.d.ts +1 -1
  96. package/dist/components/LinkPreview/linkPreview.theme.d.ts +2 -58
  97. package/dist/components/Map/map.theme.d.ts +2 -14
  98. package/dist/components/Markdown/markdown.theme.d.ts +2 -10
  99. package/dist/components/Marquee/marquee.theme.d.ts +2 -37
  100. package/dist/components/MediaVolume/mediaVolumeControl.theme.d.ts +2 -22
  101. package/dist/components/Menu/menu.theme.d.ts +2 -12
  102. package/dist/components/MenuBar/menuBar.theme.d.ts +2 -16
  103. package/dist/components/MenuOption/menuOption.theme.d.ts +2 -75
  104. package/dist/components/Mermaid/mermaid.theme.d.ts +2 -15
  105. package/dist/components/MetadataList/metadataList.theme.d.ts +2 -97
  106. package/dist/components/Meter/meter.theme.d.ts +2 -111
  107. package/dist/components/MiniCalendar/miniCalendar.theme.d.ts +2 -71
  108. package/dist/components/NetworkIndicator/networkIndicator.theme.d.ts +2 -41
  109. package/dist/components/Overlay/overlay.theme.d.ts +2 -92
  110. package/dist/components/PageShell/pageShell.theme.d.ts +2 -36
  111. package/dist/components/Pagination/pagination.theme.d.ts +2 -108
  112. package/dist/components/Popover/popover.theme.d.ts +2 -40
  113. package/dist/components/PopupMenu/popupMenu.theme.d.ts +2 -4
  114. package/dist/components/ProgressCircle/progressCircle.theme.d.ts +2 -22
  115. package/dist/components/QRCode/qrCode.theme.d.ts +2 -19
  116. package/dist/components/Rating/rating.theme.d.ts +2 -37
  117. package/dist/components/Resizable/resizable.theme.d.ts +2 -65
  118. package/dist/components/RichTextInput/richTextInput.theme.d.ts +2 -167
  119. package/dist/components/ScrollArea/scrollArea.theme.d.ts +2 -15
  120. package/dist/components/SegmentedControl/segmentedControl.theme.d.ts +2 -76
  121. package/dist/components/SelectionMenu/selectionMenu.theme.d.ts +2 -5
  122. package/dist/components/Separator/separator.theme.d.ts +2 -33
  123. package/dist/components/Sidebar/Sidebar.svelte +8 -2
  124. package/dist/components/Sidebar/SidebarAction.svelte +2 -2
  125. package/dist/components/Sidebar/SidebarActivityBar.svelte +3 -3
  126. package/dist/components/Sidebar/SidebarDesktopShell.svelte +3 -0
  127. package/dist/components/Sidebar/SidebarDesktopShell.svelte.d.ts +1 -0
  128. package/dist/components/Sidebar/SidebarGroup.svelte +6 -6
  129. package/dist/components/Sidebar/SidebarMenuButton.svelte +15 -18
  130. package/dist/components/Sidebar/SidebarMenuItem.svelte +15 -21
  131. package/dist/components/Sidebar/SidebarMenuSubItem.svelte +5 -6
  132. package/dist/components/Sidebar/SidebarMobileDrawer.svelte +3 -1
  133. package/dist/components/Sidebar/SidebarMobileDrawer.svelte.d.ts +1 -0
  134. package/dist/components/Sidebar/SidebarPanel.svelte +3 -6
  135. package/dist/components/Sidebar/SidebarTreeNode.svelte +2 -2
  136. package/dist/components/Sidebar/sidebar.mcp.d.ts +1 -1
  137. package/dist/components/Sidebar/sidebar.mcp.js +1 -0
  138. package/dist/components/Sidebar/sidebar.props.d.ts +2 -0
  139. package/dist/components/Sidebar/sidebar.theme.d.ts +116 -540
  140. package/dist/components/Sidebar/sidebar.theme.js +73 -67
  141. package/dist/components/Skeleton/skeleton.theme.d.ts +2 -14
  142. package/dist/components/SortableList/sortableList.theme.d.ts +2 -43
  143. package/dist/components/Spinner/spinner.theme.d.ts +2 -41
  144. package/dist/components/SpinnerText/spinnerText.theme.d.ts +2 -49
  145. package/dist/components/Stack/stack.theme.d.ts +2 -12
  146. package/dist/components/Stat/stat.theme.d.ts +2 -132
  147. package/dist/components/Stepper/stepper.theme.d.ts +2 -22
  148. package/dist/components/Tabbar/tabbar.theme.d.ts +2 -110
  149. package/dist/components/Table/table.theme.d.ts +2 -42
  150. package/dist/components/TableOfContents/tableOfContents.theme.d.ts +2 -28
  151. package/dist/components/Tabs/tabs.theme.d.ts +2 -20
  152. package/dist/components/Theme/Theme.svelte +4 -4
  153. package/dist/components/Theme/theme.designTokens.d.ts +10 -0
  154. package/dist/components/Theme/theme.designTokens.js +14 -1
  155. package/dist/components/Theme/theme.state.svelte.js +3 -3
  156. package/dist/components/Timeline/timeline.theme.d.ts +2 -226
  157. package/dist/components/Toast/toast.theme.d.ts +2 -236
  158. package/dist/components/ToggleButton/toggleButton.theme.d.ts +2 -57
  159. package/dist/components/ToggleButtonGroup/toggleButtonGroup.theme.d.ts +2 -9
  160. package/dist/components/ToggleMenu/toggleMenu.theme.d.ts +2 -7
  161. package/dist/components/Tooltip/tooltip.theme.d.ts +2 -25
  162. package/dist/components/Tree/tree.theme.d.ts +2 -7
  163. package/dist/components/VideoPlayer/videoPlayer.theme.d.ts +2 -145
  164. package/dist/generated/componentContract.d.ts +1 -1
  165. package/dist/generated/componentContract.js +2 -0
  166. package/dist/generated/componentMcpRegistry.d.ts +5 -5
  167. package/dist/tailwind/colors.js +7 -1
  168. package/dist/tailwind/global.js +4 -1
  169. package/dist/tailwind/spacing.d.ts +13 -0
  170. package/dist/tailwind/spacing.js +5 -2
  171. package/dist/tailwind/theme.mcp.d.ts +1 -1
  172. package/dist/tailwind/theme.mcp.js +1 -1
  173. package/dist/utils/cva/cva.mcp.d.ts +1 -1
  174. package/dist/utils/cva/cva.mcp.js +1 -1
  175. package/dist/utils/cva/index.d.ts +1 -1
  176. package/dist/utils/cva/merge.d.ts +108 -0
  177. package/dist/utils/cva/merge.js +6 -2
  178. package/dist/utils/cva/theme.d.ts +36 -1
  179. package/dist/utils/cva/theme.js +25 -2
  180. package/package.json +1 -1
@@ -263,7 +263,7 @@ export declare const setStatTheme: (theme: InferComponentTheme<{
263
263
  };
264
264
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
265
265
  }>) => void;
266
- export declare const useStatTheme: (theme?: InferComponentTheme<{
266
+ export declare const useStatTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
267
267
  root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
268
268
  size: {
269
269
  small: string;
@@ -393,134 +393,4 @@ export declare const useStatTheme: (theme?: InferComponentTheme<{
393
393
  comfortable: string;
394
394
  };
395
395
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
396
- }> | undefined) => {
397
- root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
398
- size: {
399
- small: string;
400
- normal: string;
401
- large: string;
402
- };
403
- density: {
404
- compact: string;
405
- normal: string;
406
- comfortable: string;
407
- };
408
- color: {
409
- primary: string;
410
- secondary: string;
411
- neutral: string;
412
- danger: string;
413
- success: string;
414
- warning: string;
415
- info: string;
416
- };
417
- variant: {
418
- solid: string;
419
- outline: string;
420
- soft: string;
421
- ghost: string;
422
- };
423
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
424
- region: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
425
- span: {
426
- narrow: string;
427
- wide: string;
428
- };
429
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
430
- label: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
431
- size: {
432
- small: string;
433
- normal: string;
434
- large: string;
435
- };
436
- variant: {
437
- solid: string;
438
- soft: string;
439
- outline: string;
440
- ghost: string;
441
- };
442
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
443
- value: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
444
- size: {
445
- small: string;
446
- normal: string;
447
- large: string;
448
- };
449
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
450
- unit: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
451
- size: {
452
- small: string;
453
- normal: string;
454
- large: string;
455
- };
456
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
457
- aside: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
458
- rows: {
459
- single: string;
460
- pair: string;
461
- };
462
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
463
- action: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
464
- size: {
465
- small: string;
466
- normal: string;
467
- large: string;
468
- };
469
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
470
- indicator: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
471
- size: {
472
- small: string;
473
- normal: string;
474
- large: string;
475
- };
476
- variant: {
477
- default: string;
478
- icon: string;
479
- badge: string;
480
- };
481
- color: {
482
- primary: string;
483
- secondary: string;
484
- neutral: string;
485
- danger: string;
486
- success: string;
487
- warning: string;
488
- info: string;
489
- };
490
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
491
- trend: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
492
- size: {
493
- small: string;
494
- normal: string;
495
- large: string;
496
- };
497
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
498
- trendIcon: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
499
- trendText: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
500
- trend: {
501
- up: string;
502
- down: string;
503
- neutral: string;
504
- };
505
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
506
- description: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
507
- size: {
508
- small: string;
509
- normal: string;
510
- large: string;
511
- };
512
- variant: {
513
- solid: string;
514
- soft: string;
515
- outline: string;
516
- ghost: string;
517
- };
518
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
519
- separator: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
520
- density: {
521
- compact: string;
522
- normal: string;
523
- comfortable: string;
524
- };
525
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
526
- };
396
+ }>;
@@ -62,7 +62,7 @@ export declare const setStepperTheme: (theme: InferComponentTheme<{
62
62
  };
63
63
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
64
64
  }>) => void;
65
- export declare const useStepperTheme: (theme?: InferComponentTheme<{
65
+ export declare const useStepperTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
66
66
  motion: import("../../utils/motion/index.js").MotionResolver<import("../../utils/motion/index.js").MotionVariantShape>;
67
67
  root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
68
68
  mode: {
@@ -82,25 +82,5 @@ export declare const useStepperTheme: (theme?: InferComponentTheme<{
82
82
  vertical: string;
83
83
  };
84
84
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
85
- }> | undefined) => {
86
- motion: import("../../utils/motion/index.js").MotionResolver<import("../../utils/motion/index.js").MotionVariantShape>;
87
- root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
88
- mode: {
89
- classic: string;
90
- vertical: string;
91
- };
92
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
93
- container: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
94
- mode: {
95
- classic: string;
96
- vertical: string;
97
- };
98
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
99
- step: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
100
- mode: {
101
- classic: string;
102
- vertical: string;
103
- };
104
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
105
- };
85
+ }>;
106
86
  export declare const useStepperMotion: () => import("../../utils/motion/index.js").ComponentMotion<import("../../utils/motion/index.js").MotionVariantShape>;
@@ -219,7 +219,7 @@ export declare const setTabbarTheme: (theme: InferComponentTheme<{
219
219
  };
220
220
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
221
221
  }>) => void;
222
- export declare const useTabbarTheme: (theme?: InferComponentTheme<{
222
+ export declare const useTabbarTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
223
223
  root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
224
224
  orientation: {
225
225
  horizontal: string;
@@ -327,112 +327,4 @@ export declare const useTabbarTheme: (theme?: InferComponentTheme<{
327
327
  large: string;
328
328
  };
329
329
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
330
- }> | undefined) => {
331
- root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
332
- orientation: {
333
- horizontal: string;
334
- vertical: string;
335
- };
336
- scrollFade: {
337
- none: string;
338
- x: string;
339
- y: string;
340
- };
341
- alignment: {
342
- start: string;
343
- center: string;
344
- end: string;
345
- };
346
- size: {
347
- small: string;
348
- normal: string;
349
- large: string;
350
- };
351
- variant: {
352
- underline: string;
353
- pill: string;
354
- };
355
- fullWidth: {
356
- true: string;
357
- false: string;
358
- };
359
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
360
- tab: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
361
- size: {
362
- small: string;
363
- normal: string;
364
- large: string;
365
- };
366
- color: {
367
- primary: string;
368
- secondary: string;
369
- neutral: string;
370
- danger: string;
371
- success: string;
372
- warning: string;
373
- info: string;
374
- };
375
- active: {
376
- true: string;
377
- false: string;
378
- };
379
- focused: {
380
- true: string;
381
- false: string;
382
- };
383
- disabled: {
384
- true: string;
385
- false: string;
386
- };
387
- orientation: {
388
- horizontal: string;
389
- vertical: string;
390
- };
391
- position: {
392
- top: string;
393
- bottom: string;
394
- left: string;
395
- right: string;
396
- };
397
- variant: {
398
- underline: string;
399
- pill: string;
400
- };
401
- fullWidth: {
402
- true: string;
403
- false: string;
404
- };
405
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
406
- indicator: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
407
- variant: {
408
- underline: string;
409
- pill: string;
410
- };
411
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
412
- staticIndicator: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
413
- variant: {
414
- underline: string;
415
- pill: string;
416
- };
417
- position: {
418
- top: string;
419
- bottom: string;
420
- left: string;
421
- right: string;
422
- };
423
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
424
- prefix: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
425
- size: {
426
- small: string;
427
- normal: string;
428
- large: string;
429
- };
430
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
431
- suffix: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
432
- size: {
433
- small: string;
434
- normal: string;
435
- large: string;
436
- };
437
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
438
- };
330
+ }>;
@@ -83,7 +83,7 @@ export declare const setTableTheme: (theme: InferComponentTheme<{
83
83
  prefix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
84
84
  suffix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
85
85
  }>) => void;
86
- export declare const useTableTheme: (theme?: InferComponentTheme<{
86
+ export declare const useTableTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
87
87
  root: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
88
88
  table: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
89
89
  thead: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
@@ -123,44 +123,4 @@ export declare const useTableTheme: (theme?: InferComponentTheme<{
123
123
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
124
124
  prefix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
125
125
  suffix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
126
- }> | undefined) => {
127
- root: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
128
- table: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
129
- thead: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
130
- tbody: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
131
- tfoot: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
132
- row: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
133
- density: {
134
- compact: string;
135
- normal: string;
136
- comfortable: string;
137
- };
138
- selected: {
139
- true: string;
140
- false: null;
141
- };
142
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
143
- head: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
144
- density: {
145
- compact: string;
146
- normal: string;
147
- comfortable: string;
148
- };
149
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
150
- cell: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
151
- density: {
152
- compact: string;
153
- normal: string;
154
- comfortable: string;
155
- };
156
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
157
- caption: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
158
- density: {
159
- compact: string;
160
- normal: string;
161
- comfortable: string;
162
- };
163
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
164
- prefix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
165
- suffix: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
166
- };
126
+ }>;
@@ -55,7 +55,7 @@ export declare const setTableOfContentsTheme: (theme: InferComponentTheme<{
55
55
  };
56
56
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
57
57
  }>) => void;
58
- export declare const useTableOfContentsTheme: (theme?: InferComponentTheme<{
58
+ export declare const useTableOfContentsTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
59
59
  root: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
60
60
  scrollAreaViewport: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
61
61
  content: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
@@ -81,30 +81,4 @@ export declare const useTableOfContentsTheme: (theme?: InferComponentTheme<{
81
81
  false: string;
82
82
  };
83
83
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
84
- }> | undefined) => {
85
- root: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
86
- scrollAreaViewport: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
87
- content: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
88
- list: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
89
- item: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
90
- link: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
91
- size: {
92
- small: string;
93
- normal: string;
94
- large: string;
95
- };
96
- highlighted: {
97
- true: string;
98
- false: null;
99
- };
100
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
101
- rail: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
102
- track: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
103
- active: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
104
- marker: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
105
- highlighted: {
106
- true: string;
107
- false: string;
108
- };
109
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
110
- };
84
+ }>;
@@ -40,7 +40,7 @@ export declare const setTabsTheme: (theme: InferComponentTheme<{
40
40
  };
41
41
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
42
42
  }>) => void;
43
- export declare const useTabsTheme: (theme?: InferComponentTheme<{
43
+ export declare const useTabsTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
44
44
  motion: import("../../utils/motion/index.js").MotionResolver<import("../../utils/motion/index.js").MotionVariantShape>;
45
45
  root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
46
46
  placement: {
@@ -58,23 +58,5 @@ export declare const useTabsTheme: (theme?: InferComponentTheme<{
58
58
  right: string;
59
59
  };
60
60
  }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
61
- }> | undefined) => {
62
- motion: import("../../utils/motion/index.js").MotionResolver<import("../../utils/motion/index.js").MotionVariantShape>;
63
- root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
64
- placement: {
65
- top: string;
66
- bottom: string;
67
- left: string;
68
- right: string;
69
- };
70
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
71
- content: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
72
- placement: {
73
- top: string;
74
- bottom: string;
75
- left: string;
76
- right: string;
77
- };
78
- }> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
79
- };
61
+ }>;
80
62
  export declare const useTabsMotion: () => import("../../utils/motion/index.js").ComponentMotion<import("../../utils/motion/index.js").MotionVariantShape>;
@@ -89,7 +89,7 @@
89
89
  }
90
90
  });
91
91
 
92
- const sveltaiTheme = new ThemeState(
92
+ const entasisTheme = new ThemeState(
93
93
  {
94
94
  get spinnerVariant() {
95
95
  return spinnerVariant;
@@ -132,7 +132,7 @@
132
132
  $effect(() => {
133
133
  document.documentElement.toggleAttribute(
134
134
  REDUCED_MOTION_ATTRIBUTE,
135
- sveltaiTheme.preferReducesMotion
135
+ entasisTheme.preferReducesMotion
136
136
  );
137
137
  return () => document.documentElement.removeAttribute(REDUCED_MOTION_ATTRIBUTE);
138
138
  });
@@ -203,13 +203,13 @@
203
203
 
204
204
  <div
205
205
  {@attach portal()}
206
- {@attach sveltaiTheme.floatingWindows.layer}
206
+ {@attach entasisTheme.floatingWindows.layer}
207
207
  data-slot="floating-window-layer"
208
208
  class="pointer-events-none fixed inset-0"
209
209
  style:z-index={FLOATING_WINDOW_LAYER_Z_INDEX}
210
210
  ></div>
211
211
 
212
- {@render children(sveltaiTheme)}
212
+ {@render children(entasisTheme)}
213
213
 
214
214
  <DialogBackdrop />
215
215
  <TooltipHost />
@@ -1,4 +1,5 @@
1
1
  import type { Colors } from '../../types/theme.js';
2
+ import { type SpacingStep } from '../../tailwind/spacing.js';
2
3
  import { defaultThemeSpacingScale, typeScalePresets, type DeepPartial, type MotionTokens, type ThemeElevation, type ThemeRadius, type ThemeSpacing, type ThemeSpacingScale, type ThemeSpacingStep, type TypeScaleOptions, type TypeScalePreset, type TypeScaleRatio } from '../../tailwind/scales.js';
3
4
  export { defaultThemeSpacingScale, typeScalePresets };
4
5
  export type { MotionTokens, ThemeElevation, ThemeRadius, ThemeSpacing, ThemeSpacingScale, ThemeSpacingStep, TypeScaleOptions, TypeScalePreset, TypeScaleRatio };
@@ -29,6 +30,13 @@ export type ThemeDesignTokens = {
29
30
  hoverColor?: Colors;
30
31
  /** State role — the transient pressed tint; falls back to `hoverColor` when omitted. */
31
32
  pressedColor?: Colors;
33
+ /**
34
+ * How far a drawer `Dialog` stands off the screen edge: a spacing step (`'md'`,
35
+ * `'layout-sm'`, …) or `'none'` for edge to edge. Defaults to `'layout-md'`. At `'none'` the
36
+ * drawer's edge corners square off and only the corners facing the page keep their radius.
37
+ * Writes `--drawer-inset`.
38
+ */
39
+ drawerInset?: SpacingStep | 'none';
32
40
  };
33
41
  export type ThemeDesignTokenMap<T extends readonly string[] = readonly string[]> = Partial<Record<T[number], ThemeDesignTokens>>;
34
42
  type CompileThemeDesignTokensOptions<T extends readonly string[]> = {
@@ -43,4 +51,6 @@ type CompileThemeDesignTokensOptions<T extends readonly string[]> = {
43
51
  */
44
52
  motion?: DeepPartial<MotionTokens>;
45
53
  };
54
+ /** `--drawer-inset` for a step: the theme token and a Dialog's `inset` prop share it. */
55
+ export declare const drawerInsetValue: (step: SpacingStep | "none") => string;
46
56
  export declare const compileThemeDesignTokens: <T extends readonly string[]>({ designTokens, attribute, value, colorScheme, motion }: CompileThemeDesignTokensOptions<T>) => string;
@@ -1,3 +1,4 @@
1
+ import { spacingValues } from '../../tailwind/spacing.js';
1
2
  import { defaultThemeSpacingScale, elevationVariables, formatRem, mergeMotionTokens, motionVariables, presetFactor, radiusVariables, spacingFactors, spacingScaleVariables, typeScalePresets, typeScaleVariables } from '../../tailwind/scales.js';
2
3
  // The design scales live in `$lib/tailwind/scales` so the Tailwind plugin and this
3
4
  // runtime compiler emit identical variables; they are re-exported here because the
@@ -92,8 +93,20 @@ const tokenVariables = (tokens, colorScheme, baseMotion) => ({
92
93
  }),
93
94
  ...(tokens.elevation === undefined
94
95
  ? {}
95
- : elevationVariables(tokens.elevation, colorScheme === 'dark' ? 'dark' : 'light'))
96
+ : elevationVariables(tokens.elevation, colorScheme === 'dark' ? 'dark' : 'light')),
97
+ ...(tokens.drawerInset === undefined
98
+ ? {}
99
+ : { '--drawer-inset': drawerInsetValue(tokens.drawerInset) })
96
100
  });
101
+ /** `--drawer-inset` for a step: the theme token and a Dialog's `inset` prop share it. */
102
+ export const drawerInsetValue = (step) => {
103
+ if (step === 'none')
104
+ return '0px';
105
+ const value = spacingValues[step];
106
+ if (!value)
107
+ throw new Error(`Unknown drawerInset "${step}".`);
108
+ return value;
109
+ };
97
110
  const validateThemeName = (themeName) => {
98
111
  if (!themeNamePattern.test(themeName)) {
99
112
  throw new Error(`Theme name "${themeName}" must start with a letter or underscore and contain only letters, numbers, underscores, or hyphens.`);
@@ -104,7 +104,7 @@ export class ThemeState extends createBindableStateClass() {
104
104
  constructor(options, svelteTheme) {
105
105
  super(options);
106
106
  this.svelteTheme = svelteTheme;
107
- setContext('sveltaiTheme', this);
107
+ setContext('entasisTheme', this);
108
108
  onDestroy(registerActiveTheme(this));
109
109
  }
110
110
  resolveTransitionProps = (props, defaultTransition) => {
@@ -194,7 +194,7 @@ export class ThemeState extends createBindableStateClass() {
194
194
  };
195
195
  }
196
196
  export const useTheme = () => {
197
- const theme = getContext('sveltaiTheme');
197
+ const theme = getContext('entasisTheme');
198
198
  // A missing provider used to surface as `undefined is not an object` from whichever call site
199
199
  // dereferenced it first; name the cause instead, at the point where it is known.
200
200
  if (!theme) {
@@ -204,5 +204,5 @@ export const useTheme = () => {
204
204
  };
205
205
  /** Resolve a control color against Theme `defaultColor`. Call inside `$derived`. */
206
206
  export const useDefaultColor = (color) => {
207
- return color ?? getContext('sveltaiTheme')?.defaultColor ?? 'neutral';
207
+ return color ?? getContext('entasisTheme')?.defaultColor ?? 'neutral';
208
208
  };