@arc-ui/components 12.0.0-beta.16 → 12.0.0-beta.18

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 (251) hide show
  1. package/lib/Alert/Alert.cjs +1 -1
  2. package/lib/Alert/Alert.mjs +1 -1
  3. package/lib/Alert/styles.css +1 -1
  4. package/lib/Align/styles.css +1 -1
  5. package/lib/AppButton/styles.css +1 -1
  6. package/lib/Avatar/styles.css +1 -1
  7. package/lib/AvatarGroup/styles.css +1 -1
  8. package/lib/Badge/styles.css +1 -1
  9. package/lib/Banner/Banner.cjs +6 -6
  10. package/lib/Banner/Banner.mjs +6 -6
  11. package/lib/Box/styles.css +1 -1
  12. package/lib/BrandLogo/styles.css +1 -1
  13. package/lib/Breadcrumbs/Breadcrumbs.cjs +2 -2
  14. package/lib/Breadcrumbs/Breadcrumbs.mjs +2 -2
  15. package/lib/Breadcrumbs/styles.css +1 -1
  16. package/lib/Button/Button.cjs +2 -2
  17. package/lib/Button/Button.mjs +2 -2
  18. package/lib/Button/styles.css +1 -1
  19. package/lib/ButtonGroup/ButtonGroup.cjs +3 -3
  20. package/lib/ButtonGroup/ButtonGroup.mjs +3 -3
  21. package/lib/ButtonGroup/styles.css +1 -1
  22. package/lib/ButtonV2/ButtonV2.cjs +2 -2
  23. package/lib/ButtonV2/ButtonV2.mjs +2 -2
  24. package/lib/ButtonV2/styles.css +1 -1
  25. package/lib/Calendar/Calendar.cjs +4 -4
  26. package/lib/Calendar/Calendar.mjs +4 -4
  27. package/lib/Calendar/styles.css +1 -1
  28. package/lib/CardFooter/CardFooter.cjs +2 -4
  29. package/lib/CardFooter/CardFooter.mjs +2 -4
  30. package/lib/CardFooter/styles.css +1 -1
  31. package/lib/CardHeading/styles.css +1 -1
  32. package/lib/Carousel/Carousel.cjs +1 -1
  33. package/lib/Carousel/Carousel.mjs +1 -1
  34. package/lib/Carousel/styles.css +1 -1
  35. package/lib/Checkbox/styles.css +1 -1
  36. package/lib/Columns/styles.css +1 -1
  37. package/lib/ComboBox/ComboBox.cjs +6 -6
  38. package/lib/ComboBox/ComboBox.mjs +6 -6
  39. package/lib/ComboBox/styles.css +1 -1
  40. package/lib/ContentSwitcher/styles.css +1 -1
  41. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs +6 -4
  42. package/lib/ContentSwitcherDropdown/ContentSwitcherDropdown.mjs +6 -4
  43. package/lib/ContentSwitcherDropdown/styles.css +1 -1
  44. package/lib/DatePicker/DatePicker.cjs +9 -9
  45. package/lib/DatePicker/DatePicker.mjs +9 -9
  46. package/lib/DatePicker/styles.css +1 -1
  47. package/lib/Disclosure/styles.css +1 -1
  48. package/lib/DisclosureMini/styles.css +1 -1
  49. package/lib/Download/styles.css +1 -1
  50. package/lib/Drawer/Drawer.cjs +3 -3
  51. package/lib/Drawer/Drawer.mjs +3 -3
  52. package/lib/Drawer/styles.css +1 -1
  53. package/lib/Elevation/styles.css +1 -1
  54. package/lib/Filter/styles.css +1 -1
  55. package/lib/FormControl/styles.css +1 -1
  56. package/lib/GhostedHeroBanner/GhostedHeroBanner.cjs +31 -0
  57. package/lib/GhostedHeroBanner/GhostedHeroBanner.mjs +29 -0
  58. package/lib/GhostedHeroBanner/styles.css +1 -0
  59. package/lib/GradientBackground/GradientBackground.cjs +19 -0
  60. package/lib/GradientBackground/GradientBackground.mjs +17 -0
  61. package/lib/GradientBackground/styles.css +1 -0
  62. package/lib/Grid/styles.css +1 -1
  63. package/lib/Group/styles.css +1 -1
  64. package/lib/Heading/styles.css +1 -1
  65. package/lib/HeroBanner/HeroBanner.cjs +6 -6
  66. package/lib/HeroBanner/HeroBanner.mjs +6 -6
  67. package/lib/HeroBanner/styles.css +1 -1
  68. package/lib/HeroButton/HeroButton.cjs +2 -2
  69. package/lib/HeroButton/HeroButton.mjs +2 -2
  70. package/lib/HeroButton/styles.css +1 -1
  71. package/lib/Hidden/styles.css +1 -1
  72. package/lib/HorizontalCard/HorizontalCard.cjs +2 -4
  73. package/lib/HorizontalCard/HorizontalCard.mjs +2 -4
  74. package/lib/HorizontalCard/styles.css +1 -1
  75. package/lib/Icon/Icon.cjs +1 -1
  76. package/lib/Icon/Icon.mjs +1 -1
  77. package/lib/Icon/styles.css +1 -1
  78. package/lib/Image/styles.css +1 -1
  79. package/lib/ImpactCard/ImpactCard.cjs +2 -4
  80. package/lib/ImpactCard/ImpactCard.mjs +2 -4
  81. package/lib/ImpactCard/styles.css +1 -1
  82. package/lib/InformationCard/InformationCard.cjs +4 -4
  83. package/lib/InformationCard/InformationCard.mjs +4 -4
  84. package/lib/InformationCard/styles.css +1 -1
  85. package/lib/Link/Link.cjs +9 -22
  86. package/lib/Link/Link.mjs +9 -22
  87. package/lib/Link/styles.css +1 -1
  88. package/lib/Markup/styles.css +1 -1
  89. package/lib/MediaCard/MediaCard.cjs +4 -6
  90. package/lib/MediaCard/MediaCard.mjs +4 -6
  91. package/lib/MediaCard/styles.css +1 -1
  92. package/lib/Menu/Menu.cjs +261 -0
  93. package/lib/Menu/Menu.mjs +243 -0
  94. package/lib/Menu/styles.css +1 -0
  95. package/lib/Modal/Modal.cjs +18 -12
  96. package/lib/Modal/Modal.mjs +18 -12
  97. package/lib/Modal/styles.css +1 -1
  98. package/lib/Pagination/styles.css +1 -1
  99. package/lib/PaginationSimple/PaginationSimple.cjs +15 -49
  100. package/lib/PaginationSimple/PaginationSimple.mjs +15 -49
  101. package/lib/PaginationSimple/styles.css +1 -1
  102. package/lib/Popover/Popover.cjs +7 -7
  103. package/lib/Popover/Popover.mjs +7 -7
  104. package/lib/Popover/styles.css +1 -1
  105. package/lib/Poster/styles.css +1 -1
  106. package/lib/ProgressBar/styles.css +1 -1
  107. package/lib/ProgressStepper/ProgressStepper.cjs +8 -23
  108. package/lib/ProgressStepper/ProgressStepper.mjs +8 -23
  109. package/lib/ProgressStepper/styles.css +1 -1
  110. package/lib/RadioCardGroup/RadioCardGroup.cjs +2 -2
  111. package/lib/RadioCardGroup/RadioCardGroup.mjs +3 -3
  112. package/lib/RadioCardGroup/styles.css +1 -1
  113. package/lib/RadioGroup/styles.css +1 -1
  114. package/lib/Rule/styles.css +1 -1
  115. package/lib/ScrollToTop/ScrollToTop.cjs +8 -17
  116. package/lib/ScrollToTop/ScrollToTop.mjs +8 -17
  117. package/lib/ScrollToTop/styles.css +1 -1
  118. package/lib/Section/styles.css +1 -1
  119. package/lib/Select/Select.cjs +4 -3
  120. package/lib/Select/Select.mjs +4 -3
  121. package/lib/Select/styles.css +1 -1
  122. package/lib/SiteFooter/SiteFooter.cjs +1 -1
  123. package/lib/SiteFooter/SiteFooter.mjs +1 -1
  124. package/lib/SiteFooter/styles.css +1 -1
  125. package/lib/SiteFooterV2/SiteFooterV2.cjs +5 -5
  126. package/lib/SiteFooterV2/SiteFooterV2.mjs +5 -5
  127. package/lib/SiteFooterV2/styles.css +1 -1
  128. package/lib/SiteHeaderV2/SiteHeaderV2.cjs +11 -11
  129. package/lib/SiteHeaderV2/SiteHeaderV2.mjs +12 -12
  130. package/lib/SiteHeaderV2/styles.css +1 -1
  131. package/lib/Skeleton/styles.css +1 -1
  132. package/lib/SkipLink/styles.css +1 -1
  133. package/lib/Spinner/styles.css +1 -1
  134. package/lib/Surface/styles.css +1 -1
  135. package/lib/Switch/Switch.cjs +3 -2
  136. package/lib/Switch/Switch.mjs +3 -2
  137. package/lib/Switch/styles.css +1 -1
  138. package/lib/TabbedBanner/TabbedBanner.cjs +13 -10
  139. package/lib/TabbedBanner/TabbedBanner.mjs +13 -10
  140. package/lib/TabbedBanner/styles.css +1 -1
  141. package/lib/Tabs/Tabs.cjs +1 -1
  142. package/lib/Tabs/Tabs.mjs +1 -1
  143. package/lib/Tabs/styles.css +1 -1
  144. package/lib/Tag/Tag.cjs +15 -37
  145. package/lib/Tag/Tag.mjs +15 -37
  146. package/lib/Tag/styles.css +1 -1
  147. package/lib/TemplateBanner/TemplateBanner.cjs +6 -6
  148. package/lib/TemplateBanner/TemplateBanner.mjs +6 -6
  149. package/lib/TemplateBanner/styles.css +1 -1
  150. package/lib/Text/styles.css +1 -1
  151. package/lib/TextArea/TextArea.cjs +34 -26
  152. package/lib/TextArea/TextArea.mjs +34 -26
  153. package/lib/TextArea/styles.css +1 -1
  154. package/lib/TextInput/styles.css +1 -1
  155. package/lib/Theme/Theme.cjs +1 -1
  156. package/lib/Theme/Theme.mjs +1 -1
  157. package/lib/Theme/styles.css +1 -1
  158. package/lib/ThemeIcon/styles.css +1 -1
  159. package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +4 -4
  160. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +4 -4
  161. package/lib/ThumbnailSignpost/styles.css +1 -1
  162. package/lib/Toast/styles.css +1 -1
  163. package/lib/Tooltip/Tooltip.cjs +1 -1
  164. package/lib/Tooltip/Tooltip.mjs +1 -1
  165. package/lib/Tooltip/styles.css +1 -1
  166. package/lib/Truncate/styles.css +1 -1
  167. package/lib/TypographyCard/TypographyCard.cjs +2 -4
  168. package/lib/TypographyCard/TypographyCard.mjs +2 -4
  169. package/lib/TypographyCard/styles.css +1 -1
  170. package/lib/UniversalHeader/styles.css +1 -1
  171. package/lib/VerticalSpace/styles.css +1 -1
  172. package/lib/VideoPlayer/VideoPlayer.cjs +12 -5
  173. package/lib/VideoPlayer/VideoPlayer.mjs +12 -5
  174. package/lib/VideoPlayer/styles.css +1 -1
  175. package/lib/Visible/styles.css +1 -1
  176. package/lib/VisuallyHidden/styles.css +1 -1
  177. package/lib/_shared/cjs/BannerImage-kdAKagG-.cjs +13 -0
  178. package/lib/_shared/cjs/BtIconArrowRight-Bm5PIn_6.cjs +11 -0
  179. package/lib/_shared/cjs/BtIconChevronRight2Px-CIRaur2B.cjs +20 -0
  180. package/lib/_shared/cjs/BtIconChevronRightMid-eGxk3ae6.cjs +11 -0
  181. package/lib/_shared/cjs/{Button-b36K7-Cf.cjs → Button-CKTa6bQL.cjs} +1 -1
  182. package/lib/_shared/cjs/{ButtonV2-s8OF4enU.cjs → ButtonV2-CRNNZ_nd.cjs} +15 -4
  183. package/lib/_shared/cjs/{Calendar-D58QIWQz.cjs → Calendar-C5C0evEy.cjs} +17 -40
  184. package/lib/_shared/cjs/{CardFooter-B2ljCf25.cjs → CardFooter-DwE-u0Om.cjs} +9 -45
  185. package/lib/_shared/cjs/{Combination-iNPq-pNP.cjs → Combination-B-rSVLfT.cjs} +2 -0
  186. package/lib/_shared/cjs/{ComboBox-CmVMpsxn.cjs → ComboBox-BIMxZhJp.cjs} +10 -20
  187. package/lib/_shared/cjs/{ContentSwitcherDropdown-CWP2-zun.cjs → ContentSwitcherDropdown-CAWaAMZN.cjs} +4 -2
  188. package/lib/_shared/cjs/{DatePicker-Cx5VZpwJ.cjs → DatePicker-BgU6iidG.cjs} +2 -2
  189. package/lib/_shared/cjs/HeroButton-CiIygZ16.cjs +82 -0
  190. package/lib/_shared/cjs/Icon-KMACQ1i3.cjs +39 -0
  191. package/lib/_shared/cjs/{MediaCard-DkTTTQNz.cjs → MediaCard-kcqfmeue.cjs} +2 -2
  192. package/lib/_shared/cjs/MenuSubContent-Bs2_ebS3.cjs +1330 -0
  193. package/lib/_shared/cjs/{RadioCardGroupInput-DT0Xce4L.cjs → RadioCardGroupInput-BmntgyWB.cjs} +1 -1
  194. package/lib/_shared/cjs/{SiteHeaderV2NavItemWithSubNav-XnnzUfOs.cjs → SiteHeaderV2NavItemWithSubNav-DgoCW2W3.cjs} +8 -7
  195. package/lib/_shared/cjs/{TemplateBanner-BCbI7NLb.cjs → TemplateBanner-BMi77IGK.cjs} +10 -18
  196. package/lib/_shared/cjs/{index-DbQ2PCr3.cjs → index-Bt7hfZBc.cjs} +1 -1
  197. package/lib/_shared/cjs/{index-BcWpGxUd.cjs → index-C_Rl7v2g.cjs} +27 -94
  198. package/lib/_shared/cjs/{index-Cn7XSNle.cjs → index-CaO6cOF0.cjs} +3 -3
  199. package/lib/_shared/cjs/index-CqYNiqix.cjs +137 -0
  200. package/lib/_shared/cjs/{index-BMs6MHwq.cjs → index-DAr_oO4-.cjs} +2 -2
  201. package/lib/_shared/cjs/{index-DNgUhsBO.cjs → index-Dv1xvB_E.cjs} +1 -1
  202. package/lib/_shared/cjs/index-EFXw1jWg.cjs +97 -0
  203. package/lib/_shared/cjs/{index.es-CY6h69at.cjs → index.es-sqSQUWYg.cjs} +1 -1
  204. package/lib/_shared/esm/BannerImage-BTsixvUH.mjs +11 -0
  205. package/lib/_shared/esm/BtIconArrowRight-DpUmY3g3.mjs +9 -0
  206. package/lib/_shared/esm/BtIconChevronRight2Px-DzWb16fR.mjs +17 -0
  207. package/lib/_shared/esm/BtIconChevronRightMid-DE4lmVaG.mjs +9 -0
  208. package/lib/_shared/esm/{Button-DtmI3xYm.mjs → Button-9L4AksQP.mjs} +1 -1
  209. package/lib/_shared/esm/{ButtonV2-CkFdHviV.mjs → ButtonV2-2U4PvnpS.mjs} +15 -4
  210. package/lib/_shared/esm/{Calendar-C_b271wl.mjs → Calendar-L6u3D8xb.mjs} +17 -40
  211. package/lib/_shared/esm/{CardFooter-6APGUbK4.mjs → CardFooter-CgDDDI7Z.mjs} +9 -45
  212. package/lib/_shared/esm/{Combination-CFD0IA8r.mjs → Combination-BpO6XTeS.mjs} +1 -1
  213. package/lib/_shared/esm/{ComboBox-CTx_umV_.mjs → ComboBox-DUTrEu0N.mjs} +10 -20
  214. package/lib/_shared/esm/{ContentSwitcherDropdown-DuN_n1jh.mjs → ContentSwitcherDropdown-dktkyAjY.mjs} +4 -2
  215. package/lib/_shared/esm/{DatePicker-CIdfpUqM.mjs → DatePicker-CccSfg17.mjs} +2 -2
  216. package/lib/_shared/esm/HeroButton-HYskwyvn.mjs +80 -0
  217. package/lib/_shared/esm/Icon-MZfaoOo9.mjs +36 -0
  218. package/lib/_shared/esm/{MediaCard-_6xVVmiF.mjs → MediaCard-CjTDOvmx.mjs} +2 -2
  219. package/lib/_shared/esm/MenuSubContent-Cv9mSn58.mjs +1297 -0
  220. package/lib/_shared/esm/{RadioCardGroupInput-CwYJBtmO.mjs → RadioCardGroupInput-Cy1r7M8l.mjs} +1 -1
  221. package/lib/_shared/esm/{SiteHeaderV2NavItemWithSubNav-C_rohQhn.mjs → SiteHeaderV2NavItemWithSubNav-BLqiSeEC.mjs} +8 -7
  222. package/lib/_shared/esm/{TemplateBanner-Cckao4N8.mjs → TemplateBanner-zc4VmeeW.mjs} +10 -18
  223. package/lib/_shared/esm/index-BbAu4d3T.mjs +76 -0
  224. package/lib/_shared/esm/index-CL6dwOYV.mjs +135 -0
  225. package/lib/_shared/esm/{index-CpOcAL8k.mjs → index-CYUcQl4W.mjs} +3 -71
  226. package/lib/_shared/esm/{index-ZYyu0Vjh.mjs → index-CxrL7jIX.mjs} +3 -3
  227. package/lib/_shared/esm/{index-DNxTGgc1.mjs → index-DLovItWo.mjs} +1 -1
  228. package/lib/_shared/esm/{index-BUp5JjoD.mjs → index-DXTwueLZ.mjs} +1 -1
  229. package/lib/_shared/esm/{index-pkbjTTz_.mjs → index-J5IHetgg.mjs} +2 -2
  230. package/lib/_shared/esm/{index.es-JItYKukj.mjs → index.es-C3WGtwrW.mjs} +2 -2
  231. package/lib/index.cjs +2457 -1014
  232. package/lib/index.cjs.map +1 -1
  233. package/lib/index.d.cts +800 -431
  234. package/lib/index.d.mts +800 -431
  235. package/lib/index.js.map +1 -1
  236. package/lib/index.mjs +2437 -1014
  237. package/lib/index.mjs.map +1 -1
  238. package/lib/styles.css +22 -8
  239. package/package.json +11 -8
  240. package/lib/_shared/cjs/BtIconArrowRight-BX-bj8Y6.cjs +0 -27
  241. package/lib/_shared/cjs/BtIconChevronRight2Px-CnplmEFZ.cjs +0 -41
  242. package/lib/_shared/cjs/BtIconChevronRightMid-C6zjDEMv.cjs +0 -25
  243. package/lib/_shared/cjs/BtIconPlayFill-WUt-9eLl.cjs +0 -27
  244. package/lib/_shared/cjs/HeroButton-CrsC6Q7A.cjs +0 -124
  245. package/lib/_shared/cjs/Icon-DdqFr6bT.cjs +0 -52
  246. package/lib/_shared/esm/BtIconArrowRight-CTjAzV9X.mjs +0 -25
  247. package/lib/_shared/esm/BtIconChevronRight2Px-CWIIvs1E.mjs +0 -38
  248. package/lib/_shared/esm/BtIconChevronRightMid-DB68JQ0u.mjs +0 -23
  249. package/lib/_shared/esm/BtIconPlayFill-DEoVOrOQ.mjs +0 -25
  250. package/lib/_shared/esm/HeroButton-x7krReay.mjs +0 -122
  251. package/lib/_shared/esm/Icon-B626JGP1.mjs +0 -49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arc-ui/components",
