@primer/react-brand 0.80.1-rc.2b5ba1e3 → 0.80.1-rc.bcf1e5f2

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 (476) hide show
  1. package/docs/components/IconButton/react.md +2 -1
  2. package/docs/index.md +2 -2
  3. package/esm/IconButton/IconButton.d.ts +1 -1
  4. package/esm/IconButton/IconButton.d.ts.map +1 -1
  5. package/esm/IconButton/IconButton.js +25 -20
  6. package/esm/IconButton/IconButton.js.map +1 -1
  7. package/esm/IconButton/IconButton.module-DYMP512l.css +1 -0
  8. package/esm/IconButton/IconButton.module.js +5 -3
  9. package/esm/IconButton/IconButton.module.js.map +1 -1
  10. package/esm/TestimonialGroup/TestimonialGroup.module-BDQZa1f9.css +1 -0
  11. package/esm/TestimonialGroup/TestimonialGroup.module.js +1 -1
  12. package/esm/TestimonialGroup/TestimonialGroup.module.js.map +1 -1
  13. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-C6FA-p8L.css +1 -0
  14. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-krqIK_mv.css +1 -0
  15. package/lib/IconButton/IconButton.d.ts +1 -1
  16. package/lib/css/main.css +124 -126
  17. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  18. package/lib/design-tokens/css/tokens/base/colors/light.css +1 -1
  19. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  20. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/animation/base.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/action-menu/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/bento/base.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/blinking-cursor/colors-with-modes.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/breadcrumbs/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/button/base.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/components/card/base.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/components/card/colors.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors-with-modes.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/components/carousel-pagination/colors.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css +1 -1
  39. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  40. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +1 -1
  41. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/colors-with-modes.css +1 -1
  42. package/lib/design-tokens/css/tokens/functional/components/eyebrow-banner/eyebrow-banner.css +1 -1
  43. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  44. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  45. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  46. package/lib/design-tokens/css/tokens/functional/components/faq/faq.css +1 -1
  47. package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/base.css +1 -1
  48. package/lib/design-tokens/css/tokens/functional/components/feature-comparison-table/colors-with-modes.css +1 -1
  49. package/lib/design-tokens/css/tokens/functional/components/footer/base.css +1 -1
  50. package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
  51. package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
  52. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/base.css +1 -1
  53. package/lib/design-tokens/css/tokens/functional/components/frosted-glass-vfx/colors-with-modes.css +1 -1
  54. package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
  55. package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
  56. package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
  57. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  58. package/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css +1 -1
  59. package/lib/design-tokens/css/tokens/functional/components/icon/colors.css +1 -1
  60. package/lib/design-tokens/css/tokens/functional/components/icon-button/base.css +3 -1
  61. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css +10 -1
  62. package/lib/design-tokens/css/tokens/functional/components/icon-button/colors.css +4 -1
  63. package/lib/design-tokens/css/tokens/functional/components/ide/base.css +1 -1
  64. package/lib/design-tokens/css/tokens/functional/components/ide/colors-with-modes.css +1 -1
  65. package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
  66. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors-with-modes.css +1 -1
  67. package/lib/design-tokens/css/tokens/functional/components/inline-code/colors.css +1 -1
  68. package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +1 -1
  69. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  70. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  71. package/lib/design-tokens/css/tokens/functional/components/label/colors-with-modes.css +1 -1
  72. package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
  73. package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
  74. package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
  75. package/lib/design-tokens/css/tokens/functional/components/logosuite/base.css +1 -1
  76. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors-with-modes.css +1 -1
  77. package/lib/design-tokens/css/tokens/functional/components/logosuite/colors.css +1 -1
  78. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors-with-modes.css +1 -1
  79. package/lib/design-tokens/css/tokens/functional/components/media-playlist/colors.css +1 -1
  80. package/lib/design-tokens/css/tokens/functional/components/nav-list/colors-with-modes.css +1 -1
  81. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors-with-modes.css +1 -1
  82. package/lib/design-tokens/css/tokens/functional/components/pricing-options/colors.css +1 -1
  83. package/lib/design-tokens/css/tokens/functional/components/pricing-options/pricing-options.css +1 -1
  84. package/lib/design-tokens/css/tokens/functional/components/prose/base.css +1 -1
  85. package/lib/design-tokens/css/tokens/functional/components/prose/colors-with-modes.css +1 -1
  86. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  87. package/lib/design-tokens/css/tokens/functional/components/river/river.css +1 -1
  88. package/lib/design-tokens/css/tokens/functional/components/river-story-scroll/colors-with-modes.css +1 -1
  89. package/lib/design-tokens/css/tokens/functional/components/section/section.css +1 -1
  90. package/lib/design-tokens/css/tokens/functional/components/spinner/base.css +1 -1
  91. package/lib/design-tokens/css/tokens/functional/components/spinner/colors-with-modes.css +1 -1
  92. package/lib/design-tokens/css/tokens/functional/components/spinner/colors.css +1 -1
  93. package/lib/design-tokens/css/tokens/functional/components/statistic/base.css +1 -1
  94. package/lib/design-tokens/css/tokens/functional/components/sub-nav/base.css +1 -1
  95. package/lib/design-tokens/css/tokens/functional/components/sub-nav/colors-with-modes.css +1 -1
  96. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  97. package/lib/design-tokens/css/tokens/functional/components/tabs/base.css +1 -1
  98. package/lib/design-tokens/css/tokens/functional/components/tabs/colors-with-modes.css +1 -1
  99. package/lib/design-tokens/css/tokens/functional/components/tabs/colors.css +1 -1
  100. package/lib/design-tokens/css/tokens/functional/components/testimonial/base.css +1 -1
  101. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors-with-modes.css +1 -1
  102. package/lib/design-tokens/css/tokens/functional/components/testimonial/colors.css +1 -1
  103. package/lib/design-tokens/css/tokens/functional/components/testimonial-group/base.css +1 -1
  104. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/base.css +1 -1
  105. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors-with-modes.css +1 -1
  106. package/lib/design-tokens/css/tokens/functional/components/text-cursor-animation/colors.css +1 -1
  107. package/lib/design-tokens/css/tokens/functional/components/tiles/base.css +1 -1
  108. package/lib/design-tokens/css/tokens/functional/components/tiles/colors-with-modes.css +1 -1
  109. package/lib/design-tokens/css/tokens/functional/components/timeline/base.css +1 -1
  110. package/lib/design-tokens/css/tokens/functional/components/timeline/colors-with-modes.css +1 -1
  111. package/lib/design-tokens/css/tokens/functional/components/timeline/colors.css +1 -1
  112. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/base.css +1 -1
  113. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors-with-modes.css +1 -1
  114. package/lib/design-tokens/css/tokens/functional/components/toggle-switch/colors.css +1 -1
  115. package/lib/design-tokens/css/tokens/functional/components/token/colors-with-modes.css +1 -1
  116. package/lib/design-tokens/css/tokens/functional/components/token/colors.css +1 -1
  117. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors-with-modes.css +1 -1
  118. package/lib/design-tokens/css/tokens/functional/components/tooltip/colors.css +1 -1
  119. package/lib/design-tokens/css/tokens/functional/components/video-player/base.css +1 -1
  120. package/lib/design-tokens/css/tokens/functional/components/video-player/colors-with-modes.css +1 -1
  121. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  122. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  123. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  124. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  125. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  126. package/lib/design-tokens/css/tokens/functional/size/viewport.css +1 -1
  127. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  128. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  129. package/lib/design-tokens/js/module/tokens/base/colors/light.js +1 -1
  130. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  131. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  132. package/lib/design-tokens/js/module/tokens/functional/animation/base.js +1 -1
  133. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  134. package/lib/design-tokens/js/module/tokens/functional/components/bento/base.js +1 -1
  135. package/lib/design-tokens/js/module/tokens/functional/components/button/base.js +1 -1
  136. package/lib/design-tokens/js/module/tokens/functional/components/card/base.js +1 -1
  137. package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
  138. package/lib/design-tokens/js/module/tokens/functional/components/carousel-pagination/colors.js +1 -1
  139. package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  140. package/lib/design-tokens/js/module/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  141. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  142. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  143. package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +1 -1
  144. package/lib/design-tokens/js/module/tokens/functional/components/feature-comparison-table/base.js +1 -1
  145. package/lib/design-tokens/js/module/tokens/functional/components/footer/base.js +1 -1
  146. package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
  147. package/lib/design-tokens/js/module/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  148. package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
  149. package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.js +1 -1
  150. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  151. package/lib/design-tokens/js/module/tokens/functional/components/icon/colors.js +1 -1
  152. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/base.js +3 -1
  153. package/lib/design-tokens/js/module/tokens/functional/components/icon-button/colors.js +17 -1
  154. package/lib/design-tokens/js/module/tokens/functional/components/ide/base.js +1 -1
  155. package/lib/design-tokens/js/module/tokens/functional/components/image/base.js +1 -1
  156. package/lib/design-tokens/js/module/tokens/functional/components/inline-code/colors.js +1 -1
  157. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +1 -1
  158. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  159. package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
  160. package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
  161. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/base.js +1 -1
  162. package/lib/design-tokens/js/module/tokens/functional/components/logosuite/colors.js +1 -1
  163. package/lib/design-tokens/js/module/tokens/functional/components/media-playlist/colors.js +1 -1
  164. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/colors.js +1 -1
  165. package/lib/design-tokens/js/module/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  166. package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +1 -1
  167. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  168. package/lib/design-tokens/js/module/tokens/functional/components/river/river.js +1 -1
  169. package/lib/design-tokens/js/module/tokens/functional/components/section/section.js +1 -1
  170. package/lib/design-tokens/js/module/tokens/functional/components/spinner/base.js +1 -1
  171. package/lib/design-tokens/js/module/tokens/functional/components/spinner/colors.js +1 -1
  172. package/lib/design-tokens/js/module/tokens/functional/components/statistic/base.js +1 -1
  173. package/lib/design-tokens/js/module/tokens/functional/components/sub-nav/base.js +1 -1
  174. package/lib/design-tokens/js/module/tokens/functional/components/tabs/base.js +1 -1
  175. package/lib/design-tokens/js/module/tokens/functional/components/tabs/colors.js +1 -1
  176. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/base.js +1 -1
  177. package/lib/design-tokens/js/module/tokens/functional/components/testimonial/colors.js +1 -1
  178. package/lib/design-tokens/js/module/tokens/functional/components/testimonial-group/base.js +1 -1
  179. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/base.js +1 -1
  180. package/lib/design-tokens/js/module/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  181. package/lib/design-tokens/js/module/tokens/functional/components/tiles/base.js +1 -1
  182. package/lib/design-tokens/js/module/tokens/functional/components/timeline/base.js +1 -1
  183. package/lib/design-tokens/js/module/tokens/functional/components/timeline/colors.js +1 -1
  184. package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/base.js +1 -1
  185. package/lib/design-tokens/js/module/tokens/functional/components/toggle-switch/colors.js +1 -1
  186. package/lib/design-tokens/js/module/tokens/functional/components/token/colors.js +1 -1
  187. package/lib/design-tokens/js/module/tokens/functional/components/tooltip/colors.js +1 -1
  188. package/lib/design-tokens/js/module/tokens/functional/components/video-player/base.js +1 -1
  189. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  190. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  191. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  192. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  193. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  194. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  195. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  196. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  197. package/lib/design-tokens/js/tokens/base/colors/light.js +1 -1
  198. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  199. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  200. package/lib/design-tokens/js/tokens/functional/animation/base.js +1 -1
  201. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  202. package/lib/design-tokens/js/tokens/functional/components/bento/base.js +1 -1
  203. package/lib/design-tokens/js/tokens/functional/components/button/base.js +1 -1
  204. package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
  205. package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
  206. package/lib/design-tokens/js/tokens/functional/components/carousel-pagination/colors.js +1 -1
  207. package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  208. package/lib/design-tokens/js/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  209. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  210. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  211. package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +1 -1
  212. package/lib/design-tokens/js/tokens/functional/components/feature-comparison-table/base.js +1 -1
  213. package/lib/design-tokens/js/tokens/functional/components/footer/base.js +1 -1
  214. package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
  215. package/lib/design-tokens/js/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  216. package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
  217. package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
  218. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  219. package/lib/design-tokens/js/tokens/functional/components/icon/colors.js +1 -1
  220. package/lib/design-tokens/js/tokens/functional/components/icon-button/base.js +3 -1
  221. package/lib/design-tokens/js/tokens/functional/components/icon-button/colors.js +4 -1
  222. package/lib/design-tokens/js/tokens/functional/components/ide/base.js +1 -1
  223. package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
  224. package/lib/design-tokens/js/tokens/functional/components/inline-code/colors.js +1 -1
  225. package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +1 -1
  226. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  227. package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
  228. package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
  229. package/lib/design-tokens/js/tokens/functional/components/logosuite/base.js +1 -1
  230. package/lib/design-tokens/js/tokens/functional/components/logosuite/colors.js +1 -1
  231. package/lib/design-tokens/js/tokens/functional/components/media-playlist/colors.js +1 -1
  232. package/lib/design-tokens/js/tokens/functional/components/pricing-options/colors.js +1 -1
  233. package/lib/design-tokens/js/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  234. package/lib/design-tokens/js/tokens/functional/components/prose/base.js +1 -1
  235. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  236. package/lib/design-tokens/js/tokens/functional/components/river/river.js +1 -1
  237. package/lib/design-tokens/js/tokens/functional/components/section/section.js +1 -1
  238. package/lib/design-tokens/js/tokens/functional/components/spinner/base.js +1 -1
  239. package/lib/design-tokens/js/tokens/functional/components/spinner/colors.js +1 -1
  240. package/lib/design-tokens/js/tokens/functional/components/statistic/base.js +1 -1
  241. package/lib/design-tokens/js/tokens/functional/components/sub-nav/base.js +1 -1
  242. package/lib/design-tokens/js/tokens/functional/components/tabs/base.js +1 -1
  243. package/lib/design-tokens/js/tokens/functional/components/tabs/colors.js +1 -1
  244. package/lib/design-tokens/js/tokens/functional/components/testimonial/base.js +1 -1
  245. package/lib/design-tokens/js/tokens/functional/components/testimonial/colors.js +1 -1
  246. package/lib/design-tokens/js/tokens/functional/components/testimonial-group/base.js +1 -1
  247. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/base.js +1 -1
  248. package/lib/design-tokens/js/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  249. package/lib/design-tokens/js/tokens/functional/components/tiles/base.js +1 -1
  250. package/lib/design-tokens/js/tokens/functional/components/timeline/base.js +1 -1
  251. package/lib/design-tokens/js/tokens/functional/components/timeline/colors.js +1 -1
  252. package/lib/design-tokens/js/tokens/functional/components/toggle-switch/base.js +1 -1
  253. package/lib/design-tokens/js/tokens/functional/components/toggle-switch/colors.js +1 -1
  254. package/lib/design-tokens/js/tokens/functional/components/token/colors.js +1 -1
  255. package/lib/design-tokens/js/tokens/functional/components/tooltip/colors.js +1 -1
  256. package/lib/design-tokens/js/tokens/functional/components/video-player/base.js +1 -1
  257. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  258. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  259. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  260. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  261. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  262. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  263. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  264. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  265. package/lib/design-tokens/json/colors.json +3 -0
  266. package/lib/design-tokens/scss/tokens/base/colors/light.scss +1 -1
  267. package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
  268. package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
  269. package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
  270. package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
  271. package/lib/design-tokens/scss/tokens/functional/components/bento/base.scss +1 -1
  272. package/lib/design-tokens/scss/tokens/functional/components/button/base.scss +1 -1
  273. package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
  274. package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
  275. package/lib/design-tokens/scss/tokens/functional/components/carousel-pagination/colors.scss +1 -1
  276. package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +1 -1
  277. package/lib/design-tokens/scss/tokens/functional/components/eyebrow-banner/eyebrow-banner.scss +1 -1
  278. package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -1
  279. package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
  280. package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +1 -1
  281. package/lib/design-tokens/scss/tokens/functional/components/feature-comparison-table/base.scss +1 -1
  282. package/lib/design-tokens/scss/tokens/functional/components/footer/base.scss +1 -1
  283. package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
  284. package/lib/design-tokens/scss/tokens/functional/components/frosted-glass-vfx/base.scss +1 -1
  285. package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
  286. package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
  287. package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
  288. package/lib/design-tokens/scss/tokens/functional/components/icon/colors.scss +1 -1
  289. package/lib/design-tokens/scss/tokens/functional/components/icon-button/base.scss +3 -1
  290. package/lib/design-tokens/scss/tokens/functional/components/icon-button/colors.scss +4 -1
  291. package/lib/design-tokens/scss/tokens/functional/components/ide/base.scss +1 -1
  292. package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
  293. package/lib/design-tokens/scss/tokens/functional/components/inline-code/colors.scss +1 -1
  294. package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +1 -1
  295. package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
  296. package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
  297. package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
  298. package/lib/design-tokens/scss/tokens/functional/components/logosuite/base.scss +1 -1
  299. package/lib/design-tokens/scss/tokens/functional/components/logosuite/colors.scss +1 -1
  300. package/lib/design-tokens/scss/tokens/functional/components/media-playlist/colors.scss +1 -1
  301. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/colors.scss +1 -1
  302. package/lib/design-tokens/scss/tokens/functional/components/pricing-options/pricing-options.scss +1 -1
  303. package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +1 -1
  304. package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
  305. package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
  306. package/lib/design-tokens/scss/tokens/functional/components/section/section.scss +1 -1
  307. package/lib/design-tokens/scss/tokens/functional/components/spinner/base.scss +1 -1
  308. package/lib/design-tokens/scss/tokens/functional/components/spinner/colors.scss +1 -1
  309. package/lib/design-tokens/scss/tokens/functional/components/statistic/base.scss +1 -1
  310. package/lib/design-tokens/scss/tokens/functional/components/sub-nav/base.scss +1 -1
  311. package/lib/design-tokens/scss/tokens/functional/components/tabs/base.scss +1 -1
  312. package/lib/design-tokens/scss/tokens/functional/components/tabs/colors.scss +1 -1
  313. package/lib/design-tokens/scss/tokens/functional/components/testimonial/base.scss +1 -1
  314. package/lib/design-tokens/scss/tokens/functional/components/testimonial/colors.scss +1 -1
  315. package/lib/design-tokens/scss/tokens/functional/components/testimonial-group/base.scss +1 -1
  316. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/base.scss +1 -1
  317. package/lib/design-tokens/scss/tokens/functional/components/text-cursor-animation/colors.scss +1 -1
  318. package/lib/design-tokens/scss/tokens/functional/components/tiles/base.scss +1 -1
  319. package/lib/design-tokens/scss/tokens/functional/components/timeline/base.scss +1 -1
  320. package/lib/design-tokens/scss/tokens/functional/components/timeline/colors.scss +1 -1
  321. package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/base.scss +1 -1
  322. package/lib/design-tokens/scss/tokens/functional/components/toggle-switch/colors.scss +1 -1
  323. package/lib/design-tokens/scss/tokens/functional/components/token/colors.scss +1 -1
  324. package/lib/design-tokens/scss/tokens/functional/components/tooltip/colors.scss +1 -1
  325. package/lib/design-tokens/scss/tokens/functional/components/video-player/base.scss +1 -1
  326. package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
  327. package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
  328. package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
  329. package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
  330. package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
  331. package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
  332. package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
  333. package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +1 -1
  334. package/lib/design-tokens/ts/tokens/base/colors/light.d.ts +1 -1
  335. package/lib/design-tokens/ts/tokens/base/colors/light.js +1 -1
  336. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  337. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  338. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  339. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  340. package/lib/design-tokens/ts/tokens/functional/animation/base.d.ts +1 -1
  341. package/lib/design-tokens/ts/tokens/functional/animation/base.js +1 -1
  342. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  343. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  344. package/lib/design-tokens/ts/tokens/functional/components/bento/base.d.ts +1 -1
  345. package/lib/design-tokens/ts/tokens/functional/components/bento/base.js +1 -1
  346. package/lib/design-tokens/ts/tokens/functional/components/button/base.d.ts +1 -1
  347. package/lib/design-tokens/ts/tokens/functional/components/button/base.js +1 -1
  348. package/lib/design-tokens/ts/tokens/functional/components/card/base.d.ts +1 -1
  349. package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
  350. package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
  351. package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
  352. package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.d.ts +1 -1
  353. package/lib/design-tokens/ts/tokens/functional/components/carousel-pagination/colors.js +1 -1
  354. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +1 -1
  355. package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +1 -1
  356. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.d.ts +1 -1
  357. package/lib/design-tokens/ts/tokens/functional/components/eyebrow-banner/eyebrow-banner.js +1 -1
  358. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  359. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  360. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  361. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  362. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.d.ts +1 -1
  363. package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +1 -1
  364. package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.d.ts +1 -1
  365. package/lib/design-tokens/ts/tokens/functional/components/feature-comparison-table/base.js +1 -1
  366. package/lib/design-tokens/ts/tokens/functional/components/footer/base.d.ts +1 -1
  367. package/lib/design-tokens/ts/tokens/functional/components/footer/base.js +1 -1
  368. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
  369. package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
  370. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.d.ts +1 -1
  371. package/lib/design-tokens/ts/tokens/functional/components/frosted-glass-vfx/base.js +1 -1
  372. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
  373. package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
  374. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
  375. package/lib/design-tokens/ts/tokens/functional/components/grid/grid.js +1 -1
  376. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  377. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  378. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.d.ts +1 -1
  379. package/lib/design-tokens/ts/tokens/functional/components/icon/colors.js +1 -1
  380. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.d.ts +3 -1
  381. package/lib/design-tokens/ts/tokens/functional/components/icon-button/base.js +3 -1
  382. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.d.ts +8 -1
  383. package/lib/design-tokens/ts/tokens/functional/components/icon-button/colors.js +8 -1
  384. package/lib/design-tokens/ts/tokens/functional/components/ide/base.d.ts +1 -1
  385. package/lib/design-tokens/ts/tokens/functional/components/ide/base.js +1 -1
  386. package/lib/design-tokens/ts/tokens/functional/components/image/base.d.ts +1 -1
  387. package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
  388. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.d.ts +1 -1
  389. package/lib/design-tokens/ts/tokens/functional/components/inline-code/colors.js +1 -1
  390. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +1 -1
  391. package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +1 -1
  392. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  393. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  394. package/lib/design-tokens/ts/tokens/functional/components/label/colors.d.ts +1 -1
  395. package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
  396. package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
  397. package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
  398. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.d.ts +1 -1
  399. package/lib/design-tokens/ts/tokens/functional/components/logosuite/base.js +1 -1
  400. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.d.ts +1 -1
  401. package/lib/design-tokens/ts/tokens/functional/components/logosuite/colors.js +1 -1
  402. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.d.ts +1 -1
  403. package/lib/design-tokens/ts/tokens/functional/components/media-playlist/colors.js +1 -1
  404. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.d.ts +1 -1
  405. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/colors.js +1 -1
  406. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.d.ts +1 -1
  407. package/lib/design-tokens/ts/tokens/functional/components/pricing-options/pricing-options.js +1 -1
  408. package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +1 -1
  409. package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +1 -1
  410. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  411. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  412. package/lib/design-tokens/ts/tokens/functional/components/river/river.d.ts +1 -1
  413. package/lib/design-tokens/ts/tokens/functional/components/river/river.js +1 -1
  414. package/lib/design-tokens/ts/tokens/functional/components/section/section.d.ts +1 -1
  415. package/lib/design-tokens/ts/tokens/functional/components/section/section.js +1 -1
  416. package/lib/design-tokens/ts/tokens/functional/components/spinner/base.d.ts +1 -1
  417. package/lib/design-tokens/ts/tokens/functional/components/spinner/base.js +1 -1
  418. package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.d.ts +1 -1
  419. package/lib/design-tokens/ts/tokens/functional/components/spinner/colors.js +1 -1
  420. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.d.ts +1 -1
  421. package/lib/design-tokens/ts/tokens/functional/components/statistic/base.js +1 -1
  422. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.d.ts +1 -1
  423. package/lib/design-tokens/ts/tokens/functional/components/sub-nav/base.js +1 -1
  424. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.d.ts +1 -1
  425. package/lib/design-tokens/ts/tokens/functional/components/tabs/base.js +1 -1
  426. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.d.ts +1 -1
  427. package/lib/design-tokens/ts/tokens/functional/components/tabs/colors.js +1 -1
  428. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.d.ts +1 -1
  429. package/lib/design-tokens/ts/tokens/functional/components/testimonial/base.js +1 -1
  430. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.d.ts +1 -1
  431. package/lib/design-tokens/ts/tokens/functional/components/testimonial/colors.js +1 -1
  432. package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.d.ts +1 -1
  433. package/lib/design-tokens/ts/tokens/functional/components/testimonial-group/base.js +1 -1
  434. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.d.ts +1 -1
  435. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/base.js +1 -1
  436. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.d.ts +1 -1
  437. package/lib/design-tokens/ts/tokens/functional/components/text-cursor-animation/colors.js +1 -1
  438. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.d.ts +1 -1
  439. package/lib/design-tokens/ts/tokens/functional/components/tiles/base.js +1 -1
  440. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.d.ts +1 -1
  441. package/lib/design-tokens/ts/tokens/functional/components/timeline/base.js +1 -1
  442. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.d.ts +1 -1
  443. package/lib/design-tokens/ts/tokens/functional/components/timeline/colors.js +1 -1
  444. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.d.ts +1 -1
  445. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/base.js +1 -1
  446. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.d.ts +1 -1
  447. package/lib/design-tokens/ts/tokens/functional/components/toggle-switch/colors.js +1 -1
  448. package/lib/design-tokens/ts/tokens/functional/components/token/colors.d.ts +1 -1
  449. package/lib/design-tokens/ts/tokens/functional/components/token/colors.js +1 -1
  450. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.d.ts +1 -1
  451. package/lib/design-tokens/ts/tokens/functional/components/tooltip/colors.js +1 -1
  452. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.d.ts +1 -1
  453. package/lib/design-tokens/ts/tokens/functional/components/video-player/base.js +1 -1
  454. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  455. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  456. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  457. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  458. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  459. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  460. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  461. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  462. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  463. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  464. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  465. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  466. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  467. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  468. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  469. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  470. package/lib/index.js +1 -1
  471. package/llms.txt +2 -2
  472. package/package.json +1 -1
  473. package/esm/IconButton/IconButton.module-DDLfSj96.css +0 -1
  474. package/esm/TestimonialGroup/TestimonialGroup.module-kFxPa1k1.css +0 -1
  475. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-_lTjJKpQ.css +0 -1
  476. package/esm/packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-BsaQYf6M.css +0 -1
