@diegopluna/narvi 0.4.1 → 0.5.1

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 +3 -1
  2. package/dist/base.css +3 -0
  3. package/dist/components/app-shell/AppShellPanel.svelte +3 -2
  4. package/dist/components/button/Button.svelte +29 -17
  5. package/dist/components/checkbox/Checkbox.svelte +106 -54
  6. package/dist/components/checkbox/Checkbox.svelte.d.ts +22 -8
  7. package/dist/components/choice-cards/ChoiceCards.svelte +68 -39
  8. package/dist/components/choice-cards/ChoiceCards.svelte.d.ts +12 -8
  9. package/dist/components/collapsible/CollapsibleContent.svelte +71 -17
  10. package/dist/components/collapsible/CollapsibleContent.svelte.d.ts +14 -10
  11. package/dist/components/collapsible/CollapsibleRoot.svelte +13 -9
  12. package/dist/components/collapsible/CollapsibleRoot.svelte.d.ts +8 -9
  13. package/dist/components/collapsible/CollapsibleTrigger.svelte +24 -15
  14. package/dist/components/collapsible/CollapsibleTrigger.svelte.d.ts +10 -14
  15. package/dist/components/color-field/ColorField.svelte +13 -7
  16. package/dist/components/command/CommandDialog.svelte +30 -20
  17. package/dist/components/command/CommandDialog.svelte.d.ts +4 -3
  18. package/dist/components/command/CommandEmpty.svelte +11 -9
  19. package/dist/components/command/CommandEmpty.svelte.d.ts +6 -17
  20. package/dist/components/command/CommandGroup.svelte +32 -11
  21. package/dist/components/command/CommandGroup.svelte.d.ts +7 -11
  22. package/dist/components/command/CommandInput.svelte +25 -10
  23. package/dist/components/command/CommandInput.svelte.d.ts +8 -12
  24. package/dist/components/command/CommandItem.svelte +67 -29
  25. package/dist/components/command/CommandItem.svelte.d.ts +6 -32
  26. package/dist/components/command/CommandList.svelte +8 -10
  27. package/dist/components/command/CommandList.svelte.d.ts +6 -8
  28. package/dist/components/command/CommandRoot.svelte +247 -57
  29. package/dist/components/command/CommandRoot.svelte.d.ts +14 -28
  30. package/dist/components/command/CommandSeparator.svelte +18 -0
  31. package/dist/components/command/CommandSeparator.svelte.d.ts +7 -0
  32. package/dist/components/command/context.d.ts +27 -0
  33. package/dist/components/command/context.js +16 -0
  34. package/dist/components/command/index.d.ts +6 -4
  35. package/dist/components/command/index.js +5 -4
  36. package/dist/components/command/score.d.ts +27 -0
  37. package/dist/components/command/score.js +77 -0
  38. package/dist/components/command/styles.d.ts +32 -9
  39. package/dist/components/command/styles.js +42 -14
  40. package/dist/components/composer/ComposerModelPicker.svelte +350 -346
  41. package/dist/components/composer/ComposerModelPicker.svelte.d.ts +6 -3
  42. package/dist/components/composer/ComposerRoot.svelte.d.ts +1 -1
  43. package/dist/components/dialog/ConfirmDialog.svelte +73 -53
  44. package/dist/components/dialog/DialogClose.svelte +17 -0
  45. package/dist/components/dialog/DialogClose.svelte.d.ts +10 -0
  46. package/dist/components/dialog/DialogContent.svelte +35 -33
  47. package/dist/components/dialog/DialogContent.svelte.d.ts +6 -20
  48. package/dist/components/dialog/DialogDescription.svelte +9 -12
  49. package/dist/components/dialog/DialogDescription.svelte.d.ts +6 -8
  50. package/dist/components/dialog/DialogRoot.svelte +20 -0
  51. package/dist/components/dialog/DialogRoot.svelte.d.ts +7 -0
  52. package/dist/components/dialog/DialogTitle.svelte +12 -8
  53. package/dist/components/dialog/DialogTitle.svelte.d.ts +8 -8
  54. package/dist/components/dialog/DialogTrigger.svelte +17 -0
  55. package/dist/components/dialog/DialogTrigger.svelte.d.ts +10 -0
  56. package/dist/components/dialog/index.d.ts +6 -5
  57. package/dist/components/dialog/index.js +3 -6
  58. package/dist/components/dialog/styles.d.ts +1 -2
  59. package/dist/components/dialog/styles.js +11 -8
  60. package/dist/components/hover-card/HoverCardContent.svelte +35 -29
  61. package/dist/components/hover-card/HoverCardContent.svelte.d.ts +8 -12
  62. package/dist/components/hover-card/HoverCardRoot.svelte +7 -7
  63. package/dist/components/hover-card/HoverCardRoot.svelte.d.ts +5 -4
  64. package/dist/components/hover-card/HoverCardTrigger.svelte +18 -0
  65. package/dist/components/hover-card/HoverCardTrigger.svelte.d.ts +10 -0
  66. package/dist/components/hover-card/index.d.ts +2 -3
  67. package/dist/components/hover-card/index.js +1 -5
  68. package/dist/components/input/Input.svelte.d.ts +1 -1
  69. package/dist/components/markdown/MarkdownBlock.svelte +6 -3
  70. package/dist/components/markdown/MarkdownTable.svelte +15 -7
  71. package/dist/components/menu/ContextMenuContent.svelte +15 -15
  72. package/dist/components/menu/ContextMenuContent.svelte.d.ts +6 -9
  73. package/dist/components/menu/ContextMenuTrigger.svelte +14 -16
  74. package/dist/components/menu/ContextMenuTrigger.svelte.d.ts +8 -14
  75. package/dist/components/menu/MenuCheckboxItem.svelte +22 -11
  76. package/dist/components/menu/MenuCheckboxItem.svelte.d.ts +8 -22
  77. package/dist/components/menu/MenuContent.svelte +16 -18
  78. package/dist/components/menu/MenuContent.svelte.d.ts +6 -18
  79. package/dist/components/menu/MenuGroup.svelte +4 -4
  80. package/dist/components/menu/MenuGroup.svelte.d.ts +5 -4
  81. package/dist/components/menu/MenuItem.svelte +25 -12
  82. package/dist/components/menu/MenuItem.svelte.d.ts +6 -21
  83. package/dist/components/menu/MenuLabel.svelte +7 -11
  84. package/dist/components/menu/MenuLabel.svelte.d.ts +6 -8
  85. package/dist/components/menu/MenuRadioGroup.svelte +4 -4
  86. package/dist/components/menu/MenuRadioGroup.svelte.d.ts +5 -4
  87. package/dist/components/menu/MenuRadioItem.svelte +16 -14
  88. package/dist/components/menu/MenuRadioItem.svelte.d.ts +6 -19
  89. package/dist/components/menu/MenuSeparator.svelte +6 -10
  90. package/dist/components/menu/MenuSeparator.svelte.d.ts +6 -7
  91. package/dist/components/menu/MenuSubContent.svelte +22 -19
  92. package/dist/components/menu/MenuSubContent.svelte.d.ts +8 -15
  93. package/dist/components/menu/MenuSubTrigger.svelte +7 -11
  94. package/dist/components/menu/MenuSubTrigger.svelte.d.ts +6 -15
  95. package/dist/components/menu/MenuTrigger.svelte +17 -0
  96. package/dist/components/menu/MenuTrigger.svelte.d.ts +10 -0
  97. package/dist/components/menu/context-menu.d.ts +2 -2
  98. package/dist/components/menu/context-menu.js +3 -2
  99. package/dist/components/menu/group.js +1 -1
  100. package/dist/components/menu/index.d.ts +5 -4
  101. package/dist/components/menu/index.js +5 -5
  102. package/dist/components/menu/row.d.ts +20 -0
  103. package/dist/components/menu/row.js +12 -0
  104. package/dist/components/popover/PopoverClose.svelte +17 -0
  105. package/dist/components/popover/PopoverClose.svelte.d.ts +10 -0
  106. package/dist/components/popover/PopoverContent.svelte +30 -29
  107. package/dist/components/popover/PopoverContent.svelte.d.ts +6 -17
  108. package/dist/components/popover/PopoverTrigger.svelte +17 -0
  109. package/dist/components/popover/PopoverTrigger.svelte.d.ts +10 -0
  110. package/dist/components/popover/index.d.ts +6 -4
  111. package/dist/components/popover/index.js +6 -5
  112. package/dist/components/progress/Progress.svelte +16 -22
  113. package/dist/components/progress/Progress.svelte.d.ts +6 -5
  114. package/dist/components/reasoning/ReasoningRoot.svelte.d.ts +1 -1
  115. package/dist/components/resize-handle/ResizeHandle.svelte +80 -14
  116. package/dist/components/resize-handle/ResizeHandle.svelte.d.ts +15 -1
  117. package/dist/components/segmented/SegmentedControl.svelte +100 -91
  118. package/dist/components/segmented/SegmentedControl.svelte.d.ts +6 -4
  119. package/dist/components/select/Select.svelte +97 -59
  120. package/dist/components/select/Select.svelte.d.ts +3 -2
  121. package/dist/components/sheet/SheetContent.svelte +31 -38
  122. package/dist/components/sheet/SheetContent.svelte.d.ts +7 -22
  123. package/dist/components/sheet/index.d.ts +3 -5
  124. package/dist/components/sheet/index.js +3 -5
  125. package/dist/components/sheet/styles.js +26 -5
  126. package/dist/components/sidebar/SidebarItem.svelte +2 -3
  127. package/dist/components/slider/Slider.svelte +86 -65
  128. package/dist/components/slider/Slider.svelte.d.ts +9 -8
  129. package/dist/components/split-button/SplitButton.svelte +20 -3
  130. package/dist/components/split-button/SplitButton.svelte.d.ts +1 -1
  131. package/dist/components/switch/Switch.svelte +77 -49
  132. package/dist/components/switch/Switch.svelte.d.ts +15 -8
  133. package/dist/components/tab-strip/TabStrip.svelte +87 -68
  134. package/dist/components/tabs/Tabs.svelte +129 -99
  135. package/dist/components/tabs/Tabs.svelte.d.ts +6 -4
  136. package/dist/components/textarea/Textarea.svelte.d.ts +1 -1
  137. package/dist/components/toast/Toaster.svelte +132 -115
  138. package/dist/components/toast/Toaster.svelte.d.ts +5 -0
  139. package/dist/components/toast/toasts.svelte.d.ts +10 -23
  140. package/dist/components/toast/toasts.svelte.js +62 -40
  141. package/dist/components/toggle/Toggle.svelte +15 -9
  142. package/dist/components/toggle/Toggle.svelte.d.ts +8 -17
  143. package/dist/components/toggle-group/ToggleGroupItem.svelte +20 -9
  144. package/dist/components/toggle-group/ToggleGroupItem.svelte.d.ts +10 -10
  145. package/dist/components/toggle-group/ToggleGroupRoot.svelte +33 -18
  146. package/dist/components/toggle-group/ToggleGroupRoot.svelte.d.ts +4 -4
  147. package/dist/components/tool/ToolRoot.svelte.d.ts +1 -1
  148. package/dist/components/tooltip/TooltipContent.svelte +38 -28
  149. package/dist/components/tooltip/TooltipContent.svelte.d.ts +6 -15
  150. package/dist/components/tooltip/TooltipProvider.svelte +34 -10
  151. package/dist/components/tooltip/TooltipProvider.svelte.d.ts +18 -4
  152. package/dist/components/tooltip/TooltipRoot.svelte +52 -23
  153. package/dist/components/tooltip/TooltipRoot.svelte.d.ts +10 -10
  154. package/dist/components/tooltip/TooltipTrigger.svelte +14 -17
  155. package/dist/components/tooltip/TooltipTrigger.svelte.d.ts +10 -4
  156. package/dist/components/tooltip/index.d.ts +1 -1
  157. package/dist/components/tooltip/index.js +1 -1
  158. package/dist/components/work-fold/WorkFold.svelte +14 -5
  159. package/dist/index.d.ts +5 -5
  160. package/dist/index.js +1 -1
  161. package/dist/internal/TooltipScope.svelte +4 -4
  162. package/dist/internal/layer.d.ts +11 -9
  163. package/dist/internal/layer.js +21 -15
  164. package/dist/internal/loose.d.ts +30 -5
  165. package/dist/internal/loose.js +1 -1
  166. package/dist/internal/markers.stylex.d.ts +0 -4
  167. package/dist/internal/markers.stylex.js +0 -2
  168. package/dist/internal/toggle.d.ts +3 -0
  169. package/dist/internal/toggle.js +6 -2
  170. package/dist/internal/tooltip-trigger.d.ts +7 -6
  171. package/dist/internal/tooltip-trigger.js +9 -12
  172. package/dist/vite.d.ts +7 -1
  173. package/dist/vite.js +20 -5
  174. package/package.json +3 -2
  175. package/skills/building-ui/SKILL.md +22 -22
  176. package/skills/building-ui/references/components.md +30 -4
  177. package/skills/markdown/SKILL.md +1 -1
  178. package/skills/setup/SKILL.md +4 -8
  179. package/skills/styling/SKILL.md +1 -1
  180. package/skills/theming/SKILL.md +3 -7
