@box/blueprint-web 8.5.3 → 8.6.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 (528) hide show
  1. package/lib-esm/accordion/accordion.d.ts +19 -19
  2. package/lib-esm/accordion/accordion.js +11 -11
  3. package/lib-esm/accordion/index.d.ts +2 -2
  4. package/lib-esm/accordion/types.d.ts +48 -49
  5. package/lib-esm/actionable-inline-notice/actionable-inline-notice.d.ts +2 -3
  6. package/lib-esm/actionable-inline-notice/index.d.ts +17 -18
  7. package/lib-esm/actionable-inline-notice/types.d.ts +21 -21
  8. package/lib-esm/avatar/avatar.d.ts +29 -30
  9. package/lib-esm/avatar/consts.d.ts +6 -6
  10. package/lib-esm/avatar/index.d.ts +2 -2
  11. package/lib-esm/avatar/types.d.ts +36 -36
  12. package/lib-esm/badge/base-badge.d.ts +9 -10
  13. package/lib-esm/badge/icon-badge.d.ts +7 -7
  14. package/lib-esm/badge/index.d.ts +3 -3
  15. package/lib-esm/badge/numeric-badge.d.ts +11 -11
  16. package/lib-esm/badge/status-badge.d.ts +7 -7
  17. package/lib-esm/badge/types.d.ts +15 -15
  18. package/lib-esm/badge/utils/useSingleChildCheck.d.ts +2 -2
  19. package/lib-esm/branding-styles/branding-styles.d.ts +2 -2
  20. package/lib-esm/branding-styles/index.d.ts +3 -3
  21. package/lib-esm/branding-styles/types.d.ts +4 -4
  22. package/lib-esm/branding-styles/useCustomBranding.d.ts +1 -1
  23. package/lib-esm/branding-styles/utils/createTheme.d.ts +69 -69
  24. package/lib-esm/branding-styles/utils/theme.d.ts +41 -41
  25. package/lib-esm/branding-styles/utils/variables.d.ts +117 -117
  26. package/lib-esm/button/button.d.ts +7 -8
  27. package/lib-esm/button/index.d.ts +2 -2
  28. package/lib-esm/button/types.d.ts +8 -8
  29. package/lib-esm/button-wrapper/button-wrapper.d.ts +7 -7
  30. package/lib-esm/button-wrapper/index.d.ts +1 -1
  31. package/lib-esm/card/card.d.ts +5 -6
  32. package/lib-esm/card/card.js +2 -2
  33. package/lib-esm/card/index.d.ts +2 -2
  34. package/lib-esm/card/types.d.ts +10 -10
  35. package/lib-esm/card-tooltip/card-tooltip.d.ts +12 -12
  36. package/lib-esm/card-tooltip/card-tooltip.js +9 -9
  37. package/lib-esm/card-tooltip/index.d.ts +2 -2
  38. package/lib-esm/card-tooltip/types.d.ts +30 -30
  39. package/lib-esm/checkbox/checkbox-item.d.ts +4 -5
  40. package/lib-esm/checkbox/checkbox-item.js +1 -1
  41. package/lib-esm/checkbox/index.d.ts +6 -7
  42. package/lib-esm/checkbox/types.d.ts +31 -31
  43. package/lib-esm/collapsible/collapsible-section.d.ts +9 -10
  44. package/lib-esm/collapsible/index.d.ts +2 -2
  45. package/lib-esm/collapsible/types.d.ts +11 -12
  46. package/lib-esm/combobox/chips-group.d.ts +2 -2
  47. package/lib-esm/combobox/chips-group.types.d.ts +5 -5
  48. package/lib-esm/combobox/combobox.d.ts +14 -14
  49. package/lib-esm/combobox/combobox.js +4 -4
  50. package/lib-esm/combobox/index.d.ts +2 -2
  51. package/lib-esm/combobox/types.d.ts +240 -241
  52. package/lib-esm/combobox-group/combobox-group-combobox.d.ts +2 -3
  53. package/lib-esm/combobox-group/combobox-group-context.d.ts +24 -24
  54. package/lib-esm/combobox-group/combobox-group-select.d.ts +2 -3
  55. package/lib-esm/combobox-group/combobox-group.d.ts +6 -7
  56. package/lib-esm/combobox-group/index.d.ts +2 -2
  57. package/lib-esm/combobox-group/types.d.ts +21 -22
  58. package/lib-esm/content-card/content-card-body.d.ts +3 -4
  59. package/lib-esm/content-card/content-card-footer.d.ts +2 -3
  60. package/lib-esm/content-card/content-card-image.d.ts +2 -3
  61. package/lib-esm/content-card/content-card-title.d.ts +3 -4
  62. package/lib-esm/content-card/content-card.d.ts +10 -11
  63. package/lib-esm/content-card/index.d.ts +2 -2
  64. package/lib-esm/content-card/types.d.ts +27 -28
  65. package/lib-esm/content-field/content-field.d.ts +3 -4
  66. package/lib-esm/content-field/index.d.ts +2 -2
  67. package/lib-esm/content-field/messages.d.ts +7 -7
  68. package/lib-esm/content-field/types.d.ts +35 -35
  69. package/lib-esm/data-table/cell/sticky-cell.d.ts +6 -6
  70. package/lib-esm/data-table/data-table-wrapper.d.ts +5 -5
  71. package/lib-esm/data-table/data-table.d.ts +2 -3
  72. package/lib-esm/data-table/index.d.ts +5 -6
  73. package/lib-esm/date-picker/date-picker.d.ts +2 -3
  74. package/lib-esm/date-picker/index.d.ts +2 -2
  75. package/lib-esm/date-picker/types.d.ts +35 -36
  76. package/lib-esm/divider/divider.d.ts +2 -3
  77. package/lib-esm/divider/index.d.ts +1 -1
  78. package/lib-esm/empty-state/empty-state.d.ts +23 -24
  79. package/lib-esm/empty-state/empty-state.js +8 -8
  80. package/lib-esm/empty-state/index.d.ts +2 -2
  81. package/lib-esm/empty-state/types.d.ts +19 -19
  82. package/lib-esm/ghost/ghost.d.ts +26 -27
  83. package/lib-esm/ghost/ghost.js +9 -9
  84. package/lib-esm/ghost/index.d.ts +1 -1
  85. package/lib-esm/grid-list-item/grid-list.d.ts +2 -3
  86. package/lib-esm/grid-list-item/index.d.ts +68 -69
  87. package/lib-esm/grid-list-item/index.js +50 -50
  88. package/lib-esm/grid-list-item/types.d.ts +10 -10
  89. package/lib-esm/guided-tooltip/guided-tooltip-body.d.ts +9 -10
  90. package/lib-esm/guided-tooltip/guided-tooltip-body.js +4 -4
  91. package/lib-esm/guided-tooltip/guided-tooltip-footer.d.ts +27 -28
  92. package/lib-esm/guided-tooltip/guided-tooltip-footer.js +9 -9
  93. package/lib-esm/guided-tooltip/guided-tooltip-icon.d.ts +5 -5
  94. package/lib-esm/guided-tooltip/guided-tooltip-icon.js +2 -2
  95. package/lib-esm/guided-tooltip/guided-tooltip-illustration.d.ts +5 -5
  96. package/lib-esm/guided-tooltip/guided-tooltip-illustration.js +2 -2
  97. package/lib-esm/guided-tooltip/guided-tooltip-title.d.ts +5 -5
  98. package/lib-esm/guided-tooltip/guided-tooltip-title.js +2 -2
  99. package/lib-esm/guided-tooltip/guided-tooltip.d.ts +26 -27
  100. package/lib-esm/guided-tooltip/guided-tooltip.js +11 -11
  101. package/lib-esm/guided-tooltip/index.d.ts +3 -3
  102. package/lib-esm/guided-tooltip/types.d.ts +102 -102
  103. package/lib-esm/guided-tooltip/utils/guided-tooltip-context.d.ts +10 -11
  104. package/lib-esm/icon-dual-state-button/icon-dual-state-button.d.ts +2 -3
  105. package/lib-esm/icon-dual-state-button/index.d.ts +2 -2
  106. package/lib-esm/icon-dual-state-button/types.d.ts +41 -41
  107. package/lib-esm/icon-toggle-button/icon-toggle-button.d.ts +3 -4
  108. package/lib-esm/icon-toggle-button/index.d.ts +2 -2
  109. package/lib-esm/icon-toggle-button/types.d.ts +28 -28
  110. package/lib-esm/index.css +10 -2
  111. package/lib-esm/index.d.ts +76 -76
  112. package/lib-esm/inline-notice/inline-notice.d.ts +17 -17
  113. package/lib-esm/inline-notice/inline-notice.js +2 -2
  114. package/lib-esm/inline-table/index.d.ts +2 -2
  115. package/lib-esm/inline-table/inline-table.d.ts +10 -10
  116. package/lib-esm/inline-table/types.d.ts +13 -14
  117. package/lib-esm/input-chip/index.d.ts +2 -2
  118. package/lib-esm/input-chip/input-chip.d.ts +3 -3
  119. package/lib-esm/input-chip/types.d.ts +25 -25
  120. package/lib-esm/large-list-item/index.d.ts +81 -82
  121. package/lib-esm/large-list-item/index.js +57 -57
  122. package/lib-esm/large-list-item/large-list-item-description.d.ts +3 -4
  123. package/lib-esm/large-list-item/large-list-item-snippet.d.ts +2 -3
  124. package/lib-esm/large-list-item/large-list.d.ts +2 -3
  125. package/lib-esm/large-list-item/types.d.ts +15 -15
  126. package/lib-esm/list-item/cell/action-cell.d.ts +13 -13
  127. package/lib-esm/list-item/cell/action-cell.js +5 -5
  128. package/lib-esm/list-item/cell/cell.d.ts +13 -14
  129. package/lib-esm/list-item/cell/cell.js +3 -3
  130. package/lib-esm/list-item/drop-indicator.d.ts +2 -3
  131. package/lib-esm/list-item/index.d.ts +22 -25
  132. package/lib-esm/list-item/list-item.d.ts +22 -25
  133. package/lib-esm/list-item/row.d.ts +12 -12
  134. package/lib-esm/list-item/row.js +3 -3
  135. package/lib-esm/list-item/table-body.d.ts +14 -16
  136. package/lib-esm/list-item/table-body.js +3 -3
  137. package/lib-esm/list-item/table-column.d.ts +16 -16
  138. package/lib-esm/list-item/table-column.js +3 -3
  139. package/lib-esm/list-item/table-header.d.ts +12 -12
  140. package/lib-esm/list-item/table-header.js +3 -3
  141. package/lib-esm/list-item/table.d.ts +7 -8
  142. package/lib-esm/list-item/table.js +3 -3
  143. package/lib-esm/loading-indicator/loading-indicator.d.ts +17 -17
  144. package/lib-esm/modal/index.d.ts +2 -2
  145. package/lib-esm/modal/modal-body.d.ts +5 -6
  146. package/lib-esm/modal/modal-body.js +2 -2
  147. package/lib-esm/modal/modal-close.d.ts +5 -6
  148. package/lib-esm/modal/modal-close.js +2 -2
  149. package/lib-esm/modal/modal-content.d.ts +7 -8
  150. package/lib-esm/modal/modal-content.js +2 -2
  151. package/lib-esm/modal/modal-footer.d.ts +21 -22
  152. package/lib-esm/modal/modal-footer.js +3 -3
  153. package/lib-esm/modal/modal-header.d.ts +5 -6
  154. package/lib-esm/modal/modal-header.js +2 -2
  155. package/lib-esm/modal/modal-scrollable-container.d.ts +8 -9
  156. package/lib-esm/modal/modal-scrollable-container.js +3 -3
  157. package/lib-esm/modal/modal-title.d.ts +5 -6
  158. package/lib-esm/modal/modal-title.js +2 -2
  159. package/lib-esm/modal/modal-trigger.d.ts +5 -6
  160. package/lib-esm/modal/modal-trigger.js +2 -2
  161. package/lib-esm/modal/modal.d.ts +53 -54
  162. package/lib-esm/modal/modal.js +22 -22
  163. package/lib-esm/modal/types.d.ts +55 -55
  164. package/lib-esm/navigation-menu/index.d.ts +15 -16
  165. package/lib-esm/navigation-menu/navigation-menu-content.d.ts +6 -7
  166. package/lib-esm/navigation-menu/navigation-menu-content.js +2 -2
  167. package/lib-esm/navigation-menu/navigation-menu-item.d.ts +13 -13
  168. package/lib-esm/navigation-menu/navigation-menu-item.js +8 -8
  169. package/lib-esm/navigation-menu/navigation-menu-link.d.ts +6 -6
  170. package/lib-esm/navigation-menu/navigation-menu-link.js +2 -2
  171. package/lib-esm/navigation-menu/navigation-menu-root.d.ts +9 -9
  172. package/lib-esm/navigation-menu/navigation-menu-root.js +2 -2
  173. package/lib-esm/navigation-menu/navigation-menu-separator.d.ts +1 -2
  174. package/lib-esm/navigation-menu/navigation-menu-trigger.d.ts +6 -7
  175. package/lib-esm/navigation-menu/navigation-menu-trigger.js +2 -2
  176. package/lib-esm/page/index.d.ts +16 -17
  177. package/lib-esm/page/page-content.d.ts +2 -3
  178. package/lib-esm/page/page-context.d.ts +27 -27
  179. package/lib-esm/page/page-global-header-search-container.d.ts +2 -2
  180. package/lib-esm/page/page-global-header-side-content-container.d.ts +2 -2
  181. package/lib-esm/page/page-global-header.d.ts +12 -13
  182. package/lib-esm/page/page-navigation.d.ts +2 -3
  183. package/lib-esm/page/page-root.d.ts +2 -3
  184. package/lib-esm/page/types.d.ts +23 -23
  185. package/lib-esm/page-section/index.d.ts +6 -7
  186. package/lib-esm/page-section/page-section-container.d.ts +1 -2
  187. package/lib-esm/page-section/page-section-content.d.ts +1 -2
  188. package/lib-esm/page-section/page-section-divider.d.ts +1 -2
  189. package/lib-esm/page-section/page-section-header.d.ts +1 -2
  190. package/lib-esm/page-section/page-section.d.ts +1 -2
  191. package/lib-esm/password-input/index.d.ts +2 -2
  192. package/lib-esm/password-input/password-input.d.ts +9 -10
  193. package/lib-esm/password-input/types.d.ts +16 -16
  194. package/lib-esm/primitives/base-button/base-button-context.d.ts +3 -4
  195. package/lib-esm/primitives/base-button/base-button-icon.d.ts +2 -3
  196. package/lib-esm/primitives/base-button/base-button-label.d.ts +2 -3
  197. package/lib-esm/primitives/base-button/base-button.d.ts +1 -2
  198. package/lib-esm/primitives/base-button/index.d.ts +5 -6
  199. package/lib-esm/primitives/base-button/types.d.ts +28 -28
  200. package/lib-esm/primitives/base-button/utils.d.ts +8 -8
  201. package/lib-esm/primitives/base-inline-notice/base-inline-notice-actions.d.ts +31 -32
  202. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.d.ts +6 -7
  203. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content-container.js +3 -3
  204. package/lib-esm/primitives/base-inline-notice/base-inline-notice-content.d.ts +5 -6
  205. package/lib-esm/primitives/base-inline-notice/base-inline-notice-icon.d.ts +2 -3
  206. package/lib-esm/primitives/base-inline-notice/base-inline-notice.d.ts +2 -3
  207. package/lib-esm/primitives/base-inline-notice/index.d.ts +25 -26
  208. package/lib-esm/primitives/base-inline-notice/types.d.ts +39 -39
  209. package/lib-esm/primitives/base-text-input/base-text-input.d.ts +8 -9
  210. package/lib-esm/primitives/base-text-input/base-text-input.js +5 -5
  211. package/lib-esm/primitives/base-text-input/index.d.ts +2 -2
  212. package/lib-esm/primitives/base-text-input/types.d.ts +24 -25
  213. package/lib-esm/primitives/calendar/calendar.d.ts +2 -3
  214. package/lib-esm/primitives/calendar/calendar.js +3 -3
  215. package/lib-esm/primitives/calendar/classes.util.d.ts +7 -7
  216. package/lib-esm/primitives/calendar/from-absolute.util.d.ts +6 -6
  217. package/lib-esm/primitives/calendar/from-absolute.util.js +4 -4
  218. package/lib-esm/primitives/calendar/get-local-timezone.util.d.ts +1 -1
  219. package/lib-esm/primitives/calendar/index.d.ts +11 -11
  220. package/lib-esm/primitives/calendar/parse-absolute-to-local.util.d.ts +5 -5
  221. package/lib-esm/primitives/calendar/parse-absolute-to-local.util.js +3 -3
  222. package/lib-esm/primitives/calendar/parse-absolute.util.d.ts +7 -7
  223. package/lib-esm/primitives/calendar/parse-absolute.util.js +5 -5
  224. package/lib-esm/primitives/calendar/parse-date.util.d.ts +7 -7
  225. package/lib-esm/primitives/calendar/parse-date.util.js +4 -4
  226. package/lib-esm/primitives/calendar/to-calendar-date-time.util.d.ts +8 -8
  227. package/lib-esm/primitives/calendar/to-calendar-date-time.util.js +5 -5
  228. package/lib-esm/primitives/calendar/to-calendar-date.util.d.ts +7 -7
  229. package/lib-esm/primitives/calendar/to-calendar-date.util.js +4 -4
  230. package/lib-esm/primitives/calendar/to-zoned.util.d.ts +9 -9
  231. package/lib-esm/primitives/calendar/to-zoned.util.js +6 -6
  232. package/lib-esm/primitives/calendar/types.d.ts +17 -17
  233. package/lib-esm/primitives/chips/chip-dropdown-indicator.d.ts +1 -2
  234. package/lib-esm/primitives/chips/chip-icon.d.ts +3 -3
  235. package/lib-esm/primitives/chips/chip-label.d.ts +2 -3
  236. package/lib-esm/primitives/chips/chip-status.d.ts +2 -3
  237. package/lib-esm/primitives/chips/chip.d.ts +2 -3
  238. package/lib-esm/primitives/chips/chips-group.d.ts +2 -3
  239. package/lib-esm/primitives/chips/filter-chip/filter-chip-button.d.ts +7 -8
  240. package/lib-esm/primitives/chips/filter-chip/filter-chip-button.js +3 -3
  241. package/lib-esm/primitives/chips/filter-chip/filter-chip-group-context.d.ts +10 -11
  242. package/lib-esm/primitives/chips/filter-chip/filter-chip.d.ts +13 -14
  243. package/lib-esm/primitives/chips/filter-chip/filter-chip.js +6 -6
  244. package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.d.ts +27 -27
  245. package/lib-esm/primitives/chips/filter-chip/filter-combo-chip.js +3 -3
  246. package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.d.ts +15 -16
  247. package/lib-esm/primitives/chips/filter-chip/filter-trigger-chip.js +5 -5
  248. package/lib-esm/primitives/chips/filter-chip/index.d.ts +20 -21
  249. package/lib-esm/primitives/chips/types.d.ts +26 -27
  250. package/lib-esm/primitives/context-menu/context-menu-item.d.ts +16 -17
  251. package/lib-esm/primitives/context-menu/context-menu-item.js +7 -7
  252. package/lib-esm/primitives/context-menu/context-menu-items-separator.d.ts +4 -5
  253. package/lib-esm/primitives/context-menu/context-menu-items-separator.js +2 -2
  254. package/lib-esm/primitives/context-menu/context-menu-menu-content.d.ts +10 -11
  255. package/lib-esm/primitives/context-menu/context-menu-menu-content.js +2 -2
  256. package/lib-esm/primitives/context-menu/context-menu-menu-root.d.ts +7 -7
  257. package/lib-esm/primitives/context-menu/context-menu-menu-root.js +3 -3
  258. package/lib-esm/primitives/context-menu/context-menu-menu-trigger.d.ts +7 -8
  259. package/lib-esm/primitives/context-menu/context-menu-menu-trigger.js +3 -3
  260. package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.d.ts +11 -12
  261. package/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +3 -3
  262. package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.d.ts +10 -10
  263. package/lib-esm/primitives/context-menu/context-menu-sub-menu-root.js +3 -3
  264. package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.d.ts +17 -18
  265. package/lib-esm/primitives/context-menu/context-menu-sub-menu-trigger.js +8 -8
  266. package/lib-esm/primitives/context-menu/index.d.ts +26 -27
  267. package/lib-esm/primitives/date-i18n-provider/date-i18n-provider.d.ts +15 -15
  268. package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.d.ts +7 -8
  269. package/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +3 -3
  270. package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.d.ts +11 -12
  271. package/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +3 -3
  272. package/lib-esm/primitives/dropdown-menu/dropdown-menu-group.d.ts +7 -8
  273. package/lib-esm/primitives/dropdown-menu/dropdown-menu-group.js +3 -3
  274. package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.d.ts +6 -7
  275. package/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +2 -2
  276. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.d.ts +7 -8
  277. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-group.js +3 -3
  278. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.d.ts +7 -8
  279. package/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +3 -3
  280. package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.d.ts +9 -9
  281. package/lib-esm/primitives/dropdown-menu/dropdown-menu-root.js +2 -2
  282. package/lib-esm/primitives/dropdown-menu/dropdown-menu-separator.d.ts +1 -2
  283. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.d.ts +11 -12
  284. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +3 -3
  285. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.d.ts +10 -10
  286. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-root.js +3 -3
  287. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.d.ts +16 -17
  288. package/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-trigger.js +7 -7
  289. package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.d.ts +7 -8
  290. package/lib-esm/primitives/dropdown-menu/dropdown-menu-trigger.js +3 -3
  291. package/lib-esm/primitives/dropdown-menu/index.d.ts +29 -30
  292. package/lib-esm/primitives/icon-button/icon-button.d.ts +1 -2
  293. package/lib-esm/primitives/icon-button/index.d.ts +2 -2
  294. package/lib-esm/primitives/icon-button/types.d.ts +42 -42
  295. package/lib-esm/primitives/icon-button/utils.d.ts +3 -3
  296. package/lib-esm/primitives/inline-error/inline-error.d.ts +3 -4
  297. package/lib-esm/primitives/inline-error/types.d.ts +4 -5
  298. package/lib-esm/primitives/link/index.d.ts +2 -2
  299. package/lib-esm/primitives/link/link.d.ts +2 -3
  300. package/lib-esm/primitives/link/types.d.ts +39 -39
  301. package/lib-esm/primitives/notification/index.d.ts +11 -12
  302. package/lib-esm/primitives/notification/notification-button.d.ts +8 -8
  303. package/lib-esm/primitives/notification/notification-provider.d.ts +39 -39
  304. package/lib-esm/primitives/notification/notification-provider.js +5 -5
  305. package/lib-esm/primitives/notification/notification.viewport.d.ts +8 -9
  306. package/lib-esm/primitives/notification/notification.viewport.js +4 -4
  307. package/lib-esm/primitives/notification/private-notification-element.d.ts +33 -33
  308. package/lib-esm/primitives/notification/private-notification-element.js +7 -7
  309. package/lib-esm/primitives/page-header/index.d.ts +2 -2
  310. package/lib-esm/primitives/page-header/page-header.d.ts +11 -12
  311. package/lib-esm/primitives/page-header/types.d.ts +8 -8
  312. package/lib-esm/primitives/popover/index.d.ts +19 -20
  313. package/lib-esm/primitives/popover/popover-anchor.d.ts +7 -8
  314. package/lib-esm/primitives/popover/popover-anchor.js +3 -3
  315. package/lib-esm/primitives/popover/popover-close.d.ts +7 -8
  316. package/lib-esm/primitives/popover/popover-close.js +3 -3
  317. package/lib-esm/primitives/popover/popover-content-container.d.ts +11 -12
  318. package/lib-esm/primitives/popover/popover-content-container.js +3 -3
  319. package/lib-esm/primitives/popover/popover-focus-utils.d.ts +1 -1
  320. package/lib-esm/primitives/popover/popover-focus-utils.js +3 -3
  321. package/lib-esm/primitives/popover/popover-footer.d.ts +6 -7
  322. package/lib-esm/primitives/popover/popover-footer.js +2 -2
  323. package/lib-esm/primitives/popover/popover-main-content.d.ts +6 -7
  324. package/lib-esm/primitives/popover/popover-main-content.js +2 -2
  325. package/lib-esm/primitives/popover/popover-overflow-context.d.ts +6 -6
  326. package/lib-esm/primitives/popover/popover-root.d.ts +9 -9
  327. package/lib-esm/primitives/popover/popover-root.js +2 -2
  328. package/lib-esm/primitives/popover/popover-trigger.d.ts +8 -9
  329. package/lib-esm/primitives/popover/popover-trigger.js +4 -4
  330. package/lib-esm/primitives/select-menu-grid/index.d.ts +12 -12
  331. package/lib-esm/primitives/select-menu-grid/select-menu-grid-option.d.ts +131 -132
  332. package/lib-esm/primitives/select-menu-grid/select-menu-grid.d.ts +2 -3
  333. package/lib-esm/primitives/select-menu-grid/types.d.ts +34 -35
  334. package/lib-esm/primitives/slot.d.ts +5 -5
  335. package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.d.ts +5 -5
  336. package/lib-esm/primitives/supplementary-fonts/get-supplementary-font-faces-config.js +2 -2
  337. package/lib-esm/primitives/supplementary-fonts/index.d.ts +4 -4
  338. package/lib-esm/primitives/supplementary-fonts/supplementary-fonts.d.ts +5 -6
  339. package/lib-esm/primitives/supplementary-fonts/types.d.ts +2 -2
  340. package/lib-esm/primitives/supplementary-fonts/useSupplementaryFonts.hook.d.ts +2 -2
  341. package/lib-esm/primitives/tabs/content-switch-tab.d.ts +2 -3
  342. package/lib-esm/primitives/tabs/default-tab.d.ts +2 -3
  343. package/lib-esm/primitives/tabs/index.d.ts +16 -17
  344. package/lib-esm/primitives/tabs/index.js +6 -6
  345. package/lib-esm/primitives/tabs/tab-list.d.ts +2 -3
  346. package/lib-esm/primitives/tabs/tab-panel.d.ts +2 -3
  347. package/lib-esm/primitives/tabs/tab.d.ts +2 -2
  348. package/lib-esm/primitives/tabs/tabs.d.ts +2 -2
  349. package/lib-esm/primitives/tabs/types.d.ts +14 -14
  350. package/lib-esm/primitives/tabs/use-tabs.d.ts +1 -1
  351. package/lib-esm/radio-group/index.d.ts +7 -8
  352. package/lib-esm/radio-group/radio-group.d.ts +2 -3
  353. package/lib-esm/radio-group/radio-item.d.ts +2 -3
  354. package/lib-esm/radio-group/types.d.ts +14 -14
  355. package/lib-esm/radio-tiles/index.d.ts +3 -3
  356. package/lib-esm/radio-tiles/radio-tiles-option.d.ts +2 -2
  357. package/lib-esm/radio-tiles/radio-tiles.context.d.ts +9 -9
  358. package/lib-esm/radio-tiles/radio-tiles.d.ts +4 -4
  359. package/lib-esm/radio-tiles/types.d.ts +48 -48
  360. package/lib-esm/search-input/index.d.ts +12 -13
  361. package/lib-esm/search-input/index.js +2 -2
  362. package/lib-esm/search-input/search-input-action-button.d.ts +5 -6
  363. package/lib-esm/search-input/search-input-controlled/index.d.ts +2 -2
  364. package/lib-esm/search-input/search-input-controlled/search-input-controlled.d.ts +2 -3
  365. package/lib-esm/search-input/search-input-controlled/types.d.ts +21 -21
  366. package/lib-esm/search-input/search-input.d.ts +9 -10
  367. package/lib-esm/search-input/search-input.js +4 -4
  368. package/lib-esm/search-input/types.d.ts +50 -50
  369. package/lib-esm/select/index.d.ts +2 -2
  370. package/lib-esm/select/select.d.ts +42 -43
  371. package/lib-esm/select/select.js +29 -29
  372. package/lib-esm/select/types.d.ts +106 -106
  373. package/lib-esm/side-panel/index.d.ts +2 -2
  374. package/lib-esm/side-panel/side-panel-close.d.ts +5 -6
  375. package/lib-esm/side-panel/side-panel-close.js +2 -2
  376. package/lib-esm/side-panel/side-panel-content.d.ts +13 -14
  377. package/lib-esm/side-panel/side-panel-content.js +4 -4
  378. package/lib-esm/side-panel/side-panel-footer.d.ts +21 -22
  379. package/lib-esm/side-panel/side-panel-footer.js +3 -3
  380. package/lib-esm/side-panel/side-panel-header.d.ts +5 -6
  381. package/lib-esm/side-panel/side-panel-header.js +2 -2
  382. package/lib-esm/side-panel/side-panel-overlay.d.ts +6 -7
  383. package/lib-esm/side-panel/side-panel-overlay.js +3 -3
  384. package/lib-esm/side-panel/side-panel-scrollable-container.d.ts +6 -7
  385. package/lib-esm/side-panel/side-panel-scrollable-container.js +3 -3
  386. package/lib-esm/side-panel/side-panel-trigger.d.ts +5 -6
  387. package/lib-esm/side-panel/side-panel-trigger.js +2 -2
  388. package/lib-esm/side-panel/side-panel.d.ts +27 -28
  389. package/lib-esm/side-panel/types.d.ts +49 -49
  390. package/lib-esm/side-panel/variant-context.d.ts +6 -6
  391. package/lib-esm/slider/index.d.ts +2 -2
  392. package/lib-esm/slider/slider-incrementer.d.ts +5 -5
  393. package/lib-esm/slider/slider-incrementer.js +18 -5
  394. package/lib-esm/slider/slider-incrementer.module.js +1 -1
  395. package/lib-esm/slider/slider-range.d.ts +5 -6
  396. package/lib-esm/slider/slider-range.js +2 -2
  397. package/lib-esm/slider/slider.d.ts +4 -5
  398. package/lib-esm/slider/slider.js +7 -2
  399. package/lib-esm/slider/slider.module.js +1 -1
  400. package/lib-esm/slider/types.d.ts +181 -181
  401. package/lib-esm/small-list-item/index.d.ts +56 -57
  402. package/lib-esm/small-list-item/index.js +38 -38
  403. package/lib-esm/small-list-item/small-list.d.ts +2 -3
  404. package/lib-esm/small-list-item/types.d.ts +8 -8
  405. package/lib-esm/split-button/SplitTriggerButton.d.ts +10 -11
  406. package/lib-esm/split-button/index.d.ts +2 -2
  407. package/lib-esm/split-button/split-button.d.ts +25 -26
  408. package/lib-esm/split-button/types.d.ts +43 -44
  409. package/lib-esm/status/consts.d.ts +4 -4
  410. package/lib-esm/status/index.d.ts +2 -2
  411. package/lib-esm/status/status.d.ts +2 -3
  412. package/lib-esm/status/types.d.ts +31 -31
  413. package/lib-esm/switch/index.d.ts +7 -8
  414. package/lib-esm/switch/switch-item.d.ts +4 -5
  415. package/lib-esm/switch/switch-item.js +1 -1
  416. package/lib-esm/switch/switch-legend.d.ts +2 -2
  417. package/lib-esm/switch/types.d.ts +31 -31
  418. package/lib-esm/text/index.d.ts +2 -2
  419. package/lib-esm/text/text.d.ts +2 -3
  420. package/lib-esm/text/types.d.ts +37 -37
  421. package/lib-esm/text-area/index.d.ts +2 -2
  422. package/lib-esm/text-area/text-area-autosize/text-area-autosize.d.ts +2 -3
  423. package/lib-esm/text-area/text-area-autosize/text-area-autosize.js +4 -4
  424. package/lib-esm/text-area/text-area-autosize/types.d.ts +21 -21
  425. package/lib-esm/text-area/text-area.d.ts +11 -12
  426. package/lib-esm/text-area/types.d.ts +19 -20
  427. package/lib-esm/text-button/index.d.ts +2 -2
  428. package/lib-esm/text-button/text-button.d.ts +1 -2
  429. package/lib-esm/text-button/types.d.ts +24 -24
  430. package/lib-esm/text-input/index.d.ts +2 -2
  431. package/lib-esm/text-input/text-input.d.ts +1 -2
  432. package/lib-esm/text-input/types.d.ts +9 -9
  433. package/lib-esm/text-toggle-button/index.d.ts +2 -2
  434. package/lib-esm/text-toggle-button/text-toggle-button.d.ts +2 -3
  435. package/lib-esm/text-toggle-button/types.d.ts +7 -7
  436. package/lib-esm/toolbar/index.d.ts +55 -56
  437. package/lib-esm/toolbar/index.js +35 -35
  438. package/lib-esm/toolbar/toolbar-button.d.ts +2 -3
  439. package/lib-esm/toolbar/toolbar-dropdown-indicator.d.ts +2 -3
  440. package/lib-esm/toolbar/toolbar-icon.d.ts +3 -3
  441. package/lib-esm/toolbar/toolbar-root.d.ts +2 -3
  442. package/lib-esm/toolbar/toolbar-separator.d.ts +2 -3
  443. package/lib-esm/toolbar/toolbar-toggle-group.d.ts +2 -3
  444. package/lib-esm/toolbar/toolbar-toggle-item.d.ts +2 -3
  445. package/lib-esm/toolbar/toolbar-trigger-button.d.ts +2 -3
  446. package/lib-esm/toolbar/types.d.ts +41 -41
  447. package/lib-esm/tooltip/index.d.ts +2 -2
  448. package/lib-esm/tooltip/tooltip.d.ts +16 -16
  449. package/lib-esm/tooltip/tooltip.js +14 -14
  450. package/lib-esm/tooltip/types.d.ts +46 -46
  451. package/lib-esm/trigger-button/index.d.ts +1 -1
  452. package/lib-esm/trigger-button/trigger-button.d.ts +28 -29
  453. package/lib-esm/trigger-button/trigger-button.js +3 -3
  454. package/lib-esm/types/input-value-props.d.ts +22 -22
  455. package/lib-esm/types/modify.d.ts +1 -1
  456. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-actions.d.ts +3 -4
  457. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-header.d.ts +2 -3
  458. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-subtitle.d.ts +3 -4
  459. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item-thumbnail.d.ts +2 -3
  460. package/lib-esm/util-components/base-grid-list-item/base-grid-list-item.d.ts +3 -4
  461. package/lib-esm/util-components/base-grid-list-item/base-grid-list.d.ts +3 -4
  462. package/lib-esm/util-components/base-grid-list-item/index.d.ts +36 -37
  463. package/lib-esm/util-components/base-grid-list-item/index.js +18 -18
  464. package/lib-esm/util-components/base-grid-list-item/static-grid-list-item.d.ts +4 -5
  465. package/lib-esm/util-components/base-grid-list-item/static-grid-list.d.ts +2 -3
  466. package/lib-esm/util-components/base-grid-list-item/types.d.ts +47 -47
  467. package/lib-esm/util-components/base-grid-list-item/utils/rac-button.d.ts +14 -14
  468. package/lib-esm/util-components/base-grid-list-item/utils/rac-button.js +6 -6
  469. package/lib-esm/util-components/base-grid-list-item/utils/rac-tooltip.d.ts +7 -7
  470. package/lib-esm/util-components/base-toggle-button/base-toggle-button.d.ts +2 -3
  471. package/lib-esm/util-components/base-toggle-button/types.d.ts +17 -17
  472. package/lib-esm/util-components/focus-trap/focus-trap.d.ts +2 -2
  473. package/lib-esm/util-components/focus-trap/index.d.ts +1 -1
  474. package/lib-esm/util-components/focus-trap/types.d.ts +8 -8
  475. package/lib-esm/util-components/interactive-icon/index.d.ts +1 -1
  476. package/lib-esm/util-components/interactive-icon/interactive-icon.d.ts +2 -3
  477. package/lib-esm/util-components/interactive-icon/types.d.ts +9 -9
  478. package/lib-esm/util-components/labelable/index.d.ts +1 -1
  479. package/lib-esm/util-components/labelable/types.d.ts +15 -15
  480. package/lib-esm/util-components/labelable/useLabelable.d.ts +2 -3
  481. package/lib-esm/util-components/legend/index.d.ts +1 -1
  482. package/lib-esm/util-components/legend/legend.d.ts +2 -2
  483. package/lib-esm/util-components/legend/types.d.ts +18 -18
  484. package/lib-esm/util-components/list-checkbox/index.d.ts +1 -1
  485. package/lib-esm/util-components/list-checkbox/list-checkbox.d.ts +13 -14
  486. package/lib-esm/util-components/list-checkbox/list-checkbox.js +6 -6
  487. package/lib-esm/util-components/menu-item-sections/menu-item-sections.d.ts +18 -19
  488. package/lib-esm/util-components/menu-item-sections/menu-item-sections.js +4 -4
  489. package/lib-esm/util-components/scrollable-container/scrollable-container.d.ts +31 -31
  490. package/lib-esm/util-components/search-term-string/index.d.ts +1 -1
  491. package/lib-esm/util-components/search-term-string/search-term-string.d.ts +3 -3
  492. package/lib-esm/util-components/search-term-string/types.d.ts +4 -4
  493. package/lib-esm/util-components/text-with-info-badge/index.d.ts +1 -1
  494. package/lib-esm/util-components/text-with-info-badge/text-with-info-badge.d.ts +2 -2
  495. package/lib-esm/util-components/text-with-info-badge/types.d.ts +15 -15
  496. package/lib-esm/utils/commonTypes.d.ts +2 -2
  497. package/lib-esm/utils/composeEventHandlers.d.ts +4 -4
  498. package/lib-esm/utils/createSetRefWithCallback.d.ts +10 -10
  499. package/lib-esm/utils/debounce.d.ts +4 -4
  500. package/lib-esm/utils/filterNonHtmlProps.d.ts +2 -2
  501. package/lib-esm/utils/getButtonOptions.d.ts +7 -7
  502. package/lib-esm/utils/isDefined.d.ts +1 -1
  503. package/lib-esm/utils/keyboardUtils.d.ts +8 -8
  504. package/lib-esm/utils/ownerWindow.d.ts +1 -1
  505. package/lib-esm/utils/processString.d.ts +13 -13
  506. package/lib-esm/utils/scroll-context.d.ts +12 -12
  507. package/lib-esm/utils/switchCase.d.ts +1 -1
  508. package/lib-esm/utils/use-debounce.d.ts +1 -1
  509. package/lib-esm/utils/useBreakpoint.d.ts +17 -17
  510. package/lib-esm/utils/useBreakpoint.js +8 -8
  511. package/lib-esm/utils/useCallbackRef.d.ts +6 -6
  512. package/lib-esm/utils/useCallbackRef.js +3 -3
  513. package/lib-esm/utils/useControllableState.d.ts +8 -8
  514. package/lib-esm/utils/useEnhancedEffect.d.ts +7 -7
  515. package/lib-esm/utils/useEnhancedEffect.js +4 -4
  516. package/lib-esm/utils/useForkRef.d.ts +12 -12
  517. package/lib-esm/utils/useForkRef.js +12 -12
  518. package/lib-esm/utils/useFullTextTooltip.d.ts +16 -16
  519. package/lib-esm/utils/useIsTriggerInteractive.d.ts +4 -5
  520. package/lib-esm/utils/useIsTriggerInteractive.js +2 -2
  521. package/lib-esm/utils/useMedia.d.ts +1 -1
  522. package/lib-esm/utils/useMobile.d.ts +1 -1
  523. package/lib-esm/utils/useNamedSlots.hook.d.ts +2 -2
  524. package/lib-esm/utils/useSubMenuFocus.hook.d.ts +2 -2
  525. package/lib-esm/utils/useUniqueId.d.ts +5 -5
  526. package/lib-esm/visually-hidden/index.d.ts +1 -1
  527. package/lib-esm/visually-hidden/visually-hidden.d.ts +3 -4
  528. package/package.json +2 -2
