@cognite/aura 0.3.5 → 1.0.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 (540) hide show
  1. package/CHANGELOG.md +274 -0
  2. package/DESIGN.md +664 -281
  3. package/LICENSE +21 -0
  4. package/README.md +21 -13
  5. package/dist/colors-deprecated.css +618 -0
  6. package/dist/colors.css +803 -830
  7. package/dist/components/index.d.ts +63 -57
  8. package/dist/components/index.js +62 -59
  9. package/dist/components/index.js.map +1 -0
  10. package/dist/components/ui/core/accordion/accordion.d.ts +19 -18
  11. package/dist/components/ui/core/accordion/accordion.js +99 -78
  12. package/dist/components/ui/core/accordion/accordion.js.map +1 -0
  13. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.d.ts +8 -0
  14. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js +132 -0
  15. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js.map +1 -0
  16. package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +31 -31
  17. package/dist/components/ui/core/action-toolbar/action-toolbar.js +156 -106
  18. package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -0
  19. package/dist/components/ui/core/alert/alert.d.ts +25 -25
  20. package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
  21. package/dist/components/ui/core/alert/alert.gallery.js +54 -0
  22. package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
  23. package/dist/components/ui/core/alert/alert.js +181 -152
  24. package/dist/components/ui/core/alert/alert.js.map +1 -0
  25. package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
  26. package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
  27. package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
  28. package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
  29. package/dist/components/ui/core/avatar/avatar.js +75 -65
  30. package/dist/components/ui/core/avatar/avatar.js.map +1 -0
  31. package/dist/components/ui/core/badge/badge.d.ts +13 -12
  32. package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
  33. package/dist/components/ui/core/badge/badge.gallery.js +64 -0
  34. package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
  35. package/dist/components/ui/core/badge/badge.js +88 -72
  36. package/dist/components/ui/core/badge/badge.js.map +1 -0
  37. package/dist/components/ui/core/banner/banner.d.ts +18 -18
  38. package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
  39. package/dist/components/ui/core/banner/banner.gallery.js +56 -0
  40. package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
  41. package/dist/components/ui/core/banner/banner.js +179 -142
  42. package/dist/components/ui/core/banner/banner.js.map +1 -0
  43. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
  44. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
  45. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
  46. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
  47. package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
  48. package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
  49. package/dist/components/ui/core/button/button.d.ts +7 -7
  50. package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
  51. package/dist/components/ui/core/button/button.gallery.js +76 -0
  52. package/dist/components/ui/core/button/button.gallery.js.map +1 -0
  53. package/dist/components/ui/core/button/button.js +57 -47
  54. package/dist/components/ui/core/button/button.js.map +1 -0
  55. package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
  56. package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
  57. package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
  58. package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
  59. package/dist/components/ui/core/button-group/button-group.js +50 -40
  60. package/dist/components/ui/core/button-group/button-group.js.map +1 -0
  61. package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
  62. package/dist/components/ui/core/calendar/calendar-header.js +102 -63
  63. package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
  64. package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
  65. package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
  66. package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
  67. package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
  68. package/dist/components/ui/core/calendar/calendar.js +95 -66
  69. package/dist/components/ui/core/calendar/calendar.js.map +1 -0
  70. package/dist/components/ui/core/calendar/constants.js +3 -0
  71. package/dist/components/ui/core/calendar/constants.js.map +1 -0
  72. package/dist/components/ui/core/card/card.d.ts +20 -20
  73. package/dist/components/ui/core/card/card.js +133 -104
  74. package/dist/components/ui/core/card/card.js.map +1 -0
  75. package/dist/components/ui/core/chart/chart.d.ts +55 -53
  76. package/dist/components/ui/core/chart/chart.js +196 -116
  77. package/dist/components/ui/core/chart/chart.js.map +1 -0
  78. package/dist/components/ui/core/chart/index.d.ts +2 -2
  79. package/dist/components/ui/core/chart/index.js +3 -2
  80. package/dist/components/ui/core/chart/index.js.map +1 -0
  81. package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
  82. package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
  83. package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
  84. package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
  85. package/dist/components/ui/core/checkbox/checkbox.js +88 -68
  86. package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
  87. package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
  88. package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
  89. package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
  90. package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
  91. package/dist/components/ui/core/code-block/code-block.js +260 -175
  92. package/dist/components/ui/core/code-block/code-block.js.map +1 -0
  93. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
  94. package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
  95. package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
  96. package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
  97. package/dist/components/ui/core/collapsible/collapsible.js +36 -30
  98. package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
  99. package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
  100. package/dist/components/ui/core/combobox/combobox.js +89 -40
  101. package/dist/components/ui/core/combobox/combobox.js.map +1 -0
  102. package/dist/components/ui/core/command/command.d.ts +20 -18
  103. package/dist/components/ui/core/command/command.js +137 -85
  104. package/dist/components/ui/core/command/command.js.map +1 -0
  105. package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
  106. package/dist/components/ui/core/conversation/conversation.js +51 -0
  107. package/dist/components/ui/core/conversation/conversation.js.map +1 -0
  108. package/dist/components/ui/core/count/count.d.ts +8 -6
  109. package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
  110. package/dist/components/ui/core/count/count.gallery.js +55 -0
  111. package/dist/components/ui/core/count/count.gallery.js.map +1 -0
  112. package/dist/components/ui/core/count/count.js +51 -21
  113. package/dist/components/ui/core/count/count.js.map +1 -0
  114. package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +5 -7
  115. package/dist/components/ui/core/data-grid/data-grid-cell.js +18 -22
  116. package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
  117. package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +4 -0
  118. package/dist/components/ui/core/data-grid/data-grid-column-filter.js +13 -0
  119. package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -0
  120. package/dist/components/ui/core/data-grid/data-grid-column-resizer.d.ts +8 -0
  121. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +25 -0
  122. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -0
  123. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
  124. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
  125. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
  126. package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +43 -0
  127. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +287 -0
  128. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
  129. package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
  130. package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
  131. package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
  132. package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
  133. package/dist/components/ui/core/data-grid/data-grid-header-row.js +85 -55
  134. package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
  135. package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
  136. package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
  137. package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
  138. package/dist/components/ui/core/data-grid/data-grid-row.d.ts +13 -15
  139. package/dist/components/ui/core/data-grid/data-grid-row.js +117 -76
  140. package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
  141. package/dist/components/ui/core/data-grid/data-grid-selection-state.d.ts +15 -0
  142. package/dist/components/ui/core/data-grid/data-grid-selection-state.js +32 -0
  143. package/dist/components/ui/core/data-grid/data-grid-selection-state.js.map +1 -0
  144. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.d.ts +11 -0
  145. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +129 -0
  146. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -0
  147. package/dist/components/ui/core/data-grid/data-grid-selection.types.d.ts +24 -0
  148. package/dist/components/ui/core/data-grid/data-grid-selection.types.js +3 -0
  149. package/dist/components/ui/core/data-grid/data-grid-selection.types.js.map +1 -0
  150. package/dist/components/ui/core/data-grid/data-grid.d.ts +125 -35
  151. package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
  152. package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
  153. package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
  154. package/dist/components/ui/core/data-grid/data-grid.js +540 -132
  155. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
  156. package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -4
  157. package/dist/components/ui/core/data-grid/data-grid.utils.js +46 -33
  158. package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
  159. package/dist/components/ui/core/data-grid/index.d.ts +6 -1
  160. package/dist/components/ui/core/data-grid/index.js +6 -2
  161. package/dist/components/ui/core/data-grid/index.js.map +1 -0
  162. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
  163. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
  164. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
  165. package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
  166. package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
  167. package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
  168. package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
  169. package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
  170. package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
  171. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
  172. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
  173. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
  174. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
  175. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
  176. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
  177. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
  178. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
  179. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
  180. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
  181. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
  182. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
  183. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
  184. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
  185. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
  186. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
  187. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
  188. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
  189. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
  190. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
  191. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
  192. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
  193. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
  194. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
  195. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
  196. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
  197. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
  198. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
  199. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
  200. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
  201. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
  202. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
  203. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
  204. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
  205. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
  206. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
  207. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
  208. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
  209. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
  210. package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
  211. package/dist/components/ui/core/date-time-pickers/index.js +10 -6
  212. package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
  213. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
  214. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
  215. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
  216. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
  217. package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
  218. package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
  219. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
  220. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
  221. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
  222. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
  223. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
  224. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
  225. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
  226. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
  227. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
  228. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
  229. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
  230. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
  231. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
  232. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
  233. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
  234. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
  235. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
  236. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
  237. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
  238. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
  239. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
  240. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
  241. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
  242. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
  243. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
  244. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
  245. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
  246. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
  247. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
  248. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
  249. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
  250. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
  251. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
  252. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
  253. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
  254. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
  255. package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
  256. package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
  257. package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
  258. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
  259. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
  260. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
  261. package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
  262. package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
  263. package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
  264. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
  265. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
  266. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
  267. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
  268. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
  269. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
  270. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
  271. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
  272. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
  273. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
  274. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
  275. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
  276. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
  277. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
  278. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
  279. package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
  280. package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
  281. package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
  282. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
  283. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
  284. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
  285. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
  286. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
  287. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
  288. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
  289. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
  290. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
  291. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
  292. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
  293. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
  294. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
  295. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
  296. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
  297. package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
  298. package/dist/components/ui/core/dialog/dialog.js +90 -82
  299. package/dist/components/ui/core/dialog/dialog.js.map +1 -0
  300. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
  301. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
  302. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
  303. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
  304. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
  305. package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
  306. package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
  307. package/dist/components/ui/core/empty-state/empty-state.js +96 -82
  308. package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
  309. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
  310. package/dist/components/ui/core/helper-text/helper-text.js +55 -36
  311. package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
  312. package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
  313. package/dist/components/ui/core/hover-card/hover-card.js +56 -52
  314. package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
  315. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
  316. package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
  317. package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
  318. package/dist/components/ui/core/input/input.d.ts +2 -2
  319. package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
  320. package/dist/components/ui/core/input/input.gallery.js +89 -0
  321. package/dist/components/ui/core/input/input.gallery.js.map +1 -0
  322. package/dist/components/ui/core/input/input.js +15 -13
  323. package/dist/components/ui/core/input/input.js.map +1 -0
  324. package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
  325. package/dist/components/ui/core/input-group/input-group.js +149 -76
  326. package/dist/components/ui/core/input-group/input-group.js.map +1 -0
  327. package/dist/components/ui/core/item/item.d.ts +20 -0
  328. package/dist/components/ui/core/item/item.js +93 -0
  329. package/dist/components/ui/core/item/item.js.map +1 -0
  330. package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
  331. package/dist/components/ui/core/kbd/kbd.js +24 -20
  332. package/dist/components/ui/core/kbd/kbd.js.map +1 -0
  333. package/dist/components/ui/core/label/label.d.ts +3 -3
  334. package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
  335. package/dist/components/ui/core/label/label.gallery.js +57 -0
  336. package/dist/components/ui/core/label/label.gallery.js.map +1 -0
  337. package/dist/components/ui/core/label/label.js +33 -26
  338. package/dist/components/ui/core/label/label.js.map +1 -0
  339. package/dist/components/ui/core/loader/loader.d.ts +6 -6
  340. package/dist/components/ui/core/loader/loader.js +97 -80
  341. package/dist/components/ui/core/loader/loader.js.map +1 -0
  342. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +8 -9
  343. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +18 -12
  344. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
  345. package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
  346. package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
  347. package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
  348. package/dist/components/ui/core/message/message.d.ts +27 -23
  349. package/dist/components/ui/core/message/message.js +458 -316
  350. package/dist/components/ui/core/message/message.js.map +1 -0
  351. package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
  352. package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
  353. package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
  354. package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
  355. package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
  356. package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
  357. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
  358. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
  359. package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
  360. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
  361. package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
  362. package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
  363. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
  364. package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
  365. package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
  366. package/dist/components/ui/core/pagination/pagination.js +294 -234
  367. package/dist/components/ui/core/pagination/pagination.js.map +1 -0
  368. package/dist/components/ui/core/popover/popover.d.ts +12 -11
  369. package/dist/components/ui/core/popover/popover.js +104 -89
  370. package/dist/components/ui/core/popover/popover.js.map +1 -0
  371. package/dist/components/ui/core/progress/progress.d.ts +9 -8
  372. package/dist/components/ui/core/progress/progress.js +50 -35
  373. package/dist/components/ui/core/progress/progress.js.map +1 -0
  374. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
  375. package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
  376. package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
  377. package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
  378. package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
  379. package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
  380. package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
  381. package/dist/components/ui/core/radio-group/radio-group.js +88 -58
  382. package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
  383. package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
  384. package/dist/components/ui/core/reasoning/reasoning.js +68 -56
  385. package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
  386. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
  387. package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
  388. package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
  389. package/dist/components/ui/core/search/search.d.ts +8 -8
  390. package/dist/components/ui/core/search/search.js +122 -76
  391. package/dist/components/ui/core/search/search.js.map +1 -0
  392. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +10 -10
  393. package/dist/components/ui/core/segmented-control/segmented-control.js +203 -149
  394. package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
  395. package/dist/components/ui/core/select/select.d.ts +33 -26
  396. package/dist/components/ui/core/select/select.js +262 -168
  397. package/dist/components/ui/core/select/select.js.map +1 -0
  398. package/dist/components/ui/core/separator/separator.d.ts +2 -2
  399. package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
  400. package/dist/components/ui/core/separator/separator.gallery.js +63 -0
  401. package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
  402. package/dist/components/ui/core/separator/separator.js +13 -13
  403. package/dist/components/ui/core/separator/separator.js.map +1 -0
  404. package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
  405. package/dist/components/ui/core/shimmer/shimmer.js +64 -40
  406. package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
  407. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
  408. package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
  409. package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
  410. package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
  411. package/dist/components/ui/core/skeleton/skeleton.js +13 -13
  412. package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
  413. package/dist/components/ui/core/slider/slider.d.ts +7 -7
  414. package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
  415. package/dist/components/ui/core/slider/slider.gallery.js +62 -0
  416. package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
  417. package/dist/components/ui/core/slider/slider.js +51 -39
  418. package/dist/components/ui/core/slider/slider.js.map +1 -0
  419. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
  420. package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
  421. package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
  422. package/dist/components/ui/core/sources/sources.d.ts +12 -12
  423. package/dist/components/ui/core/sources/sources.js +87 -58
  424. package/dist/components/ui/core/sources/sources.js.map +1 -0
  425. package/dist/components/ui/core/status-text/status-text.d.ts +4 -0
  426. package/dist/components/ui/core/status-text/status-text.js +14 -0
  427. package/dist/components/ui/core/status-text/status-text.js.map +1 -0
  428. package/dist/components/ui/core/switch/switch.d.ts +9 -9
  429. package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
  430. package/dist/components/ui/core/switch/switch.gallery.js +67 -0
  431. package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
  432. package/dist/components/ui/core/switch/switch.js +83 -61
  433. package/dist/components/ui/core/switch/switch.js.map +1 -0
  434. package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
  435. package/dist/components/ui/core/switch/switch.metadata.js +8 -0
  436. package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
  437. package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
  438. package/dist/components/ui/core/tabs/tabs.js +176 -147
  439. package/dist/components/ui/core/tabs/tabs.js.map +1 -0
  440. package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
  441. package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
  442. package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
  443. package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
  444. package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
  445. package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
  446. package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
  447. package/dist/components/ui/core/textarea/textarea.js +13 -13
  448. package/dist/components/ui/core/textarea/textarea.js.map +1 -0
  449. package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
  450. package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
  451. package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
  452. package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
  453. package/dist/components/ui/core/toggle/toggle.js +60 -54
  454. package/dist/components/ui/core/toggle/toggle.js.map +1 -0
  455. package/dist/components/ui/core/tool/tool.d.ts +18 -18
  456. package/dist/components/ui/core/tool/tool.js +167 -126
  457. package/dist/components/ui/core/tool/tool.js.map +1 -0
  458. package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
  459. package/dist/components/ui/core/toolbar/toolbar.js +171 -0
  460. package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
  461. package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
  462. package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
  463. package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
  464. package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
  465. package/dist/components/ui/core/tooltip/tooltip.js +53 -46
  466. package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
  467. package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
  468. package/dist/components/ui/core/topbar/topbar.js +160 -105
  469. package/dist/components/ui/core/topbar/topbar.js.map +1 -0
  470. package/dist/components/ui/core/tree/tree.d.ts +20 -0
  471. package/dist/components/ui/core/tree/tree.js +100 -0
  472. package/dist/components/ui/core/tree/tree.js.map +1 -0
  473. package/dist/eslint/index.d.ts +5 -5
  474. package/dist/eslint/index.js +9 -5
  475. package/dist/eslint/index.js.map +1 -0
  476. package/dist/eslint/no-overriding-styles.d.ts +1 -1
  477. package/dist/eslint/no-overriding-styles.js +341 -201
  478. package/dist/eslint/no-overriding-styles.js.map +1 -0
  479. package/dist/icons/index.d.ts +1 -1
  480. package/dist/icons/index.js +2 -0
  481. package/dist/icons/index.js.map +1 -0
  482. package/dist/index.d.ts +1 -1
  483. package/dist/index.js +3 -0
  484. package/dist/index.js.map +1 -0
  485. package/dist/lib/ai/types.d.ts +43 -43
  486. package/dist/lib/ai/types.js +3 -0
  487. package/dist/lib/ai/types.js.map +1 -0
  488. package/dist/lib/decorative-variant-classes.d.ts +53 -0
  489. package/dist/lib/decorative-variant-classes.js +58 -0
  490. package/dist/lib/decorative-variant-classes.js.map +1 -0
  491. package/dist/lib/highlight-code.d.ts +11 -8
  492. package/dist/lib/highlight-code.js +58 -40
  493. package/dist/lib/highlight-code.js.map +1 -0
  494. package/dist/lib/portal-container-context.d.ts +1 -1
  495. package/dist/lib/portal-container-context.js +8 -8
  496. package/dist/lib/portal-container-context.js.map +1 -0
  497. package/dist/lib/shared-theme-from-url.d.ts +13 -0
  498. package/dist/lib/shared-theme-from-url.js +61 -0
  499. package/dist/lib/shared-theme-from-url.js.map +1 -0
  500. package/dist/lib/style-scope.d.ts +2 -2
  501. package/dist/lib/style-scope.js +6 -6
  502. package/dist/lib/style-scope.js.map +1 -0
  503. package/dist/lib/theme-share-url.d.ts +31 -0
  504. package/dist/lib/theme-share-url.js +116 -0
  505. package/dist/lib/theme-share-url.js.map +1 -0
  506. package/dist/lib/types.d.ts +39 -39
  507. package/dist/lib/types.js +3 -0
  508. package/dist/lib/types.js.map +1 -0
  509. package/dist/lib/use-controllable-state.d.ts +4 -7
  510. package/dist/lib/use-controllable-state.js +34 -21
  511. package/dist/lib/use-controllable-state.js.map +1 -0
  512. package/dist/lib/utils.d.ts +63 -34
  513. package/dist/lib/utils.js +134 -32
  514. package/dist/lib/utils.js.map +1 -0
  515. package/dist/styles.css +2 -1
  516. package/dist/styles.source.css +46 -16
  517. package/dist/utils/assign-ref.d.ts +3 -0
  518. package/dist/utils/assign-ref.js +13 -0
  519. package/dist/utils/assign-ref.js.map +1 -0
  520. package/package.json +49 -14
  521. package/src/components/ui/core/alert/alert.md +46 -0
  522. package/src/components/ui/core/avatar/avatar.md +30 -0
  523. package/src/components/ui/core/badge/badge.md +32 -0
  524. package/src/components/ui/core/banner/banner.md +51 -0
  525. package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
  526. package/src/components/ui/core/button/button.md +93 -0
  527. package/src/components/ui/core/button-group/button-group.md +38 -0
  528. package/src/components/ui/core/checkbox/checkbox.md +37 -0
  529. package/src/components/ui/core/collapsible/collapsible.md +42 -0
  530. package/src/components/ui/core/count/count.md +33 -0
  531. package/src/components/ui/core/input/input.md +48 -0
  532. package/src/components/ui/core/label/label.md +35 -0
  533. package/src/components/ui/core/radio-group/radio-group.md +38 -0
  534. package/src/components/ui/core/separator/separator.md +32 -0
  535. package/src/components/ui/core/skeleton/skeleton.md +33 -0
  536. package/src/components/ui/core/slider/slider.md +41 -0
  537. package/src/components/ui/core/switch/switch.md +26 -0
  538. package/src/components/ui/core/textarea/textarea.md +42 -0
  539. package/src/components/ui/core/toggle/toggle.md +39 -0
  540. package/src/components/ui/core/tooltip/tooltip.md +41 -0
