@algolia/satellite 2.3.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 (466) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +16 -8
  2. package/dist/cjs/Actions/Accordion/Accordion.js +104 -57
  3. package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +170 -0
  4. package/dist/cjs/Actions/Accordion/Accordion.styles.js +57 -0
  5. package/dist/cjs/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
  6. package/dist/cjs/Actions/Button/Button.d.ts +1 -2
  7. package/dist/cjs/Actions/Button/Button.tailwind.d.ts +1 -1
  8. package/dist/cjs/Actions/Button/PolymorphicButton.d.ts +2 -2
  9. package/dist/cjs/Actions/Button/PolymorphicIconButton.d.ts +2 -3
  10. package/dist/cjs/Actions/Button/types.d.ts +7 -7
  11. package/dist/cjs/Actions/ButtonLink/ButtonLink.d.ts +2 -3
  12. package/dist/cjs/Actions/IconButton/IconButton.d.ts +1 -2
  13. package/dist/cjs/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
  14. package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
  15. package/dist/cjs/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
  16. package/dist/cjs/Actions/SegmentedControl/types.d.ts +1 -1
  17. package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +1 -1
  18. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
  19. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
  20. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
  21. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
  22. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  23. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
  24. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.js +72 -0
  25. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
  26. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.js +22 -0
  27. package/dist/cjs/Chat/ChatContextContainer/index.d.ts +1 -0
  28. package/dist/cjs/Chat/ChatContextContainer/index.js +16 -0
  29. package/dist/cjs/Chat/ChatContextContainer/theme.d.ts +57 -0
  30. package/dist/cjs/Chat/ChatContextContainer/theme.js +73 -0
  31. package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +5 -54
  32. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  33. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
  34. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  35. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
  36. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  37. package/dist/cjs/Chat/ChatMessages/ChatMessages.d.ts +5 -66
  38. package/dist/cjs/Chat/ChatMessages/ChatMessages.js +0 -1
  39. package/dist/cjs/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
  40. package/dist/cjs/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
  41. package/dist/cjs/Chat/helpers.d.ts +28 -0
  42. package/dist/cjs/Chat/helpers.js +68 -0
  43. package/dist/cjs/Chat/index.d.ts +4 -1
  44. package/dist/cjs/Chat/index.js +33 -1
  45. package/dist/cjs/Chat/types.d.ts +22 -3
  46. package/dist/cjs/Fields/AutoComplete/AutoComplete.d.ts +1 -2
  47. package/dist/cjs/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  48. package/dist/cjs/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
  49. package/dist/cjs/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
  50. package/dist/cjs/Fields/AutoComplete/types.d.ts +8 -8
  51. package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +3 -3
  52. package/dist/cjs/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
  53. package/dist/cjs/Fields/DateInput/DateInput.d.ts +2 -3
  54. package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  55. package/dist/cjs/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
  56. package/dist/cjs/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
  57. package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  58. package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
  59. package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
  60. package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
  61. package/dist/cjs/Fields/DatePicker/components/Calendar.d.ts +3 -3
  62. package/dist/cjs/Fields/DatePicker/components/Footer.d.ts +1 -1
  63. package/dist/cjs/Fields/DatePicker/components/FooterActions.d.ts +0 -1
  64. package/dist/cjs/Fields/DatePicker/components/NavBar.d.ts +1 -1
  65. package/dist/cjs/Fields/DatePicker/components/SidePanel.d.ts +1 -1
  66. package/dist/cjs/Fields/DatePicker/types.d.ts +2 -2
  67. package/dist/cjs/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
  68. package/dist/cjs/Fields/Dropzone/Dropzone.d.ts +2 -3
  69. package/dist/cjs/Fields/Field/FieldContext.d.ts +2 -3
  70. package/dist/cjs/Fields/Field/useField.d.ts +1 -1
  71. package/dist/cjs/Fields/FilePicker/FilePicker.d.ts +4 -5
  72. package/dist/cjs/Fields/Form/Form.d.ts +1 -1
  73. package/dist/cjs/Fields/Form/FormContext.d.ts +2 -3
  74. package/dist/cjs/Fields/Input/Input.d.ts +3 -3
  75. package/dist/cjs/Fields/Input/Input.tailwind.d.ts +1 -1
  76. package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +1 -1
  77. package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  78. package/dist/cjs/Fields/RadioGroup/RadioGroup.d.ts +5 -5
  79. package/dist/cjs/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
  80. package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +5 -5
  81. package/dist/cjs/Fields/Select/Select.d.ts +1 -1
  82. package/dist/cjs/Fields/Select/Select.tailwind.d.ts +1 -1
  83. package/dist/cjs/Fields/SelectableCard/SelectableCard.d.ts +2 -2
  84. package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
  85. package/dist/cjs/Fields/Switch/Switch.d.ts +7 -7
  86. package/dist/cjs/Fields/Switch/Switch.tailwind.d.ts +1 -1
  87. package/dist/cjs/Fields/TextArea/TextArea.d.ts +1 -1
  88. package/dist/cjs/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
  89. package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +3 -3
  90. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
  91. package/dist/cjs/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
  92. package/dist/cjs/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
  93. package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
  94. package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  95. package/dist/cjs/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  96. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.d.ts +7 -0
  97. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +11 -5
  98. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
  99. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
  100. package/dist/cjs/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
  101. package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
  102. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
  103. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.js +1 -3
  104. package/dist/cjs/Helpers/utilities/focusable.tailwind.d.ts +1 -1
  105. package/dist/cjs/Helpers/utilities/overlay.tailwind.d.ts +1 -1
  106. package/dist/cjs/Helpers/utilities/utilities.tailwind.d.ts +1 -1
  107. package/dist/cjs/Icons/AlgoliaRecommendIcon.d.ts +0 -1
  108. package/dist/cjs/Icons/AlgoliaSearchIcon.d.ts +0 -1
  109. package/dist/cjs/Icons/BulbIcon.d.ts +0 -1
  110. package/dist/cjs/Icons/ContextIcon.d.ts +0 -1
  111. package/dist/cjs/Icons/CrawlerIcon.d.ts +0 -1
  112. package/dist/cjs/Icons/DragHandleIcon.d.ts +0 -1
  113. package/dist/cjs/Icons/NeuralSearchIcon.d.ts +0 -1
  114. package/dist/cjs/Icons/NoFiltersIcon.d.ts +0 -1
  115. package/dist/cjs/Icons/PinIcon.d.ts +0 -1
  116. package/dist/cjs/Icons/QueryBreakdownIcon.d.ts +0 -1
  117. package/dist/cjs/Icons/RocketIcon.d.ts +0 -1
  118. package/dist/cjs/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
  119. package/dist/cjs/Icons/SettingsConsequencesIcon.d.ts +0 -1
  120. package/dist/cjs/Icons/TestingIcon.d.ts +0 -1
  121. package/dist/cjs/Icons/UnpinIcon.d.ts +0 -1
  122. package/dist/cjs/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
  123. package/dist/cjs/Icons/index.d.ts +2 -2
  124. package/dist/cjs/Illustrations/index.d.ts +7 -0
  125. package/dist/cjs/Illustrations/index.js +1254 -0
  126. package/dist/cjs/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  127. package/dist/cjs/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
  128. package/dist/cjs/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
  129. package/dist/cjs/Indicators/Avatars/types.d.ts +5 -5
  130. package/dist/cjs/Indicators/Badge/Badge.d.ts +4 -4
  131. package/dist/cjs/Indicators/Banners/Alert/Alert.d.ts +2 -2
  132. package/dist/cjs/Indicators/Banners/Promote/Promote.d.ts +2 -2
  133. package/dist/cjs/Indicators/EmptyState/EmptyState.js +35 -2
  134. package/dist/cjs/Indicators/EmptyState/types.d.ts +7 -6
  135. package/dist/cjs/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  136. package/dist/cjs/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
  137. package/dist/cjs/Indicators/Medallion/types.d.ts +2 -2
  138. package/dist/cjs/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  139. package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  140. package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  141. package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
  142. package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  143. package/dist/cjs/Indicators/Separator/Separator.tailwind.d.ts +1 -1
  144. package/dist/cjs/Indicators/Tag/Tag.d.ts +2 -2
  145. package/dist/cjs/Indicators/Tag/Tag.tailwind.d.ts +1 -1
  146. package/dist/cjs/Indicators/Toast/Toast.d.ts +2 -2
  147. package/dist/cjs/Indicators/Toast/Toast.tailwind.d.ts +1 -1
  148. package/dist/cjs/Indicators/Toast/Toasts.d.ts +1 -1
  149. package/dist/cjs/Indicators/Toast/types.d.ts +1 -1
  150. package/dist/cjs/Layout/Card/Card.d.ts +2 -2
  151. package/dist/cjs/Layout/Card/Card.tailwind.d.ts +1 -1
  152. package/dist/cjs/Layout/Card/components/CardHeader.d.ts +1 -1
  153. package/dist/cjs/Layout/Card/components/CardTitle.d.ts +2 -2
  154. package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  155. package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
  156. package/dist/cjs/Layout/FlexGrid/FlexGrid.d.ts +4 -4
  157. package/dist/cjs/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  158. package/dist/cjs/Layout/Insert/Insert.d.ts +1 -1
  159. package/dist/cjs/Layout/Sidebar/Sidebar.d.ts +1 -1
  160. package/dist/cjs/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
  161. package/dist/cjs/Layout/Sidebar/SidebarContext.d.ts +1 -2
  162. package/dist/cjs/Layout/Sidebar/SidebarHeader.d.ts +1 -1
  163. package/dist/cjs/Layout/Sidebar/SidebarHeading.d.ts +1 -1
  164. package/dist/cjs/Layout/Sidebar/SidebarLink.d.ts +1 -1
  165. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
  166. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
  167. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
  168. package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
  169. package/dist/cjs/Layout/Sidebar/SidebarNav.d.ts +2 -2
  170. package/dist/cjs/Layout/Sidebar/types.d.ts +3 -3
  171. package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +7 -7
  172. package/dist/cjs/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  173. package/dist/cjs/Layout/Tables/DataTable/types.d.ts +7 -7
  174. package/dist/cjs/Layout/Tables/Table/Table.d.ts +1 -1
  175. package/dist/cjs/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
  176. package/dist/cjs/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
  177. package/dist/cjs/Navigation/Link/BaseLink.d.ts +1 -1
  178. package/dist/cjs/Navigation/Link/Link.d.ts +4 -4
  179. package/dist/cjs/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
  180. package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
  181. package/dist/cjs/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
  182. package/dist/cjs/Navigation/Stepper/Step.d.ts +1 -1
  183. package/dist/cjs/Navigation/Stepper/Stepper.d.ts +3 -3
  184. package/dist/cjs/Navigation/Stepper/StepperContext.d.ts +1 -2
  185. package/dist/cjs/Navigation/Stepper/types.d.ts +1 -1
  186. package/dist/cjs/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
  187. package/dist/cjs/Navigation/Tabs/types.d.ts +1 -1
  188. package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +16 -17
  189. package/dist/cjs/Overlay/MenuButton/components/Content.d.ts +1 -2
  190. package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
  191. package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
  192. package/dist/cjs/Overlay/MenuButton/components/Divider.d.ts +0 -1
  193. package/dist/cjs/Overlay/MenuButton/components/Label.d.ts +1 -1
  194. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
  195. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
  196. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
  197. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
  198. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
  199. package/dist/cjs/Overlay/MenuButton/components/items/Item.d.ts +4 -5
  200. package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
  201. package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
  202. package/dist/cjs/Overlay/Modal/Modal.d.ts +4 -4
  203. package/dist/cjs/Overlay/Modal/Modal.tailwind.d.ts +1 -1
  204. package/dist/cjs/Overlay/Modal/components/ModalFooter.d.ts +1 -1
  205. package/dist/cjs/Overlay/Modal/components/ModalFooter.js +2 -7
  206. package/dist/cjs/Overlay/Modal/components/ModalSection.d.ts +1 -1
  207. package/dist/cjs/Overlay/Popover/types.d.ts +4 -4
  208. package/dist/cjs/Overlay/Tooltip/Tooltip.d.ts +1 -1
  209. package/dist/cjs/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
  210. package/dist/cjs/Satellite/SatelliteContext.d.ts +0 -1
  211. package/dist/cjs/Satellite/locale.d.ts +1 -1
  212. package/dist/cjs/Satellite/useCreatePortal.d.ts +1 -1
  213. package/dist/cjs/Typography/Typography.tailwind.d.ts +1 -1
  214. package/dist/cjs/index.d.ts +1 -0
  215. package/dist/cjs/index.js +12 -0
  216. package/dist/cjs/styles/base.tailwind.d.ts +1 -1
  217. package/dist/cjs/styles/brandColors.d.ts +6 -6
  218. package/dist/cjs/styles/colors.d.ts +11 -11
  219. package/dist/cjs/styles/helpers/satellitePrefixer.d.ts +1 -1
  220. package/dist/cjs/styles/tailwind.config.d.ts +1 -1
  221. package/dist/cjs/styles/tailwind.config.js +1 -1
  222. package/dist/cjs/styles/zIndexes.d.ts +8 -8
  223. package/dist/cjs/types.d.ts +11 -5
  224. package/dist/cjs/utils/NumberUnion.d.ts +3 -3
  225. package/dist/cjs/utils/genericChangeHandler.d.ts +2 -2
  226. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  227. package/dist/cjs/utils/isRenderedChild.d.ts +1 -1
  228. package/dist/cjs/utils/matchLocation.d.ts +1 -1
  229. package/dist/cjs/utils/parseUrl.d.ts +1 -1
  230. package/dist/cjs/utils/useLinkProps.d.ts +2 -2
  231. package/dist/cjs/utils/useTimeoutFn.d.ts +1 -1
  232. package/dist/cjs/utils/useTriggerInputChange.d.ts +1 -1
  233. package/dist/esm/Actions/Accordion/Accordion.d.ts +16 -8
  234. package/dist/esm/Actions/Accordion/Accordion.js +105 -58
  235. package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +170 -0
  236. package/dist/esm/Actions/Accordion/Accordion.styles.js +50 -0
  237. package/dist/esm/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
  238. package/dist/esm/Actions/Button/Button.d.ts +1 -2
  239. package/dist/esm/Actions/Button/Button.tailwind.d.ts +1 -1
  240. package/dist/esm/Actions/Button/PolymorphicButton.d.ts +2 -2
  241. package/dist/esm/Actions/Button/PolymorphicIconButton.d.ts +2 -3
  242. package/dist/esm/Actions/Button/types.d.ts +7 -7
  243. package/dist/esm/Actions/ButtonLink/ButtonLink.d.ts +2 -3
  244. package/dist/esm/Actions/IconButton/IconButton.d.ts +1 -2
  245. package/dist/esm/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
  246. package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
  247. package/dist/esm/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
  248. package/dist/esm/Actions/SegmentedControl/types.d.ts +1 -1
  249. package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +1 -1
  250. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
  251. package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
  252. package/dist/esm/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
  253. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
  254. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  255. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
  256. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.js +66 -0
  257. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
  258. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.js +15 -0
  259. package/dist/esm/Chat/ChatContextContainer/index.d.ts +1 -0
  260. package/dist/esm/Chat/ChatContextContainer/index.js +1 -0
  261. package/dist/esm/Chat/ChatContextContainer/theme.d.ts +57 -0
  262. package/dist/esm/Chat/ChatContextContainer/theme.js +67 -0
  263. package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +5 -54
  264. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  265. package/dist/esm/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
  266. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  267. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
  268. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  269. package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +5 -66
  270. package/dist/esm/Chat/ChatMessages/ChatMessages.js +0 -1
  271. package/dist/esm/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
  272. package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
  273. package/dist/esm/Chat/helpers.d.ts +28 -0
  274. package/dist/esm/Chat/helpers.js +60 -0
  275. package/dist/esm/Chat/index.d.ts +4 -1
  276. package/dist/esm/Chat/index.js +3 -1
  277. package/dist/esm/Chat/types.d.ts +22 -3
  278. package/dist/esm/Fields/AutoComplete/AutoComplete.d.ts +1 -2
  279. package/dist/esm/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  280. package/dist/esm/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
  281. package/dist/esm/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
  282. package/dist/esm/Fields/AutoComplete/types.d.ts +8 -8
  283. package/dist/esm/Fields/Checkbox/Checkbox.d.ts +3 -3
  284. package/dist/esm/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
  285. package/dist/esm/Fields/DateInput/DateInput.d.ts +2 -3
  286. package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  287. package/dist/esm/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
  288. package/dist/esm/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
  289. package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  290. package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
  291. package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
  292. package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
  293. package/dist/esm/Fields/DatePicker/components/Calendar.d.ts +3 -3
  294. package/dist/esm/Fields/DatePicker/components/Footer.d.ts +1 -1
  295. package/dist/esm/Fields/DatePicker/components/FooterActions.d.ts +0 -1
  296. package/dist/esm/Fields/DatePicker/components/NavBar.d.ts +1 -1
  297. package/dist/esm/Fields/DatePicker/components/SidePanel.d.ts +1 -1
  298. package/dist/esm/Fields/DatePicker/types.d.ts +2 -2
  299. package/dist/esm/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
  300. package/dist/esm/Fields/Dropzone/Dropzone.d.ts +2 -3
  301. package/dist/esm/Fields/Field/FieldContext.d.ts +2 -3
  302. package/dist/esm/Fields/Field/useField.d.ts +1 -1
  303. package/dist/esm/Fields/FilePicker/FilePicker.d.ts +4 -5
  304. package/dist/esm/Fields/Form/Form.d.ts +1 -1
  305. package/dist/esm/Fields/Form/FormContext.d.ts +2 -3
  306. package/dist/esm/Fields/Input/Input.d.ts +3 -3
  307. package/dist/esm/Fields/Input/Input.tailwind.d.ts +1 -1
  308. package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +1 -1
  309. package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  310. package/dist/esm/Fields/RadioGroup/RadioGroup.d.ts +5 -5
  311. package/dist/esm/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
  312. package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +5 -5
  313. package/dist/esm/Fields/Select/Select.d.ts +1 -1
  314. package/dist/esm/Fields/Select/Select.tailwind.d.ts +1 -1
  315. package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +2 -2
  316. package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
  317. package/dist/esm/Fields/Switch/Switch.d.ts +7 -7
  318. package/dist/esm/Fields/Switch/Switch.tailwind.d.ts +1 -1
  319. package/dist/esm/Fields/TextArea/TextArea.d.ts +1 -1
  320. package/dist/esm/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
  321. package/dist/esm/Fields/TextArea/TextArea.tailwind.js +3 -3
  322. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
  323. package/dist/esm/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
  324. package/dist/esm/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
  325. package/dist/esm/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
  326. package/dist/esm/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  327. package/dist/esm/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  328. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.d.ts +7 -0
  329. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +11 -5
  330. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
  331. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
  332. package/dist/esm/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
  333. package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
  334. package/dist/esm/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
  335. package/dist/esm/Helpers/UserContent/UserContent.tailwind.js +1 -3
  336. package/dist/esm/Helpers/utilities/focusable.tailwind.d.ts +1 -1
  337. package/dist/esm/Helpers/utilities/overlay.tailwind.d.ts +1 -1
  338. package/dist/esm/Helpers/utilities/utilities.tailwind.d.ts +1 -1
  339. package/dist/esm/Icons/AlgoliaRecommendIcon.d.ts +0 -1
  340. package/dist/esm/Icons/AlgoliaSearchIcon.d.ts +0 -1
  341. package/dist/esm/Icons/BulbIcon.d.ts +0 -1
  342. package/dist/esm/Icons/ContextIcon.d.ts +0 -1
  343. package/dist/esm/Icons/CrawlerIcon.d.ts +0 -1
  344. package/dist/esm/Icons/DragHandleIcon.d.ts +0 -1
  345. package/dist/esm/Icons/NeuralSearchIcon.d.ts +0 -1
  346. package/dist/esm/Icons/NoFiltersIcon.d.ts +0 -1
  347. package/dist/esm/Icons/PinIcon.d.ts +0 -1
  348. package/dist/esm/Icons/QueryBreakdownIcon.d.ts +0 -1
  349. package/dist/esm/Icons/RocketIcon.d.ts +0 -1
  350. package/dist/esm/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
  351. package/dist/esm/Icons/SettingsConsequencesIcon.d.ts +0 -1
  352. package/dist/esm/Icons/TestingIcon.d.ts +0 -1
  353. package/dist/esm/Icons/UnpinIcon.d.ts +0 -1
  354. package/dist/esm/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
  355. package/dist/esm/Icons/index.d.ts +2 -2
  356. package/dist/esm/Illustrations/index.d.ts +7 -0
  357. package/dist/esm/Illustrations/index.js +1248 -0
  358. package/dist/esm/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  359. package/dist/esm/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
  360. package/dist/esm/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
  361. package/dist/esm/Indicators/Avatars/types.d.ts +5 -5
  362. package/dist/esm/Indicators/Badge/Badge.d.ts +4 -4
  363. package/dist/esm/Indicators/Banners/Alert/Alert.d.ts +2 -2
  364. package/dist/esm/Indicators/Banners/Promote/Promote.d.ts +2 -2
  365. package/dist/esm/Indicators/EmptyState/EmptyState.js +35 -2
  366. package/dist/esm/Indicators/EmptyState/types.d.ts +7 -6
  367. package/dist/esm/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  368. package/dist/esm/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
  369. package/dist/esm/Indicators/Medallion/types.d.ts +2 -2
  370. package/dist/esm/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  371. package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
  372. package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  373. package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
  374. package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  375. package/dist/esm/Indicators/Separator/Separator.tailwind.d.ts +1 -1
  376. package/dist/esm/Indicators/Tag/Tag.d.ts +2 -2
  377. package/dist/esm/Indicators/Tag/Tag.tailwind.d.ts +1 -1
  378. package/dist/esm/Indicators/Toast/Toast.d.ts +2 -2
  379. package/dist/esm/Indicators/Toast/Toast.tailwind.d.ts +1 -1
  380. package/dist/esm/Indicators/Toast/Toasts.d.ts +1 -1
  381. package/dist/esm/Indicators/Toast/types.d.ts +1 -1
  382. package/dist/esm/Layout/Card/Card.d.ts +2 -2
  383. package/dist/esm/Layout/Card/Card.tailwind.d.ts +1 -1
  384. package/dist/esm/Layout/Card/components/CardHeader.d.ts +1 -1
  385. package/dist/esm/Layout/Card/components/CardTitle.d.ts +2 -2
  386. package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
  387. package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
  388. package/dist/esm/Layout/FlexGrid/FlexGrid.d.ts +4 -4
  389. package/dist/esm/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  390. package/dist/esm/Layout/Insert/Insert.d.ts +1 -1
  391. package/dist/esm/Layout/Sidebar/Sidebar.d.ts +1 -1
  392. package/dist/esm/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
  393. package/dist/esm/Layout/Sidebar/SidebarContext.d.ts +1 -2
  394. package/dist/esm/Layout/Sidebar/SidebarHeader.d.ts +1 -1
  395. package/dist/esm/Layout/Sidebar/SidebarHeading.d.ts +1 -1
  396. package/dist/esm/Layout/Sidebar/SidebarLink.d.ts +1 -1
  397. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
  398. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
  399. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
  400. package/dist/esm/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
  401. package/dist/esm/Layout/Sidebar/SidebarNav.d.ts +2 -2
  402. package/dist/esm/Layout/Sidebar/types.d.ts +3 -3
  403. package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +7 -7
  404. package/dist/esm/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  405. package/dist/esm/Layout/Tables/DataTable/types.d.ts +7 -7
  406. package/dist/esm/Layout/Tables/Table/Table.d.ts +1 -1
  407. package/dist/esm/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
  408. package/dist/esm/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
  409. package/dist/esm/Navigation/Link/BaseLink.d.ts +1 -1
  410. package/dist/esm/Navigation/Link/Link.d.ts +4 -4
  411. package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
  412. package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
  413. package/dist/esm/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
  414. package/dist/esm/Navigation/Stepper/Step.d.ts +1 -1
  415. package/dist/esm/Navigation/Stepper/Stepper.d.ts +3 -3
  416. package/dist/esm/Navigation/Stepper/StepperContext.d.ts +1 -2
  417. package/dist/esm/Navigation/Stepper/types.d.ts +1 -1
  418. package/dist/esm/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
  419. package/dist/esm/Navigation/Tabs/types.d.ts +1 -1
  420. package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +16 -17
  421. package/dist/esm/Overlay/MenuButton/components/Content.d.ts +1 -2
  422. package/dist/esm/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
  423. package/dist/esm/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
  424. package/dist/esm/Overlay/MenuButton/components/Divider.d.ts +0 -1
  425. package/dist/esm/Overlay/MenuButton/components/Label.d.ts +1 -1
  426. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
  427. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
  428. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
  429. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
  430. package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
  431. package/dist/esm/Overlay/MenuButton/components/items/Item.d.ts +4 -5
  432. package/dist/esm/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
  433. package/dist/esm/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
  434. package/dist/esm/Overlay/Modal/Modal.d.ts +4 -4
  435. package/dist/esm/Overlay/Modal/Modal.tailwind.d.ts +1 -1
  436. package/dist/esm/Overlay/Modal/components/ModalFooter.d.ts +1 -1
  437. package/dist/esm/Overlay/Modal/components/ModalFooter.js +2 -7
  438. package/dist/esm/Overlay/Modal/components/ModalSection.d.ts +1 -1
  439. package/dist/esm/Overlay/Popover/types.d.ts +4 -4
  440. package/dist/esm/Overlay/Tooltip/Tooltip.d.ts +1 -1
  441. package/dist/esm/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
  442. package/dist/esm/Satellite/SatelliteContext.d.ts +0 -1
  443. package/dist/esm/Satellite/locale.d.ts +1 -1
  444. package/dist/esm/Satellite/useCreatePortal.d.ts +1 -1
  445. package/dist/esm/Typography/Typography.tailwind.d.ts +1 -1
  446. package/dist/esm/index.d.ts +1 -0
  447. package/dist/esm/index.js +1 -0
  448. package/dist/esm/styles/base.tailwind.d.ts +1 -1
  449. package/dist/esm/styles/brandColors.d.ts +6 -6
  450. package/dist/esm/styles/colors.d.ts +11 -11
  451. package/dist/esm/styles/helpers/satellitePrefixer.d.ts +1 -1
  452. package/dist/esm/styles/tailwind.config.d.ts +1 -1
  453. package/dist/esm/styles/tailwind.config.js +1 -1
  454. package/dist/esm/styles/zIndexes.d.ts +8 -8
  455. package/dist/esm/types.d.ts +11 -5
  456. package/dist/esm/utils/NumberUnion.d.ts +3 -3
  457. package/dist/esm/utils/genericChangeHandler.d.ts +2 -2
  458. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  459. package/dist/esm/utils/isRenderedChild.d.ts +1 -1
  460. package/dist/esm/utils/matchLocation.d.ts +1 -1
  461. package/dist/esm/utils/parseUrl.d.ts +1 -1
  462. package/dist/esm/utils/useLinkProps.d.ts +2 -2
  463. package/dist/esm/utils/useTimeoutFn.d.ts +1 -1
  464. package/dist/esm/utils/useTriggerInputChange.d.ts +1 -1
  465. package/dist/satellite.min.css +1 -1
  466. package/package.json +10 -10