@@ -1,19 +1,19 @@
1
- import { type AccordionItemProps, type AccordionProps } from './types';
2
- /**
3
- * The root component that contains all the parts of a accordion.
4
- *
5
- * @example
6
- * <Accordion>
7
- * <Accordion.Item value="item-1" title="Item 1"><div>1st item</div></Accordion.Item>
8
- * <Accordion.Item value="item-2" title="Item 2"><div>2nd item</div></Accordion.Item>
9
- * <Accordion.Item value="item-3" title="Item 3"><div>3rd item </div></Accordion.Item>
10
- * </Accordion>
11
- */
12
- export declare const Root: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
13
- export declare const Item: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
14
- export declare const Accordion: ((props: AccordionProps) => import("react/jsx-runtime").JSX.Element) & {
15
- /**
16
- * The component that displays a Accordion item.
17
- */
18
- Item: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
19
- };
1
+ import { type AccordionItemProps, type AccordionProps } from './types';
2
+ /**
3
+ * The root component that contains all the parts of a accordion.
4
+ *
5
+ * @example
6
+ * <Accordion>
7
+ * <Accordion.Item value="item-1" title="Item 1"><div>1st item</div></Accordion.Item>
8
+ * <Accordion.Item value="item-2" title="Item 2"><div>2nd item</div></Accordion.Item>
9
+ * <Accordion.Item value="item-3" title="Item 3"><div>3rd item </div></Accordion.Item>
10
+ * </Accordion>
11
+ */
12
+ export declare const Root: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Item: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const Accordion: ((props: AccordionProps) => import("react/jsx-runtime").JSX.Element) & {
15
+ /**
16
+ * The component that displays a Accordion item.
17
+ */
18
+ Item: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
19
+ };
@@ -9,15 +9,15 @@ import { Status } from '../status/status.js';
9
9
  import { isDefined } from '../utils/isDefined.js';