@@ -5,7 +5,7 @@
5
5
  <script lang="ts" module>
6
6
  import * as stylex from '@stylexjs/stylex';
7
7
  import type { Snippet } from 'svelte';
8
- import { Collapsible } from 'bits-ui';
8
+ import { CollapsibleTrigger } from '@ui-sdk/svelte/collapsible';
9
9
  import Chevron from '../../internal/Chevron.svelte';
10
10
  import type { Sx } from '../../internal/sx.js';
11
11
  import Tile from '../../internal/Tile.svelte';
@@ -32,6 +32,9 @@
32
32
  children?: Snippet | undefined;
33
33
  };
34
34
 
35
+ // A disabled fold's button stays focusable, with `aria-disabled` and `data-disabled`
36
+ const DISABLED = ':is(:disabled, [data-disabled])';
37
+
35
38
  /** A length at the window's density (`density` in the tokens). */
36
39
  const d = (rem: string) => `calc(${rem} * ${density.factor})`;
37
40
 
@@ -41,6 +44,7 @@
41
44
  alignItems: 'center',
42
45
  alignSelf: 'flex-start',
43
46
  gap: '0.625rem',
47
+ minWidth: 0,
44
48
  minHeight: d('1.75rem'),
45
49
  margin: 0,
46
50
  padding: 0,
