@adea-ai/ui 0.162.14 → 0.162.15

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 (196) hide show
  1. package/dist/components/composites/accent-picker/accent-picker.js +1 -1
  2. package/dist/components/composites/accent-picker/accent-picker.js.map +1 -1
  3. package/dist/components/composites/accent-picker/custom-color-popover.js +1 -1
  4. package/dist/components/composites/accent-picker/custom-color-popover.js.map +1 -1
  5. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
  6. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  7. package/dist/components/composites/appearance-editor/appearance-choices.d.ts.map +1 -1
  8. package/dist/components/composites/appearance-editor/appearance-choices.js +2 -2
  9. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  10. package/dist/components/composites/confirmation/confirmation.js +1 -1
  11. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  12. package/dist/components/composites/icon-picker/icon-picker.js +1 -1
  13. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  14. package/dist/components/composites/list-row/list-row-control.js +1 -1
  15. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  16. package/dist/components/composites/settings/settings.js +1 -1
  17. package/dist/components/composites/settings/settings.js.map +1 -1
  18. package/dist/components/composites/stack-trace/stack-trace.js +1 -1
  19. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  20. package/dist/components/composites/tree/tree.js +1 -1
  21. package/dist/components/composites/tree/tree.js.map +1 -1
  22. package/dist/components/composites/workspace-mark/workspace-mark.js +1 -1
  23. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  24. package/dist/components/conversation/thread-panel.js +1 -1
  25. package/dist/components/conversation/thread-panel.js.map +1 -1
  26. package/dist/components/layout/app-shell/skip-link.js +1 -1
  27. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  28. package/dist/components/layout/side-rail/side-rail.js +1 -1
  29. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  30. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.js +1 -1
  31. package/dist/components/layout/sidebar-nav/sidebar-nav-classes.js.map +1 -1
  32. package/dist/components/layout/sidebar-nav/sidebar-nav.js +1 -1
  33. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  34. package/dist/components/layout/top-bar/top-bar.js +2 -2
  35. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  36. package/dist/components/ui/accordion/accordion.js +1 -1
  37. package/dist/components/ui/accordion/accordion.js.map +1 -1
  38. package/dist/components/ui/annotation-surface/annotation-surface.js +1 -1
  39. package/dist/components/ui/annotation-surface/annotation-surface.js.map +1 -1
  40. package/dist/components/ui/attachment/attachment.js +2 -2
  41. package/dist/components/ui/attachment/attachment.js.map +1 -1
  42. package/dist/components/ui/board/board.js +2 -2
  43. package/dist/components/ui/board/board.js.map +1 -1
  44. package/dist/components/ui/breadcrumb/breadcrumb.js +1 -1
  45. package/dist/components/ui/breadcrumb/breadcrumb.js.map +1 -1
  46. package/dist/components/ui/button/button.js +1 -1
  47. package/dist/components/ui/button/button.js.map +1 -1
  48. package/dist/components/ui/checkbox/checkbox.js +1 -1
  49. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  50. package/dist/components/ui/collapsible/collapsible.js +1 -1
  51. package/dist/components/ui/collapsible/collapsible.js.map +1 -1
  52. package/dist/components/ui/combobox/combobox.js +3 -3
  53. package/dist/components/ui/combobox/combobox.js.map +1 -1
  54. package/dist/components/ui/field/field.js +2 -2
  55. package/dist/components/ui/field/field.js.map +1 -1
  56. package/dist/components/ui/input/input-control.js +1 -1
  57. package/dist/components/ui/input/input-control.js.map +1 -1
  58. package/dist/components/ui/input-group/input-group.js +1 -1
  59. package/dist/components/ui/input-group/input-group.js.map +1 -1
  60. package/dist/components/ui/input-otp/input-otp.js +1 -1
  61. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  62. package/dist/components/ui/menubar/menubar.js +1 -1
  63. package/dist/components/ui/menubar/menubar.js.map +1 -1
  64. package/dist/components/ui/native-select/native-select.js +1 -1
  65. package/dist/components/ui/native-select/native-select.js.map +1 -1
  66. package/dist/components/ui/pagination/pagination.js +1 -1
  67. package/dist/components/ui/pagination/pagination.js.map +1 -1
  68. package/dist/components/ui/questionnaire/questionnaire.js +1 -1
  69. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  70. package/dist/components/ui/radio-group/radio-group.js +2 -2
  71. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  72. package/dist/components/ui/scroll-area/scroll-area.js +1 -1
  73. package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
  74. package/dist/components/ui/select/select.js +1 -1
  75. package/dist/components/ui/select/select.js.map +1 -1
  76. package/dist/components/ui/slider/slider.js +1 -1
  77. package/dist/components/ui/slider/slider.js.map +1 -1
  78. package/dist/components/ui/switch/switch.js +1 -1
  79. package/dist/components/ui/switch/switch.js.map +1 -1
  80. package/dist/components/ui/tabs/tabs.js +1 -1
  81. package/dist/components/ui/tabs/tabs.js.map +1 -1
  82. package/dist/components/ui/text-link/text-link.js +1 -1
  83. package/dist/components/ui/text-link/text-link.js.map +1 -1
  84. package/dist/components/ui/textarea/textarea.js +1 -1
  85. package/dist/components/ui/textarea/textarea.js.map +1 -1
  86. package/dist/components/ui/toast/toast.js +1 -1
  87. package/dist/components/ui/toast/toast.js.map +1 -1
  88. package/dist/components/ui/trace/trace.js +1 -1
  89. package/dist/components/ui/trace/trace.js.map +1 -1
  90. package/dist/lib/overlay.d.ts.map +1 -1
  91. package/dist/lib/overlay.js +1 -1
  92. package/dist/lib/overlay.js.map +1 -1
  93. package/dist/lib/tokens.d.ts.map +1 -1
  94. package/dist/lib/tokens.js +2 -2
  95. package/dist/lib/tokens.js.map +1 -1
  96. package/dist/lib/variants.d.ts +1 -1
  97. package/dist/lib/variants.d.ts.map +1 -1
  98. package/dist/lib/variants.js +1 -1
  99. package/dist/lib/variants.js.map +1 -1
  100. package/dist/r/src/components/composites/accent-picker/accent-picker.tsx +1 -1
  101. package/dist/r/src/components/composites/accent-picker/custom-color-popover.tsx +1 -1
  102. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +1 -1
  103. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +2 -5
  104. package/dist/r/src/components/composites/confirmation/confirmation.tsx +1 -1
  105. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  106. package/dist/r/src/components/composites/list-row/list-row-control.tsx +1 -1
  107. package/dist/r/src/components/composites/settings/settings.tsx +1 -1
  108. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +1 -1
  109. package/dist/r/src/components/composites/tree/tree.tsx +1 -1
  110. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +1 -1
  111. package/dist/r/src/components/conversation/thread-panel.tsx +1 -1
  112. package/dist/r/src/components/layout/app-shell/skip-link.tsx +1 -1
  113. package/dist/r/src/components/layout/side-rail/side-rail.tsx +1 -1
  114. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav-classes.ts +1 -1
  115. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +1 -1
  116. package/dist/r/src/components/layout/top-bar/top-bar.tsx +2 -2
  117. package/dist/r/src/components/ui/accordion/accordion.tsx +1 -1
  118. package/dist/r/src/components/ui/annotation-surface/annotation-surface.tsx +1 -1
  119. package/dist/r/src/components/ui/attachment/attachment.tsx +2 -2
  120. package/dist/r/src/components/ui/board/board.tsx +2 -2
  121. package/dist/r/src/components/ui/breadcrumb/breadcrumb.tsx +1 -1
  122. package/dist/r/src/components/ui/button/button.tsx +1 -1
  123. package/dist/r/src/components/ui/checkbox/checkbox.tsx +1 -1
  124. package/dist/r/src/components/ui/collapsible/collapsible.tsx +1 -1
  125. package/dist/r/src/components/ui/combobox/combobox.tsx +3 -3
  126. package/dist/r/src/components/ui/field/field.tsx +2 -2
  127. package/dist/r/src/components/ui/input/input-control.tsx +1 -1
  128. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
  129. package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
  130. package/dist/r/src/components/ui/menubar/menubar.tsx +1 -1
  131. package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
  132. package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
  133. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +1 -1
  134. package/dist/r/src/components/ui/radio-group/radio-group.tsx +2 -2
  135. package/dist/r/src/components/ui/scroll-area/scroll-area.tsx +1 -1
  136. package/dist/r/src/components/ui/select/select.tsx +1 -1
  137. package/dist/r/src/components/ui/slider/slider.tsx +1 -1
  138. package/dist/r/src/components/ui/switch/switch.tsx +1 -1
  139. package/dist/r/src/components/ui/tabs/tabs.tsx +1 -1
  140. package/dist/r/src/components/ui/text-link/text-link.tsx +1 -1
  141. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
  142. package/dist/r/src/components/ui/toast/toast.tsx +1 -1
  143. package/dist/r/src/components/ui/trace/trace.tsx +1 -1
  144. package/dist/r/src/lib/overlay.ts +1 -1
  145. package/dist/r/src/lib/tokens.ts +4 -2
  146. package/dist/r/src/lib/variants.ts +1 -1
  147. package/dist/r/src/styles/base.css +35 -7
  148. package/package.json +1 -1
  149. package/src/components/composites/accent-picker/accent-picker.tsx +1 -1
  150. package/src/components/composites/accent-picker/custom-color-popover.tsx +1 -1
  151. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +1 -1
  152. package/src/components/composites/appearance-editor/appearance-choices.tsx +2 -5
  153. package/src/components/composites/confirmation/confirmation.tsx +1 -1
  154. package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  155. package/src/components/composites/list-row/list-row-control.tsx +1 -1
  156. package/src/components/composites/settings/settings.tsx +1 -1
  157. package/src/components/composites/stack-trace/stack-trace.tsx +1 -1
  158. package/src/components/composites/tree/tree.tsx +1 -1
  159. package/src/components/composites/workspace-mark/workspace-mark.tsx +1 -1
  160. package/src/components/conversation/thread-panel.tsx +1 -1
  161. package/src/components/layout/app-shell/skip-link.tsx +1 -1
  162. package/src/components/layout/side-rail/side-rail.tsx +1 -1
  163. package/src/components/layout/sidebar-nav/sidebar-nav-classes.ts +1 -1
  164. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +1 -1
  165. package/src/components/layout/top-bar/top-bar.tsx +2 -2
  166. package/src/components/ui/accordion/accordion.tsx +1 -1
  167. package/src/components/ui/annotation-surface/annotation-surface.tsx +1 -1
  168. package/src/components/ui/attachment/attachment.tsx +2 -2
  169. package/src/components/ui/board/board.tsx +2 -2
  170. package/src/components/ui/breadcrumb/breadcrumb.tsx +1 -1
  171. package/src/components/ui/button/button.tsx +1 -1
  172. package/src/components/ui/checkbox/checkbox.tsx +1 -1
  173. package/src/components/ui/collapsible/collapsible.tsx +1 -1
  174. package/src/components/ui/combobox/combobox.tsx +3 -3
  175. package/src/components/ui/field/field.tsx +2 -2
  176. package/src/components/ui/input/input-control.tsx +1 -1
  177. package/src/components/ui/input-group/input-group.tsx +1 -1
  178. package/src/components/ui/input-otp/input-otp.tsx +1 -1
  179. package/src/components/ui/menubar/menubar.tsx +1 -1
  180. package/src/components/ui/native-select/native-select.tsx +1 -1
  181. package/src/components/ui/pagination/pagination.tsx +1 -1
  182. package/src/components/ui/questionnaire/questionnaire.tsx +1 -1
  183. package/src/components/ui/radio-group/radio-group.tsx +2 -2
  184. package/src/components/ui/scroll-area/scroll-area.tsx +1 -1
  185. package/src/components/ui/select/select.tsx +1 -1
  186. package/src/components/ui/slider/slider.tsx +1 -1
  187. package/src/components/ui/switch/switch.tsx +1 -1
  188. package/src/components/ui/tabs/tabs.tsx +1 -1
  189. package/src/components/ui/text-link/text-link.tsx +1 -1
  190. package/src/components/ui/textarea/textarea.tsx +1 -1
  191. package/src/components/ui/toast/toast.tsx +1 -1
  192. package/src/components/ui/trace/trace.tsx +1 -1
  193. package/src/lib/overlay.ts +1 -1
  194. package/src/lib/tokens.ts +4 -2
  195. package/src/lib/variants.ts +1 -1
  196. package/src/styles/base.css +35 -7