10
10
  import styles from './accordion.module.js';
11
11
 
12
- /**
13
- * The root component that contains all the parts of a accordion.
14
- *
15
- * @example
16
- * <Accordion>
17
- * <Accordion.Item value="item-1" title="Item 1"><div>1st item</div></Accordion.Item>
18
- * <Accordion.Item value="item-2" title="Item 2"><div>2nd item</div></Accordion.Item>
19
- * <Accordion.Item value="item-3" title="Item 3"><div>3rd item </div></Accordion.Item>
20
- * </Accordion>
12
+ /**
13
+ * The root component that contains all the parts of a accordion.
14
+ *
15
+ * @example
16
+ * <Accordion>
17
+ * <Accordion.Item value="item-1" title="Item 1"><div>1st item</div></Accordion.Item>
18
+ * <Accordion.Item value="item-2" title="Item 2"><div>2nd item</div></Accordion.Item>
19
+ * <Accordion.Item value="item-3" title="Item 3"><div>3rd item </div></Accordion.Item>
20
+ * </Accordion>
21
21
  */
22
22
  const Root = props => {
23
23
  return jsx(RadixAccordion.Root, {
@@ -115,8 +115,8 @@ const Item = props => {
115
115
  });
116
116
  };
117
117
  const Accordion = Object.assign(Root, {
118
- /**
119
- * The component that displays a Accordion item.
118
+ /**
119
+ * The component that displays a Accordion item.
120
120
  */
121
121
  Item
122
122
  });
@@ -1,2 +1,2 @@
1
- export { Accordion } from './accordion';
2
- export type { AccordionFixedItem, AccordionItem, AccordionProps, AccordionSectionItem } from './types';
1
+ export { Accordion } from './accordion';
2
+ export type { AccordionFixedItem, AccordionItem, AccordionProps, AccordionSectionItem } from './types';
@@ -1,49 +1,48 @@
1
- /// <reference types="react" />
2
- import { type AccordionMultipleProps, type AccordionSingleProps, type AccordionItemProps as RadixAccordionItemProps } from '@radix-ui/react-accordion';
3
- import { type RequireAllOrNone } from 'type-fest';
4
- interface Loading {
5
- /** Loading state of the section. Loading sections are displaying a placeholder. When this is true `loadingAriaLabel` must also be provided. */
6
- loading: boolean;
7
- /** The aria-label for the ghost state. */
8
- loadingAriaLabel: string;
9
- }
10
- interface Errorable {
11
- /**
12
- * Error message displayed in an InlineNotice
13
- */
14
- error?: string;
15
- /**
16
- * ARIA label for the icon inside the InlineNotice
17
- */
18
- errorIconAriaLabel?: string;
19
- }
20
- export type AccordionBaseItem = {
21
- /**
22
- * Content of the accordion item that is displayed when the section is expanded
23
- */
24
- children?: React.ReactNode;
25
- } & RequireAllOrNone<Loading, keyof Loading> & RequireAllOrNone<Errorable, keyof Errorable>;
26
- /**
27
- * Fixed sections are non-collapsible, have no title, only content, can't be disabled
28
- */
29
- export type AccordionFixedItem = AccordionBaseItem & {
30
- fixed: true;
31
- };
32
- export type AccordionSectionItem = AccordionBaseItem & Omit<RadixAccordionItemProps, 'id'> & {
33
- /**
34
- * Header text displayed
35
- */
36
- title: string;
37
- /**
38
- * Number displayed in a status pill next to the title
39
- * */
40
- status?: number;
41
- /**
42
- * Disabled state of the section.
43
- */
44
- disabled?: boolean;
45
- };
46
- export type AccordionItem = AccordionSectionItem | AccordionFixedItem;
47
- export type AccordionItemProps = AccordionItem & React.ComponentPropsWithRef<'div'>;
48
- export type AccordionProps = (AccordionSingleProps | AccordionMultipleProps) & React.ComponentPropsWithRef<'div'>;
49
- export {};
1
+ import { type AccordionMultipleProps, type AccordionSingleProps, type AccordionItemProps as RadixAccordionItemProps } from '@radix-ui/react-accordion';
2
+ import { type RequireAllOrNone } from 'type-fest';
3
+ interface Loading {
4
+ /** Loading state of the section. Loading sections are displaying a placeholder. When this is true `loadingAriaLabel` must also be provided. */
5
+ loading: boolean;
6
+ /** The aria-label for the ghost state. */
7
+ loadingAriaLabel: string;
8
+ }
9
+ interface Errorable {
10
+ /**
11
+ * Error message displayed in an InlineNotice
12
+ */
13
+ error?: string;
14
+ /**
15
+ * ARIA label for the icon inside the InlineNotice
16
+ */
17
+ errorIconAriaLabel?: string;
18
+ }
19
+ export type AccordionBaseItem = {
20
+ /**
21
+ * Content of the accordion item that is displayed when the section is expanded
22
+ */
23
+ children?: React.ReactNode;
24
+ } & RequireAllOrNone<Loading, keyof Loading> & RequireAllOrNone<Errorable, keyof Errorable>;
25
+ /**
26
+ * Fixed sections are non-collapsible, have no title, only content, can't be disabled
27
+ */
28
+ export type AccordionFixedItem = AccordionBaseItem & {
29
+ fixed: true;
30
+ };
31
+ export type AccordionSectionItem = AccordionBaseItem & Omit<RadixAccordionItemProps, 'id'> & {
32
+ /**
33
+ * Header text displayed
34
+ */
35
+ title: string;
36
+ /**
37
+ * Number displayed in a status pill next to the title
38
+ * */
39
+ status?: number;
40
+ /**
41
+ * Disabled state of the section.
42
+ */
43
+ disabled?: boolean;
44
+ };
45
+ export type AccordionItem = AccordionSectionItem | AccordionFixedItem;
46
+ export type AccordionItemProps = AccordionItem & React.ComponentPropsWithRef<'div'>;
47
+ export type AccordionProps = (AccordionSingleProps | AccordionMultipleProps) & React.ComponentPropsWithRef<'div'>;
48
+ export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- import { type ActionableInlineNoticeProps } from './types';
3
- export declare const ActionableInlineNotice: import("react").ForwardRefExoticComponent<ActionableInlineNoticeProps & import("react").RefAttributes<HTMLDivElement>>;
1
+ import { type ActionableInlineNoticeProps } from './types';
2
+ export declare const ActionableInlineNotice: import("react").ForwardRefExoticComponent<ActionableInlineNoticeProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,18 +1,17 @@
1
- /// <reference types="react" />
2
- export declare const ActionableInlineNotice: import("react").ForwardRefExoticComponent<import("./types").ActionableInlineNoticeProps & import("react").RefAttributes<HTMLDivElement>> & {
3
- PrimaryAction: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
4
- children: string;
5
- className?: string | undefined;
6
- }, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
7
- children: string;
8
- className?: string | undefined;
9
- }, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
10
- TertiaryAction: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
11
- children: string;
12
- className?: string | undefined;
13
- }, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
14
- children: string;
15
- className?: string | undefined;
16
- }, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
17
- };
18
- export * from './types';
1
+ export declare const ActionableInlineNotice: import("react").ForwardRefExoticComponent<import("./types").ActionableInlineNoticeProps & import("react").RefAttributes<HTMLDivElement>> & {
2
+ PrimaryAction: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
3
+ children: string;
4
+ className?: string;
5
+ }, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
6
+ children: string;
7
+ className?: string;
8
+ }, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
9
+ TertiaryAction: import("react").ForwardRefExoticComponent<(Omit<import("../primitives/base-button").BaseButtonInterface & Required<Pick<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
10
+ children: string;
11
+ className?: string;
12
+ }, "ref"> | Omit<import("../primitives/base-button").BaseButtonInterface & Partial<Record<keyof import("../primitives/base-button").Loading, never>> & Omit<import("../primitives/base-button").Loading, keyof import("../primitives/base-button").Loading> & {
13
+ children: string;
14
+ className?: string;
15
+ }, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
16
+ };
17
+ export * from './types';
@@ -1,21 +1,21 @@
1
- import { type ReactElement } from 'react';
2
- import { type RequireAllOrNone } from 'type-fest';
3
- import { type BaseInlineNoticeProps, type ButtonProps } from '../primitives/base-inline-notice';
4
- export type ActionableInlineNoticeProps = {
5
- /** Governs background color for inline notice
6
- * @default backgroundBlue
7
- */
8
- backgroundColor?: Extract<BaseInlineNoticeProps['backgroundColor'], 'backgroundBlue' | 'backgroundPurple'>;
9
- /** Text for the body of the inline notice */
10
- text: string;
11
- /** Optional children buttons for the inline notice CTA. Specify either PrimaryAction OR both TertiaryAction and PrimaryAction. */
12
- children?: ReactElement<ButtonProps>;
13
- /** Optional title for the inner text of the notice */
14
- title?: string;
15
- } & RequireAllOrNone<Icon, keyof Icon>;
16
- export interface Icon {
17
- /** Icon for notice */
18
- icon: React.FunctionComponent<React.PropsWithChildren<React.SVGProps<SVGSVGElement>>>;
19
- /** Icon aria label for notice when icon is provided */
20
- iconAriaLabel: string;
21
- }
1
+ import { type ReactElement } from 'react';
2
+ import { type RequireAllOrNone } from 'type-fest';
3
+ import { type BaseInlineNoticeProps, type ButtonProps } from '../primitives/base-inline-notice';
4
+ export type ActionableInlineNoticeProps = {
5
+ /** Governs background color for inline notice
6
+ * @default backgroundBlue
7
+ */
8
+ backgroundColor?: Extract<BaseInlineNoticeProps['backgroundColor'], 'backgroundBlue' | 'backgroundPurple'>;
9
+ /** Text for the body of the inline notice */
10
+ text: string;
11
+ /** Optional children buttons for the inline notice CTA. Specify either PrimaryAction OR both TertiaryAction and PrimaryAction. */
12
+ children?: ReactElement<ButtonProps>;
13
+ /** Optional title for the inner text of the notice */
14
+ title?: string;
15
+ } & RequireAllOrNone<Icon, keyof Icon>;
16
+ export interface Icon {
17
+ /** Icon for notice */
18
+ icon: React.FunctionComponent<React.PropsWithChildren<React.SVGProps<SVGSVGElement>>>;
19
+ /** Icon aria label for notice when icon is provided */
20
+ iconAriaLabel: string;
21
+ }
@@ -1,30 +1,29 @@
1
- /// <reference types="react" />
2
- export declare const Avatar: import("react").ForwardRefExoticComponent<(Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
3
- ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
4
- } & {
5
- anonymous?: boolean | undefined;
6
- children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
7
- size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
8
- text?: string | undefined;
9
- } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
10
- ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
11
- } & {
12
- anonymous?: boolean | undefined;
13
- children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
14
- size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
15
- text?: string | undefined;
16
- } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
17
- ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
18
- } & {
19
- anonymous?: boolean | undefined;
20
- children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
21
- size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
22
- text?: string | undefined;
23
- } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
24
- ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
25
- } & {
26
- anonymous?: boolean | undefined;
27
- children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
28
- size?: "small" | "medium" | "large" | "xlarge" | "xxlarge" | undefined;
29
- text?: string | undefined;
30
- } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref">) & import("react").RefAttributes<HTMLImageElement>>;
1
+ export declare const Avatar: import("react").ForwardRefExoticComponent<(Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
2
+ ref?: ((instance: HTMLImageElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLImageElement> | null | undefined;
3
+ } & {
4
+ anonymous?: boolean;
5
+ children?: import("react").ReactElement;
6
+ size?: import("./types").AvatarSize;
7
+ text?: string;
8
+ } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
9
+ ref?: ((instance: HTMLImageElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLImageElement> | null | undefined;
10
+ } & {
11
+ anonymous?: boolean;
12
+ children?: import("react").ReactElement;
13
+ size?: import("./types").AvatarSize;
14
+ text?: string;
15
+ } & Required<Pick<import("./types").Image, keyof import("./types").Image>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
16
+ ref?: ((instance: HTMLImageElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLImageElement> | null | undefined;
17
+ } & {
18
+ anonymous?: boolean;
19
+ children?: import("react").ReactElement;
20
+ size?: import("./types").AvatarSize;
21
+ text?: string;
22
+ } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "color">> & Partial<Record<"colorIndex", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
23
+ ref?: ((instance: HTMLImageElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLImageElement> | null | undefined;
24
+ } & {
25
+ anonymous?: boolean;
26
+ children?: import("react").ReactElement;
27
+ size?: import("./types").AvatarSize;
28
+ text?: string;
29
+ } & Partial<Record<keyof import("./types").Image, never>> & Omit<import("./types").Image, keyof import("./types").Image> & Required<Pick<import("./types").WithColor, "colorIndex">> & Partial<Record<"color", never>> & Omit<import("./types").WithColor, keyof import("./types").WithColor>, "ref">) & import("react").RefAttributes<HTMLImageElement>>;
@@ -1,6 +1,6 @@
1
- import { type AvatarSize, type Color } from './types';
2
- export declare const anonymousAvatarIconSizes: Record<AvatarSize, string>;
3
- export declare const AvatarSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
4
- export declare const badgeSizes: Record<AvatarSize, string>;
5
- export declare const colorsMap: Record<string, Color>;
6
- export declare const colors: string[];
1
+ import { type AvatarSize, type Color } from './types';
2
+ export declare const anonymousAvatarIconSizes: Record<AvatarSize, string>;
3
+ export declare const AvatarSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
4
+ export declare const badgeSizes: Record<AvatarSize, string>;
5
+ export declare const colorsMap: Record<string, Color>;
6
+ export declare const colors: string[];
@@ -1,2 +1,2 @@
1
- export { Avatar } from './avatar';
2
- export { type AvatarProps } from './types';
1
+ export { Avatar } from './avatar';
2
+ export { type AvatarProps } from './types';
@@ -1,36 +1,36 @@
1
- import { type BoxBlue50, type DarkBlue50, type GreenLight50, type Grimace50, type LightBlue50, type Orange50, type PurpleRain50, type WatermelonRed50, type Yellorange50, type Yellow50 } from '@box/blueprint-web-assets/tokens/tokens';
2
- import { type ReactElement } from 'react';
3
- import { type RequireAllOrNone, type RequireExactlyOne } from 'type-fest';
4
- import { type AvatarSizes } from './consts';
5
- export type AvatarSize = (typeof AvatarSizes)[number];
6
- export type Color = typeof BoxBlue50 | typeof DarkBlue50 | typeof Yellow50 | typeof GreenLight50 | typeof Yellorange50 | typeof LightBlue50 | typeof WatermelonRed50 | typeof PurpleRain50 | typeof Orange50 | typeof Grimace50;
7
- export interface Image {
8
- /** The image to display. When the image is loading or if it fails to load, the fallback is displayed.
9
- * The fallback is the text. If the text is not provided, the fallback is the anonymous user image.
10
- */
11
- src?: string;
12
- /** The alt text for the image */
13
- alt?: string;
14
- }
15
- export interface WithColor {
16
- /** The color of the avatar background when displaying the letter or the number */
17
- color?: Color;
18
- /** The index of the color of the avatar background when displaying the letter or the number.
19
- * A convenience replacement for the color prop to facilitate providing a hash of the user data.
20
- * It is ignored when the color prop is provided. */
21
- colorIndex?: number;
22
- }
23
- export type AvatarProps = React.ComponentPropsWithRef<'img'> & {
24
- /** Whether to display the anonymous user image */
25
- anonymous?: boolean;
26
- /** The badge element. This prop will be removed in a future major release. Please use IconBadge or StatusBadge components instead.
27
- * @deprecated
28
- */
29
- children?: ReactElement;
30
- /** The size of the avatar */
31
- size?: AvatarSize;
32
- /** The text to display, e.g. the user initial or the number of users editing the document.
33
- * Numbers can be formatted with formatNumber() that is exposed along with the Avatar component.
34
- */
35
- text?: string;
36
- } & RequireAllOrNone<Image, keyof Image> & RequireExactlyOne<WithColor, keyof WithColor>;
1
+ import { type BoxBlue50, type DarkBlue50, type GreenLight50, type Grimace50, type LightBlue50, type Orange50, type PurpleRain50, type WatermelonRed50, type Yellorange50, type Yellow50 } from '@box/blueprint-web-assets/tokens/tokens';
2
+ import { type ReactElement } from 'react';
3
+ import { type RequireAllOrNone, type RequireExactlyOne } from 'type-fest';
4
+ import { type AvatarSizes } from './consts';
5
+ export type AvatarSize = (typeof AvatarSizes)[number];
6
+ export type Color = typeof BoxBlue50 | typeof DarkBlue50 | typeof Yellow50 | typeof GreenLight50 | typeof Yellorange50 | typeof LightBlue50 | typeof WatermelonRed50 | typeof PurpleRain50 | typeof Orange50 | typeof Grimace50;
7
+ export interface Image {
8
+ /** The image to display. When the image is loading or if it fails to load, the fallback is displayed.
9
+ * The fallback is the text. If the text is not provided, the fallback is the anonymous user image.
10
+ */
11
+ src?: string;
12
+ /** The alt text for the image */
13
+ alt?: string;
14
+ }
15
+ export interface WithColor {
16
+ /** The color of the avatar background when displaying the letter or the number */
17
+ color?: Color;
18
+ /** The index of the color of the avatar background when displaying the letter or the number.
19
+ * A convenience replacement for the color prop to facilitate providing a hash of the user data.
20
+ * It is ignored when the color prop is provided. */
21
+ colorIndex?: number;
22
+ }
23
+ export type AvatarProps = React.ComponentPropsWithRef<'img'> & {
24
+ /** Whether to display the anonymous user image */
25
+ anonymous?: boolean;
26
+ /** The badge element. This prop will be removed in a future major release. Please use IconBadge or StatusBadge components instead.
27
+ * @deprecated
28
+ */
29
+ children?: ReactElement;
30
+ /** The size of the avatar */
31
+ size?: AvatarSize;
32
+ /** The text to display, e.g. the user initial or the number of users editing the document.
33
+ * Numbers can be formatted with formatNumber() that is exposed along with the Avatar component.
34
+ */
35
+ text?: string;
36
+ } & RequireAllOrNone<Image, keyof Image> & RequireExactlyOne<WithColor, keyof WithColor>;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
- import { type BadgeProps } from './types';
3
- export type BaseBadgeProps = Omit<BadgeProps, 'children'> & {
4
- /** The color of the badge background. */
5
- backgroundColor: string;
6
- className?: string;
7
- /** The child element to display in the badge: string for NumericBadge and svg for IconBadge). */
8
- children?: React.ReactElement;
9
- };
10
- export declare const BaseBadge: ({ backgroundColor, className, children, size, offset }: BaseBadgeProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type BadgeProps } from './types';
2
+ export type BaseBadgeProps = Omit<BadgeProps, 'children'> & {
3
+ /** The color of the badge background. */
4
+ backgroundColor: string;
5
+ className?: string;
6
+ /** The child element to display in the badge: string for NumericBadge and svg for IconBadge). */
7
+ children?: React.ReactElement;
8
+ };
9
+ export declare const BaseBadge: ({ backgroundColor, className, children, size, offset }: BaseBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
- import { type BadgeProps } from './types';
2
- export interface IconBadgeProps extends BadgeProps {
3
- /** The variant of the icon badge. */
4
- variant: 'file-pdf' | 'file-docs' | 'file-sheets' | 'file-image' | 'file-canvas' | 'file-pages' | 'file-keynote' | 'file-boxnote' | 'file-video' | 'folder-external' | 'folder-shared' | 'action-relay' | 'action-mention' | 'action-task' | 'action-taskapproval' | 'action-annotation' | 'action-performed-completed' | 'action-performed-rejected' | 'collaborator-external' | 'collaborator-admin' | 'collaborator-coadmin' | 'content-pin' | 'content-collection' | 'content-offline' | 'content-progress' | 'alert-error';
5
- }
6
- export declare const IconBadgeVariants: ("file-pdf" | "file-docs" | "file-sheets" | "file-image" | "file-canvas" | "file-pages" | "file-keynote" | "file-boxnote" | "file-video" | "folder-external" | "folder-shared" | "action-relay" | "action-mention" | "action-task" | "action-taskapproval" | "action-annotation" | "action-performed-completed" | "action-performed-rejected" | "collaborator-external" | "collaborator-admin" | "collaborator-coadmin" | "content-pin" | "content-collection" | "content-offline" | "content-progress" | "alert-error")[];
7
- export declare const IconBadge: (props: IconBadgeProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type BadgeProps } from './types';
2
+ export interface IconBadgeProps extends BadgeProps {
3
+ /** The variant of the icon badge. */
4
+ variant: 'file-pdf' | 'file-docs' | 'file-sheets' | 'file-image' | 'file-canvas' | 'file-pages' | 'file-keynote' | 'file-boxnote' | 'file-video' | 'folder-external' | 'folder-shared' | 'action-relay' | 'action-mention' | 'action-task' | 'action-taskapproval' | 'action-annotation' | 'action-performed-completed' | 'action-performed-rejected' | 'collaborator-external' | 'collaborator-admin' | 'collaborator-coadmin' | 'content-pin' | 'content-collection' | 'content-offline' | 'content-progress' | 'alert-error';
5
+ }
6
+ export declare const IconBadgeVariants: Array<IconBadgeProps["variant"]>;
7
+ export declare const IconBadge: (props: IconBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- export { IconBadge, type IconBadgeProps } from './icon-badge';
2
- export { NumericBadge, type NumericBadgeProps } from './numeric-badge';
3
- export { StatusBadge, type StatusBadgeProps } from './status-badge';
1
+ export { IconBadge, type IconBadgeProps } from './icon-badge';
2
+ export { NumericBadge, type NumericBadgeProps } from './numeric-badge';
3
+ export { StatusBadge, type StatusBadgeProps } from './status-badge';
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- import { type BadgeProps } from './types';
3
- export interface NumericBadgeProps extends Omit<BadgeProps, 'size' | 'children'> {
4
- /** The numeric value to inform users of the total count. */
5
- value: string;
6
- /** Accepts exactly a single child component. Badge will be displayed over the child. */
7
- children?: React.ReactElement;
8
- /** The render prop must be passed in the case of a deeply nested child (e.g., the child is wrapped by a tooltip). */
9
- render?(ariaDescribedBy: string, ref?: React.Ref<unknown>): React.ReactElement;
10
- }
11
- export declare const NumericBadge: React.ForwardRefExoticComponent<NumericBadgeProps & React.RefAttributes<unknown>>;
1
+ import React from 'react';
2
+ import { type BadgeProps } from './types';
3
+ export interface NumericBadgeProps extends Omit<BadgeProps, 'size' | 'children'> {
4
+ /** The numeric value to inform users of the total count. */
5
+ value: string;
6
+ /** Accepts exactly a single child component. Badge will be displayed over the child. */
7
+ children?: React.ReactElement;
8
+ /** The render prop must be passed in the case of a deeply nested child (e.g., the child is wrapped by a tooltip). */
9
+ render?(ariaDescribedBy: string, ref?: React.Ref<unknown>): React.ReactElement;
10
+ }
11
+ export declare const NumericBadge: React.ForwardRefExoticComponent<NumericBadgeProps & React.RefAttributes<unknown>>;
@@ -1,7 +1,7 @@
1
- import { type BadgeProps } from './types';
2
- export declare const StatusBadgeVariants: readonly ["online"];
3
- export interface StatusBadgeProps extends BadgeProps {
4
- /** The variant for the status. */
5
- variant: (typeof StatusBadgeVariants)[number];
6
- }
7
- export declare const StatusBadge: (props: StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { type BadgeProps } from './types';
2
+ export declare const StatusBadgeVariants: readonly ["online"];
3
+ export interface StatusBadgeProps extends BadgeProps {
4
+ /** The variant for the status. */
5
+ variant: (typeof StatusBadgeVariants)[number];
6
+ }
7
+ export declare const StatusBadge: (props: StatusBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,15 @@
1
- import type React from 'react';
2
- export declare const BadgeSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
3
- export interface BadgeProps {
4
- /** Accepts exactly a single child component. Badge will be displayed over the child. */
5
- children: React.ReactElement;
6
- /** The size of the badge */
7
- size: (typeof BadgeSizes)[number];
8
- /** The offset in pixels from the default position of the badge. Accepts positive and negative integers. */
9
- offset?: {
10
- top?: number;
11
- right?: number;
12
- bottom?: number;
13
- left?: number;
14
- };
15
- }
1
+ import type React from 'react';
2
+ export declare const BadgeSizes: readonly ["small", "medium", "large", "xlarge", "xxlarge"];
3
+ export interface BadgeProps {
4
+ /** Accepts exactly a single child component. Badge will be displayed over the child. */
5
+ children: React.ReactElement;
6
+ /** The size of the badge */
7
+ size: (typeof BadgeSizes)[number];
8
+ /** The offset in pixels from the default position of the badge. Accepts positive and negative integers. */
9
+ offset?: {
10
+ top?: number;
11
+ right?: number;
12
+ bottom?: number;
13
+ left?: number;
14
+ };
15
+ }
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const useSingleChildCheck: (children: React.ReactNode) => void;
1
+ import React from 'react';
2
+ export declare const useSingleChildCheck: (children: React.ReactNode) => void;
@@ -1,2 +1,2 @@
1
- import { type BrandingStylesProps } from './types';
2
- export declare const BrandingStyles: ({ brandColor }: BrandingStylesProps) => null;
1
+ import { type BrandingStylesProps } from './types';
2
+ export declare const BrandingStyles: ({ brandColor }: BrandingStylesProps) => null;
@@ -1,3 +1,3 @@
1
- export * from './branding-styles';
2
- export * from './types';
3
- export * from './useCustomBranding';
1
+ export * from './branding-styles';
2
+ export * from './types';
3
+ export * from './useCustomBranding';
@@ -1,4 +1,4 @@
1
- export interface BrandingStylesProps {
2
- /** Color value used for generating theme color palette */
3
- brandColor: string;
4
- }
1
+ export interface BrandingStylesProps {
2
+ /** Color value used for generating theme color palette */
3
+ brandColor: string;
4
+ }
@@ -1 +1 @@
1
- export declare const useCustomBranding: (brandColor: string) => void;
1
+ export declare const useCustomBranding: (brandColor: string) => void;