@flipdish/ui-library 0.31.4 → 0.31.6

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 (555) hide show
  1. package/dist/components/atoms/AppStoreButton/index.cjs +4 -0
  2. package/dist/components/atoms/AppStoreButton/index.cjs.map +1 -1
  3. package/dist/components/atoms/AppStoreButton/index.d.ts +9 -0
  4. package/dist/components/atoms/AppStoreButton/index.d.ts.map +1 -1
  5. package/dist/components/atoms/AppStoreButton/index.js +4 -0
  6. package/dist/components/atoms/AppStoreButton/index.js.map +1 -1
  7. package/dist/components/atoms/Avatar/components/AvatarBase.cjs.map +1 -1
  8. package/dist/components/atoms/Avatar/components/AvatarBase.d.ts +4 -0
  9. package/dist/components/atoms/Avatar/components/AvatarBase.d.ts.map +1 -1
  10. package/dist/components/atoms/Avatar/components/AvatarBase.js.map +1 -1
  11. package/dist/components/atoms/BackgroundPattern/index.cjs +1 -1
  12. package/dist/components/atoms/BackgroundPattern/index.cjs.map +1 -1
  13. package/dist/components/atoms/BackgroundPattern/index.d.ts +5 -1
  14. package/dist/components/atoms/BackgroundPattern/index.d.ts.map +1 -1
  15. package/dist/components/atoms/BackgroundPattern/index.js +1 -1
  16. package/dist/components/atoms/BackgroundPattern/index.js.map +1 -1
  17. package/dist/components/atoms/Badge/index.cjs +6 -0
  18. package/dist/components/atoms/Badge/index.cjs.map +1 -1
  19. package/dist/components/atoms/Badge/index.d.ts +11 -0
  20. package/dist/components/atoms/Badge/index.d.ts.map +1 -1
  21. package/dist/components/atoms/Badge/index.js +6 -0
  22. package/dist/components/atoms/Badge/index.js.map +1 -1
  23. package/dist/components/atoms/Button/index.cjs.map +1 -1
  24. package/dist/components/atoms/Button/index.d.ts +3 -0
  25. package/dist/components/atoms/Button/index.d.ts.map +1 -1
  26. package/dist/components/atoms/Button/index.js.map +1 -1
  27. package/dist/components/atoms/Checkbox/index.cjs +1 -0
  28. package/dist/components/atoms/Checkbox/index.cjs.map +1 -1
  29. package/dist/components/atoms/Checkbox/index.d.ts +11 -0
  30. package/dist/components/atoms/Checkbox/index.d.ts.map +1 -1
  31. package/dist/components/atoms/Checkbox/index.js +1 -0
  32. package/dist/components/atoms/Checkbox/index.js.map +1 -1
  33. package/dist/components/atoms/CloseButton/index.cjs +1 -1
  34. package/dist/components/atoms/CloseButton/index.cjs.map +1 -1
  35. package/dist/components/atoms/CloseButton/index.d.ts +4 -1
  36. package/dist/components/atoms/CloseButton/index.d.ts.map +1 -1
  37. package/dist/components/atoms/CloseButton/index.js +1 -1
  38. package/dist/components/atoms/CloseButton/index.js.map +1 -1
  39. package/dist/components/atoms/Dot/index.cjs.map +1 -1
  40. package/dist/components/atoms/Dot/index.d.ts +1 -0
  41. package/dist/components/atoms/Dot/index.d.ts.map +1 -1
  42. package/dist/components/atoms/Dot/index.js.map +1 -1
  43. package/dist/components/atoms/FeaturedIcon/index.cjs +1 -1
  44. package/dist/components/atoms/FeaturedIcon/index.cjs.map +1 -1
  45. package/dist/components/atoms/FeaturedIcon/index.d.ts +8 -1
  46. package/dist/components/atoms/FeaturedIcon/index.d.ts.map +1 -1
  47. package/dist/components/atoms/FeaturedIcon/index.js +1 -1
  48. package/dist/components/atoms/FeaturedIcon/index.js.map +1 -1
  49. package/dist/components/atoms/Illustration/components/Box.cjs.map +1 -1
  50. package/dist/components/atoms/Illustration/components/Box.d.ts +3 -0
  51. package/dist/components/atoms/Illustration/components/Box.d.ts.map +1 -1
  52. package/dist/components/atoms/Illustration/components/Box.js.map +1 -1
  53. package/dist/components/atoms/Illustration/components/Cloud.cjs.map +1 -1
  54. package/dist/components/atoms/Illustration/components/Cloud.d.ts +3 -0
  55. package/dist/components/atoms/Illustration/components/Cloud.d.ts.map +1 -1
  56. package/dist/components/atoms/Illustration/components/Cloud.js.map +1 -1
  57. package/dist/components/atoms/Illustration/components/CreditCard.cjs.map +1 -1
  58. package/dist/components/atoms/Illustration/components/CreditCard.d.ts +3 -0
  59. package/dist/components/atoms/Illustration/components/CreditCard.d.ts.map +1 -1
  60. package/dist/components/atoms/Illustration/components/CreditCard.js.map +1 -1
  61. package/dist/components/atoms/Illustration/components/Documents.cjs.map +1 -1
  62. package/dist/components/atoms/Illustration/components/Documents.d.ts +3 -0
  63. package/dist/components/atoms/Illustration/components/Documents.d.ts.map +1 -1
  64. package/dist/components/atoms/Illustration/components/Documents.js.map +1 -1
  65. package/dist/components/atoms/Illustration/index.cjs.map +1 -1
  66. package/dist/components/atoms/Illustration/index.d.ts +4 -0
  67. package/dist/components/atoms/Illustration/index.d.ts.map +1 -1
  68. package/dist/components/atoms/Illustration/index.js.map +1 -1
  69. package/dist/components/atoms/Input/index.cjs +2 -0
  70. package/dist/components/atoms/Input/index.cjs.map +1 -1
  71. package/dist/components/atoms/Input/index.d.ts +5 -4
  72. package/dist/components/atoms/Input/index.d.ts.map +1 -1
  73. package/dist/components/atoms/Input/index.js +2 -0
  74. package/dist/components/atoms/Input/index.js.map +1 -1
  75. package/dist/components/atoms/ProgressBar/index.cjs +1 -1
  76. package/dist/components/atoms/ProgressBar/index.d.ts +1 -1
  77. package/dist/components/atoms/ProgressBar/index.js +1 -1
  78. package/dist/components/atoms/QRCode/index.cjs +2 -1
  79. package/dist/components/atoms/QRCode/index.cjs.map +1 -1
  80. package/dist/components/atoms/QRCode/index.d.ts +2 -1
  81. package/dist/components/atoms/QRCode/index.d.ts.map +1 -1
  82. package/dist/components/atoms/QRCode/index.js +2 -1
  83. package/dist/components/atoms/QRCode/index.js.map +1 -1
  84. package/dist/components/atoms/RadioButton/index.cjs +2 -0
  85. package/dist/components/atoms/RadioButton/index.cjs.map +1 -1
  86. package/dist/components/atoms/RadioButton/index.d.ts +11 -0
  87. package/dist/components/atoms/RadioButton/index.d.ts.map +1 -1
  88. package/dist/components/atoms/RadioButton/index.js +2 -0
  89. package/dist/components/atoms/RadioButton/index.js.map +1 -1
  90. package/dist/components/atoms/RatingBadge/index.cjs +1 -0
  91. package/dist/components/atoms/RatingBadge/index.cjs.map +1 -1
  92. package/dist/components/atoms/RatingBadge/index.d.ts +5 -0
  93. package/dist/components/atoms/RatingBadge/index.d.ts.map +1 -1
  94. package/dist/components/atoms/RatingBadge/index.js +1 -0
  95. package/dist/components/atoms/RatingBadge/index.js.map +1 -1
  96. package/dist/components/atoms/RatingStars/index.cjs +1 -0
  97. package/dist/components/atoms/RatingStars/index.cjs.map +1 -1
  98. package/dist/components/atoms/RatingStars/index.d.ts +1 -0
  99. package/dist/components/atoms/RatingStars/index.d.ts.map +1 -1
  100. package/dist/components/atoms/RatingStars/index.js +1 -0
  101. package/dist/components/atoms/RatingStars/index.js.map +1 -1
  102. package/dist/components/atoms/Slider/index.cjs.map +1 -1
  103. package/dist/components/atoms/Slider/index.d.ts +2 -0
  104. package/dist/components/atoms/Slider/index.d.ts.map +1 -1
  105. package/dist/components/atoms/Slider/index.js.map +1 -1
  106. package/dist/components/atoms/SocialButton/index.cjs.map +1 -1
  107. package/dist/components/atoms/SocialButton/index.d.ts +5 -0
  108. package/dist/components/atoms/SocialButton/index.d.ts.map +1 -1
  109. package/dist/components/atoms/SocialButton/index.js.map +1 -1
  110. package/dist/components/atoms/Toggle/index.cjs +1 -0
  111. package/dist/components/atoms/Toggle/index.cjs.map +1 -1
  112. package/dist/components/atoms/Toggle/index.d.ts +5 -0
  113. package/dist/components/atoms/Toggle/index.d.ts.map +1 -1
  114. package/dist/components/atoms/Toggle/index.js +1 -0
  115. package/dist/components/atoms/Toggle/index.js.map +1 -1
  116. package/dist/components/atoms/Tooltip/index.cjs +1 -0
  117. package/dist/components/atoms/Tooltip/index.cjs.map +1 -1
  118. package/dist/components/atoms/Tooltip/index.d.ts +1 -0
  119. package/dist/components/atoms/Tooltip/index.d.ts.map +1 -1
  120. package/dist/components/atoms/Tooltip/index.js +1 -0
  121. package/dist/components/atoms/Tooltip/index.js.map +1 -1
  122. package/dist/components/atoms/UtilityButton/index.cjs +1 -1
  123. package/dist/components/atoms/UtilityButton/index.d.ts +1 -1
  124. package/dist/components/atoms/UtilityButton/index.js +1 -1
  125. package/dist/components/molecules/BadgeGroup/index.cjs +1 -2
  126. package/dist/components/molecules/BadgeGroup/index.cjs.map +1 -1
  127. package/dist/components/molecules/BadgeGroup/index.d.ts +8 -2
  128. package/dist/components/molecules/BadgeGroup/index.d.ts.map +1 -1
  129. package/dist/components/molecules/BadgeGroup/index.js +1 -2
  130. package/dist/components/molecules/BadgeGroup/index.js.map +1 -1
  131. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbAccountItem.cjs.map +1 -1
  132. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbAccountItem.d.ts +3 -0
  133. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbAccountItem.d.ts.map +1 -1
  134. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbAccountItem.js.map +1 -1
  135. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbItem.cjs.map +1 -1
  136. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbItem.d.ts +8 -0
  137. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbItem.d.ts.map +1 -1
  138. package/dist/components/molecules/Breadcrumbs/components/BreadcrumbItem.js.map +1 -1
  139. package/dist/components/molecules/Breadcrumbs/index.cjs +1 -2
  140. package/dist/components/molecules/Breadcrumbs/index.cjs.map +1 -1
  141. package/dist/components/molecules/Breadcrumbs/index.d.ts +5 -2
  142. package/dist/components/molecules/Breadcrumbs/index.d.ts.map +1 -1
  143. package/dist/components/molecules/Breadcrumbs/index.js +1 -2
  144. package/dist/components/molecules/Breadcrumbs/index.js.map +1 -1
  145. package/dist/components/molecules/ButtonGroup/index.cjs.map +1 -1
  146. package/dist/components/molecules/ButtonGroup/index.d.ts +2 -0
  147. package/dist/components/molecules/ButtonGroup/index.d.ts.map +1 -1
  148. package/dist/components/molecules/ButtonGroup/index.js.map +1 -1
  149. package/dist/components/molecules/CodeSnippet/index.cjs.map +1 -1
  150. package/dist/components/molecules/CodeSnippet/index.d.ts +1 -0
  151. package/dist/components/molecules/CodeSnippet/index.d.ts.map +1 -1
  152. package/dist/components/molecules/CodeSnippet/index.js.map +1 -1
  153. package/dist/components/molecules/ContentDivider/index.cjs.map +1 -1
  154. package/dist/components/molecules/ContentDivider/index.d.ts +3 -0
  155. package/dist/components/molecules/ContentDivider/index.d.ts.map +1 -1
  156. package/dist/components/molecules/ContentDivider/index.js.map +1 -1
  157. package/dist/components/molecules/CreditCard/index.cjs +1 -2
  158. package/dist/components/molecules/CreditCard/index.cjs.map +1 -1
  159. package/dist/components/molecules/CreditCard/index.d.ts +8 -2
  160. package/dist/components/molecules/CreditCard/index.d.ts.map +1 -1
  161. package/dist/components/molecules/CreditCard/index.js +1 -2
  162. package/dist/components/molecules/CreditCard/index.js.map +1 -1
  163. package/dist/components/molecules/EmptyState/index.cjs +1 -2
  164. package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
  165. package/dist/components/molecules/EmptyState/index.d.ts +10 -2
  166. package/dist/components/molecules/EmptyState/index.d.ts.map +1 -1
  167. package/dist/components/molecules/EmptyState/index.js +1 -2
  168. package/dist/components/molecules/EmptyState/index.js.map +1 -1
  169. package/dist/components/molecules/Modal/index.cjs +4 -4
  170. package/dist/components/molecules/Modal/index.cjs.map +1 -1
  171. package/dist/components/molecules/Modal/index.d.ts +4 -4
  172. package/dist/components/molecules/Modal/index.d.ts.map +1 -1
  173. package/dist/components/molecules/Modal/index.js +4 -4
  174. package/dist/components/molecules/Modal/index.js.map +1 -1
  175. package/dist/components/molecules/Notification/index.cjs +6 -0
  176. package/dist/components/molecules/Notification/index.cjs.map +1 -1
  177. package/dist/components/molecules/Notification/index.d.ts +16 -0
  178. package/dist/components/molecules/Notification/index.d.ts.map +1 -1
  179. package/dist/components/molecules/Notification/index.js +6 -0
  180. package/dist/components/molecules/Notification/index.js.map +1 -1
  181. package/dist/components/molecules/Pagination/components/PaginationBase.cjs.map +1 -1
  182. package/dist/components/molecules/Pagination/components/PaginationBase.d.ts +1 -0
  183. package/dist/components/molecules/Pagination/components/PaginationBase.d.ts.map +1 -1
  184. package/dist/components/molecules/Pagination/components/PaginationBase.js.map +1 -1
  185. package/dist/components/molecules/Pagination/index.cjs +3 -0
  186. package/dist/components/molecules/Pagination/index.cjs.map +1 -1
  187. package/dist/components/molecules/Pagination/index.d.ts +3 -0
  188. package/dist/components/molecules/Pagination/index.d.ts.map +1 -1
  189. package/dist/components/molecules/Pagination/index.js +3 -0
  190. package/dist/components/molecules/Pagination/index.js.map +1 -1
  191. package/dist/components/molecules/ProgressSteps/index.cjs +1 -2
  192. package/dist/components/molecules/ProgressSteps/index.cjs.map +1 -1
  193. package/dist/components/molecules/ProgressSteps/index.d.ts +1 -2
  194. package/dist/components/molecules/ProgressSteps/index.d.ts.map +1 -1
  195. package/dist/components/molecules/ProgressSteps/index.js +1 -2
  196. package/dist/components/molecules/ProgressSteps/index.js.map +1 -1
  197. package/dist/components/molecules/ProgressSteps/progressSteps.types.d.ts +8 -0
  198. package/dist/components/molecules/ProgressSteps/progressSteps.types.d.ts.map +1 -1
  199. package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.cjs.map +1 -1
  200. package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts +2 -0
  201. package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts.map +1 -1
  202. package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.js.map +1 -1
  203. package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.cjs.map +1 -1
  204. package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.d.ts +2 -0
  205. package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.d.ts.map +1 -1
  206. package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.js.map +1 -1
  207. package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.cjs.map +1 -1
  208. package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.d.ts +2 -0
  209. package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.d.ts.map +1 -1
  210. package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.js.map +1 -1
  211. package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.cjs.map +1 -1
  212. package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.d.ts +2 -0
  213. package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.d.ts.map +1 -1
  214. package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.js.map +1 -1
  215. package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.cjs.map +1 -1
  216. package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.d.ts +2 -0
  217. package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.d.ts.map +1 -1
  218. package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.js.map +1 -1
  219. package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.cjs.map +1 -1
  220. package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.d.ts +2 -0
  221. package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.d.ts.map +1 -1
  222. package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.js.map +1 -1
  223. package/dist/components/molecules/SectionFooter/index.cjs.map +1 -1
  224. package/dist/components/molecules/SectionFooter/index.d.ts +1 -0
  225. package/dist/components/molecules/SectionFooter/index.d.ts.map +1 -1
  226. package/dist/components/molecules/SectionFooter/index.js.map +1 -1
  227. package/dist/components/molecules/Select/index.cjs.map +1 -1
  228. package/dist/components/molecules/Select/index.d.ts +4 -0
  229. package/dist/components/molecules/Select/index.d.ts.map +1 -1
  230. package/dist/components/molecules/Select/index.js.map +1 -1
  231. package/dist/components/molecules/Tabs/index.cjs +3 -0
  232. package/dist/components/molecules/Tabs/index.cjs.map +1 -1
  233. package/dist/components/molecules/Tabs/index.d.ts +4 -0
  234. package/dist/components/molecules/Tabs/index.d.ts.map +1 -1
  235. package/dist/components/molecules/Tabs/index.js +3 -0
  236. package/dist/components/molecules/Tabs/index.js.map +1 -1
  237. package/dist/components/molecules/Tags/index.cjs +4 -2
  238. package/dist/components/molecules/Tags/index.cjs.map +1 -1
  239. package/dist/components/molecules/Tags/index.d.ts +6 -2
  240. package/dist/components/molecules/Tags/index.d.ts.map +1 -1
  241. package/dist/components/molecules/Tags/index.js +4 -2
  242. package/dist/components/molecules/Tags/index.js.map +1 -1
  243. package/dist/components/molecules/TextArea/index.cjs +1 -0
  244. package/dist/components/molecules/TextArea/index.cjs.map +1 -1
  245. package/dist/components/molecules/TextArea/index.d.ts +1 -0
  246. package/dist/components/molecules/TextArea/index.d.ts.map +1 -1
  247. package/dist/components/molecules/TextArea/index.js +1 -0
  248. package/dist/components/molecules/TextArea/index.js.map +1 -1
  249. package/dist/components/molecules/VerificationCodeInput/index.cjs.map +1 -1
  250. package/dist/components/molecules/VerificationCodeInput/index.d.ts +4 -0
  251. package/dist/components/molecules/VerificationCodeInput/index.d.ts.map +1 -1
  252. package/dist/components/molecules/VerificationCodeInput/index.js.map +1 -1
  253. package/dist/components/organisms/ActivityFeed/index.cjs.map +1 -1
  254. package/dist/components/organisms/ActivityFeed/index.d.ts +11 -0
  255. package/dist/components/organisms/ActivityFeed/index.d.ts.map +1 -1
  256. package/dist/components/organisms/ActivityFeed/index.js.map +1 -1
  257. package/dist/components/organisms/Calendar/index.cjs.map +1 -1
  258. package/dist/components/organisms/Calendar/index.d.ts +3 -0
  259. package/dist/components/organisms/Calendar/index.d.ts.map +1 -1
  260. package/dist/components/organisms/Calendar/index.js.map +1 -1
  261. package/dist/components/organisms/Charts/components/Metrics.cjs.map +1 -1
  262. package/dist/components/organisms/Charts/components/Metrics.d.ts +8 -0
  263. package/dist/components/organisms/Charts/components/Metrics.d.ts.map +1 -1
  264. package/dist/components/organisms/Charts/components/Metrics.js.map +1 -1
  265. package/dist/components/organisms/Charts/index.d.ts +0 -2
  266. package/dist/components/organisms/Charts/index.d.ts.map +1 -1
  267. package/dist/components/organisms/ColorPicker/index.cjs +1 -0
  268. package/dist/components/organisms/ColorPicker/index.cjs.map +1 -1
  269. package/dist/components/organisms/ColorPicker/index.d.ts +2 -0
  270. package/dist/components/organisms/ColorPicker/index.d.ts.map +1 -1
  271. package/dist/components/organisms/ColorPicker/index.js +1 -0
  272. package/dist/components/organisms/ColorPicker/index.js.map +1 -1
  273. package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.cjs.map +1 -1
  274. package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.d.ts +1 -0
  275. package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.d.ts.map +1 -1
  276. package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.js.map +1 -1
  277. package/dist/components/organisms/CommandMenu/index.cjs +5 -0
  278. package/dist/components/organisms/CommandMenu/index.cjs.map +1 -1
  279. package/dist/components/organisms/CommandMenu/index.d.ts +13 -0
  280. package/dist/components/organisms/CommandMenu/index.d.ts.map +1 -1
  281. package/dist/components/organisms/CommandMenu/index.js +5 -0
  282. package/dist/components/organisms/CommandMenu/index.js.map +1 -1
  283. package/dist/components/organisms/DatePicker/components/DateRangePicker.cjs.map +1 -1
  284. package/dist/components/organisms/DatePicker/components/DateRangePicker.d.ts +1 -0
  285. package/dist/components/organisms/DatePicker/components/DateRangePicker.d.ts.map +1 -1
  286. package/dist/components/organisms/DatePicker/components/DateRangePicker.js.map +1 -1
  287. package/dist/components/organisms/DatePicker/components/InputDate.cjs.map +1 -1
  288. package/dist/components/organisms/DatePicker/components/InputDate.d.ts +4 -0
  289. package/dist/components/organisms/DatePicker/components/InputDate.d.ts.map +1 -1
  290. package/dist/components/organisms/DatePicker/components/InputDate.js.map +1 -1
  291. package/dist/components/organisms/DatePicker/index.cjs.map +1 -1
  292. package/dist/components/organisms/DatePicker/index.d.ts +1 -0
  293. package/dist/components/organisms/DatePicker/index.d.ts.map +1 -1
  294. package/dist/components/organisms/DatePicker/index.js.map +1 -1
  295. package/dist/components/organisms/FileUpload/index.cjs +7 -0
  296. package/dist/components/organisms/FileUpload/index.cjs.map +1 -1
  297. package/dist/components/organisms/FileUpload/index.d.ts +7 -0
  298. package/dist/components/organisms/FileUpload/index.d.ts.map +1 -1
  299. package/dist/components/organisms/FileUpload/index.js +7 -0
  300. package/dist/components/organisms/FileUpload/index.js.map +1 -1
  301. package/dist/components/organisms/GradientPicker/providers/GradientPicker.provider.cjs.map +1 -1
  302. package/dist/components/organisms/GradientPicker/providers/GradientPicker.provider.d.ts +1 -0
  303. package/dist/components/organisms/GradientPicker/providers/GradientPicker.provider.d.ts.map +1 -1
  304. package/dist/components/organisms/GradientPicker/providers/GradientPicker.provider.js.map +1 -1
  305. package/dist/components/organisms/ImagePicker/providers/ImagePicker.provider.cjs.map +1 -1
  306. package/dist/components/organisms/ImagePicker/providers/ImagePicker.provider.d.ts +1 -0
  307. package/dist/components/organisms/ImagePicker/providers/ImagePicker.provider.d.ts.map +1 -1
  308. package/dist/components/organisms/ImagePicker/providers/ImagePicker.provider.js.map +1 -1
  309. package/dist/components/organisms/Messaging/index.cjs +1 -0
  310. package/dist/components/organisms/Messaging/index.cjs.map +1 -1
  311. package/dist/components/organisms/Messaging/index.d.ts +3 -0
  312. package/dist/components/organisms/Messaging/index.d.ts.map +1 -1
  313. package/dist/components/organisms/Messaging/index.js +1 -0
  314. package/dist/components/organisms/Messaging/index.js.map +1 -1
  315. package/dist/components/organisms/PageHeader/index.cjs.map +1 -1
  316. package/dist/components/organisms/PageHeader/index.d.ts +1 -0
  317. package/dist/components/organisms/PageHeader/index.d.ts.map +1 -1
  318. package/dist/components/organisms/PageHeader/index.js.map +1 -1
  319. package/dist/components/organisms/SlideoutMenu/index.cjs +3 -0
  320. package/dist/components/organisms/SlideoutMenu/index.cjs.map +1 -1
  321. package/dist/components/organisms/SlideoutMenu/index.d.ts +6 -0
  322. package/dist/components/organisms/SlideoutMenu/index.d.ts.map +1 -1
  323. package/dist/components/organisms/SlideoutMenu/index.js +3 -0
  324. package/dist/components/organisms/SlideoutMenu/index.js.map +1 -1
  325. package/dist/components/organisms/Table/index.cjs +1 -0
  326. package/dist/components/organisms/Table/index.cjs.map +1 -1
  327. package/dist/components/organisms/Table/index.d.ts +2 -0
  328. package/dist/components/organisms/Table/index.d.ts.map +1 -1
  329. package/dist/components/organisms/Table/index.js +1 -0
  330. package/dist/components/organisms/Table/index.js.map +1 -1
  331. package/dist/components/organisms/TextEditor/components/TextEditorButton.cjs.map +1 -1
  332. package/dist/components/organisms/TextEditor/components/TextEditorButton.d.ts +1 -0
  333. package/dist/components/organisms/TextEditor/components/TextEditorButton.d.ts.map +1 -1
  334. package/dist/components/organisms/TextEditor/components/TextEditorButton.js.map +1 -1
  335. package/dist/components/organisms/TextEditor/components/TextEditorToolbar.cjs.map +1 -1
  336. package/dist/components/organisms/TextEditor/components/TextEditorToolbar.d.ts +4 -0
  337. package/dist/components/organisms/TextEditor/components/TextEditorToolbar.d.ts.map +1 -1
  338. package/dist/components/organisms/TextEditor/components/TextEditorToolbar.js.map +1 -1
  339. package/dist/components/organisms/TextEditor/components/TextEditorTooltip.cjs.map +1 -1
  340. package/dist/components/organisms/TextEditor/components/TextEditorTooltip.d.ts +2 -0
  341. package/dist/components/organisms/TextEditor/components/TextEditorTooltip.d.ts.map +1 -1
  342. package/dist/components/organisms/TextEditor/components/TextEditorTooltip.js.map +1 -1
  343. package/dist/components/organisms/TreeView/index.cjs.map +1 -1
  344. package/dist/components/organisms/TreeView/index.d.ts +1 -0
  345. package/dist/components/organisms/TreeView/index.d.ts.map +1 -1
  346. package/dist/components/organisms/TreeView/index.js.map +1 -1
  347. package/dist/components/organisms/VideoPlayer/index.cjs.map +1 -1
  348. package/dist/components/organisms/VideoPlayer/index.d.ts +1 -0
  349. package/dist/components/organisms/VideoPlayer/index.d.ts.map +1 -1
  350. package/dist/components/organisms/VideoPlayer/index.js.map +1 -1
  351. package/dist/components/templates/AppShell/index.cjs +5 -7
  352. package/dist/components/templates/AppShell/index.cjs.map +1 -1
  353. package/dist/components/templates/AppShell/index.d.ts +5 -7
  354. package/dist/components/templates/AppShell/index.d.ts.map +1 -1
  355. package/dist/components/templates/AppShell/index.js +5 -7
  356. package/dist/components/templates/AppShell/index.js.map +1 -1
  357. package/dist/components/templates/NotFoundPage/index.cjs +3 -9
  358. package/dist/components/templates/NotFoundPage/index.cjs.map +1 -1
  359. package/dist/components/templates/NotFoundPage/index.d.ts +3 -9
  360. package/dist/components/templates/NotFoundPage/index.d.ts.map +1 -1
  361. package/dist/components/templates/NotFoundPage/index.js +3 -9
  362. package/dist/components/templates/NotFoundPage/index.js.map +1 -1
  363. package/dist/components/templates/PageLayout/index.cjs +5 -12
  364. package/dist/components/templates/PageLayout/index.cjs.map +1 -1
  365. package/dist/components/templates/PageLayout/index.d.ts +5 -12
  366. package/dist/components/templates/PageLayout/index.d.ts.map +1 -1
  367. package/dist/components/templates/PageLayout/index.js +5 -12
  368. package/dist/components/templates/PageLayout/index.js.map +1 -1
  369. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.cjs +4 -2
  370. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.cjs.map +1 -1
  371. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.d.ts +3 -2
  372. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.d.ts.map +1 -1
  373. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.js +4 -2
  374. package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.js.map +1 -1
  375. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.cjs +1 -2
  376. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.cjs.map +1 -1
  377. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.d.ts +1 -2
  378. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.d.ts.map +1 -1
  379. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.js +1 -2
  380. package/dist/hooks/__internal__/useHotkeyHint/useHotkeyHint.js.map +1 -1
  381. package/dist/hooks/__internal__/useKeySequences/useKeySequences.cjs +4 -2
  382. package/dist/hooks/__internal__/useKeySequences/useKeySequences.cjs.map +1 -1
  383. package/dist/hooks/__internal__/useKeySequences/useKeySequences.d.ts +4 -2
  384. package/dist/hooks/__internal__/useKeySequences/useKeySequences.d.ts.map +1 -1
  385. package/dist/hooks/__internal__/useKeySequences/useKeySequences.js +4 -2
  386. package/dist/hooks/__internal__/useKeySequences/useKeySequences.js.map +1 -1
  387. package/dist/hooks/useBreakpoints/index.cjs +5 -5
  388. package/dist/hooks/useBreakpoints/index.d.ts +5 -5
  389. package/dist/hooks/useBreakpoints/index.js +5 -5
  390. package/dist/hooks/useClipboard/index.cjs +5 -2
  391. package/dist/hooks/useClipboard/index.cjs.map +1 -1
  392. package/dist/hooks/useClipboard/index.d.ts +5 -2
  393. package/dist/hooks/useClipboard/index.d.ts.map +1 -1
  394. package/dist/hooks/useClipboard/index.js +5 -2
  395. package/dist/hooks/useClipboard/index.js.map +1 -1
  396. package/dist/hooks/usePlatform/index.cjs +4 -5
  397. package/dist/hooks/usePlatform/index.cjs.map +1 -1
  398. package/dist/hooks/usePlatform/index.d.ts +4 -5
  399. package/dist/hooks/usePlatform/index.d.ts.map +1 -1
  400. package/dist/hooks/usePlatform/index.js +4 -5
  401. package/dist/hooks/usePlatform/index.js.map +1 -1
  402. package/dist/hooks/useResizeObserver/index.cjs +7 -2
  403. package/dist/hooks/useResizeObserver/index.cjs.map +1 -1
  404. package/dist/hooks/useResizeObserver/index.d.ts +7 -2
  405. package/dist/hooks/useResizeObserver/index.d.ts.map +1 -1
  406. package/dist/hooks/useResizeObserver/index.js +7 -2
  407. package/dist/hooks/useResizeObserver/index.js.map +1 -1
  408. package/dist/hooks/useSidePanel/index.cjs +7 -5
  409. package/dist/hooks/useSidePanel/index.cjs.map +1 -1
  410. package/dist/hooks/useSidePanel/index.d.ts +7 -5
  411. package/dist/hooks/useSidePanel/index.d.ts.map +1 -1
  412. package/dist/hooks/useSidePanel/index.js +7 -5
  413. package/dist/hooks/useSidePanel/index.js.map +1 -1
  414. package/dist/native/components/atoms/Avatar/index.d.ts +3 -1
  415. package/dist/native/components/atoms/Avatar/index.d.ts.map +1 -1
  416. package/dist/native/components/atoms/Avatar/index.js +1 -1
  417. package/dist/native/components/atoms/Avatar/index.js.map +1 -1
  418. package/dist/native/components/atoms/Divider/index.d.ts +1 -1
  419. package/dist/native/components/atoms/Divider/index.js +1 -1
  420. package/dist/native/components/atoms/Dot/index.d.ts +1 -0
  421. package/dist/native/components/atoms/Dot/index.d.ts.map +1 -1
  422. package/dist/native/components/atoms/Dot/index.js.map +1 -1
  423. package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts +24 -4
  424. package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts.map +1 -1
  425. package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.js +24 -4
  426. package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.js.map +1 -1
  427. package/dist/native/utilities/cx/index.d.ts +9 -9
  428. package/dist/native/utilities/cx/index.d.ts.map +1 -1
  429. package/dist/native/utilities/cx/index.js +9 -9
  430. package/dist/native/utilities/cx/index.js.map +1 -1
  431. package/dist/native/utilities/testIdUtils/index.d.ts +44 -10
  432. package/dist/native/utilities/testIdUtils/index.d.ts.map +1 -1
  433. package/dist/native/utilities/testIdUtils/index.js +44 -10
  434. package/dist/native/utilities/testIdUtils/index.js.map +1 -1
  435. package/dist/providers/ErrorBoundary/index.cjs +5 -7
  436. package/dist/providers/ErrorBoundary/index.cjs.map +1 -1
  437. package/dist/providers/ErrorBoundary/index.d.ts +5 -7
  438. package/dist/providers/ErrorBoundary/index.d.ts.map +1 -1
  439. package/dist/providers/ErrorBoundary/index.js +5 -7
  440. package/dist/providers/ErrorBoundary/index.js.map +1 -1
  441. package/dist/providers/PortalContainer/index.cjs +1 -1
  442. package/dist/providers/PortalContainer/index.cjs.map +1 -1
  443. package/dist/providers/PortalContainer/index.d.ts +2 -1
  444. package/dist/providers/PortalContainer/index.d.ts.map +1 -1
  445. package/dist/providers/PortalContainer/index.js +1 -1
  446. package/dist/providers/PortalContainer/index.js.map +1 -1
  447. package/dist/providers/RouteProvider/index.cjs +5 -1
  448. package/dist/providers/RouteProvider/index.cjs.map +1 -1
  449. package/dist/providers/RouteProvider/index.d.ts +5 -1
  450. package/dist/providers/RouteProvider/index.d.ts.map +1 -1
  451. package/dist/providers/RouteProvider/index.js +5 -1
  452. package/dist/providers/RouteProvider/index.js.map +1 -1
  453. package/dist/providers/ThemeProvider/index.cjs +11 -1
  454. package/dist/providers/ThemeProvider/index.cjs.map +1 -1
  455. package/dist/providers/ThemeProvider/index.d.ts +11 -1
  456. package/dist/providers/ThemeProvider/index.d.ts.map +1 -1
  457. package/dist/providers/ThemeProvider/index.js +11 -1
  458. package/dist/providers/ThemeProvider/index.js.map +1 -1
  459. package/dist/providers/UIProvider/index.cjs +5 -1
  460. package/dist/providers/UIProvider/index.cjs.map +1 -1
  461. package/dist/providers/UIProvider/index.d.ts +5 -1
  462. package/dist/providers/UIProvider/index.d.ts.map +1 -1
  463. package/dist/providers/UIProvider/index.js +5 -1
  464. package/dist/providers/UIProvider/index.js.map +1 -1
  465. package/dist/utilities/__internal__/childrenUtils/children.utils.cjs +4 -0
  466. package/dist/utilities/__internal__/childrenUtils/children.utils.cjs.map +1 -1
  467. package/dist/utilities/__internal__/childrenUtils/children.utils.d.ts +4 -0
  468. package/dist/utilities/__internal__/childrenUtils/children.utils.d.ts.map +1 -1
  469. package/dist/utilities/__internal__/childrenUtils/children.utils.js +4 -0
  470. package/dist/utilities/__internal__/childrenUtils/children.utils.js.map +1 -1
  471. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.cjs +24 -4
  472. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.cjs.map +1 -1
  473. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts +24 -4
  474. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts.map +1 -1
  475. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.js +24 -4
  476. package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.js.map +1 -1
  477. package/dist/utilities/__internal__/focusUtils/focus.utils.cjs +5 -1
  478. package/dist/utilities/__internal__/focusUtils/focus.utils.cjs.map +1 -1
  479. package/dist/utilities/__internal__/focusUtils/focus.utils.d.ts +5 -1
  480. package/dist/utilities/__internal__/focusUtils/focus.utils.d.ts.map +1 -1
  481. package/dist/utilities/__internal__/focusUtils/focus.utils.js +5 -1
  482. package/dist/utilities/__internal__/focusUtils/focus.utils.js.map +1 -1
  483. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.cjs +65 -1
  484. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.cjs.map +1 -1
  485. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.d.ts +65 -1
  486. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.d.ts.map +1 -1
  487. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.js +65 -1
  488. package/dist/utilities/__internal__/hotkeysUtils/hotkeys.utils.js.map +1 -1
  489. package/dist/utilities/__internal__/logUtils/log.utils.cjs +3 -0
  490. package/dist/utilities/__internal__/logUtils/log.utils.cjs.map +1 -1
  491. package/dist/utilities/__internal__/logUtils/log.utils.d.ts +3 -0
  492. package/dist/utilities/__internal__/logUtils/log.utils.d.ts.map +1 -1
  493. package/dist/utilities/__internal__/logUtils/log.utils.js +3 -0
  494. package/dist/utilities/__internal__/logUtils/log.utils.js.map +1 -1
  495. package/dist/utilities/__internal__/platformUtils/platform.utils.cjs +8 -1
  496. package/dist/utilities/__internal__/platformUtils/platform.utils.cjs.map +1 -1
  497. package/dist/utilities/__internal__/platformUtils/platform.utils.d.ts +8 -1
  498. package/dist/utilities/__internal__/platformUtils/platform.utils.d.ts.map +1 -1
  499. package/dist/utilities/__internal__/platformUtils/platform.utils.js +8 -1
  500. package/dist/utilities/__internal__/platformUtils/platform.utils.js.map +1 -1
  501. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.cjs +24 -3
  502. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.cjs.map +1 -1
  503. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.d.ts +24 -3
  504. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.d.ts.map +1 -1
  505. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.js +24 -3
  506. package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.js.map +1 -1
  507. package/dist/utilities/cssScopeUtils/index.cjs +6 -5
  508. package/dist/utilities/cssScopeUtils/index.cjs.map +1 -1
  509. package/dist/utilities/cssScopeUtils/index.d.ts +6 -5
  510. package/dist/utilities/cssScopeUtils/index.d.ts.map +1 -1
  511. package/dist/utilities/cssScopeUtils/index.js +6 -5
  512. package/dist/utilities/cssScopeUtils/index.js.map +1 -1
  513. package/dist/utilities/cx/index.cjs +9 -9
  514. package/dist/utilities/cx/index.cjs.map +1 -1
  515. package/dist/utilities/cx/index.d.ts +9 -9
  516. package/dist/utilities/cx/index.d.ts.map +1 -1
  517. package/dist/utilities/cx/index.js +9 -9
  518. package/dist/utilities/cx/index.js.map +1 -1
  519. package/dist/utilities/hrefUtils/index.cjs +10 -11
  520. package/dist/utilities/hrefUtils/index.cjs.map +1 -1
  521. package/dist/utilities/hrefUtils/index.d.ts +10 -11
  522. package/dist/utilities/hrefUtils/index.d.ts.map +1 -1
  523. package/dist/utilities/hrefUtils/index.js +10 -11
  524. package/dist/utilities/hrefUtils/index.js.map +1 -1
  525. package/dist/utilities/localStorageUtils/index.cjs +8 -5
  526. package/dist/utilities/localStorageUtils/index.cjs.map +1 -1
  527. package/dist/utilities/localStorageUtils/index.d.ts +8 -5
  528. package/dist/utilities/localStorageUtils/index.d.ts.map +1 -1
  529. package/dist/utilities/localStorageUtils/index.js +8 -5
  530. package/dist/utilities/localStorageUtils/index.js.map +1 -1
  531. package/dist/utilities/renderUtils/importWithRetry.utils.cjs +3 -0
  532. package/dist/utilities/renderUtils/importWithRetry.utils.cjs.map +1 -1
  533. package/dist/utilities/renderUtils/importWithRetry.utils.d.ts +3 -0
  534. package/dist/utilities/renderUtils/importWithRetry.utils.d.ts.map +1 -1
  535. package/dist/utilities/renderUtils/importWithRetry.utils.js +3 -0
  536. package/dist/utilities/renderUtils/importWithRetry.utils.js.map +1 -1
  537. package/dist/utilities/renderUtils/index.cjs +31 -30
  538. package/dist/utilities/renderUtils/index.cjs.map +1 -1
  539. package/dist/utilities/renderUtils/index.d.ts +31 -30
  540. package/dist/utilities/renderUtils/index.d.ts.map +1 -1
  541. package/dist/utilities/renderUtils/index.js +31 -30
  542. package/dist/utilities/renderUtils/index.js.map +1 -1
  543. package/dist/utilities/sessionStorageUtils/index.cjs +8 -5
  544. package/dist/utilities/sessionStorageUtils/index.cjs.map +1 -1
  545. package/dist/utilities/sessionStorageUtils/index.d.ts +8 -5
  546. package/dist/utilities/sessionStorageUtils/index.d.ts.map +1 -1
  547. package/dist/utilities/sessionStorageUtils/index.js +8 -5
  548. package/dist/utilities/sessionStorageUtils/index.js.map +1 -1
  549. package/dist/utilities/testIdUtils/index.cjs +44 -10
  550. package/dist/utilities/testIdUtils/index.cjs.map +1 -1
  551. package/dist/utilities/testIdUtils/index.d.ts +44 -10
  552. package/dist/utilities/testIdUtils/index.d.ts.map +1 -1
  553. package/dist/utilities/testIdUtils/index.js +44 -10
  554. package/dist/utilities/testIdUtils/index.js.map +1 -1
  555. package/package.json +2 -2