@@ -1,98 +1,122 @@
1
- import { cn as e, getHostname as t } from "../../../../lib/utils.js";
2
- import { Badge as n } from "../badge/badge.js";
3
- import { HoverCard as r, HoverCardContent as i, HoverCardTrigger as a } from "../hover-card/hover-card.js";
4
- import { forwardRef as o } from "react";
5
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
6
- //#region libs/aura/src/components/ui/core/inline-citation/inline-citation.tsx
7
- var u = o(({ className: t, ...n }, r) => /* @__PURE__ */ c("span", {
8
- ref: r,
9
- "data-slot": "inline-citation",
10
- className: e("group inline-flex items-center gap-1", t),
11
- ...n
12
- }));
13
- u.displayName = "InlineCitation";
14
- var d = o(({ className: t, ...n }, r) => /* @__PURE__ */ c("div", {
15
- ref: r,
16
- "data-slot": "inline-citation-group",
17
- className: e("flex flex-wrap gap-2", t),
18
- ...n
19
- }));
20
- d.displayName = "InlineCitationGroup";
21
- var f = o(({ className: t, ...n }, r) => /* @__PURE__ */ c("span", {
22
- ref: r,
23
- "data-slot": "inline-citation-text",
24
- className: e("transition-colors group-hover:bg-accent-background", t),
25
- ...n
26
- }));
27
- f.displayName = "InlineCitationText";
28
- var p = (e) => /* @__PURE__ */ c(r, {
29
- "data-slot": "inline-citation-card",
30
- closeDelay: 0,
31
- openDelay: 0,
32
- ...e
33
- }), m = ({ sources: r, icon: i, className: o, ...u }) => /* @__PURE__ */ c(a, { render: /* @__PURE__ */ l(n, {
34
- "data-slot": "inline-citation-card-trigger",
35
- className: e("ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-background-fjord px-1 text-sm leading-4.5 font-medium text-decorative-foreground-fjord whitespace-nowrap gap-1 transition-[color,box-shadow]", "[&>svg]:size-3 [&>svg]:pointer-events-none", o),
36
- ...u,
37
- children: [i && /* @__PURE__ */ c(i, { className: "size-3" }), r[0] ? /* @__PURE__ */ l(s, { children: [
38
- t(r[0]),
39
- " ",
40
- r.length > 1 && `+${r.length - 1}`
41
- ] }) : "unknown"]
42
- }) }), h = ({ className: t, ...n }) => /* @__PURE__ */ c(i, {
43
- "data-slot": "inline-citation-card-body",
44
- className: e("relative w-80 p-0", t),
45
- ...n
46
- }), g = o(({ title: t, url: n, description: r, className: i, children: a, ...o }, s) => /* @__PURE__ */ l("div", {
47
- ref: s,
48
- "data-slot": "inline-citation-source",
49
- className: e("space-y-1", i),
50
- ...o,
51
- children: [
52
- t && /* @__PURE__ */ c("h4", {
53
- className: "truncate font-medium text-sm leading-tight",
54
- children: t
55
- }),
56
- n && /* @__PURE__ */ c("p", {
57
- className: "truncate break-all text-muted-foreground text-xs",
58
- children: n
59
- }),
60
- r && /* @__PURE__ */ c("p", {
61
- className: "line-clamp-3 text-muted-foreground text-sm leading-relaxed",
62
- children: r
63
- }),
64
- a
65
- ]
66
- }));
67
- g.displayName = "InlineCitationSource";
68
- var _ = o(({ children: t, className: n, ...r }, i) => /* @__PURE__ */ c("blockquote", {
69
- ref: i,
70
- "data-slot": "inline-citation-quote",
71
- className: e("border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic", n),
72
- ...r,
73
- children: t
74
- }));
75
- _.displayName = "InlineCitationQuote";
76
- var v = o(({ href: r, target: i = "_self", icon: a, variant: o = "mountain", className: s, children: u, ...d }, f) => {
77
- let p = t(r), m = {
78
- mountain: "bg-decorative-background-mountain hover:bg-decorative-background-mountain-hover text-decorative-foreground-mountain",
79
- nordic: "bg-decorative-background-nordic hover:bg-decorative-background-nordic-hover text-decorative-foreground-nordic",
80
- fjord: "bg-decorative-background-fjord hover:bg-decorative-background-fjord-hover text-decorative-foreground-fjord"
81
- };
82
- return /* @__PURE__ */ c("a", {
83
- ref: f,
84
- href: r,
85
- target: i,
86
- rel: i === "_blank" ? "noopener noreferrer" : void 0,
87
- className: "inline-flex items-stretch",
88
- ...d,
89
- children: /* @__PURE__ */ l(n, {
90
- "data-slot": "inline-citation-link",
91
- className: e("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", "[&>svg]:size-3 [&>svg]:pointer-events-none", m[o], s),
92
- children: [a && /* @__PURE__ */ c(a, { className: "size-3" }), u ?? p]
93
- })
94
- });
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn, getHostname } from "../../../../lib/utils.js";
4
+ import { Badge } from "../badge/badge.js";
5
+ import { HoverCard, HoverCardContent, HoverCardTrigger } from "../hover-card/hover-card.js";
6
+ const InlineCitation = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ _jsx("span", {
7
+ ref: ref,
8
+ "data-slot": "inline-citation",
9
+ className: cn('group inline-flex items-center gap-1', className),
10
+ ...props
11
+ }));
12
+ InlineCitation.displayName = 'InlineCitation';
13
+ const InlineCitationGroup = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ _jsx("div", {
14
+ ref: ref,
15
+ "data-slot": "inline-citation-group",
16
+ className: cn('flex flex-wrap gap-2', className),
17
+ ...props
18
+ }));
19
+ InlineCitationGroup.displayName = 'InlineCitationGroup';
20
+ const InlineCitationText = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ _jsx("span", {
21
+ ref: ref,
22
+ "data-slot": "inline-citation-text",
23
+ className: cn('transition-colors group-hover:bg-accent-background', className),
24
+ ...props
25
+ }));
26
+ InlineCitationText.displayName = 'InlineCitationText';
27
+ const InlineCitationCard = (props)=>/*#__PURE__*/ _jsx(HoverCard, {
28
+ "data-slot": "inline-citation-card",
29
+ closeDelay: 0,
30
+ openDelay: 0,
31
+ ...props
32
+ });
33
+ const InlineCitationCardTrigger = ({ sources, icon: Icon, className, ...props })=>{
34
+ return /*#__PURE__*/ _jsx(HoverCardTrigger, {
35
+ render: /*#__PURE__*/ _jsxs(Badge, {
36
+ "data-slot": "inline-citation-card-trigger",
37
+ className: cn('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]', '[&>svg]:size-3 [&>svg]:pointer-events-none', className),
38
+ ...props,
39
+ children: [
40
+ Icon && /*#__PURE__*/ _jsx(Icon, {
41
+ className: "size-3"
42
+ }),
43
+ sources[0] ? /*#__PURE__*/ _jsxs(_Fragment, {
44
+ children: [
45
+ getHostname(sources[0]),
46
+ ' ',
47
+ sources.length > 1 && `+${sources.length - 1}`
48
+ ]
49
+ }) : 'unknown'
50
+ ]
51
+ })
52
+ });
53
+ };
54
+ const InlineCitationCardBody = ({ className, ...props })=>/*#__PURE__*/ _jsx(HoverCardContent, {
55
+ "data-slot": "inline-citation-card-body",
56
+ className: cn('relative w-80 p-0', className),
57
+ ...props
58
+ });
59
+ const InlineCitationSource = /*#__PURE__*/ forwardRef(({ title, url, description, className, children, ...props }, ref)=>/*#__PURE__*/ _jsxs("div", {
60
+ ref: ref,
61
+ "data-slot": "inline-citation-source",
62
+ className: cn('space-y-1', className),
63
+ ...props,
64
+ children: [
65
+ title && /*#__PURE__*/ _jsx("h4", {
66
+ className: "truncate font-medium text-sm leading-tight",
67
+ children: title
68
+ }),
69
+ url && /*#__PURE__*/ _jsx("p", {
70
+ className: "truncate break-all text-muted-foreground text-xs",
71
+ children: url
72
+ }),
73
+ description && /*#__PURE__*/ _jsx("p", {
74
+ className: "line-clamp-3 text-muted-foreground text-sm leading-relaxed",
75
+ children: description
76
+ }),
77
+ children
78
+ ]
79
+ }));
80
+ InlineCitationSource.displayName = 'InlineCitationSource';
81
+ const InlineCitationQuote = /*#__PURE__*/ forwardRef(({ children, className, ...props }, ref)=>/*#__PURE__*/ _jsx("blockquote", {
82
+ ref: ref,
83
+ "data-slot": "inline-citation-quote",
84
+ className: cn('border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic', className),
85
+ ...props,
86
+ children: children
87
+ }));
88
+ InlineCitationQuote.displayName = 'InlineCitationQuote';
89
+ const InlineCitationLink = /*#__PURE__*/ forwardRef(({ href, target = '_self', icon: Icon, variant = 'decorative-1', className, children, ...props }, ref)=>{
90
+ const hostname = getHostname(href);
91
+ const variantStyles = {
92
+ 'decorative-1': 'bg-decorative-1-background hover:bg-decorative-1-background-hover text-decorative-1-foreground',
93
+ 'decorative-2': 'bg-decorative-2-background hover:bg-decorative-2-background-hover text-decorative-2-foreground',
94
+ 'decorative-3': 'bg-decorative-3-background hover:bg-decorative-3-background-hover text-decorative-3-foreground',
95
+ 'decorative-4': 'bg-decorative-4-background hover:bg-decorative-4-background-hover text-decorative-4-foreground',
96
+ 'decorative-5': 'bg-decorative-5-background hover:bg-decorative-5-background-hover text-decorative-5-foreground',
97
+ 'decorative-6': 'bg-decorative-6-background hover:bg-decorative-6-background-hover text-decorative-6-foreground',
98
+ 'decorative-7': 'bg-decorative-7-background hover:bg-decorative-7-background-hover text-decorative-7-foreground'
99
+ };
100
+ return /*#__PURE__*/ _jsx("a", {
101
+ ref: ref,
102
+ href: href,
103
+ target: target,
104
+ rel: target === '_blank' ? 'noopener noreferrer' : undefined,
105
+ className: "inline-flex items-stretch",
106
+ ...props,
107
+ children: /*#__PURE__*/ _jsxs(Badge, {
108
+ "data-slot": "inline-citation-link",
109
+ className: cn('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', '[&>svg]:size-3 [&>svg]:pointer-events-none', variantStyles[variant], className),
110
+ children: [
111
+ Icon && /*#__PURE__*/ _jsx(Icon, {
112
+ className: "size-3"
113
+ }),
114
+ children ?? hostname
115
+ ]
116
+ })
117
+ });
95
118
  });