@@ -50,7 +54,11 @@
50
54
  color: { default: colors.textMuted, ':hover': { default: null, [media.hover]: colors.text } },
51
55
  fontFamily: 'inherit',
52
56
  fontSize: font.sizeBody,
53
- cursor: 'pointer',
57
+ // A label that wraps reads from the start, and one with no break in it wraps too
58
+ textAlign: 'start',
59
+ overflowWrap: 'anywhere',
60
+ cursor: { default: 'pointer', [DISABLED]: 'not-allowed' },
61
+ opacity: { default: 1, [DISABLED]: 0.5 },
54
62
  outlineStyle: 'solid',
55
63
  outlineWidth: { default: 0, ':focus-visible': '2px' },
56
64
  outlineColor: colors.focusRing,
@@ -97,15 +105,16 @@
97
105
  </script>
98
106
 
99
107
  {#snippet trigger()}
100
- <Collapsible.Trigger id="{uid}-trigger" {...stylex.attrs(styles.trigger)}>
108
+ <CollapsibleTrigger id="{uid}-trigger" {...stylex.attrs(styles.trigger)}>
101
109
  <Tile glyph="layers" />
102
110
  <span {...stylex.attrs(styles.label)}
103
111
  >{label}<span {...stylex.attrs(styles.chevron)}><Chevron {open} size={12} /></span></span
104
112
  >
105
- </Collapsible.Trigger>
113
+ </CollapsibleTrigger>
106
114
  {/snippet}
107
115
 
108
- <CollapsibleRoot bind:open data-slot="work-fold" {...rest} {sx} class={className}>
116
+ <!-- ui-sdk names the root's data-slot `collapsible`, and keeps it -->
117
+ <CollapsibleRoot bind:open {...rest} {sx} class={className}>
109
118
  {#if trailing}
110
119
  <div data-slot="work-fold-line" {...stylex.attrs(styles.line)}>
111
120
  {@render trigger()}
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@ export type { ColorFieldLabels, ColorFieldProps, ColorFieldSize } from './compon
30
30
  export * as Collapsible from './components/collapsible/index.js';
31
31
  export type { CollapsibleContentProps, CollapsibleRootProps, CollapsibleTriggerProps } from './components/collapsible/index.js';
32
32
  export * as Command from './components/command/index.js';
33
- export type { CommandDialogProps, CommandEmptyProps, CommandFooterProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandRootProps } from './components/command/index.js';
33
+ export type { CommandDialogProps, CommandEmptyProps, CommandFooterProps, CommandGroupProps, CommandInputProps, CommandItemProps, CommandListProps, CommandRootProps, CommandSeparatorProps } from './components/command/index.js';
34
34
  export * as Composer from './components/composer/index.js';
35
35
  export { getComposerContext } from './components/composer/index.js';
36
36
  export type { ComposerAttachButtonProps, ComposerAttachmentProps, ComposerAttachmentsProps, ComposerContext, ComposerMessage, ComposerModel, ComposerModelPickerProps, ComposerModelProvider, ComposerRejection, ComposerRootProps, ComposerStatus, ComposerSubmitProps, ComposerTextareaProps, ComposerToggleProps, ComposerToolbarProps, ComposerTrayProps } from './components/composer/index.js';
@@ -42,7 +42,7 @@ export type { ConversationContentProps, ConversationContext, ConversationMode, C
42
42
  export { default as ConfirmDialog } from './components/dialog/ConfirmDialog.svelte';
43
43
  export type { ConfirmDialogProps } from './components/dialog/ConfirmDialog.svelte';
44
44
  export * as Dialog from './components/dialog/index.js';
45
- export type { DialogBodyProps, DialogContentProps, DialogSize, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogTitleProps } from './components/dialog/index.js';
45
+ export type { DialogBodyProps, DialogCloseProps, DialogContentProps, DialogSize, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogRootProps, DialogTitleProps, DialogTriggerProps } from './components/dialog/index.js';
46
46
  export { default as Divider } from './components/divider/Divider.svelte';
47
47
  export type { DividerProps } from './components/divider/Divider.svelte';
48
48
  export { default as DevStyles } from './components/dev-styles/DevStyles.svelte';
@@ -59,7 +59,7 @@ export type { GridAlign, GridColumns, GridGap, GridProps } from './components/gr
59
59
  export { default as Heading } from './components/heading/Heading.svelte';
60
60
  export type { HeadingLevel, HeadingProps, HeadingSize, HeadingWeight } from './components/heading/Heading.svelte';
61
61
  export * as HoverCard from './components/hover-card/index.js';
62
- export type { HoverCardContentProps, HoverCardRootProps } from './components/hover-card/index.js';
62
+ export type { HoverCardContentProps, HoverCardRootProps, HoverCardTriggerProps } from './components/hover-card/index.js';
63
63
  export { default as Input } from './components/input/Input.svelte';
64
64
  export type { InputProps, InputSize } from './components/input/Input.svelte';
65
65
  export { default as Kbd } from './components/kbd/Kbd.svelte';
@@ -67,7 +67,7 @@ export type { KbdProps } from './components/kbd/Kbd.svelte';
67
67
  export { default as Link } from './components/link/Link.svelte';
68
68
  export type { LinkProps } from './components/link/Link.svelte';
69
69
  export * as Menu from './components/menu/index.js';
70
- export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuSeparatorProps, MenuSubContentProps, MenuSubTriggerProps } from './components/menu/index.js';
70
+ export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuSeparatorProps, MenuSubContentProps, MenuSubTriggerProps, MenuTriggerProps } from './components/menu/index.js';
71
71
  export * as Message from './components/message/index.js';
72
72
  export type { MessageActionProps, MessageActionsProps, MessageBubbleProps, MessageContentProps, MessageCopyProps, MessageFrom, MessageHeaderProps, MessagePendingProps, MessageRootProps, MessageTextSize, MessageTimeProps } from './components/message/index.js';
73
73
  export { default as Markdown } from './components/markdown/Markdown.svelte';
@@ -84,7 +84,7 @@ export type { PlanProps, PlanStep, PlanStepStatus } from './components/plan/Plan
84
84
  export { default as Progress } from './components/progress/Progress.svelte';
85
85
  export type { ProgressProps } from './components/progress/Progress.svelte';
86
86
  export * as Popover from './components/popover/index.js';
87
- export type { PopoverContentProps } from './components/popover/index.js';
87
+ export type { PopoverCloseProps, PopoverContentProps, PopoverTriggerProps } from './components/popover/index.js';
88
88
  export { default as Questionnaire } from './components/questionnaire/Questionnaire.svelte';
89
89
  export type { Question, QuestionAnswer, QuestionnaireAnswers, QuestionnaireProps } from './components/questionnaire/Questionnaire.svelte';
90
90
  export { default as QueuedMessage } from './components/queued-message/QueuedMessage.svelte';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ export { default as ColorField } from './components/color-field/ColorField.svelt
23
23
  // Compound: <Collapsible.Root>, <Collapsible.Trigger>, <Collapsible.Content>
24
24
  export * as Collapsible from './components/collapsible/index.js';
25
25
  // Compound: <Command.Dialog>, <Command.Root>, <Command.Input>, <Command.List>, <Command.Group>,
26
- // <Command.Item>, <Command.Empty>, <Command.Separator>, <Command.Footer>
26
+ // <Command.Item>, <Command.Empty>, <Command.Status>, <Command.Separator>, <Command.Footer>
27
27
  export * as Command from './components/command/index.js';
28
28
  // Compound: <Composer.Tray>, <Composer.Root>, <Composer.Attachments>, <Composer.Textarea>,
29
29
  // <Composer.Toolbar>, <Composer.AttachButton>, <Composer.Toggle>, <Composer.ModelPicker>,
@@ -1,7 +1,7 @@
1
1
  <!--
2
- Around a part's tooltips. Inside the app's Tooltip.Provider they are the app's: they wait as
3
- long as it says, and one opens at once after another anywhere under it, along a toolbar of
4
- buttons each with its own. Without one they have their own, which waits 400ms.
2
+ Around a part's tooltips. Inside the app's Tooltip.Provider they wait as long as it says;
3
+ without one they wait 400ms. Either way one opens at once after another, along a toolbar of
4
+ buttons each with its own: ui-sdk hands off between every tooltip on the page.
5
5
  -->
6
6
  <script lang="ts">
7
7
  import type { Snippet } from 'svelte';
@@ -15,5 +15,5 @@
15
15
  {#if provided}
16
16
  {@render children()}
17
17
  {:else}
18
- <Provider delayDuration={400}>{@render children()}</Provider>
18
+ <Provider delay={400}>{@render children()}</Provider>
19
19
  {/if}
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * What everything that floats has in common: menus, popovers, selects and the
3
- * palette. One raised surface, sized to the room bits-ui measures for it, and
3
+ * palette. One raised surface, sized to the room ui-sdk measures for it, and
4
4
  * one motion: it grows out of what opened it, and goes a little faster than it
5
- * came. bits-ui waits for the transition before it removes the element, so
6
- * the exit is seen.
5
+ * came. ui-sdk waits for the transition before it removes the element, so
6
+ * the exit is seen. It marks the first frame `data-starting-style` and the exit
7
+ * `data-ending-style`.
7
8
  */
8
9
  import * as stylex from '@stylexjs/stylex';
9
10
  import './icons.css';
@@ -15,10 +16,11 @@ export declare function widthStyle(width: string | undefined, style: unknown, mi
15
16
  export declare const layer: Readonly<{
16
17
  readonly surface: Readonly<{
17
18
  readonly boxSizing: stylex.StyleXClassNameFor<"boxSizing", "border-box">;
18
- readonly zIndex: stylex.StyleXClassNameFor<"zIndex", 55>;
19
- readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "max(var(--narvi-layer-min-width, 12rem), var(--bits-floating-anchor-width, 0px))">;
20
- readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "min(22rem, var(--bits-floating-available-width, 100vw))">;
21
- readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "var(--bits-floating-available-height, 80vh)">;
19
+ readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "none">;
20
+ readonly margin: stylex.StyleXClassNameFor<"margin", 0>;
21
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", "max(var(--narvi-layer-min-width, 12rem), var(--anchor-width, 0px))">;
22
+ readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "min(22rem, var(--available-width, 100vw))">;
23
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "var(--available-height, 80vh)">;
22
24
  readonly overflowY: stylex.StyleXClassNameFor<"overflowY", "auto">;
23
25
  readonly overscrollBehavior: stylex.StyleXClassNameFor<"overscrollBehavior", "contain">;
24
26
  readonly padding: stylex.StyleXClassNameFor<"padding", string>;
@@ -32,7 +34,7 @@ export declare const layer: Readonly<{
32
34
  readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
33
35
  readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0 | "1px">;
34
36
  readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "CanvasText">;
35
- readonly transformOrigin: stylex.StyleXClassNameFor<"transformOrigin", "var(--bits-floating-transform-origin, top)">;
37
+ readonly transformOrigin: stylex.StyleXClassNameFor<"transformOrigin", "var(--transform-origin, top)">;
36
38
  readonly opacity: stylex.StyleXClassNameFor<"opacity", 0 | 1>;
37
39
  readonly scale: stylex.StyleXClassNameFor<"scale", 1 | 0.97 | null>;
38
40
  readonly transitionProperty: stylex.StyleXClassNameFor<"transitionProperty", "opacity" | "opacity, scale">;
@@ -40,7 +42,7 @@ export declare const layer: Readonly<{
40
42
  readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", string>;
41
43
  }>;
42
44
  readonly sized: Readonly<{
43
- readonly width: stylex.StyleXClassNameFor<"width", "min(var(--narvi-layer-width), var(--bits-floating-available-width, 100vw))">;
45
+ readonly width: stylex.StyleXClassNameFor<"width", "min(var(--narvi-layer-width), var(--available-width, 100vw))">;
44
46
  readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
45
47
  readonly maxWidth: stylex.StyleXClassNameFor<"maxWidth", "none">;
46
48
  }>;
@@ -1,15 +1,17 @@
1
1
  /**
2
2
  * What everything that floats has in common: menus, popovers, selects and the
3
- * palette. One raised surface, sized to the room bits-ui measures for it, and
3
+ * palette. One raised surface, sized to the room ui-sdk measures for it, and
4
4
  * one motion: it grows out of what opened it, and goes a little faster than it
5
- * came. bits-ui waits for the transition before it removes the element, so
6
- * the exit is seen.
5
+ * came. ui-sdk waits for the transition before it removes the element, so
6
+ * the exit is seen. It marks the first frame `data-starting-style` and the exit
7
+ * `data-ending-style`.
7
8
  */
8
9
  import * as stylex from '@stylexjs/stylex';
9
10
  import { colors, density, font, motion, radius } from '../tokens.stylex.js';
10
11
  import { media } from '../media.stylex.js';
11
12
  import './icons.css';
12
- const CLOSED = ':is([data-state="closed"])';
13
+ const CLOSED = ':is([data-ending-style])';
14
+ const STARTING = ':is([data-starting-style])';
13
15
  const HIGHLIGHTED = ':is([data-highlighted])';
14
16
  const DISABLED = ':is([data-disabled])';
15
17
  /**
@@ -30,14 +32,18 @@ const d = (rem) => `calc(${rem} * ${density.factor})`;
30
32
  export const layer = stylex.create({
31
33
  surface: {
32
34
  boxSizing: 'border-box',
33
- // Over a dialog (50 and 51) and a sheet, which are where a popup opens while one is up:
34
- // a modal makes the page behind it inert. Under a tooltip (60) and the toasts (the top layer).
35
- zIndex: 55,
35
+ // ui-sdk shows a menu and a select as a popover, and resets the browser's popover styles
36
+ // for its dialogs, popovers and tooltips but not for these: the medium border and the
37
+ // margin are undone here. The edge is the box-shadow below.
38
+ borderStyle: 'none',
39
+ margin: 0,
40
+ // No z-index: ui-sdk opens it in the top layer, over whatever opened before it, so a
41
+ // menu opened from a dialog is over the dialog. The toasts raise themselves over it.
36
42
  // From 12rem, or a least width of its own, or the trigger's width if that is wider
37
- minWidth: 'max(var(--narvi-layer-min-width, 12rem), var(--bits-floating-anchor-width, 0px))',
38
- maxWidth: 'min(22rem, var(--bits-floating-available-width, 100vw))',
43
+ minWidth: 'max(var(--narvi-layer-min-width, 12rem), var(--anchor-width, 0px))',
44
+ maxWidth: 'min(22rem, var(--available-width, 100vw))',
39
45
  // Never taller than the room left in the window; it scrolls inside instead
40
- maxHeight: 'var(--bits-floating-available-height, 80vh)',
46
+ maxHeight: 'var(--available-height, 80vh)',
41
47
  overflowY: 'auto',
42
48
  overscrollBehavior: 'contain',
43
49
  padding: d('0.25rem'),
@@ -52,20 +58,20 @@ export const layer = stylex.create({
52
58
  outlineStyle: 'solid',
53
59
  outlineWidth: { default: 0, [media.forcedColors]: '1px' },
54
60
  outlineColor: 'CanvasText',
55
- transformOrigin: 'var(--bits-floating-transform-origin, top)',
56
- opacity: { default: 1, '@starting-style': 0, [CLOSED]: 0 },
61
+ transformOrigin: 'var(--transform-origin, top)',
62
+ opacity: { default: 1, '@starting-style': 0, [STARTING]: 0, [CLOSED]: 0 },
57
63
  scale: {
58
64
  default: null,
59
- [media.motion]: { default: 1, '@starting-style': 0.97, [CLOSED]: 0.97 }
65
+ [media.motion]: { default: 1, '@starting-style': 0.97, [STARTING]: 0.97, [CLOSED]: 0.97 }
60
66
  },
61
67
  transitionProperty: { default: 'opacity', [media.motion]: 'opacity, scale' },
62
68
  transitionDuration: { default: motion.fast, [CLOSED]: '80ms' },
63
69
  transitionTimingFunction: motion.easeOut
64
70
  },
65
71
  // A width of its own (`--narvi-layer-width`), in place of fitting its items: still no wider
66
- // than the room bits-ui measures for it
72
+ // than the room measured for it
67
73
  sized: {
68
- width: 'min(var(--narvi-layer-width), var(--bits-floating-available-width, 100vw))',
74
+ width: 'min(var(--narvi-layer-width), var(--available-width, 100vw))',
69
75
  minWidth: 0,
70
76
  maxWidth: 'none'
71
77
  },
@@ -1,10 +1,10 @@
1
1
  /**
2
- * bits-ui leaves `| undefined` off some optional props (`side?: Side`), so an app that
3
- * type-checks with `exactOptionalPropertyTypes` cannot pass `side={maybe}`. Narvi's props that
4
- * are built on bits-ui's go through `Loose`, and bits-ui's own parts that Narvi passes on as
2
+ * ui-sdk leaves `| undefined` off some optional props (`sideOffset?: number`), so an app that
3
+ * type-checks with `exactOptionalPropertyTypes` cannot pass `sideOffset={maybe}`. Narvi's props that
4
+ * are built on ui-sdk's go through `Loose`, and ui-sdk's own parts that Narvi passes on as
5
5
  * they are go through `loose`. `scripts/exact` holds every exported component to it.
6
6
  */
7
- import type { Component } from 'svelte';
7
+ import type { Component, ComponentProps, Snippet } from 'svelte';
8
8
  type OptionalKeys<T> = {
9
9
  [K in keyof T]-?: Record<never, never> extends Pick<T, K> ? K : never;
10
10
  }[keyof T];
@@ -12,11 +12,36 @@ type OptionalKeys<T> = {
12
12
  export type Loose<T> = {
13
13
  [K in keyof T]: K extends OptionalKeys<T> ? T[K] | undefined : T[K];
14
14
  };
15
- /** A component of bits-ui's, typed to take `undefined` for each optional prop. */
15
+ /** A component of ui-sdk's, typed to take `undefined` for each optional prop. */
16
16
  export declare function loose<Props extends Record<string, any>, Exports extends Record<string, any>, Bindings extends keyof Props | ''>(component: Component<Props, Exports, Bindings>): Component<Loose<Props>, Exports, Bindings>;
17
17
  /**
18
18
  * The type `loose` gives a component, written out. Annotate with it where TypeScript cannot
19
19
  * name the inferred one (TS2883): `const Root: Loosened<typeof DropdownMenu.Root> = …`.
20
20
  */
21
21
  export type Loosened<C> = C extends Component<infer Props extends Record<string, any>, infer Exports, infer Bindings> ? Component<Loose<Props>, Exports, Bindings extends keyof Loose<Props> | '' ? Bindings : never> : never;
22
+ /**
23
+ * A ui-sdk part's props, without the `[attribute: string]: unknown` it lets any attribute
24
+ * through with. That index signature swallows every named prop under `Omit` and `Loose`, so a
25
+ * Narvi part built on one starts from this. Svelte's element attributes still take `data-*`.
26
+ *
27
+ * Written out as a mapped type rather than as `Known<ComponentProps<C>>`: an alias of an alias
28
+ * loses its name, and the declarations svelte-package writes would then spell out ui-sdk's
29
+ * props, which name types ui-sdk doesn't export (TS2883). Under its own name it is written as
30
+ * `PartProps<typeof MenuContent>`.
31
+ */
32
+ export type PartProps<C extends Component<any, any, any>> = {
33
+ [K in keyof ComponentProps<C> as string extends K ? never : K]: ComponentProps<C>[K];
34
+ };
35
+ /** `T` without its string index signature, so the named keys survive `Omit`. */
36
+ export type Known<T> = {
37
+ [K in keyof T as string extends K ? never : K]: T[K];
38
+ };
39
+ /**
40
+ * Narvi's `child` snippet, which renders a part as an element of your own: spread `props` on it.
41
+ * Narvi kept the name from bits-ui; ui-sdk calls it `render`, and gives it more (`state`,
42
+ * `children`), which a `child` snippet is free to leave unread.
43
+ */
44
+ export type ChildSnippet = Snippet<[{
45
+ props: Record<string, unknown>;
46
+ }]>;
22
47
  export {};
@@ -1,4 +1,4 @@
1
- /** A component of bits-ui's, typed to take `undefined` for each optional prop. */
1
+ /** A component of ui-sdk's, typed to take `undefined` for each optional prop. */
2
2
  export function loose(component) {
3
3
  return component;
4
4
  }
@@ -20,10 +20,6 @@ export declare const sidebarItemMarker: Readonly<{
20
20
  export declare const tabStripTabMarker: Readonly<{
21
21
  readonly marker: stylex.StyleXClassNameFor<"marker", symbol>;
22
22
  }>;
23
- /** A SegmentedControl's radio, so the label after it follows its state. */
24
- export declare const segmentedInputMarker: Readonly<{
25
- readonly marker: stylex.StyleXClassNameFor<"marker", symbol>;
26
- }>;
27
23
  /** Placed on AppShell.Strip, so the header that holds it takes a band's colour and no line. */
28
24
  export declare const appShellStripMarker: Readonly<{
29
25
  readonly marker: stylex.StyleXClassNameFor<"marker", symbol>;
@@ -12,7 +12,5 @@ export const markdownTableMarker = stylex.defineMarker();
12
12
  export const sidebarItemMarker = stylex.defineMarker();
13
13
  /** A tab of a TabStrip: its close button shows while the pointer or focus is in the tab. */
14
14
  export const tabStripTabMarker = stylex.defineMarker();
15
- /** A SegmentedControl's radio, so the label after it follows its state. */
16
- export const segmentedInputMarker = stylex.defineMarker();
17
15
  /** Placed on AppShell.Strip, so the header that holds it takes a band's colour and no line. */
18
16
  export const appShellStripMarker = stylex.defineMarker();
@@ -5,6 +5,7 @@
5
5
  * the fill of what is chosen.
6
6
  */
7
7
  import * as stylex from '@stylexjs/stylex';
8
+ import './icons.css';
8
9
  export declare const toggle: Readonly<{
9
10
  readonly base: Readonly<{
10
11
  readonly position: stylex.StyleXClassNameFor<"position", "relative">;
@@ -37,6 +38,7 @@ export declare const toggle: Readonly<{
37
38
  readonly transitionTimingFunction: stylex.StyleXClassNameFor<"transitionTimingFunction", "ease" | `${stylex.StyleXVar<string>}, ease, ease, ease`>;
38
39
  }>;
39
40
  readonly sm: Readonly<{
41
+ readonly '--narvi-icon-size': stylex.StyleXClassNameFor<"--narvi-icon-size", "0.875rem">;
40
42
  readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
41
43
  readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
42
44
  readonly gap: stylex.StyleXClassNameFor<"gap", "0.375rem">;
@@ -50,6 +52,7 @@ export declare const toggle: Readonly<{
50
52
  }>;
51
53
  }>;
52
54
  readonly md: Readonly<{
55
+ readonly '--narvi-icon-size': stylex.StyleXClassNameFor<"--narvi-icon-size", "1rem">;
53
56
  readonly minHeight: stylex.StyleXClassNameFor<"minHeight", string>;
54
57
  readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", string>;
55
58
  readonly gap: stylex.StyleXClassNameFor<"gap", "0.4375rem">;
@@ -7,7 +7,8 @@
7
7
  import * as stylex from '@stylexjs/stylex';
8
8
  import { colors, density, font, motion, radius } from '../tokens.stylex.js';
9
9
  import { media } from '../media.stylex.js';
10
- const ON = ':is([data-state="on"])';
10
+ import './icons.css';
11
+ const ON = ':is([data-pressed])';
11
12
  const DISABLED = ':is([data-disabled])';
12
13
  /** A length at the window's density (`density` in the tokens). */
13
14
  const d = (rem) => `calc(${rem} * ${density.factor})`;
@@ -64,8 +65,10 @@ export const toggle = stylex.create({
64
65
  [media.motion]: `${motion.easeOut}, ease, ease, ease`
65
66
  }
66
67
  },
67
- // The same heights as Button's, and the same 40px reach for a finger, at any density
68
+ // The same heights as Button's, and the same 40px reach for a finger, at any density. Each sets
69
+ // the size of an icon put inside it, as Button's do (`icons.css`): 14 and 16px.
68
70
  sm: {
71
+ '--narvi-icon-size': '0.875rem',
69
72
  minHeight: d('1.75rem'),
70
73
  paddingInline: d('0.625rem'),
71
74
  gap: '0.375rem',
@@ -79,6 +82,7 @@ export const toggle = stylex.create({
79
82
  }
80
83
  },
81
84
  md: {
85
+ '--narvi-icon-size': '1rem',
82
86
  minHeight: d('2rem'),
83
87
  paddingInline: d('0.75rem'),
84
88
  gap: '0.4375rem',
@@ -1,9 +1,10 @@
1
1
  /**
2
- * A bits-ui tooltip trigger's props, for an element in a group that moves its own focus (the
3
- * radios of a SegmentedControl, the tabs of Tabs). Left off: the trigger's `tabindex`, which
4
- * would make every item a tab stop, and its `disabled`. A click the keyboard makes (`detail`
5
- * 0, as when the arrow keys choose a radio) no longer shuts the tooltip, so it shows as the
6
- * keys reach an item. A spread keeps the attachment bits-ui finds the trigger by, which is
7
- * keyed by a symbol.
2
+ * A tooltip trigger's props, for an element in a group that moves its own focus (the radios of a
3
+ * SegmentedControl, the tabs of Tabs). Left off: a `tabindex` or `disabled`, which would make
4
+ * every item a tab stop or shut one, and the trigger's `type`, which the group's own part sets
5
+ * as it needs. The mark it adds tells the Tooltip.Root that a click the keyboard makes (`detail`
6
+ * 0, as when the arrow keys choose a radio) should not shut the tooltip, so it shows as the keys
7
+ * reach an item. A spread keeps the attachment ui-sdk binds the trigger with, which is keyed by
8
+ * a symbol.
8
9
  */
9
10
  export declare function groupTrigger(props: Record<string, unknown>): Record<string, unknown>;
@@ -1,19 +1,16 @@
1
1
  /**
2
- * A bits-ui tooltip trigger's props, for an element in a group that moves its own focus (the
3
- * radios of a SegmentedControl, the tabs of Tabs). Left off: the trigger's `tabindex`, which
4
- * would make every item a tab stop, and its `disabled`. A click the keyboard makes (`detail`
5
- * 0, as when the arrow keys choose a radio) no longer shuts the tooltip, so it shows as the
6
- * keys reach an item. A spread keeps the attachment bits-ui finds the trigger by, which is
7
- * keyed by a symbol.
2
+ * A tooltip trigger's props, for an element in a group that moves its own focus (the radios of a
3
+ * SegmentedControl, the tabs of Tabs). Left off: a `tabindex` or `disabled`, which would make
4
+ * every item a tab stop or shut one, and the trigger's `type`, which the group's own part sets
5
+ * as it needs. The mark it adds tells the Tooltip.Root that a click the keyboard makes (`detail`
6
+ * 0, as when the arrow keys choose a radio) should not shut the tooltip, so it shows as the keys
7
+ * reach an item. A spread keeps the attachment ui-sdk binds the trigger with, which is keyed by
8
+ * a symbol.
8
9
  */
9
10
  export function groupTrigger(props) {
10
- const rest = { ...props };
11
+ const rest = { ...props, 'data-tooltip-group': '' };
12
+ delete rest.type;
11
13
  delete rest.tabindex;
12
14
  delete rest.disabled;
13
- const click = rest.onclick;
14
- rest.onclick = (event) => {
15
- if (event.detail !== 0)
16
- click?.(event);
17
- };
18
15
  return rest;
19
16
  }
package/dist/vite.d.ts CHANGED
@@ -26,11 +26,17 @@ export declare const CSS_TARGET: string[];
26
26
  export declare const NARVI_LAYER = "narvi";
27
27
  /** The layer inside it that holds `@diegopluna/narvi/base.css`, below every component. */
28
28
  export declare const BASE_LAYER = "narvi.base";
29
+ /**
30
+ * The layer ui-sdk, which Narvi's popups and controls are built on, writes its few rules into at
31
+ * runtime (a closed popup hidden, the popover's own box reset). It is named before Narvi's, so a
32
+ * component's padding and position beat the reset whichever is read first.
33
+ */
34
+ export declare const UI_SDK_LAYER = "ui-sdk";
29
35
  /**
30
36
  * The order of Narvi's layer among Tailwind's, as the first rule of a stylesheet. With
31
37
  * `narvi({ tailwind: true })` the plugin writes it at the top of each one that names a layer.
32
38
  */
33
- export declare const TAILWIND_ORDER = "@layer theme, base, narvi.base, components, utilities;";
39
+ export declare const TAILWIND_ORDER = "@layer theme, base, ui-sdk, narvi.base, components, utilities;";
34
40
  /**
35
41
  * Puts Tailwind's layer order, with Narvi's in it, at the top of a stylesheet that names one of
36
42
  * those layers. The browser orders layers as it first meets their names, and the first stylesheet
package/dist/vite.js CHANGED
@@ -2,6 +2,7 @@ import stylex from '@stylexjs/unplugin';
2
2
  import { Features } from 'lightningcss';
3
3
  import { assertAfterSvelte } from './internal/plugin-order.js';
4
4
  const PACKAGE = '@diegopluna/narvi';
5
+ const UI_SDK_CORE = '@ui-sdk/core';
5
6
  /**
6
7
  * The oldest browsers with `light-dark()`, which Narvi's colours are written in. The plugin
7
8
  * makes them the build's CSS target unless the app sets `build.cssTarget` itself.
@@ -11,11 +12,17 @@ export const CSS_TARGET = ['chrome123', 'edge123', 'firefox120', 'safari17.5'];
11
12
  export const NARVI_LAYER = 'narvi';
12
13
  /** The layer inside it that holds `@diegopluna/narvi/base.css`, below every component. */
13
14
  export const BASE_LAYER = `${NARVI_LAYER}.base`;
15
+ /**
16
+ * The layer ui-sdk, which Narvi's popups and controls are built on, writes its few rules into at
17
+ * runtime (a closed popup hidden, the popover's own box reset). It is named before Narvi's, so a
18
+ * component's padding and position beat the reset whichever is read first.
19
+ */
20
+ export const UI_SDK_LAYER = 'ui-sdk';
14
21
  /**
15
22
  * The order of Narvi's layer among Tailwind's, as the first rule of a stylesheet. With
16
23
  * `narvi({ tailwind: true })` the plugin writes it at the top of each one that names a layer.
17
24
  */
18
- export const TAILWIND_ORDER = `@layer theme, base, ${BASE_LAYER}, components, utilities;`;
25
+ export const TAILWIND_ORDER = `@layer theme, base, ${UI_SDK_LAYER}, ${BASE_LAYER}, components, utilities;`;
19
26
  // A stylesheet Vite compiles, including a Svelte component's (`?svelte&type=style&lang.css`),
20
27
  // and not one imported as a URL or as text.
21
28
  const CSS_RE = /\.(?:css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/;
@@ -56,11 +63,11 @@ export function narvi({ tailwind = false, ...options } = {}) {
56
63
  // below every component whichever stylesheet the browser reads first.
57
64
  useCSSLayers: tailwind
58
65
  ? {
59
- before: ['theme', 'base', BASE_LAYER],
66
+ before: ['theme', 'base', UI_SDK_LAYER, BASE_LAYER],
60
67
  prefix: NARVI_LAYER,
61
68
  after: ['components', 'utilities']
62
69
  }
63
- : { before: [BASE_LAYER], prefix: NARVI_LAYER },
70
+ : { before: [UI_SDK_LAYER, BASE_LAYER], prefix: NARVI_LAYER },
64
71
  // The style applied last wins, a shorthand over a longhand too: a caller's `padding` in
65
72
  // `sx` sets a part's padding, which StyleX's default would leave to the part's own
66
73
  // `paddingInline`, whatever the order
@@ -94,9 +101,17 @@ export function narvi({ tailwind = false, ...options } = {}) {
94
101
  // components and leave the page light. An app that sets its own target keeps it.
95
102
  config(user, env) {
96
103
  const result = config?.call(this, user, env) ?? {};
104
+ // ui-sdk's core is plain ESM with no dependencies of its own, imported by subpath
105
+ // (`@ui-sdk/core/menu`, `/dialog`…) from ui-sdk's Svelte parts. Left to the dependency
106
+ // optimizer, each subpath is found only when a page first opens a part that uses it, and
107
+ // Vite reloads the page (a test, in Vitest) to bundle it. Served as it is, it never is.
108
+ const optimizeDeps = {
109
+ ...result.optimizeDeps,
110
+ exclude: [...(result.optimizeDeps?.exclude ?? []), UI_SDK_CORE]
111
+ };
97
112
  if (user.build?.cssTarget !== undefined)
98
- return result;
99
- return { ...result, build: { ...result.build, cssTarget: CSS_TARGET } };
113
+ return { ...result, optimizeDeps };
114
+ return { ...result, optimizeDeps, build: { ...result.build, cssTarget: CSS_TARGET } };
100
115
  },
101
116
  // A wrong order is the one mistake that stops the build, so it is named here
102
117
  configResolved(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegopluna/narvi",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "packageManager": "pnpm@12.18.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -186,7 +186,8 @@
186
186
  "@pierre/highlights": "0.5.0",
187
187
  "@stylexjs/stylex": "0.19.1",
188
188
  "@stylexjs/unplugin": "0.19.1",
189
- "bits-ui": "^2.20.6",
189
+ "@ui-sdk/core": "0.1.0-beta.5",
190
+ "@ui-sdk/svelte": "0.1.0-beta.5",
190
191
  "decode-named-character-reference": "1.3.0",
191
192
  "dompurify": "3.4.17",
192
193
  "esm-env": "^1.2.2",