3
- "version": "12.0.0-beta.16",
3
+ "version": "12.0.0-beta.18",
4
4
  "homepage": "https://ui.digital-ent-int.bt.com",
5
5
  "author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
6
6
  "main": "./lib/index.cjs",
@@ -44,6 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@radix-ui/react-dialog": "1.1.6",
47
+ "@radix-ui/react-dropdown-menu": "^2.1.6",
47
48
  "@radix-ui/react-label": "2.0.0",
48
49
  "@radix-ui/react-popover": "1.1.6",
49
50
  "@radix-ui/react-select": "2.1.6",
@@ -54,6 +55,7 @@
54
55
  "date-fns": "^2.30.0",
55
56
  "embla-carousel": "^8.3.0",
56
57
  "embla-carousel-react": "^8.3.0",
58
+ "mini-svg-data-uri": "^1.2.3",
57
59
  "react-player": "^2.16.0",
58
60
  "react-swipeable": "^7.0.1"
59
61
  },
@@ -84,19 +86,20 @@
84
86
  "rollup-plugin-dts": "^6.1.1",
85
87
  "rollup-plugin-peer-deps-external": "^2.2.4",
86
88
  "rollup-plugin-postcss": "^4.0.0",
89
+ "rollup-plugin-svg-import": "^3.0.0",
87
90
  "rollup-preserve-directives": "^1.1.3",