96
- v.displayName = "InlineCitationLink";
97
- //#endregion
98
- export { u as InlineCitation, p as InlineCitationCard, h as InlineCitationCardBody, m as InlineCitationCardTrigger, d as InlineCitationGroup, v as InlineCitationLink, _ as InlineCitationQuote, g as InlineCitationSource, f as InlineCitationText };
119
+ InlineCitationLink.displayName = 'InlineCitationLink';
120
+ export { InlineCitation, InlineCitationCard, InlineCitationCardBody, InlineCitationCardTrigger, InlineCitationGroup, InlineCitationLink, InlineCitationQuote, InlineCitationSource, InlineCitationText };
121
+
122
+ //# sourceMappingURL=inline-citation.js.map
@@ -0,0 +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":";AAAA,SAOEA,UAAU,QACL,QAAQ;AAGf,SAASC,EAAE,EAAEC,WAAW,QAAQ,2BAAwB;AACxD,SAASC,KAAK,QAAQ,oBAAiB;AACvC,SACEC,SAAS,EACTC,gBAAgB,EAChBC,gBAAgB,QACX,8BAA2B;AAIlC,MAAMC,+BAEFP,WACF,CAAC,EAAEQ,SAAS,EAAE,GAAGC,OAAO,EAAEC,oBACxB,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWP,GAAG,wCAAwCO;QACrD,GAAGC,KAAK;;AAIfF,eAAeM,WAAW,GAAG;AAI7B,MAAMC,oCAEFd,WACF,CAAC,EAAEQ,SAAS,EAAE,GAAGC,OAAO,EAAEC,oBACxB,KAACK;QACCL,KAAKA;QACLE,aAAU;QACVJ,WAAWP,GAAG,wBAAwBO;QACrC,GAAGC,KAAK;;AAIfK,oBAAoBD,WAAW,GAAG;AAIlC,MAAMG,mCAEFhB,WACF,CAAC,EAAEQ,SAAS,EAAE,GAAGC,OAAO,EAAEC,oBACxB,KAACC;QACCD,KAAKA;QACLE,aAAU;QACVJ,WAAWP,GACT,sDACAO;QAED,GAAGC,KAAK;;AAIfO,mBAAmBH,WAAW,GAAG;AAIjC,MAAMI,qBAAqB,CAACR,sBAC1B,KAACL;QACCQ,aAAU;QACVM,YAAY;QACZC,WAAW;QACV,GAAGV,KAAK;;AASb,MAAMW,4BAA4B,CAAC,EACjCC,OAAO,EACPC,MAAMC,IAAI,EACVf,SAAS,EACT,GAAGC,OAC4B;IAC/B,qBACE,KAACH;QACCkB,sBACE,MAACrB;YACCS,aAAU;YACVJ,WAAWP,GACT,wOACA,8CACAO;YAED,GAAGC,KAAK;;gBAERc,sBAAQ,KAACA;oBAAKf,WAAU;;gBACxBa,OAAO,CAAC,EAAE,iBACT;;wBACGnB,YAAYmB,OAAO,CAAC,EAAE;wBAAG;wBACzBA,QAAQI,MAAM,GAAG,KAAK,CAAC,CAAC,EAAEJ,QAAQI,MAAM,GAAG,GAAG;;qBAGjD;;;;AAMZ;AAIA,MAAMC,yBAAyB,CAAC,EAC9BlB,SAAS,EACT,GAAGC,OACyB,iBAC5B,KAACJ;QACCO,aAAU;QACVJ,WAAWP,GAAG,qBAAqBO;QAClC,GAAGC,KAAK;;AAUb,MAAMkB,qCAEF3B,WACF,CAAC,EAAE4B,KAAK,EAAEC,GAAG,EAAEC,WAAW,EAAEtB,SAAS,EAAEuB,QAAQ,EAAE,GAAGtB,OAAO,EAAEC,oBAC3D,MAACK;QACCL,KAAKA;QACLE,aAAU;QACVJ,WAAWP,GAAG,aAAaO;QAC1B,GAAGC,KAAK;;YAERmB,uBACC,KAACI;gBAAGxB,WAAU;0BAA8CoB;;YAE7DC,qBACC,KAACI;gBAAEzB,WAAU;0BACVqB;;YAGJC,6BACC,KAACG;gBAAEzB,WAAU;0BACVsB;;YAGJC;;;AAIPJ,qBAAqBd,WAAW,GAAG;AAInC,MAAMqB,oCAEFlC,WACF,CAAC,EAAE+B,QAAQ,EAAEvB,SAAS,EAAE,GAAGC,OAAO,EAAEC,oBAClC,KAACyB;QACCzB,KAAKA;QACLE,aAAU;QACVJ,WAAWP,GACT,gFACAO;QAED,GAAGC,KAAK;kBAERsB;;AAIPG,oBAAoBrB,WAAW,GAAG;AAQlC,MAAMuB,mCAEFpC,WACF,CACE,EACEqC,IAAI,EACJC,SAAS,OAAO,EAChBhB,MAAMC,IAAI,EACVgB,UAAU,cAAc,EACxB/B,SAAS,EACTuB,QAAQ,EACR,GAAGtB,OACJ,EACDC;IAEA,MAAM8B,WAAWtC,YAAYmC;IAE7B,MAAMI,gBAAmD;QACvD,gBACE;QACF,gBACE;QACF,gBACE;QACF,gBACE;QACF,gBACE;QACF,gBACE;QACF,gBACE;IACJ;IAEA,qBACE,KAACC;QACChC,KAAKA;QACL2B,MAAMA;QACNC,QAAQA;QACRK,KAAKL,WAAW,WAAW,wBAAwBM;QACnDpC,WAAU;QACT,GAAGC,KAAK;kBAET,cAAA,MAACN;YACCS,aAAU;YACVJ,WAAWP,GACT,+JACA,8CACAwC,aAAa,CAACF,QAAQ,EACtB/B;;gBAGDe,sBAAQ,KAACA;oBAAKf,WAAU;;gBACxBuB,YAAYS;;;;AAIrB;AAEFJ,mBAAmBvB,WAAW,GAAG;AAEjC,SACEN,cAAc,EACdU,kBAAkB,EAClBS,sBAAsB,EACtBN,yBAAyB,EACzBN,mBAAmB,EACnBsB,kBAAkB,EAClBF,mBAAmB,EACnBP,oBAAoB,EACpBX,kBAAkB,GAClB"}
@@ -1,3 +1,3 @@
1
- import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
2
- declare const Input: ForwardRefExoticComponent<ComponentProps<'input'> & RefAttributes<HTMLInputElement>>;
1
+ import { type ForwardRefExoticComponent, type RefAttributes, type ComponentProps } from "react";
2
+ declare const Input: ForwardRefExoticComponent<ComponentProps<"input"> & RefAttributes<HTMLInputElement>>;
3
3
  export { Input };
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from "react";
2
+ export declare function InputGallery(): ReactElement;
@@ -0,0 +1,89 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import { HelperText } from "../helper-text/helper-text.js";
4
+ import { Label } from "../label/label.js";
5
+ import { Input } from "./input.js";
6
+ export function InputGallery() {
7
+ const id = useId();
8
+ return /*#__PURE__*/ _jsxs("div", {
9
+ className: "w-75 space-y-4",
10
+ children: [
11
+ /*#__PURE__*/ _jsxs("div", {
12
+ className: "grid w-full items-center gap-1",
13
+ children: [
14
+ /*#__PURE__*/ _jsx(Label, {
15
+ htmlFor: `${id}-default`,
16
+ children: "Default"
17
+ }),
18
+ /*#__PURE__*/ _jsx(Input, {
19
+ id: `${id}-default`,
20
+ placeholder: "Placeholder"
21
+ })
22
+ ]
23
+ }),
24
+ /*#__PURE__*/ _jsxs("div", {
25
+ className: "grid w-full items-center gap-1",
26
+ children: [
27
+ /*#__PURE__*/ _jsx(Label, {
28
+ htmlFor: `${id}-filled`,
29
+ children: "Filled"
30
+ }),
31
+ /*#__PURE__*/ _jsx(Input, {
32
+ id: `${id}-filled`,
33
+ defaultValue: "Input text"
34
+ })
35
+ ]
36
+ }),
37
+ /*#__PURE__*/ _jsxs("div", {
38
+ className: "group grid w-full items-center gap-1",
39
+ "data-disabled": "true",
40
+ children: [
41
+ /*#__PURE__*/ _jsx(Label, {
42
+ htmlFor: `${id}-disabled`,
43
+ children: "Disabled"
44
+ }),
45
+ /*#__PURE__*/ _jsx(Input, {
46
+ id: `${id}-disabled`,
47
+ placeholder: "Placeholder",
48
+ disabled: true
49
+ })
50
+ ]
51
+ }),
52
+ /*#__PURE__*/ _jsxs("div", {
53
+ className: "grid w-full items-center gap-1",
54
+ children: [
55
+ /*#__PURE__*/ _jsx(Label, {
56
+ htmlFor: `${id}-readonly`,
57
+ children: "Read-only"
58
+ }),
59
+ /*#__PURE__*/ _jsx(Input, {
60
+ id: `${id}-readonly`,
61
+ defaultValue: "Input text",
62
+ readOnly: true
63
+ })
64
+ ]
65
+ }),
66
+ /*#__PURE__*/ _jsxs("div", {
67
+ className: "grid w-full items-center gap-1",
68
+ children: [
69
+ /*#__PURE__*/ _jsx(Label, {
70
+ htmlFor: `${id}-error`,
71
+ children: "Error"
72
+ }),
73
+ /*#__PURE__*/ _jsx(Input, {
74
+ id: `${id}-error`,
75
+ placeholder: "Placeholder",
76
+ "aria-invalid": true
77
+ }),
78
+ /*#__PURE__*/ _jsx(HelperText, {
79
+ isError: true,
80
+ className: "pt-1",
81
+ children: "Help text"
82
+ })
83
+ ]
84
+ })
85
+ ]
86
+ });
87
+ }
88
+
89
+ //# sourceMappingURL=input.gallery.js.map
@@ -0,0 +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=\"grid w-full items-center gap-1\">\n <Label htmlFor={`${id}-default`}>Default</Label>\n <Input id={`${id}-default`} placeholder=\"Placeholder\" />\n </div>\n <div className=\"grid w-full items-center gap-1\">\n <Label htmlFor={`${id}-filled`}>Filled</Label>\n <Input id={`${id}-filled`} defaultValue=\"Input text\" />\n </div>\n <div\n className=\"group grid w-full items-center gap-1\"\n data-disabled=\"true\"\n >\n <Label htmlFor={`${id}-disabled`}>Disabled</Label>\n <Input id={`${id}-disabled`} placeholder=\"Placeholder\" disabled />\n </div>\n <div className=\"grid w-full items-center gap-1\">\n <Label htmlFor={`${id}-readonly`}>Read-only</Label>\n <Input id={`${id}-readonly`} defaultValue=\"Input text\" readOnly />\n </div>\n <div className=\"grid w-full items-center gap-1\">\n <Label htmlFor={`${id}-error`}>Error</Label>\n <Input id={`${id}-error`} placeholder=\"Placeholder\" aria-invalid />\n <HelperText isError className=\"pt-1\">\n Help text\n </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;gBACCC,WAAU;gBACVI,iBAAc;;kCAEd,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;wBAACR,WAAU;kCAAO;;;;;;AAM7C"}
@@ -1,13 +1,15 @@
1
- import { cn as e, disabledState as t, filledState as n, focusState as r, formElementBase as i, hoverState as a, invalidState as o, readOnlyState as s } from "../../../../lib/utils.js";
2
- import { forwardRef as c } from "react";
3
- import { jsx as l } from "react/jsx-runtime";
4
- //#region libs/aura/src/components/ui/core/input/input.tsx
5
- var u = c(({ className: c, ...u }, d) => /* @__PURE__ */ l("input", {
6
- ref: d,
7
- "data-slot": "input",
8
- className: e("w-full h-9", i, a, n, r, o, t, s, c),
9
- ...u
10
- }));
11
- u.displayName = "Input";
12
- //#endregion
13
- export { u as Input };
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { cn, disabledState, filledState, focusState, formElementBase, hoverState, invalidState, readOnlyState } from "../../../../lib/utils.js";
4
+ const Input = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>{
5
+ return /*#__PURE__*/ _jsx("input", {
6
+ ref: ref,
7
+ "data-slot": "input",
8
+ className: cn('w-full h-9', formElementBase, hoverState, filledState, focusState, invalidState, disabledState, readOnlyState, className),
9
+ ...props
10
+ });
11
+ });
12
+ Input.displayName = 'Input';
13
+ export { Input };
14
+
15
+ //# sourceMappingURL=input.js.map
@@ -0,0 +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,19 +1,30 @@
1
- import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { ClassProp } from 'class-variance-authority/types';
4
- import { Button } from '../button/button';
5
- declare const InputGroup: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
1
+ import { type ForwardRefExoticComponent, type RefAttributes, type ComponentProps } from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import type { ClassProp } from "class-variance-authority/types";
4
+ import { Button } from "../button/button";
5
+ declare const InputGroup: ForwardRefExoticComponent<ComponentProps<"div"> & RefAttributes<HTMLDivElement>>;
6
6
  interface InputGroupAddonVariantProps {
7
- align?: 'inline-start' | 'inline-end' | 'block-start' | 'block-end' | null;
7
+ align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null;
8
8
  }
