@cognite/aura 1.49109.0 → 1.49189.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/components/ui/core/accordion/accordion.js +1 -1
  2. package/dist/components/ui/core/accordion/accordion.js.map +1 -1
  3. package/dist/components/ui/core/action-toolbar/action-toolbar.js +4 -4
  4. package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -1
  5. package/dist/components/ui/core/alert/alert.js +3 -3
  6. package/dist/components/ui/core/alert/alert.js.map +1 -1
  7. package/dist/components/ui/core/avatar/avatar.js +2 -2
  8. package/dist/components/ui/core/avatar/avatar.js.map +1 -1
  9. package/dist/components/ui/core/badge/badge.js +2 -2
  10. package/dist/components/ui/core/badge/badge.js.map +1 -1
  11. package/dist/components/ui/core/banner/banner.js +3 -3
  12. package/dist/components/ui/core/banner/banner.js.map +1 -1
  13. package/dist/components/ui/core/breadcrumb/breadcrumb.js +1 -1
  14. package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -1
  15. package/dist/components/ui/core/button/button.gallery.js +1 -1
  16. package/dist/components/ui/core/button/button.gallery.js.map +1 -1
  17. package/dist/components/ui/core/button/button.js +1 -1
  18. package/dist/components/ui/core/button/button.js.map +1 -1
  19. package/dist/components/ui/core/button-group/button-group.gallery.js +1 -1
  20. package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -1
  21. package/dist/components/ui/core/button-group/button-group.js +2 -2
  22. package/dist/components/ui/core/button-group/button-group.js.map +1 -1
  23. package/dist/components/ui/core/calendar/calendar-header.js +3 -3
  24. package/dist/components/ui/core/calendar/calendar-header.js.map +1 -1
  25. package/dist/components/ui/core/calendar/calendar.js +1 -1
  26. package/dist/components/ui/core/calendar/calendar.js.map +1 -1
  27. package/dist/components/ui/core/card/card.gallery.js +2 -2
  28. package/dist/components/ui/core/card/card.gallery.js.map +1 -1
  29. package/dist/components/ui/core/card/card.js +3 -3
  30. package/dist/components/ui/core/card/card.js.map +1 -1
  31. package/dist/components/ui/core/chart/chart.js +1 -1
  32. package/dist/components/ui/core/chart/chart.js.map +1 -1
  33. package/dist/components/ui/core/checkbox/checkbox.js +1 -1
  34. package/dist/components/ui/core/checkbox/checkbox.js.map +1 -1
  35. package/dist/components/ui/core/code-block/code-block.js +3 -3
  36. package/dist/components/ui/core/code-block/code-block.js.map +1 -1
  37. package/dist/components/ui/core/collapsible/collapsible.gallery.js +2 -2
  38. package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -1
  39. package/dist/components/ui/core/collapsible/collapsible.js +1 -1
  40. package/dist/components/ui/core/collapsible/collapsible.js.map +1 -1
  41. package/dist/components/ui/core/combobox/combobox.js +4 -4
  42. package/dist/components/ui/core/combobox/combobox.js.map +1 -1
  43. package/dist/components/ui/core/command/command.js +4 -4
  44. package/dist/components/ui/core/command/command.js.map +1 -1
  45. package/dist/components/ui/core/conversation/conversation.js +2 -2
  46. package/dist/components/ui/core/conversation/conversation.js.map +1 -1
  47. package/dist/components/ui/core/count/count.js +1 -1
  48. package/dist/components/ui/core/count/count.js.map +1 -1
  49. package/dist/components/ui/core/data-grid/data-grid-cell.js +1 -1
  50. package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -1
  51. package/dist/components/ui/core/data-grid/data-grid-column-menu.js +4 -4
  52. package/dist/components/ui/core/data-grid/data-grid-column-menu.js.map +1 -1
  53. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +1 -1
  54. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -1
  55. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +4 -4
  56. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -1
  57. package/dist/components/ui/core/data-grid/data-grid-footer.js +1 -1
  58. package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -1
  59. package/dist/components/ui/core/data-grid/data-grid-header-row.js +2 -2
  60. package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -1
  61. package/dist/components/ui/core/data-grid/data-grid-header.js +1 -1
  62. package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -1
  63. package/dist/components/ui/core/data-grid/data-grid-pagination.js +3 -3
  64. package/dist/components/ui/core/data-grid/data-grid-pagination.js.map +1 -1
  65. package/dist/components/ui/core/data-grid/data-grid-row.js +2 -2
  66. package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -1
  67. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +3 -3
  68. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -1
  69. package/dist/components/ui/core/data-grid/data-grid.fixtures.js +1 -1
  70. package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -1
  71. package/dist/components/ui/core/data-grid/data-grid.js +7 -7
  72. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -1
  73. package/dist/components/ui/core/data-grid/data-grid.utils.js +1 -1
  74. package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -1
  75. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +7 -7
  76. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -1
  77. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +2 -2
  78. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -1
  79. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +7 -7
  80. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -1
  81. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +3 -3
  82. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -1
  83. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +9 -9
  84. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -1
  85. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +4 -4
  86. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -1
  87. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +10 -10
  88. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -1
  89. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +5 -5
  90. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -1
  91. package/dist/components/ui/core/date-time-pickers/index.js +7 -7
  92. package/dist/components/ui/core/date-time-pickers/index.js.map +1 -1
  93. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +2 -2
  94. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -1
  95. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +2 -2
  96. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -1
  97. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +1 -1
  98. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -1
  99. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +2 -2
  100. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -1
  101. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +2 -2
  102. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -1
  103. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +3 -3
  104. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -1
  105. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +4 -4
  106. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -1
  107. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +7 -7
  108. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -1
  109. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +3 -3
  110. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -1
  111. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +7 -7
  112. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -1
  113. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +4 -4
  114. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -1
  115. package/dist/components/ui/core/dialog/dialog.js +3 -3
  116. package/dist/components/ui/core/dialog/dialog.js.map +1 -1
  117. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +3 -3
  118. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -1
  119. package/dist/components/ui/core/empty-state/empty-state.js +1 -1
  120. package/dist/components/ui/core/empty-state/empty-state.js.map +1 -1
  121. package/dist/components/ui/core/helper-text/helper-text.js +1 -1
  122. package/dist/components/ui/core/helper-text/helper-text.js.map +1 -1
  123. package/dist/components/ui/core/hover-card/hover-card.js +2 -2
  124. package/dist/components/ui/core/hover-card/hover-card.js.map +1 -1
  125. package/dist/components/ui/core/inline-citation/inline-citation.js +3 -3
  126. package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -1
  127. package/dist/components/ui/core/input/input.gallery.js +2 -2
  128. package/dist/components/ui/core/input/input.gallery.js.map +1 -1
  129. package/dist/components/ui/core/input/input.js +1 -1
  130. package/dist/components/ui/core/input/input.js.map +1 -1
  131. package/dist/components/ui/core/input-group/input-group.js +4 -4
  132. package/dist/components/ui/core/input-group/input-group.js.map +1 -1
  133. package/dist/components/ui/core/item/item.js +2 -2
  134. package/dist/components/ui/core/item/item.js.map +1 -1
  135. package/dist/components/ui/core/kbd/kbd.js +1 -1
  136. package/dist/components/ui/core/kbd/kbd.js.map +1 -1
  137. package/dist/components/ui/core/label/examples/label.gallery.js +2 -2
  138. package/dist/components/ui/core/label/examples/label.gallery.js.map +1 -1
  139. package/dist/components/ui/core/label/label.js +1 -1
  140. package/dist/components/ui/core/label/label.js.map +1 -1
  141. package/dist/components/ui/core/loader/loader.js +1 -1
  142. package/dist/components/ui/core/loader/loader.js.map +1 -1
  143. package/dist/components/ui/core/message/message-response-table-footer.js +3 -3
  144. package/dist/components/ui/core/message/message-response-table-footer.js.map +1 -1
  145. package/dist/components/ui/core/message/message-response-table.js +6 -6
  146. package/dist/components/ui/core/message/message-response-table.js.map +1 -1
  147. package/dist/components/ui/core/message/message.js +6 -6
  148. package/dist/components/ui/core/message/message.js.map +1 -1
  149. package/dist/components/ui/core/overflow-list/overflow-list.js +2 -2
  150. package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -1
  151. package/dist/components/ui/core/pagination/pagination-teleport.js +2 -2
  152. package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -1
  153. package/dist/components/ui/core/pagination/pagination.js +4 -4
  154. package/dist/components/ui/core/pagination/pagination.js.map +1 -1
  155. package/dist/components/ui/core/popover/popover.gallery.js +1 -1
  156. package/dist/components/ui/core/popover/popover.gallery.js.map +1 -1
  157. package/dist/components/ui/core/popover/popover.js +3 -3
  158. package/dist/components/ui/core/popover/popover.js.map +1 -1
  159. package/dist/components/ui/core/progress/progress.js +1 -1
  160. package/dist/components/ui/core/progress/progress.js.map +1 -1
  161. package/dist/components/ui/core/prompt-input/prompt-input.js +7 -7
  162. package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -1
  163. package/dist/components/ui/core/radio-group/radio-group.js +1 -1
  164. package/dist/components/ui/core/radio-group/radio-group.js.map +1 -1
  165. package/dist/components/ui/core/reasoning/reasoning.js +1 -1
  166. package/dist/components/ui/core/reasoning/reasoning.js.map +1 -1
  167. package/dist/components/ui/core/scroll-area/scroll-area.js +1 -1
  168. package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -1
  169. package/dist/components/ui/core/search/search.js +2 -2
  170. package/dist/components/ui/core/search/search.js.map +1 -1
  171. package/dist/components/ui/core/segmented-control/segmented-control.js +1 -1
  172. package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -1
  173. package/dist/components/ui/core/select/select.js +4 -4
  174. package/dist/components/ui/core/select/select.js.map +1 -1
  175. package/dist/components/ui/core/separator/separator.js +1 -1
  176. package/dist/components/ui/core/separator/separator.js.map +1 -1
  177. package/dist/components/ui/core/shimmer/shimmer.js +1 -1
  178. package/dist/components/ui/core/shimmer/shimmer.js.map +1 -1
  179. package/dist/components/ui/core/skeleton/skeleton.js +1 -1
  180. package/dist/components/ui/core/skeleton/skeleton.js.map +1 -1
  181. package/dist/components/ui/core/slider/slider.gallery.js +1 -1
  182. package/dist/components/ui/core/slider/slider.gallery.js.map +1 -1
  183. package/dist/components/ui/core/slider/slider.js +1 -1
  184. package/dist/components/ui/core/slider/slider.js.map +1 -1
  185. package/dist/components/ui/core/sonner-toast/sonner-toast.js +1 -1
  186. package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -1
  187. package/dist/components/ui/core/sources/sources.js +2 -2
  188. package/dist/components/ui/core/sources/sources.js.map +1 -1
  189. package/dist/components/ui/core/status-text/status-text.js +1 -1
  190. package/dist/components/ui/core/status-text/status-text.js.map +1 -1
  191. package/dist/components/ui/core/switch/switch.gallery.js +1 -1
  192. package/dist/components/ui/core/switch/switch.gallery.js.map +1 -1
  193. package/dist/components/ui/core/switch/switch.js +2 -2
  194. package/dist/components/ui/core/switch/switch.js.map +1 -1
  195. package/dist/components/ui/core/tabs/tabs.js +2 -2
  196. package/dist/components/ui/core/tabs/tabs.js.map +1 -1
  197. package/dist/components/ui/core/textarea/textarea.gallery.js +2 -2
  198. package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -1
  199. package/dist/components/ui/core/textarea/textarea.js +1 -1
  200. package/dist/components/ui/core/textarea/textarea.js.map +1 -1
  201. package/dist/components/ui/core/toggle/count-badge.js +1 -1
  202. package/dist/components/ui/core/toggle/count-badge.js.map +1 -1
  203. package/dist/components/ui/core/toggle/toggle.js +1 -1
  204. package/dist/components/ui/core/toggle/toggle.js.map +1 -1
  205. package/dist/components/ui/core/tool/tool.js +5 -5
  206. package/dist/components/ui/core/tool/tool.js.map +1 -1
  207. package/dist/components/ui/core/toolbar/toolbar.js +3 -3
  208. package/dist/components/ui/core/toolbar/toolbar.js.map +1 -1
  209. package/dist/components/ui/core/tooltip/tooltip.gallery.js +1 -1
  210. package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -1
  211. package/dist/components/ui/core/tooltip/tooltip.js +2 -2
  212. package/dist/components/ui/core/tooltip/tooltip.js.map +1 -1
  213. package/dist/components/ui/core/topbar/topbar.js +5 -5
  214. package/dist/components/ui/core/topbar/topbar.js.map +1 -1
  215. package/dist/components/ui/core/tree/tree.js +3 -3
  216. package/dist/components/ui/core/tree/tree.js.map +1 -1
  217. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/inline-citation/inline-citation.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n type ComponentType,\n type ReactNode,\n forwardRef,\n} from 'react';\n\nimport type { DecorativeVariant } from '../../../../lib/decorative-variant-classes';\nimport { cn, getHostname } from '../../../../lib/utils';\nimport { Badge } from '../badge/badge';\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from '../hover-card/hover-card';\n\ntype InlineCitationProps = ComponentProps<'span'>;\n\nconst InlineCitation: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, InlineCitationProps>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n data-slot=\"inline-citation\"\n className={cn('group inline-flex items-center gap-1', className)}\n {...props}\n />\n )\n);\nInlineCitation.displayName = 'InlineCitation';\n\ntype InlineCitationGroupProps = ComponentProps<'div'>;\n\nconst InlineCitationGroup: ForwardRefExoticComponent<\n ComponentProps<'div'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, InlineCitationGroupProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"inline-citation-group\"\n className={cn('flex flex-wrap gap-2', className)}\n {...props}\n />\n )\n);\nInlineCitationGroup.displayName = 'InlineCitationGroup';\n\ntype InlineCitationTextProps = ComponentProps<'span'>;\n\nconst InlineCitationText: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, InlineCitationTextProps>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n data-slot=\"inline-citation-text\"\n className={cn(\n 'transition-colors group-hover:bg-accent-background',\n className\n )}\n {...props}\n />\n )\n);\nInlineCitationText.displayName = 'InlineCitationText';\n\ntype InlineCitationCardProps = ComponentProps<typeof HoverCard>;\n\nconst InlineCitationCard = (props: InlineCitationCardProps): ReactNode => (\n <HoverCard\n data-slot=\"inline-citation-card\"\n closeDelay={0}\n openDelay={0}\n {...props}\n />\n);\n\ntype InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {\n sources: string[];\n icon?: ComponentType<{ className?: string }>;\n};\n\nconst InlineCitationCardTrigger = ({\n sources,\n icon: Icon,\n className,\n ...props\n}: InlineCitationCardTriggerProps): ReactNode => {\n return (\n <HoverCardTrigger\n render={\n <Badge\n data-slot=\"inline-citation-card-trigger\"\n className={cn(\n 'ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-2-background px-1 text-sm leading-4.5 font-medium text-decorative-2-foreground whitespace-nowrap gap-1 transition-[color,box-shadow]',\n '[&>svg]:size-3 [&>svg]:pointer-events-none',\n className\n )}\n {...props}\n >\n {Icon && <Icon className=\"size-3\" />}\n {sources[0] ? (\n <>\n {getHostname(sources[0])}{' '}\n {sources.length > 1 && `+${sources.length - 1}`}\n </>\n ) : (\n 'unknown'\n )}\n </Badge>\n }\n />\n );\n};\n\ntype InlineCitationCardBodyProps = ComponentProps<'div'>;\n\nconst InlineCitationCardBody = ({\n className,\n ...props\n}: InlineCitationCardBodyProps): ReactNode => (\n <HoverCardContent\n data-slot=\"inline-citation-card-body\"\n className={cn('relative w-80 p-0', className)}\n {...props}\n />\n);\n\ntype InlineCitationSourceProps = ComponentProps<'div'> & {\n title?: string;\n url?: string;\n description?: string;\n};\n\nconst InlineCitationSource: ForwardRefExoticComponent<\n Omit<InlineCitationSourceProps, 'ref'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, InlineCitationSourceProps>(\n ({ title, url, description, className, children, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"inline-citation-source\"\n className={cn('space-y-1', className)}\n {...props}\n >\n {title && (\n <h4 className=\"truncate font-medium text-sm leading-tight\">{title}</h4>\n )}\n {url && (\n <p className=\"truncate break-all text-muted-foreground text-xs\">\n {url}\n </p>\n )}\n {description && (\n <p className=\"line-clamp-3 text-muted-foreground text-sm leading-relaxed\">\n {description}\n </p>\n )}\n {children}\n </div>\n )\n);\nInlineCitationSource.displayName = 'InlineCitationSource';\n\ntype InlineCitationQuoteProps = ComponentProps<'blockquote'>;\n\nconst InlineCitationQuote: ForwardRefExoticComponent<\n ComponentProps<'blockquote'> & RefAttributes<HTMLQuoteElement>\n> = forwardRef<ComponentRef<'blockquote'>, InlineCitationQuoteProps>(\n ({ children, className, ...props }, ref) => (\n <blockquote\n ref={ref}\n data-slot=\"inline-citation-quote\"\n className={cn(\n 'border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic',\n className\n )}\n {...props}\n >\n {children}\n </blockquote>\n )\n);\nInlineCitationQuote.displayName = 'InlineCitationQuote';\n\nexport type InlineCitationLinkProps = Omit<ComponentProps<'a'>, 'target'> & {\n target?: '_blank' | '_self';\n icon?: ComponentType<{ className?: string }>;\n variant?: DecorativeVariant;\n};\n\nconst InlineCitationLink: ForwardRefExoticComponent<\n Omit<InlineCitationLinkProps, 'ref'> & RefAttributes<HTMLAnchorElement>\n> = forwardRef<ComponentRef<'a'>, InlineCitationLinkProps>(\n (\n {\n href,\n target = '_self',\n icon: Icon,\n variant = 'decorative-1',\n className,\n children,\n ...props\n },\n ref\n ) => {\n const hostname = getHostname(href);\n\n const variantStyles: Record<DecorativeVariant, string> = {\n 'decorative-1':\n 'bg-decorative-1-background hover:bg-decorative-1-background-hover text-decorative-1-foreground',\n 'decorative-2':\n 'bg-decorative-2-background hover:bg-decorative-2-background-hover text-decorative-2-foreground',\n 'decorative-3':\n 'bg-decorative-3-background hover:bg-decorative-3-background-hover text-decorative-3-foreground',\n 'decorative-4':\n 'bg-decorative-4-background hover:bg-decorative-4-background-hover text-decorative-4-foreground',\n 'decorative-5':\n 'bg-decorative-5-background hover:bg-decorative-5-background-hover text-decorative-5-foreground',\n 'decorative-6':\n 'bg-decorative-6-background hover:bg-decorative-6-background-hover text-decorative-6-foreground',\n 'decorative-7':\n 'bg-decorative-7-background hover:bg-decorative-7-background-hover text-decorative-7-foreground',\n };\n\n return (\n <a\n ref={ref}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n className=\"inline-flex items-stretch\"\n {...props}\n >\n <Badge\n data-slot=\"inline-citation-link\"\n className={cn(\n 'inline-flex items-center justify-center rounded-md border border-transparent px-1 text-sm leading-4.5 font-medium whitespace-nowrap gap-1 transition-colors',\n '[&>svg]:size-3 [&>svg]:pointer-events-none',\n variantStyles[variant],\n className\n )}\n >\n {Icon && <Icon className=\"size-3\" />}\n {children ?? hostname}\n </Badge>\n </a>\n );\n }\n);\nInlineCitationLink.displayName = 'InlineCitationLink';\n\nexport {\n InlineCitation,\n InlineCitationCard,\n InlineCitationCardBody,\n InlineCitationCardTrigger,\n InlineCitationGroup,\n InlineCitationLink,\n InlineCitationQuote,\n InlineCitationSource,\n InlineCitationText,\n};\n"],"names":["forwardRef","cn","getHostname","Badge","HoverCard","HoverCardContent","HoverCardTrigger","InlineCitation","className","props","ref","span","data-slot","displayName","InlineCitationGroup","div","InlineCitationText","InlineCitationCard","closeDelay","openDelay","InlineCitationCardTrigger","sources","icon","Icon","render","length","InlineCitationCardBody","InlineCitationSource","title","url","description","children","h4","p","InlineCitationQuote","blockquote","InlineCitationLink","href","target","variant","hostname","variantStyles","a","rel","undefined"],"mappings":"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"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/inline-citation/inline-citation.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n type ComponentType,\n type ReactNode,\n forwardRef,\n} from 'react';\n\nimport type { DecorativeVariant } from '../../../../lib/decorative-variant-classes';\nimport { cn, getHostname } from '../../../../lib/utils';\nimport { Badge } from '../badge/badge';\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from '../hover-card/hover-card';\n\ntype InlineCitationProps = ComponentProps<'span'>;\n\nconst InlineCitation: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, InlineCitationProps>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n data-slot=\"inline-citation\"\n className={cn('group inline-flex items-center gap-1', className)}\n {...props}\n />\n )\n);\nInlineCitation.displayName = 'InlineCitation';\n\ntype InlineCitationGroupProps = ComponentProps<'div'>;\n\nconst InlineCitationGroup: ForwardRefExoticComponent<\n ComponentProps<'div'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, InlineCitationGroupProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"inline-citation-group\"\n className={cn('flex flex-wrap gap-2', className)}\n {...props}\n />\n )\n);\nInlineCitationGroup.displayName = 'InlineCitationGroup';\n\ntype InlineCitationTextProps = ComponentProps<'span'>;\n\nconst InlineCitationText: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, InlineCitationTextProps>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n data-slot=\"inline-citation-text\"\n className={cn(\n 'transition-colors group-hover:bg-accent-background',\n className\n )}\n {...props}\n />\n )\n);\nInlineCitationText.displayName = 'InlineCitationText';\n\ntype InlineCitationCardProps = ComponentProps<typeof HoverCard>;\n\nconst InlineCitationCard = (props: InlineCitationCardProps): ReactNode => (\n <HoverCard\n data-slot=\"inline-citation-card\"\n closeDelay={0}\n openDelay={0}\n {...props}\n />\n);\n\ntype InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {\n sources: string[];\n icon?: ComponentType<{ className?: string }>;\n};\n\nconst InlineCitationCardTrigger = ({\n sources,\n icon: Icon,\n className,\n ...props\n}: InlineCitationCardTriggerProps): ReactNode => {\n return (\n <HoverCardTrigger\n render={\n <Badge\n data-slot=\"inline-citation-card-trigger\"\n className={cn(\n 'ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-2-background px-1 text-sm leading-4.5 font-medium text-decorative-2-foreground whitespace-nowrap gap-1 transition-[color,box-shadow]',\n '[&>svg]:size-3 [&>svg]:pointer-events-none',\n className\n )}\n {...props}\n >\n {Icon && <Icon className=\"size-3\" />}\n {sources[0] ? (\n <>\n {getHostname(sources[0])}{' '}\n {sources.length > 1 && `+${sources.length - 1}`}\n </>\n ) : (\n 'unknown'\n )}\n </Badge>\n }\n />\n );\n};\n\ntype InlineCitationCardBodyProps = ComponentProps<'div'>;\n\nconst InlineCitationCardBody = ({\n className,\n ...props\n}: InlineCitationCardBodyProps): ReactNode => (\n <HoverCardContent\n data-slot=\"inline-citation-card-body\"\n className={cn('relative w-80 p-0', className)}\n {...props}\n />\n);\n\ntype InlineCitationSourceProps = ComponentProps<'div'> & {\n title?: string;\n url?: string;\n description?: string;\n};\n\nconst InlineCitationSource: ForwardRefExoticComponent<\n Omit<InlineCitationSourceProps, 'ref'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, InlineCitationSourceProps>(\n ({ title, url, description, className, children, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"inline-citation-source\"\n className={cn('space-y-1', className)}\n {...props}\n >\n {title && (\n <h4 className=\"truncate font-medium text-sm leading-tight\">{title}</h4>\n )}\n {url && (\n <p className=\"truncate break-all text-muted-foreground text-xs\">\n {url}\n </p>\n )}\n {description && (\n <p className=\"line-clamp-3 text-muted-foreground text-sm leading-relaxed\">\n {description}\n </p>\n )}\n {children}\n </div>\n )\n);\nInlineCitationSource.displayName = 'InlineCitationSource';\n\ntype InlineCitationQuoteProps = ComponentProps<'blockquote'>;\n\nconst InlineCitationQuote: ForwardRefExoticComponent<\n ComponentProps<'blockquote'> & RefAttributes<HTMLQuoteElement>\n> = forwardRef<ComponentRef<'blockquote'>, InlineCitationQuoteProps>(\n ({ children, className, ...props }, ref) => (\n <blockquote\n ref={ref}\n data-slot=\"inline-citation-quote\"\n className={cn(\n 'border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic',\n className\n )}\n {...props}\n >\n {children}\n </blockquote>\n )\n);\nInlineCitationQuote.displayName = 'InlineCitationQuote';\n\nexport type InlineCitationLinkProps = Omit<ComponentProps<'a'>, 'target'> & {\n target?: '_blank' | '_self';\n icon?: ComponentType<{ className?: string }>;\n variant?: DecorativeVariant;\n};\n\nconst InlineCitationLink: ForwardRefExoticComponent<\n Omit<InlineCitationLinkProps, 'ref'> & RefAttributes<HTMLAnchorElement>\n> = forwardRef<ComponentRef<'a'>, InlineCitationLinkProps>(\n (\n {\n href,\n target = '_self',\n icon: Icon,\n variant = 'decorative-1',\n className,\n children,\n ...props\n },\n ref\n ) => {\n const hostname = getHostname(href);\n\n const variantStyles: Record<DecorativeVariant, string> = {\n 'decorative-1':\n 'bg-decorative-1-background hover:bg-decorative-1-background-hover text-decorative-1-foreground',\n 'decorative-2':\n 'bg-decorative-2-background hover:bg-decorative-2-background-hover text-decorative-2-foreground',\n 'decorative-3':\n 'bg-decorative-3-background hover:bg-decorative-3-background-hover text-decorative-3-foreground',\n 'decorative-4':\n 'bg-decorative-4-background hover:bg-decorative-4-background-hover text-decorative-4-foreground',\n 'decorative-5':\n 'bg-decorative-5-background hover:bg-decorative-5-background-hover text-decorative-5-foreground',\n 'decorative-6':\n 'bg-decorative-6-background hover:bg-decorative-6-background-hover text-decorative-6-foreground',\n 'decorative-7':\n 'bg-decorative-7-background hover:bg-decorative-7-background-hover text-decorative-7-foreground',\n };\n\n return (\n <a\n ref={ref}\n href={href}\n target={target}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n className=\"inline-flex items-stretch\"\n {...props}\n >\n <Badge\n data-slot=\"inline-citation-link\"\n className={cn(\n 'inline-flex items-center justify-center rounded-md border border-transparent px-1 text-sm leading-4.5 font-medium whitespace-nowrap gap-1 transition-colors',\n '[&>svg]:size-3 [&>svg]:pointer-events-none',\n variantStyles[variant],\n className\n )}\n >\n {Icon && <Icon className=\"size-3\" />}\n {children ?? hostname}\n </Badge>\n </a>\n );\n }\n);\nInlineCitationLink.displayName = 'InlineCitationLink';\n\nexport {\n InlineCitation,\n InlineCitationCard,\n InlineCitationCardBody,\n InlineCitationCardTrigger,\n InlineCitationGroup,\n InlineCitationLink,\n InlineCitationQuote,\n InlineCitationSource,\n InlineCitationText,\n};\n"],"names":["forwardRef","cn","getHostname","Badge","HoverCard","HoverCardContent","HoverCardTrigger","InlineCitation","className","props","ref","span","data-slot","displayName","InlineCitationGroup","div","InlineCitationText","InlineCitationCard","closeDelay","openDelay","InlineCitationCardTrigger","sources","icon","Icon","render","length","InlineCitationCardBody","InlineCitationSource","title","url","description","children","h4","p","InlineCitationQuote","blockquote","InlineCitationLink","href","target","variant","hostname","variantStyles","a","rel","undefined"],"mappings":"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"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