88
91
  "style-loader": "^4.0.0",
89
92
  "stylelint": "^16.10.0",
90
93
  "ts-jest": "^29.2.5",
91
94
  "tslib": "^2.8.1",
92
95
  "typescript": "5.6.3",
93
- "@arc-ui/css-config": "^12.0.0-beta.16",
94
- "@arc-ui/eslint-config": "^12.0.0-beta.16",
95
- "@arc-ui/helpers": "^12.0.0-beta.16",
96
- "@arc-ui/icons": "^12.0.0-beta.16",
97
- "@arc-ui/tokens-arc": "^12.0.0-beta.16",
98
- "@arc-ui/tokens-bt-enterprise": "^12.0.0-beta.16",
99
- "@arc-ui/typescript-config": "^12.0.0-beta.16"
96
+ "@arc-ui/css-config": "^12.0.0-beta.18",
97
+ "@arc-ui/eslint-config": "^12.0.0-beta.18",
98
+ "@arc-ui/helpers": "^12.0.0-beta.18",
99
+ "@arc-ui/tokens-arc": "^12.0.0-beta.18",
100
+ "@arc-ui/icons": "^12.0.0-beta.18",
101
+ "@arc-ui/tokens-bt-enterprise": "^12.0.0-beta.18",
102
+ "@arc-ui/typescript-config": "^12.0.0-beta.18"
100
103
  },