@@ -1,21 +1,23 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
5
- var _excluded = ["children", "className"],
6
- _excluded2 = ["onChange", "multiple"],
7
- _excluded3 = ["onChange", "multiple", "collapsible"];
3
+ var _excluded = ["children", "variant"],
4
+ _excluded2 = ["children", "className"],
5
+ _excluded3 = ["onChange", "multiple"],
6
+ _excluded4 = ["onChange", "multiple", "collapsible"];
8
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
9
  import * as RadixAccordion from "@radix-ui/react-accordion";
11
10
  import cx from "clsx";
12
- import { forwardRef } from "react";
11
+ import { createContext, forwardRef, useContext } from "react";
12
+ import { accordionStyles } from "./Accordion.styles";
13
13
  import { ChevronDownIcon } from "./../../Icons";
14
- import stl from "./../../styles/helpers/satellitePrefixer";
15
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
- var ICON_SIZE = 16;
17
- var TRIGGER_ICON_SIZE = 20;
18
-
15
+ var AccordionVariantContext = /*#__PURE__*/createContext({
16
+ variant: "normal"
17
+ });
18
+ var useAccordionVariant = function useAccordionVariant() {
19
+ return useContext(AccordionVariantContext);
20
+ };
19
21
  /**
20
22
  * The `Accordion` component is a compact section for revealing and hiding content, ideal for keeping interfaces clean.
21
23
  *
@@ -23,15 +25,36 @@ var TRIGGER_ICON_SIZE = 20;
23
25
  */