- import { HelperText } from "../helper-text/helper-text.js";
4
- import { Label } from "../label/label.js";
3
+ import { HelperText } from "../helper-text/helper-text";
4
+ import { Label } from "../label/label";
5
5
  import { Input } from "./input.js";
6
6
  export function InputGallery() {
7
7
  const id = useId();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/input/input.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { HelperText } from '../helper-text/helper-text';\nimport { Label } from '../label/label';\n\nimport { Input } from './input';\n\nexport function InputGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-75 space-y-4\">\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-default`}>Default</Label>\n <Input id={`${id}-default`} placeholder=\"Placeholder\" />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-filled`}>Filled</Label>\n <Input id={`${id}-filled`} defaultValue=\"Input text\" />\n </div>\n <div className=\"group flex w-full flex-col\" data-disabled=\"true\">\n <Label htmlFor={`${id}-disabled`}>Disabled</Label>\n <Input id={`${id}-disabled`} placeholder=\"Placeholder\" disabled />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-readonly`}>Read-only</Label>\n <Input id={`${id}-readonly`} defaultValue=\"Input text\" readOnly />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-error`}>Error</Label>\n <Input id={`${id}-error`} placeholder=\"Placeholder\" aria-invalid />\n <HelperText isError>Help text</HelperText>\n </div>\n </div>\n );\n}\n"],"names":["useId","HelperText","Label","Input","InputGallery","id","div","className","htmlFor","placeholder","defaultValue","data-disabled","disabled","readOnly","aria-invalid","isError"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,KAAK,QAAQ,oBAAiB;AAEvC,SAASC,KAAK,QAAQ,aAAU;AAEhC,OAAO,SAASC;IACd,MAAMC,KAAKL;IAEX,qBACE,MAACM;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,QAAQ,CAAC;kCAAE;;kCACjC,KAACF;wBAAME,IAAI,GAAGA,GAAG,QAAQ,CAAC;wBAAEI,aAAY;;;;0BAE1C,MAACH;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,OAAO,CAAC;kCAAE;;kCAChC,KAACF;wBAAME,IAAI,GAAGA,GAAG,OAAO,CAAC;wBAAEK,cAAa;;;;0BAE1C,MAACJ;gBAAIC,WAAU;gBAA6BI,iBAAc;;kCACxD,KAACT;wBAAMM,SAAS,GAAGH,GAAG,SAAS,CAAC;kCAAE;;kCAClC,KAACF;wBAAME,IAAI,GAAGA,GAAG,SAAS,CAAC;wBAAEI,aAAY;wBAAcG,QAAQ;;;;0BAEjE,MAACN;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,SAAS,CAAC;kCAAE;;kCAClC,KAACF;wBAAME,IAAI,GAAGA,GAAG,SAAS,CAAC;wBAAEK,cAAa;wBAAaG,QAAQ;;;;0BAEjE,MAACP;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,MAAM,CAAC;kCAAE;;kCAC/B,KAACF;wBAAME,IAAI,GAAGA,GAAG,MAAM,CAAC;wBAAEI,aAAY;wBAAcK,cAAY;;kCAChE,KAACb;wBAAWc,OAAO;kCAAC;;;;;;AAI5B"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/input/input.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { HelperText } from '../helper-text/helper-text';\nimport { Label } from '../label/label';\n\nimport { Input } from './input';\n\nexport function InputGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-75 space-y-4\">\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-default`}>Default</Label>\n <Input id={`${id}-default`} placeholder=\"Placeholder\" />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-filled`}>Filled</Label>\n <Input id={`${id}-filled`} defaultValue=\"Input text\" />\n </div>\n <div className=\"group flex w-full flex-col\" data-disabled=\"true\">\n <Label htmlFor={`${id}-disabled`}>Disabled</Label>\n <Input id={`${id}-disabled`} placeholder=\"Placeholder\" disabled />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-readonly`}>Read-only</Label>\n <Input id={`${id}-readonly`} defaultValue=\"Input text\" readOnly />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-error`}>Error</Label>\n <Input id={`${id}-error`} placeholder=\"Placeholder\" aria-invalid />\n <HelperText isError>Help text</HelperText>\n </div>\n </div>\n );\n}\n"],"names":["useId","HelperText","Label","Input","InputGallery","id","div","className","htmlFor","placeholder","defaultValue","data-disabled","disabled","readOnly","aria-invalid","isError"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,KAAK,QAAQ,iBAAiB;AAEvC,SAASC,KAAK,QAAQ,aAAU;AAEhC,OAAO,SAASC;IACd,MAAMC,KAAKL;IAEX,qBACE,MAACM;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,QAAQ,CAAC;kCAAE;;kCACjC,KAACF;wBAAME,IAAI,GAAGA,GAAG,QAAQ,CAAC;wBAAEI,aAAY;;;;0BAE1C,MAACH;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,OAAO,CAAC;kCAAE;;kCAChC,KAACF;wBAAME,IAAI,GAAGA,GAAG,OAAO,CAAC;wBAAEK,cAAa;;;;0BAE1C,MAACJ;gBAAIC,WAAU;gBAA6BI,iBAAc;;kCACxD,KAACT;wBAAMM,SAAS,GAAGH,GAAG,SAAS,CAAC;kCAAE;;kCAClC,KAACF;wBAAME,IAAI,GAAGA,GAAG,SAAS,CAAC;wBAAEI,aAAY;wBAAcG,QAAQ;;;;0BAEjE,MAACN;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,SAAS,CAAC;kCAAE;;kCAClC,KAACF;wBAAME,IAAI,GAAGA,GAAG,SAAS,CAAC;wBAAEK,cAAa;wBAAaG,QAAQ;;;;0BAEjE,MAACP;gBAAIC,WAAU;;kCACb,KAACL;wBAAMM,SAAS,GAAGH,GAAG,MAAM,CAAC;kCAAE;;kCAC/B,KAACF;wBAAME,IAAI,GAAGA,GAAG,MAAM,CAAC;wBAAEI,aAAY;wBAAcK,cAAY;;kCAChE,KAACb;wBAAWc,OAAO;kCAAC;;;;;;AAI5B"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { cn, disabledState, filledState, focusState, formElementBase, hoverState, invalidState, readOnlyState } from "../../../../lib/utils.js";
3
+ import { cn, disabledState, filledState, focusState, formElementBase, hoverState, invalidState, readOnlyState } from "../../../../lib/utils";
4
4
  const Input = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>{
5
5
  return /*#__PURE__*/ _jsx("input", {
6
6
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/input/input.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ForwardedRef,\n forwardRef,\n} from 'react';\n\nimport {\n cn,\n disabledState,\n filledState,\n focusState,\n formElementBase,\n hoverState,\n invalidState,\n readOnlyState,\n} from '../../../../lib/utils';\n\nconst Input: ForwardRefExoticComponent<\n ComponentProps<'input'> & RefAttributes<HTMLInputElement>\n> = forwardRef<HTMLInputElement, ComponentProps<'input'>>(\n (\n { className, ...props }: ComponentProps<'input'>,\n ref: ForwardedRef<HTMLInputElement>\n ) => {\n return (\n <input\n ref={ref}\n data-slot=\"input\"\n className={cn(\n 'w-full h-9',\n formElementBase,\n hoverState,\n filledState,\n focusState,\n invalidState,\n disabledState,\n readOnlyState,\n className\n )}\n {...props}\n />\n );\n }\n);\n\nInput.displayName = 'Input';\n\nexport { Input };\n"],"names":["forwardRef","cn","disabledState","filledState","focusState","formElementBase","hoverState","invalidState","readOnlyState","Input","className","props","ref","input","data-slot","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SACEC,EAAE,EACFC,aAAa,EACbC,WAAW,EACXC,UAAU,EACVC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,aAAa,QACR,2BAAwB;AAE/B,MAAMC,sBAEFT,WACF,CACE,EAAEU,SAAS,EAAE,GAAGC,OAAgC,EAChDC;IAEA,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWT,GACT,cACAI,iBACAC,YACAH,aACAC,YACAG,cACAL,eACAM,eACAE;QAED,GAAGC,KAAK;;AAGf;AAGFF,MAAMM,WAAW,GAAG;AAEpB,SAASN,KAAK,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/input/input.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ForwardedRef,\n forwardRef,\n} from 'react';\n\nimport {\n cn,\n disabledState,\n filledState,\n focusState,\n formElementBase,\n hoverState,\n invalidState,\n readOnlyState,\n} from '../../../../lib/utils';\n\nconst Input: ForwardRefExoticComponent<\n ComponentProps<'input'> & RefAttributes<HTMLInputElement>\n> = forwardRef<HTMLInputElement, ComponentProps<'input'>>(\n (\n { className, ...props }: ComponentProps<'input'>,\n ref: ForwardedRef<HTMLInputElement>\n ) => {\n return (\n <input\n ref={ref}\n data-slot=\"input\"\n className={cn(\n 'w-full h-9',\n formElementBase,\n hoverState,\n filledState,\n focusState,\n invalidState,\n disabledState,\n readOnlyState,\n className\n )}\n {...props}\n />\n );\n }\n);\n\nInput.displayName = 'Input';\n\nexport { Input };\n"],"names":["forwardRef","cn","disabledState","filledState","focusState","formElementBase","hoverState","invalidState","readOnlyState","Input","className","props","ref","input","data-slot","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SACEC,EAAE,EACFC,aAAa,EACbC,WAAW,EACXC,UAAU,EACVC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,aAAa,QACR,wBAAwB;AAE/B,MAAMC,sBAEFT,WACF,CACE,EAAEU,SAAS,EAAE,GAAGC,OAAgC,EAChDC;IAEA,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWT,GACT,cACAI,iBACAC,YACAH,aACAC,YACAG,cACAL,eACAM,eACAE;QAED,GAAGC,KAAK;;AAGf;AAGFF,MAAMM,WAAW,GAAG;AAEpB,SAASN,KAAK,GAAG"}
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { IconChevronDown, IconChevronUp } from "@tabler/icons-react";
4
4
  import { cva } from "class-variance-authority";
5
- import { cn } from "../../../../lib/utils.js";
6
- import { Button } from "../button/button.js";
7
- import { Input } from "../input/input.js";
8
- import { Textarea } from "../textarea/textarea.js";
5
+ import { cn } from "../../../../lib/utils";
6
+ import { Button } from "../button/button";
7
+ import { Input } from "../input/input";
8
+ import { Textarea } from "../textarea/textarea";
9
9
  const InputGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>{
10
10
  return /*#__PURE__*/ _jsx("div", {
11
11
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/input-group/input-group.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { IconChevronDown, IconChevronUp } from '@tabler/icons-react';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassProp } from 'class-variance-authority/types';\n\nimport { cn } from '../../../../lib/utils';\nimport { Button } from '../button/button';\nimport { Input } from '../input/input';\nimport { Textarea } from '../textarea/textarea';\n\nconst InputGroup: ForwardRefExoticComponent<\n ComponentProps<'div'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, ComponentProps<'div'>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"input-group\"\n role=\"group\"\n className={cn(\n 'group/input-group bg-medium-background border border-transparent relative flex w-full items-stretch rounded-lg shadow-none transition-[color,box-shadow,border-color,background-color] outline-none',\n 'hover:border-emphasized',\n 'h-9 min-w-0 has-[>textarea]:h-auto',\n 'has-[>[data-align=inline-start]]:[&>input]:pl-2 has-[>[data-align=inline-start]]:[&>input]:rounded-l-none has-[>[data-align=inline-start]]:[&>textarea]:rounded-l-none',\n 'has-[>[data-align=inline-end]]:[&>input]:rounded-r-none has-[>[data-align=inline-end]]:[&>textarea]:rounded-r-none',\n '[&>input]:pr-2 [&>textarea]:pr-2',\n 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3',\n 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3',\n 'has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:bg-base-background has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:shadow-focus-ring has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:border-transparent',\n 'has-[[data-slot=input-group-control][aria-invalid=true]:not(:focus-visible)]:shadow-focus-ring-destructive has-[[data-slot=input-group-control][aria-invalid=true]:not(:focus-visible)]:border-transparent',\n 'has-[[data-slot=input-group-control]:read-only:not(:disabled)]:border-transparent has-[[data-slot=input-group-control]:read-only:not(:disabled)]:bg-card-background has-[[data-slot=input-group-control]:read-only:not(:disabled)]:text-muted-foreground has-[[data-slot=input-group-control]:read-only:not(:disabled)]:shadow-none',\n 'hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:border-transparent hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:bg-card-background hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:text-muted-foreground',\n 'has-[[data-slot=input-group-control]:disabled]:bg-transparent has-[[data-slot=input-group-control]:disabled]:border-disabled has-[[data-slot=input-group-control]:disabled]:hover:border-disabled has-[[data-slot=input-group-control]:disabled]:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroup.displayName = 'InputGroup';\n\nconst inputGroupLeadingIcon =\n \"[&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0 [&>svg]:text-muted-foreground [&>svg]:transition-colors group-hover/input-group:group-has-[[data-slot=input-group-control]:enabled:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:enabled:focus-visible:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:enabled:not(:placeholder-shown):not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control][aria-invalid=true]:enabled:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:read-only:enabled]/input-group:[&>svg]:text-muted-foreground group-has-[[data-slot=input-group-control]:disabled]/input-group:[&>svg]:text-base-foreground-disabled\";\n\nconst inputGroupSuffixAddon =\n \"[&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0 [&>svg]:text-muted-foreground [&>svg]:transition-colors\";\n\ninterface InputGroupAddonVariantProps {\n align?: 'inline-start' | 'inline-end' | 'block-start' | 'block-end' | null;\n}\n\nconst inputGroupAddonVariants: (\n props?: (InputGroupAddonVariantProps & ClassProp) | undefined\n) => string = cva(\n 'text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-2 text-xs font-normal select-none [&>kbd]:rounded-sm group-has-[[data-slot=input-group-control]:read-only:not(:disabled)]/input-group:cursor-default',\n {\n variants: {\n align: {\n 'inline-start': cn(\n 'order-first min-h-0 rounded-l-lg pl-2',\n inputGroupLeadingIcon\n ),\n 'inline-end': cn(\n 'order-last min-h-0 rounded-r-lg pr-2 has-[>button]:pr-1 has-[kbd]:pr-1 has-[[class*=stepper]]:pr-1',\n inputGroupSuffixAddon\n ),\n 'block-start': cn(\n 'order-first w-full justify-start px-2 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5',\n inputGroupLeadingIcon\n ),\n 'block-end': cn(\n 'order-last w-full justify-start px-2 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5',\n inputGroupSuffixAddon\n ),\n },\n },\n defaultVariants: {\n align: 'inline-start',\n },\n }\n);\n\nconst InputGroupAddon: ForwardRefExoticComponent<\n ComponentProps<'div'> &\n VariantProps<typeof inputGroupAddonVariants> &\n RefAttributes<HTMLDivElement>\n> = forwardRef<\n HTMLDivElement,\n ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>\n>(({ className, align = 'inline-start', ...props }, ref) => {\n return (\n <div\n ref={ref}\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(e) => {\n if (e.target instanceof HTMLElement && e.target.closest('button')) {\n return;\n }\n // Clicks that bubbled from a React portal still hit this handler (React tree), but\n // `target` lives outside `currentTarget` in the DOM — do not forward focus to the\n // group's primary control (e.g. PAIA agent menu search vs. message textarea).\n if (e.target instanceof Node && !e.currentTarget.contains(e.target)) {\n return;\n }\n e.currentTarget.parentElement\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement>(\n '[data-slot=\"input-group-control\"]'\n )\n ?.focus();\n }}\n {...props}\n />\n );\n});\nInputGroupAddon.displayName = 'InputGroupAddon';\n\ninterface InputGroupButtonVariantProps {\n size?: 'xs' | 'sm' | 'icon-xs' | 'icon-sm' | null;\n}\n\nconst inputGroupButtonVariants: (\n props?: (InputGroupButtonVariantProps & ClassProp) | undefined\n) => string = cva('text-sm shadow-none flex gap-2 items-center', {\n variants: {\n size: {\n xs: \"h-6 gap-1 px-2 rounded-sm [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2\",\n sm: 'h-7 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5',\n 'icon-xs': 'size-6 rounded-xs p-0 has-[>svg]:p-0',\n 'icon-sm': 'size-7 p-0 has-[>svg]:p-0',\n },\n },\n defaultVariants: {\n size: 'xs',\n },\n});\n\ntype InputGroupButtonProps = Omit<ComponentProps<typeof Button>, 'size'> &\n InputGroupButtonVariantProps;\n\nconst InputGroupButton: ForwardRefExoticComponent<\n Omit<InputGroupButtonProps, 'ref'> & RefAttributes<HTMLElement>\n> = forwardRef<ComponentRef<typeof Button>, InputGroupButtonProps>(\n (\n { className, type = 'button', variant = 'ghost', size = 'xs', ...props },\n ref\n ) => {\n return (\n <Button\n ref={ref}\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n );\n }\n);\nInputGroupButton.displayName = 'InputGroupButton';\n\nconst InputGroupText: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<HTMLSpanElement, ComponentProps<'span'>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n data-slot=\"input-group-text\"\n className={cn(\n \"text-muted-foreground flex items-center gap-2 text-xs leading-[14px] tracking-[-0.00833em] [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroupText.displayName = 'InputGroupText';\n\nconst inputGroupStepperButtonClasses =\n 'bg-secondary-background hover:bg-secondary-background-hover flex min-h-0 flex-1 items-center justify-center rounded-sm p-1 text-muted-foreground transition-colors disabled:pointer-events-none disabled:opacity-50';\n\ntype InputGroupStepperProps = ComponentProps<'div'> & {\n onIncrement?: () => void;\n onDecrement?: () => void;\n incrementLabel?: string;\n decrementLabel?: string;\n disabled?: boolean;\n incrementDisabled?: boolean;\n decrementDisabled?: boolean;\n};\n\nconst InputGroupStepper: ForwardRefExoticComponent<\n InputGroupStepperProps & RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, InputGroupStepperProps>(\n (\n {\n className,\n onIncrement,\n onDecrement,\n incrementLabel = 'Increase value',\n decrementLabel = 'Decrease value',\n disabled = false,\n incrementDisabled = false,\n decrementDisabled = false,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n data-slot=\"input-group-stepper\"\n className={cn('stepper flex w-7 shrink-0 flex-col gap-0.5', className)}\n {...props}\n >\n <button\n type=\"button\"\n className={inputGroupStepperButtonClasses}\n aria-label={incrementLabel}\n onClick={onIncrement}\n disabled={disabled || incrementDisabled}\n >\n <IconChevronUp className=\"size-1.5 shrink-0\" aria-hidden />\n </button>\n <button\n type=\"button\"\n className={inputGroupStepperButtonClasses}\n aria-label={decrementLabel}\n onClick={onDecrement}\n disabled={disabled || decrementDisabled}\n >\n <IconChevronDown className=\"size-1.5 shrink-0\" aria-hidden />\n </button>\n </div>\n );\n }\n);\nInputGroupStepper.displayName = 'InputGroupStepper';\n\nconst inputGroupInputControlClasses: string = cn(\n 'min-h-0 h-full min-w-0 flex-1 rounded-lg border-0 bg-transparent shadow-none hover:text-muted-foreground',\n 'tracking-[-0.04em]',\n 'focus-visible:not(:read-only):bg-base-background focus-visible:shadow-none focus-visible:border-transparent',\n 'read-only:not(:disabled):bg-transparent read-only:not(:disabled):cursor-default read-only:not(:disabled):hover:text-muted-foreground read-only:not(:disabled):focus-visible:bg-transparent',\n 'aria-invalid:shadow-none aria-invalid:border-transparent',\n 'aria-invalid:[&:not(:placeholder-shown)]:border-transparent',\n 'aria-invalid:focus-visible:not(:read-only):bg-base-background aria-invalid:focus-visible:shadow-none aria-invalid:focus-visible:border-transparent',\n 'read-only:not(:disabled):aria-invalid:focus-visible:bg-transparent',\n 'hover:border-0',\n 'disabled:bg-transparent disabled:text-base-foreground-disabled disabled:placeholder:text-base-foreground-disabled disabled:hover:text-base-foreground-disabled disabled:[&:not(:placeholder-shown)]:text-base-foreground-disabled'\n);\n\nconst InputGroupInput: ForwardRefExoticComponent<\n ComponentProps<'input'> & RefAttributes<HTMLInputElement>\n> = forwardRef<HTMLInputElement, ComponentProps<'input'>>(\n ({ className, ...props }, ref) => {\n return (\n <Input\n ref={ref}\n data-slot=\"input-group-control\"\n className={cn(inputGroupInputControlClasses, className)}\n {...props}\n />\n );\n }\n);\nInputGroupInput.displayName = 'InputGroupInput';\n\nconst InputGroupTextarea: ForwardRefExoticComponent<\n ComponentProps<'textarea'> & RefAttributes<HTMLTextAreaElement>\n> = forwardRef<HTMLTextAreaElement, ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => {\n return (\n <Textarea\n ref={ref}\n data-slot=\"input-group-control\"\n className={cn(\n 'min-h-0 flex-1 resize-none rounded-lg border-0 bg-transparent py-3 shadow-none',\n 'tracking-[-0.04em]',\n 'hover:border-0 hover:bg-transparent hover:text-muted-foreground',\n 'filled:border-transparent',\n 'focus-visible:shadow-none focus-visible:border-transparent',\n 'read-only:not(:disabled):bg-transparent read-only:not(:disabled):cursor-default read-only:not(:disabled):hover:text-muted-foreground read-only:not(:disabled):focus-visible:bg-transparent',\n 'aria-invalid:shadow-none aria-invalid:border-transparent',\n 'aria-invalid:[&:not(:placeholder-shown)]:border-transparent',\n 'aria-invalid:focus-visible:not(:read-only):bg-base-background aria-invalid:focus-visible:shadow-none aria-invalid:focus-visible:border-transparent',\n 'read-only:not(:disabled):aria-invalid:focus-visible:bg-transparent',\n 'read-only:not(:disabled):text-muted-foreground [&:read-only:not(:disabled):not(:placeholder-shown)]:text-muted-foreground',\n 'disabled:bg-transparent disabled:text-base-foreground-disabled disabled:placeholder:text-base-foreground-disabled disabled:hover:text-base-foreground-disabled disabled:[&:not(:placeholder-shown)]:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroupTextarea.displayName = 'InputGroupTextarea';\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupStepper,\n InputGroupText,\n InputGroupInput,\n inputGroupInputControlClasses,\n InputGroupTextarea,\n};\n"],"names":["forwardRef","IconChevronDown","IconChevronUp","cva","cn","Button","Input","Textarea","InputGroup","className","props","ref","div","data-slot","role","displayName","inputGroupLeadingIcon","inputGroupSuffixAddon","inputGroupAddonVariants","variants","align","defaultVariants","InputGroupAddon","data-align","onClick","e","target","HTMLElement","closest","Node","currentTarget","contains","parentElement","querySelector","focus","inputGroupButtonVariants","size","xs","sm","InputGroupButton","type","variant","data-size","InputGroupText","span","inputGroupStepperButtonClasses","InputGroupStepper","onIncrement","onDecrement","incrementLabel","decrementLabel","disabled","incrementDisabled","decrementDisabled","button","aria-label","aria-hidden","inputGroupInputControlClasses","InputGroupInput","InputGroupTextarea"],"mappings":"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"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/input-group/input-group.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { IconChevronDown, IconChevronUp } from '@tabler/icons-react';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport type { ClassProp } from 'class-variance-authority/types';\n\nimport { cn } from '../../../../lib/utils';\nimport { Button } from '../button/button';\nimport { Input } from '../input/input';\nimport { Textarea } from '../textarea/textarea';\n\nconst InputGroup: ForwardRefExoticComponent<\n ComponentProps<'div'> & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, ComponentProps<'div'>>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"input-group\"\n role=\"group\"\n className={cn(\n 'group/input-group bg-medium-background border border-transparent relative flex w-full items-stretch rounded-lg shadow-none transition-[color,box-shadow,border-color,background-color] outline-none',\n 'hover:border-emphasized',\n 'h-9 min-w-0 has-[>textarea]:h-auto',\n 'has-[>[data-align=inline-start]]:[&>input]:pl-2 has-[>[data-align=inline-start]]:[&>input]:rounded-l-none has-[>[data-align=inline-start]]:[&>textarea]:rounded-l-none',\n 'has-[>[data-align=inline-end]]:[&>input]:rounded-r-none has-[>[data-align=inline-end]]:[&>textarea]:rounded-r-none',\n '[&>input]:pr-2 [&>textarea]:pr-2',\n 'has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3',\n 'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3',\n 'has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:bg-base-background has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:shadow-focus-ring has-[[data-slot=input-group-control]:focus-visible:not(:read-only)]:border-transparent',\n 'has-[[data-slot=input-group-control][aria-invalid=true]:not(:focus-visible)]:shadow-focus-ring-destructive has-[[data-slot=input-group-control][aria-invalid=true]:not(:focus-visible)]:border-transparent',\n 'has-[[data-slot=input-group-control]:read-only:not(:disabled)]:border-transparent has-[[data-slot=input-group-control]:read-only:not(:disabled)]:bg-card-background has-[[data-slot=input-group-control]:read-only:not(:disabled)]:text-muted-foreground has-[[data-slot=input-group-control]:read-only:not(:disabled)]:shadow-none',\n 'hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:border-transparent hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:bg-card-background hover:has-[[data-slot=input-group-control]:read-only:not(:disabled)]:text-muted-foreground',\n 'has-[[data-slot=input-group-control]:disabled]:bg-transparent has-[[data-slot=input-group-control]:disabled]:border-disabled has-[[data-slot=input-group-control]:disabled]:hover:border-disabled has-[[data-slot=input-group-control]:disabled]:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroup.displayName = 'InputGroup';\n\nconst inputGroupLeadingIcon =\n \"[&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0 [&>svg]:text-muted-foreground [&>svg]:transition-colors group-hover/input-group:group-has-[[data-slot=input-group-control]:enabled:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:enabled:focus-visible:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:enabled:not(:placeholder-shown):not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control][aria-invalid=true]:enabled:not(:read-only)]/input-group:[&>svg]:text-base-foreground group-has-[[data-slot=input-group-control]:read-only:enabled]/input-group:[&>svg]:text-muted-foreground group-has-[[data-slot=input-group-control]:disabled]/input-group:[&>svg]:text-base-foreground-disabled\";\n\nconst inputGroupSuffixAddon =\n \"[&>svg:not([class*='size-'])]:size-4 [&>svg]:shrink-0 [&>svg]:text-muted-foreground [&>svg]:transition-colors\";\n\ninterface InputGroupAddonVariantProps {\n align?: 'inline-start' | 'inline-end' | 'block-start' | 'block-end' | null;\n}\n\nconst inputGroupAddonVariants: (\n props?: (InputGroupAddonVariantProps & ClassProp) | undefined\n) => string = cva(\n 'text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-2 text-xs font-normal select-none [&>kbd]:rounded-sm group-has-[[data-slot=input-group-control]:read-only:not(:disabled)]/input-group:cursor-default',\n {\n variants: {\n align: {\n 'inline-start': cn(\n 'order-first min-h-0 rounded-l-lg pl-2',\n inputGroupLeadingIcon\n ),\n 'inline-end': cn(\n 'order-last min-h-0 rounded-r-lg pr-2 has-[>button]:pr-1 has-[kbd]:pr-1 has-[[class*=stepper]]:pr-1',\n inputGroupSuffixAddon\n ),\n 'block-start': cn(\n 'order-first w-full justify-start px-2 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5',\n inputGroupLeadingIcon\n ),\n 'block-end': cn(\n 'order-last w-full justify-start px-2 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5',\n inputGroupSuffixAddon\n ),\n },\n },\n defaultVariants: {\n align: 'inline-start',\n },\n }\n);\n\nconst InputGroupAddon: ForwardRefExoticComponent<\n ComponentProps<'div'> &\n VariantProps<typeof inputGroupAddonVariants> &\n RefAttributes<HTMLDivElement>\n> = forwardRef<\n HTMLDivElement,\n ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>\n>(({ className, align = 'inline-start', ...props }, ref) => {\n return (\n <div\n ref={ref}\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n className={cn(inputGroupAddonVariants({ align }), className)}\n onClick={(e) => {\n if (e.target instanceof HTMLElement && e.target.closest('button')) {\n return;\n }\n // Clicks that bubbled from a React portal still hit this handler (React tree), but\n // `target` lives outside `currentTarget` in the DOM — do not forward focus to the\n // group's primary control (e.g. PAIA agent menu search vs. message textarea).\n if (e.target instanceof Node && !e.currentTarget.contains(e.target)) {\n return;\n }\n e.currentTarget.parentElement\n ?.querySelector<HTMLInputElement | HTMLTextAreaElement>(\n '[data-slot=\"input-group-control\"]'\n )\n ?.focus();\n }}\n {...props}\n />\n );\n});\nInputGroupAddon.displayName = 'InputGroupAddon';\n\ninterface InputGroupButtonVariantProps {\n size?: 'xs' | 'sm' | 'icon-xs' | 'icon-sm' | null;\n}\n\nconst inputGroupButtonVariants: (\n props?: (InputGroupButtonVariantProps & ClassProp) | undefined\n) => string = cva('text-sm shadow-none flex gap-2 items-center', {\n variants: {\n size: {\n xs: \"h-6 gap-1 px-2 rounded-sm [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2\",\n sm: 'h-7 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5',\n 'icon-xs': 'size-6 rounded-xs p-0 has-[>svg]:p-0',\n 'icon-sm': 'size-7 p-0 has-[>svg]:p-0',\n },\n },\n defaultVariants: {\n size: 'xs',\n },\n});\n\ntype InputGroupButtonProps = Omit<ComponentProps<typeof Button>, 'size'> &\n InputGroupButtonVariantProps;\n\nconst InputGroupButton: ForwardRefExoticComponent<\n Omit<InputGroupButtonProps, 'ref'> & RefAttributes<HTMLElement>\n> = forwardRef<ComponentRef<typeof Button>, InputGroupButtonProps>(\n (\n { className, type = 'button', variant = 'ghost', size = 'xs', ...props },\n ref\n ) => {\n return (\n <Button\n ref={ref}\n type={type}\n data-size={size}\n variant={variant}\n className={cn(inputGroupButtonVariants({ size }), className)}\n {...props}\n />\n );\n }\n);\nInputGroupButton.displayName = 'InputGroupButton';\n\nconst InputGroupText: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<HTMLSpanElement, ComponentProps<'span'>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n data-slot=\"input-group-text\"\n className={cn(\n \"text-muted-foreground flex items-center gap-2 text-xs leading-[14px] tracking-[-0.00833em] [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroupText.displayName = 'InputGroupText';\n\nconst inputGroupStepperButtonClasses =\n 'bg-secondary-background hover:bg-secondary-background-hover flex min-h-0 flex-1 items-center justify-center rounded-sm p-1 text-muted-foreground transition-colors disabled:pointer-events-none disabled:opacity-50';\n\ntype InputGroupStepperProps = ComponentProps<'div'> & {\n onIncrement?: () => void;\n onDecrement?: () => void;\n incrementLabel?: string;\n decrementLabel?: string;\n disabled?: boolean;\n incrementDisabled?: boolean;\n decrementDisabled?: boolean;\n};\n\nconst InputGroupStepper: ForwardRefExoticComponent<\n InputGroupStepperProps & RefAttributes<HTMLDivElement>\n> = forwardRef<HTMLDivElement, InputGroupStepperProps>(\n (\n {\n className,\n onIncrement,\n onDecrement,\n incrementLabel = 'Increase value',\n decrementLabel = 'Decrease value',\n disabled = false,\n incrementDisabled = false,\n decrementDisabled = false,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n data-slot=\"input-group-stepper\"\n className={cn('stepper flex w-7 shrink-0 flex-col gap-0.5', className)}\n {...props}\n >\n <button\n type=\"button\"\n className={inputGroupStepperButtonClasses}\n aria-label={incrementLabel}\n onClick={onIncrement}\n disabled={disabled || incrementDisabled}\n >\n <IconChevronUp className=\"size-1.5 shrink-0\" aria-hidden />\n </button>\n <button\n type=\"button\"\n className={inputGroupStepperButtonClasses}\n aria-label={decrementLabel}\n onClick={onDecrement}\n disabled={disabled || decrementDisabled}\n >\n <IconChevronDown className=\"size-1.5 shrink-0\" aria-hidden />\n </button>\n </div>\n );\n }\n);\nInputGroupStepper.displayName = 'InputGroupStepper';\n\nconst inputGroupInputControlClasses: string = cn(\n 'min-h-0 h-full min-w-0 flex-1 rounded-lg border-0 bg-transparent shadow-none hover:text-muted-foreground',\n 'tracking-[-0.04em]',\n 'focus-visible:not(:read-only):bg-base-background focus-visible:shadow-none focus-visible:border-transparent',\n 'read-only:not(:disabled):bg-transparent read-only:not(:disabled):cursor-default read-only:not(:disabled):hover:text-muted-foreground read-only:not(:disabled):focus-visible:bg-transparent',\n 'aria-invalid:shadow-none aria-invalid:border-transparent',\n 'aria-invalid:[&:not(:placeholder-shown)]:border-transparent',\n 'aria-invalid:focus-visible:not(:read-only):bg-base-background aria-invalid:focus-visible:shadow-none aria-invalid:focus-visible:border-transparent',\n 'read-only:not(:disabled):aria-invalid:focus-visible:bg-transparent',\n 'hover:border-0',\n 'disabled:bg-transparent disabled:text-base-foreground-disabled disabled:placeholder:text-base-foreground-disabled disabled:hover:text-base-foreground-disabled disabled:[&:not(:placeholder-shown)]:text-base-foreground-disabled'\n);\n\nconst InputGroupInput: ForwardRefExoticComponent<\n ComponentProps<'input'> & RefAttributes<HTMLInputElement>\n> = forwardRef<HTMLInputElement, ComponentProps<'input'>>(\n ({ className, ...props }, ref) => {\n return (\n <Input\n ref={ref}\n data-slot=\"input-group-control\"\n className={cn(inputGroupInputControlClasses, className)}\n {...props}\n />\n );\n }\n);\nInputGroupInput.displayName = 'InputGroupInput';\n\nconst InputGroupTextarea: ForwardRefExoticComponent<\n ComponentProps<'textarea'> & RefAttributes<HTMLTextAreaElement>\n> = forwardRef<HTMLTextAreaElement, ComponentProps<'textarea'>>(\n ({ className, ...props }, ref) => {\n return (\n <Textarea\n ref={ref}\n data-slot=\"input-group-control\"\n className={cn(\n 'min-h-0 flex-1 resize-none rounded-lg border-0 bg-transparent py-3 shadow-none',\n 'tracking-[-0.04em]',\n 'hover:border-0 hover:bg-transparent hover:text-muted-foreground',\n 'filled:border-transparent',\n 'focus-visible:shadow-none focus-visible:border-transparent',\n 'read-only:not(:disabled):bg-transparent read-only:not(:disabled):cursor-default read-only:not(:disabled):hover:text-muted-foreground read-only:not(:disabled):focus-visible:bg-transparent',\n 'aria-invalid:shadow-none aria-invalid:border-transparent',\n 'aria-invalid:[&:not(:placeholder-shown)]:border-transparent',\n 'aria-invalid:focus-visible:not(:read-only):bg-base-background aria-invalid:focus-visible:shadow-none aria-invalid:focus-visible:border-transparent',\n 'read-only:not(:disabled):aria-invalid:focus-visible:bg-transparent',\n 'read-only:not(:disabled):text-muted-foreground [&:read-only:not(:disabled):not(:placeholder-shown)]:text-muted-foreground',\n 'disabled:bg-transparent disabled:text-base-foreground-disabled disabled:placeholder:text-base-foreground-disabled disabled:hover:text-base-foreground-disabled disabled:[&:not(:placeholder-shown)]:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n }\n);\nInputGroupTextarea.displayName = 'InputGroupTextarea';\n\nexport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupStepper,\n InputGroupText,\n InputGroupInput,\n inputGroupInputControlClasses,\n InputGroupTextarea,\n};\n"],"names":["forwardRef","IconChevronDown","IconChevronUp","cva","cn","Button","Input","Textarea","InputGroup","className","props","ref","div","data-slot","role","displayName","inputGroupLeadingIcon","inputGroupSuffixAddon","inputGroupAddonVariants","variants","align","defaultVariants","InputGroupAddon","data-align","onClick","e","target","HTMLElement","closest","Node","currentTarget","contains","parentElement","querySelector","focus","inputGroupButtonVariants","size","xs","sm","InputGroupButton","type","variant","data-size","InputGroupText","span","inputGroupStepperButtonClasses","InputGroupStepper","onIncrement","onDecrement","incrementLabel","decrementLabel","disabled","incrementDisabled","decrementDisabled","button","aria-label","aria-hidden","inputGroupInputControlClasses","InputGroupInput","InputGroupTextarea"],"mappings":"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"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { IconChevronRight } from "@tabler/icons-react";
4
- import { cn } from "../../../../lib/utils.js";
5
- import { CheckboxItemControl } from "../checkbox/checkbox.js";
4
+ import { cn } from "../../../../lib/utils";
5
+ import { CheckboxItemControl } from "../checkbox/checkbox";
6
6
  const Item = /*#__PURE__*/ forwardRef(({ className, selected = false, disabled = false, ...props }, ref)=>{
7
7
  return /*#__PURE__*/ _jsx("li", {
8
8
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/item/item.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ForwardRefExoticComponent,\n type ReactNode,\n type RefAttributes,\n forwardRef,\n} from 'react';\n\nimport { IconChevronRight } from '@tabler/icons-react';\n\nimport { cn } from '../../../../lib/utils';\nimport { CheckboxItemControl } from '../checkbox/checkbox';\n\ntype ItemProps = ComponentProps<'li'> & {\n selected?: boolean;\n disabled?: boolean;\n};\n\nconst Item: ForwardRefExoticComponent<\n ItemProps & RefAttributes<HTMLLIElement>\n> = forwardRef<HTMLLIElement, ItemProps>(\n ({ className, selected = false, disabled = false, ...props }, ref) => {\n return (\n <li\n ref={ref}\n data-slot=\"item\"\n data-selected={selected ? '' : undefined}\n data-disabled={disabled ? '' : undefined}\n className={cn(\n 'group/item flex min-h-7 items-center gap-2 rounded-lg px-2 py-1 transition-colors',\n 'not-data-disabled:hover:bg-accent-background not-data-disabled:focus-within:bg-accent-background',\n 'data-selected:bg-secondary-background',\n className\n )}\n {...props}\n />\n );\n }\n);\nItem.displayName = 'Item';\n\nconst ItemGroup: ForwardRefExoticComponent<\n ComponentProps<'ul'> & RefAttributes<HTMLUListElement>\n> = forwardRef<HTMLUListElement, ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => {\n return (\n <ul ref={ref} data-slot=\"item-group\" className={className} {...props} />\n );\n }\n);\nItemGroup.displayName = 'ItemGroup';\n\nfunction ItemCheckbox({\n className,\n ...props\n}: ComponentProps<typeof CheckboxItemControl>): ReactNode {\n return (\n <CheckboxItemControl\n data-slot=\"item-checkbox\"\n className={cn(\n 'group-data-disabled/item:border-base-foreground-disabled group-data-disabled/item:bg-transparent',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemMedia({ className, ...props }: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-media\"\n className={cn(\n 'flex shrink-0 items-center text-medium-foreground group-data-disabled/item:text-base-foreground-disabled [&>svg:not([class*=\"size-\"])]:size-4',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemContent({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-content\"\n className={cn('flex min-w-0 flex-1 flex-col gap-1', className)}\n {...props}\n />\n );\n}\n\nfunction ItemTitle({ className, ...props }: ComponentProps<'span'>): ReactNode {\n return (\n <span\n data-slot=\"item-title\"\n className={cn(\n 'truncate text-sm leading-4.5 tracking-tight text-medium-foreground',\n 'group-data-selected/item:text-secondary-foreground',\n 'group-data-disabled/item:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemDescription({\n className,\n ...props\n}: ComponentProps<'p'>): ReactNode {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'truncate text-xs leading-3.5 tracking-tightest text-muted-foreground',\n 'group-data-disabled/item:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemActions({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-actions\"\n className={cn(\n 'flex shrink-0 gap-1 opacity-0 transition-opacity',\n 'group-hover/item:opacity-100 group-focus-within/item:opacity-100',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeader({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-section-header\"\n className={cn(\n 'group/item relative flex h-7 items-center gap-2 rounded-md px-2',\n 'hover:bg-accent-background focus-within:bg-accent-background',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeaderChevron({\n className,\n open = false,\n ...props\n}: Omit<ComponentProps<'svg'>, 'ref'> & { open?: boolean }): ReactNode {\n return (\n <IconChevronRight\n aria-hidden\n data-slot=\"item-section-header-chevron\"\n data-open={open ? '' : undefined}\n className={cn(\n 'absolute left-2 size-2.5 -translate-x-full text-muted-foreground transition-transform duration-200 data-open:rotate-90',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeaderTitle({\n className,\n ...props\n}: ComponentProps<'span'>): ReactNode {\n return (\n <span\n data-slot=\"item-section-header-title\"\n className={cn(\n 'min-w-0 flex-1 truncate text-sm font-medium leading-4.5 text-muted-foreground',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Item,\n ItemActions,\n ItemCheckbox,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSectionHeader,\n ItemSectionHeaderChevron,\n ItemSectionHeaderTitle,\n ItemTitle,\n};\n"],"names":["forwardRef","IconChevronRight","cn","CheckboxItemControl","Item","className","selected","disabled","props","ref","li","data-slot","data-selected","undefined","data-disabled","displayName","ItemGroup","ul","ItemCheckbox","ItemMedia","div","ItemContent","ItemTitle","span","ItemDescription","p","ItemActions","ItemSectionHeader","ItemSectionHeaderChevron","open","aria-hidden","data-open","ItemSectionHeaderTitle"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,gBAAgB,QAAQ,sBAAsB;AAEvD,SAASC,EAAE,QAAQ,2BAAwB;AAC3C,SAASC,mBAAmB,QAAQ,0BAAuB;AAO3D,MAAMC,qBAEFJ,WACF,CAAC,EAAEK,SAAS,EAAEC,WAAW,KAAK,EAAEC,WAAW,KAAK,EAAE,GAAGC,OAAO,EAAEC;IAC5D,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVC,iBAAeN,WAAW,KAAKO;QAC/BC,iBAAeP,WAAW,KAAKM;QAC/BR,WAAWH,GACT,qFACA,oGACA,yCACAG;QAED,GAAGG,KAAK;;AAGf;AAEFJ,KAAKW,WAAW,GAAG;AAEnB,MAAMC,0BAEFhB,WACF,CAAC,EAAEK,SAAS,EAAE,GAAGG,OAAO,EAAEC;IACxB,qBACE,KAACQ;QAAGR,KAAKA;QAAKE,aAAU;QAAaN,WAAWA;QAAY,GAAGG,KAAK;;AAExE;AAEFQ,UAAUD,WAAW,GAAG;AAExB,SAASG,aAAa,EACpBb,SAAS,EACT,GAAGG,OACwC;IAC3C,qBACE,KAACL;QACCQ,aAAU;QACVN,WAAWH,GACT,oGACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASW,UAAU,EAAEd,SAAS,EAAE,GAAGG,OAA8B;IAC/D,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,iJACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASa,YAAY,EACnBhB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GAAG,sCAAsCG;QACnD,GAAGG,KAAK;;AAGf;AAEA,SAASc,UAAU,EAAEjB,SAAS,EAAE,GAAGG,OAA+B;IAChE,qBACE,KAACe;QACCZ,aAAU;QACVN,WAAWH,GACT,sEACA,sDACA,0DACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASgB,gBAAgB,EACvBnB,SAAS,EACT,GAAGG,OACiB;IACpB,qBACE,KAACiB;QACCd,aAAU;QACVN,WAAWH,GACT,wEACA,0DACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASkB,YAAY,EACnBrB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,oDACA,oEACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASmB,kBAAkB,EACzBtB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,mEACA,gEACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASoB,yBAAyB,EAChCvB,SAAS,EACTwB,OAAO,KAAK,EACZ,GAAGrB,OACqD;IACxD,qBACE,KAACP;QACC6B,aAAW;QACXnB,aAAU;QACVoB,aAAWF,OAAO,KAAKhB;QACvBR,WAAWH,GACT,0HACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASwB,uBAAuB,EAC9B3B,SAAS,EACT,GAAGG,OACoB;IACvB,qBACE,KAACe;QACCZ,aAAU;QACVN,WAAWH,GACT,iFACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SACEJ,IAAI,EACJsB,WAAW,EACXR,YAAY,EACZG,WAAW,EACXG,eAAe,EACfR,SAAS,EACTG,SAAS,EACTQ,iBAAiB,EACjBC,wBAAwB,EACxBI,sBAAsB,EACtBV,SAAS,GACT"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/item/item.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ForwardRefExoticComponent,\n type ReactNode,\n type RefAttributes,\n forwardRef,\n} from 'react';\n\nimport { IconChevronRight } from '@tabler/icons-react';\n\nimport { cn } from '../../../../lib/utils';\nimport { CheckboxItemControl } from '../checkbox/checkbox';\n\ntype ItemProps = ComponentProps<'li'> & {\n selected?: boolean;\n disabled?: boolean;\n};\n\nconst Item: ForwardRefExoticComponent<\n ItemProps & RefAttributes<HTMLLIElement>\n> = forwardRef<HTMLLIElement, ItemProps>(\n ({ className, selected = false, disabled = false, ...props }, ref) => {\n return (\n <li\n ref={ref}\n data-slot=\"item\"\n data-selected={selected ? '' : undefined}\n data-disabled={disabled ? '' : undefined}\n className={cn(\n 'group/item flex min-h-7 items-center gap-2 rounded-lg px-2 py-1 transition-colors',\n 'not-data-disabled:hover:bg-accent-background not-data-disabled:focus-within:bg-accent-background',\n 'data-selected:bg-secondary-background',\n className\n )}\n {...props}\n />\n );\n }\n);\nItem.displayName = 'Item';\n\nconst ItemGroup: ForwardRefExoticComponent<\n ComponentProps<'ul'> & RefAttributes<HTMLUListElement>\n> = forwardRef<HTMLUListElement, ComponentProps<'ul'>>(\n ({ className, ...props }, ref) => {\n return (\n <ul ref={ref} data-slot=\"item-group\" className={className} {...props} />\n );\n }\n);\nItemGroup.displayName = 'ItemGroup';\n\nfunction ItemCheckbox({\n className,\n ...props\n}: ComponentProps<typeof CheckboxItemControl>): ReactNode {\n return (\n <CheckboxItemControl\n data-slot=\"item-checkbox\"\n className={cn(\n 'group-data-disabled/item:border-base-foreground-disabled group-data-disabled/item:bg-transparent',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemMedia({ className, ...props }: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-media\"\n className={cn(\n 'flex shrink-0 items-center text-medium-foreground group-data-disabled/item:text-base-foreground-disabled [&>svg:not([class*=\"size-\"])]:size-4',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemContent({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-content\"\n className={cn('flex min-w-0 flex-1 flex-col gap-1', className)}\n {...props}\n />\n );\n}\n\nfunction ItemTitle({ className, ...props }: ComponentProps<'span'>): ReactNode {\n return (\n <span\n data-slot=\"item-title\"\n className={cn(\n 'truncate text-sm leading-4.5 tracking-tight text-medium-foreground',\n 'group-data-selected/item:text-secondary-foreground',\n 'group-data-disabled/item:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemDescription({\n className,\n ...props\n}: ComponentProps<'p'>): ReactNode {\n return (\n <p\n data-slot=\"item-description\"\n className={cn(\n 'truncate text-xs leading-3.5 tracking-tightest text-muted-foreground',\n 'group-data-disabled/item:text-base-foreground-disabled',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemActions({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-actions\"\n className={cn(\n 'flex shrink-0 gap-1 opacity-0 transition-opacity',\n 'group-hover/item:opacity-100 group-focus-within/item:opacity-100',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeader({\n className,\n ...props\n}: ComponentProps<'div'>): ReactNode {\n return (\n <div\n data-slot=\"item-section-header\"\n className={cn(\n 'group/item relative flex h-7 items-center gap-2 rounded-md px-2',\n 'hover:bg-accent-background focus-within:bg-accent-background',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeaderChevron({\n className,\n open = false,\n ...props\n}: Omit<ComponentProps<'svg'>, 'ref'> & { open?: boolean }): ReactNode {\n return (\n <IconChevronRight\n aria-hidden\n data-slot=\"item-section-header-chevron\"\n data-open={open ? '' : undefined}\n className={cn(\n 'absolute left-2 size-2.5 -translate-x-full text-muted-foreground transition-transform duration-200 data-open:rotate-90',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ItemSectionHeaderTitle({\n className,\n ...props\n}: ComponentProps<'span'>): ReactNode {\n return (\n <span\n data-slot=\"item-section-header-title\"\n className={cn(\n 'min-w-0 flex-1 truncate text-sm font-medium leading-4.5 text-muted-foreground',\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n Item,\n ItemActions,\n ItemCheckbox,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSectionHeader,\n ItemSectionHeaderChevron,\n ItemSectionHeaderTitle,\n ItemTitle,\n};\n"],"names":["forwardRef","IconChevronRight","cn","CheckboxItemControl","Item","className","selected","disabled","props","ref","li","data-slot","data-selected","undefined","data-disabled","displayName","ItemGroup","ul","ItemCheckbox","ItemMedia","div","ItemContent","ItemTitle","span","ItemDescription","p","ItemActions","ItemSectionHeader","ItemSectionHeaderChevron","open","aria-hidden","data-open","ItemSectionHeaderTitle"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,gBAAgB,QAAQ,sBAAsB;AAEvD,SAASC,EAAE,QAAQ,wBAAwB;AAC3C,SAASC,mBAAmB,QAAQ,uBAAuB;AAO3D,MAAMC,qBAEFJ,WACF,CAAC,EAAEK,SAAS,EAAEC,WAAW,KAAK,EAAEC,WAAW,KAAK,EAAE,GAAGC,OAAO,EAAEC;IAC5D,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVC,iBAAeN,WAAW,KAAKO;QAC/BC,iBAAeP,WAAW,KAAKM;QAC/BR,WAAWH,GACT,qFACA,oGACA,yCACAG;QAED,GAAGG,KAAK;;AAGf;AAEFJ,KAAKW,WAAW,GAAG;AAEnB,MAAMC,0BAEFhB,WACF,CAAC,EAAEK,SAAS,EAAE,GAAGG,OAAO,EAAEC;IACxB,qBACE,KAACQ;QAAGR,KAAKA;QAAKE,aAAU;QAAaN,WAAWA;QAAY,GAAGG,KAAK;;AAExE;AAEFQ,UAAUD,WAAW,GAAG;AAExB,SAASG,aAAa,EACpBb,SAAS,EACT,GAAGG,OACwC;IAC3C,qBACE,KAACL;QACCQ,aAAU;QACVN,WAAWH,GACT,oGACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASW,UAAU,EAAEd,SAAS,EAAE,GAAGG,OAA8B;IAC/D,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,iJACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASa,YAAY,EACnBhB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GAAG,sCAAsCG;QACnD,GAAGG,KAAK;;AAGf;AAEA,SAASc,UAAU,EAAEjB,SAAS,EAAE,GAAGG,OAA+B;IAChE,qBACE,KAACe;QACCZ,aAAU;QACVN,WAAWH,GACT,sEACA,sDACA,0DACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASgB,gBAAgB,EACvBnB,SAAS,EACT,GAAGG,OACiB;IACpB,qBACE,KAACiB;QACCd,aAAU;QACVN,WAAWH,GACT,wEACA,0DACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASkB,YAAY,EACnBrB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,oDACA,oEACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASmB,kBAAkB,EACzBtB,SAAS,EACT,GAAGG,OACmB;IACtB,qBACE,KAACY;QACCT,aAAU;QACVN,WAAWH,GACT,mEACA,gEACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASoB,yBAAyB,EAChCvB,SAAS,EACTwB,OAAO,KAAK,EACZ,GAAGrB,OACqD;IACxD,qBACE,KAACP;QACC6B,aAAW;QACXnB,aAAU;QACVoB,aAAWF,OAAO,KAAKhB;QACvBR,WAAWH,GACT,0HACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SAASwB,uBAAuB,EAC9B3B,SAAS,EACT,GAAGG,OACoB;IACvB,qBACE,KAACe;QACCZ,aAAU;QACVN,WAAWH,GACT,iFACAG;QAED,GAAGG,KAAK;;AAGf;AAEA,SACEJ,IAAI,EACJsB,WAAW,EACXR,YAAY,EACZG,WAAW,EACXG,eAAe,EACfR,SAAS,EACTG,SAAS,EACTQ,iBAAiB,EACjBC,wBAAwB,EACxBI,sBAAsB,EACtBV,SAAS,GACT"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { cn } from "../../../../lib/utils.js";
3
+ import { cn } from "../../../../lib/utils";
4
4
  const Kbd = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>{
5
5
  return /*#__PURE__*/ _jsx("kbd", {
6
6
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/kbd/kbd.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\nconst Kbd: ForwardRefExoticComponent<\n ComponentProps<'kbd'> & RefAttributes<HTMLElement>\n> = forwardRef<ComponentRef<'kbd'>, ComponentProps<'kbd'>>(\n ({ className, ...props }, ref) => {\n return (\n <kbd\n ref={ref}\n data-slot=\"kbd\"\n className={cn(\n 'bg-muted-background text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium leading-4 select-none aria-disabled:bg-transparent aria-disabled:text-base-foreground-disabled aria-disabled:opacity-100',\n \"[&_svg:not([class*='size-'])]:size-3\",\n className\n )}\n {...props}\n />\n );\n }\n);\nKbd.displayName = 'Kbd';\n\nconst KbdGroup: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, ComponentProps<'span'>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n data-slot=\"kbd-group\"\n className={cn('inline-flex items-center gap-1', className)}\n {...props}\n />\n );\n }\n);\nKbdGroup.displayName = 'KbdGroup';\n\nexport { Kbd, KbdGroup };\n"],"names":["forwardRef","cn","Kbd","className","props","ref","kbd","data-slot","displayName","KbdGroup","span"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,2BAAwB;AAE3C,MAAMC,oBAEFF,WACF,CAAC,EAAEG,SAAS,EAAE,GAAGC,OAAO,EAAEC;IACxB,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWF,GACT,wSACA,wCACAE;QAED,GAAGC,KAAK;;AAGf;AAEFF,IAAIM,WAAW,GAAG;AAElB,MAAMC,yBAEFT,WACF,CAAC,EAAEG,SAAS,EAAE,GAAGC,OAAO,EAAEC;IACxB,qBACE,KAACK;QACCL,KAAKA;QACLE,aAAU;QACVJ,WAAWF,GAAG,kCAAkCE;QAC/C,GAAGC,KAAK;;AAGf;AAEFK,SAASD,WAAW,GAAG;AAEvB,SAASN,GAAG,EAAEO,QAAQ,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/kbd/kbd.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentProps,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\nconst Kbd: ForwardRefExoticComponent<\n ComponentProps<'kbd'> & RefAttributes<HTMLElement>\n> = forwardRef<ComponentRef<'kbd'>, ComponentProps<'kbd'>>(\n ({ className, ...props }, ref) => {\n return (\n <kbd\n ref={ref}\n data-slot=\"kbd\"\n className={cn(\n 'bg-muted-background text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium leading-4 select-none aria-disabled:bg-transparent aria-disabled:text-base-foreground-disabled aria-disabled:opacity-100',\n \"[&_svg:not([class*='size-'])]:size-3\",\n className\n )}\n {...props}\n />\n );\n }\n);\nKbd.displayName = 'Kbd';\n\nconst KbdGroup: ForwardRefExoticComponent<\n ComponentProps<'span'> & RefAttributes<HTMLSpanElement>\n> = forwardRef<ComponentRef<'span'>, ComponentProps<'span'>>(\n ({ className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n data-slot=\"kbd-group\"\n className={cn('inline-flex items-center gap-1', className)}\n {...props}\n />\n );\n }\n);\nKbdGroup.displayName = 'KbdGroup';\n\nexport { Kbd, KbdGroup };\n"],"names":["forwardRef","cn","Kbd","className","props","ref","kbd","data-slot","displayName","KbdGroup","span"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,wBAAwB;AAE3C,MAAMC,oBAEFF,WACF,CAAC,EAAEG,SAAS,EAAE,GAAGC,OAAO,EAAEC;IACxB,qBACE,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWF,GACT,wSACA,wCACAE;QAED,GAAGC,KAAK;;AAGf;AAEFF,IAAIM,WAAW,GAAG;AAElB,MAAMC,yBAEFT,WACF,CAAC,EAAEG,SAAS,EAAE,GAAGC,OAAO,EAAEC;IACxB,qBACE,KAACK;QACCL,KAAKA;QACLE,aAAU;QACVJ,WAAWF,GAAG,kCAAkCE;QAC/C,GAAGC,KAAK;;AAGf;AAEFK,SAASD,WAAW,GAAG;AAEvB,SAASN,GAAG,EAAEO,QAAQ,GAAG"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useId } from "react";
3
- import { Input } from "../../input/input.js";
4
- import { Label } from "../label.js";
3
+ import { Input } from "../../input/input";
4
+ import { Label } from "../label";
5
5
  export function LabelGallery() {
6
6
  const id = useId();
7
7
  return /*#__PURE__*/ _jsxs("div", {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/components/ui/core/label/examples/label.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { Input } from '../../input/input';\nimport { Label } from '../label';\n\nexport function LabelGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-75 space-y-4\">\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-name`}>Name</Label>\n <Input id={`${id}-name`} placeholder=\"Enter name\" />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-email`} required>\n Email address\n </Label>\n <Input id={`${id}-email`} type=\"email\" required />\n </div>\n <div className=\"group flex w-full flex-col\" data-disabled=\"true\">\n <Label htmlFor={`${id}-workspace`}>Workspace</Label>\n <Input id={`${id}-workspace`} defaultValue=\"Default\" disabled />\n </div>\n </div>\n );\n}\n"],"names":["useId","Input","Label","LabelGallery","id","div","className","htmlFor","placeholder","required","type","data-disabled","defaultValue","disabled"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,KAAK,QAAQ,uBAAoB;AAC1C,SAASC,KAAK,QAAQ,cAAW;AAEjC,OAAO,SAASC;IACd,MAAMC,KAAKJ;IAEX,qBACE,MAACK;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAS,GAAGH,GAAG,KAAK,CAAC;kCAAE;;kCAC9B,KAACH;wBAAMG,IAAI,GAAGA,GAAG,KAAK,CAAC;wBAAEI,aAAY;;;;0BAEvC,MAACH;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAS,GAAGH,GAAG,MAAM,CAAC;wBAAEK,QAAQ;kCAAC;;kCAGxC,KAACR;wBAAMG,IAAI,GAAGA,GAAG,MAAM,CAAC;wBAAEM,MAAK;wBAAQD,QAAQ;;;;0BAEjD,MAACJ;gBAAIC,WAAU;gBAA6BK,iBAAc;;kCACxD,KAACT;wBAAMK,SAAS,GAAGH,GAAG,UAAU,CAAC;kCAAE;;kCACnC,KAACH;wBAAMG,IAAI,GAAGA,GAAG,UAAU,CAAC;wBAAEQ,cAAa;wBAAUC,QAAQ;;;;;;AAIrE"}
1
+ {"version":3,"sources":["../../../../../../src/components/ui/core/label/examples/label.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { Input } from '../../input/input';\nimport { Label } from '../label';\n\nexport function LabelGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-75 space-y-4\">\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-name`}>Name</Label>\n <Input id={`${id}-name`} placeholder=\"Enter name\" />\n </div>\n <div className=\"flex w-full flex-col\">\n <Label htmlFor={`${id}-email`} required>\n Email address\n </Label>\n <Input id={`${id}-email`} type=\"email\" required />\n </div>\n <div className=\"group flex w-full flex-col\" data-disabled=\"true\">\n <Label htmlFor={`${id}-workspace`}>Workspace</Label>\n <Input id={`${id}-workspace`} defaultValue=\"Default\" disabled />\n </div>\n </div>\n );\n}\n"],"names":["useId","Input","Label","LabelGallery","id","div","className","htmlFor","placeholder","required","type","data-disabled","defaultValue","disabled"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,KAAK,QAAQ,WAAW;AAEjC,OAAO,SAASC;IACd,MAAMC,KAAKJ;IAEX,qBACE,MAACK;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAS,GAAGH,GAAG,KAAK,CAAC;kCAAE;;kCAC9B,KAACH;wBAAMG,IAAI,GAAGA,GAAG,KAAK,CAAC;wBAAEI,aAAY;;;;0BAEvC,MAACH;gBAAIC,WAAU;;kCACb,KAACJ;wBAAMK,SAAS,GAAGH,GAAG,MAAM,CAAC;wBAAEK,QAAQ;kCAAC;;kCAGxC,KAACR;wBAAMG,IAAI,GAAGA,GAAG,MAAM,CAAC;wBAAEM,MAAK;wBAAQD,QAAQ;;;;0BAEjD,MAACJ;gBAAIC,WAAU;gBAA6BK,iBAAc;;kCACxD,KAACT;wBAAMK,SAAS,GAAGH,GAAG,UAAU,CAAC;kCAAE;;kCACnC,KAACH;wBAAMG,IAAI,GAAGA,GAAG,UAAU,CAAC;wBAAEQ,cAAa;wBAAUC,QAAQ;;;;;;AAIrE"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { cn } from "../../../../lib/utils.js";
3
+ import { cn } from "../../../../lib/utils";
4
4
  const Label = /*#__PURE__*/ forwardRef(({ className, children, required = false, ...props }, ref)=>{
5
5
  return /*#__PURE__*/ _jsxs("label", {
6
6
  ref: ref,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/label/label.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ntype LabelProps = ComponentPropsWithoutRef<'label'> & {\n required?: boolean;\n};\n\nconst Label: ForwardRefExoticComponent<\n ComponentProps<'label'> & {\n required?: boolean;\n } & RefAttributes<HTMLLabelElement>\n> = forwardRef<ComponentRef<'label'>, LabelProps>(\n ({ className, children, required = false, ...props }, ref) => {\n return (\n <label\n ref={ref}\n data-slot=\"label\"\n className={cn(\n 'flex items-center pb-2 text-sm font-medium leading-4.5 tracking-normal text-muted-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:text-base-foreground-disabled',\n className\n )}\n {...props}\n >\n {children}\n {required ? (\n <span\n data-slot=\"label-required-indicator\"\n className=\"inline-block shrink-0 self-start pt-0.5\"\n >\n <svg\n aria-hidden=\"true\"\n width=\"5\"\n height=\"8\"\n viewBox=\"0 0 5 8\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.01082 7.19387L2.09648 5.29125L0.491434 6.32372L0 5.46709L1.70424 4.59693L0 3.72678L0.491434 2.87015L2.09648 3.90261L2.01082 2H2.98918L2.90352 3.90261L4.50857 2.87015L5 3.72678L3.29576 4.59693L5 5.46709L4.50857 6.32372L2.90352 5.29125L2.98918 7.19387H2.01082Z\" />\n </svg>\n </span>\n ) : null}\n </label>\n );\n }\n);\n\nLabel.displayName = 'Label';\n\nexport { Label };\n"],"names":["forwardRef","cn","Label","className","children","required","props","ref","label","data-slot","span","svg","aria-hidden","width","height","viewBox","fill","xmlns","path","d","displayName"],"mappings":";AAAA,SAMEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,2BAAwB;AAM3C,MAAMC,sBAIFF,WACF,CAAC,EAAEG,SAAS,EAAEC,QAAQ,EAAEC,WAAW,KAAK,EAAE,GAAGC,OAAO,EAAEC;IACpD,qBACE,MAACC;QACCD,KAAKA;QACLE,aAAU;QACVN,WAAWF,GACT,kQACAE;QAED,GAAGG,KAAK;;YAERF;YACAC,yBACC,KAACK;gBACCD,aAAU;gBACVN,WAAU;0BAEV,cAAA,KAACQ;oBACCC,eAAY;oBACZC,OAAM;oBACNC,QAAO;oBACPC,SAAQ;oBACRC,MAAK;oBACLC,OAAM;8BAEN,cAAA,KAACC;wBAAKC,GAAE;;;iBAGV;;;AAGV;AAGFjB,MAAMkB,WAAW,GAAG;AAEpB,SAASlB,KAAK,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/label/label.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ntype LabelProps = ComponentPropsWithoutRef<'label'> & {\n required?: boolean;\n};\n\nconst Label: ForwardRefExoticComponent<\n ComponentProps<'label'> & {\n required?: boolean;\n } & RefAttributes<HTMLLabelElement>\n> = forwardRef<ComponentRef<'label'>, LabelProps>(\n ({ className, children, required = false, ...props }, ref) => {\n return (\n <label\n ref={ref}\n data-slot=\"label\"\n className={cn(\n 'flex items-center pb-2 text-sm font-medium leading-4.5 tracking-normal text-muted-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:text-base-foreground-disabled',\n className\n )}\n {...props}\n >\n {children}\n {required ? (\n <span\n data-slot=\"label-required-indicator\"\n className=\"inline-block shrink-0 self-start pt-0.5\"\n >\n <svg\n aria-hidden=\"true\"\n width=\"5\"\n height=\"8\"\n viewBox=\"0 0 5 8\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M2.01082 7.19387L2.09648 5.29125L0.491434 6.32372L0 5.46709L1.70424 4.59693L0 3.72678L0.491434 2.87015L2.09648 3.90261L2.01082 2H2.98918L2.90352 3.90261L4.50857 2.87015L5 3.72678L3.29576 4.59693L5 5.46709L4.50857 6.32372L2.90352 5.29125L2.98918 7.19387H2.01082Z\" />\n </svg>\n </span>\n ) : null}\n </label>\n );\n }\n);\n\nLabel.displayName = 'Label';\n\nexport { Label };\n"],"names":["forwardRef","cn","Label","className","children","required","props","ref","label","data-slot","span","svg","aria-hidden","width","height","viewBox","fill","xmlns","path","d","displayName"],"mappings":";AAAA,SAMEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,wBAAwB;AAM3C,MAAMC,sBAIFF,WACF,CAAC,EAAEG,SAAS,EAAEC,QAAQ,EAAEC,WAAW,KAAK,EAAE,GAAGC,OAAO,EAAEC;IACpD,qBACE,MAACC;QACCD,KAAKA;QACLE,aAAU;QACVN,WAAWF,GACT,kQACAE;QAED,GAAGG,KAAK;;YAERF;YACAC,yBACC,KAACK;gBACCD,aAAU;gBACVN,WAAU;0BAEV,cAAA,KAACQ;oBACCC,eAAY;oBACZC,OAAM;oBACNC,QAAO;oBACPC,SAAQ;oBACRC,MAAK;oBACLC,OAAM;8BAEN,cAAA,KAACC;wBAAKC,GAAE;;;iBAGV;;;AAGV;AAGFjB,MAAMkB,WAAW,GAAG;AAEpB,SAASlB,KAAK,GAAG"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { cn } from "../../../../lib/utils.js";
3
+ import { cn } from "../../../../lib/utils";
4
4
  const LoaderGlyph = ({ size = 16, className, strokeClassName })=>{
5
5
  return /*#__PURE__*/ _jsxs("svg", {
6
6
  "aria-hidden": "true",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/loader/loader.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n type HTMLAttributes,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ninterface LoaderGlyphProps {\n size?: number;\n className?: string;\n strokeClassName?: string;\n}\n\nconst LoaderGlyph = ({\n size = 16,\n className,\n strokeClassName,\n}: LoaderGlyphProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className={cn('overflow-visible', strokeClassName, className)}\n height={size}\n viewBox=\"0 0 167 216\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n className=\"aura-loader-rect aura-loader-rect-1\"\n data-slot=\"loader-rect\"\n x=\"10\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n <rect\n className=\"aura-loader-rect aura-loader-rect-2\"\n data-slot=\"loader-rect\"\n x=\"59\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\ntype LoaderSharedProps = HTMLAttributes<HTMLDivElement>;\n\ninterface InlineLoaderProps extends LoaderSharedProps {\n variant?: 'inline';\n size?: number;\n}\n\ninterface PageLoaderProps extends LoaderSharedProps {\n variant: 'page';\n header: string;\n description?: string;\n}\n\ntype LoaderProps = InlineLoaderProps | PageLoaderProps;\n\nconst isPageLoaderProps = (props: LoaderProps): props is PageLoaderProps => {\n return props.variant === 'page';\n};\n\nconst Loader: ForwardRefExoticComponent<\n LoaderProps & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, LoaderProps>((props, ref) => {\n const className = props.className;\n const role = props.role ?? 'status';\n const ariaLabel = props['aria-label'] ?? 'Loading';\n\n if (!isPageLoaderProps(props)) {\n const {\n size = 16,\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn('inline-flex items-center justify-center', className)}\n {...divProps}\n >\n <LoaderGlyph size={size} strokeClassName=\"text-current\" />\n </div>\n );\n }\n\n const {\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n header,\n description,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn(\n 'text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2',\n className\n )}\n {...divProps}\n >\n <LoaderGlyph\n size={112}\n className=\"size-28\"\n strokeClassName=\"text-current\"\n />\n\n <div className=\"flex w-full flex-col items-center justify-center gap-1 text-center\">\n <p className=\"text-lg font-medium leading-6 tracking-tightest text-foreground\">\n {header}\n </p>\n {description && (\n <p className=\"w-full text-sm leading-[18px] tracking-tight text-secondary-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n});\n\nLoader.displayName = 'Loader';\n\nexport { Loader };\nexport type { LoaderProps };\n"],"names":["forwardRef","cn","LoaderGlyph","size","className","strokeClassName","svg","aria-hidden","focusable","height","viewBox","width","xmlns","rect","data-slot","x","y","rx","fill","stroke","strokeWidth","strokeLinecap","isPageLoaderProps","props","variant","Loader","ref","role","ariaLabel","_variant","_className","_role","_ariaLabel","divProps","div","aria-label","header","description","p","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,2BAAwB;AAQ3C,MAAMC,cAAc,CAAC,EACnBC,OAAO,EAAE,EACTC,SAAS,EACTC,eAAe,EACE;IACjB,qBACE,MAACC;QACCC,eAAY;QACZC,WAAU;QACVJ,WAAWH,GAAG,oBAAoBI,iBAAiBD;QACnDK,QAAQN;QACRO,SAAQ;QACRC,OAAOR;QACPS,OAAM;;0BAEN,KAACC;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;0BAEhB,KAACR;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;;;AAItB;AAiBA,MAAMC,oBAAoB,CAACC;IACzB,OAAOA,MAAMC,OAAO,KAAK;AAC3B;AAEA,MAAMC,uBAEFzB,WAA6C,CAACuB,OAAOG;IACvD,MAAMtB,YAAYmB,MAAMnB,SAAS;IACjC,MAAMuB,OAAOJ,MAAMI,IAAI,IAAI;IAC3B,MAAMC,YAAYL,KAAK,CAAC,aAAa,IAAI;IAEzC,IAAI,CAACD,kBAAkBC,QAAQ;QAC7B,MAAM,EACJpB,OAAO,EAAE,EACTqB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxB,GAAGC,UACJ,GAAGV;QAEJ,qBACE,KAACW;YACCR,KAAKA;YACLZ,aAAU;YACVa,MAAMA;YACNQ,cAAYP;YACZxB,WAAWH,GAAG,2CAA2CG;YACxD,GAAG6B,QAAQ;sBAEZ,cAAA,KAAC/B;gBAAYC,MAAMA;gBAAME,iBAAgB;;;IAG/C;IAEA,MAAM,EACJmB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxBI,MAAM,EACNC,WAAW,EACX,GAAGJ,UACJ,GAAGV;IAEJ,qBACE,MAACW;QACCR,KAAKA;QACLZ,aAAU;QACVa,MAAMA;QACNQ,cAAYP;QACZxB,WAAWH,GACT,oFACAG;QAED,GAAG6B,QAAQ;;0BAEZ,KAAC/B;gBACCC,MAAM;gBACNC,WAAU;gBACVC,iBAAgB;;0BAGlB,MAAC6B;gBAAI9B,WAAU;;kCACb,KAACkC;wBAAElC,WAAU;kCACVgC;;oBAEFC,6BACC,KAACC;wBAAElC,WAAU;kCACViC;;;;;;AAMb;AAEAZ,OAAOc,WAAW,GAAG;AAErB,SAASd,MAAM,GAAG"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/loader/loader.tsx"],"sourcesContent":["import {\n type ForwardRefExoticComponent,\n type RefAttributes,\n type ComponentRef,\n type HTMLAttributes,\n forwardRef,\n} from 'react';\n\nimport { cn } from '../../../../lib/utils';\n\ninterface LoaderGlyphProps {\n size?: number;\n className?: string;\n strokeClassName?: string;\n}\n\nconst LoaderGlyph = ({\n size = 16,\n className,\n strokeClassName,\n}: LoaderGlyphProps) => {\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className={cn('overflow-visible', strokeClassName, className)}\n height={size}\n viewBox=\"0 0 167 216\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n className=\"aura-loader-rect aura-loader-rect-1\"\n data-slot=\"loader-rect\"\n x=\"10\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n <rect\n className=\"aura-loader-rect aura-loader-rect-2\"\n data-slot=\"loader-rect\"\n x=\"59\"\n y=\"10\"\n width=\"98\"\n height=\"196\"\n rx=\"49\"\n fill=\"transparent\"\n stroke=\"currentColor\"\n strokeWidth=\"20\"\n strokeLinecap=\"round\"\n />\n </svg>\n );\n};\n\ntype LoaderSharedProps = HTMLAttributes<HTMLDivElement>;\n\ninterface InlineLoaderProps extends LoaderSharedProps {\n variant?: 'inline';\n size?: number;\n}\n\ninterface PageLoaderProps extends LoaderSharedProps {\n variant: 'page';\n header: string;\n description?: string;\n}\n\ntype LoaderProps = InlineLoaderProps | PageLoaderProps;\n\nconst isPageLoaderProps = (props: LoaderProps): props is PageLoaderProps => {\n return props.variant === 'page';\n};\n\nconst Loader: ForwardRefExoticComponent<\n LoaderProps & RefAttributes<HTMLDivElement>\n> = forwardRef<ComponentRef<'div'>, LoaderProps>((props, ref) => {\n const className = props.className;\n const role = props.role ?? 'status';\n const ariaLabel = props['aria-label'] ?? 'Loading';\n\n if (!isPageLoaderProps(props)) {\n const {\n size = 16,\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn('inline-flex items-center justify-center', className)}\n {...divProps}\n >\n <LoaderGlyph size={size} strokeClassName=\"text-current\" />\n </div>\n );\n }\n\n const {\n variant: _variant,\n className: _className,\n role: _role,\n 'aria-label': _ariaLabel,\n header,\n description,\n ...divProps\n } = props;\n\n return (\n <div\n ref={ref}\n data-slot=\"loader\"\n role={role}\n aria-label={ariaLabel}\n className={cn(\n 'text-foreground flex h-[11.5rem] w-80 flex-col items-center justify-center gap-2',\n className\n )}\n {...divProps}\n >\n <LoaderGlyph\n size={112}\n className=\"size-28\"\n strokeClassName=\"text-current\"\n />\n\n <div className=\"flex w-full flex-col items-center justify-center gap-1 text-center\">\n <p className=\"text-lg font-medium leading-6 tracking-tightest text-foreground\">\n {header}\n </p>\n {description && (\n <p className=\"w-full text-sm leading-[18px] tracking-tight text-secondary-foreground\">\n {description}\n </p>\n )}\n </div>\n </div>\n );\n});\n\nLoader.displayName = 'Loader';\n\nexport { Loader };\nexport type { LoaderProps };\n"],"names":["forwardRef","cn","LoaderGlyph","size","className","strokeClassName","svg","aria-hidden","focusable","height","viewBox","width","xmlns","rect","data-slot","x","y","rx","fill","stroke","strokeWidth","strokeLinecap","isPageLoaderProps","props","variant","Loader","ref","role","ariaLabel","_variant","_className","_role","_ariaLabel","divProps","div","aria-label","header","description","p","displayName"],"mappings":";AAAA,SAKEA,UAAU,QACL,QAAQ;AAEf,SAASC,EAAE,QAAQ,wBAAwB;AAQ3C,MAAMC,cAAc,CAAC,EACnBC,OAAO,EAAE,EACTC,SAAS,EACTC,eAAe,EACE;IACjB,qBACE,MAACC;QACCC,eAAY;QACZC,WAAU;QACVJ,WAAWH,GAAG,oBAAoBI,iBAAiBD;QACnDK,QAAQN;QACRO,SAAQ;QACRC,OAAOR;QACPS,OAAM;;0BAEN,KAACC;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;0BAEhB,KAACR;gBACCT,WAAU;gBACVU,aAAU;gBACVC,GAAE;gBACFC,GAAE;gBACFL,OAAM;gBACNF,QAAO;gBACPQ,IAAG;gBACHC,MAAK;gBACLC,QAAO;gBACPC,aAAY;gBACZC,eAAc;;;;AAItB;AAiBA,MAAMC,oBAAoB,CAACC;IACzB,OAAOA,MAAMC,OAAO,KAAK;AAC3B;AAEA,MAAMC,uBAEFzB,WAA6C,CAACuB,OAAOG;IACvD,MAAMtB,YAAYmB,MAAMnB,SAAS;IACjC,MAAMuB,OAAOJ,MAAMI,IAAI,IAAI;IAC3B,MAAMC,YAAYL,KAAK,CAAC,aAAa,IAAI;IAEzC,IAAI,CAACD,kBAAkBC,QAAQ;QAC7B,MAAM,EACJpB,OAAO,EAAE,EACTqB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxB,GAAGC,UACJ,GAAGV;QAEJ,qBACE,KAACW;YACCR,KAAKA;YACLZ,aAAU;YACVa,MAAMA;YACNQ,cAAYP;YACZxB,WAAWH,GAAG,2CAA2CG;YACxD,GAAG6B,QAAQ;sBAEZ,cAAA,KAAC/B;gBAAYC,MAAMA;gBAAME,iBAAgB;;;IAG/C;IAEA,MAAM,EACJmB,SAASK,QAAQ,EACjBzB,WAAW0B,UAAU,EACrBH,MAAMI,KAAK,EACX,cAAcC,UAAU,EACxBI,MAAM,EACNC,WAAW,EACX,GAAGJ,UACJ,GAAGV;IAEJ,qBACE,MAACW;QACCR,KAAKA;QACLZ,aAAU;QACVa,MAAMA;QACNQ,cAAYP;QACZxB,WAAWH,GACT,oFACAG;QAED,GAAG6B,QAAQ;;0BAEZ,KAAC/B;gBACCC,MAAM;gBACNC,WAAU;gBACVC,iBAAgB;;0BAGlB,MAAC6B;gBAAI9B,WAAU;;kCACb,KAACkC;wBAAElC,WAAU;kCACVgC;;oBAEFC,6BACC,KAACC;wBAAElC,WAAU;kCACViC;;;;;;AAMb;AAEAZ,OAAOc,WAAW,GAAG;AAErB,SAASd,MAAM,GAAG"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DataGridFooter } from "../data-grid/data-grid.js";
3
- import { Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationStatus } from "../pagination/pagination.js";
4
- import { PaginationTeleport } from "../pagination/pagination-teleport.js";
2
+ import { DataGridFooter } from "../data-grid/data-grid";
3
+ import { Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, PaginationStatus } from "../pagination/pagination";
4
+ import { PaginationTeleport } from "../pagination/pagination-teleport";
5
5
  /**
6
6
  * Up to this many pages, the footer uses Aura's numbered pagination layout and
7
7
  * lists every page; beyond it, the teleport layout (`1/12` input). Five pages
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/ui/core/message/message-response-table-footer.tsx"],"sourcesContent":["import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react';\n\nimport { DataGridFooter } from '../data-grid/data-grid';\nimport {\n Pagination,\n PaginationContent,\n PaginationFirst,\n PaginationItem,\n PaginationLast,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n PaginationStatus,\n} from '../pagination/pagination';\nimport { PaginationTeleport } from '../pagination/pagination-teleport';\n\nimport type { MessageResponseTableLabels } from './message-response-table-labels';\n\n/**\n * Up to this many pages, the footer uses Aura's numbered pagination layout and\n * lists every page; beyond it, the teleport layout (`1/12` input). Five pages\n * all fit without ellipses, and at 50 rows per page most chat tables stay below it.\n */\nexport const MAX_NUMBERED_PAGES = 5;\n\ntype MessageTableFooterProps = {\n pageIndex: number;\n pageSize: number;\n totalPages: number;\n totalRows: number;\n onPageIndexChange: (pageIndex: number) => void;\n labels: Pick<MessageResponseTableLabels, 'currentPage' | 'paginationStatus'>;\n};\n\n/** Pagination footer for `MessageResponseTable`: page links or the teleport input, plus a \"Showing x–y of n\" status. */\nexport const MessageTableFooter = ({\n pageIndex,\n pageSize,\n totalPages,\n totalRows,\n onPageIndexChange,\n labels,\n}: MessageTableFooterProps): ReactNode => {\n const pageStart = pageIndex * pageSize + 1;\n const pageEnd = Math.min((pageIndex + 1) * pageSize, totalRows);\n const isFirstPage = pageIndex === 0;\n const isLastPage = pageIndex >= totalPages - 1;\n\n const goToPage =\n (nextPageIndex: number) =>\n (event: ReactMouseEvent<HTMLAnchorElement>): void => {\n event.preventDefault();\n onPageIndexChange(nextPageIndex);\n };\n\n return (\n <DataGridFooter>\n <Pagination size=\"small\" className=\"items-center justify-between\">\n {totalPages > 1 && (\n <PaginationContent>\n <PaginationItem>\n <PaginationFirst\n href=\"#\"\n isDisabled={isFirstPage}\n onClick={goToPage(0)}\n />\n </PaginationItem>\n <PaginationItem>\n <PaginationPrevious\n href=\"#\"\n isDisabled={isFirstPage}\n onClick={goToPage(pageIndex - 1)}\n />\n </PaginationItem>\n {totalPages <= MAX_NUMBERED_PAGES ? (\n Array.from({ length: totalPages }, (_, index) => (\n <PaginationItem key={index}>\n <PaginationLink\n href=\"#\"\n isActive={index === pageIndex}\n onClick={goToPage(index)}\n >\n {index + 1}\n </PaginationLink>\n </PaginationItem>\n ))\n ) : (\n <PaginationItem>\n <PaginationTeleport\n aria-label={labels.currentPage}\n currentPage={pageIndex + 1}\n totalPages={totalPages}\n onPageChange={(page) => onPageIndexChange(page - 1)}\n />\n </PaginationItem>\n )}\n <PaginationItem>\n <PaginationNext\n href=\"#\"\n isDisabled={isLastPage}\n onClick={goToPage(pageIndex + 1)}\n />\n </PaginationItem>\n <PaginationItem>\n <PaginationLast\n href=\"#\"\n isDisabled={isLastPage}\n onClick={goToPage(totalPages - 1)}\n />\n </PaginationItem>\n </PaginationContent>\n )}\n <PaginationStatus className=\"ml-auto\">\n {labels.paginationStatus(pageStart, pageEnd, totalRows)}\n </PaginationStatus>\n </Pagination>\n </DataGridFooter>\n );\n};\n"],"names":["DataGridFooter","Pagination","PaginationContent","PaginationFirst","PaginationItem","PaginationLast","PaginationLink","PaginationNext","PaginationPrevious","PaginationStatus","PaginationTeleport","MAX_NUMBERED_PAGES","MessageTableFooter","pageIndex","pageSize","totalPages","totalRows","onPageIndexChange","labels","pageStart","pageEnd","Math","min","isFirstPage","isLastPage","goToPage","nextPageIndex","event","preventDefault","size","className","href","isDisabled","onClick","Array","from","length","_","index","isActive","aria-label","currentPage","onPageChange","page","paginationStatus"],"mappings":";AAEA,SAASA,cAAc,QAAQ,4BAAyB;AACxD,SACEC,UAAU,EACVC,iBAAiB,EACjBC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,QACX,8BAA2B;AAClC,SAASC,kBAAkB,QAAQ,uCAAoC;AAIvE;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB,EAAE;AAWpC,sHAAsH,GACtH,OAAO,MAAMC,qBAAqB,CAAC,EACjCC,SAAS,EACTC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,iBAAiB,EACjBC,MAAM,EACkB;IACxB,MAAMC,YAAYN,YAAYC,WAAW;IACzC,MAAMM,UAAUC,KAAKC,GAAG,CAAC,AAACT,CAAAA,YAAY,CAAA,IAAKC,UAAUE;IACrD,MAAMO,cAAcV,cAAc;IAClC,MAAMW,aAAaX,aAAaE,aAAa;IAE7C,MAAMU,WACJ,CAACC,gBACD,CAACC;YACCA,MAAMC,cAAc;YACpBX,kBAAkBS;QACpB;IAEF,qBACE,KAAC1B;kBACC,cAAA,MAACC;YAAW4B,MAAK;YAAQC,WAAU;;gBAChCf,aAAa,mBACZ,MAACb;;sCACC,KAACE;sCACC,cAAA,KAACD;gCACC4B,MAAK;gCACLC,YAAYT;gCACZU,SAASR,SAAS;;;sCAGtB,KAACrB;sCACC,cAAA,KAACI;gCACCuB,MAAK;gCACLC,YAAYT;gCACZU,SAASR,SAASZ,YAAY;;;wBAGjCE,cAAcJ,qBACbuB,MAAMC,IAAI,CAAC;4BAAEC,QAAQrB;wBAAW,GAAG,CAACsB,GAAGC,sBACrC,KAAClC;0CACC,cAAA,KAACE;oCACCyB,MAAK;oCACLQ,UAAUD,UAAUzB;oCACpBoB,SAASR,SAASa;8CAEjBA,QAAQ;;+BANQA,wBAWvB,KAAClC;sCACC,cAAA,KAACM;gCACC8B,cAAYtB,OAAOuB,WAAW;gCAC9BA,aAAa5B,YAAY;gCACzBE,YAAYA;gCACZ2B,cAAc,CAACC,OAAS1B,kBAAkB0B,OAAO;;;sCAIvD,KAACvC;sCACC,cAAA,KAACG;gCACCwB,MAAK;gCACLC,YAAYR;gCACZS,SAASR,SAASZ,YAAY;;;sCAGlC,KAACT;sCACC,cAAA,KAACC;gCACC0B,MAAK;gCACLC,YAAYR;gCACZS,SAASR,SAASV,aAAa;;;;;8BAKvC,KAACN;oBAAiBqB,WAAU;8BACzBZ,OAAO0B,gBAAgB,CAACzB,WAAWC,SAASJ;;;;;AAKvD,EAAE"}
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/message/message-response-table-footer.tsx"],"sourcesContent":["import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react';\n\nimport { DataGridFooter } from '../data-grid/data-grid';\nimport {\n Pagination,\n PaginationContent,\n PaginationFirst,\n PaginationItem,\n PaginationLast,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n PaginationStatus,\n} from '../pagination/pagination';\nimport { PaginationTeleport } from '../pagination/pagination-teleport';\n\nimport type { MessageResponseTableLabels } from './message-response-table-labels';\n\n/**\n * Up to this many pages, the footer uses Aura's numbered pagination layout and\n * lists every page; beyond it, the teleport layout (`1/12` input). Five pages\n * all fit without ellipses, and at 50 rows per page most chat tables stay below it.\n */\nexport const MAX_NUMBERED_PAGES = 5;\n\ntype MessageTableFooterProps = {\n pageIndex: number;\n pageSize: number;\n totalPages: number;\n totalRows: number;\n onPageIndexChange: (pageIndex: number) => void;\n labels: Pick<MessageResponseTableLabels, 'currentPage' | 'paginationStatus'>;\n};\n\n/** Pagination footer for `MessageResponseTable`: page links or the teleport input, plus a \"Showing x–y of n\" status. */\nexport const MessageTableFooter = ({\n pageIndex,\n pageSize,\n totalPages,\n totalRows,\n onPageIndexChange,\n labels,\n}: MessageTableFooterProps): ReactNode => {\n const pageStart = pageIndex * pageSize + 1;\n const pageEnd = Math.min((pageIndex + 1) * pageSize, totalRows);\n const isFirstPage = pageIndex === 0;\n const isLastPage = pageIndex >= totalPages - 1;\n\n const goToPage =\n (nextPageIndex: number) =>\n (event: ReactMouseEvent<HTMLAnchorElement>): void => {\n event.preventDefault();\n onPageIndexChange(nextPageIndex);\n };\n\n return (\n <DataGridFooter>\n <Pagination size=\"small\" className=\"items-center justify-between\">\n {totalPages > 1 && (\n <PaginationContent>\n <PaginationItem>\n <PaginationFirst\n href=\"#\"\n isDisabled={isFirstPage}\n onClick={goToPage(0)}\n />\n </PaginationItem>\n <PaginationItem>\n <PaginationPrevious\n href=\"#\"\n isDisabled={isFirstPage}\n onClick={goToPage(pageIndex - 1)}\n />\n </PaginationItem>\n {totalPages <= MAX_NUMBERED_PAGES ? (\n Array.from({ length: totalPages }, (_, index) => (\n <PaginationItem key={index}>\n <PaginationLink\n href=\"#\"\n isActive={index === pageIndex}\n onClick={goToPage(index)}\n >\n {index + 1}\n </PaginationLink>\n </PaginationItem>\n ))\n ) : (\n <PaginationItem>\n <PaginationTeleport\n aria-label={labels.currentPage}\n currentPage={pageIndex + 1}\n totalPages={totalPages}\n onPageChange={(page) => onPageIndexChange(page - 1)}\n />\n </PaginationItem>\n )}\n <PaginationItem>\n <PaginationNext\n href=\"#\"\n isDisabled={isLastPage}\n onClick={goToPage(pageIndex + 1)}\n />\n </PaginationItem>\n <PaginationItem>\n <PaginationLast\n href=\"#\"\n isDisabled={isLastPage}\n onClick={goToPage(totalPages - 1)}\n />\n </PaginationItem>\n </PaginationContent>\n )}\n <PaginationStatus className=\"ml-auto\">\n {labels.paginationStatus(pageStart, pageEnd, totalRows)}\n </PaginationStatus>\n </Pagination>\n </DataGridFooter>\n );\n};\n"],"names":["DataGridFooter","Pagination","PaginationContent","PaginationFirst","PaginationItem","PaginationLast","PaginationLink","PaginationNext","PaginationPrevious","PaginationStatus","PaginationTeleport","MAX_NUMBERED_PAGES","MessageTableFooter","pageIndex","pageSize","totalPages","totalRows","onPageIndexChange","labels","pageStart","pageEnd","Math","min","isFirstPage","isLastPage","goToPage","nextPageIndex","event","preventDefault","size","className","href","isDisabled","onClick","Array","from","length","_","index","isActive","aria-label","currentPage","onPageChange","page","paginationStatus"],"mappings":";AAEA,SAASA,cAAc,QAAQ,yBAAyB;AACxD,SACEC,UAAU,EACVC,iBAAiB,EACjBC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,cAAc,EACdC,kBAAkB,EAClBC,gBAAgB,QACX,2BAA2B;AAClC,SAASC,kBAAkB,QAAQ,oCAAoC;AAIvE;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB,EAAE;AAWpC,sHAAsH,GACtH,OAAO,MAAMC,qBAAqB,CAAC,EACjCC,SAAS,EACTC,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTC,iBAAiB,EACjBC,MAAM,EACkB;IACxB,MAAMC,YAAYN,YAAYC,WAAW;IACzC,MAAMM,UAAUC,KAAKC,GAAG,CAAC,AAACT,CAAAA,YAAY,CAAA,IAAKC,UAAUE;IACrD,MAAMO,cAAcV,cAAc;IAClC,MAAMW,aAAaX,aAAaE,aAAa;IAE7C,MAAMU,WACJ,CAACC,gBACD,CAACC;YACCA,MAAMC,cAAc;YACpBX,kBAAkBS;QACpB;IAEF,qBACE,KAAC1B;kBACC,cAAA,MAACC;YAAW4B,MAAK;YAAQC,WAAU;;gBAChCf,aAAa,mBACZ,MAACb;;sCACC,KAACE;sCACC,cAAA,KAACD;gCACC4B,MAAK;gCACLC,YAAYT;gCACZU,SAASR,SAAS;;;sCAGtB,KAACrB;sCACC,cAAA,KAACI;gCACCuB,MAAK;gCACLC,YAAYT;gCACZU,SAASR,SAASZ,YAAY;;;wBAGjCE,cAAcJ,qBACbuB,MAAMC,IAAI,CAAC;4BAAEC,QAAQrB;wBAAW,GAAG,CAACsB,GAAGC,sBACrC,KAAClC;0CACC,cAAA,KAACE;oCACCyB,MAAK;oCACLQ,UAAUD,UAAUzB;oCACpBoB,SAASR,SAASa;8CAEjBA,QAAQ;;+BANQA,wBAWvB,KAAClC;sCACC,cAAA,KAACM;gCACC8B,cAAYtB,OAAOuB,WAAW;gCAC9BA,aAAa5B,YAAY;gCACzBE,YAAYA;gCACZ2B,cAAc,CAACC,OAAS1B,kBAAkB0B,OAAO;;;sCAIvD,KAACvC;sCACC,cAAA,KAACG;gCACCwB,MAAK;gCACLC,YAAYR;gCACZS,SAASR,SAASZ,YAAY;;;sCAGlC,KAACT;sCACC,cAAA,KAACC;gCACC0B,MAAK;gCACLC,YAAYR;gCACZS,SAASR,SAASV,aAAa;;;;;8BAKvC,KAACN;oBAAiBqB,WAAU;8BACzBZ,OAAO0B,gBAAgB,CAACzB,WAAWC,SAASJ;;;;;AAKvD,EAAE"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Children, isValidElement, useCallback, useEffect, useMemo, useRef, useState } from "react";
3
3
  import { IconArrowsDiagonal, IconDownload, IconX } from "@tabler/icons-react";
4
- import { cn } from "../../../../lib/utils.js";
5
- import { Button } from "../button/button.js";
6
- import { Card } from "../card/card.js";
7
- import { DataGrid, DataGridHeader, DataGridHeaderEnd } from "../data-grid/data-grid.js";
8
- import { Dialog, DialogClose, DialogContent } from "../dialog/dialog.js";
9
- import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.js";
4
+ import { cn } from "../../../../lib/utils";
5
+ import { Button } from "../button/button";
6
+ import { Card } from "../card/card";
7
+ import { DataGrid, DataGridHeader, DataGridHeaderEnd } from "../data-grid/data-grid";
8
+ import { Dialog, DialogClose, DialogContent } from "../dialog/dialog";
9
+ import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip";
10
10
  import { buildCsv, downloadCsv } from "./message-response-table-csv.utils.js";
11
11
  import { MessageTableFooter } from "./message-response-table-footer.js";
12
12
  import { DEFAULT_MESSAGE_RESPONSE_TABLE_LABELS } from "./message-response-table-labels.js";