@@ -14,9 +14,8 @@ export interface HotkeyHintOptions {
14
14
  *
15
15
  * @param hotkey `react-hotkeys-hook` syntax (`mod+k`, `mod+slash`, a sequence such as `g>p`), the symbol
16
16
  * shorthand (`⌘K`), a shortcut written out (`Ctrl+K`), or any other text.
17
+ * @param options Which devices count as Mac for `mod`, described on `HotkeyHintOptions`.
17
18
  * @returns The label, or `undefined` when nothing is given.
18
- *
19
- * @summary format a hotkey as a platform-aware label such as ⌘K or Ctrl K
20
19
  */
21
20
  export declare const useHotkeyHint: (hotkey: string | null | undefined, { commandOn }?: HotkeyHintOptions) => string | undefined;
22
21
  //# sourceMappingURL=useHotkeyHint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useHotkeyHint.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__internal__/useHotkeyHint/useHotkeyHint.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,gBAAuB,iBAAsB,KAAG,MAAM,GAAG,SAIzH,CAAC"}
1
+ {"version":3,"file":"useHotkeyHint.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__internal__/useHotkeyHint/useHotkeyHint.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,gBAAuB,iBAAsB,KAAG,MAAM,GAAG,SAIzH,CAAC"}
@@ -9,9 +9,8 @@ import { formatHotkeyLabel } from '../../../utilities/__internal__/hotkeysUtils/
9
9
  *
10
10
  * @param hotkey `react-hotkeys-hook` syntax (`mod+k`, `mod+slash`, a sequence such as `g>p`), the symbol
11
11
  * shorthand (`⌘K`), a shortcut written out (`Ctrl+K`), or any other text.
12
+ * @param options Which devices count as Mac for `mod`, described on `HotkeyHintOptions`.
12
13
  * @returns The label, or `undefined` when nothing is given.
13
- *
14
- * @summary format a hotkey as a platform-aware label such as ⌘K or Ctrl K
15
14
  */
16
15
  const useHotkeyHint = (hotkey, { commandOn = 'mac' } = {}) => {
17
16
  const { isMac, isApple } = usePlatform();
@@ -1 +1 @@
1
- {"version":3,"file":"useHotkeyHint.js","sources":["../../../../src/hooks/__internal__/useHotkeyHint/useHotkeyHint.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,aAAa,GAAG,CAAC,MAAiC,EAAE,EAAE,SAAS,GAAG,KAAK,EAAA,GAAwB,EAAE,KAAwB;IACpI,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE;IAExC,OAAO,MAAM,GAAG,iBAAiB,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,GAAG,SAAS;AAChG;;"}
1
+ {"version":3,"file":"useHotkeyHint.js","sources":["../../../../src/hooks/__internal__/useHotkeyHint/useHotkeyHint.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAcA;;;;;;;;;;AAUG;AACI,MAAM,aAAa,GAAG,CAAC,MAAiC,EAAE,EAAE,SAAS,GAAG,KAAK,EAAA,GAAwB,EAAE,KAAwB;IACpI,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE;IAExC,OAAO,MAAM,GAAG,iBAAiB,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,GAAG,SAAS;AAChG;;"}
@@ -9,9 +9,11 @@ var platform_utils = require('../../../utilities/__internal__/platformUtils/plat
9
9
  * (`g` then `p`), including sequences that share a first key, which `react-hotkeys-hook` cannot
10
10
  * tell apart. Keys pressed with ⌘/Ctrl/Alt or Shift plus a letter, or while focus is in a field, are ignored so ordinary
11
11
  * typing and other shortcuts are never hijacked. A sequence must be completed within `timeoutMs`
12
- * of its previous key.
12
+ * of its previous key. Use it for plain-key shortcuts that must never fire while the user types in a field.
13
13
  *
14
- * @summary match single-key and multi-key plain shortcuts outside form fields
14
+ * @param sequences The shortcuts to listen for, each a list of single characters pressed in turn; listening stops while it is empty.
15
+ * @param onMatch Called with the position in `sequences` of the shortcut that was completed.
16
+ * @param timeoutMs The longest gap in milliseconds allowed between two keys of one sequence.
15
17
  */
16
18
  const useKeySequences = (sequences, onMatch, timeoutMs = 1000) => {
17
19
  const latest = React.useRef({ sequences, onMatch });
@@ -1 +1 @@
1
- {"version":3,"file":"useKeySequences.cjs","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"sourcesContent":[null],"names":["useRef","useEffect","isTypingInField","getPlatformOs","advanceKeySequence"],"mappings":";;;;;;AAMA;;;;;;;;AAQG;AACI,MAAM,eAAe,GAAG,CAAC,SAAqB,EAAE,OAAgC,EAAE,SAAS,GAAG,IAAI,KAAU;IACjH,MAAM,MAAM,GAAGA,YAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAC7CC,eAAS,CAAC,MAAK;QACb,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE;AACzC,IAAA,CAAC,CAAC;AAEF,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC;IAEzCA,eAAS,CAAC,MAAK;AACb,QAAA,IAAI,CAAC,YAAY;YAAE;QAEnB,IAAI,MAAM,GAAa,EAAE;QACzB,IAAI,SAAS,GAAG,CAAC;AAEjB,QAAA,MAAM,SAAS,GAAG,CAAC,KAAoB,KAAI;;AAEzC,YAAA,IAAI,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,IAAIC,6BAAe,CAAC,KAAK,CAAC;gBAAE;;AAEhG,YAAA,MAAM,EAAE,GAAGC,4BAAa,EAAE;AAC1B,YAAA,MAAM,cAAc,GAAG,KAAK,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,KAAK,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;AACjI,YAAA,IAAI,KAAK,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,cAAc,CAAC;gBAAE;;AAE3E,YAAA,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE;gBAAE;AAE3E,YAAA,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;AACtB,YAAA,MAAM,MAAM,GAAGC,gCAAkB,CAAC,GAAG,GAAG,SAAS,GAAG,SAAS,GAAG,EAAE,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;AAC/H,YAAA,MAAM,GAAG,MAAM,CAAC,MAAM;YACtB,SAAS,GAAG,GAAG;AAEf,YAAA,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE;gBAChC,KAAK,CAAC,cAAc,EAAE;gBACtB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YACxC;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC;QAC/C,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;AACjE,IAAA,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAC/B;;"}
1
+ {"version":3,"file":"useKeySequences.cjs","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"sourcesContent":[null],"names":["useRef","useEffect","isTypingInField","getPlatformOs","advanceKeySequence"],"mappings":";;;;;;AAMA;;;;;;;;;;AAUG;AACI,MAAM,eAAe,GAAG,CAAC,SAAqB,EAAE,OAAgC,EAAE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,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;AAC/H,YAAA,MAAM,GAAG,MAAM,CAAC,MAAM;YACtB,SAAS,GAAG,GAAG;AAEf,YAAA,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE;gBAChC,KAAK,CAAC,cAAc,EAAE;gBACtB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YACxC;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC;QAC/C,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;AACjE,IAAA,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAC/B;;"}
@@ -3,9 +3,11 @@
3
3
  * (`g` then `p`), including sequences that share a first key, which `react-hotkeys-hook` cannot
4
4
  * tell apart. Keys pressed with ⌘/Ctrl/Alt or Shift plus a letter, or while focus is in a field, are ignored so ordinary
5
5
  * typing and other shortcuts are never hijacked. A sequence must be completed within `timeoutMs`
6
- * of its previous key.
6
+ * of its previous key. Use it for plain-key shortcuts that must never fire while the user types in a field.
7
7
  *
8
- * @summary match single-key and multi-key plain shortcuts outside form fields
8
+ * @param sequences The shortcuts to listen for, each a list of single characters pressed in turn; listening stops while it is empty.
9
+ * @param onMatch Called with the position in `sequences` of the shortcut that was completed.
10
+ * @param timeoutMs The longest gap in milliseconds allowed between two keys of one sequence.
9
11
  */
10
12
  export declare const useKeySequences: (sequences: string[][], onMatch: (index: number) => void, timeoutMs?: number) => void;
11
13
  //# sourceMappingURL=useKeySequences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeySequences.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,EAAE,EAAE,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,kBAAgB,KAAG,IAsC3G,CAAC"}
1
+ {"version":3,"file":"useKeySequences.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,EAAE,EAAE,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,kBAAgB,KAAG,IAsC3G,CAAC"}
@@ -7,9 +7,11 @@ import { getPlatformOs } from '../../../utilities/__internal__/platformUtils/pla
7
7
  * (`g` then `p`), including sequences that share a first key, which `react-hotkeys-hook` cannot
8
8
  * tell apart. Keys pressed with ⌘/Ctrl/Alt or Shift plus a letter, or while focus is in a field, are ignored so ordinary
9
9
  * typing and other shortcuts are never hijacked. A sequence must be completed within `timeoutMs`
10
- * of its previous key.
10
+ * of its previous key. Use it for plain-key shortcuts that must never fire while the user types in a field.
11
11
  *
12
- * @summary match single-key and multi-key plain shortcuts outside form fields
12
+ * @param sequences The shortcuts to listen for, each a list of single characters pressed in turn; listening stops while it is empty.
13
+ * @param onMatch Called with the position in `sequences` of the shortcut that was completed.
14
+ * @param timeoutMs The longest gap in milliseconds allowed between two keys of one sequence.
13
15
  */
14
16
  const useKeySequences = (sequences, onMatch, timeoutMs = 1000) => {
15
17
  const latest = useRef({ sequences, onMatch });
@@ -1 +1 @@
1
- {"version":3,"file":"useKeySequences.js","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAMA;;;;;;;;AAQG;AACI,MAAM,eAAe,GAAG,CAAC,SAAqB,EAAE,OAAgC,EAAE,SAAS,GAAG,IAAI,KAAU;IACjH,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAC7C,SA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CAAC,MAAM;YACtB,SAAS,GAAG,GAAG;AAEf,YAAA,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE;gBAChC,KAAK,CAAC,cAAc,EAAE;gBACtB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YACxC;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC;QAC/C,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC;AACjE,IAAA,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAC/B;;"}
1
+ {"version":3,"file":"useKeySequences.js","sources":["../../../../src/hooks/__internal__/useKeySequences/useKeySequences.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAMA;;;;;;;;;;AAUG;AACI,MAAM,eAAe,GAAG,CAAC,SAAqB,EAAE,OAAgC,EAAE,SAAS,GAAG,IAAI,KAAU;IACjH,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAC7C,SAAS,CAAC,MAAK;QACb,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE;AACzC,IAAA,CAAC,CAAC;AAEF,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC;IAEzC,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,CAAC,YAAY;YAAE;QAEnB,IAAI,MAAM,GAAa,EAAE;QACzB,IAAI,SAAS,GAAG,CAAC;AAEjB,QAAA,MAAM,SAAS,GAAG,CAAC,KAAoB,KAAI;;AAEzC,YAAA,IAAI,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC;gBAAE;;AAEhG,YAAA,MAAM,EAAE,GAAG,aAAa,EAAE;AA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viewport is at least the given Tailwind breakpoint, updating as the
14
+ * window resizes. Use it to branch rendering by viewport, such as a drawer on mobile and a
15
+ * sidebar on desktop.
14
16
  *
15
- * @param size The size to check, which must either be included in Tailwind CSS's
16
- * list of default screen sizes, or added to the Tailwind CSS config file.
17
- *
18
- * @returns A boolean indicating whether the viewport size applies.
17
+ * @param size A Tailwind screen name from the default set or the project's config.
18
+ * @returns `true` while the viewport is at least that breakpoint.
19
19
  */
20
20
  const useBreakpoints = (size) => {
21
21
  const query = `(min-width: ${screens[size]})`;
@@ -7,12 +7,12 @@ declare const screens: {
7
7
  };
8
8
  type Breakpoint = keyof typeof screens;
9
9
  /**
10
- * Checks whether a particular Tailwind CSS viewport size applies.
10
+ * Reports whether the viewport is at least the given Tailwind breakpoint, updating as the
11
+ * window resizes. Use it to branch rendering by viewport, such as a drawer on mobile and a
12
+ * sidebar on desktop.
11
13
  *
12
- * @param size The size to check, which must either be included in Tailwind CSS's
13
- * list of default screen sizes, or added to the Tailwind CSS config file.
14
- *
15
- * @returns A boolean indicating whether the viewport size applies.
14
+ * @param size A Tailwind screen name from the default set or the project's config.
15
+ * @returns `true` while the viewport is at least that breakpoint.
16
16
  */
17
17
  export declare const useBreakpoints: (size: Breakpoint) => boolean;
18
18
  /** @deprecated Use `useBreakpoints` instead — the export name now matches its subpath, `hooks/useBreakpoints`. */
@@ -8,12 +8,12 @@ const screens = {
8
8
  '2xl': '1536px',
9
9
  };
10
10
  /**
11
- * Checks whether a particular Tailwind CSS viewport size applies.
11
+ * Reports whether the viewport is at least the given Tailwind breakpoint, updating as the
12
+ * window resizes. Use it to branch rendering by viewport, such as a drawer on mobile and a
13
+ * sidebar on desktop.
12
14
  *
13
- * @param size The size to check, which must either be included in Tailwind CSS's
14
- * list of default screen sizes, or added to the Tailwind CSS config file.
15
- *
16
- * @returns A boolean indicating whether the viewport size applies.
15
+ * @param size A Tailwind screen name from the default set or the project's config.
16
+ * @returns `true` while the viewport is at least that breakpoint.
17
17
  */
18
18
  const useBreakpoints = (size) => {
19
19
  const query = `(min-width: ${screens[size]})`;
@@ -4,9 +4,12 @@ var React = require('react');
4
4
 
5
5
  const DEFAULT_TIMEOUT = 2000;
6
6
  /**
7
- * Custom hook to copy text to the clipboard.
7
+ * Copies text to the clipboard and tracks a short-lived copied state (about 2s) for flipping a
8
+ * button label or icon. Uses the async Clipboard API with a hidden textarea fallback for older
9
+ * browsers.
8
10
  *
9
- * @returns {UseClipboardReturnType} - An object containing the copied state and the copy function.
11
+ * @returns `copy(text)` plus `copied`, the text just copied (or `true`), resetting to `false`
12
+ * after the timeout.
10
13
  */
11
14
  const useClipboard = () => {
12
15
  const [copied, setCopied] = React.useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/hooks/useClipboard/index.ts"],"sourcesContent":[null],"names":["useState","useRef","useEffect","useCallback"],"mappings":";;;;AAIA,MAAM,eAAe,GAAG,IAAI;AAqB5B;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAA6B;IACvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAQ,CAAmB,KAAK,CAAC;AAC7D,IAAA,MAAM,aAAa,GAAGC,YAAM,CAAuC,IAAI,CAAC;;;AAGxE,IAAA,MAAM,YAAY,GAAGA,YAAM,CAAC,IAAI,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAK;QACzB,IAAI,aAAa,CAAC,OAAO;AAAE,YAAA,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC;AAC9D,QAAA,aAAa,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC;AAC7E,IAAA,CAAC;IAEDC,eAAS,CAAC,MAAK;AACb,QAAA,YAAY,CAAC,OAAO,GAAG,IAAI;AAC3B,QAAA,OAAO,MAAK;AACV,YAAA,YAAY,CAAC,OAAO,GAAG,KAAK;YAC5B,IAAI,aAAa,CAAC,OAAO;AAAE,gBAAA,YAAY,CAAC,aAA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AAC,IAAI,CAAC;AAEzC,gBAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACxB,oBAAA,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC;AACrB,oBAAA,aAAa,EAAE;gBACjB;AAEA,gBAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;YAC1B;YAAE,OAAO,IAAI,EAAE;;AAEb,gBAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YAC3B;QACF;AACA,QAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;AACzB;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/hooks/useClipboard/index.ts"],"sourcesContent":[null],"names":["useState","useRef","useEffect","useCallback"],"mappings":";;;;AAIA,MAAM,eAAe,GAAG,IAAI;AAqB5B;;;;;;;AAOG;AACI,MAAM,YAAY,GAAG,MAA6B;IACvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAQ,CAAmB,KAAK,CAAC;AAC7D,IAAA,MAAM,aAAa,GAAGC,YAAM,CAAuC,IAAI,CAAC;;;AAGxE,IAAA,MAAM,YAAY,GAAGA,YAAM,CAAC,IAAI,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAK;QACzB,IAAI,aAAa,CAAC,OAAO;AAAE,YAAA,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC;AAC9D,QAAA,aAAa,CAAC,OAAO,GAAG,UAAU,CAAC,MAAM,SAAS,CAAC,KAAK,CAAC,EAAE,eAAe,CAAC;AAC7E,IAAA,CAAC;IAEDC,eAAS,CAAC,MAAK;AACb,QAAA,YAAY,CAAC,OAAO,GAAG,IAAI;AAC3B,QAAA,OAAO,MAAK;AACV,YAAA,YAAY,CAAC,OAAO,GAAG,KAAK;YAC5B,IAAI,aAAa,CAAC,OAAO;AAAE,gBAAA,YAAY,CAAC,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S,CAAC,IAAI,CAAC;AAEzC,gBAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACxB,oBAAA,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC;AACrB,oBAAA,aAAa,EAAE;gBACjB;AAEA,gBAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;YAC1B;YAAE,OAAO,IAAI,EAAE;;AAEb,gBAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YAC3B;QACF;AACA,QAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;AACzB;;"}
@@ -20,9 +20,12 @@ type UseClipboardReturnType = {
20
20
  }>;
21
21
  };
22
22
  /**
23
- * Custom hook to copy text to the clipboard.
23
+ * Copies text to the clipboard and tracks a short-lived copied state (about 2s) for flipping a
24
+ * button label or icon. Uses the async Clipboard API with a hidden textarea fallback for older
25
+ * browsers.
24
26
  *
25
- * @returns {UseClipboardReturnType} - An object containing the copied state and the copy function.
27
+ * @returns `copy(text)` plus `copied`, the text just copied (or `true`), resetting to `false`
28
+ * after the timeout.
26
29
  */
27
30
  export declare const useClipboard: () => UseClipboardReturnType;
28
31
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClipboard/index.ts"],"names":[],"mappings":"AAMA,KAAK,sBAAsB,GAAG;IAC5B;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CACnF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,QAAO,sBAyE/B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useClipboard/index.ts"],"names":[],"mappings":"AAMA,KAAK,sBAAsB,GAAG;IAC5B;;;OAGG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB;;;;;;;;;OASG;IACH,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CACnF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,QAAO,sBAyE/B,CAAC"}
@@ -2,9 +2,12 @@ import { useState, useRef, useEffect, useCallback } from 'react';
2
2
 
3
3
  const DEFAULT_TIMEOUT = 2000;
4
4
  /**
5
- * Custom hook to copy text to the clipboard.
5
+ * Copies text to the clipboard and tracks a short-lived copied state (about 2s) for flipping a
6
+ * button label or icon. Uses the async Clipboard API with a hidden textarea fallback for older
7
+ * browsers.
6
8
  *
7
- * @returns {UseClipboardReturnType} - An object containing the copied state and the copy function.
9
+ * @returns `copy(text)` plus `copied`, the text just copied (or `true`), resetting to `false`
10
+ * after the timeout.
8
11
  */
9
12
  const useClipboard = () => {
10
13
  const [copied, setCopied] = useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/useClipboard/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA,MAAM,eAAe,GAAG,IAAI;AAqB5B;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAA6B;IACvD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAmB,KAAK,CAAC;AAC7D,IAAA,MAAM,aAAa,GAAG,MAAM,CAAuC,IAAI,CAAC;;;AAGxE,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC;IAEjC,MAAM,aAAa,GAAG,MAAK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ACd,gBAAA,KAAK,EAAE,GAAG,YAAY,KAAK,GAAG,GAAG,GAAG,IAAI,KAAK,CAAC,sBAAsB,CAAC;aACtE;QACH;gBAAU;;YAER,QAAQ,CAAC,MAAM,EAAE;QACnB;AACF,IAAA,CAAC;;IAGD,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,IAAY,EAAE,EAAW,KAAI;QAC3D,IAAI,SAAS,CAAC,SAAS,IAAI,MAAM,CAAC,eAAe,EAAE;AACjD,YAAA,IAAI;gBACF,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC;AAEzC,gBAAA,IAAI,YAAY,CAAC,OAAO,EAAE;AACxB,oBAAA,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC;AACrB,oBAAA,aAAa,EAAE;gBACjB;AAEA,gBAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;YAC1B;YAAE,OAAO,IAAI,EAAE;;AAEb,gBAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YAC3B;QACF;AACA,QAAA,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;IAC3B,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;AACzB;;"}
@@ -6,12 +6,11 @@ var platform_utils = require('../../utilities/__internal__/platformUtils/platfor
6
6
  const subscribeToNothing = () => () => { };
7
7
  const getServerOs = () => 'unknown';
8
8
  /**
9
- * Reports the operating system of the user's device, for wording that depends on it: a shortcut
10
- * label, a download link, a help article. Detection reads the user agent, so treat it as a best
11
- * guess and never as a reason to change behaviour; use `useBreakpoints` or feature detection for
12
- * that. Every flag is `false` on the server and during hydration, then settles on the real device.
9
+ * Reports the operating system of the user's device, for wording such as a shortcut label or
10
+ * download link. Every flag is `false` on the server and during hydration; treat the result as
11
+ * a best guess, never a reason to change behaviour.
13
12
  *
14
- * @summary detect the user's operating system, safely across hydration
13
+ * @returns The detected `os` plus `isMac`, `isApple` and `isWindows` flags.
15
14
  */
16
15
  const usePlatform = () => {
17
16
  const os = React.useSyncExternalStore(subscribeToNothing, platform_utils.getPlatformOs, getServerOs);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/hooks/usePlatform/index.ts"],"sourcesContent":[null],"names":["useSyncExternalStore","getPlatformOs","useMemo"],"mappings":";;;;;AAmBA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AACzC,MAAM,WAAW,GAAG,MAAkB,SAAS;AAE/C;;;;;;;AAOG;AACI,MAAM,WAAW,GAAG,MAAmB;IAC5C,MAAM,EAAE,GAAGA,0BAAoB,CAAC,kBAAkB,EAAEC,4BAAa,EAAE,WAAW,CAAC;AAE/E,IAAA,OAAOC,aAAO,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACnI;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/hooks/usePlatform/index.ts"],"sourcesContent":[null],"names":["useSyncExternalStore","getPlatformOs","useMemo"],"mappings":";;;;;AAmBA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AACzC,MAAM,WAAW,GAAG,MAAkB,SAAS;AAE/C;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,MAAmB;IAC5C,MAAM,EAAE,GAAGA,0BAAoB,CAAC,kBAAkB,EAAEC,4BAAa,EAAE,WAAW,CAAC;AAE/E,IAAA,OAAOC,aAAO,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACnI;;"}
@@ -11,12 +11,11 @@ export interface PlatformInfo {
11
11
  isWindows: boolean;
12
12
  }
13
13
  /**
14
- * Reports the operating system of the user's device, for wording that depends on it: a shortcut
15
- * label, a download link, a help article. Detection reads the user agent, so treat it as a best
16
- * guess and never as a reason to change behaviour; use `useBreakpoints` or feature detection for
17
- * that. Every flag is `false` on the server and during hydration, then settles on the real device.
14
+ * Reports the operating system of the user's device, for wording such as a shortcut label or
15
+ * download link. Every flag is `false` on the server and during hydration; treat the result as
16
+ * a best guess, never a reason to change behaviour.
18
17
  *
19
- * @summary detect the user's operating system, safely across hydration
18
+ * @returns The detected `os` plus `isMac`, `isApple` and `isWindows` flags.
20
19
  */
21
20
  export declare const usePlatform: () => PlatformInfo;
22
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePlatform/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AAE5F,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,MAAM,WAAW,YAAY;IAC3B,qGAAqG;IACrG,EAAE,EAAE,UAAU,CAAC;IACf,kIAAkI;IAClI,KAAK,EAAE,OAAO,CAAC;IACf,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,QAAO,YAI9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePlatform/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AAE5F,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,MAAM,WAAW,YAAY;IAC3B,qGAAqG;IACrG,EAAE,EAAE,UAAU,CAAC;IACf,kIAAkI;IAClI,KAAK,EAAE,OAAO,CAAC;IACf,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,QAAO,YAI9B,CAAC"}
@@ -4,12 +4,11 @@ import { getPlatformOs } from '../../utilities/__internal__/platformUtils/platfo
4
4
  const subscribeToNothing = () => () => { };
5
5
  const getServerOs = () => 'unknown';
6
6
  /**
7
- * Reports the operating system of the user's device, for wording that depends on it: a shortcut
8
- * label, a download link, a help article. Detection reads the user agent, so treat it as a best
9
- * guess and never as a reason to change behaviour; use `useBreakpoints` or feature detection for
10
- * that. Every flag is `false` on the server and during hydration, then settles on the real device.
7
+ * Reports the operating system of the user's device, for wording such as a shortcut label or
8
+ * download link. Every flag is `false` on the server and during hydration; treat the result as
9
+ * a best guess, never a reason to change behaviour.
11
10
  *
12
- * @summary detect the user's operating system, safely across hydration
11
+ * @returns The detected `os` plus `isMac`, `isApple` and `isWindows` flags.
13
12
  */
14
13
  const usePlatform = () => {
15
14
  const os = useSyncExternalStore(subscribeToNothing, getPlatformOs, getServerOs);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/usePlatform/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAmBA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AACzC,MAAM,WAAW,GAAG,MAAkB,SAAS;AAE/C;;;;;;;AAOG;AACI,MAAM,WAAW,GAAG,MAAmB;IAC5C,MAAM,EAAE,GAAG,oBAAoB,CAAC,kBAAkB,EAAE,aAAa,EAAE,WAAW,CAAC;AAE/E,IAAA,OAAO,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACnI;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/usePlatform/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAmBA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AACzC,MAAM,WAAW,GAAG,MAAkB,SAAS;AAE/C;;;;;;AAMG;AACI,MAAM,WAAW,GAAG,MAAmB;IAC5C,MAAM,EAAE,GAAG,oBAAoB,CAAC,kBAAkB,EAAE,aAAa,EAAE,WAAW,CAAC;AAE/E,IAAA,OAAO,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACnI;;"}
@@ -10,8 +10,13 @@ function hasResizeObserver() {
10
10
  return typeof window.ResizeObserver !== 'undefined';
11
11
  }
12
12
  /**
13
- * A hook that observes the size of an element and calls a callback function when the size changes.
14
- * @param options - The options for the hook.
13
+ * Runs a callback whenever an observed element changes size, via `ResizeObserver` with a
14
+ * window `resize` fallback. Use it for layout that reacts to an element's own size, such as
15
+ * truncation or chart dimensions.
16
+ *
17
+ * @param options The `ref` to observe, the `onResize` callback, and an optional `box` model to
18
+ * measure.
19
+ * @returns Nothing; the observer is attached and torn down with the component.
15
20
  */
16
21
  function useResizeObserver(options) {
17
22
  const { ref, box, onResize } = options;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/hooks/useResizeObserver/index.ts"],"sourcesContent":[null],"names":["useEffect"],"mappings":";;;;AAIA;;;AAGG;AACH,SAAS,iBAAiB,GAAA;AACxB,IAAA,OAAO,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW;AACrD;AAoBA;;;AAGG;AACG,SAAU,iBAAiB,CAAoB,OAAwC,EAAA;IAC3F,MAAM,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,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO;QAC5B,IAAI,CAAC,OAAO,EAAE;YACZ;QACF;AAEA,QAAA,IAAI,CAAC,iBAAiB,EAAE,EAAE;YACxB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AAElD,YAAA,OAAO,MAAK;gBACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AACvD,YAAA,CAAC;QACH;aAAO;YACL,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,OAAO,KAAI;AACnE,gBAAA,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACnB;gBACF;AAEA,gBAAA,QAAQ,EAAE;AACZ,YAAA,CAAC,CAAC;YAEF,sBAAsB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC;AAEhD,YAAA,OAAO,MAAK;gBACV,IAAI,OAAO,EAAE;AACX,oBAAA,sBAAsB,CAAC,SAAS,CAAC,OAAO,CAAC;gBAC3C;AACF,YAAA,CAAC;QACH;IACF,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC1B;;"}
@@ -17,8 +17,13 @@ type useResizeObserverOptionsType<T> = {
17
17
  onResize: () => void;
18
18
  };
19
19
  /**
20
- * A hook that observes the size of an element and calls a callback function when the size changes.
21
- * @param options - The options for the hook.
20
+ * Runs a callback whenever an observed element changes size, via `ResizeObserver` with a
21
+ * window `resize` fallback. Use it for layout that reacts to an element's own size, such as
22
+ * truncation or chart dimensions.
23
+ *
24
+ * @param options The `ref` to observe, the `onResize` callback, and an optional `box` model to
25
+ * measure.
26
+ * @returns Nothing; the observer is attached and torn down with the component.
22
27
  */
23
28
  export declare function useResizeObserver<T extends Element>(options: useResizeObserverOptionsType<T>): void;
24
29
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResizeObserver/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAUlD;;GAEG;AACH,KAAK,4BAA4B,CAAC,CAAC,IAAI;IACrC;;OAEG;IACH,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,QAiC5F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useResizeObserver/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAUlD;;GAEG;AACH,KAAK,4BAA4B,CAAC,CAAC,IAAI;IACrC;;OAEG;IACH,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,QAiC5F"}
@@ -8,8 +8,13 @@ function hasResizeObserver() {
8
8
  return typeof window.ResizeObserver !== 'undefined';
9
9
  }
10
10
  /**
11
- * A hook that observes the size of an element and calls a callback function when the size changes.
12
- * @param options - The options for the hook.
11
+ * Runs a callback whenever an observed element changes size, via `ResizeObserver` with a
12
+ * window `resize` fallback. Use it for layout that reacts to an element's own size, such as
13
+ * truncation or chart dimensions.
14
+ *
15
+ * @param options The `ref` to observe, the `onResize` callback, and an optional `box` model to
16
+ * measure.
17
+ * @returns Nothing; the observer is attached and torn down with the component.
13
18
  */
14
19
  function useResizeObserver(options) {
15
20
  const { ref, box, onResize } = options;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/useResizeObserver/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;AAGG;AACH,SAAS,iBAAiB,GAAA;AACxB,IAAA,OAAO,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW;AACrD;AAoBA;;;AAGG;AACG,SAAU,iBAAiB,CAAoB,OAAwC,EAAA;IAC3F,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,OAAO;IAEtC,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO;QAC5B,IAAI,CAAC,OAAO,EAAE;YACZ;QACF;AAEA,QAAA,IAAI,CAAC,iBAAiB,EAAE,EAAE;YACxB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AAElD,YAAA,OAAO,MAAK;gBACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AACvD,YAAA,CAAC;QACH;aAAO;YACL,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,OAAO,KAAI;AACnE,gBAAA,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACnB;gBACF;AAEA,gBAAA,QAAQ,EAAE;AACZ,YAAA,CAAC,CAAC;YAEF,sBAAsB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC;AAEhD,YAAA,OAAO,MAAK;gBACV,IAAI,OAAO,EAAE;AACX,oBAAA,sBAAsB,CAAC,SAAS,CAAC,OAAO,CAAC;gBAC3C;AACF,YAAA,CAAC;QACH;IACF,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC1B;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/useResizeObserver/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAIA;;;AAGG;AACH,SAAS,iBAAiB,GAAA;AACxB,IAAA,OAAO,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW;AACrD;AAoBA;;;;;;;;AAQG;AACG,SAAU,iBAAiB,CAAoB,OAAwC,EAAA;IAC3F,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,OAAO;IAEtC,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO;QAC5B,IAAI,CAAC,OAAO,EAAE;YACZ;QACF;AAEA,QAAA,IAAI,CAAC,iBAAiB,EAAE,EAAE;YACxB,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AAElD,YAAA,OAAO,MAAK;gBACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;AACvD,YAAA,CAAC;QACH;aAAO;YACL,MAAM,sBAAsB,GAAG,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,OAAO,KAAI;AACnE,gBAAA,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACnB;gBACF;AAEA,gBAAA,QAAQ,EAAE;AACZ,YAAA,CAAC,CAAC;YAEF,sBAAsB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC;AAEhD,YAAA,OAAO,MAAK;gBACV,IAAI,OAAO,EAAE;AACX,oBAAA,sBAAsB,CAAC,SAAS,CAAC,OAAO,CAAC;gBAC3C;AACF,YAAA,CAAC;QACH;IACF,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAC1B;;"}
@@ -7,12 +7,14 @@ var React = require('react');
7
7
  const subscribeToNothing = () => () => { };
8
8
  const isPersisted = (persist, panel) => persist?.some((id) => id === panel) ?? false;
9
9
  /**
10
- * State for one `SidePanel` slot shared by several panels, such as notifications and an assistant.
11
- * It holds a single value, so only one panel is ever open, and it can remember chosen panels so they
12
- * reopen on the next visit. Pass each header button `active === id` and `toggle(id)`, and pass
13
- * `SidePanel` `isOpen` and `onOpenChange`.
10
+ * State for one `SidePanel` slot shared by several panels, so only one is open at a time, with
11
+ * optional persistence so chosen panels reopen on the next visit. Pass each header button
12
+ * `active === id` and `toggle(id)`, and pass `SidePanel` `isOpen` and `onOpenChange`.
14
13
  *
15
- * @summary one-at-a-time side panel state that can reopen a panel on the next visit
14
+ * @param options `persist` lists the panel ids to remember in `localStorage`; omit it for
15
+ * session-only state.
16
+ * @returns The `active` panel, `isOpen`, and the `open`, `toggle`, `close` and `onOpenChange`
17
+ * handlers.
16
18
  */
17
19
  const useSidePanel = ({ persist } = {}) => {
18
20
  // undefined until the user opens or closes a panel; until then the remembered panel shows.
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/hooks/useSidePanel/index.ts"],"sourcesContent":[null],"names":["useState","useBreakpoints","useSyncExternalStore","useRef","sidePanelStorage","useEffect","useMemo"],"mappings":";;;;;;AA6BA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAmB,OAAiC,EAAE,KAAa,KAAiB,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,IAAI,KAAK;AAEpJ;;;;;;;AAOG;AACI,MAAM,YAAY,GAAG,CAAmB,EAAE,OAAO,EAAA,GAA6B,EAAE,KAAuB;;IAE5G,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAQ,CAAuB,SAAS,CAAC;AACrE,IAAA,MAAM,SAAS,GAAGC,6BAAc,CAAC,IAAI,CAAC;;AAEtC,IAAA,MAAM,cAAc,GAAGC,0BAAoB,CAC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K,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AACvE,YAAA,KAAK,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC;AACvB,YAAA,YAAY,EAAE,CAAC,MAAM,KAAI;AACvB,gBAAA,IAAI,CAAC,MAAM;oBAAE,IAAI,CAAC,IAAI,CAAC;YACzB,CAAC;SACF;IACH,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,GAAG,OAAO,EAAE;AACxD;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/hooks/useSidePanel/index.ts"],"sourcesContent":[null],"names":["useState","useBreakpoints","useSyncExternalStore","useRef","sidePanelStorage","useEffect","useMemo"],"mappings":";;;;;;AA6BA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAmB,OAAiC,EAAE,KAAa,KAAiB,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,IAAI,KAAK;AAEpJ;;;;;;;;;AASG;AACI,MAAM,YAAY,GAAG,CAAmB,EAAE,OAAO,EAAA,GAA6B,EAAE,KAAuB;;IAE5G,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAGA,cAAQ,CAAuB,SAAS,CAAC;AACrE,IAAA,MAAM,SAAS,GAAGC,6BAAc,CAAC,IAAI,CAAC;;AAEtC,IAAA,MAAM,cAAc,GAAGC,0BAAoB,CACzC,kBAAkB,EAClB,MAAM,IAAI,EACV,MAAM,KAAK,CACZ;;AAGD,IAAA,MAAM,UAAU,GAAGC,YAAM,CAAuB,SAAS,CAAC;IAC1D,IAAI,cAAc,IAAI,UAAU,CAAC,OAAO,KAAK,SAAS,EAAE;AACtD,QAAA,MAAM,MAAM,GAAG,SAAS,GAAGC,kCAAgB,CAAC,GAA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CAAC,IAAI,CAAC;YACzB,CAAC;SACF;IACH,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,GAAG,OAAO,EAAE;AACxD;;"}
@@ -20,12 +20,14 @@ export interface SidePanelState<T extends string> {
20
20
  onOpenChange: (isOpen: boolean) => void;
21
21
  }
22
22
  /**
23
- * State for one `SidePanel` slot shared by several panels, such as notifications and an assistant.
24
- * It holds a single value, so only one panel is ever open, and it can remember chosen panels so they
25
- * reopen on the next visit. Pass each header button `active === id` and `toggle(id)`, and pass
26
- * `SidePanel` `isOpen` and `onOpenChange`.
23
+ * State for one `SidePanel` slot shared by several panels, so only one is open at a time, with
24
+ * optional persistence so chosen panels reopen on the next visit. Pass each header button
25
+ * `active === id` and `toggle(id)`, and pass `SidePanel` `isOpen` and `onOpenChange`.
27
26
  *
28
- * @summary one-at-a-time side panel state that can reopen a panel on the next visit
27
+ * @param options `persist` lists the panel ids to remember in `localStorage`; omit it for
28
+ * session-only state.
29
+ * @returns The `active` panel, `isOpen`, and the `open`, `toggle`, `close` and `onOpenChange`
30
+ * handlers.
29
31
  */
30
32
  export declare const useSidePanel: <T extends string>({ persist }?: UseSidePanelOptions<T>) => SidePanelState<T>;
31
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSidePanel/index.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM;IAC9C,mDAAmD;IACnD,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,oEAAoE;IACpE,MAAM,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,+FAA+F;IAC/F,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,sCAAsC;IACtC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,0FAA0F;IAC1F,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,EAAE,cAAa,mBAAmB,CAAC,CAAC,CAAM,KAAG,cAAc,CAAC,CAAC,CA+CzG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSidePanel/index.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM;IACnD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM;IAC9C,mDAAmD;IACnD,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,oEAAoE;IACpE,MAAM,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,+FAA+F;IAC/F,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC3B,sCAAsC;IACtC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,0FAA0F;IAC1F,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC;AAMD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,MAAM,EAAE,cAAa,mBAAmB,CAAC,CAAC,CAAM,KAAG,cAAc,CAAC,CAAC,CA+CzG,CAAC"}
@@ -5,12 +5,14 @@ import { useState, useSyncExternalStore, useRef, useEffect, useMemo } from 'reac
5
5
  const subscribeToNothing = () => () => { };
6
6
  const isPersisted = (persist, panel) => persist?.some((id) => id === panel) ?? false;
7
7
  /**
8
- * State for one `SidePanel` slot shared by several panels, such as notifications and an assistant.
9
- * It holds a single value, so only one panel is ever open, and it can remember chosen panels so they
10
- * reopen on the next visit. Pass each header button `active === id` and `toggle(id)`, and pass
11
- * `SidePanel` `isOpen` and `onOpenChange`.
8
+ * State for one `SidePanel` slot shared by several panels, so only one is open at a time, with
9
+ * optional persistence so chosen panels reopen on the next visit. Pass each header button
10
+ * `active === id` and `toggle(id)`, and pass `SidePanel` `isOpen` and `onOpenChange`.
12
11
  *
13
- * @summary one-at-a-time side panel state that can reopen a panel on the next visit
12
+ * @param options `persist` lists the panel ids to remember in `localStorage`; omit it for
13
+ * session-only state.
14
+ * @returns The `active` panel, `isOpen`, and the `open`, `toggle`, `close` and `onOpenChange`
15
+ * handlers.
14
16
  */
15
17
  const useSidePanel = ({ persist } = {}) => {
16
18
  // undefined until the user opens or closes a panel; until then the remembered panel shows.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/hooks/useSidePanel/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AA6BA,MAAM,kBAAkB,GAAG,MAAM,MAAK,EAAE,CAAC;AAEzC,MAAM,WAAW,GAAG,CAAmB,OAAiC,EAAE,KAAa,KAAiB,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,IAAI,KAAK;AAEpJ;;;;;;;AAOG;AACI,MAAM,YAAY,GAAG,CAAmB,EAAE,OAAO,EAAA,GAA6B,EAAE,KAAuB;;IAE5G,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAuB,SAAS,CAAC;AACrE,IAAA,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC;;AAEtC,IAAA,MAAM,cAAc,GAAG,oBAAoB,CACzC,kBAAkB,EAClB,MAAM,IAAI,EACV,MAAM,KAAK,CACZ;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AE,GAAG,OAAO,EAAE;AACxD;;"}
@@ -9,7 +9,9 @@ export { getInitials } from './avatar.utils';
9
9
  * minimal, verified surface rather than a guess at future needs.
10
10
  */
11
11
  export interface AvatarProps {
12
+ /** Sets the circle's dimensions and scales the initials and fallback icon with it. */
12
13
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
14
+ /** Extra classes merged onto the root `View`. */
13
15
  className?: string;
14
16
  /**
15
17
  * The initials of the user to display. Compute via `getInitials(name)` (re-exported
@@ -24,7 +26,7 @@ export interface AvatarProps {
24
26
  * Minimal React Native `Avatar` — a solid-coloured, fully rounded circle showing
25
27
  * initials or a fallback person icon.
26
28
  *
27
- * @summary displays a user or entity with initials or an icon fallback (React Native)
29
+ * @summary user or entity as initials or an icon (React Native)
28
30
  */
29
31
  export declare const Avatar: ({ size, className, initials, "data-testid": dataTestId }: AvatarProps) => import("react").JSX.Element;
30
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Avatar/index.native.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAkDD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,0DAAiE,WAAW,gCAelG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Avatar/index.native.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAChD,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAkDD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,0DAAiE,WAAW,gCAelG,CAAC"}
@@ -55,7 +55,7 @@ const INITIALS_TEXT_COLOR = '#737373';
55
55
  * Minimal React Native `Avatar` — a solid-coloured, fully rounded circle showing
56
56
  * initials or a fallback person icon.
57
57
  *
58
- * @summary displays a user or entity with initials or an icon fallback (React Native)
58
+ * @summary user or entity as initials or an icon (React Native)
59
59
  */
60
60
  const Avatar = ({ size = 'md', className, initials, 'data-testid': dataTestId }) => {
61
61
  const avatarTestId = useResolvedTestId({ testId: dataTestId, segment: 'avatar', rootName: 'avatar' });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/components/atoms/Avatar/index.native.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;AA8BA;;;;;AAKG;AACH,MAAM,eAAe,GAAqD;AACxE,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,KAAK,EAAE,EAAE;CACV;AAED;;;;;;;;;;;;;;;;;;AAkBG;AACH,MAAM,kBAAkB,GAAuF;IAC7G,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IACpC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,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,IAAI,EAAA,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,KAE9GA,GAAA,CAAC,MAAM,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,EAAA,CAAI,CACxC,EAAA,CACI;AAEX;;"}
@@ -28,7 +28,7 @@ export interface DividerProps {
28
28
  * native does not forward anything beyond the props declared above (see the note on the
29
29
  * interface for why it cannot extend `ViewProps`).
30
30
  *
31
- * @summary Thin 1px rule that separates sections of content (React Native)
31
+ * @summary thin rule that separates content (React Native)
32
32
  */
33
33
  export declare const Divider: ({ orientation, className, "data-testid": dataTestId }: DividerProps) => import("react").JSX.Element;
34
34
  //# sourceMappingURL=index.d.ts.map
@@ -14,7 +14,7 @@ import { styles } from './Divider.styles.js';
14
14
  * native does not forward anything beyond the props declared above (see the note on the
15
15
  * interface for why it cannot extend `ViewProps`).
16
16
  *
17
- * @summary Thin 1px rule that separates sections of content (React Native)
17
+ * @summary thin rule that separates content (React Native)
18
18
  */
19
19
  const Divider = ({ orientation = 'horizontal', className, 'data-testid': dataTestId }) => {
20
20
  const dividerTestId = useResolvedTestId({ testId: dataTestId, segment: 'divider', rootName: 'divider' });
@@ -1,6 +1,7 @@
1
1
  import { type DotColor, type DotSize } from './Dot.styles';
2
2
  export type { DotColor, DotSize } from './Dot.styles';
3
3
  export interface DotProps {
4
+ /** Sets the circle's diameter and bounding box. */
4
5
  size?: DotSize;
5
6
  /**
6
7
  * Semantic fill colour, resolved per platform (`Dot.styles.ts`). Takes the same values as