24
26
  export var Accordion = function Accordion(_ref) {
25
27
  var children = _ref.children,
26
- className = _ref.className,
28
+ _ref$variant = _ref.variant,
29
+ variant = _ref$variant === void 0 ? "normal" : _ref$variant,
27
30
  props = _objectWithoutProperties(_ref, _excluded);
31
+ return /*#__PURE__*/_jsx(AccordionVariantContext.Provider, {
32
+ value: {
33
+ variant: variant
34
+ },
35
+ children: /*#__PURE__*/_jsx(AccordionRootInternal, _objectSpread(_objectSpread({}, props), {}, {
36
+ children: children
37
+ }))
38
+ });
39
+ };
40
+ var AccordionRootInternal = function AccordionRootInternal(_ref2) {
41
+ var children = _ref2.children,
42
+ className = _ref2.className,
43
+ props = _objectWithoutProperties(_ref2, _excluded2);
44
+ var _useAccordionVariant = useAccordionVariant(),
45
+ variant = _useAccordionVariant.variant;
46
+ var styles = accordionStyles({
47
+ variant: variant
48
+ });
28
49
  var sharedProps = {
29
- className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"]))), className)
50
+ className: styles.base({
51
+ className: className
52
+ })
30
53
  };
31
54
  if (props.multiple) {
32
55
  var _onChange = props.onChange,
33
56
  _multiple = props.multiple,
34
- _rest = _objectWithoutProperties(props, _excluded2);
57
+ _rest = _objectWithoutProperties(props, _excluded3);
35
58
  return /*#__PURE__*/_jsx(RadixAccordion.Root, _objectSpread(_objectSpread(_objectSpread({}, _rest), sharedProps), {}, {
36
59
  type: "multiple",
37
60
  onValueChange: _onChange,
@@ -42,7 +65,7 @@ export var Accordion = function Accordion(_ref) {
42
65
  multiple = props.multiple,
43
66
  _props$collapsible = props.collapsible,
44
67
  collapsible = _props$collapsible === void 0 ? true : _props$collapsible,
45
- rest = _objectWithoutProperties(props, _excluded3);
68
+ rest = _objectWithoutProperties(props, _excluded4);
46
69
  return /*#__PURE__*/_jsx(RadixAccordion.Root, _objectSpread(_objectSpread(_objectSpread({}, rest), sharedProps), {}, {
47
70
  type: "single",
48
71
  onValueChange: onChange,
@@ -51,71 +74,88 @@ export var Accordion = function Accordion(_ref) {
51
74
  }));
52
75
  };
53
76
  Accordion.displayName = "Accordion";
54
- var AccordionItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
55
- var value = _ref2.value,
56
- disabled = _ref2.disabled,
57
- children = _ref2.children,
58
- className = _ref2.className;
77
+ var AccordionItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
78
+ var value = _ref3.value,
79
+ disabled = _ref3.disabled,
80
+ children = _ref3.children,
81
+ className = _ref3.className;
82
+ var _useAccordionVariant2 = useAccordionVariant(),
83
+ variant = _useAccordionVariant2.variant;
84
+ var styles = accordionStyles({
85
+ variant: variant
86
+ });
59
87
  return /*#__PURE__*/_jsx(RadixAccordion.Item, {
60
88
  value: value,
61
89
  disabled: disabled,
62
90
  ref: ref,
63
- className: cx(stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["group/accordion-item flex flex-col"]))), className),
91
+ className: styles.item({
92
+ className: className
93
+ }),
64
94
  children: children
65
95
  });
66
96
  });
67
97
  AccordionItem.displayName = "AccordionItem";
68
- var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
69
- var children = _ref3.children,
70
- description = _ref3.description,
71
- Icon = _ref3.icon,
72
- _ref3$iconClassName = _ref3.iconClassName,
73
- iconClassName = _ref3$iconClassName === void 0 ? stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["typo-subdued"]))) : _ref3$iconClassName,
74
- _ref3$iconBgClassName = _ref3.iconBgClassName,
75
- iconBgClassName = _ref3$iconBgClassName === void 0 ? stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-grey-100"]))) : _ref3$iconBgClassName,
76
- meta = _ref3.meta,
77
- triggerIcon = _ref3.triggerIcon,
78
- triggerClassName = _ref3.triggerClassName,
79
- className = _ref3.className,
80
- titleWrapperClassName = _ref3.titleWrapperClassName,
81
- titleClassName = _ref3.titleClassName;
98
+ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref4, ref) {
99
+ var children = _ref4.children,
100
+ description = _ref4.description,
101
+ Icon = _ref4.icon,
102
+ iconClassName = _ref4.iconClassName,
103
+ iconBgClassName = _ref4.iconBgClassName,
104
+ meta = _ref4.meta,
105
+ triggerIcon = _ref4.triggerIcon,
106
+ triggerClassName = _ref4.triggerClassName,
107
+ className = _ref4.className,
108
+ titleWrapperClassName = _ref4.titleWrapperClassName,
109
+ titleClassName = _ref4.titleClassName;
110
+ var _useAccordionVariant3 = useAccordionVariant(),
111
+ variant = _useAccordionVariant3.variant;
112
+ var styles = accordionStyles({
113
+ variant: variant
114
+ });
115
+ var isCompact = variant === "compact";
82
116
  var TriggerIcon = triggerIcon || ChevronDownIcon;
83
117
  return /*#__PURE__*/_jsx(RadixAccordion.Header, {
84
- className: className,
118
+ className: styles.header({
119
+ className: className
120
+ }),
85
121
  children: /*#__PURE__*/_jsxs(RadixAccordion.Trigger, {
86
122
  ref: ref,
87
- className: cx(stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["group/accordion-trigger flex gap-x-3 items-center w-full justify-between px-3.5 py-2.5 group-first/accordion-item:rounded-t group-last/accordion-item:rounded-b bg-white border-2 border-transparent focus-visible:outline-none focus-visible:border-accent-600 enabled:hover:bg-grey-50 motion-safe:transition-colors"]))), triggerClassName),
123
+ className: styles.trigger({
124
+ className: triggerClassName
125
+ }),
88
126
  children: [/*#__PURE__*/_jsxs("div", {
89
- className: cx(stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center gap-x-3 grow"]))), titleWrapperClassName),
127
+ className: styles.titleWrapper({
128
+ className: titleWrapperClassName
129
+ }),
90
130
  children: [Icon && /*#__PURE__*/_jsx("span", {
91
- className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["rounded-full w-8 h-8 flex items-center justify-center shrink-0"]))), iconBgClassName),
131
+ className: styles.iconBg({
132
+ className: iconBgClassName
133
+ }),
92
134
  "aria-hidden": true,
93
135
  children: /*#__PURE__*/_jsx(Icon, {
94
- className: cx(iconClassName, stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["group-disabled/accordion-trigger:text-grey-300"])))),
95
- width: ICON_SIZE,
96
- height: ICON_SIZE
136
+ className: styles.icon({
137
+ className: iconClassName
138
+ })
97
139
  })
98
140
  }), /*#__PURE__*/_jsxs("div", {
99
- className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
141
+ className: styles.titleCol(),
100
142
  children: [/*#__PURE__*/_jsx("div", {
101
- className: cx(stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))), titleClassName),
143
+ className: styles.title({
144
+ className: titleClassName
145
+ }),
102
146
  children: children
103
- }), typeof description !== "undefined" && /*#__PURE__*/_jsx("div", {
104
- className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["typo-display-body typo-subdued line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
147
+ }), !isCompact && typeof description !== "undefined" && /*#__PURE__*/_jsx("div", {
148
+ className: styles.description(),
105
149
  children: description
106
150
  })]