@@ -59,6 +59,7 @@ IconButton inherits standard variants from Button and adds `danger` and `invisib
59
59
  <IconButton icon={SearchIcon} aria-label="Search" size="small" />
60
60
  <IconButton icon={SearchIcon} aria-label="Search" size="medium" />
61
61
  <IconButton icon={SearchIcon} aria-label="Search" size="large" />
62
+ <IconButton icon={SearchIcon} aria-label="Search" size={80} />
62
63
  </Stack>
63
64
  ```
64
65
 
@@ -196,7 +197,7 @@ Inactive controls use the same muted style for every variant and retain focus an
196
197
  | `icon` | `Icon \| ReactElement` | | `true` | Octicon component or custom SVG element rendered in the center of the button |
197
198
  | `aria-label` | `string` | | `true` | Required non-empty accessible action name and default tooltip label |
198
199
  | `variant` | `IconButtonVariants` | `'secondary'` | `false` | Button variants plus IconButton-only `danger` and `invisible` variations |
199
- | `size` | `IconButtonSizes` | `'medium'` | `false` | Control sizes inherited from Button |
200
+ | `size` | | `'medium'` | `false` | Named size or custom control dimensions in CSS pixels |
200
201
  | `description` | `string` | `undefined` | `false` | Supplementary tooltip description |