101
104
  "browserslist": [
102
105
  "defaults",
@@ -1,27 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var React = require('react');
5
-
6
- const BtIconArrowRight = (props) =>
7
- /*#__PURE__*/ React.createElement(
8
- "svg",
9
- Object.assign(
10
- {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- viewBox: "0 0 32 32",
13
- },
14
- props,
15
- ),
16
- /*#__PURE__*/ React.createElement("defs", null),
17
- /*#__PURE__*/ React.createElement("path", {
18
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
19
- fill: "currentColor",
20
- }),
21
- /*#__PURE__*/ React.createElement("path", {
22
- d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
23
- fill: "currentColor",
24
- }),
25
- );
26
-
27
- exports.BtIconArrowRight = BtIconArrowRight;
@@ -1,41 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var React = require('react');
5
-
6
- const BtIconChevronLeft2Px = (props) =>
7
- /*#__PURE__*/ React.createElement(
8
- "svg",
9
- Object.assign(
10
- {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- viewBox: "0 0 32 32",
13
- },
14
- props,
15
- ),
16
- /*#__PURE__*/ React.createElement("defs", null),
17
- /*#__PURE__*/ React.createElement("path", {
18
- d: "M22.5,29.99854a.99676.99676,0,0,1-.707-.293L8.08594,15.99268,21.793,2.294A1.00023,1.00023,0,0,1,23.207,3.709l-12.293,12.28467L23.207,28.2915a1,1,0,0,1-.707,1.707Z",
19
- fill: "currentColor",
20
- }),
21
- );
22
-
23
- const BtIconChevronRight2Px = (props) =>
24
- /*#__PURE__*/ React.createElement(
25
- "svg",
26
- Object.assign(
27
- {
28
- xmlns: "http://www.w3.org/2000/svg",
29
- viewBox: "0 0 32 32",
30
- },
31
- props,
32
- ),
33
- /*#__PURE__*/ React.createElement("defs", null),
34
- /*#__PURE__*/ React.createElement("path", {
35
- d: "M9.5,29.99854A1.00025,1.00025,0,0,1,8.793,28.291l12.293-12.28467L8.793,3.7085A.99989.99989,0,0,1,10.207,2.29443l13.707,13.71289L10.207,29.70605A.99827.99827,0,0,1,9.5,29.99854Z",
36
- fill: "currentColor",
37
- }),
38
- );
39
-
40
- exports.BtIconChevronLeft2Px = BtIconChevronLeft2Px;
41
- exports.BtIconChevronRight2Px = BtIconChevronRight2Px;
@@ -1,25 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var React = require('react');
5
-
6
- const BtIconChevronRightMid = (props) =>
7
- /*#__PURE__*/ React.createElement(
8
- "svg",
9
- Object.assign(
10
- {
11
- viewBox: "0 0 16 16",
12
- fill: "none",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- },
15
- props,
16
- ),
17
- /*#__PURE__*/ React.createElement("path", {
18
- fillRule: "evenodd",
19
- clipRule: "evenodd",
20
- d: "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
21
- fill: "currentColor",
22
- }),
23
- );
24
-
25
- exports.BtIconChevronRightMid = BtIconChevronRightMid;
@@ -1,27 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var React = require('react');
5
-
6
- const BtIconPlayFill = (props) =>
7
- /*#__PURE__*/ React.createElement(
8
- "svg",
9
- Object.assign(
10
- {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- viewBox: "0 0 32 32",
13
- },
14
- props,
15
- ),
16
- /*#__PURE__*/ React.createElement("defs", null),
17
- /*#__PURE__*/ React.createElement("path", {
18
- d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
19
- fill: "currentColor",
20
- }),
21
- /*#__PURE__*/ React.createElement("path", {
22
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
23
- fill: "currentColor",
24
- }),
25
- );
26
-
27
- exports.BtIconPlayFill = BtIconPlayFill;
@@ -1,124 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
5
- var React = require('react');
6
- var index = require('./index-CTlXMLug.cjs');
7
- var index$1 = require('./index-DR8Rkav9.cjs');
8
- var Icon = require('./Icon-DdqFr6bT.cjs');
9
- var Surface = require('./Surface-BFx1yNsq.cjs');
10
- var Spinner = require('./Spinner-bbrOwxv2.cjs');
11
-
12
- const BtIconArrowAltRight = (props) =>
13
- /*#__PURE__*/ React.createElement(
14
- "svg",
15
- Object.assign(
16
- {
17
- xmlns: "http://www.w3.org/2000/svg",
18
- viewBox: "0 0 32 32",
19
- },
20
- props,
21
- ),
22
- /*#__PURE__*/ React.createElement("defs", null),
23
- /*#__PURE__*/ React.createElement("path", {
24
- d: "M18.85352,11.64648a.49995.49995,0,0,0-.707.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.49995.49995,0,1,0,.707.707L23.207,16Z",
25
- fill: "currentColor",
26
- }),
27
- );
28
-
29
- const BtIconArrowAltDown = (props) =>
30
- /*#__PURE__*/ React.createElement(
31
- "svg",
32
- Object.assign(
33
- {
34
- xmlns: "http://www.w3.org/2000/svg",
35
- viewBox: "0 0 32 32",
36
- },
37
- props,
38
- ),
39
- /*#__PURE__*/ React.createElement("defs", null),
40
- /*#__PURE__*/ React.createElement("path", {
41
- d: "M20.35352,18.14648a.49983.49983,0,0,0-.707,0L16.5,21.293V9.5a.5.5,0,0,0-1,0V21.293l-3.14648-3.14648a.49995.49995,0,1,0-.707.707L16,23.207l4.35352-4.35352A.49982.49982,0,0,0,20.35352,18.14648Z",
42
- fill: "currentColor",
43
- }),
44
- );
45
-
46
- const ArcIconPlay = (props) =>
47
- /*#__PURE__*/ React.createElement(
48
- "svg",
49
- Object.assign(
50
- {
51
- viewBox: "0 0 56 56",
52
- fill: "none",
53
- xmlns: "http://www.w3.org/2000/svg",
54
- },
55
- props,
56
- ),
57
- /*#__PURE__*/ React.createElement("path", {
58
- d: "M36.4683 26.3206L23.9068 19.0686C23.6123 18.8984 23.2783 18.8088 22.9382 18.8086C22.5981 18.8084 22.264 18.8978 21.9694 19.0677C21.6748 19.2376 21.4301 19.4821 21.26 19.7765C21.0898 20.071 21.0001 20.4051 21 20.7451V35.2491C20.9985 35.5899 21.087 35.9251 21.2566 36.2207C21.4263 36.5162 21.671 36.7617 21.9661 36.9323C22.2612 37.1028 22.5961 37.1923 22.9369 37.1918C23.2777 37.1912 23.6123 37.1006 23.9068 36.9291L36.4683 29.6754C36.7626 29.5053 37.007 29.2608 37.1769 28.9664C37.3469 28.6719 37.4363 28.338 37.4363 27.998C37.4363 27.6581 37.3469 27.3241 37.1769 27.0297C37.007 26.7352 36.7626 26.4907 36.4683 26.3206ZM35.5933 28.1599L23.0318 35.4136C23.0035 35.4306 22.9711 35.4396 22.9381 35.4396C22.9052 35.4396 22.8728 35.4306 22.8445 35.4136C22.815 35.3977 22.7906 35.3739 22.7739 35.3448C22.7572 35.3158 22.7489 35.2826 22.75 35.2491V20.7451C22.7494 20.7122 22.7579 20.6797 22.7745 20.6513C22.7912 20.6229 22.8154 20.5996 22.8445 20.5841C22.8727 20.567 22.9051 20.5579 22.9381 20.5579C22.9712 20.5579 23.0036 20.567 23.0318 20.5841L35.5933 27.8344C35.6226 27.8505 35.647 27.8743 35.6637 27.9034C35.6803 27.9324 35.6887 27.9654 35.6878 27.9989C35.6882 28.0318 35.6796 28.0642 35.663 28.0926C35.6463 28.121 35.6222 28.1442 35.5933 28.1599Z",
59
- fill: "currentColor",
60
- }),
61
- );
62
-
63
- const ArcIconWarn = (props) =>
64
- /*#__PURE__*/ React.createElement(
65
- "svg",
66
- Object.assign(
67
- {
68
- xmlns: "http://www.w3.org/2000/svg",
69
- viewBox: "0 0 32 32",
70
- },
71
- props,
72
- ),
73
- /*#__PURE__*/ React.createElement("path", {
74
- className: "cls-1",
75
- fill: "currentColor",
76
- d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z",
77
- }),
78
- /*#__PURE__*/ React.createElement("path", {
79
- className: "cls-1",
80
- d: "M16.00488,19.00977a.49972.49972,0,0,0,.5-.5L16.50684,9.5a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,19.00977Z",
81
- fill: "currentColor",
82
- }),
83
- );
84
-
85
- var HeroButton = React.forwardRef(function (_a, ref) {
86
- var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, ariaLabel = _a.ariaLabel, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = filterAttrs.__rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
87
- var surface = React.useContext(Surface.Context).surface;
88
- var HeroButtonClasses = index.classNames("arc-HeroButton", ["arc-HeroButton--".concat(index$1.camelcase(buttonStyle))], {
89
- "arc-HeroButton--onDarkSurface": surface === "dark",
90
- "arc-HeroButton--emptyLabel": !label,
91
- "arc-HeroButton--isLoading": isLoading,
92
- "arc-HeroButton--withIcon": icon,
93
- "arc-HeroButton--hasGradient": buttonStyle.includes("-gradient"),
94
- });
95
- var HeroButtonIcons = {
96
- "arrow-right": BtIconArrowAltRight,
97
- "arrow-down": BtIconArrowAltDown,
98
- play: ArcIconPlay,
99
- warning: ArcIconWarn,
100
- };
101
- var commonProps = filterAttrs.__assign({ id: id, onClick: onClick, ref: ref }, filterAttrs.filterAttrs(props));
102
- if (href && !isLoading) {
103
- return (React.createElement("a", filterAttrs.__assign({}, commonProps, { className: HeroButtonClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
104
- React.createElement("span", { className: index.classNames("arc-HeroButton-inner") },
105
- label && React.createElement("span", { className: "arc-HeroButton-label" }, label),
106
- isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
107
- React.createElement(Spinner.Spinner, { size: "xxl" }))),
108
- icon && !isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
109
- React.createElement(Icon.Icon, { size: 48, icon: buttonStyle === "warning"
110
- ? HeroButtonIcons["warning"]
111
- : HeroButtonIcons[icon] }))))));
112
- }
113
- return (React.createElement("button", filterAttrs.__assign({}, commonProps, { className: HeroButtonClasses, "aria-label": ariaLabel, disabled: isLoading, type: type, form: form }),
114
- React.createElement("span", { className: index.classNames("arc-HeroButton-inner") },
115
- label && React.createElement("span", { className: "arc-HeroButton-label" }, label),
116
- icon && !isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
117
- React.createElement(Icon.Icon, { size: 48, icon: buttonStyle === "warning"
118
- ? HeroButtonIcons["warning"]
119
- : HeroButtonIcons[icon] }))),
120
- isLoading && (React.createElement("span", { className: "arc-HeroButton-icon" },
121
- React.createElement(Spinner.Spinner, { size: "xxl" }))))));
122
- });
123
-
124
- exports.HeroButton = HeroButton;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- var filterAttrs = require('./filter-attrs-eK6E_34o.cjs');
4
- var React = require('react');
5
- var index = require('./index-CTlXMLug.cjs');
6
- var suffixModifier = require('./suffix-modifier-DLUGR-yG.cjs');
7
- var Surface = require('./Surface-BFx1yNsq.cjs');
8
-
9
- /**
10
- * Use `Icon` to display brand iconography.
11
- */
12
- var Icon = function (_a) {
13
- var _b;
14
- var testId = _a.testId, icon = _a.icon, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isPresentationIcon, isPresentationIcon = _e === void 0 ? false : _e, label = _a.label, size = _a.size, props = filterAttrs.__rest(_a, ["testId", "icon", "color", "isInline", "isPresentationIcon", "label", "size"]);
15
- var surface = React.useContext(Surface.Context).surface;
16
- var presentationIconProps = {
17
- role: "presentation",
18
- "aria-hidden": true,
19
- };
20
- var renderIcon = function () {
21
- if (!icon)
22
- return null;
23
- var accessibleProps = isPresentationIcon ? presentationIconProps : {};
24
- if (typeof icon === "function") {
25
- var IconComponent = icon || (function () { return React.createElement(React.Fragment, null); });
26
- return React.createElement(IconComponent, filterAttrs.__assign({}, accessibleProps));
27
- }
28
- if (React.isValidElement(icon) && icon.type === "svg") {
29
- return React.cloneElement(icon, accessibleProps);
30
- }
31
- return null;
32
- };
33
- return (React.createElement("span", filterAttrs.__assign({ "data-testid": testId, "aria-label": label, className: index.classNames((_b = {},
34
- _b["arc-Icon"] = true,
35
- _b[suffixModifier.suffixModifier("arc-Icon--color", color)] = color !== "auto",
36
- _b["arc-Icon--inline"] = isInline,
37
- _b["arc-Icon--onDarkSurface"] = surface === "dark",
38
- _b)), role: label ? "img" : undefined, style: {
39
- height: size,
40
- width: size,
41
- } }, filterAttrs.filterAttrs(props)), renderIcon()));
42
- };
43
- var colors = [
44
- "auto",
45
- "brand",
46
- "statusRed",
47
- "statusAmber",
48
- "statusGreen",
49
- ];
50
-
51
- exports.Icon = Icon;
52
- exports.colors = colors;
@@ -1,25 +0,0 @@
1
- 'use client';
2
- import React__default from 'react';
3
-
4
- const BtIconArrowRight = (props) =>
5
- /*#__PURE__*/ React__default.createElement(
6
- "svg",
7
- Object.assign(
8
- {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- viewBox: "0 0 32 32",
11
- },
12
- props,
13
- ),
14
- /*#__PURE__*/ React__default.createElement("defs", null),
15
- /*#__PURE__*/ React__default.createElement("path", {
16
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,27A13,13,0,1,1,29,16,13.01474,13.01474,0,0,1,16,29Z",
17
- fill: "currentColor",
18
- }),
19
- /*#__PURE__*/ React__default.createElement("path", {
20
- d: "M18.14648,11.64648a.49983.49983,0,0,0,0,.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.5.5,0,1,0,.707.707L23.207,16l-4.35351-4.35352A.49983.49983,0,0,0,18.14648,11.64648Z",
21
- fill: "currentColor",
22
- }),
23
- );
24
-
25
- export { BtIconArrowRight as B };
@@ -1,38 +0,0 @@
1
- 'use client';
2
- import React__default from 'react';
3
-
4
- const BtIconChevronLeft2Px = (props) =>
5
- /*#__PURE__*/ React__default.createElement(
6
- "svg",
7
- Object.assign(
8
- {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- viewBox: "0 0 32 32",
11
- },
12
- props,
13
- ),
14
- /*#__PURE__*/ React__default.createElement("defs", null),
15
- /*#__PURE__*/ React__default.createElement("path", {
16
- d: "M22.5,29.99854a.99676.99676,0,0,1-.707-.293L8.08594,15.99268,21.793,2.294A1.00023,1.00023,0,0,1,23.207,3.709l-12.293,12.28467L23.207,28.2915a1,1,0,0,1-.707,1.707Z",
17
- fill: "currentColor",
18
- }),
19
- );
20
-
21
- const BtIconChevronRight2Px = (props) =>
22
- /*#__PURE__*/ React__default.createElement(
23
- "svg",
24
- Object.assign(
25
- {
26
- xmlns: "http://www.w3.org/2000/svg",
27
- viewBox: "0 0 32 32",
28
- },
29
- props,
30
- ),
31
- /*#__PURE__*/ React__default.createElement("defs", null),
32
- /*#__PURE__*/ React__default.createElement("path", {
33
- d: "M9.5,29.99854A1.00025,1.00025,0,0,1,8.793,28.291l12.293-12.28467L8.793,3.7085A.99989.99989,0,0,1,10.207,2.29443l13.707,13.71289L10.207,29.70605A.99827.99827,0,0,1,9.5,29.99854Z",
34
- fill: "currentColor",
35
- }),
36
- );
37
-
38
- export { BtIconChevronLeft2Px as B, BtIconChevronRight2Px as a };
@@ -1,23 +0,0 @@
1
- 'use client';
2
- import React__default from 'react';
3
-
4
- const BtIconChevronRightMid = (props) =>
5
- /*#__PURE__*/ React__default.createElement(
6
- "svg",
7
- Object.assign(
8
- {
9
- viewBox: "0 0 16 16",
10
- fill: "none",
11
- xmlns: "http://www.w3.org/2000/svg",
12
- },
13
- props,
14
- ),
15
- /*#__PURE__*/ React__default.createElement("path", {
16
- fillRule: "evenodd",
17
- clipRule: "evenodd",
18
- d: "M9.04543 8.0002L6.19676 5.1482C6.07077 5.02196 6 4.85089 6 4.67253C6 4.49418 6.07077 4.32311 6.19676 4.19687C6.25906 4.13446 6.33304 4.08495 6.41449 4.05117C6.49594 4.01739 6.58325 4 6.67143 4C6.75961 4 6.84692 4.01739 6.92837 4.05117C7.00982 4.08495 7.0838 4.13446 7.1461 4.19687L10.4701 7.52487C10.5959 7.65108 10.6665 7.82201 10.6665 8.0002C10.6665 8.1784 10.5959 8.34932 10.4701 8.47553L7.1461 11.8035C7.0838 11.8659 7.00982 11.9155 6.92837 11.9492C6.84692 11.983 6.75961 12.0004 6.67143 12.0004C6.58325 12.0004 6.49594 11.983 6.41449 11.9492C6.33304 11.9155 6.25906 11.8659 6.19676 11.8035C6.07077 11.6773 6 11.5062 6 11.3279C6 11.1495 6.07077 10.9784 6.19676 10.8522L9.04543 8.0002Z",
19
- fill: "currentColor",
20
- }),
21
- );
22
-
23
- export { BtIconChevronRightMid as B };
@@ -1,25 +0,0 @@
1
- 'use client';
2
- import React__default from 'react';
3
-
4
- const BtIconPlayFill = (props) =>
5
- /*#__PURE__*/ React__default.createElement(
6
- "svg",
7
- Object.assign(
8
- {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- viewBox: "0 0 32 32",
11
- },
12
- props,
13
- ),
14
- /*#__PURE__*/ React__default.createElement("defs", null),
15
- /*#__PURE__*/ React__default.createElement("path", {
16
- d: "M13.16113,11.76172a.10284.10284,0,0,0-.10742,0A.10229.10229,0,0,0,13,11.85449v8.2876a.10314.10314,0,0,0,.05371.09326.10451.10451,0,0,0,.10742.00049l7.17774-4.14453a.10285.10285,0,0,0,.05371-.09277.10421.10421,0,0,0-.05371-.09375Z",
17
- fill: "currentColor",
18
- }),
19
- /*#__PURE__*/ React__default.createElement("path", {
20
- d: "M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm4.83887,14.957-7.17774,4.14453A1.10791,1.10791,0,0,1,12,20.14209v-8.2876a1.107,1.107,0,0,1,1.66113-.95849l7.17774,4.14355a1.10688,1.10688,0,0,1,0,1.91748Z",
21
- fill: "currentColor",
22
- }),
23
- );
24
-
25
- export { BtIconPlayFill as B };
@@ -1,122 +0,0 @@
1
- 'use client';
2
- import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
3
- import React__default, { forwardRef, useContext } from 'react';
4
- import { c as classNames } from './index-5C0-U8cc.mjs';
5
- import { c as camelcase } from './index-Spae4j7j.mjs';
6
- import { I as Icon } from './Icon-B626JGP1.mjs';
7
- import { C as Context } from './Surface-Colbp3Zx.mjs';
8
- import { S as Spinner } from './Spinner-Cd7LiPTy.mjs';
9
-
10
- const BtIconArrowAltRight = (props) =>
11
- /*#__PURE__*/ React__default.createElement(
12
- "svg",
13
- Object.assign(
14
- {
15
- xmlns: "http://www.w3.org/2000/svg",
16
- viewBox: "0 0 32 32",
17
- },
18
- props,
19
- ),
20
- /*#__PURE__*/ React__default.createElement("defs", null),
21
- /*#__PURE__*/ React__default.createElement("path", {
22
- d: "M18.85352,11.64648a.49995.49995,0,0,0-.707.707L21.293,15.5H9.5a.5.5,0,0,0,0,1H21.293l-3.14649,3.14648a.49995.49995,0,1,0,.707.707L23.207,16Z",
23
- fill: "currentColor",
24
- }),
25
- );
26
-
27
- const BtIconArrowAltDown = (props) =>
28
- /*#__PURE__*/ React__default.createElement(
29
- "svg",
30
- Object.assign(
31
- {
32
- xmlns: "http://www.w3.org/2000/svg",
33
- viewBox: "0 0 32 32",
34
- },
35
- props,
36
- ),
37
- /*#__PURE__*/ React__default.createElement("defs", null),
38
- /*#__PURE__*/ React__default.createElement("path", {
39
- d: "M20.35352,18.14648a.49983.49983,0,0,0-.707,0L16.5,21.293V9.5a.5.5,0,0,0-1,0V21.293l-3.14648-3.14648a.49995.49995,0,1,0-.707.707L16,23.207l4.35352-4.35352A.49982.49982,0,0,0,20.35352,18.14648Z",
40
- fill: "currentColor",
41
- }),
42
- );
43
-
44
- const ArcIconPlay = (props) =>
45
- /*#__PURE__*/ React__default.createElement(
46
- "svg",
47
- Object.assign(
48
- {
49
- viewBox: "0 0 56 56",
50
- fill: "none",
51
- xmlns: "http://www.w3.org/2000/svg",
52
- },
53
- props,
54
- ),
55
- /*#__PURE__*/ React__default.createElement("path", {
56
- d: "M36.4683 26.3206L23.9068 19.0686C23.6123 18.8984 23.2783 18.8088 22.9382 18.8086C22.5981 18.8084 22.264 18.8978 21.9694 19.0677C21.6748 19.2376 21.4301 19.4821 21.26 19.7765C21.0898 20.071 21.0001 20.4051 21 20.7451V35.2491C20.9985 35.5899 21.087 35.9251 21.2566 36.2207C21.4263 36.5162 21.671 36.7617 21.9661 36.9323C22.2612 37.1028 22.5961 37.1923 22.9369 37.1918C23.2777 37.1912 23.6123 37.1006 23.9068 36.9291L36.4683 29.6754C36.7626 29.5053 37.007 29.2608 37.1769 28.9664C37.3469 28.6719 37.4363 28.338 37.4363 27.998C37.4363 27.6581 37.3469 27.3241 37.1769 27.0297C37.007 26.7352 36.7626 26.4907 36.4683 26.3206ZM35.5933 28.1599L23.0318 35.4136C23.0035 35.4306 22.9711 35.4396 22.9381 35.4396C22.9052 35.4396 22.8728 35.4306 22.8445 35.4136C22.815 35.3977 22.7906 35.3739 22.7739 35.3448C22.7572 35.3158 22.7489 35.2826 22.75 35.2491V20.7451C22.7494 20.7122 22.7579 20.6797 22.7745 20.6513C22.7912 20.6229 22.8154 20.5996 22.8445 20.5841C22.8727 20.567 22.9051 20.5579 22.9381 20.5579C22.9712 20.5579 23.0036 20.567 23.0318 20.5841L35.5933 27.8344C35.6226 27.8505 35.647 27.8743 35.6637 27.9034C35.6803 27.9324 35.6887 27.9654 35.6878 27.9989C35.6882 28.0318 35.6796 28.0642 35.663 28.0926C35.6463 28.121 35.6222 28.1442 35.5933 28.1599Z",
57
- fill: "currentColor",
58
- }),
59
- );
60
-
61
- const ArcIconWarn = (props) =>
62
- /*#__PURE__*/ React__default.createElement(
63
- "svg",
64
- Object.assign(
65
- {
66
- xmlns: "http://www.w3.org/2000/svg",
67
- viewBox: "0 0 32 32",
68
- },
69
- props,
70
- ),
71
- /*#__PURE__*/ React__default.createElement("path", {
72
- className: "cls-1",
73
- fill: "currentColor",
74
- d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z",
75
- }),
76
- /*#__PURE__*/ React__default.createElement("path", {
77
- className: "cls-1",
78
- d: "M16.00488,19.00977a.49972.49972,0,0,0,.5-.5L16.50684,9.5a.5.5,0,0,0-1,0l-.002,9.00977A.5.5,0,0,0,16.00488,19.00977Z",
79
- fill: "currentColor",
80
- }),
81
- );
82
-
83
- var HeroButton = forwardRef(function (_a, ref) {
84
- var label = _a.label, _b = _a.buttonStyle, buttonStyle = _b === void 0 ? "primary" : _b, icon = _a.icon, ariaLabel = _a.ariaLabel, _c = _a.isLoading, isLoading = _c === void 0 ? false : _c, onClick = _a.onClick, href = _a.href, id = _a.id, rel = _a.rel, target = _a.target, type = _a.type, form = _a.form, props = __rest(_a, ["label", "buttonStyle", "icon", "ariaLabel", "isLoading", "onClick", "href", "id", "rel", "target", "type", "form"]);
85
- var surface = useContext(Context).surface;
86
- var HeroButtonClasses = classNames("arc-HeroButton", ["arc-HeroButton--".concat(camelcase(buttonStyle))], {
87
- "arc-HeroButton--onDarkSurface": surface === "dark",
88
- "arc-HeroButton--emptyLabel": !label,
89
- "arc-HeroButton--isLoading": isLoading,
90
- "arc-HeroButton--withIcon": icon,
91
- "arc-HeroButton--hasGradient": buttonStyle.includes("-gradient"),
92
- });
93
- var HeroButtonIcons = {
94
- "arrow-right": BtIconArrowAltRight,
95
- "arrow-down": BtIconArrowAltDown,
96
- play: ArcIconPlay,
97
- warning: ArcIconWarn,
98
- };
99
- var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterAttrs(props));
100
- if (href && !isLoading) {
101
- return (React__default.createElement("a", __assign({}, commonProps, { className: HeroButtonClasses, href: href, rel: rel, "aria-label": ariaLabel, target: target }),
102
- React__default.createElement("span", { className: classNames("arc-HeroButton-inner") },
103
- label && React__default.createElement("span", { className: "arc-HeroButton-label" }, label),
104
- isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
105
- React__default.createElement(Spinner, { size: "xxl" }))),
106
- icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
107
- React__default.createElement(Icon, { size: 48, icon: buttonStyle === "warning"
108
- ? HeroButtonIcons["warning"]
109
- : HeroButtonIcons[icon] }))))));
110
- }
111
- return (React__default.createElement("button", __assign({}, commonProps, { className: HeroButtonClasses, "aria-label": ariaLabel, disabled: isLoading, type: type, form: form }),
112
- React__default.createElement("span", { className: classNames("arc-HeroButton-inner") },
113
- label && React__default.createElement("span", { className: "arc-HeroButton-label" }, label),
114
- icon && !isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
115
- React__default.createElement(Icon, { size: 48, icon: buttonStyle === "warning"
116
- ? HeroButtonIcons["warning"]
117
- : HeroButtonIcons[icon] }))),
118
- isLoading && (React__default.createElement("span", { className: "arc-HeroButton-icon" },
119
- React__default.createElement(Spinner, { size: "xxl" }))))));
120
- });
121
-
122
- export { HeroButton as H };
@@ -1,49 +0,0 @@
1
- import { _ as __rest, a as __assign, f as filterAttrs } from './filter-attrs-B6CM-NUr.mjs';
2
- import React__default, { useContext } from 'react';
3
- import { c as classNames } from './index-5C0-U8cc.mjs';
4
- import { s as suffixModifier } from './suffix-modifier-B_pO0UkF.mjs';
5
- import { C as Context } from './Surface-Colbp3Zx.mjs';
6
-
7
- /**
8
- * Use `Icon` to display brand iconography.
9
- */
10
- var Icon = function (_a) {
11
- var _b;
12
- var testId = _a.testId, icon = _a.icon, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.isInline, isInline = _d === void 0 ? false : _d, _e = _a.isPresentationIcon, isPresentationIcon = _e === void 0 ? false : _e, label = _a.label, size = _a.size, props = __rest(_a, ["testId", "icon", "color", "isInline", "isPresentationIcon", "label", "size"]);
13
- var surface = useContext(Context).surface;
14
- var presentationIconProps = {
15
- role: "presentation",
16
- "aria-hidden": true,
17
- };
18
- var renderIcon = function () {
19
- if (!icon)
20
- return null;
21
- var accessibleProps = isPresentationIcon ? presentationIconProps : {};
22
- if (typeof icon === "function") {
23
- var IconComponent = icon || (function () { return React__default.createElement(React__default.Fragment, null); });
24
- return React__default.createElement(IconComponent, __assign({}, accessibleProps));
25
- }
26
- if (React__default.isValidElement(icon) && icon.type === "svg") {
27
- return React__default.cloneElement(icon, accessibleProps);
28
- }
29
- return null;
30
- };
31
- return (React__default.createElement("span", __assign({ "data-testid": testId, "aria-label": label, className: classNames((_b = {},
32
- _b["arc-Icon"] = true,
33
- _b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
34
- _b["arc-Icon--inline"] = isInline,
35
- _b["arc-Icon--onDarkSurface"] = surface === "dark",
36
- _b)), role: label ? "img" : undefined, style: {
37
- height: size,
38
- width: size,
39
- } }, filterAttrs(props)), renderIcon()));
40
- };
41
- var colors = [
42
- "auto",
43
- "brand",
44
- "statusRed",
45
- "statusAmber",
46
- "statusGreen",
47
- ];
48
-
49
- export { Icon as I, colors as c };