107
151
  })]
108
152
  }), /*#__PURE__*/_jsxs("div", {
109
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
110
- children: [typeof meta !== "undefined" && /*#__PURE__*/_jsx("div", {
111
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
153
+ className: styles.metaWrapper(),
154
+ children: [typeof meta !== "undefined" && !isCompact && /*#__PURE__*/_jsx("div", {
155
+ className: styles.meta(),
112
156
  children: meta
113
157
  }), /*#__PURE__*/_jsx(TriggerIcon, {
114
- className: cx(stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["shrink-0 typo-subdued group-disabled/accordion-trigger:text-grey-300"]))),
115
- // Don't rotate the trigger icon if it's a custom one.
116
- !triggerIcon && stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([" group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"])))),
117
- width: TRIGGER_ICON_SIZE,
118
- height: TRIGGER_ICON_SIZE,
158
+ className: cx(styles.triggerIcon(), !triggerIcon && styles.triggerIconChevron()),
119
159
  "aria-hidden": true
120
160
  })]
121
161
  })]
@@ -123,14 +163,21 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function (_ref3, ref) {
123
163
  });
124
164
  });
125
165
  AccordionHeader.displayName = "AccordionHeader";
126
- var AccordionContent = /*#__PURE__*/forwardRef(function (_ref4, ref) {
127
- var children = _ref4.children,
128
- className = _ref4.className;
166
+ var AccordionContent = /*#__PURE__*/forwardRef(function (_ref5, ref) {
167
+ var children = _ref5.children,
168
+ className = _ref5.className;
169
+ var _useAccordionVariant4 = useAccordionVariant(),
170
+ variant = _useAccordionVariant4.variant;
171
+ var styles = accordionStyles({
172
+ variant: variant
173
+ });
129
174
  return /*#__PURE__*/_jsx(RadixAccordion.Content, {
130
175
  ref: ref,
131
- className: cx(stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["typo-display-body typo-subdued overflow-hidden accordion-content"]))), className),
176
+ className: styles.content({
177
+ className: className
178
+ }),
132
179
  children: /*#__PURE__*/_jsx("div", {
133
- className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"]))),
180
+ className: styles.contentInner(),
134
181
  children: children
135
182
  })
136
183
  });
@@ -0,0 +1,170 @@
1
+ export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ normal: {
4
+ trigger: string;
5
+ titleWrapper: string;
6
+ iconBg: string;
7
+ triggerIcon: string;
8
+ contentInner: string;
9
+ };
10
+ compact: {
11
+ trigger: string;
12
+ titleWrapper: string;
13
+ iconBg: string;
14
+ title: string;
15
+ description: string;
16
+ metaWrapper: string;
17
+ meta: string;
18
+ triggerIcon: string;
19
+ content: string;
20
+ contentInner: string;
21
+ };
22
+ };
23
+ }, {
24
+ base: string;
25
+ item: string;
26
+ header: string;
27
+ trigger: string;
28
+ titleWrapper: string;
29
+ iconBg: string;
30
+ icon: string;
31
+ titleCol: string;
32
+ title: string;
33
+ description: string;
34
+ metaWrapper: string;
35
+ meta: string;
36
+ triggerIcon: string;
37
+ triggerIconChevron: string;
38
+ content: string;
39
+ contentInner: string;
40
+ }, undefined, {
41
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
42
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
43
+ } | undefined;
44
+ } & import("tailwind-variants/dist/config").TWMConfig & {
45
+ twMergeConfig: {
46
+ prefix: string;
47
+ };
48
+ }, {
49
+ variant: {
50
+ normal: {
51
+ trigger: string;
52
+ titleWrapper: string;
53
+ iconBg: string;
54
+ triggerIcon: string;
55
+ contentInner: string;
56
+ };
57
+ compact: {
58
+ trigger: string;
59
+ titleWrapper: string;
60
+ iconBg: string;
61
+ title: string;
62
+ description: string;
63
+ metaWrapper: string;
64
+ meta: string;
65
+ triggerIcon: string;
66
+ content: string;
67
+ contentInner: string;
68
+ };
69
+ };
70
+ }, {
71
+ base: string;
72
+ item: string;
73
+ header: string;
74
+ trigger: string;
75
+ titleWrapper: string;
76
+ iconBg: string;
77
+ icon: string;
78
+ titleCol: string;
79
+ title: string;
80
+ description: string;
81
+ metaWrapper: string;
82
+ meta: string;
83
+ triggerIcon: string;
84
+ triggerIconChevron: string;
85
+ content: string;
86
+ contentInner: string;
87
+ }, import("tailwind-variants").TVReturnType<{
88
+ variant: {
89
+ normal: {
90
+ trigger: string;
91
+ titleWrapper: string;
92
+ iconBg: string;
93
+ triggerIcon: string;
94
+ contentInner: string;
95
+ };
96
+ compact: {
97
+ trigger: string;
98
+ titleWrapper: string;
99
+ iconBg: string;
100
+ title: string;
101
+ description: string;
102
+ metaWrapper: string;
103
+ meta: string;
104
+ triggerIcon: string;
105
+ content: string;
106
+ contentInner: string;
107
+ };
108
+ };
109
+ }, {
110
+ base: string;
111
+ item: string;
112
+ header: string;
113
+ trigger: string;
114
+ titleWrapper: string;
115
+ iconBg: string;
116
+ icon: string;
117
+ titleCol: string;
118
+ title: string;
119
+ description: string;
120
+ metaWrapper: string;
121
+ meta: string;
122
+ triggerIcon: string;
123
+ triggerIconChevron: string;
124
+ content: string;
125
+ contentInner: string;
126
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
127
+ variant: {
128
+ normal: {
129
+ trigger: string;
130
+ titleWrapper: string;
131
+ iconBg: string;
132
+ triggerIcon: string;
133
+ contentInner: string;
134
+ };
135
+ compact: {
136
+ trigger: string;
137
+ titleWrapper: string;
138
+ iconBg: string;
139
+ title: string;
140
+ description: string;
141
+ metaWrapper: string;
142
+ meta: string;
143
+ triggerIcon: string;
144
+ content: string;
145
+ contentInner: string;
146
+ };
147
+ };
148
+ }, {
149
+ variant: {
150
+ normal: {
151
+ trigger: string;
152
+ titleWrapper: string;
153
+ iconBg: string;
154
+ triggerIcon: string;
155
+ contentInner: string;
156
+ };
157
+ compact: {
158
+ trigger: string;
159
+ titleWrapper: string;
160
+ iconBg: string;
161
+ title: string;
162
+ description: string;
163
+ metaWrapper: string;
164
+ meta: string;
165
+ triggerIcon: string;
166
+ content: string;
167
+ contentInner: string;
168
+ };
169
+ };
170
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,50 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31;
3
+ import stl from "./../../styles/helpers/satellitePrefixer";
4
+ import { tv } from "./../../styles/helpers/tv";
5
+ export var accordionStyles = tv({
6
+ slots: {
7
+ base: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"]))),
8
+ item: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["group/accordion-item flex flex-col"]))),
9
+ header: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""]))),
10
+ trigger: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["group/accordion-trigger flex items-center justify-between"]))),
11
+ titleWrapper: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex items-center grow"]))),
12
+ iconBg: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center justify-center shrink-0"]))),
13
+ icon: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["size-4 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
14
+ titleCol: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
15
+ title: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
16
+ description: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-body text-grey-600 line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
17
+ metaWrapper: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
18
+ meta: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
19
+ triggerIcon: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["shrink-0 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
20
+ triggerIconChevron: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"]))),
21
+ content: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["typo-display-body text-grey-600 overflow-hidden accordion-content"]))),
22
+ contentInner: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([""])))
23
+ },
24
+ variants: {
25
+ variant: {
26
+ normal: {
27
+ trigger: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["w-full gap-x-3 px-3.5 py-2.5 group-first/accordion-item:rounded-t group-last/accordion-item:rounded-b bg-white border-2 border-transparent focus-visible:outline-none focus-visible:border-accent-600 enabled:hover:bg-grey-50 motion-safe:transition-colors"]))),
28
+ titleWrapper: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["gap-x-3"]))),
29
+ iconBg: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["rounded-full w-8 h-8 bg-grey-100"]))),
30
+ triggerIcon: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["size-5"]))),
31
+ contentInner: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"])))
32
+ },
33
+ compact: {
34
+ trigger: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["min-h-0 gap-x-2 bg-transparent border-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-600"]))),
35
+ titleWrapper: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["gap-x-1"]))),
36
+ iconBg: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["h-6 bg-transparent"]))),
37
+ title: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["typo-display-body"]))),
38
+ description: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["hidden"]))),
39
+ metaWrapper: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([""]))),
40
+ meta: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["hidden"]))),
41
+ triggerIcon: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["size-4"]))),
42
+ content: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["py-0"]))),
43
+ contentInner: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["py-1"])))
44
+ }
45
+ }
46
+ },
47
+ defaultVariants: {
48
+ variant: "normal"
49
+ }
50
+ });
@@ -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
  */