201
202
  | `tooltipDirection` | `TooltipDirections` | `'s'` | `false` | Preferred tooltip direction |
202
203
  | `inactive` | `boolean` | `false` | `false` | Applies variant-independent muted styling while preserving input for required feedback |
package/docs/index.md CHANGED
@@ -1,6 +1,6 @@
1
- # Primer Brand docs (v0.80.1-rc.2b5ba1e3)
1
+ # Primer Brand docs (v0.80.1-rc.bcf1e5f2)
2
2
 
3
- These docs are bundled with `@primer/react-brand@0.80.1-rc.2b5ba1e3` and match your installed version.
3
+ These docs are bundled with `@primer/react-brand@0.80.1-rc.bcf1e5f2` and match your installed version.
4
4
 
5
5
  New here? Start with [Getting started](getting-started/index.md) for installation, global
6
6
  stylesheet and font setup. Component directories are named after their import (e.g.
@@ -9,7 +9,7 @@ export declare const IconButtonSizes: readonly ["small", "medium", "large"];
9
9
  export declare const defaultIconButtonVariant: "secondary";
10
10
  export declare const defaultIconButtonSize: "medium";
11
11
  export type IconButtonVariant = (typeof IconButtonVariants)[number];
12
- export type IconButtonSize = (typeof IconButtonSizes)[number];
12
+ export type IconButtonSize = (typeof IconButtonSizes)[number] | number;
13
13
  type IconButtonBaseProps<C extends React.ElementType> = Omit<BaseProps<C>, 'ref'> & {
14
14
  as?: C;
15
15
  variant?: IconButtonVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAA;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAA;AAUhD,OAAO,EAA0B,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAGnD,OAAO,kGAAkG,CAAA;AACzG,OAAO,+GAA+G,CAAA;AAGtH,eAAO,MAAM,kBAAkB,oEAAsD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAA4B,CAAA;AACxD,eAAO,MAAM,wBAAwB,aAAuB,CAAA;AAC5D,eAAO,MAAM,qBAAqB,UAAoB,CAAA;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE7D,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IAClF,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC9D,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAC1F,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAA;AAYpF,KAAK,mBAAmB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAChE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAC/D,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;AA4G9B,eAAO,MAAM,UAAU,EAAiC,mBAAmB,CAAA"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAA;AACjD,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAA;AAUhD,OAAO,EAA0B,KAAK,gBAAgB,EAAC,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAGnD,OAAO,kGAAkG,CAAA;AACzG,OAAO,+GAA+G,CAAA;AAGtH,eAAO,MAAM,kBAAkB,oEAAsD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAA4B,CAAA;AACxD,eAAO,MAAM,wBAAwB,aAAuB,CAAA;AAC5D,eAAO,MAAM,qBAAqB,UAAoB,CAAA;AAEtD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;AAEtE,KAAK,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IAClF,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC9D,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAC1F,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,mBAAmB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAA;AAYpF,KAAK,mBAAmB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAChE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAC/D,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;AAwH9B,eAAO,MAAM,UAAU,EAAiC,mBAAmB,CAAA"}
@@ -2,7 +2,7 @@ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
2
  import { Button as t, ButtonSizes as n, ButtonVariants as r, defaultButtonSize as i, defaultButtonVariant as a } from "../Button/Button.js";
3
3
  import { Tooltip as o, TooltipContext as s } from "../Tooltip/Tooltip.js";
4
4
  import { Spinner as c } from "../Spinner/Spinner.js";
5
- import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-BsaQYf6M.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-_lTjJKpQ.css';/* empty css */
5
+ import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes-krqIK_mv.css';import '../packages/design-tokens/lib/design-tokens/css/tokens/functional/components/icon-button/base-C6FA-p8L.css';/* empty css */
6
6
  /* empty css */
7
7
  import l from "./IconButton.module.js";
8
8
  import u, { forwardRef as d } from "react";
@@ -21,46 +21,51 @@ var h = [
21
21
  return `${this.root}-loading-announcement`;
22
22
  }
23
23
  };