@@ -1 +1 @@
1
- {"version":3,"file":"list-row-control.js","names":["<Dynamic\n component={rowAs()}\n data-slot=\"list-row\"\n type={rowAs() === 'button' ? (local.type ?? 'button') : local.type}\n tabindex={local.tabindex ?? (rowAs() === 'button' || rowAs() === 'a' ? 0 : undefined)}\n aria-current={local.selected ? 'true' : undefined}\n data-selected={local.selected ? '' : undefined}\n data-description={local.description ? '' : undefined}\n data-stack-trailing={local.stackTrailing === false ? 'never' : undefined}\n class={cn(\n 'group/row list-row-description flex min-w-0 items-center gap-2.5 rounded-md px-2 text-sm',\n 'transition-colors ease-out outline-none',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n {\n 'h-row-sm': local.dense && !local.description,\n 'h-row-md': !local.dense && !local.description,\n },\n {\n 'bg-primary-subtle text-foreground': local.selected,\n 'hover:bg-surface-hover': !local.selected,\n },\n local.class\n )}\n {...(rest as ComponentProps<'div'>)}\n >\n <Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>\n <div data-slot=\"list-row-content\" class=\"flex min-w-0 flex-1 items-center gap-2.5\">\n <span data-slot=\"list-row-label\" class=\"flex min-w-0 flex-1 flex-col\">\n <span class=\"truncate\">{local.children}</span>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>\n </span>\n <Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>\n </div>\n </Dynamic>","rowAs() === 'button' ? (local.type ?? 'button') : local.type","<Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>","<Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>","<Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>","_$insert","_$effect","_$readShallow","_$className"],"sources":["../../../../src/components/composites/list-row/list-row-control.tsx"],"sourcesContent":["import type { ComponentProps, JSX, ValidComponent } from '@solidjs/web'\nimport { Show, omit } from 'solid-js'\nimport { Dynamic } from '@solidjs/web'\nimport { cn } from '#lib/utils'\n\n/**\n * The props of `T` with `Props` laid over them, plus `as`: the shape of the\n * polymorphic props these types have always had.\n */\nexport type PolymorphicProps<T extends ValidComponent, Props extends object = {}> = Omit<\n ComponentProps<T>,\n keyof Props | 'as'\n> &\n Props & { as?: T | keyof JSX.IntrinsicElements }\n\nexport type ListRowControlProps<T extends ValidComponent = 'div'> = PolymorphicProps<\n T,\n {\n class?: string\n /** Marks the row as current. Sets `aria-current` for a link row. */\n selected?: boolean\n /** Draw the row at the compact height. */\n dense?: boolean\n /** Leading slot: an avatar, an icon, a checkbox. */\n leading?: JSX.Element\n /** Trailing slot: a count, a menu trigger, a timestamp. */\n trailing?: JSX.Element\n /** A second line that wraps and grows the row to fit its content. */\n description?: string\n /**\n * Keep the description on one line and end it with an ellipsis instead of\n * wrapping, so a described row stays at its minimum height however long the\n * text is. Use it where rows must be a predictable height (a virtualised\n * queue); leave it off where the whole description should be readable. Pair\n * it with a `tooltip` when the full text matters, and with\n * `stackTrailing={false}` to keep a trailing slot beside the text.\n */\n truncateDescription?: boolean\n /**\n * Whether a described row may drop its trailing slot onto its own line when\n * the row gets narrow (the default). Pass `false` for a short, truncating\n * label whose single action must stay beside it.\n */\n stackTrailing?: boolean\n /** Native button type; defaults to `button` for button rows. */\n type?: ComponentProps<'button'>['type']\n }\n>\n\ntype ListRowControlBaseProps<T extends ValidComponent = 'div'> = ListRowControlProps<T> & {\n as?: T\n}\n\n/** A tree-shakeable ListRow renderer without optional tooltip behavior. */\nexport function ListRowControl<T extends ValidComponent = 'div'>(props: ListRowControlProps<T>) {\n const local = props as ListRowControlBaseProps\n const rest = omit(\n local,\n 'as',\n 'class',\n 'selected',\n 'dense',\n 'leading',\n 'trailing',\n 'description',\n 'truncateDescription',\n 'stackTrailing',\n 'type',\n 'tabindex',\n 'children'\n )\n const hasClickHandler = () => Boolean(rest.onClick)\n const rowAs = (): ValidComponent => local.as ?? (hasClickHandler() ? 'button' : 'div')\n\n // Solid's Dynamic directly: a polymorphic wrapper would add a prop split and\n // merge around the same call for every row.\n return (\n <Dynamic\n component={rowAs()}\n data-slot=\"list-row\"\n type={rowAs() === 'button' ? (local.type ?? 'button') : local.type}\n tabindex={local.tabindex ?? (rowAs() === 'button' || rowAs() === 'a' ? 0 : undefined)}\n aria-current={local.selected ? 'true' : undefined}\n data-selected={local.selected ? '' : undefined}\n data-description={local.description ? '' : undefined}\n data-stack-trailing={local.stackTrailing === false ? 'never' : undefined}\n class={cn(\n 'group/row list-row-description flex min-w-0 items-center gap-2.5 rounded-md px-2 text-sm',\n 'transition-colors ease-out outline-none',\n 'focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle',\n {\n 'h-row-sm': local.dense && !local.description,\n 'h-row-md': !local.dense && !local.description,\n },\n {\n 'bg-primary-subtle text-foreground': local.selected,\n 'hover:bg-surface-hover': !local.selected,\n },\n local.class\n )}\n {...(rest as ComponentProps<'div'>)}\n >\n <Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>\n <div data-slot=\"list-row-content\" class=\"flex min-w-0 flex-1 items-center gap-2.5\">\n <span data-slot=\"list-row-label\" class=\"flex min-w-0 flex-1 flex-col\">\n <span class=\"truncate\">{local.children}</span>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>\n </span>\n <Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>\n </div>\n </Dynamic>\n )\n}\n"],"mappings":";;;;;;;;;AAsDA,SAAgB,eAAiD,OAA+B;CAC9F,MAAM,QAAQ;CACd,MAAM,OAAO,KACX,OACA,MACA,SACA,YACA,SACA,WACA,YACA,eACA,uBACA,iBACA,QACA,YACA,UACF;CACA,MAAM,wBAAwB,QAAQ,KAAK,OAAO;CAClD,MAAM,cAA8B,MAAM,OAAO,gBAAgB,IAAI,WAAW;CAIhF,OACEA,gBAAAA,SAAAA,WAAAA;EACE,IAAA,YAAA;GAAW,OAAA,MAAM;EAAC;EAClB,aAAU;EACV,IAAA,OAAA;GAAMC,OAAAA,WAAAA;IAAM,OAAA,MAAA,MAAM;GAA+C,CAAA,CAAC,CAAD,IAAnC,MAAM,QAAQ,WAAY,MAAM;EAAI;EAClE,IAAA,WAAA;GAAU,OAAA,MAAM,aAAa,MAA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A,GAlBR,IAmBM;GApBRH,OAAA,MAqBED,gBAAAA,MAAAA;IAAM,IAAA,OAAA;KAAM,OAAA,MAAM;IAAQ;IAA1BA,WACI,wBACA;KAQM,IAAA,QAAA,QAAA;KARNC,OAAA,OAOG,YACG;KANJC,aAAAC,YAAO,GACL,4CACA,MAAM,WAAW,oBAAoB,uBACvC,CAAC,IAHD,KAAA,QAAA;MAGCC,UAAA,OAAA,KAAA,GAAA;;KALH,OAAA;IAQM,EAAA,CAAA;GAEJ,CAAA,GAjCR,IAkCK;GAlCL,OAAA;EAkCK,EAAA,CAAA,CA5CN;CA6CQ,EAAA,CAAA,CAAA;AAEb"}
1
+ {"version":3,"file":"list-row-control.js","names":["<Dynamic\n component={rowAs()}\n data-slot=\"list-row\"\n type={rowAs() === 'button' ? (local.type ?? 'button') : local.type}\n tabindex={local.tabindex ?? (rowAs() === 'button' || rowAs() === 'a' ? 0 : undefined)}\n aria-current={local.selected ? 'true' : undefined}\n data-selected={local.selected ? '' : undefined}\n data-description={local.description ? '' : undefined}\n data-stack-trailing={local.stackTrailing === false ? 'never' : undefined}\n class={cn(\n 'group/row list-row-description flex min-w-0 items-center gap-2.5 rounded-md px-2 text-sm',\n 'transition-colors ease-out outline-none',\n 'focus-visible:border-ring focus-visible:focus-outline-inset',\n {\n 'h-row-sm': local.dense && !local.description,\n 'h-row-md': !local.dense && !local.description,\n },\n {\n 'bg-primary-subtle text-foreground': local.selected,\n 'hover:bg-surface-hover': !local.selected,\n },\n local.class\n )}\n {...(rest as ComponentProps<'div'>)}\n >\n <Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>\n <div data-slot=\"list-row-content\" class=\"flex min-w-0 flex-1 items-center gap-2.5\">\n <span data-slot=\"list-row-label\" class=\"flex min-w-0 flex-1 flex-col\">\n <span class=\"truncate\">{local.children}</span>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>\n </span>\n <Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>\n </div>\n </Dynamic>","rowAs() === 'button' ? (local.type ?? 'button') : local.type","<Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>","<Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>","<Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>","_$insert","_$effect","_$readShallow","_$className"],"sources":["../../../../src/components/composites/list-row/list-row-control.tsx"],"sourcesContent":["import type { ComponentProps, JSX, ValidComponent } from '@solidjs/web'\nimport { Show, omit } from 'solid-js'\nimport { Dynamic } from '@solidjs/web'\nimport { cn } from '#lib/utils'\n\n/**\n * The props of `T` with `Props` laid over them, plus `as`: the shape of the\n * polymorphic props these types have always had.\n */\nexport type PolymorphicProps<T extends ValidComponent, Props extends object = {}> = Omit<\n ComponentProps<T>,\n keyof Props | 'as'\n> &\n Props & { as?: T | keyof JSX.IntrinsicElements }\n\nexport type ListRowControlProps<T extends ValidComponent = 'div'> = PolymorphicProps<\n T,\n {\n class?: string\n /** Marks the row as current. Sets `aria-current` for a link row. */\n selected?: boolean\n /** Draw the row at the compact height. */\n dense?: boolean\n /** Leading slot: an avatar, an icon, a checkbox. */\n leading?: JSX.Element\n /** Trailing slot: a count, a menu trigger, a timestamp. */\n trailing?: JSX.Element\n /** A second line that wraps and grows the row to fit its content. */\n description?: string\n /**\n * Keep the description on one line and end it with an ellipsis instead of\n * wrapping, so a described row stays at its minimum height however long the\n * text is. Use it where rows must be a predictable height (a virtualised\n * queue); leave it off where the whole description should be readable. Pair\n * it with a `tooltip` when the full text matters, and with\n * `stackTrailing={false}` to keep a trailing slot beside the text.\n */\n truncateDescription?: boolean\n /**\n * Whether a described row may drop its trailing slot onto its own line when\n * the row gets narrow (the default). Pass `false` for a short, truncating\n * label whose single action must stay beside it.\n */\n stackTrailing?: boolean\n /** Native button type; defaults to `button` for button rows. */\n type?: ComponentProps<'button'>['type']\n }\n>\n\ntype ListRowControlBaseProps<T extends ValidComponent = 'div'> = ListRowControlProps<T> & {\n as?: T\n}\n\n/** A tree-shakeable ListRow renderer without optional tooltip behavior. */\nexport function ListRowControl<T extends ValidComponent = 'div'>(props: ListRowControlProps<T>) {\n const local = props as ListRowControlBaseProps\n const rest = omit(\n local,\n 'as',\n 'class',\n 'selected',\n 'dense',\n 'leading',\n 'trailing',\n 'description',\n 'truncateDescription',\n 'stackTrailing',\n 'type',\n 'tabindex',\n 'children'\n )\n const hasClickHandler = () => Boolean(rest.onClick)\n const rowAs = (): ValidComponent => local.as ?? (hasClickHandler() ? 'button' : 'div')\n\n // Solid's Dynamic directly: a polymorphic wrapper would add a prop split and\n // merge around the same call for every row.\n return (\n <Dynamic\n component={rowAs()}\n data-slot=\"list-row\"\n type={rowAs() === 'button' ? (local.type ?? 'button') : local.type}\n tabindex={local.tabindex ?? (rowAs() === 'button' || rowAs() === 'a' ? 0 : undefined)}\n aria-current={local.selected ? 'true' : undefined}\n data-selected={local.selected ? '' : undefined}\n data-description={local.description ? '' : undefined}\n data-stack-trailing={local.stackTrailing === false ? 'never' : undefined}\n class={cn(\n 'group/row list-row-description flex min-w-0 items-center gap-2.5 rounded-md px-2 text-sm',\n 'transition-colors ease-out outline-none',\n 'focus-visible:border-ring focus-visible:focus-outline-inset',\n {\n 'h-row-sm': local.dense && !local.description,\n 'h-row-md': !local.dense && !local.description,\n },\n {\n 'bg-primary-subtle text-foreground': local.selected,\n 'hover:bg-surface-hover': !local.selected,\n },\n local.class\n )}\n {...(rest as ComponentProps<'div'>)}\n >\n <Show when={local.leading}>\n {(leadingSlot) => (\n <span\n data-slot=\"list-row-leading\"\n class=\"flex shrink-0 items-center justify-center [&_svg]:size-4\"\n >\n {leadingSlot()}\n </span>\n )}\n </Show>\n <div data-slot=\"list-row-content\" class=\"flex min-w-0 flex-1 items-center gap-2.5\">\n <span data-slot=\"list-row-label\" class=\"flex min-w-0 flex-1 flex-col\">\n <span class=\"truncate\">{local.children}</span>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <span\n data-slot=\"list-row-description\"\n class={cn(\n 'text-xs',\n {\n truncate: local.truncateDescription,\n 'break-words': !local.truncateDescription,\n },\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {descriptionSlot()}\n </span>\n )}\n </Show>\n </span>\n <Show when={local.trailing}>\n {(trailingSlot) => (\n <span\n data-slot=\"list-row-trailing\"\n class={cn(\n 'ms-auto flex shrink-0 items-center gap-1',\n local.selected ? 'text-foreground' : 'text-muted-foreground'\n )}\n >\n {trailingSlot()}\n </span>\n )}\n </Show>\n </div>\n </Dynamic>\n )\n}\n"],"mappings":";;;;;;;;;AAsDA,SAAgB,eAAiD,OAA+B;CAC9F,MAAM,QAAQ;CACd,MAAM,OAAO,KACX,OACA,MACA,SACA,YACA,SACA,WACA,YACA,eACA,uBACA,iBACA,QACA,YACA,UACF;CACA,MAAM,wB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OAEEF,gBAAAA,MAAAA;IAAM,IAAA,OAAA;KAAM,OAAA,MAAM;IAAW;IAA7BA,WACI,2BACA;KAYM,IAAA,QAAA,QAAA;KAZNE,OAAA,OAWG,eACG;KAVJC,aAAAC,YAAO,GACL,WACA;MACE,UAAU,MAAM;MAChB,eAAe,CAAC,MAAM;KACxB,GACA,MAAM,WAAW,oBAAoB,uBACvC,CAAC,IAPD,KAAA,QAAA;MAOCC,UAAA,OAAA,KAAA,GAAA;;KATH,OAAA;IAYM,EAAA,CAAA;GAEJ,CAAA,GAlBR,IAmBM;GApBRH,OAAA,MAqBED,gBAAAA,MAAAA;IAAM,IAAA,OAAA;KAAM,OAAA,MAAM;IAAQ;IAA1BA,WACI,wBACA;KAQM,IAAA,QAAA,QAAA;KARNC,OAAA,OAOG,YACG;KANJC,aAAAC,YAAO,GACL,4CACA,MAAM,WAAW,oBAAoB,uBACvC,CAAC,IAHD,KAAA,QAAA;MAGCC,UAAA,OAAA,KAAA,GAAA;;KALH,OAAA;IAQM,EAAA,CAAA;GAEJ,CAAA,GAjCR,IAkCK;GAlCL,OAAA;EAkCK,EAAA,CAAA,CA5CN;CA6CQ,EAAA,CAAA,CAAA;AAEb"}
@@ -7,7 +7,7 @@ import { LazyTooltip } from "../../ui/tooltip/lazy-tooltip.js";
7
7
  import { Heading } from "../../ui/typography/typography.js";
