@algolia/satellite 2.4.0 → 2.5.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 (430) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +9 -9
  2. package/dist/cjs/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
  3. package/dist/cjs/Actions/Button/Button.d.ts +1 -2
  4. package/dist/cjs/Actions/Button/Button.tailwind.d.ts +1 -1
  5. package/dist/cjs/Actions/Button/PolymorphicButton.d.ts +2 -2
  6. package/dist/cjs/Actions/Button/PolymorphicIconButton.d.ts +2 -3
  7. package/dist/cjs/Actions/Button/types.d.ts +7 -7
  8. package/dist/cjs/Actions/ButtonLink/ButtonLink.d.ts +2 -3
  9. package/dist/cjs/Actions/IconButton/IconButton.d.ts +1 -2
  10. package/dist/cjs/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
  11. package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
  12. package/dist/cjs/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
  13. package/dist/cjs/Actions/SegmentedControl/types.d.ts +1 -1
  14. package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +1 -1
  15. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
  16. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
  17. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
  18. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
  19. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
  20. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.js +72 -0
  21. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
  22. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.js +22 -0
  23. package/dist/cjs/Chat/ChatContextContainer/index.d.ts +1 -0
  24. package/dist/cjs/Chat/ChatContextContainer/index.js +16 -0
  25. package/dist/cjs/Chat/ChatContextContainer/theme.d.ts +57 -0
  26. package/dist/cjs/Chat/ChatContextContainer/theme.js +73 -0
  27. package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +5 -54
  28. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
  29. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
  30. package/dist/cjs/Chat/ChatMessages/ChatMessages.d.ts +5 -66
  31. package/dist/cjs/Chat/ChatMessages/ChatMessages.js +0 -1
  32. package/dist/cjs/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
  33. package/dist/cjs/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
  34. package/dist/cjs/Chat/helpers.d.ts +28 -0
  35. package/dist/cjs/Chat/helpers.js +68 -0
  36. package/dist/cjs/Chat/index.d.ts +4 -1
  37. package/dist/cjs/Chat/index.js +33 -1
  38. package/dist/cjs/Chat/types.d.ts +22 -3
  39. package/dist/cjs/Fields/AutoComplete/AutoComplete.d.ts +1 -2
  40. package/dist/cjs/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  41. package/dist/cjs/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
  42. package/dist/cjs/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
  43. package/dist/cjs/Fields/AutoComplete/types.d.ts +8 -8
  44. package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +3 -3
  45. package/dist/cjs/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
  46. package/dist/cjs/Fields/DateInput/DateInput.d.ts +2 -3
  47. package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  48. package/dist/cjs/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
  49. package/dist/cjs/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
  50. package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  51. package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
  52. package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
  53. package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
  54. package/dist/cjs/Fields/DatePicker/components/Calendar.d.ts +3 -3
  55. package/dist/cjs/Fields/DatePicker/components/Footer.d.ts +1 -1
  56. package/dist/cjs/Fields/DatePicker/components/FooterActions.d.ts +0 -1
  57. package/dist/cjs/Fields/DatePicker/components/NavBar.d.ts +1 -1
  58. package/dist/cjs/Fields/DatePicker/components/SidePanel.d.ts +1 -1
  59. package/dist/cjs/Fields/DatePicker/types.d.ts +2 -2
  60. package/dist/cjs/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
  61. package/dist/cjs/Fields/Dropzone/Dropzone.d.ts +2 -3
  62. package/dist/cjs/Fields/Field/FieldContext.d.ts +2 -3
  63. package/dist/cjs/Fields/Field/useField.d.ts +1 -1
  64. package/dist/cjs/Fields/FilePicker/FilePicker.d.ts +4 -5
  65. package/dist/cjs/Fields/Form/Form.d.ts +1 -1
  66. package/dist/cjs/Fields/Form/FormContext.d.ts +2 -3
  67. package/dist/cjs/Fields/Input/Input.d.ts +3 -3
  68. package/dist/cjs/Fields/Input/Input.tailwind.d.ts +1 -1
  69. package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +1 -1
  70. package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  71. package/dist/cjs/Fields/RadioGroup/RadioGroup.d.ts +5 -5
  72. package/dist/cjs/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
  73. package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +5 -5
  74. package/dist/cjs/Fields/Select/Select.d.ts +1 -1
  75. package/dist/cjs/Fields/Select/Select.tailwind.d.ts +1 -1
  76. package/dist/cjs/Fields/SelectableCard/SelectableCard.d.ts +2 -2
  77. package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
  78. package/dist/cjs/Fields/Switch/Switch.d.ts +7 -7
  79. package/dist/cjs/Fields/Switch/Switch.tailwind.d.ts +1 -1
  80. package/dist/cjs/Fields/TextArea/TextArea.d.ts +1 -1
  81. package/dist/cjs/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
  82. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
  83. package/dist/cjs/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
  84. package/dist/cjs/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
  85. package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
  86. package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  87. package/dist/cjs/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  88. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
  89. package/dist/cjs/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
  90. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
  91. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
  92. package/dist/cjs/Helpers/utilities/focusable.tailwind.d.ts +1 -1
  93. package/dist/cjs/Helpers/utilities/overlay.tailwind.d.ts +1 -1
  94. package/dist/cjs/Helpers/utilities/utilities.tailwind.d.ts +1 -1
  95. package/dist/cjs/Icons/AlgoliaRecommendIcon.d.ts +0 -1
  96. package/dist/cjs/Icons/AlgoliaSearchIcon.d.ts +0 -1
  97. package/dist/cjs/Icons/BulbIcon.d.ts +0 -1
  98. package/dist/cjs/Icons/ContextIcon.d.ts +0 -1
  99. package/dist/cjs/Icons/CrawlerIcon.d.ts +0 -1
  100. package/dist/cjs/Icons/DragHandleIcon.d.ts +0 -1
  101. package/dist/cjs/Icons/NeuralSearchIcon.d.ts +0 -1
  102. package/dist/cjs/Icons/NoFiltersIcon.d.ts +0 -1
  103. package/dist/cjs/Icons/PinIcon.d.ts +0 -1
  104. package/dist/cjs/Icons/QueryBreakdownIcon.d.ts +0 -1
  105. package/dist/cjs/Icons/RocketIcon.d.ts +0 -1
  106. package/dist/cjs/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
  107. package/dist/cjs/Icons/SettingsConsequencesIcon.d.ts +0 -1
  108. package/dist/cjs/Icons/TestingIcon.d.ts +0 -1
  109. package/dist/cjs/Icons/UnpinIcon.d.ts +0 -1
  110. package/dist/cjs/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
  111. package/dist/cjs/Icons/index.d.ts +2 -2
  112. package/dist/cjs/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  113. package/dist/cjs/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
  114. package/dist/cjs/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
  115. package/dist/cjs/Indicators/Avatars/types.d.ts +5 -5
  116. package/dist/cjs/Indicators/Badge/Badge.d.ts +4 -4
  117. package/dist/cjs/Indicators/Banners/Alert/Alert.d.ts +2 -2
  118. package/dist/cjs/Indicators/Banners/Promote/Promote.d.ts +2 -2
  119. package/dist/cjs/Indicators/EmptyState/types.d.ts +3 -3
  120. package/dist/cjs/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  121. package/dist/cjs/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
  122. package/dist/cjs/Indicators/Medallion/types.d.ts +2 -2
  123. package/dist/cjs/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  124. package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  125. package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  126. package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
  127. package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  128. package/dist/cjs/Indicators/Separator/Separator.tailwind.d.ts +1 -1
  129. package/dist/cjs/Indicators/Tag/Tag.d.ts +2 -2
  130. package/dist/cjs/Indicators/Tag/Tag.tailwind.d.ts +1 -1
  131. package/dist/cjs/Indicators/Toast/Toast.d.ts +2 -2
  132. package/dist/cjs/Indicators/Toast/Toast.tailwind.d.ts +1 -1
  133. package/dist/cjs/Indicators/Toast/Toasts.d.ts +1 -1
  134. package/dist/cjs/Indicators/Toast/types.d.ts +1 -1
  135. package/dist/cjs/Layout/Card/Card.d.ts +2 -2
  136. package/dist/cjs/Layout/Card/Card.tailwind.d.ts +1 -1
  137. package/dist/cjs/Layout/Card/components/CardHeader.d.ts +1 -1
  138. package/dist/cjs/Layout/Card/components/CardTitle.d.ts +2 -2
  139. package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  140. package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
  141. package/dist/cjs/Layout/FlexGrid/FlexGrid.d.ts +4 -4
  142. package/dist/cjs/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  143. package/dist/cjs/Layout/Insert/Insert.d.ts +1 -1
  144. package/dist/cjs/Layout/Sidebar/Sidebar.d.ts +1 -1
  145. package/dist/cjs/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
  146. package/dist/cjs/Layout/Sidebar/SidebarContext.d.ts +1 -2
  147. package/dist/cjs/Layout/Sidebar/SidebarHeader.d.ts +1 -1
  148. package/dist/cjs/Layout/Sidebar/SidebarHeading.d.ts +1 -1
  149. package/dist/cjs/Layout/Sidebar/SidebarLink.d.ts +1 -1
  150. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
  151. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
  152. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
  153. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
  154. package/dist/cjs/Layout/Sidebar/SidebarNav.d.ts +2 -2
  155. package/dist/cjs/Layout/Sidebar/types.d.ts +3 -3
  156. package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +7 -7
  157. package/dist/cjs/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  158. package/dist/cjs/Layout/Tables/DataTable/types.d.ts +7 -7
  159. package/dist/cjs/Layout/Tables/Table/Table.d.ts +1 -1
  160. package/dist/cjs/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
  161. package/dist/cjs/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
  162. package/dist/cjs/Navigation/Link/BaseLink.d.ts +1 -1
  163. package/dist/cjs/Navigation/Link/Link.d.ts +4 -4
  164. package/dist/cjs/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
  165. package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
  166. package/dist/cjs/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
  167. package/dist/cjs/Navigation/Stepper/Step.d.ts +1 -1
  168. package/dist/cjs/Navigation/Stepper/Stepper.d.ts +3 -3
  169. package/dist/cjs/Navigation/Stepper/StepperContext.d.ts +1 -2
  170. package/dist/cjs/Navigation/Stepper/types.d.ts +1 -1
  171. package/dist/cjs/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
  172. package/dist/cjs/Navigation/Tabs/types.d.ts +1 -1
  173. package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +16 -17
  174. package/dist/cjs/Overlay/MenuButton/components/Content.d.ts +1 -2
  175. package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
  176. package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
  177. package/dist/cjs/Overlay/MenuButton/components/Divider.d.ts +0 -1
  178. package/dist/cjs/Overlay/MenuButton/components/Label.d.ts +1 -1
  179. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
  180. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
  181. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
  182. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
  183. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
  184. package/dist/cjs/Overlay/MenuButton/components/items/Item.d.ts +4 -5
  185. package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
  186. package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
  187. package/dist/cjs/Overlay/Modal/Modal.d.ts +4 -4
  188. package/dist/cjs/Overlay/Modal/Modal.tailwind.d.ts +1 -1
  189. package/dist/cjs/Overlay/Modal/components/ModalFooter.d.ts +1 -1
  190. package/dist/cjs/Overlay/Modal/components/ModalSection.d.ts +1 -1
  191. package/dist/cjs/Overlay/Popover/types.d.ts +4 -4
  192. package/dist/cjs/Overlay/Tooltip/Tooltip.d.ts +1 -1
  193. package/dist/cjs/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
  194. package/dist/cjs/Satellite/SatelliteContext.d.ts +0 -1
  195. package/dist/cjs/Satellite/locale.d.ts +1 -1
  196. package/dist/cjs/Satellite/useCreatePortal.d.ts +1 -1
  197. package/dist/cjs/Typography/Typography.tailwind.d.ts +1 -1
  198. package/dist/cjs/styles/base.tailwind.d.ts +1 -1
  199. package/dist/cjs/styles/brandColors.d.ts +6 -6
  200. package/dist/cjs/styles/colors.d.ts +11 -11
  201. package/dist/cjs/styles/helpers/satellitePrefixer.d.ts +1 -1
  202. package/dist/cjs/styles/tailwind.config.d.ts +1 -1
  203. package/dist/cjs/styles/tailwind.config.js +1 -1
  204. package/dist/cjs/styles/zIndexes.d.ts +8 -8
  205. package/dist/cjs/types.d.ts +6 -7
  206. package/dist/cjs/utils/NumberUnion.d.ts +3 -3
  207. package/dist/cjs/utils/genericChangeHandler.d.ts +2 -2
  208. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  209. package/dist/cjs/utils/isRenderedChild.d.ts +1 -1
  210. package/dist/cjs/utils/matchLocation.d.ts +1 -1
  211. package/dist/cjs/utils/parseUrl.d.ts +1 -1
  212. package/dist/cjs/utils/useLinkProps.d.ts +2 -2
  213. package/dist/cjs/utils/useTimeoutFn.d.ts +1 -1
  214. package/dist/cjs/utils/useTriggerInputChange.d.ts +1 -1
  215. package/dist/esm/Actions/Accordion/Accordion.d.ts +9 -9
  216. package/dist/esm/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
  217. package/dist/esm/Actions/Button/Button.d.ts +1 -2
  218. package/dist/esm/Actions/Button/Button.tailwind.d.ts +1 -1
  219. package/dist/esm/Actions/Button/PolymorphicButton.d.ts +2 -2
  220. package/dist/esm/Actions/Button/PolymorphicIconButton.d.ts +2 -3
  221. package/dist/esm/Actions/Button/types.d.ts +7 -7
  222. package/dist/esm/Actions/ButtonLink/ButtonLink.d.ts +2 -3
  223. package/dist/esm/Actions/IconButton/IconButton.d.ts +1 -2
  224. package/dist/esm/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
  225. package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
  226. package/dist/esm/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
  227. package/dist/esm/Actions/SegmentedControl/types.d.ts +1 -1
  228. package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +1 -1
  229. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
  230. package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
  231. package/dist/esm/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
  232. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
  233. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
  234. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.js +66 -0
  235. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
  236. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.js +15 -0
  237. package/dist/esm/Chat/ChatContextContainer/index.d.ts +1 -0
  238. package/dist/esm/Chat/ChatContextContainer/index.js +1 -0
  239. package/dist/esm/Chat/ChatContextContainer/theme.d.ts +57 -0
  240. package/dist/esm/Chat/ChatContextContainer/theme.js +67 -0
  241. package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +5 -54
  242. package/dist/esm/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
  243. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
  244. package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +5 -66
  245. package/dist/esm/Chat/ChatMessages/ChatMessages.js +0 -1
  246. package/dist/esm/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
  247. package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
  248. package/dist/esm/Chat/helpers.d.ts +28 -0
  249. package/dist/esm/Chat/helpers.js +60 -0
  250. package/dist/esm/Chat/index.d.ts +4 -1
  251. package/dist/esm/Chat/index.js +3 -1
  252. package/dist/esm/Chat/types.d.ts +22 -3
  253. package/dist/esm/Fields/AutoComplete/AutoComplete.d.ts +1 -2
  254. package/dist/esm/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  255. package/dist/esm/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
  256. package/dist/esm/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
  257. package/dist/esm/Fields/AutoComplete/types.d.ts +8 -8
  258. package/dist/esm/Fields/Checkbox/Checkbox.d.ts +3 -3
  259. package/dist/esm/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
  260. package/dist/esm/Fields/DateInput/DateInput.d.ts +2 -3
  261. package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  262. package/dist/esm/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
  263. package/dist/esm/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
  264. package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  265. package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
  266. package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
  267. package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
  268. package/dist/esm/Fields/DatePicker/components/Calendar.d.ts +3 -3
  269. package/dist/esm/Fields/DatePicker/components/Footer.d.ts +1 -1
  270. package/dist/esm/Fields/DatePicker/components/FooterActions.d.ts +0 -1
  271. package/dist/esm/Fields/DatePicker/components/NavBar.d.ts +1 -1
  272. package/dist/esm/Fields/DatePicker/components/SidePanel.d.ts +1 -1
  273. package/dist/esm/Fields/DatePicker/types.d.ts +2 -2
  274. package/dist/esm/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
  275. package/dist/esm/Fields/Dropzone/Dropzone.d.ts +2 -3
  276. package/dist/esm/Fields/Field/FieldContext.d.ts +2 -3
  277. package/dist/esm/Fields/Field/useField.d.ts +1 -1
  278. package/dist/esm/Fields/FilePicker/FilePicker.d.ts +4 -5
  279. package/dist/esm/Fields/Form/Form.d.ts +1 -1
  280. package/dist/esm/Fields/Form/FormContext.d.ts +2 -3
  281. package/dist/esm/Fields/Input/Input.d.ts +3 -3
  282. package/dist/esm/Fields/Input/Input.tailwind.d.ts +1 -1
  283. package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +1 -1
  284. package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  285. package/dist/esm/Fields/RadioGroup/RadioGroup.d.ts +5 -5
  286. package/dist/esm/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
  287. package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +5 -5
  288. package/dist/esm/Fields/Select/Select.d.ts +1 -1
  289. package/dist/esm/Fields/Select/Select.tailwind.d.ts +1 -1
  290. package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +2 -2
  291. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
  292. package/dist/esm/Fields/Switch/Switch.d.ts +7 -7
  293. package/dist/esm/Fields/Switch/Switch.tailwind.d.ts +1 -1
  294. package/dist/esm/Fields/TextArea/TextArea.d.ts +1 -1
  295. package/dist/esm/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
  296. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
  297. package/dist/esm/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
  298. package/dist/esm/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
  299. package/dist/esm/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
  300. package/dist/esm/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  301. package/dist/esm/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  302. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
  303. package/dist/esm/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
  304. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
  305. package/dist/esm/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
  306. package/dist/esm/Helpers/utilities/focusable.tailwind.d.ts +1 -1
  307. package/dist/esm/Helpers/utilities/overlay.tailwind.d.ts +1 -1
  308. package/dist/esm/Helpers/utilities/utilities.tailwind.d.ts +1 -1
  309. package/dist/esm/Icons/AlgoliaRecommendIcon.d.ts +0 -1
  310. package/dist/esm/Icons/AlgoliaSearchIcon.d.ts +0 -1
  311. package/dist/esm/Icons/BulbIcon.d.ts +0 -1
  312. package/dist/esm/Icons/ContextIcon.d.ts +0 -1
  313. package/dist/esm/Icons/CrawlerIcon.d.ts +0 -1
  314. package/dist/esm/Icons/DragHandleIcon.d.ts +0 -1
  315. package/dist/esm/Icons/NeuralSearchIcon.d.ts +0 -1
  316. package/dist/esm/Icons/NoFiltersIcon.d.ts +0 -1
  317. package/dist/esm/Icons/PinIcon.d.ts +0 -1
  318. package/dist/esm/Icons/QueryBreakdownIcon.d.ts +0 -1
  319. package/dist/esm/Icons/RocketIcon.d.ts +0 -1
  320. package/dist/esm/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
  321. package/dist/esm/Icons/SettingsConsequencesIcon.d.ts +0 -1
  322. package/dist/esm/Icons/TestingIcon.d.ts +0 -1
  323. package/dist/esm/Icons/UnpinIcon.d.ts +0 -1
  324. package/dist/esm/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
  325. package/dist/esm/Icons/index.d.ts +2 -2
  326. package/dist/esm/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  327. package/dist/esm/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
  328. package/dist/esm/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
  329. package/dist/esm/Indicators/Avatars/types.d.ts +5 -5
  330. package/dist/esm/Indicators/Badge/Badge.d.ts +4 -4
  331. package/dist/esm/Indicators/Banners/Alert/Alert.d.ts +2 -2
  332. package/dist/esm/Indicators/Banners/Promote/Promote.d.ts +2 -2
  333. package/dist/esm/Indicators/EmptyState/types.d.ts +3 -3
  334. package/dist/esm/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  335. package/dist/esm/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
  336. package/dist/esm/Indicators/Medallion/types.d.ts +2 -2
  337. package/dist/esm/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  338. package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  339. package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  340. package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
  341. package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  342. package/dist/esm/Indicators/Separator/Separator.tailwind.d.ts +1 -1
  343. package/dist/esm/Indicators/Tag/Tag.d.ts +2 -2
  344. package/dist/esm/Indicators/Tag/Tag.tailwind.d.ts +1 -1
  345. package/dist/esm/Indicators/Toast/Toast.d.ts +2 -2
  346. package/dist/esm/Indicators/Toast/Toast.tailwind.d.ts +1 -1
  347. package/dist/esm/Indicators/Toast/Toasts.d.ts +1 -1
  348. package/dist/esm/Indicators/Toast/types.d.ts +1 -1
  349. package/dist/esm/Layout/Card/Card.d.ts +2 -2
  350. package/dist/esm/Layout/Card/Card.tailwind.d.ts +1 -1
  351. package/dist/esm/Layout/Card/components/CardHeader.d.ts +1 -1
  352. package/dist/esm/Layout/Card/components/CardTitle.d.ts +2 -2
  353. package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  354. package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
  355. package/dist/esm/Layout/FlexGrid/FlexGrid.d.ts +4 -4
  356. package/dist/esm/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  357. package/dist/esm/Layout/Insert/Insert.d.ts +1 -1
  358. package/dist/esm/Layout/Sidebar/Sidebar.d.ts +1 -1
  359. package/dist/esm/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
  360. package/dist/esm/Layout/Sidebar/SidebarContext.d.ts +1 -2
  361. package/dist/esm/Layout/Sidebar/SidebarHeader.d.ts +1 -1
  362. package/dist/esm/Layout/Sidebar/SidebarHeading.d.ts +1 -1
  363. package/dist/esm/Layout/Sidebar/SidebarLink.d.ts +1 -1
  364. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
  365. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
  366. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
  367. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
  368. package/dist/esm/Layout/Sidebar/SidebarNav.d.ts +2 -2
  369. package/dist/esm/Layout/Sidebar/types.d.ts +3 -3
  370. package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +7 -7
  371. package/dist/esm/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  372. package/dist/esm/Layout/Tables/DataTable/types.d.ts +7 -7
  373. package/dist/esm/Layout/Tables/Table/Table.d.ts +1 -1
  374. package/dist/esm/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
  375. package/dist/esm/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
  376. package/dist/esm/Navigation/Link/BaseLink.d.ts +1 -1
  377. package/dist/esm/Navigation/Link/Link.d.ts +4 -4
  378. package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
  379. package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
  380. package/dist/esm/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
  381. package/dist/esm/Navigation/Stepper/Step.d.ts +1 -1
  382. package/dist/esm/Navigation/Stepper/Stepper.d.ts +3 -3
  383. package/dist/esm/Navigation/Stepper/StepperContext.d.ts +1 -2
  384. package/dist/esm/Navigation/Stepper/types.d.ts +1 -1
  385. package/dist/esm/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
  386. package/dist/esm/Navigation/Tabs/types.d.ts +1 -1
  387. package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +16 -17
  388. package/dist/esm/Overlay/MenuButton/components/Content.d.ts +1 -2
  389. package/dist/esm/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
  390. package/dist/esm/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
  391. package/dist/esm/Overlay/MenuButton/components/Divider.d.ts +0 -1
  392. package/dist/esm/Overlay/MenuButton/components/Label.d.ts +1 -1
  393. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
  394. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
  395. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
  396. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
  397. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
  398. package/dist/esm/Overlay/MenuButton/components/items/Item.d.ts +4 -5
  399. package/dist/esm/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
  400. package/dist/esm/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
  401. package/dist/esm/Overlay/Modal/Modal.d.ts +4 -4
  402. package/dist/esm/Overlay/Modal/Modal.tailwind.d.ts +1 -1
  403. package/dist/esm/Overlay/Modal/components/ModalFooter.d.ts +1 -1
  404. package/dist/esm/Overlay/Modal/components/ModalSection.d.ts +1 -1
  405. package/dist/esm/Overlay/Popover/types.d.ts +4 -4
  406. package/dist/esm/Overlay/Tooltip/Tooltip.d.ts +1 -1
  407. package/dist/esm/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
  408. package/dist/esm/Satellite/SatelliteContext.d.ts +0 -1
  409. package/dist/esm/Satellite/locale.d.ts +1 -1
  410. package/dist/esm/Satellite/useCreatePortal.d.ts +1 -1
  411. package/dist/esm/Typography/Typography.tailwind.d.ts +1 -1
  412. package/dist/esm/styles/base.tailwind.d.ts +1 -1
  413. package/dist/esm/styles/brandColors.d.ts +6 -6
  414. package/dist/esm/styles/colors.d.ts +11 -11
  415. package/dist/esm/styles/helpers/satellitePrefixer.d.ts +1 -1
  416. package/dist/esm/styles/tailwind.config.d.ts +1 -1
  417. package/dist/esm/styles/tailwind.config.js +1 -1
  418. package/dist/esm/styles/zIndexes.d.ts +8 -8
  419. package/dist/esm/types.d.ts +6 -7
  420. package/dist/esm/utils/NumberUnion.d.ts +3 -3
  421. package/dist/esm/utils/genericChangeHandler.d.ts +2 -2
  422. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  423. package/dist/esm/utils/isRenderedChild.d.ts +1 -1
  424. package/dist/esm/utils/matchLocation.d.ts +1 -1
  425. package/dist/esm/utils/parseUrl.d.ts +1 -1
  426. package/dist/esm/utils/useLinkProps.d.ts +2 -2
  427. package/dist/esm/utils/useTimeoutFn.d.ts +1 -1
  428. package/dist/esm/utils/useTriggerInputChange.d.ts +1 -1
  429. package/dist/satellite.min.css +1 -1
  430. package/package.json +7 -6