24
- function b({ as: n, icon: r, "aria-label": i, description: a, loading: d = !1, loadingAnnouncement: h = "Loading", rounded: g = !1, tooltipDirection: b = "s", size: x = v, variant: S = _, inactive: C = !1, disabled: w, className: T, onClick: E, "aria-disabled": D, "aria-expanded": O, "aria-haspopup": k, "data-testid": A, ...j }, M) {
25
- let { tooltipId: N } = u.useContext(s), P = d && !w, F = C && !w && !P, I = !w && !N, L = a || i, R = S === "danger" ? "secondary" : S === "invisible" ? "subtle" : S;
24
+ function b({ as: n, icon: r, "aria-label": i, description: a, loading: d = !1, loadingAnnouncement: h = "Loading", rounded: g = !1, tooltipDirection: b = "s", size: x = v, variant: S = _, inactive: C = !1, disabled: w, className: T, onClick: E, "aria-disabled": D, "aria-expanded": O, "aria-haspopup": k, "data-testid": A, style: j, ...M }, N) {
25
+ let { tooltipId: P } = u.useContext(s), F = d && !w, I = C && !w && !F, L = !w && !P, R = a || i, z = S === "danger" ? "secondary" : S === "invisible" ? "subtle" : S, B = typeof x == "number" ? x : void 0, V = B === void 0 ? x : v, H = B === void 0 ? j : {
26
+ "--brand-IconButton-control-size": `${B}px`,
27
+ "--brand-IconButton-icon-size": `${B / 2}px`,
28
+ ...j
29
+ };
26
30
  process.env.NODE_ENV !== "production" && (i.trim() || console.warn("IconButton requires a non-empty `aria-label`."), [
27
31
  w,
28
32
  d,
29
33
  C
30
34
  ].filter(Boolean).length > 1 && console.warn("IconButton has conflicting props for `disabled`, `loading`, or `inactive` states."));
31
- let z = P ? /* @__PURE__ */ p(c, {
35
+ let U = F ? /* @__PURE__ */ p(c, {
32
36
  accessibleLabel: null,
33
37
  className: l.IconButton__spinner,
34
38
  "data-testid": y.spinner
35
- }) : u.isValidElement(r) ? u.cloneElement(r, { className: e(r.props.className, l.IconButton__icon) }) : /* @__PURE__ */ p(r, { className: l.IconButton__icon }), B = /* @__PURE__ */ p(t, {
36
- ...j,
37
- ref: I ? void 0 : M,
39
+ }) : u.isValidElement(r) ? u.cloneElement(r, { className: e(r.props.className, l.IconButton__icon) }) : /* @__PURE__ */ p(r, { className: l.IconButton__icon }), W = /* @__PURE__ */ p(t, {
40
+ ...M,
41
+ ref: L ? void 0 : N,
38
42
  as: n,
39
- variant: R,
40
- size: x,
43
+ variant: z,
44
+ size: V,
45
+ style: H,
41
46
  disabled: w,
42
- "aria-disabled": P || F ? !0 : D,
47
+ "aria-disabled": F || I ? !0 : D,
43
48
  "aria-expanded": O,
44
49
  "aria-haspopup": k,
45
- "aria-label": !I || a ? i : void 0,
46
- className: e(l.IconButton, l[`IconButton--${x}`], l[`IconButton--variant-${S}`], F && l["IconButton--inactive"], g && l["IconButton--rounded"], T),
50
+ "aria-label": !L || a ? i : void 0,
51
+ className: e(l.IconButton, typeof x == "string" && l[`IconButton--${x}`], l[`IconButton--variant-${S}`], I && l["IconButton--inactive"], g && l["IconButton--rounded"], T),
47
52
  "data-testid": A || y.root,
48
- leadingVisual: z,
49
- onClick: P ? (e) => {
53
+ leadingVisual: U,
54
+ onClick: F ? (e) => {
50
55
  e.preventDefault(), e.stopPropagation();
51
56
  } : E
52
57
  });
53
- return /* @__PURE__ */ m(f, { children: [I ? /* @__PURE__ */ p(o, {
54
- ref: M,
58
+ return /* @__PURE__ */ m(f, { children: [L ? /* @__PURE__ */ p(o, {
59
+ ref: N,
55
60
  direction: b,
56
- text: L,
61
+ text: R,
57
62
  type: a ? "description" : "label",
58
- children: B
59
- }) : B, /* @__PURE__ */ p("span", {
63
+ children: W
64
+ }) : W, /* @__PURE__ */ p("span", {
60
65
  "aria-live": "polite",
61
66
  className: l.IconButton__loadingAnnouncement,
62
67
  "data-testid": y.loadingAnnouncement,
63
- children: P ? h : null
68
+ children: F ? h : null
64
69
  })] });
65
70
  }
66
71
  var x = d(b);
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","names":[],"sources":["../../src/IconButton/IconButton.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\nimport type {Icon} from '@primer/octicons-react'\n\nimport {\n Button,\n ButtonSizes,\n ButtonVariants,\n defaultButtonSize,\n defaultButtonVariant,\n type ButtonVariant,\n} from '../Button'\nimport {Tooltip, TooltipContext, type TooltipDirection} from '../Tooltip'\nimport type {BaseProps} from '../component-helpers'\nimport {Spinner} from '../Spinner/Spinner'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon-button/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css'\nimport styles from './IconButton.module.css'\n\nexport const IconButtonVariants = [...ButtonVariants, 'danger', 'invisible'] as const\nexport const IconButtonSizes = [...ButtonSizes] as const\nexport const defaultIconButtonVariant = defaultButtonVariant\nexport const defaultIconButtonSize = defaultButtonSize\n\nexport type IconButtonVariant = (typeof IconButtonVariants)[number]\nexport type IconButtonSize = (typeof IconButtonSizes)[number]\n\ntype IconButtonBaseProps<C extends React.ElementType> = Omit<BaseProps<C>, 'ref'> & {\n as?: C\n variant?: IconButtonVariant\n icon: Icon | React.ReactElement<React.SVGProps<SVGSVGElement>>\n 'aria-label': string\n description?: string\n inactive?: boolean\n loading?: boolean\n loadingAnnouncement?: string\n rounded?: boolean\n size?: IconButtonSize\n tooltipDirection?: TooltipDirection\n}\n\nexport type IconButtonProps<C extends React.ElementType = 'button'> = IconButtonBaseProps<C> &\n Omit<React.ComponentPropsWithoutRef<C>, keyof IconButtonBaseProps<C> | 'children'>\n\nconst iconButtonTestIds = {\n root: 'IconButton',\n get spinner() {\n return `${this.root}-spinner`\n },\n get loadingAnnouncement() {\n return `${this.root}-loading-announcement`\n },\n}\n\ntype IconButtonComponent = <C extends React.ElementType = 'button'>(\n props: IconButtonProps<C> & React.RefAttributes<HTMLButtonElement>,\n) => React.ReactElement | null\n\nfunction IconButtonRoot(\n {\n as,\n icon: IconComponent,\n 'aria-label': ariaLabel,\n description,\n loading = false,\n loadingAnnouncement = 'Loading',\n rounded = false,\n tooltipDirection = 's',\n size = defaultIconButtonSize,\n variant = defaultIconButtonVariant,\n inactive = false,\n disabled,\n className,\n onClick,\n 'aria-disabled': ariaDisabled,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n 'data-testid': testId,\n ...props\n }: React.PropsWithoutRef<IconButtonProps<React.ElementType>>,\n ref: Ref<HTMLButtonElement>,\n) {\n const {tooltipId: externalTooltipId} = React.useContext(TooltipContext)\n const isLoading = loading && !disabled\n const isInactive = inactive && !disabled && !isLoading\n const shouldRenderTooltip = !disabled && !externalTooltipId\n const tooltipText = description || ariaLabel\n const buttonVariant: ButtonVariant = variant === 'danger' ? 'secondary' : variant === 'invisible' ? 'subtle' : variant\n\n if (process.env.NODE_ENV !== 'production') {\n if (!ariaLabel.trim()) {\n // eslint-disable-next-line no-console\n console.warn('IconButton requires a non-empty `aria-label`.')\n }\n\n if ([disabled, loading, inactive].filter(Boolean).length > 1) {\n // eslint-disable-next-line no-console\n console.warn('IconButton has conflicting props for `disabled`, `loading`, or `inactive` states.')\n }\n }\n\n const ButtonIcon = isLoading ? (\n <Spinner accessibleLabel={null} className={styles.IconButton__spinner} data-testid={iconButtonTestIds.spinner} />\n ) : React.isValidElement<React.SVGProps<SVGSVGElement>>(IconComponent) ? (\n React.cloneElement(IconComponent, {\n className: clsx(IconComponent.props.className, styles.IconButton__icon),\n })\n ) : (\n <IconComponent className={styles.IconButton__icon} />\n )\n\n const ButtonElement = (\n <Button\n {...props}\n ref={shouldRenderTooltip ? undefined : ref}\n as={as}\n variant={buttonVariant}\n size={size}\n disabled={disabled}\n aria-disabled={isLoading || isInactive ? true : ariaDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={!shouldRenderTooltip || description ? ariaLabel : undefined}\n className={clsx(\n styles.IconButton,\n styles[`IconButton--${size}`],\n styles[`IconButton--variant-${variant}`],\n isInactive && styles['IconButton--inactive'],\n rounded && styles['IconButton--rounded'],\n className,\n )}\n data-testid={testId || iconButtonTestIds.root}\n leadingVisual={ButtonIcon}\n onClick={\n isLoading\n ? event => {\n event.preventDefault()\n event.stopPropagation()\n }\n : onClick\n }\n />\n )\n\n return (\n <>\n {shouldRenderTooltip ? (\n <Tooltip ref={ref} direction={tooltipDirection} text={tooltipText} type={description ? 'description' : 'label'}>\n {ButtonElement}\n </Tooltip>\n ) : (\n ButtonElement\n )}\n <span\n aria-live=\"polite\"\n className={styles.IconButton__loadingAnnouncement}\n data-testid={iconButtonTestIds.loadingAnnouncement}\n >\n {isLoading ? loadingAnnouncement : null}\n </span>\n </>\n )\n}\n\nexport const IconButton = forwardRef(IconButtonRoot) as IconButtonComponent\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,IAAqB;CAAC,GAAG;CAAgB;CAAU;AAAW,GAC9D,IAAkB,CAAC,GAAG,CAAW,GACjC,IAA2B,GAC3B,IAAwB,GAsB/B,IAAoB;CACxB,MAAM;CACN,IAAI,UAAU;EACZ,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,sBAAsB;EACxB,OAAO,GAAG,KAAK,KAAK;CACtB;AACF;AAMA,SAAS,EACP,EACE,OACA,MAAM,GACN,cAAc,GACd,gBACA,aAAU,IACV,yBAAsB,WACtB,aAAU,IACV,sBAAmB,KACnB,UAAO,GACP,aAAU,GACV,cAAW,IACX,aACA,cACA,YACA,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,GAAG,KAEL,GACA;CACA,IAAM,EAAC,WAAW,MAAqB,EAAM,WAAW,CAAc,GAChE,IAAY,KAAW,CAAC,GACxB,IAAa,KAAY,CAAC,KAAY,CAAC,GACvC,IAAsB,CAAC,KAAY,CAAC,GACpC,IAAc,KAAe,GAC7B,IAA+B,MAAY,WAAW,cAAc,MAAY,cAAc,WAAW;CAE/G,AAAA,QAAA,IAAA,aAA6B,iBACtB,EAAU,KAAK,KAElB,QAAQ,KAAK,+CAA+C,GAG1D;EAAC;EAAU;EAAS;CAAQ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,SAAS,KAEzD,QAAQ,KAAK,mFAAmF;CAIpG,IAAM,IAAa,IACjB,kBAAC,GAAD;EAAS,iBAAiB;EAAM,WAAW,EAAO;EAAqB,eAAa,EAAkB;CAAU,CAAA,IAC9G,EAAM,eAA8C,CAAa,IACnE,EAAM,aAAa,GAAe,EAChC,WAAW,EAAK,EAAc,MAAM,WAAW,EAAO,gBAAgB,EACxE,CAAC,IAED,kBAAC,GAAD,EAAe,WAAW,EAAO,iBAAmB,CAAA,GAGhD,IACJ,kBAAC,GAAD;EACE,GAAI;EACJ,KAAK,IAAsB,KAAA,IAAY;EACnC;EACJ,SAAS;EACH;EACI;EACV,iBAAe,KAAa,IAAa,KAAO;EAChD,iBAAe;EACf,iBAAe;EACf,cAAY,CAAC,KAAuB,IAAc,IAAY,KAAA;EAC9D,WAAW,EACT,EAAO,YACP,EAAO,eAAe,MACtB,EAAO,uBAAuB,MAC9B,KAAc,EAAO,yBACrB,KAAW,EAAO,wBAClB,CACF;EACA,eAAa,KAAU,EAAkB;EACzC,eAAe;EACf,SACE,KACI,MAAS;GAEP,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;EACxB,IACA;CAEP,CAAA;CAGH,OACE,kBAAA,GAAA,EAAA,UAAA,CACG,IACC,kBAAC,GAAD;EAAc;EAAK,WAAW;EAAkB,MAAM;EAAa,MAAM,IAAc,gBAAgB;YACpG;CACM,CAAA,IAET,GAEF,kBAAC,QAAD;EACE,aAAU;EACV,WAAW,EAAO;EAClB,eAAa,EAAkB;YAE9B,IAAY,IAAsB;CAC/B,CAAA,CACN,EAAA,CAAA;AAEN;AAEA,IAAa,IAAa,EAAW,CAAc"}
1
+ {"version":3,"file":"IconButton.js","names":[],"sources":["../../src/IconButton/IconButton.tsx"],"sourcesContent":["import {clsx} from 'clsx'\nimport React, {forwardRef, type Ref} from 'react'\nimport type {Icon} from '@primer/octicons-react'\n\nimport {\n Button,\n ButtonSizes,\n ButtonVariants,\n defaultButtonSize,\n defaultButtonVariant,\n type ButtonVariant,\n} from '../Button'\nimport {Tooltip, TooltipContext, type TooltipDirection} from '../Tooltip'\nimport type {BaseProps} from '../component-helpers'\nimport {Spinner} from '../Spinner/Spinner'\n\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon-button/base.css'\nimport '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon-button/colors-with-modes.css'\nimport styles from './IconButton.module.css'\n\nexport const IconButtonVariants = [...ButtonVariants, 'danger', 'invisible'] as const\nexport const IconButtonSizes = [...ButtonSizes] as const\nexport const defaultIconButtonVariant = defaultButtonVariant\nexport const defaultIconButtonSize = defaultButtonSize\n\nexport type IconButtonVariant = (typeof IconButtonVariants)[number]\nexport type IconButtonSize = (typeof IconButtonSizes)[number] | number\n\ntype IconButtonBaseProps<C extends React.ElementType> = Omit<BaseProps<C>, 'ref'> & {\n as?: C\n variant?: IconButtonVariant\n icon: Icon | React.ReactElement<React.SVGProps<SVGSVGElement>>\n 'aria-label': string\n description?: string\n inactive?: boolean\n loading?: boolean\n loadingAnnouncement?: string\n rounded?: boolean\n size?: IconButtonSize\n tooltipDirection?: TooltipDirection\n}\n\nexport type IconButtonProps<C extends React.ElementType = 'button'> = IconButtonBaseProps<C> &\n Omit<React.ComponentPropsWithoutRef<C>, keyof IconButtonBaseProps<C> | 'children'>\n\nconst iconButtonTestIds = {\n root: 'IconButton',\n get spinner() {\n return `${this.root}-spinner`\n },\n get loadingAnnouncement() {\n return `${this.root}-loading-announcement`\n },\n}\n\ntype IconButtonComponent = <C extends React.ElementType = 'button'>(\n props: IconButtonProps<C> & React.RefAttributes<HTMLButtonElement>,\n) => React.ReactElement | null\n\nfunction IconButtonRoot(\n {\n as,\n icon: IconComponent,\n 'aria-label': ariaLabel,\n description,\n loading = false,\n loadingAnnouncement = 'Loading',\n rounded = false,\n tooltipDirection = 's',\n size = defaultIconButtonSize,\n variant = defaultIconButtonVariant,\n inactive = false,\n disabled,\n className,\n onClick,\n 'aria-disabled': ariaDisabled,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n 'data-testid': testId,\n style,\n ...props\n }: React.PropsWithoutRef<IconButtonProps<React.ElementType>>,\n ref: Ref<HTMLButtonElement>,\n) {\n const {tooltipId: externalTooltipId} = React.useContext(TooltipContext)\n const isLoading = loading && !disabled\n const isInactive = inactive && !disabled && !isLoading\n const shouldRenderTooltip = !disabled && !externalTooltipId\n const tooltipText = description || ariaLabel\n const buttonVariant: ButtonVariant = variant === 'danger' ? 'secondary' : variant === 'invisible' ? 'subtle' : variant\n const customSize = typeof size === 'number' ? size : undefined\n const buttonSize = customSize === undefined ? size : defaultIconButtonSize\n const buttonStyle =\n customSize === undefined\n ? style\n : {\n ['--brand-IconButton-control-size' as string]: `${customSize}px`,\n ['--brand-IconButton-icon-size' as string]: `${customSize / 2}px`,\n ...style,\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!ariaLabel.trim()) {\n // eslint-disable-next-line no-console\n console.warn('IconButton requires a non-empty `aria-label`.')\n }\n\n if ([disabled, loading, inactive].filter(Boolean).length > 1) {\n // eslint-disable-next-line no-console\n console.warn('IconButton has conflicting props for `disabled`, `loading`, or `inactive` states.')\n }\n }\n\n const ButtonIcon = isLoading ? (\n <Spinner accessibleLabel={null} className={styles.IconButton__spinner} data-testid={iconButtonTestIds.spinner} />\n ) : React.isValidElement<React.SVGProps<SVGSVGElement>>(IconComponent) ? (\n React.cloneElement(IconComponent, {\n className: clsx(IconComponent.props.className, styles.IconButton__icon),\n })\n ) : (\n <IconComponent className={styles.IconButton__icon} />\n )\n\n const ButtonElement = (\n <Button\n {...props}\n ref={shouldRenderTooltip ? undefined : ref}\n as={as}\n variant={buttonVariant}\n size={buttonSize}\n style={buttonStyle}\n disabled={disabled}\n aria-disabled={isLoading || isInactive ? true : ariaDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={!shouldRenderTooltip || description ? ariaLabel : undefined}\n className={clsx(\n styles.IconButton,\n typeof size === 'string' && styles[`IconButton--${size}`],\n styles[`IconButton--variant-${variant}`],\n isInactive && styles['IconButton--inactive'],\n rounded && styles['IconButton--rounded'],\n className,\n )}\n data-testid={testId || iconButtonTestIds.root}\n leadingVisual={ButtonIcon}\n onClick={\n isLoading\n ? event => {\n event.preventDefault()\n event.stopPropagation()\n }\n : onClick\n }\n />\n )\n\n return (\n <>\n {shouldRenderTooltip ? (\n <Tooltip ref={ref} direction={tooltipDirection} text={tooltipText} type={description ? 'description' : 'label'}>\n {ButtonElement}\n </Tooltip>\n ) : (\n ButtonElement\n )}\n <span\n aria-live=\"polite\"\n className={styles.IconButton__loadingAnnouncement}\n data-testid={iconButtonTestIds.loadingAnnouncement}\n >\n {isLoading ? loadingAnnouncement : null}\n </span>\n </>\n )\n}\n\nexport const IconButton = forwardRef(IconButtonRoot) as IconButtonComponent\n"],"mappings":";;;;;;;;;;AAoBA,IAAa,IAAqB;CAAC,GAAG;CAAgB;CAAU;AAAW,GAC9D,IAAkB,CAAC,GAAG,CAAW,GACjC,IAA2B,GAC3B,IAAwB,GAsB/B,IAAoB;CACxB,MAAM;CACN,IAAI,UAAU;EACZ,OAAO,GAAG,KAAK,KAAK;CACtB;CACA,IAAI,sBAAsB;EACxB,OAAO,GAAG,KAAK,KAAK;CACtB;AACF;AAMA,SAAS,EACP,EACE,OACA,MAAM,GACN,cAAc,GACd,gBACA,aAAU,IACV,yBAAsB,WACtB,aAAU,IACV,sBAAmB,KACnB,UAAO,GACP,aAAU,GACV,cAAW,IACX,aACA,cACA,YACA,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,UACA,GAAG,KAEL,GACA;CACA,IAAM,EAAC,WAAW,MAAqB,EAAM,WAAW,CAAc,GAChE,IAAY,KAAW,CAAC,GACxB,IAAa,KAAY,CAAC,KAAY,CAAC,GACvC,IAAsB,CAAC,KAAY,CAAC,GACpC,IAAc,KAAe,GAC7B,IAA+B,MAAY,WAAW,cAAc,MAAY,cAAc,WAAW,GACzG,IAAa,OAAO,KAAS,WAAW,IAAO,KAAA,GAC/C,IAAa,MAAe,KAAA,IAAY,IAAO,GAC/C,IACJ,MAAe,KAAA,IACX,IACA;EACG,mCAA8C,GAAG,EAAW;EAC5D,gCAA2C,GAAG,IAAa,EAAE;EAC9D,GAAG;CACL;CAEN,AAAA,QAAA,IAAA,aAA6B,iBACtB,EAAU,KAAK,KAElB,QAAQ,KAAK,+CAA+C,GAG1D;EAAC;EAAU;EAAS;CAAQ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,SAAS,KAEzD,QAAQ,KAAK,mFAAmF;CAIpG,IAAM,IAAa,IACjB,kBAAC,GAAD;EAAS,iBAAiB;EAAM,WAAW,EAAO;EAAqB,eAAa,EAAkB;CAAU,CAAA,IAC9G,EAAM,eAA8C,CAAa,IACnE,EAAM,aAAa,GAAe,EAChC,WAAW,EAAK,EAAc,MAAM,WAAW,EAAO,gBAAgB,EACxE,CAAC,IAED,kBAAC,GAAD,EAAe,WAAW,EAAO,iBAAmB,CAAA,GAGhD,IACJ,kBAAC,GAAD;EACE,GAAI;EACJ,KAAK,IAAsB,KAAA,IAAY;EACnC;EACJ,SAAS;EACT,MAAM;EACN,OAAO;EACG;EACV,iBAAe,KAAa,IAAa,KAAO;EAChD,iBAAe;EACf,iBAAe;EACf,cAAY,CAAC,KAAuB,IAAc,IAAY,KAAA;EAC9D,WAAW,EACT,EAAO,YACP,OAAO,KAAS,YAAY,EAAO,eAAe,MAClD,EAAO,uBAAuB,MAC9B,KAAc,EAAO,yBACrB,KAAW,EAAO,wBAClB,CACF;EACA,eAAa,KAAU,EAAkB;EACzC,eAAe;EACf,SACE,KACI,MAAS;GAEP,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;EACxB,IACA;CAEP,CAAA;CAGH,OACE,kBAAA,GAAA,EAAA,UAAA,CACG,IACC,kBAAC,GAAD;EAAc;EAAK,WAAW;EAAkB,MAAM;EAAa,MAAM,IAAc,gBAAgB;YACpG;CACM,CAAA,IAET,GAEF,kBAAC,QAAD;EACE,aAAU;EACV,WAAW,EAAO;EAClB,eAAa,EAAkB;YAE9B,IAAY,IAAsB;CAC/B,CAAA,CACN,EAAA,CAAA;AAEN;AAEA,IAAa,IAAa,EAAW,CAAc"}
@@ -0,0 +1 @@
1
+ .Primer_Brand__IconButton-module__IconButton___68DKi{flex:none;gap:0;padding:0}.Primer_Brand__IconButton-module__IconButton___68DKi.Primer_Brand__IconButton-module__IconButton___68DKi{min-width:var(--brand-IconButton-control-size);width:var(--brand-IconButton-control-size);min-height:var(--brand-IconButton-control-size);height:var(--brand-IconButton-control-size)}.Primer_Brand__IconButton-module__IconButton--small___KXgb_.Primer_Brand__IconButton-module__IconButton--small___KXgb_{--brand-IconButton-control-size:var(--brand-IconButton-control-size-small);--brand-IconButton-icon-size:var(--brand-IconButton-icon-size-small)}.Primer_Brand__IconButton-module__IconButton--medium____oYr1.Primer_Brand__IconButton-module__IconButton--medium____oYr1{--brand-IconButton-control-size:var(--brand-IconButton-control-size-medium);--brand-IconButton-icon-size:var(--brand-IconButton-icon-size-medium)}.Primer_Brand__IconButton-module__IconButton--large___ypAna.Primer_Brand__IconButton-module__IconButton--large___ypAna{--brand-IconButton-control-size:var(--brand-IconButton-control-size-large);--brand-IconButton-icon-size:var(--brand-IconButton-icon-size-large)}.Primer_Brand__IconButton-module__IconButton--variant-secondary___uk1g_.Primer_Brand__IconButton-module__IconButton--variant-secondary___uk1g_{color:var(--brand-IconButton-secondary-fgColor)}.Primer_Brand__IconButton-module__IconButton--variant-subtle___mrBvK.Primer_Brand__IconButton-module__IconButton--variant-subtle___mrBvK{color:var(--brand-IconButton-subtle-fgColor)}.Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC.Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC{color:var(--brand-IconButton-invisible-fgColor)}.Primer_Brand__IconButton-module__IconButton--rounded___g_ngl.Primer_Brand__IconButton-module__IconButton--rounded___g_ngl{border-radius:var(--brand-borderRadius-full)}.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH:not([disabled]):not([aria-disabled=true]){color:var(--brand-IconButton-danger-fgColor-rest);background-color:var(--brand-IconButton-danger-bgColor-rest);border-color:var(--brand-IconButton-danger-borderColor-rest)}.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH:not([disabled]):not([aria-disabled=true]):not([aria-expanded=true]):hover{color:var(--brand-IconButton-danger-fgColor-hover);background-color:var(--brand-IconButton-danger-bgColor-hover);border-color:var(--brand-IconButton-danger-borderColor-hover)}.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH:not([disabled]):not([aria-disabled=true]):active,.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH.Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH:not([disabled]):not([aria-disabled=true])[aria-expanded=true]{color:var(--brand-IconButton-danger-fgColor-active);background-color:var(--brand-IconButton-danger-bgColor-active);border-color:var(--brand-IconButton-danger-borderColor-active)}.Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC.Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC:where(:not(:hover):not(:active):not([aria-expanded=true])){background-color:var(--brand-IconButton-invisible-bgColor-rest);border-color:var(--brand-IconButton-invisible-borderColor-rest);-webkit-backdrop-filter:none;backdrop-filter:none}.Primer_Brand__IconButton-module__IconButton--inactive___UanYd.Primer_Brand__IconButton-module__IconButton--inactive___UanYd,.Primer_Brand__IconButton-module__IconButton--inactive___UanYd.Primer_Brand__IconButton-module__IconButton--inactive___UanYd:hover,.Primer_Brand__IconButton-module__IconButton--inactive___UanYd.Primer_Brand__IconButton-module__IconButton--inactive___UanYd:active{color:var(--brand-IconButton-inactive-fgColor);cursor:auto;background-color:var(--brand-IconButton-inactive-bgColor);border-color:var(--brand-IconButton-inactive-borderColor);-webkit-backdrop-filter:none;backdrop-filter:none}.Primer_Brand__IconButton-module__IconButton--inactive___UanYd .Primer_Brand__IconButton-module__IconButton__icon___ilqkK{color:inherit}.Primer_Brand__IconButton-module__IconButton___68DKi .Primer_Brand__IconButton-module__IconButton__icon___ilqkK{width:var(--brand-IconButton-icon-size);height:var(--brand-IconButton-icon-size)}.Primer_Brand__IconButton-module__IconButton__spinner___I4dHE.Primer_Brand__IconButton-module__IconButton__spinner___I4dHE{width:var(--brand-IconButton-icon-size);height:var(--brand-IconButton-icon-size);animation-duration:var(--brand-IconButton-spinner-animationDuration-default);display:block}.Primer_Brand__IconButton-module__IconButton__loadingAnnouncement___Ga8mZ{width:var(--base-size-1);height:var(--base-size-1);margin:calc(var(--base-size-1) * -1);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;position:absolute;overflow:hidden}@media (forced-colors:active){.Primer_Brand__IconButton-module__IconButton--inactive___UanYd{color:graytext;border-color:graytext}.Primer_Brand__IconButton-module__IconButton__spinner___I4dHE{color:buttontext}}@media (prefers-reduced-motion:reduce){.Primer_Brand__IconButton-module__IconButton__spinner___I4dHE{animation-duration:var(--brand-IconButton-spinner-animationDuration-reducedMotion)}}
@@ -1,14 +1,16 @@
1
- import './IconButton.module-DDLfSj96.css';//#region src/IconButton/IconButton.module.css
1
+ import './IconButton.module-DYMP512l.css';//#region src/IconButton/IconButton.module.css
2
2
  var e = "Primer_Brand__IconButton-module__IconButton___68DKi", t = "Primer_Brand__IconButton-module__IconButton__icon___ilqkK", n = "Primer_Brand__IconButton-module__IconButton__spinner___I4dHE", r = "Primer_Brand__IconButton-module__IconButton__loadingAnnouncement___Ga8mZ", i = {
3
3
  IconButton: e,
4
4
  "IconButton--small": "Primer_Brand__IconButton-module__IconButton--small___KXgb_",
5
+ "IconButton--medium": "Primer_Brand__IconButton-module__IconButton--medium____oYr1",
5
6
  "IconButton--large": "Primer_Brand__IconButton-module__IconButton--large___ypAna",
7
+ "IconButton--variant-secondary": "Primer_Brand__IconButton-module__IconButton--variant-secondary___uk1g_",
8
+ "IconButton--variant-subtle": "Primer_Brand__IconButton-module__IconButton--variant-subtle___mrBvK",
9
+ "IconButton--variant-invisible": "Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC",
6
10
  "IconButton--rounded": "Primer_Brand__IconButton-module__IconButton--rounded___g_ngl",
7
11
  "IconButton--variant-danger": "Primer_Brand__IconButton-module__IconButton--variant-danger____mjeH",
8
- "IconButton--variant-invisible": "Primer_Brand__IconButton-module__IconButton--variant-invisible___gp_QC",
9
12
  "IconButton--inactive": "Primer_Brand__IconButton-module__IconButton--inactive___UanYd",
10
13
  IconButton__icon: t,
11
- "IconButton--medium": "Primer_Brand__IconButton-module__IconButton--medium____oYr1",
12
14
  IconButton__spinner: n,
13
15
  IconButton__loadingAnnouncement: r
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.module.js","names":[],"sources":["../../src/IconButton/IconButton.module.css"],"sourcesContent":[".IconButton {\n flex: none;\n gap: 0;\n padding: 0;\n}\n\n.IconButton.IconButton {\n min-width: var(--brand-IconButton-control-size-medium);\n width: var(--brand-IconButton-control-size-medium);\n height: var(--brand-IconButton-control-size-medium);\n}\n\n.IconButton--small.IconButton--small {\n min-width: var(--brand-IconButton-control-size-small);\n width: var(--brand-IconButton-control-size-small);\n height: var(--brand-IconButton-control-size-small);\n}\n\n.IconButton--large.IconButton--large {\n min-width: var(--brand-IconButton-control-size-large);\n width: var(--brand-IconButton-control-size-large);\n height: var(--brand-IconButton-control-size-large);\n}\n\n.IconButton--rounded.IconButton--rounded {\n border-radius: var(--brand-borderRadius-full);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true']) {\n color: var(--brand-IconButton-danger-fgColor-rest);\n background-color: var(--brand-IconButton-danger-bgColor-rest);\n border-color: var(--brand-IconButton-danger-borderColor-rest);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not(\n [disabled],\n [aria-disabled='true'],\n [aria-expanded='true']\n ):hover {\n color: var(--brand-IconButton-danger-fgColor-hover);\n background-color: var(--brand-IconButton-danger-bgColor-hover);\n border-color: var(--brand-IconButton-danger-borderColor-hover);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true']):active,\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true'])[aria-expanded='true'] {\n color: var(--brand-IconButton-danger-fgColor-active);\n background-color: var(--brand-IconButton-danger-bgColor-active);\n border-color: var(--brand-IconButton-danger-borderColor-active);\n}\n\n.IconButton--variant-invisible.IconButton--variant-invisible:where(:not(:hover, :active, [aria-expanded='true'])) {\n background-color: var(--brand-IconButton-invisible-bgColor-rest);\n border-color: var(--brand-IconButton-invisible-borderColor-rest);\n backdrop-filter: none;\n}\n\n.IconButton--inactive.IconButton--inactive,\n.IconButton--inactive.IconButton--inactive:hover,\n.IconButton--inactive.IconButton--inactive:active {\n color: var(--brand-IconButton-inactive-fgColor);\n cursor: auto;\n background-color: var(--brand-IconButton-inactive-bgColor);\n border-color: var(--brand-IconButton-inactive-borderColor);\n backdrop-filter: none;\n}\n\n.IconButton--inactive .IconButton__icon {\n color: inherit;\n}\n\n.IconButton--small .IconButton__icon {\n width: var(--brand-IconButton-icon-size-small);\n height: var(--brand-IconButton-icon-size-small);\n}\n\n.IconButton--medium .IconButton__icon {\n width: var(--brand-IconButton-icon-size-medium);\n height: var(--brand-IconButton-icon-size-medium);\n}\n\n.IconButton--large .IconButton__icon {\n width: var(--brand-IconButton-icon-size-large);\n height: var(--brand-IconButton-icon-size-large);\n}\n\n.IconButton__spinner.IconButton__spinner {\n display: block;\n width: var(--brand-IconButton-icon-size-medium);\n height: var(--brand-IconButton-icon-size-medium);\n animation-duration: var(--brand-IconButton-spinner-animationDuration-default);\n}\n\n.IconButton--small .IconButton__spinner {\n width: var(--brand-IconButton-icon-size-small);\n height: var(--brand-IconButton-icon-size-small);\n}\n\n.IconButton--large .IconButton__spinner {\n width: var(--brand-IconButton-icon-size-large);\n height: var(--brand-IconButton-icon-size-large);\n}\n\n.IconButton__loadingAnnouncement {\n position: absolute;\n width: var(--base-size-1);\n height: var(--base-size-1);\n padding: 0;\n margin: calc(var(--base-size-1) * -1);\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n@media (forced-colors: active) {\n .IconButton--inactive {\n color: GrayText;\n border-color: GrayText;\n }\n\n .IconButton__spinner {\n color: ButtonText;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .IconButton__spinner {\n animation-duration: var(--brand-IconButton-spinner-animationDuration-reducedMotion);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"IconButton.module.js","names":[],"sources":["../../src/IconButton/IconButton.module.css"],"sourcesContent":[".IconButton {\n flex: none;\n gap: 0;\n padding: 0;\n}\n\n.IconButton.IconButton {\n min-width: var(--brand-IconButton-control-size);\n width: var(--brand-IconButton-control-size);\n min-height: var(--brand-IconButton-control-size);\n height: var(--brand-IconButton-control-size);\n}\n\n.IconButton--small.IconButton--small {\n --brand-IconButton-control-size: var(--brand-IconButton-control-size-small);\n --brand-IconButton-icon-size: var(--brand-IconButton-icon-size-small);\n}\n\n.IconButton--medium.IconButton--medium {\n --brand-IconButton-control-size: var(--brand-IconButton-control-size-medium);\n --brand-IconButton-icon-size: var(--brand-IconButton-icon-size-medium);\n}\n\n.IconButton--large.IconButton--large {\n --brand-IconButton-control-size: var(--brand-IconButton-control-size-large);\n --brand-IconButton-icon-size: var(--brand-IconButton-icon-size-large);\n}\n\n.IconButton--variant-secondary.IconButton--variant-secondary {\n color: var(--brand-IconButton-secondary-fgColor);\n}\n\n.IconButton--variant-subtle.IconButton--variant-subtle {\n color: var(--brand-IconButton-subtle-fgColor);\n}\n\n.IconButton--variant-invisible.IconButton--variant-invisible {\n color: var(--brand-IconButton-invisible-fgColor);\n}\n\n.IconButton--rounded.IconButton--rounded {\n border-radius: var(--brand-borderRadius-full);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true']) {\n color: var(--brand-IconButton-danger-fgColor-rest);\n background-color: var(--brand-IconButton-danger-bgColor-rest);\n border-color: var(--brand-IconButton-danger-borderColor-rest);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not(\n [disabled],\n [aria-disabled='true'],\n [aria-expanded='true']\n ):hover {\n color: var(--brand-IconButton-danger-fgColor-hover);\n background-color: var(--brand-IconButton-danger-bgColor-hover);\n border-color: var(--brand-IconButton-danger-borderColor-hover);\n}\n\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true']):active,\n.IconButton--variant-danger.IconButton--variant-danger:not([disabled], [aria-disabled='true'])[aria-expanded='true'] {\n color: var(--brand-IconButton-danger-fgColor-active);\n background-color: var(--brand-IconButton-danger-bgColor-active);\n border-color: var(--brand-IconButton-danger-borderColor-active);\n}\n\n.IconButton--variant-invisible.IconButton--variant-invisible:where(:not(:hover, :active, [aria-expanded='true'])) {\n background-color: var(--brand-IconButton-invisible-bgColor-rest);\n border-color: var(--brand-IconButton-invisible-borderColor-rest);\n backdrop-filter: none;\n}\n\n.IconButton--inactive.IconButton--inactive,\n.IconButton--inactive.IconButton--inactive:hover,\n.IconButton--inactive.IconButton--inactive:active {\n color: var(--brand-IconButton-inactive-fgColor);\n cursor: auto;\n background-color: var(--brand-IconButton-inactive-bgColor);\n border-color: var(--brand-IconButton-inactive-borderColor);\n backdrop-filter: none;\n}\n\n.IconButton--inactive .IconButton__icon {\n color: inherit;\n}\n\n.IconButton .IconButton__icon {\n width: var(--brand-IconButton-icon-size);\n height: var(--brand-IconButton-icon-size);\n}\n\n.IconButton__spinner.IconButton__spinner {\n display: block;\n width: var(--brand-IconButton-icon-size);\n height: var(--brand-IconButton-icon-size);\n animation-duration: var(--brand-IconButton-spinner-animationDuration-default);\n}\n\n.IconButton__loadingAnnouncement {\n position: absolute;\n width: var(--base-size-1);\n height: var(--base-size-1);\n padding: 0;\n margin: calc(var(--base-size-1) * -1);\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n\n@media (forced-colors: active) {\n .IconButton--inactive {\n color: GrayText;\n border-color: GrayText;\n }\n\n .IconButton__spinner {\n color: ButtonText;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .IconButton__spinner {\n animation-duration: var(--brand-IconButton-spinner-animationDuration-reducedMotion);\n }\n}\n"],"mappings":""}
@@ -0,0 +1 @@
1
+ .Primer_Brand__TestimonialGroup-module__TestimonialGroup___WSHAX{width:100%;min-width:0}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__content____OwRq{flex-direction:column;width:100%;display:flex}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__slides___bujxD{flex-direction:column;justify-content:center;width:100%;display:flex;position:relative}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__slide___BQN5P{visibility:hidden;pointer-events:none;width:100%;position:absolute}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__slide--active___Po_Ui{visibility:visible;pointer-events:auto;position:relative}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__avatar___g6C4c{border:var(--base-size-2) solid var(--brand-Testimonial-quoteMarkColor-green);border-radius:50%;flex:none}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__avatar___g6C4c.Primer_Brand__TestimonialGroup-module__TestimonialGroup__avatar--size-large___RDqmT{width:var(--base-size-48);height:var(--base-size-48)}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__quoteMark___kFAR6,.Primer_Brand__TestimonialGroup-module__TestimonialGroup__quote___EojHF,.Primer_Brand__TestimonialGroup-module__TestimonialGroup__media____4w1m{transition:opacity var(--brand-TestimonialGroup-fadeInDuration) ease-in-out}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__testimonial--out___3J8b7 .Primer_Brand__TestimonialGroup-module__TestimonialGroup__quoteMark___kFAR6{opacity:0;transition:opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out .12s}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__testimonial--out___3J8b7 .Primer_Brand__TestimonialGroup-module__TestimonialGroup__quote___EojHF{opacity:0;transition:opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 80ms}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__testimonial--out___3J8b7 .Primer_Brand__TestimonialGroup-module__TestimonialGroup__media____4w1m{opacity:0;transition:opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 40ms}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__testimonial--in___oPvYa .Primer_Brand__TestimonialGroup-module__TestimonialGroup__quote___EojHF{transition-delay:.1s}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__testimonial--in___oPvYa .Primer_Brand__TestimonialGroup-module__TestimonialGroup__media____4w1m{transition-delay:var(--brand-animation-duration-faster)}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__controls___S4ca5{flex:none;order:1;align-items:center;margin-block-start:var(--base-size-32);padding-block-start:var(--base-size-16);display:flex}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__content--expressive___Ff_H7 .Primer_Brand__TestimonialGroup-module__TestimonialGroup__controls___S4ca5{margin-block-start:0}.Primer_Brand__TestimonialGroup-module__TestimonialGroup__announcement___mOAht{width:var(--brand-borderWidth-thin);height:var(--brand-borderWidth-thin);clip-path:inset(50%);white-space:nowrap;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.Primer_Brand__TestimonialGroup-module__TestimonialGroup__quoteMark___kFAR6,.Primer_Brand__TestimonialGroup-module__TestimonialGroup__quote___EojHF,.Primer_Brand__TestimonialGroup-module__TestimonialGroup__media____4w1m{transition:none}}
@@ -1,4 +1,4 @@
1
- import './TestimonialGroup.module-kFxPa1k1.css';//#region src/TestimonialGroup/TestimonialGroup.module.css
1
+ import './TestimonialGroup.module-BDQZa1f9.css';//#region src/TestimonialGroup/TestimonialGroup.module.css
2
2
  var e = "Primer_Brand__TestimonialGroup-module__TestimonialGroup___WSHAX", t = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__content____OwRq", n = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__slides___bujxD", r = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__slide___BQN5P", i = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__avatar___g6C4c", a = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__quoteMark___kFAR6", o = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__quote___EojHF", s = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__media____4w1m", c = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__controls___S4ca5", l = "Primer_Brand__TestimonialGroup-module__TestimonialGroup__announcement___mOAht", u = {
3
3
  TestimonialGroup: e,
4
4
  TestimonialGroup__content: t,
@@ -1 +1 @@
1
- {"version":3,"file":"TestimonialGroup.module.js","names":[],"sources":["../../src/TestimonialGroup/TestimonialGroup.module.css"],"sourcesContent":[".TestimonialGroup {\n width: 100%;\n min-width: 0;\n padding-block: calc(var(--base-size-48) + var(--base-size-8));\n padding-inline: var(--base-size-32);\n}\n\n.TestimonialGroup__content {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.TestimonialGroup__slides {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n\n.TestimonialGroup__slide {\n position: absolute;\n width: 100%;\n visibility: hidden;\n pointer-events: none;\n}\n\n.TestimonialGroup__slide--active {\n position: relative;\n visibility: visible;\n pointer-events: auto;\n}\n\n.TestimonialGroup__avatar {\n flex: none;\n border: var(--base-size-2) solid var(--brand-Testimonial-quoteMarkColor-green);\n border-radius: 50%;\n}\n\n.TestimonialGroup__avatar.TestimonialGroup__avatar--size-large {\n width: var(--base-size-48);\n height: var(--base-size-48);\n}\n\n.TestimonialGroup__quoteMark,\n.TestimonialGroup__quote,\n.TestimonialGroup__media {\n transition: opacity var(--brand-TestimonialGroup-fadeInDuration) ease-in-out;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__quoteMark {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 120ms;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__quote {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 80ms;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__media {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 40ms;\n}\n\n.TestimonialGroup__testimonial--in .TestimonialGroup__quote {\n transition-delay: 100ms;\n}\n\n.TestimonialGroup__testimonial--in .TestimonialGroup__media {\n transition-delay: var(--brand-animation-duration-faster);\n}\n\n.TestimonialGroup__controls {\n display: flex;\n flex: none;\n order: 1;\n align-items: center;\n margin-block-start: var(--base-size-32);\n padding-block-start: var(--base-size-16);\n}\n\n.TestimonialGroup__content--expressive .TestimonialGroup__controls {\n margin-block-start: 0;\n}\n\n.TestimonialGroup__announcement {\n position: absolute;\n width: var(--brand-borderWidth-thin);\n height: var(--brand-borderWidth-thin);\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .TestimonialGroup__quoteMark,\n .TestimonialGroup__quote,\n .TestimonialGroup__media {\n transition: none;\n }\n}\n\n@media screen and (min-width: 63.25rem) {\n .TestimonialGroup {\n padding-block: var(--base-size-60);\n padding-inline: var(--base-size-60);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TestimonialGroup.module.js","names":[],"sources":["../../src/TestimonialGroup/TestimonialGroup.module.css"],"sourcesContent":[".TestimonialGroup {\n width: 100%;\n min-width: 0;\n}\n\n.TestimonialGroup__content {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.TestimonialGroup__slides {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n\n.TestimonialGroup__slide {\n position: absolute;\n width: 100%;\n visibility: hidden;\n pointer-events: none;\n}\n\n.TestimonialGroup__slide--active {\n position: relative;\n visibility: visible;\n pointer-events: auto;\n}\n\n.TestimonialGroup__avatar {\n flex: none;\n border: var(--base-size-2) solid var(--brand-Testimonial-quoteMarkColor-green);\n border-radius: 50%;\n}\n\n.TestimonialGroup__avatar.TestimonialGroup__avatar--size-large {\n width: var(--base-size-48);\n height: var(--base-size-48);\n}\n\n.TestimonialGroup__quoteMark,\n.TestimonialGroup__quote,\n.TestimonialGroup__media {\n transition: opacity var(--brand-TestimonialGroup-fadeInDuration) ease-in-out;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__quoteMark {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 120ms;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__quote {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 80ms;\n}\n\n.TestimonialGroup__testimonial--out .TestimonialGroup__media {\n opacity: 0;\n transition: opacity var(--brand-TestimonialGroup-fadeOutDuration) ease-in-out 40ms;\n}\n\n.TestimonialGroup__testimonial--in .TestimonialGroup__quote {\n transition-delay: 100ms;\n}\n\n.TestimonialGroup__testimonial--in .TestimonialGroup__media {\n transition-delay: var(--brand-animation-duration-faster);\n}\n\n.TestimonialGroup__controls {\n display: flex;\n flex: none;\n order: 1;\n align-items: center;\n margin-block-start: var(--base-size-32);\n padding-block-start: var(--base-size-16);\n}\n\n.TestimonialGroup__content--expressive .TestimonialGroup__controls {\n margin-block-start: 0;\n}\n\n.TestimonialGroup__announcement {\n position: absolute;\n width: var(--brand-borderWidth-thin);\n height: var(--brand-borderWidth-thin);\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .TestimonialGroup__quoteMark,\n .TestimonialGroup__quote,\n .TestimonialGroup__media {\n transition: none;\n }\n}\n"],"mappings":""}
@@ -0,0 +1 @@
1
+ :root{--brand-IconButton-spinner-animationDuration-reducedMotion:1.6s;--brand-IconButton-spinner-animationDuration-default:.8s;--brand-IconButton-icon-size-large:var(--brand-Button-icon-size-large);--brand-IconButton-icon-size-medium:var(--brand-Button-icon-size-large);--brand-IconButton-icon-size-small:var(--brand-Button-icon-size-small);--brand-IconButton-icon-size:var(--brand-Button-icon-size-large);--brand-IconButton-control-size-large:var(--brand-Button-control-size-large);--brand-IconButton-control-size-medium:var(--brand-Button-control-size-medium);--brand-IconButton-control-size-small:var(--brand-Button-control-size-small);--brand-IconButton-control-size:var(--brand-Button-control-size-medium)}
@@ -0,0 +1 @@
1
+ :root,[data-color-mode=light],[data-color-mode=auto],[data-color-mode=dark]{--brand-IconButton-secondary-fgColor:var(--brand-color-text-muted);--brand-IconButton-subtle-fgColor:var(--brand-color-text-muted);--brand-IconButton-danger-fgColor-rest:var(--brand-color-danger-fg);--brand-IconButton-danger-fgColor-hover:var(--base-color-scale-white-0);--brand-IconButton-danger-fgColor-active:var(--base-color-scale-white-0);--brand-IconButton-danger-bgColor-rest:var(--brand-button-secondary-bgColor-rest);--brand-IconButton-danger-bgColor-hover:var(--brand-color-danger-emphasis);--brand-IconButton-danger-bgColor-active:var(--brand-color-danger-emphasis);--brand-IconButton-danger-borderColor-rest:var(--brand-button-secondary-borderColor-rest);--brand-IconButton-danger-borderColor-hover:var(--brand-color-danger-emphasis);--brand-IconButton-danger-borderColor-active:var(--brand-color-danger-emphasis);--brand-IconButton-inactive-fgColor:var(--brand-color-text-muted);--brand-IconButton-inactive-bgColor:var(--brand-color-canvas-subtle);--brand-IconButton-inactive-borderColor:var(--brand-color-canvas-subtle);--brand-IconButton-invisible-fgColor:var(--brand-color-text-muted);--brand-IconButton-invisible-bgColor-rest:transparent;--brand-IconButton-invisible-borderColor-rest:transparent}@media (prefers-color-scheme:dark){[data-color-mode=auto]{--brand-IconButton-secondary-fgColor:var(--brand-color-text-muted);--brand-IconButton-subtle-fgColor:var(--brand-color-text-muted);--brand-IconButton-danger-fgColor-rest:var(--brand-color-danger-fg);--brand-IconButton-danger-fgColor-hover:var(--base-color-scale-white-0);--brand-IconButton-danger-fgColor-active:var(--base-color-scale-white-0);--brand-IconButton-danger-bgColor-rest:var(--brand-button-secondary-bgColor-rest);--brand-IconButton-danger-bgColor-hover:var(--brand-color-danger-emphasis);--brand-IconButton-danger-bgColor-active:var(--brand-color-danger-emphasis);--brand-IconButton-danger-borderColor-rest:var(--brand-button-secondary-borderColor-rest);--brand-IconButton-danger-borderColor-hover:var(--brand-color-danger-emphasis);--brand-IconButton-danger-borderColor-active:var(--brand-color-danger-emphasis);--brand-IconButton-inactive-fgColor:var(--brand-color-text-muted);--brand-IconButton-inactive-bgColor:var(--brand-color-canvas-subtle);--brand-IconButton-inactive-borderColor:var(--brand-color-canvas-subtle);--brand-IconButton-invisible-fgColor:var(--brand-color-text-muted);--brand-IconButton-invisible-bgColor-rest:transparent;--brand-IconButton-invisible-borderColor-rest:transparent}}
@@ -9,7 +9,7 @@ export declare const IconButtonSizes: readonly ["small", "medium", "large"];
9
9
  export declare const defaultIconButtonVariant: "secondary";
10
10
  export declare const defaultIconButtonSize: "medium";
11
11
  export type IconButtonVariant = (typeof IconButtonVariants)[number];
12
- export type IconButtonSize = (typeof IconButtonSizes)[number];
12
+ export type IconButtonSize = (typeof IconButtonSizes)[number] | number;
13
13
  type IconButtonBaseProps<C extends React.ElementType> = Omit<BaseProps<C>, 'ref'> & {
14
14
  as?: C;
15
15
  variant?: IconButtonVariant;