8
8
  import { fastIcon } from "../../../lib/fast-icon.js";
9
9
  // src/components/composites/settings/settings.tsx
10
- var _tmpl$ = /* @__PURE__ */ template(`<button type=button data-slot=settings-row-help class="inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none">`);
10
+ var _tmpl$ = /* @__PURE__ */ template(`<button type=button data-slot=settings-row-help class="inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground outline-none focus-visible:focus-outline">`);
11
11
  var _tmpl$2 = /* @__PURE__ */ template(`<section><div class="flex items-start justify-between gap-4"><div class="flex min-w-0 flex-col gap-0.5"><div class="flex items-center gap-1.5"><!><!></div></div></div><div data-slot=settings-section-body>`);
12
12
  var _tmpl$3 = /* @__PURE__ */ template(`<p class="max-w-prose text-sm text-muted-foreground text-pretty">`);
13
13
  var _tmpl$4 = /* @__PURE__ */ template(`<div class="flex shrink-0 items-center gap-2">`);
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","names":["<LazyTooltip content={props.help}>\n {(tip) => (\n <button\n ref={tip.ref}\n type=\"button\"\n data-slot=\"settings-row-help\"\n aria-label={`About ${props.label}`}\n aria-describedby={tip.describedBy()}\n onPointerEnter={tip.onPointerEnter}\n onFocus={tip.onFocus}\n class=\"inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none\"\n >\n <CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />\n </button>\n )}\n </LazyTooltip>","ref={tip.ref}","<CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />","class=\"size-3.5\"","aria-describedby={tip.describedBy()}","<Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>","as=\"h2\"","size=\"card\"","<div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>","<Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>","<HelpTip label={local.title} help={help()} />","<Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>","<Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>","<section\n data-slot=\"settings-section\"\n class={cn('flex flex-col gap-4 px-5 py-5', local.class)}\n {...rest}\n >\n <div class=\"flex items-start justify-between gap-4\">\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <div\n data-slot=\"settings-section-body\"\n class={cn(\n local.bodyLayout === 'content'\n ? 'flex flex-col gap-4'\n : 'divide-y divide-border rounded-xl border border-border [&>[data-slot=empty-description]]:p-4'\n )}\n >\n {local.children}\n </div>\n </section>","<FormFieldContext value={field}>\n <div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>\n </FormFieldContext>","value={field}","<Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>","<HelpTip label={local.label} help={help()} />","<Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>","<div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>","<Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>","<div data-slot=\"settings-field\" class={cn('flex flex-col gap-2 p-4', local.class)} {...rest}>\n <div class=\"flex flex-col gap-0.5\">\n <label for={local.htmlFor} class=\"text-sm font-medium\">\n {local.label}\n </label>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>\n </div>\n <div>{local.children}</div>\n </div>","<div\n data-slot=\"settings-page\"\n class={cn('flex min-h-0 flex-1 flex-col overflow-y-auto', local.class)}\n {...rest}\n />","LucideCircleHelp","_$addEvent","_$insert","_$effect","_$setAttribute","_$spread","_$readShallow","_$className"],"sources":["../../../../src/components/composites/settings/settings.tsx"],"sourcesContent":["import { CircleHelp as LucideCircleHelp } from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { createUniqueId, Show, omit } from 'solid-js'\nimport { createFormFieldContext, FormFieldContext } from '#lib/form-field'\nimport { cn } from '#lib/utils'\nimport { LazyTooltip } from '../../ui/tooltip'\nimport { Heading } from '../../ui/typography'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst CircleHelp = fastIcon(LucideCircleHelp)\n\n/**\n * SettingsSection and SettingsRow.\n *\n * A settings page is the most repetitive surface in any application, and the\n * one where drift is most visible: label sizes, control widths and description\n * placement all wander unless something fixes them.\n *\n * The row puts the label and description at the start and the control at the\n * end (stacked on a narrow window), so controls line up down the page's end\n * edge regardless of how long the labels are. `SettingsRow` also\n * exposes its label and description through the shared form-field context to\n * the first control inside it. `SettingsField` is the visual stacked layout;\n * use `FormField` when the control needs label, help, or validation wiring.\n */\nfunction HelpTip(props: { label: string; help: string }) {\n return (\n // A settings page has one per row; each builds its tooltip on first hover or focus.\n <LazyTooltip content={props.help}>\n {(tip) => (\n <button\n ref={tip.ref}\n type=\"button\"\n data-slot=\"settings-row-help\"\n aria-label={`About ${props.label}`}\n aria-describedby={tip.describedBy()}\n onPointerEnter={tip.onPointerEnter}\n onFocus={tip.onFocus}\n class=\"inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none\"\n >\n <CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />\n </button>\n )}\n </LazyTooltip>\n )\n}\n\nexport function SettingsSection(\n props: ComponentProps<'section'> & {\n title: string\n description?: string\n /** A short explanation behind a help icon beside the title; prefer it to a long description. */\n help?: string\n /** A control for the section as a whole, e.g. a master toggle. */\n action?: JSX.Element\n /** Use a spaced content stack for fields, alerts, and cards instead of divided rows. */\n bodyLayout?: 'rows' | 'content'\n }\n) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'title',\n 'description',\n 'help',\n 'action',\n 'bodyLayout',\n 'children'\n )\n\n return (\n <section\n data-slot=\"settings-section\"\n class={cn('flex flex-col gap-4 px-5 py-5', local.class)}\n {...rest}\n >\n <div class=\"flex items-start justify-between gap-4\">\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <div\n data-slot=\"settings-section-body\"\n class={cn(\n local.bodyLayout === 'content'\n ? 'flex flex-col gap-4'\n : 'divide-y divide-border rounded-xl border border-border [&>[data-slot=empty-description]]:p-4'\n )}\n >\n {local.children}\n </div>\n </section>\n )\n}\n\n/**\n * One setting: a label and description on the leading side, a control on the\n * trailing side.\n *\n * The label and description are linked to a shared control through field\n * context. An explicit `aria-label` or `aria-labelledby` on the control keeps\n * precedence; otherwise the visible row label names it.\n */\nexport function SettingsRow(\n props: ComponentProps<'div'> & {\n label: string\n description?: string\n /**\n * A short explanation behind a help icon beside the label. Prefer it to a\n * long description: the row stays quiet and the explanation is one hover or\n * focus away.\n */\n help?: string\n /** Render a vertical stack when the control needs the full width. */\n orientation?: 'horizontal' | 'vertical'\n /** Hide the divider this row would otherwise contribute. */\n bare?: boolean\n /**\n * Drop the row's own 16px padding so its label and control sit on the same\n * edges as the fields around it. For a row placed loose in a\n * `bodyLayout=\"content\"` section, where nothing encloses it and the section's\n * gap already spaces it from its neighbours. Leave it off inside a divided\n * rows body or a `Card`, whose edge the padding is there to clear.\n */\n flush?: boolean\n }\n) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'label',\n 'description',\n 'help',\n 'orientation',\n 'bare',\n 'flush',\n 'children'\n )\n const rowId = createUniqueId()\n const labelId = `${rowId}-label`\n const descriptionId = `${rowId}-description`\n const field = createFormFieldContext({\n defaultControlId: rowId,\n labelId,\n descriptionId,\n hint: () => local.description,\n error: () => undefined,\n group: () => false,\n })\n\n return (\n <FormFieldContext value={field}>\n <div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>\n </FormFieldContext>\n )\n}\n\n/** A stacked label-and-control pair, for a control too wide for a row. */\nexport function SettingsField(\n props: ComponentProps<'div'> & { label: string; description?: string; htmlFor?: string }\n) {\n const local = props\n const rest = omit(props, 'class', 'label', 'description', 'htmlFor', 'children')\n\n return (\n <div data-slot=\"settings-field\" class={cn('flex flex-col gap-2 p-4', local.class)} {...rest}>\n <div class=\"flex flex-col gap-0.5\">\n <label for={local.htmlFor} class=\"text-sm font-medium\">\n {local.label}\n </label>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>\n </div>\n <div>{local.children}</div>\n </div>\n )\n}\n\n/** A settings page's scrolling body, with the header sticky at the top. */\nexport function SettingsPage(props: ComponentProps<'div'>) {\n const local = props\n const rest = omit(props, 'class')\n return (\n <div\n data-slot=\"settings-page\"\n class={cn('flex min-h-0 flex-1 flex-col overflow-y-auto', local.class)}\n {...rest}\n />\n )\n}\n"],"mappings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,OAAA;CAXiFS,OAAA,QAAA,CAAA;EAA9E,aAAA;EAA2B,IAAA,UAAA;GAAO,OAAA,GAAG,2BAA2B,MAAM,KAAK;EAAC;CAAU,GAAJ,IAAA,GAAA,IAAA;CAEnFH,OAAA,cACE;EAAC,OAAA,MAAM;CAAK,CACP;CAHTA,OAAA,QAIEL,gBAAAA,MAAAA;EAAM,IAAA,OAAA;GAAM,OAAA,MAAM;EAAW;EAA7BA,WACI,2BACA;GAAuF,IAAA,SAAA,QAAA;GAAvFK,OAAA,QAAkE,eAAqB;GAAvF,OAAA;EAAuF,EAAA,CAAA;CAErF,CAAA,GARR,IASK;CACLA,OAAA,cAAK;EAAC,OAAA,MAAM;CAAQ,CAAM;CATjBC,aAAK,MAAM,UAAX,QAAA;EAAkBC,aAAA,QAAA,OAAA,GAAA;;CAH/B,OACEN;AAcJ;;AAGA,SAAgB,aAAa,OAA8B;CACzD,MAAM,QAAQ;CACd,MAAM,OAAO,KAAK,OAAO,OAAO;CAE9B,IAAA,SAAA,QAIC;CADCO,OAAA,QAAA,CAAA;EAFA,aAAA;EACA,IAAA,UAAA;GAAO,OAAA,GAAG,gDAAgD,MAAM,KAAK;EAAC;CAC9D,GAAJ,IAAA,GAAA,KAAA;CAJR,OACEN;AAMJ"}
1
+ {"version":3,"file":"settings.js","names":["<LazyTooltip content={props.help}>\n {(tip) => (\n <button\n ref={tip.ref}\n type=\"button\"\n data-slot=\"settings-row-help\"\n aria-label={`About ${props.label}`}\n aria-describedby={tip.describedBy()}\n onPointerEnter={tip.onPointerEnter}\n onFocus={tip.onFocus}\n class=\"inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground outline-none focus-visible:focus-outline\"\n >\n <CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />\n </button>\n )}\n </LazyTooltip>","ref={tip.ref}","<CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />","class=\"size-3.5\"","aria-describedby={tip.describedBy()}","<Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>","as=\"h2\"","size=\"card\"","<div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>","<Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>","<HelpTip label={local.title} help={help()} />","<Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>","<Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>","<section\n data-slot=\"settings-section\"\n class={cn('flex flex-col gap-4 px-5 py-5', local.class)}\n {...rest}\n >\n <div class=\"flex items-start justify-between gap-4\">\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <div\n data-slot=\"settings-section-body\"\n class={cn(\n local.bodyLayout === 'content'\n ? 'flex flex-col gap-4'\n : 'divide-y divide-border rounded-xl border border-border [&>[data-slot=empty-description]]:p-4'\n )}\n >\n {local.children}\n </div>\n </section>","<FormFieldContext value={field}>\n <div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>\n </FormFieldContext>","value={field}","<Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>","<HelpTip label={local.label} help={help()} />","<Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>","<div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>","<Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>","<div data-slot=\"settings-field\" class={cn('flex flex-col gap-2 p-4', local.class)} {...rest}>\n <div class=\"flex flex-col gap-0.5\">\n <label for={local.htmlFor} class=\"text-sm font-medium\">\n {local.label}\n </label>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>\n </div>\n <div>{local.children}</div>\n </div>","<div\n data-slot=\"settings-page\"\n class={cn('flex min-h-0 flex-1 flex-col overflow-y-auto', local.class)}\n {...rest}\n />","LucideCircleHelp","_$addEvent","_$insert","_$effect","_$setAttribute","_$spread","_$readShallow","_$className"],"sources":["../../../../src/components/composites/settings/settings.tsx"],"sourcesContent":["import { CircleHelp as LucideCircleHelp } from '@lucide/solid'\nimport type { ComponentProps, JSX } from '@solidjs/web'\nimport { createUniqueId, Show, omit } from 'solid-js'\nimport { createFormFieldContext, FormFieldContext } from '#lib/form-field'\nimport { cn } from '#lib/utils'\nimport { LazyTooltip } from '../../ui/tooltip'\nimport { Heading } from '../../ui/typography'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst CircleHelp = fastIcon(LucideCircleHelp)\n\n/**\n * SettingsSection and SettingsRow.\n *\n * A settings page is the most repetitive surface in any application, and the\n * one where drift is most visible: label sizes, control widths and description\n * placement all wander unless something fixes them.\n *\n * The row puts the label and description at the start and the control at the\n * end (stacked on a narrow window), so controls line up down the page's end\n * edge regardless of how long the labels are. `SettingsRow` also\n * exposes its label and description through the shared form-field context to\n * the first control inside it. `SettingsField` is the visual stacked layout;\n * use `FormField` when the control needs label, help, or validation wiring.\n */\nfunction HelpTip(props: { label: string; help: string }) {\n return (\n // A settings page has one per row; each builds its tooltip on first hover or focus.\n <LazyTooltip content={props.help}>\n {(tip) => (\n <button\n ref={tip.ref}\n type=\"button\"\n data-slot=\"settings-row-help\"\n aria-label={`About ${props.label}`}\n aria-describedby={tip.describedBy()}\n onPointerEnter={tip.onPointerEnter}\n onFocus={tip.onFocus}\n class=\"inline-flex size-4 items-center justify-center rounded-full text-muted-foreground hover:text-foreground outline-none focus-visible:focus-outline\"\n >\n <CircleHelp class=\"size-3.5\" aria-hidden=\"true\" />\n </button>\n )}\n </LazyTooltip>\n )\n}\n\nexport function SettingsSection(\n props: ComponentProps<'section'> & {\n title: string\n description?: string\n /** A short explanation behind a help icon beside the title; prefer it to a long description. */\n help?: string\n /** A control for the section as a whole, e.g. a master toggle. */\n action?: JSX.Element\n /** Use a spaced content stack for fields, alerts, and cards instead of divided rows. */\n bodyLayout?: 'rows' | 'content'\n }\n) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'title',\n 'description',\n 'help',\n 'action',\n 'bodyLayout',\n 'children'\n )\n\n return (\n <section\n data-slot=\"settings-section\"\n class={cn('flex flex-col gap-4 px-5 py-5', local.class)}\n {...rest}\n >\n <div class=\"flex items-start justify-between gap-4\">\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <Heading as=\"h2\" size=\"card\">\n {local.title}\n </Heading>\n <Show when={local.help}>{(help) => <HelpTip label={local.title} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <Show when={local.action}>\n {(actionSlot) => <div class=\"flex shrink-0 items-center gap-2\">{actionSlot()}</div>}\n </Show>\n </div>\n <div\n data-slot=\"settings-section-body\"\n class={cn(\n local.bodyLayout === 'content'\n ? 'flex flex-col gap-4'\n : 'divide-y divide-border rounded-xl border border-border [&>[data-slot=empty-description]]:p-4'\n )}\n >\n {local.children}\n </div>\n </section>\n )\n}\n\n/**\n * One setting: a label and description on the leading side, a control on the\n * trailing side.\n *\n * The label and description are linked to a shared control through field\n * context. An explicit `aria-label` or `aria-labelledby` on the control keeps\n * precedence; otherwise the visible row label names it.\n */\nexport function SettingsRow(\n props: ComponentProps<'div'> & {\n label: string\n description?: string\n /**\n * A short explanation behind a help icon beside the label. Prefer it to a\n * long description: the row stays quiet and the explanation is one hover or\n * focus away.\n */\n help?: string\n /** Render a vertical stack when the control needs the full width. */\n orientation?: 'horizontal' | 'vertical'\n /** Hide the divider this row would otherwise contribute. */\n bare?: boolean\n /**\n * Drop the row's own 16px padding so its label and control sit on the same\n * edges as the fields around it. For a row placed loose in a\n * `bodyLayout=\"content\"` section, where nothing encloses it and the section's\n * gap already spaces it from its neighbours. Leave it off inside a divided\n * rows body or a `Card`, whose edge the padding is there to clear.\n */\n flush?: boolean\n }\n) {\n const local = props\n const rest = omit(\n props,\n 'class',\n 'label',\n 'description',\n 'help',\n 'orientation',\n 'bare',\n 'flush',\n 'children'\n )\n const rowId = createUniqueId()\n const labelId = `${rowId}-label`\n const descriptionId = `${rowId}-description`\n const field = createFormFieldContext({\n defaultControlId: rowId,\n labelId,\n descriptionId,\n hint: () => local.description,\n error: () => undefined,\n group: () => false,\n })\n\n return (\n <FormFieldContext value={field}>\n <div\n data-slot=\"settings-row\"\n class={cn(\n 'flex gap-4',\n local.flush ? 'p-0' : 'p-4',\n local.orientation === 'vertical'\n ? 'flex-col'\n : 'flex-col sm:flex-row sm:items-center sm:justify-between',\n local.class\n )}\n {...rest}\n >\n <div class=\"flex min-w-0 flex-col gap-0.5\">\n <div class=\"flex items-center gap-1.5\">\n <div id={labelId} data-slot=\"settings-row-label\" class=\"text-sm font-medium\">\n {local.label}\n </div>\n <Show when={local.help}>{(help) => <HelpTip label={local.label} help={help()} />}</Show>\n </div>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p id={descriptionId} class=\"max-w-prose text-sm text-muted-foreground text-pretty\">\n {descriptionSlot()}\n </p>\n )}\n </Show>\n </div>\n <div\n data-slot=\"settings-row-control\"\n class={cn('shrink-0', local.orientation === 'vertical' && 'w-full')}\n >\n {local.children}\n </div>\n </div>\n </FormFieldContext>\n )\n}\n\n/** A stacked label-and-control pair, for a control too wide for a row. */\nexport function SettingsField(\n props: ComponentProps<'div'> & { label: string; description?: string; htmlFor?: string }\n) {\n const local = props\n const rest = omit(props, 'class', 'label', 'description', 'htmlFor', 'children')\n\n return (\n <div data-slot=\"settings-field\" class={cn('flex flex-col gap-2 p-4', local.class)} {...rest}>\n <div class=\"flex flex-col gap-0.5\">\n <label for={local.htmlFor} class=\"text-sm font-medium\">\n {local.label}\n </label>\n <Show when={local.description}>\n {(descriptionSlot) => (\n <p class=\"max-w-prose text-sm text-muted-foreground text-pretty\">{descriptionSlot()}</p>\n )}\n </Show>\n </div>\n <div>{local.children}</div>\n </div>\n )\n}\n\n/** A settings page's scrolling body, with the header sticky at the top. */\nexport function SettingsPage(props: ComponentProps<'div'>) {\n const local = props\n const rest = omit(props, 'class')\n return (\n <div\n data-slot=\"settings-page\"\n class={cn('flex min-h-0 flex-1 flex-col overflow-y-auto', local.class)}\n {...rest}\n />\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUA,IAAM,aAAa,SAASuB,YAAgB;;;;;;;;;;;;;;;AAgB5C,SAAS,QAAQ,OAAwC;CACvD,OAEEvB,gB;EAAa,IAAA,UAAA;GAAS,OAAA,MAAM;EAAI;EAAhCA,WACI,eACA;GAWQ,IAAA,OAAA,OAAA;GAJNwB,SAAA,MAAA,SAAS,IAAI,OAAO;GADpBA,SAAA,MAAA,gBAAgB,IAAI,cAAc;GALlC,IAAA,QAAK,IAAI;GAAT,OAAA,UAAA,cAAA,MAAA,QAAA,KAAY,IAAZvB,UAAAA;;GAAY,GAAZA,IAAY,IAAZ,IAAS,MAATA;GADFwB,OAAA,MAUEvB,gBAAAA,YAAAA;IAAYC,OAAM;IAAW,eAAY;GAAQ,CAAA,CAC3C;GAPNuB,aAAA;;KAAY,GAAA,SAAS,MAAM;KAC3BtB,GAAkB,IAAI,YAAY;IADA;GAAlC,IAAA,EAAA,GAAA,KAAA,QAAA;IAAkC,MAAA,KAAA,KAAAuB,aAAA,MAAA,cAAA,CAAA;IAClC,MAAA,KAAA,KAAAA,aAAA,MAAA,oBAAA,CAAmC;GADD,CAAA;GAJ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gD,MAAM,KAAK;EAAC;CAC9D,GAAJ,IAAA,GAAA,KAAA;CAJR,OACEN;AAMJ"}
@@ -41,7 +41,7 @@ var TEXT_DISPLAY_LIMIT = 1e4;
41
41
  var DETAIL_LINE_LIMIT = 40;
42
42
  var DETAIL_CHAR_LIMIT = 1e4;
43
43
  var rowClass = "flex min-w-0 flex-wrap items-baseline gap-x-2 rounded-md px-1.5 py-0.5 text-start text-xs outline-none";
44
- var interactiveClass = "w-full cursor-pointer transition-colors ease-out hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-primary-subtle focus-visible:border-ring";
44
+ var interactiveClass = "w-full cursor-pointer transition-colors ease-out hover:bg-muted/60 focus-visible:focus-outline-inset focus-visible:border-ring";
45
45
  function omissionNote(lines, chars) {
46
46
  return lines > 0 ? `… ${lines.toLocaleString()} more ${lines === 1 ? "line" : "lines"} (${chars.toLocaleString()} characters) not shown` : `… ${chars.toLocaleString()} more characters not shown`;
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stack-trace.js","names":["<Show when={bounded().omittedLines > 0 || bounded().omittedChars > 0}>\n <p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>\n </Show>","<p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>","<Show when={clipped()}>\n <span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>\n </Show>","<span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>","<TraceLine icon={<Package />} title={title()} open={open()} onOpenChange={setOpen}>\n <Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>\n </TraceLine>","<Package />","onOpenChange={setOpen}","<Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>","<For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>","<FrameRow frame={frame} onOpen={props.onOpen} />","<Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>","<ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />","onClick={() => setLimit(shown().length + props.pageSize)}","<Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>","variant=\"ghost\"","size=\"2xs\"","Math.min(props.hidden, props.pageSize).toLocaleString()","props.hidden.toLocaleString()","<div class=\"ps-1.5\">\n <Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>\n </div>","<span\n class={cn('font-code text-code', {\n 'text-foreground': first(),\n 'text-muted-foreground': !first(),\n })}\n >\n {props.frame.async ? 'async ' : ''}\n {props.frame.function ?? '(anonymous)'}\n </span>","<Show when={location()}>\n <span class=\"min-w-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n {location()}\n </span>\n </Show>","<Show when={!first()}>\n <span class=\"sr-only\">\n {props.frame.kind === 'dependency' ? 'in a dependency' : 'in the runtime'}\n </span>\n </Show>","class={cn(rowClass, interactiveClass)}","<li data-slot=\"stack-frame\" data-kind={props.frame.kind} class=\"min-w-0\">\n <Show\n when={props.onOpen !== undefined && props.frame.file !== undefined}\n fallback={<div class={rowClass}>{content()}</div>}\n >\n <button\n type=\"button\"\n aria-label={`Open ${props.frame.async ? 'async ' : ''}${props.frame.function ?? '(anonymous)'} ${location()}`}\n class={cn(rowClass, interactiveClass)}\n onClick={() => props.onOpen?.(props.frame)}\n >\n {content()}\n </button>\n </Show>\n <Show when={props.frame.detail && props.frame.detail.length > 0}>\n <FrameDetail lines={props.frame.detail!} />\n </Show>\n </li>","<FrameDetail lines={props.frame.detail!} />","<li class=\"min-w-0 px-1.5 py-0.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n <Show when={clipped()}>\n <span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>\n </Show>\n </li>","<span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>","<CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />","class=\"mt-0.5 size-4 shrink-0 text-destructive\"","<div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>","<Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>","<span class=\"text-muted-foreground\">Stack trace</span>","<ClippedText class=\"font-semibold text-destructive\" text={header().type!} />","class=\"font-semibold text-destructive\"","<Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>","<span class=\"text-muted-foreground\">: </span>","<p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>","<ClippedText class=\"text-foreground\" text={header().message} />","class=\"text-foreground\"","<Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>","<ClippedText text={header().location!} />","<Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>","size=\"icon-2xs\"","copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')","onClick={() => void copy()}","<Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>","<Check aria-hidden=\"true\" />","<Copy aria-hidden=\"true\" />","<For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>","<Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>","<Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>","<FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />","<Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>","<TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />","<Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>","<FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />","<Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>","<ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />","onClick={() => setLimit(shown().length + pageSize())}","<div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>","<CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />","size=\"sm\"","title=\"Error output\"","<div\n data-slot=\"stack-trace\"\n data-format={parsed().format}\n class={cn('flex min-w-0 flex-col gap-1', local.class)}\n {...rest}\n >\n <Show\n when={parsed().format !== 'unknown'}\n fallback={\n // Nothing recognised: the whole text, in the block that copies it.\n <CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />\n }\n >\n <div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>\n\n <ol\n role=\"list\"\n aria-label=\"Stack frames\"\n class=\"m-0 ms-2 flex min-w-0 list-none flex-col gap-px border-s border-border p-0 ps-2\"\n >\n <For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>\n </ol>\n <Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>\n </Show>\n </div>","LucideCheck","LucideCircleAlert","LucideCopy","LucidePackage","_$insert","_$effect","_$readShallow","_$className","_$setAttribute","_$spread"],"sources":["../../../../src/components/composites/stack-trace/stack-trace.tsx"],"sourcesContent":["import {\n Check as LucideCheck,\n CircleAlert as LucideCircleAlert,\n Copy as LucideCopy,\n Package as LucidePackage,\n} from '@lucide/solid'\nimport { createMemo, createSignal, For, Match, Show, omit, Switch } from 'solid-js'\nimport { type ComponentProps } from '@solidjs/web'\nimport { createCopyFeedback } from '#lib/clipboard'\nimport { cn } from '#lib/utils'\nimport { Button } from '../../ui/button'\nimport { CodeBlock } from '../../ui/code-block'\nimport { TraceLine } from '../../ui/trace'\nimport {\n boundLines,\n dedentLines,\n describeFrameGroup,\n frameLocation,\n groupStackEntries,\n parseStackTrace,\n type ParseStackTraceOptions,\n type StackBlock,\n type StackFrame,\n} from './parse-stack-trace'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Check = fastIcon(LucideCheck)\nconst CircleAlert = fastIcon(LucideCircleAlert)\nconst Copy = fastIcon(LucideCopy)\nconst Package = fastIcon(LucidePackage)\n\n/**\n * StackTrace.\n *\n * A failed call and the frames it failed through. Put it in the body of the\n * `TraceLine` for the call that failed, or under a failing test; reach for\n * `CodeBlock` when the text is not a trace, and for `Terminal` when it is the\n * live output of a command rather than one error.\n *\n * ## The reader's code first\n *\n * A trace is mostly someone else's frames. Runs of dependency and runtime frames\n * (`node_modules`, `site-packages`, `.cargo/registry`, `node:` internals, Rust's\n * `std`) fold into one disclosure line that says what it holds, and a lone\n * dependency frame is dimmed rather than folded. When *none* of the frames is the\n * reader's, nothing folds: hiding the whole trace behind a button helps nobody.\n * Whose code a frame is comes from its path; a host that knows the project layout\n * passes `classify`.\n *\n * ## It never hides a line\n *\n * Every line of `text` is on screen in order, as a frame, as a header, or as\n * muted text, and a trace in a format this does not know is shown whole in a\n * `CodeBlock`, which also copies it. Copy writes `text` exactly as given, not a\n * reformatted version of what was parsed.\n *\n * ## Opening a frame is the host's decision\n *\n * A frame is a button only when `onOpenFrame` is supplied, and only when the\n * frame names a file; without it frames are plain text, because a control that\n * does nothing is a tab stop with no purpose. The component never builds a path\n * or tries to open one, the trace is untrusted text, and what a path in it means\n * on this machine is the host's call.\n *\n * Text is text throughout: frames, messages and source lines are rendered as text\n * nodes, long unbroken tokens wrap rather than widening the column, and what is\n * drawn is bounded with the omission stated every time: a text line or a header\n * message beyond 10 000 characters, a frame's printed lines beyond 40 lines or\n * 10 000 characters, and the frames of a folded group, which are built only while\n * it is open and then `maxBlocks` at a time. Copy and `onOpenFrame` still get all of\n * it.\n */\nexport type StackTraceProps = Omit<ComponentProps<'div'>, 'children'> & {\n /** The trace exactly as the runtime printed it. */\n text: string\n /** Make frames that name a file open it. Omit to render them as plain text. */\n onOpenFrame?: (frame: StackFrame) => void\n classify?: ParseStackTraceOptions['classify']\n /** Fold runs of dependency and runtime frames. Default true. */\n collapseDependencies?: boolean\n /** Start folded groups open. */\n defaultDependenciesOpen?: boolean\n /** Blocks (frames, groups, text) shown before \"show more\". Default 200. */\n maxBlocks?: number\n copyLabel?: string\n copiedLabel?: string\n /** Called after each copy attempt with whether the clipboard accepted it. */\n onCopy?: (ok: boolean) => void\n}\n\nexport const STACK_TRACE_MAX_BLOCKS = 200\nconst TEXT_DISPLAY_LIMIT = 10_000\n/** What a frame's own printed lines (a Python source line, a locals dump) may show. */\nconst DETAIL_LINE_LIMIT = 40\nconst DETAIL_CHAR_LIMIT = 10_000\n\nconst rowClass =\n 'flex min-w-0 flex-wrap items-baseline gap-x-2 rounded-md px-1.5 py-0.5 text-start text-xs outline-none'\nconst interactiveClass =\n 'w-full cursor-pointer transition-colors ease-out hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-primary-subtle focus-visible:border-ring'\n\nfunction omissionNote(lines: number, chars: number): string {\n return lines > 0\n ? `… ${lines.toLocaleString()} more ${lines === 1 ? 'line' : 'lines'} (${chars.toLocaleString()} characters) not shown`\n : `… ${chars.toLocaleString()} more characters not shown`\n}\n\n/** A frame's printed lines, bounded so one frame cannot be the whole page. */\nfunction FrameDetail(props: { lines: readonly string[] }) {\n const bounded = createMemo(() => boundLines(props.lines, DETAIL_LINE_LIMIT, DETAIL_CHAR_LIMIT))\n return (\n <>\n <pre class=\"m-0 ms-1.5 px-1.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {dedentLines(bounded().lines).join('\\n')}\n </pre>\n <Show when={bounded().omittedLines > 0 || bounded().omittedChars > 0}>\n <p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>\n </Show>\n </>\n )\n}\n\n/** Header text, cut to the display limit with what was cut stated. */\nfunction ClippedText(props: { text: string; class?: string }) {\n const clipped = () => props.text.length > TEXT_DISPLAY_LIMIT\n return (\n <>\n <span class={props.class}>\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n </span>\n <Show when={clipped()}>\n <span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>\n </Show>\n </>\n )\n}\n\n/**\n * A folded run of dependency or runtime frames. Its rows are built only while it\n * is open and then a page at a time, so a run of ten thousand frames costs the\n * same as one of a few hundred until the reader asks for more.\n */\nfunction FrameGroup(props: {\n frames: readonly StackFrame[]\n defaultOpen?: boolean\n pageSize: number\n onOpen?: (frame: StackFrame) => void\n}) {\n const [open, setOpen] = createSignal(() => props.defaultOpen === true)\n const [limit, setLimit] = createSignal<number | undefined>()\n const title = createMemo(() => describeFrameGroup(props.frames))\n const shown = createMemo(() => props.frames.slice(0, limit() ?? props.pageSize))\n const hidden = () => props.frames.length - shown().length\n return (\n <TraceLine icon={<Package />} title={title()} open={open()} onOpenChange={setOpen}>\n <Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>\n </TraceLine>\n )\n}\n\nfunction ShowMore(props: { hidden: number; pageSize: number; onClick: () => void }) {\n return (\n <div class=\"ps-1.5\">\n <Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>\n </div>\n )\n}\n\nfunction FrameRow(props: { frame: StackFrame; onOpen?: (frame: StackFrame) => void }) {\n const location = () => frameLocation(props.frame)\n const first = () => props.frame.kind === 'first-party'\n const content = () => (\n <>\n <span\n class={cn('font-code text-code', {\n 'text-foreground': first(),\n 'text-muted-foreground': !first(),\n })}\n >\n {props.frame.async ? 'async ' : ''}\n {props.frame.function ?? '(anonymous)'}\n </span>\n <Show when={location()}>\n <span class=\"min-w-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n {location()}\n </span>\n </Show>\n {/* The dimming is a colour; the kind is also spoken. */}\n <Show when={!first()}>\n <span class=\"sr-only\">\n {props.frame.kind === 'dependency' ? 'in a dependency' : 'in the runtime'}\n </span>\n </Show>\n </>\n )\n return (\n <li data-slot=\"stack-frame\" data-kind={props.frame.kind} class=\"min-w-0\">\n <Show\n when={props.onOpen !== undefined && props.frame.file !== undefined}\n fallback={<div class={rowClass}>{content()}</div>}\n >\n <button\n type=\"button\"\n aria-label={`Open ${props.frame.async ? 'async ' : ''}${props.frame.function ?? '(anonymous)'} ${location()}`}\n class={cn(rowClass, interactiveClass)}\n onClick={() => props.onOpen?.(props.frame)}\n >\n {content()}\n </button>\n </Show>\n <Show when={props.frame.detail && props.frame.detail.length > 0}>\n <FrameDetail lines={props.frame.detail!} />\n </Show>\n </li>\n )\n}\n\nfunction TextRow(props: { text: string }) {\n const clipped = () => props.text.length > TEXT_DISPLAY_LIMIT\n return (\n <li class=\"min-w-0 px-1.5 py-0.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n <Show when={clipped()}>\n <span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>\n </Show>\n </li>\n )\n}\n\nexport function StackTrace(props: StackTraceProps) {\n const local = props\n const rest = omit(\n props,\n 'text',\n 'onOpenFrame',\n 'classify',\n 'collapseDependencies',\n 'defaultDependenciesOpen',\n 'maxBlocks',\n 'copyLabel',\n 'copiedLabel',\n 'onCopy',\n 'class'\n )\n\n const parsed = createMemo(() => parseStackTrace(local.text, { classify: local.classify }))\n const blocks = createMemo<readonly StackBlock[]>(() =>\n groupStackEntries(parsed().entries, local.collapseDependencies !== false).filter(\n // A blank line between paragraphs of a trace carries nothing to draw.\n (block) => block.type !== 'text' || block.text.trim() !== ''\n )\n )\n const pageSize = () => Math.max(1, Math.floor(local.maxBlocks ?? STACK_TRACE_MAX_BLOCKS))\n const [limit, setLimit] = createSignal<number | undefined>()\n const shown = createMemo(() => blocks().slice(0, limit() ?? pageSize()))\n const hidden = () => blocks().length - shown().length\n\n const { copied, failed: copyFailed, copy: copyText } = createCopyFeedback()\n const copy = async () => {\n const ok = await copyText(local.text)\n local.onCopy?.(ok)\n }\n\n return (\n <div\n data-slot=\"stack-trace\"\n data-format={parsed().format}\n class={cn('flex min-w-0 flex-col gap-1', local.class)}\n {...rest}\n >\n <Show\n when={parsed().format !== 'unknown'}\n fallback={\n // Nothing recognised: the whole text, in the block that copies it.\n <CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />\n }\n >\n <div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>\n\n <ol\n role=\"list\"\n aria-label=\"Stack frames\"\n class=\"m-0 ms-2 flex min-w-0 list-none flex-col gap-px border-s border-border p-0 ps-2\"\n >\n <For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>\n </ol>\n <Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAM,QAAQ,SAASgE,OAAW;AAClC,IAAM,cAAc,SAASC,aAAiB;AAC9C,IAAM,OAAO,SAASC,MAAU;AAChC,IAAM,UAAU,SAASC,SAAa;AA6DtC,IAAa,yBAAyB;AACtC,IAAM,qBAAqB;;AAE3B,IAAM,oBAAoB;AAC1B,IAAM,oBAAoB;AAE1B,IAAM,WACJ;AACF,IAAM,mBACJ;AAEF,SAAS,aAAa,OAAe,OAAuB;CAC1D,OAAO,QAAQ,IACX,KAAK,MAAM,eAAe,EAAE,QAAQ,UAAU,IAAI,SAAS,QAAQ,IAAI,MAAM,eAAe,EAAE,0BAC9F,KAAK,MAAM,eAAe,EAAE;AAClC;;AAGA,SAAS,YAAY,OAAq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AAKC,OAAM;IAAe,IAAA,OAAA;KAAM,OAAA,MAAM;IAAI;IAAE,UAAA;IAAS,MAAA;GAAM,CAAA;EA2FzE;CAAC,EAAA,CAAD,CACH;CAvGP,OACEC;AAwGJ"}
1
+ {"version":3,"file":"stack-trace.js","names":["<Show when={bounded().omittedLines > 0 || bounded().omittedChars > 0}>\n <p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>\n </Show>","<p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>","<Show when={clipped()}>\n <span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>\n </Show>","<span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>","<TraceLine icon={<Package />} title={title()} open={open()} onOpenChange={setOpen}>\n <Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>\n </TraceLine>","<Package />","onOpenChange={setOpen}","<Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>","<For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>","<FrameRow frame={frame} onOpen={props.onOpen} />","<Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>","<ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />","onClick={() => setLimit(shown().length + props.pageSize)}","<Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>","variant=\"ghost\"","size=\"2xs\"","Math.min(props.hidden, props.pageSize).toLocaleString()","props.hidden.toLocaleString()","<div class=\"ps-1.5\">\n <Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>\n </div>","<span\n class={cn('font-code text-code', {\n 'text-foreground': first(),\n 'text-muted-foreground': !first(),\n })}\n >\n {props.frame.async ? 'async ' : ''}\n {props.frame.function ?? '(anonymous)'}\n </span>","<Show when={location()}>\n <span class=\"min-w-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n {location()}\n </span>\n </Show>","<Show when={!first()}>\n <span class=\"sr-only\">\n {props.frame.kind === 'dependency' ? 'in a dependency' : 'in the runtime'}\n </span>\n </Show>","class={cn(rowClass, interactiveClass)}","<li data-slot=\"stack-frame\" data-kind={props.frame.kind} class=\"min-w-0\">\n <Show\n when={props.onOpen !== undefined && props.frame.file !== undefined}\n fallback={<div class={rowClass}>{content()}</div>}\n >\n <button\n type=\"button\"\n aria-label={`Open ${props.frame.async ? 'async ' : ''}${props.frame.function ?? '(anonymous)'} ${location()}`}\n class={cn(rowClass, interactiveClass)}\n onClick={() => props.onOpen?.(props.frame)}\n >\n {content()}\n </button>\n </Show>\n <Show when={props.frame.detail && props.frame.detail.length > 0}>\n <FrameDetail lines={props.frame.detail!} />\n </Show>\n </li>","<FrameDetail lines={props.frame.detail!} />","<li class=\"min-w-0 px-1.5 py-0.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n <Show when={clipped()}>\n <span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>\n </Show>\n </li>","<span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>","<CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />","class=\"mt-0.5 size-4 shrink-0 text-destructive\"","<div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>","<Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>","<span class=\"text-muted-foreground\">Stack trace</span>","<ClippedText class=\"font-semibold text-destructive\" text={header().type!} />","class=\"font-semibold text-destructive\"","<Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>","<span class=\"text-muted-foreground\">: </span>","<p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>","<ClippedText class=\"text-foreground\" text={header().message} />","class=\"text-foreground\"","<Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>","<ClippedText text={header().location!} />","<Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>","size=\"icon-2xs\"","copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')","onClick={() => void copy()}","<Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>","<Check aria-hidden=\"true\" />","<Copy aria-hidden=\"true\" />","<For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>","<Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>","<Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>","<FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />","<Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>","<TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />","<Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>","<FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />","<Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>","<ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />","onClick={() => setLimit(shown().length + pageSize())}","<div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>","<CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />","size=\"sm\"","title=\"Error output\"","<div\n data-slot=\"stack-trace\"\n data-format={parsed().format}\n class={cn('flex min-w-0 flex-col gap-1', local.class)}\n {...rest}\n >\n <Show\n when={parsed().format !== 'unknown'}\n fallback={\n // Nothing recognised: the whole text, in the block that copies it.\n <CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />\n }\n >\n <div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>\n\n <ol\n role=\"list\"\n aria-label=\"Stack frames\"\n class=\"m-0 ms-2 flex min-w-0 list-none flex-col gap-px border-s border-border p-0 ps-2\"\n >\n <For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>\n </ol>\n <Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>\n </Show>\n </div>","LucideCheck","LucideCircleAlert","LucideCopy","LucidePackage","_$insert","_$effect","_$readShallow","_$className","_$setAttribute","_$spread"],"sources":["../../../../src/components/composites/stack-trace/stack-trace.tsx"],"sourcesContent":["import {\n Check as LucideCheck,\n CircleAlert as LucideCircleAlert,\n Copy as LucideCopy,\n Package as LucidePackage,\n} from '@lucide/solid'\nimport { createMemo, createSignal, For, Match, Show, omit, Switch } from 'solid-js'\nimport { type ComponentProps } from '@solidjs/web'\nimport { createCopyFeedback } from '#lib/clipboard'\nimport { cn } from '#lib/utils'\nimport { Button } from '../../ui/button'\nimport { CodeBlock } from '../../ui/code-block'\nimport { TraceLine } from '../../ui/trace'\nimport {\n boundLines,\n dedentLines,\n describeFrameGroup,\n frameLocation,\n groupStackEntries,\n parseStackTrace,\n type ParseStackTraceOptions,\n type StackBlock,\n type StackFrame,\n} from './parse-stack-trace'\nimport { fastIcon } from '#lib/fast-icon'\n\n// lucide icons drawn from a cloned template (see fastIcon).\nconst Check = fastIcon(LucideCheck)\nconst CircleAlert = fastIcon(LucideCircleAlert)\nconst Copy = fastIcon(LucideCopy)\nconst Package = fastIcon(LucidePackage)\n\n/**\n * StackTrace.\n *\n * A failed call and the frames it failed through. Put it in the body of the\n * `TraceLine` for the call that failed, or under a failing test; reach for\n * `CodeBlock` when the text is not a trace, and for `Terminal` when it is the\n * live output of a command rather than one error.\n *\n * ## The reader's code first\n *\n * A trace is mostly someone else's frames. Runs of dependency and runtime frames\n * (`node_modules`, `site-packages`, `.cargo/registry`, `node:` internals, Rust's\n * `std`) fold into one disclosure line that says what it holds, and a lone\n * dependency frame is dimmed rather than folded. When *none* of the frames is the\n * reader's, nothing folds: hiding the whole trace behind a button helps nobody.\n * Whose code a frame is comes from its path; a host that knows the project layout\n * passes `classify`.\n *\n * ## It never hides a line\n *\n * Every line of `text` is on screen in order, as a frame, as a header, or as\n * muted text, and a trace in a format this does not know is shown whole in a\n * `CodeBlock`, which also copies it. Copy writes `text` exactly as given, not a\n * reformatted version of what was parsed.\n *\n * ## Opening a frame is the host's decision\n *\n * A frame is a button only when `onOpenFrame` is supplied, and only when the\n * frame names a file; without it frames are plain text, because a control that\n * does nothing is a tab stop with no purpose. The component never builds a path\n * or tries to open one, the trace is untrusted text, and what a path in it means\n * on this machine is the host's call.\n *\n * Text is text throughout: frames, messages and source lines are rendered as text\n * nodes, long unbroken tokens wrap rather than widening the column, and what is\n * drawn is bounded with the omission stated every time: a text line or a header\n * message beyond 10 000 characters, a frame's printed lines beyond 40 lines or\n * 10 000 characters, and the frames of a folded group, which are built only while\n * it is open and then `maxBlocks` at a time. Copy and `onOpenFrame` still get all of\n * it.\n */\nexport type StackTraceProps = Omit<ComponentProps<'div'>, 'children'> & {\n /** The trace exactly as the runtime printed it. */\n text: string\n /** Make frames that name a file open it. Omit to render them as plain text. */\n onOpenFrame?: (frame: StackFrame) => void\n classify?: ParseStackTraceOptions['classify']\n /** Fold runs of dependency and runtime frames. Default true. */\n collapseDependencies?: boolean\n /** Start folded groups open. */\n defaultDependenciesOpen?: boolean\n /** Blocks (frames, groups, text) shown before \"show more\". Default 200. */\n maxBlocks?: number\n copyLabel?: string\n copiedLabel?: string\n /** Called after each copy attempt with whether the clipboard accepted it. */\n onCopy?: (ok: boolean) => void\n}\n\nexport const STACK_TRACE_MAX_BLOCKS = 200\nconst TEXT_DISPLAY_LIMIT = 10_000\n/** What a frame's own printed lines (a Python source line, a locals dump) may show. */\nconst DETAIL_LINE_LIMIT = 40\nconst DETAIL_CHAR_LIMIT = 10_000\n\nconst rowClass =\n 'flex min-w-0 flex-wrap items-baseline gap-x-2 rounded-md px-1.5 py-0.5 text-start text-xs outline-none'\nconst interactiveClass =\n 'w-full cursor-pointer transition-colors ease-out hover:bg-muted/60 focus-visible:focus-outline-inset focus-visible:border-ring'\n\nfunction omissionNote(lines: number, chars: number): string {\n return lines > 0\n ? `… ${lines.toLocaleString()} more ${lines === 1 ? 'line' : 'lines'} (${chars.toLocaleString()} characters) not shown`\n : `… ${chars.toLocaleString()} more characters not shown`\n}\n\n/** A frame's printed lines, bounded so one frame cannot be the whole page. */\nfunction FrameDetail(props: { lines: readonly string[] }) {\n const bounded = createMemo(() => boundLines(props.lines, DETAIL_LINE_LIMIT, DETAIL_CHAR_LIMIT))\n return (\n <>\n <pre class=\"m-0 ms-1.5 px-1.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {dedentLines(bounded().lines).join('\\n')}\n </pre>\n <Show when={bounded().omittedLines > 0 || bounded().omittedChars > 0}>\n <p class=\"m-0 ms-1.5 px-1.5 text-xs text-muted-foreground italic\">\n {omissionNote(bounded().omittedLines, bounded().omittedChars)}\n {' (copy has all of it)'}\n </p>\n </Show>\n </>\n )\n}\n\n/** Header text, cut to the display limit with what was cut stated. */\nfunction ClippedText(props: { text: string; class?: string }) {\n const clipped = () => props.text.length > TEXT_DISPLAY_LIMIT\n return (\n <>\n <span class={props.class}>\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n </span>\n <Show when={clipped()}>\n <span class=\"block text-xs text-muted-foreground italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n (copy has all of it)\n </span>\n </Show>\n </>\n )\n}\n\n/**\n * A folded run of dependency or runtime frames. Its rows are built only while it\n * is open and then a page at a time, so a run of ten thousand frames costs the\n * same as one of a few hundred until the reader asks for more.\n */\nfunction FrameGroup(props: {\n frames: readonly StackFrame[]\n defaultOpen?: boolean\n pageSize: number\n onOpen?: (frame: StackFrame) => void\n}) {\n const [open, setOpen] = createSignal(() => props.defaultOpen === true)\n const [limit, setLimit] = createSignal<number | undefined>()\n const title = createMemo(() => describeFrameGroup(props.frames))\n const shown = createMemo(() => props.frames.slice(0, limit() ?? props.pageSize))\n const hidden = () => props.frames.length - shown().length\n return (\n <TraceLine icon={<Package />} title={title()} open={open()} onOpenChange={setOpen}>\n <Show when={open()}>\n <ol role=\"list\" aria-label={title()} class=\"m-0 flex min-w-0 list-none flex-col gap-px p-0\">\n <For each={shown()}>{(frame) => <FrameRow frame={frame} onOpen={props.onOpen} />}</For>\n </ol>\n <Show when={hidden() > 0}>\n <ShowMore\n hidden={hidden()}\n pageSize={props.pageSize}\n onClick={() => setLimit(shown().length + props.pageSize)}\n />\n </Show>\n </Show>\n </TraceLine>\n )\n}\n\nfunction ShowMore(props: { hidden: number; pageSize: number; onClick: () => void }) {\n return (\n <div class=\"ps-1.5\">\n <Button variant=\"ghost\" size=\"2xs\" onClick={props.onClick}>\n Show {Math.min(props.hidden, props.pageSize).toLocaleString()} more (\n {props.hidden.toLocaleString()} hidden)\n </Button>\n </div>\n )\n}\n\nfunction FrameRow(props: { frame: StackFrame; onOpen?: (frame: StackFrame) => void }) {\n const location = () => frameLocation(props.frame)\n const first = () => props.frame.kind === 'first-party'\n const content = () => (\n <>\n <span\n class={cn('font-code text-code', {\n 'text-foreground': first(),\n 'text-muted-foreground': !first(),\n })}\n >\n {props.frame.async ? 'async ' : ''}\n {props.frame.function ?? '(anonymous)'}\n </span>\n <Show when={location()}>\n <span class=\"min-w-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n {location()}\n </span>\n </Show>\n {/* The dimming is a colour; the kind is also spoken. */}\n <Show when={!first()}>\n <span class=\"sr-only\">\n {props.frame.kind === 'dependency' ? 'in a dependency' : 'in the runtime'}\n </span>\n </Show>\n </>\n )\n return (\n <li data-slot=\"stack-frame\" data-kind={props.frame.kind} class=\"min-w-0\">\n <Show\n when={props.onOpen !== undefined && props.frame.file !== undefined}\n fallback={<div class={rowClass}>{content()}</div>}\n >\n <button\n type=\"button\"\n aria-label={`Open ${props.frame.async ? 'async ' : ''}${props.frame.function ?? '(anonymous)'} ${location()}`}\n class={cn(rowClass, interactiveClass)}\n onClick={() => props.onOpen?.(props.frame)}\n >\n {content()}\n </button>\n </Show>\n <Show when={props.frame.detail && props.frame.detail.length > 0}>\n <FrameDetail lines={props.frame.detail!} />\n </Show>\n </li>\n )\n}\n\nfunction TextRow(props: { text: string }) {\n const clipped = () => props.text.length > TEXT_DISPLAY_LIMIT\n return (\n <li class=\"min-w-0 px-1.5 py-0.5 font-code text-code whitespace-pre-wrap text-muted-foreground [overflow-wrap:anywhere]\">\n {clipped() ? props.text.slice(0, TEXT_DISPLAY_LIMIT) : props.text}\n <Show when={clipped()}>\n <span class=\"block font-sans text-xs italic\">\n … {(props.text.length - TEXT_DISPLAY_LIMIT).toLocaleString()} more characters not shown\n </span>\n </Show>\n </li>\n )\n}\n\nexport function StackTrace(props: StackTraceProps) {\n const local = props\n const rest = omit(\n props,\n 'text',\n 'onOpenFrame',\n 'classify',\n 'collapseDependencies',\n 'defaultDependenciesOpen',\n 'maxBlocks',\n 'copyLabel',\n 'copiedLabel',\n 'onCopy',\n 'class'\n )\n\n const parsed = createMemo(() => parseStackTrace(local.text, { classify: local.classify }))\n const blocks = createMemo<readonly StackBlock[]>(() =>\n groupStackEntries(parsed().entries, local.collapseDependencies !== false).filter(\n // A blank line between paragraphs of a trace carries nothing to draw.\n (block) => block.type !== 'text' || block.text.trim() !== ''\n )\n )\n const pageSize = () => Math.max(1, Math.floor(local.maxBlocks ?? STACK_TRACE_MAX_BLOCKS))\n const [limit, setLimit] = createSignal<number | undefined>()\n const shown = createMemo(() => blocks().slice(0, limit() ?? pageSize()))\n const hidden = () => blocks().length - shown().length\n\n const { copied, failed: copyFailed, copy: copyText } = createCopyFeedback()\n const copy = async () => {\n const ok = await copyText(local.text)\n local.onCopy?.(ok)\n }\n\n return (\n <div\n data-slot=\"stack-trace\"\n data-format={parsed().format}\n class={cn('flex min-w-0 flex-col gap-1', local.class)}\n {...rest}\n >\n <Show\n when={parsed().format !== 'unknown'}\n fallback={\n // Nothing recognised: the whole text, in the block that copies it.\n <CodeBlock size=\"sm\" title=\"Error output\" code={local.text} complete wrap />\n }\n >\n <div class=\"group/stack flex items-start gap-2\">\n <CircleAlert aria-hidden=\"true\" class=\"mt-0.5 size-4 shrink-0 text-destructive\" />\n <div class=\"min-w-0 flex-1 text-sm\">\n <Show\n when={parsed().header}\n fallback={<span class=\"text-muted-foreground\">Stack trace</span>}\n >\n {(header) => (\n <>\n <p class=\"m-0 whitespace-pre-wrap [overflow-wrap:anywhere]\">\n <Show when={header().type}>\n <ClippedText class=\"font-semibold text-destructive\" text={header().type!} />\n <Show when={header().message !== ''}>\n <span class=\"text-muted-foreground\">: </span>\n </Show>\n </Show>\n <ClippedText class=\"text-foreground\" text={header().message} />\n </p>\n <Show when={header().location}>\n <p class=\"m-0 font-code text-code text-muted-foreground [overflow-wrap:anywhere]\">\n <ClippedText text={header().location!} />\n </p>\n </Show>\n </>\n )}\n </Show>\n </div>\n <div class=\"flex items-center gap-1 opacity-0 transition-opacity group-focus-within/stack:opacity-100 group-hover/stack:opacity-100 [@media(hover:none)]:opacity-100\">\n <Button\n variant=\"ghost\"\n size=\"icon-2xs\"\n aria-label={\n copied() ? (local.copiedLabel ?? 'Copied') : (local.copyLabel ?? 'Copy stack trace')\n }\n title={copyFailed() ? 'Copying is unavailable in this context' : undefined}\n onClick={() => void copy()}\n >\n <Show when={copied()} fallback={<Copy aria-hidden=\"true\" />}>\n <Check aria-hidden=\"true\" />\n </Show>\n </Button>\n </div>\n </div>\n\n <ol\n role=\"list\"\n aria-label=\"Stack frames\"\n class=\"m-0 ms-2 flex min-w-0 list-none flex-col gap-px border-s border-border p-0 ps-2\"\n >\n <For each={shown()}>\n {(block) => (\n <Switch>\n <Match when={block.type === 'frame' && block}>\n {(entry) => (\n <FrameRow\n frame={(entry() as Extract<StackBlock, { type: 'frame' }>).frame}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n <Match when={block.type === 'text' && block}>\n {(entry) => (\n <TextRow text={(entry() as Extract<StackBlock, { type: 'text' }>).text} />\n )}\n </Match>\n <Match when={block.type === 'group' && block}>\n {(entry) => (\n <FrameGroup\n frames={(entry() as Extract<StackBlock, { type: 'group' }>).frames}\n defaultOpen={local.defaultDependenciesOpen}\n pageSize={pageSize()}\n onOpen={local.onOpenFrame}\n />\n )}\n </Match>\n </Switch>\n )}\n </For>\n </ol>\n <Show when={hidden() > 0}>\n <div class=\"ms-2\">\n <ShowMore\n hidden={hidden()}\n pageSize={pageSize()}\n onClick={() => setLimit(shown().length + pageSize())}\n />\n </div>\n </Show>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAM,QAAQ,SAASgE,OAAW;AAClC,IAAM,cAAc,SAASC,aAAiB;AAC9C,IAAM,OAAO,SAASC,MAAU;AAChC,IAAM,UAAU,SAASC,SAAa;AA6DtC,IAAa,yBAAyB;AACtC,IAAM,qBAAqB;;AAE3B,IAAM,oBAAoB;AAC1B,IAAM,oBAAoB;AAE1B,IAAM,WACJ;AACF,IAAM,mBACJ;AAEF,SAAS,aAAa,OAAe,OAAuB;CAC1D,OAAO,QAAQ,IACX,KAAK,MAAM,eAAe,EAAE,QAAQ,UAAU,IAAI,SAAS,QAAQ,IAAI,MAAM,eAAe,EAAE,0BAC9F,KAAK,MAAM,eAAe,EAAE;AAClC;;AAGA,SAAS,YAAY,OAAqC;CACxD,MAAM,UAAU,iBAAiB,WAAW,MAAM,OAAO,mBAAmB,iBAAiB,CAAC;CAC9F,OACI,QACA;EAEK,IAAA,OAAA,OAAA;EAFLC,OAAA,YACE;GAAC,OAAA,YAAY,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI;EAAC,CACrC;EAFL,OAAA;CAEK,EAAA,CAAA,GACLpE,WAAAA;;GAAY,OAAA,CAAA,EAAA,QAAQ,CAAC,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC,eAAe;EAK7D,CAAA,CAAC,CAAD,WAJJ;GAGG,IAAA,QAAA,QAAA;GAHH,IAAA,QAAA,MAAA;GACEoE,OAAA,aAAA;IAAC,OAAA,aAAa,QAAQ,CAAC,CAAC,cAAc,QA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AA,OAAAA;SAAO,IAAA,OAAA;UAAM,OAAA,MAAM,SAAS,WAAW;SAAK;SAA5CA,WACI,UACAC,gBAAAA,YAAAA;UACE,IAAA,SAAA;WAAS,OAAA,MAAM,CAAA,CAA6C;UAAM;UAClE,IAAA,cAAA;WAAa,OAAA,MAAM;UAAuB;UAC1C,IAAA,WAAA;WAAU,OAAA,SAAS;UAAC;UACpB,IAAA,SAAA;WAAQ,OAAA,MAAM;UAAW;SAC1B,CAAA;QAEE,CAAA;OAtBR;MAuBO,EAAA,CAAA;KAEP,CAAA,CACH;KAlCJ,OAAA;IAkCI,EAAA,CAAA;IACJC,gBAAAA,MAAAA;KAAM,IAAA,OAAA;MAAM,OAAA,OAAO,IAAI;KAAC;KAAxB,IAAA,WAAA;MACE,IAAA,SAAA,SAMK;MANLY,OAAA,QACEX,gBAAAA,UAAAA;OACE,IAAA,SAAA;QAAQ,OAAA,OAAO;OAAC;OAChB,IAAA,WAAA;QAAU,OAAA,SAAS;OAAC;OACpBC,eAAe,SAAS,MAAM,CAAC,CAAC,SAAS,SAAS,CAAC;MACpD,CAAA,CACE;MAPP,OACEC;KAOI;;GAvFP,IAHGC,gBAAAA,WAAAA;IAAWC,MAAK;IAAKC,OAAM;IAAe,IAAA,OAAA;KAAM,OAAA,MAAM;IAAI;IAAE,UAAA;IAAS,MAAA;GAAM,CAAA;EA2FzE;CAAC,EAAA,CAAD,CACH;CAvGP,OACEC;AAwGJ"}
@@ -371,7 +371,7 @@ function TreeRow(props) {
371
371
  return local.item.expandable ? String(local.item.expanded) : void 0;
372
372
  },
373
373
  get "class"() {
374
- return cn("group/tree-row flex min-h-row-sm w-full min-w-0 items-center gap-1.5 rounded-md pe-1.5 text-left text-sm outline-none transition-colors", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-primary-subtle", {
374
+ return cn("group/tree-row flex min-h-row-sm w-full min-w-0 items-center gap-1.5 rounded-md pe-1.5 text-left text-sm outline-none transition-colors", "focus-visible:border-ring focus-visible:focus-outline-inset", {
375
375
  relative: tree.guides(),
376
376
  "bg-primary-subtle text-foreground": local.selected,
377
377
  "hover:bg-surface-hover": !local.selected