@@ -3,8 +3,8 @@ import type { FC, ReactNode } from "react";
3
3
  import type { VariantProps } from "tailwind-variants";
4
4
  import { accordionStyles } from "./Accordion.styles";
5
5
  import type { IconComponentType } from "../../Icons";
6
- declare type AccordionVariants = VariantProps<typeof accordionStyles>;
7
- declare type AccordionSharedProps = {
6
+ type AccordionVariants = VariantProps<typeof accordionStyles>;
7
+ type AccordionSharedProps = {
8
8
  /**
9
9
  * The content of the `Accordion`.
10
10
  */
@@ -23,7 +23,7 @@ declare type AccordionSharedProps = {
23
23
  */
24
24
  variant?: AccordionVariants["variant"];
25
25
  };
26
- declare type AccordionSingleProps = {
26
+ type AccordionSingleProps = {
27
27
  /**
28
28
  * Whether a single or multiple items can be expanded at a time.
29
29
  * @default false
@@ -49,7 +49,7 @@ declare type AccordionSingleProps = {
49
49
  */
50
50
  collapsible?: boolean;
51
51
  };
52
- declare type AccordionMultipleProps = {
52
+ type AccordionMultipleProps = {
53
53
  /**
54
54
  * Whether a single or multiple items can be expanded at a time.
55
55
  * @default false
@@ -74,8 +74,8 @@ declare type AccordionMultipleProps = {
74
74
  */
75
75
  collapsible?: never;
76
76
  };
77
- export declare type AccordionProps = AccordionSharedProps & (AccordionSingleProps | AccordionMultipleProps);
78
- export declare type AccordionItemProps = {
77
+ export type AccordionProps = AccordionSharedProps & (AccordionSingleProps | AccordionMultipleProps);
78
+ export type AccordionItemProps = {
79
79
  /**
80
80
  * Defines the content of the `AccordionItem`.
81
81
  */
@@ -93,7 +93,7 @@ export declare type AccordionItemProps = {
93
93
  */
94
94
  disabled?: boolean;
95
95
  };
96
- export declare type AccordionHeaderProps = {
96
+ export type AccordionHeaderProps = {
97
97
  /**
98
98
  * Defines the title of the `AccordionHeader`.
99
99
  */
@@ -140,7 +140,7 @@ export declare type AccordionHeaderProps = {
140
140
  */
141
141
  triggerClassName?: string;
142
142
  };
143
- export declare type AccordionContentProps = {
143
+ export type AccordionContentProps = {
144
144
  /**
145
145
  * Defines the content of the `AccordionContent`.
146
146
  */
@@ -150,7 +150,7 @@ export declare type AccordionContentProps = {
150
150
  */
151
151
  className?: string;
152
152
  };
153
- declare type AccordionComponent = FC<AccordionProps> & {
153
+ type AccordionComponent = FC<AccordionProps> & {
154
154
  Item: typeof AccordionItem;
155
155
  Header: typeof AccordionHeader;
156
156
  Content: typeof AccordionContent;
@@ -1,5 +1,5 @@
1
1
  export = accordionPlugin;
2
2
  declare const accordionPlugin: {
3
3
  handler: import("tailwindcss/types/config").PluginCreator;
4
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ config?: Partial<import("tailwindcss/types/config").Config>;
5
5
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { type PolymorphicButtonProps } from "./PolymorphicButton";
3
- export declare type ButtonProps = Omit<PolymorphicButtonProps<"button">, "as" | "ref">;
2
+ export type ButtonProps = Omit<PolymorphicButtonProps<"button">, "as" | "ref">;
4
3
  /**
5
4
  * The `Button` component is used to trigger user actions (like "Add", "Close" or "Save") or navigate users elsewhere through the links. It can contain a combination of a clear label and an icon while links are always text.
6
5
  *
@@ -1,5 +1,5 @@
1
1
  export = buttonPlugin;
2
2
  declare const buttonPlugin: {
3
3
  handler: import("tailwindcss/types/config").PluginCreator;
4
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ config?: Partial<import("tailwindcss/types/config").Config>;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import type { ButtonBaseProps, PolymorphicComponentPropWithRef } from "./types";
3
- export declare type PolymorphicButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, ButtonBaseProps>;
4
- declare type PolymorphicButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicButtonProps<C>) => React.ReactElement | null) & {
3
+ export type PolymorphicButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, ButtonBaseProps>;
4
+ type PolymorphicButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicButtonProps<C>) => React.ReactNode) & {
5
5
  displayName?: string;
6
6
  };
7
7
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ButtonSize, ButtonVariant, PolymorphicComponentPropWithRef } from "./types";
3
2
  import type { IconComponentType } from "../../Icons";
4
3
  import type { TooltipWrapperBaseProps } from "../../Overlay/TooltipWrapper/types";
@@ -54,8 +53,8 @@ export interface IconButtonBaseProps {
54
53
  */
55
54
  className?: string;
56
55
  }
57
- export declare type PolymorphicIconButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, IconButtonBaseProps>;
58
- declare type PolymorphicIconButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicIconButtonProps<C>) => React.ReactElement | null) & {
56
+ export type PolymorphicIconButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, IconButtonBaseProps>;
57
+ type PolymorphicIconButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicIconButtonProps<C>) => React.ReactNode) & {
59
58
  displayName?: string;
60
59
  };
61
60
  /**
@@ -1,8 +1,8 @@
1
1
  import type { PropsWithChildren, ReactNode } from "react";
2
2
  import type { IconComponentType } from "../../Icons";
3
- export declare type ButtonVariant = "subtle" | "neutral" | "primary" | "destructive";
3
+ export type ButtonVariant = "subtle" | "neutral" | "primary" | "destructive";
4
4
  export declare const buttonSizes: readonly ["small", "medium", "large"];
5
- export declare type ButtonSize = (typeof buttonSizes)[number];
5
+ export type ButtonSize = (typeof buttonSizes)[number];
6
6
  export interface ButtonBaseProps {
7
7
  /**
8
8
  * The variant of the `Button`.
@@ -42,13 +42,13 @@ export interface ButtonBaseProps {
42
42
  className?: string;
43
43
  }
44
44
  export declare function isButtonType(props: any): props is JSX.IntrinsicElements["button"];
45
- declare type AsProp<C extends React.ElementType> = {
45
+ type AsProp<C extends React.ElementType> = {
46
46
  as?: C;
47
47
  };
48
- declare type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
49
- declare type PolymorphicComponentProp<C extends React.ElementType, Props = object> = PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
50
- export declare type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = object> = PolymorphicComponentProp<C, Props> & {
48
+ type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
49
+ type PolymorphicComponentProp<C extends React.ElementType, Props = object> = PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
50
+ export type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = object> = PolymorphicComponentProp<C, Props> & {
51
51
  ref?: PolymorphicRef<C>;
52
52
  };
53
- export declare type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
53
+ export type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
54
54
  export {};
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { PolymorphicButtonProps } from "../../Actions/Button/PolymorphicButton";
3
- export declare type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "ref"> & {
2
+ export type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "ref"> & {
4
3
  href: string;
5
4
  withExternalLinkIcon?: boolean;
6
5
  };
@@ -11,5 +10,5 @@ export declare type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "
11
10
  */
12
11
  export declare const ButtonLink: import("react").ForwardRefExoticComponent<Omit<PolymorphicButtonProps<"a">, "ref" | "as"> & {
13
12
  href: string;
14
- withExternalLinkIcon?: boolean | undefined;
13
+ withExternalLinkIcon?: boolean;
15
14
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { PolymorphicIconButtonProps } from "../../Actions/Button/PolymorphicIconButton";
3
- export declare type IconButtonProps = Omit<PolymorphicIconButtonProps<"button">, "as" | "ref">;
2
+ export type IconButtonProps = Omit<PolymorphicIconButtonProps<"button">, "as" | "ref">;
4
3
  /**
5
4
  * The `IconButton` component is used to trigger user actions (like "Add", "Close" or "Save"). It can only contain an icon.
6
5
  *
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { PolymorphicIconButtonProps } from "../../Actions/Button/PolymorphicIconButton";
3
- export declare type IconButtonLinkProps = Omit<PolymorphicIconButtonProps<"a">, "as" | "ref"> & {
2
+ export type IconButtonLinkProps = Omit<PolymorphicIconButtonProps<"a">, "as" | "ref"> & {
4
3
  href: string;
5
4
  };
6
5
  /**
@@ -2,7 +2,7 @@ import type { FC, MouseEvent } from "react";
2
2
  import type { IconButtonProps } from "../../Actions/IconButton/IconButton";
3
3
  import type { IconComponentType } from "../../Icons";
4
4
  export declare const RESET_STATUS_DELAY = 100;
5
- export declare type IconButtonWithFeedbackLocale = {
5
+ export type IconButtonWithFeedbackLocale = {
6
6
  /**
7
7
  * The tooltip message shown after a successful click.
8
8
  * @default "Success"
@@ -19,7 +19,7 @@ export declare type IconButtonWithFeedbackLocale = {
19
19
  */
20
20
  loading?: string;
21
21
  };
22
- export declare type IconButtonWithFeedbackProps = Omit<IconButtonProps, "title" | "showTooltip" | "loading" | "onClick"> & {
22
+ export type IconButtonWithFeedbackProps = Omit<IconButtonProps, "title" | "showTooltip" | "loading" | "onClick"> & {
23
23
  /**
24
24
  * The icon to display when the action succeeds.
25
25
  * Set to `false` to disable the success icon.
@@ -1,5 +1,5 @@
1
1
  export = segmentedControlPlugin;
2
2
  declare const segmentedControlPlugin: {
3
3
  handler: import("tailwindcss/types/config").PluginCreator;
4
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ config?: Partial<import("tailwindcss/types/config").Config>;
5
5
  };
@@ -1,4 +1,4 @@
1
- export declare type SegmentedControlSize = "small" | "medium" | "large";
1
+ export type SegmentedControlSize = "small" | "medium" | "large";
2
2
  export interface SegmentedControlContextValue {
3
3
  name: string;
4
4
  value: string;
@@ -1,7 +1,7 @@
1
1
  import type { ToggleProps } from "@radix-ui/react-toggle";
2
2
  import type { PropsWithChildren } from "react";
3
3
  import type { ToggleButtonBaseProps } from "./ToggleButtonBase";
4
- export declare type ToggleButtonProps = PropsWithChildren<{
4
+ export type ToggleButtonProps = PropsWithChildren<{
5
5
  /**
6
6
  * The pressed state of the `ToggleButton`.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ReactNode } from "react";
2
2
  import type { ButtonSize } from "../../Actions/Button/types";
3
3
  import type { IconComponentType } from "../../Icons";
4
- declare type IconOnlyToggleButtonBaseProps = {
4
+ type IconOnlyToggleButtonBaseProps = {
5
5
  /**
6
6
  * The icon to display for the `ToggleButton`.
7
7
  */
@@ -11,7 +11,7 @@ declare type IconOnlyToggleButtonBaseProps = {
11
11
  */
12
12
  label: string;
13
13
  };
14
- declare type TextToggleButtonBaseProps = {
14
+ type TextToggleButtonBaseProps = {
15
15
  /**
16
16
  * The icon to display for the `ToggleButton`.
17
17
  */
@@ -21,7 +21,7 @@ declare type TextToggleButtonBaseProps = {
21
21
  */
22
22
  children: ReactNode;
23
23
  };
24
- export declare type ToggleButtonBaseProps = {
24
+ export type ToggleButtonBaseProps = {
25
25
  /**
26
26
  * The id of the `ToggleButton`.
27
27
  */
@@ -1,6 +1,6 @@
1
1
  import type { FC, PropsWithChildren } from "react";
2
2
  import type { ToggleButtonBaseProps } from "../../Actions/ToggleButton/ToggleButtonBase";
3
- declare type ToggleGroupSharedProps = {
3
+ type ToggleGroupSharedProps = {
4
4
  /**
5
5
  * The class name of the `ToggleGroup`.
6
6
  */
@@ -11,7 +11,7 @@ declare type ToggleGroupSharedProps = {
11
11
  */
12
12
  disabled?: boolean;
13
13
  };
14
- declare type ToggleGroupSingleProps<T extends string = string> = {
14
+ type ToggleGroupSingleProps<T extends string = string> = {
15
15
  /**
16
16
  * Defines whether a single or multiple items can be pressed at a time.
17
17
  */
@@ -31,7 +31,7 @@ declare type ToggleGroupSingleProps<T extends string = string> = {
31
31
  */
32
32
  onChange?: (value: T) => void;
33
33
  };
34
- declare type ToggleGroupMultipleProps<T extends string = string> = {
34
+ type ToggleGroupMultipleProps<T extends string = string> = {
35
35
  /**
36
36
  * Defines whether a single or multiple items can be pressed at a time.
37
37
  */
@@ -51,11 +51,11 @@ declare type ToggleGroupMultipleProps<T extends string = string> = {
51
51
  */
52
52
  onChange?: (value: T[]) => void;
53
53
  };
54
- export declare type ToggleGroupProps<T extends string = string> = ToggleGroupSharedProps & (ToggleGroupSingleProps<T> | ToggleGroupMultipleProps<T>);
55
- export declare type ToggleGroupComponent<T extends string = string> = FC<PropsWithChildren<ToggleGroupProps<T>>> & {
54
+ export type ToggleGroupProps<T extends string = string> = ToggleGroupSharedProps & (ToggleGroupSingleProps<T> | ToggleGroupMultipleProps<T>);
55
+ export type ToggleGroupComponent<T extends string = string> = FC<PropsWithChildren<ToggleGroupProps<T>>> & {
56
56
  Item: FC<PropsWithChildren<ToggleGroupItemProps<T>>>;
57
57
  };
58
- export declare type ToggleGroupItemProps<T extends string = string> = PropsWithChildren<ToggleButtonBaseProps & {
58
+ export type ToggleGroupItemProps<T extends string = string> = PropsWithChildren<ToggleButtonBaseProps & {
59
59
  /** Defines a unique value for the item. */
60
60
  value: T;
61
61
  }>;
@@ -1,5 +1,5 @@
1
1
  export = toggleGroupPlugin;
2
2
  declare const toggleGroupPlugin: {
3
3
  handler: import("tailwindcss/types/config").PluginCreator;
4
- config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ config?: Partial<import("tailwindcss/types/config").Config>;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import type { HTMLAttributes, ReactNode } from "react";
2
2
  import type { AccordionProps } from "../../Actions";
3
3
  import type { IconComponentType } from "../../Icons";
4
- export declare type ChatContextAccordionProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & Omit<AccordionProps, "multiple" | "defaultValue" | "value" | "onChange"> & {
4
+ export type ChatContextAccordionProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & Omit<AccordionProps, "multiple" | "defaultValue" | "value" | "onChange"> & {
5
5
  /**
6
6
  * The header of the accordion.
7
7
  */
@@ -0,0 +1,23 @@
1
+ import { type PropsWithChildren, type ReactNode } from "react";
2
+ export type ChatContextContainerProps = PropsWithChildren<{
3
+ /**
4
+ * Class to apply to the root element.
5
+ */
6
+ className?: string;
7
+ /**
8
+ * The content, ideally an actionable button, to render on the right side of the header.
9
+ */
10
+ actions?: ReactNode;
11
+ /**
12
+ * The title to display in the header.
13
+ */
14
+ title?: string;
15
+ /**
16
+ * The code language that represents the provided children, which will provide syntax highlighting if recognized.
17
+ */
18
+ code?: string;
19
+ }>;
20
+ /**
21
+ * The `ChatContextContainer` component wraps data with an actionable header. Intended for use with the chat interface.
22
+ */
23
+ export declare const ChatContextContainer: ({ className, title, actions, code, children }: ChatContextContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ChatContextContainer = void 0;
7
+ var _react = require("react");
8
+ var _reactSyntaxHighlighter = require("react-syntax-highlighter");
9
+ var _ChatContextContainer = require("./ChatContextContainer.styles");
10
+ var _theme = require("./theme");
11
+ var _Actions = require("./../../Actions");
12
+ var _Icons = require("./../../Icons");
13
+ var _utils = require("./../../utils");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ /**
16
+ * The `ChatContextContainer` component wraps data with an actionable header. Intended for use with the chat interface.
17
+ */
18
+ var ChatContextContainer = exports.ChatContextContainer = function ChatContextContainer(_ref) {
19
+ var className = _ref.className,
20
+ title = _ref.title,
21
+ actions = _ref.actions,
22
+ code = _ref.code,
23
+ children = _ref.children;
24
+ var styles = (0, _ChatContextContainer.chatContextContainerStyles)();
25
+ var contentContainerRef = (0, _react.useRef)(null);
26
+ var titleId = (0, _react.useMemo)(function () {
27
+ return (0, _utils.uniqueId)("chat-context-container-title-");
28
+ }, []);
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
30
+ className: styles.base({
31
+ className: className
32
+ }),
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
34
+ className: styles.item(),
35
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
36
+ className: styles.header(),
37
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
38
+ id: titleId,
39
+ className: styles.title(),
40
+ children: title !== null && title !== void 0 ? title : code
41
+ }), actions !== null && actions !== void 0 ? actions : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Actions.IconButtonWithFeedback, {
42
+ icon: _Icons.CopyIcon,
43
+ variant: "subtle",
44
+ size: "small",
45
+ message: "Copy to clipboard",
46
+ tooltipSide: "bottom",
47
+ tooltipDelay: 0,
48
+ tooltipHideDelay: 0,
49
+ onClick: function onClick() {
50
+ var _contentContainerRef$;
51
+ // Fallback to unformatted HTML as text if content is JSX or array of JSX
52
+ var content = /*#__PURE__*/(0, _react.isValidElement)(children) || _react.Children.count(children) > 1 ? (_contentContainerRef$ = contentContainerRef.current) === null || _contentContainerRef$ === void 0 ? void 0 : _contentContainerRef$.innerHTML : children === null || children === void 0 ? void 0 : children.toString();
53
+ if (content) {
54
+ void navigator.clipboard.writeText(content);
55
+ }
56
+ }
57
+ })]
58
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
59
+ ref: contentContainerRef,
60
+ role: "region",
61
+ "aria-labelledby": titleId,
62
+ className: styles.content(),
63
+ children: code !== undefined && typeof children === "string" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSyntaxHighlighter.Prism, {
64
+ PreTag: "div",
65
+ language: code,
66
+ style: _theme.theme,
67
+ children: children
68
+ }) : children
69
+ })]
70
+ })
71
+ });
72
+ };
@@ -0,0 +1,65 @@
1
+ export declare const chatContextContainerStyles: import("tailwind-variants").TVReturnType<{
2
+ [key: string]: {
3
+ [key: string]: import("tailwind-merge").ClassNameValue | {
4
+ base?: import("tailwind-merge").ClassNameValue;
5
+ header?: import("tailwind-merge").ClassNameValue;
6
+ title?: import("tailwind-merge").ClassNameValue;
7
+ content?: import("tailwind-merge").ClassNameValue;
8
+ item?: import("tailwind-merge").ClassNameValue;
9
+ };
10
+ };
11
+ } | {
12
+ [x: string]: {
13
+ [x: string]: import("tailwind-merge").ClassNameValue | {
14
+ base?: import("tailwind-merge").ClassNameValue;
15
+ header?: import("tailwind-merge").ClassNameValue;
16
+ title?: import("tailwind-merge").ClassNameValue;
17
+ content?: import("tailwind-merge").ClassNameValue;
18
+ item?: import("tailwind-merge").ClassNameValue;
19
+ };
20
+ };
21
+ } | {}, {
22
+ base: string;
23
+ item: string;
24
+ header: string;
25
+ title: string;
26
+ content: string;
27
+ }, undefined, {
28
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {} | undefined;
29
+ } & import("tailwind-variants/dist/config").TWMConfig & {
30
+ twMergeConfig: {
31
+ prefix: string;
32
+ };
33
+ }, {
34
+ [key: string]: {
35
+ [key: string]: import("tailwind-merge").ClassNameValue | {
36
+ base?: import("tailwind-merge").ClassNameValue;
37
+ header?: import("tailwind-merge").ClassNameValue;
38
+ title?: import("tailwind-merge").ClassNameValue;
39
+ content?: import("tailwind-merge").ClassNameValue;
40
+ item?: import("tailwind-merge").ClassNameValue;
41
+ };
42
+ };
43
+ } | {}, {
44
+ base: string;
45
+ item: string;
46
+ header: string;
47
+ title: string;
48
+ content: string;
49
+ }, import("tailwind-variants").TVReturnType<unknown, {
50
+ base: string;
51
+ item: string;
52
+ header: string;
53
+ title: string;
54
+ content: string;
55
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
56
+ [key: string]: {
57
+ [key: string]: import("tailwind-merge").ClassNameValue | {
58
+ base?: import("tailwind-merge").ClassNameValue;
59
+ header?: import("tailwind-merge").ClassNameValue;
60
+ title?: import("tailwind-merge").ClassNameValue;
61
+ content?: import("tailwind-merge").ClassNameValue;
62
+ item?: import("tailwind-merge").ClassNameValue;
63
+ };
64
+ };
65
+ } | {}>, unknown, unknown, undefined>>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.chatContextContainerStyles = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _satellitePrefixer = _interopRequireDefault(require("./../../styles/helpers/satellitePrefixer"));
10
+ var _tv = require("./../../styles/helpers/tv");
11
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
12
+ var chatContextContainerStyles = exports.chatContextContainerStyles = (0, _tv.tv)({
13
+ slots: {
14
+ base: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["w-full"]))),
15
+ item: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["border border-grey-200 rounded-[4px] overflow-hidden"]))),
16
+ header: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["flex items-center justify-between bg-white border-b border-grey-200 transition-colors duration-500 pl-3 pr-1 min-h-8"]))),
17
+ // override markdown-content styles for "p" tags
18
+ title: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["!typo-display-caption !typo-subdued !m-0"]))),
19
+ // select "code" to override any selectors added by markdown-content styles
20
+ content: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100 [&_code]:bg-grey-100 text-grey-600 [&_code]:text-grey-600 text-sm [&_code]:text-sm leading-[20px] [&_code]:leading-[20px] px-3 py-2 [&_code]:p-0 [&_code]:m-0 overflow-y-auto max-h-80 thin-scrollbar"])))
21
+ }
22
+ });
@@ -0,0 +1 @@
1
+ export * from "./ChatContextContainer";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _ChatContextContainer = require("./ChatContextContainer");
7
+ Object.keys(_ChatContextContainer).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _ChatContextContainer[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _ChatContextContainer[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,57 @@
1
+ export declare const theme: {
2
+ 'pre[class*="language-"]': {
3
+ whiteSpace: string;
4
+ };
5
+ comment: {
6
+ color: string;
7
+ };
8
+ tag: {
9
+ color: string;
10
+ };
11
+ boolean: {
12
+ color: string;
13
+ };
14
+ number: {
15
+ color: string;
16
+ };
17
+ constant: {
18
+ color: string;
19
+ };
20
+ symbol: {
21
+ color: string;
22
+ };
23
+ selector: {
24
+ color: string;
25
+ };
26
+ "attr-name": {
27
+ color: string;
28
+ };
29
+ string: {
30
+ color: string;
31
+ };
32
+ char: {
33
+ color: string;
34
+ };
35
+ inserted: {
36
+ color: string;
37
+ };
38
+ url: {
39
+ color: string;
40
+ background: string;
41
+ };
42
+ "attr-value": {
43
+ color: string;
44
+ };
45
+ function: {
46
+ color: string;
47
+ };
48
+ keyword: {
49
+ color: string;
50
+ };
51
+ bold: {
52
+ fontWeight: string;
53
+ };
54
+ italic: {
55
+ fontStyle: string;
56
+ };
57
+ };
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.theme = void 0;
7
+ var _index = require("./../../index");
8
+ var BACKGROUND = _index.colors.grey[100];
9
+ var PINK = _index.colors.pink[700];
10
+ var BLUE = _index.colors.xenon[600];
11
+ var DARK_BLUE = _index.colors.nebula[900];
12
+ var LIGHT_BLUE = _index.colors.blue[800];
13
+ var GREEN = _index.colors.green[800];
14
+ var ORANGE = _index.colors.orange[700];
15
+
16
+ // Based on prism theme with design token colors
17
+ var theme = exports.theme = {
18
+ 'pre[class*="language-"]': {
19
+ whiteSpace: "pre"
20
+ },
21
+ comment: {
22
+ color: DARK_BLUE
23
+ },
24
+ tag: {
25
+ color: ORANGE
26
+ },
27
+ "boolean": {
28
+ color: BLUE
29
+ },
30
+ number: {
31
+ color: BLUE
32
+ },
33
+ constant: {
34
+ color: BLUE
35
+ },
36
+ symbol: {
37
+ color: BLUE
38
+ },
39
+ selector: {
40
+ color: GREEN
41
+ },
42
+ "attr-name": {
43
+ color: GREEN
44
+ },
45
+ string: {
46
+ color: GREEN
47
+ },
48
+ "char": {
49
+ color: GREEN
50
+ },
51
+ inserted: {
52
+ color: GREEN
53
+ },
54
+ url: {
55
+ color: BLUE,
56
+ background: BACKGROUND
57
+ },
58
+ "attr-value": {
59
+ color: PINK
60
+ },
61
+ "function": {
62
+ color: LIGHT_BLUE
63
+ },
64
+ keyword: {
65
+ color: PINK
66
+ },
67
+ bold: {
68
+ fontWeight: "bold"
69
+ },
70
+ italic: {
71
+ fontStyle: "italic"
72
+ }
73
+ };