9
9
  declare const inputGroupAddonVariants: (props?: (InputGroupAddonVariantProps & ClassProp) | undefined) => string;
10
- declare const InputGroupAddon: ForwardRefExoticComponent<ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants> & RefAttributes<HTMLDivElement>>;
10
+ declare const InputGroupAddon: ForwardRefExoticComponent<ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants> & RefAttributes<HTMLDivElement>>;
11
11
  interface InputGroupButtonVariantProps {
12
- size?: 'xs' | 'sm' | 'icon-xs' | 'icon-sm' | null;
12
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null;
13
13
  }
14
- type InputGroupButtonProps = Omit<ComponentProps<typeof Button>, 'size'> & InputGroupButtonVariantProps;
15
- declare const InputGroupButton: ForwardRefExoticComponent<Omit<InputGroupButtonProps, 'ref'> & RefAttributes<HTMLElement>>;
16
- declare const InputGroupText: ForwardRefExoticComponent<ComponentProps<'span'> & RefAttributes<HTMLSpanElement>>;
17
- declare const InputGroupInput: ForwardRefExoticComponent<ComponentProps<'input'> & RefAttributes<HTMLInputElement>>;
18
- declare const InputGroupTextarea: ForwardRefExoticComponent<ComponentProps<'textarea'> & RefAttributes<HTMLTextAreaElement>>;
19
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
14
+ type InputGroupButtonProps = Omit<ComponentProps<typeof Button>, "size"> & InputGroupButtonVariantProps;
15
+ declare const InputGroupButton: ForwardRefExoticComponent<Omit<InputGroupButtonProps, "ref"> & RefAttributes<HTMLElement>>;
16
+ declare const InputGroupText: ForwardRefExoticComponent<ComponentProps<"span"> & RefAttributes<HTMLSpanElement>>;
17
+ type InputGroupStepperProps = ComponentProps<"div"> & {
18
+ onIncrement?: () => void;
19
+ onDecrement?: () => void;
20
+ incrementLabel?: string;
21
+ decrementLabel?: string;
22
+ disabled?: boolean;
23
+ incrementDisabled?: boolean;
24
+ decrementDisabled?: boolean;
25
+ };
26
+ declare const InputGroupStepper: ForwardRefExoticComponent<InputGroupStepperProps & RefAttributes<HTMLDivElement>>;
27
+ declare const inputGroupInputControlClasses: string;
28
+ declare const InputGroupInput: ForwardRefExoticComponent<ComponentProps<"input"> & RefAttributes<HTMLInputElement>>;
29
+ declare const InputGroupTextarea: ForwardRefExoticComponent<ComponentProps<"textarea"> & RefAttributes<HTMLTextAreaElement>>;
30
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupStepper, InputGroupText, InputGroupInput, inputGroupInputControlClasses, InputGroupTextarea };