@arc-ui/components 10.8.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/dist/Align/{index.d.ts → Align.cjs.d.ts} +0 -0
  2. package/dist/Align/Align.cjs.js +33 -0
  3. package/dist/Align/Align.esm.d.ts +25 -0
  4. package/dist/Align/{index.js → Align.esm.js} +3 -3
  5. package/dist/Align/package.json +7 -0
  6. package/dist/Base/{index.d.ts → Base.cjs.d.ts} +0 -0
  7. package/dist/Base/Base.cjs.js +23 -0
  8. package/dist/Base/Base.esm.d.ts +16 -0
  9. package/dist/Base/{index.js → Base.esm.js} +1 -1
  10. package/dist/Base/package.json +7 -0
  11. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -0
  12. package/dist/BrandLogo/BrandLogo.cjs.js +14 -0
  13. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -0
  14. package/dist/BrandLogo/BrandLogo.esm.js +6 -0
  15. package/dist/BrandLogo/package.json +7 -0
  16. package/dist/Breadcrumbs/{index.d.ts → Breadcrumbs.cjs.d.ts} +0 -0
  17. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +650 -0
  18. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +61 -0
  19. package/dist/Breadcrumbs/{index.js → Breadcrumbs.esm.js} +9 -9
  20. package/dist/Breadcrumbs/package.json +7 -0
  21. package/dist/Button/Button.cjs.d.ts +1 -0
  22. package/dist/Button/Button.cjs.js +16 -0
  23. package/dist/Button/Button.esm.d.ts +1 -0
  24. package/dist/Button/Button.esm.js +8 -0
  25. package/dist/Button/package.json +7 -0
  26. package/dist/Card/{index.d.ts → Card.cjs.d.ts} +0 -0
  27. package/dist/Card/Card.cjs.js +126 -0
  28. package/dist/Card/Card.esm.d.ts +130 -0
  29. package/dist/Card/{index.js → Card.esm.js} +10 -10
  30. package/dist/Card/package.json +7 -0
  31. package/dist/Checkbox/{index.d.ts → Checkbox.cjs.d.ts} +0 -0
  32. package/dist/Checkbox/Checkbox.cjs.js +78 -0
  33. package/dist/Checkbox/Checkbox.esm.d.ts +59 -0
  34. package/dist/Checkbox/Checkbox.esm.js +70 -0
  35. package/dist/Checkbox/package.json +7 -0
  36. package/dist/Clock/{index.d.ts → Clock.cjs.d.ts} +0 -0
  37. package/dist/Clock/Clock.cjs.js +43 -0
  38. package/dist/Clock/Clock.esm.d.ts +15 -0
  39. package/dist/Clock/{index.js → Clock.esm.js} +1 -1
  40. package/dist/Clock/package.json +7 -0
  41. package/dist/Columns/{index.d.ts → Columns.cjs.d.ts} +0 -0
  42. package/dist/Columns/Columns.cjs.js +59 -0
  43. package/dist/Columns/Columns.esm.d.ts +76 -0
  44. package/dist/Columns/{index.js → Columns.esm.js} +3 -3
  45. package/dist/Columns/package.json +7 -0
  46. package/dist/Curve/Curve.cjs.d.ts +1 -0
  47. package/dist/Curve/Curve.cjs.js +13 -0
  48. package/dist/Curve/Curve.esm.d.ts +1 -0
  49. package/dist/Curve/Curve.esm.js +5 -0
  50. package/dist/Curve/package.json +7 -0
  51. package/dist/Disclosure/{index.d.ts → Disclosure.cjs.d.ts} +1 -1
  52. package/dist/Disclosure/Disclosure.cjs.js +36 -0
  53. package/dist/Disclosure/Disclosure.esm.d.ts +31 -0
  54. package/dist/Disclosure/{index.js → Disclosure.esm.js} +8 -5
  55. package/dist/Disclosure/package.json +7 -0
  56. package/dist/Elevation/{index.d.ts → Elevation.cjs.d.ts} +0 -0
  57. package/dist/Elevation/Elevation.cjs.js +25 -0
  58. package/dist/Elevation/Elevation.esm.d.ts +16 -0
  59. package/dist/Elevation/{index.js → Elevation.esm.js} +2 -2
  60. package/dist/Elevation/package.json +7 -0
  61. package/dist/FormControl/FormControl.cjs.d.ts +1 -0
  62. package/dist/FormControl/FormControl.cjs.js +14 -0
  63. package/dist/FormControl/FormControl.esm.d.ts +1 -0
  64. package/dist/FormControl/FormControl.esm.js +5 -0
  65. package/dist/FormControl/package.json +7 -0
  66. package/dist/Group/{index.d.ts → Group.cjs.d.ts} +0 -0
  67. package/dist/Group/Group.cjs.js +50 -0
  68. package/dist/Group/Group.esm.d.ts +46 -0
  69. package/dist/Group/{index.js → Group.esm.js} +3 -3
  70. package/dist/Group/package.json +7 -0
  71. package/dist/Heading/Heading.cjs.d.ts +1 -0
  72. package/dist/Heading/Heading.cjs.js +14 -0
  73. package/dist/Heading/Heading.esm.d.ts +1 -0
  74. package/dist/Heading/Heading.esm.js +6 -0
  75. package/dist/Heading/package.json +7 -0
  76. package/dist/Icon/Icon.cjs.d.ts +1 -0
  77. package/dist/Icon/Icon.cjs.js +14 -0
  78. package/dist/Icon/Icon.esm.d.ts +1 -0
  79. package/dist/Icon/Icon.esm.js +6 -0
  80. package/dist/Icon/package.json +7 -0
  81. package/dist/Image/Image.cjs.d.ts +1 -0
  82. package/dist/Image/Image.cjs.js +13 -0
  83. package/dist/Image/Image.esm.d.ts +1 -0
  84. package/dist/Image/Image.esm.js +5 -0
  85. package/dist/Image/package.json +7 -0
  86. package/dist/Markup/{index.d.ts → Markup.cjs.d.ts} +0 -0
  87. package/dist/Markup/Markup.cjs.js +27 -0
  88. package/dist/Markup/Markup.esm.d.ts +16 -0
  89. package/dist/Markup/{index.js → Markup.esm.js} +3 -3
  90. package/dist/Markup/package.json +7 -0
  91. package/dist/Poster/{index.d.ts → Poster.cjs.d.ts} +2 -2
  92. package/dist/Poster/Poster.cjs.js +52 -0
  93. package/dist/Poster/Poster.esm.d.ts +81 -0
  94. package/dist/Poster/{index.js → Poster.esm.js} +5 -5
  95. package/dist/Poster/package.json +7 -0
  96. package/dist/RadioGroup/{index.d.ts → RadioGroup.cjs.d.ts} +1 -1
  97. package/dist/RadioGroup/RadioGroup.cjs.js +72 -0
  98. package/dist/RadioGroup/RadioGroup.esm.d.ts +85 -0
  99. package/dist/RadioGroup/{index.js → RadioGroup.esm.js} +4 -4
  100. package/dist/RadioGroup/package.json +7 -0
  101. package/dist/Rule/{index.d.ts → Rule.cjs.d.ts} +0 -0
  102. package/dist/Rule/Rule.cjs.js +25 -0
  103. package/dist/Rule/Rule.esm.d.ts +8 -0
  104. package/dist/Rule/{index.js → Rule.esm.js} +3 -3
  105. package/dist/Rule/package.json +7 -0
  106. package/dist/Section/Section.cjs.d.ts +1 -0
  107. package/dist/Section/Section.cjs.js +12 -0
  108. package/dist/Section/Section.esm.d.ts +1 -0
  109. package/dist/Section/Section.esm.js +4 -0
  110. package/dist/Section/package.json +7 -0
  111. package/dist/SiteFooter/{index.d.ts → SiteFooter.cjs.d.ts} +0 -0
  112. package/dist/SiteFooter/SiteFooter.cjs.js +99 -0
  113. package/dist/SiteFooter/SiteFooter.esm.d.ts +64 -0
  114. package/dist/SiteFooter/{index.js → SiteFooter.esm.js} +12 -10
  115. package/dist/SiteFooter/package.json +7 -0
  116. package/dist/SiteHeader/{index.d.ts → SiteHeader.cjs.d.ts} +1 -1
  117. package/dist/SiteHeader/SiteHeader.cjs.js +669 -0
  118. package/dist/SiteHeader/SiteHeader.esm.d.ts +252 -0
  119. package/dist/SiteHeader/{index.js → SiteHeader.esm.js} +39 -17
  120. package/dist/SiteHeader/package.json +7 -0
  121. package/dist/Surface/{index.d.ts → Surface.cjs.d.ts} +1 -1
  122. package/dist/Surface/Surface.cjs.js +15 -0
  123. package/dist/Surface/Surface.esm.d.ts +1 -0
  124. package/dist/Surface/Surface.esm.js +4 -0
  125. package/dist/Surface/package.json +7 -0
  126. package/dist/Text/Text.cjs.d.ts +1 -0
  127. package/dist/Text/Text.cjs.js +14 -0
  128. package/dist/Text/Text.esm.d.ts +1 -0
  129. package/dist/Text/Text.esm.js +6 -0
  130. package/dist/Text/package.json +7 -0
  131. package/dist/TextInput/{index.d.ts → TextInput.cjs.d.ts} +1 -1
  132. package/dist/TextInput/TextInput.cjs.js +64 -0
  133. package/dist/TextInput/TextInput.esm.d.ts +71 -0
  134. package/dist/TextInput/{index.js → TextInput.esm.js} +4 -4
  135. package/dist/TextInput/package.json +7 -0
  136. package/dist/UniversalHeader/{index.d.ts → UniversalHeader.cjs.d.ts} +0 -0
  137. package/dist/UniversalHeader/UniversalHeader.cjs.js +38 -0
  138. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +26 -0
  139. package/dist/UniversalHeader/{index.js → UniversalHeader.esm.js} +3 -3
  140. package/dist/UniversalHeader/package.json +7 -0
  141. package/dist/VerticalSpace/{index.d.ts → VerticalSpace.cjs.d.ts} +0 -0
  142. package/dist/VerticalSpace/VerticalSpace.cjs.js +27 -0
  143. package/dist/VerticalSpace/VerticalSpace.esm.d.ts +18 -0
  144. package/dist/VerticalSpace/{index.js → VerticalSpace.esm.js} +2 -2
  145. package/dist/VerticalSpace/package.json +7 -0
  146. package/dist/VisuallyHidden/{index.d.ts → VisuallyHidden.cjs.d.ts} +0 -0
  147. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +19 -0
  148. package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +12 -0
  149. package/dist/VisuallyHidden/{index.js → VisuallyHidden.esm.js} +0 -0
  150. package/dist/VisuallyHidden/package.json +7 -0
  151. package/dist/_shared/{BrandLogo-6cc8202e.d.ts → cjs/BrandLogo-3c6102ef.d.ts} +0 -0
  152. package/dist/_shared/cjs/BrandLogo-3c6102ef.js +31 -0
  153. package/dist/_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js +29 -0
  154. package/dist/_shared/cjs/BtIconChevronRight2Px-a8e40136.js +50 -0
  155. package/dist/_shared/cjs/BtIconChevronRightMid-5a38d855.js +31 -0
  156. package/dist/_shared/{Button-2fcbd4ed.d.ts → cjs/Button-b3a69953.d.ts} +3 -3
  157. package/dist/_shared/cjs/Button-b3a69953.js +80 -0
  158. package/dist/_shared/{Curve-5f476d0b.d.ts → cjs/Curve-e72ce25b.d.ts} +1 -1
  159. package/dist/_shared/cjs/Curve-e72ce25b.js +30 -0
  160. package/dist/_shared/{FormControl-9dc9ecc3.d.ts → cjs/FormControl-a1b7421b.d.ts} +0 -0
  161. package/dist/_shared/cjs/FormControl-a1b7421b.js +115 -0
  162. package/dist/_shared/{Heading-8c640dd1.d.ts → cjs/Heading-cc38c3ec.d.ts} +0 -0
  163. package/dist/_shared/cjs/Heading-cc38c3ec.js +41 -0
  164. package/dist/_shared/{Icon-b053f03d.d.ts → cjs/Icon-719d13d4.d.ts} +6 -6
  165. package/dist/_shared/cjs/Icon-719d13d4.js +52 -0
  166. package/dist/_shared/{Image-a3225049.d.ts → cjs/Image-fe760a06.d.ts} +0 -0
  167. package/dist/_shared/cjs/Image-fe760a06.js +45 -0
  168. package/dist/_shared/{Section-927988cb.d.ts → cjs/Section-780f2377.d.ts} +0 -0
  169. package/dist/_shared/cjs/Section-780f2377.js +23 -0
  170. package/dist/_shared/{Surface-3fe44a2a.d.ts → cjs/Surface-d6b8010e.d.ts} +0 -0
  171. package/dist/_shared/cjs/Surface-d6b8010e.js +58 -0
  172. package/dist/_shared/{Text-1c43d82b.d.ts → cjs/Text-1d3844be.d.ts} +0 -0
  173. package/dist/_shared/cjs/Text-1d3844be.js +32 -0
  174. package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +4 -0
  175. package/dist/_shared/{handle-link-click-35e09d0c.d.ts → cjs/handle-link-click-17a44cf4.d.ts} +0 -0
  176. package/dist/_shared/cjs/handle-link-click-17a44cf4.js +15 -0
  177. package/dist/_shared/cjs/index-45bfb67b.js +63 -0
  178. package/dist/_shared/{index-e3c83626.d.ts → cjs/index-78b35bc1.d.ts} +0 -0
  179. package/dist/_shared/cjs/index-78b35bc1.js +215 -0
  180. package/dist/_shared/{index-9483ad5f.d.ts → cjs/index-9483ad5f.d.ts} +2 -2
  181. package/dist/_shared/cjs/index-c81c9401.d.ts +4 -0
  182. package/dist/_shared/{use-media-query-f11805d4.d.ts → cjs/index.es-77def0c9.d.ts} +0 -0
  183. package/dist/_shared/cjs/index.es-77def0c9.js +50 -0
  184. package/dist/_shared/{suffix-modifier-2a93822c.d.ts → cjs/suffix-modifier-edf7851e.d.ts} +0 -0
  185. package/dist/_shared/cjs/suffix-modifier-edf7851e.js +19 -0
  186. package/dist/_shared/esm/BrandLogo-ea3dd0e6.d.ts +26 -0
  187. package/dist/_shared/{BrandLogo-6cc8202e.js → esm/BrandLogo-ea3dd0e6.js} +4 -4
  188. package/dist/_shared/esm/BtIconChevronDown2Px-4abd079b.js +23 -0
  189. package/dist/_shared/esm/BtIconChevronRight2Px-a5cc1d05.js +43 -0
  190. package/dist/_shared/esm/BtIconChevronRightMid-386cf272.js +25 -0
  191. package/dist/_shared/esm/Button-5ff56a7b.d.ts +98 -0
  192. package/dist/_shared/esm/Button-5ff56a7b.js +74 -0
  193. package/dist/_shared/esm/Curve-cfdca379.d.ts +32 -0
  194. package/dist/_shared/{Curve-5f476d0b.js → esm/Curve-cfdca379.js} +3 -3
  195. package/dist/_shared/esm/FormControl-feedc495.d.ts +70 -0
  196. package/dist/_shared/{FormControl-9dc9ecc3.js → esm/FormControl-feedc495.js} +43 -11
  197. package/dist/_shared/esm/Heading-183be76c.d.ts +46 -0
  198. package/dist/_shared/{Heading-8c640dd1.js → esm/Heading-183be76c.js} +4 -4
  199. package/dist/_shared/esm/Icon-76d0d8c0.d.ts +34 -0
  200. package/dist/_shared/esm/Icon-76d0d8c0.js +46 -0
  201. package/dist/_shared/esm/Image-7e4948f6.d.ts +94 -0
  202. package/dist/_shared/{Image-a3225049.js → esm/Image-7e4948f6.js} +3 -3
  203. package/dist/_shared/esm/Section-f1256c87.d.ts +21 -0
  204. package/dist/_shared/{Section-927988cb.js → esm/Section-f1256c87.js} +2 -2
  205. package/dist/_shared/esm/Surface-d515d212.d.ts +50 -0
  206. package/dist/_shared/{Surface-3fe44a2a.js → esm/Surface-d515d212.js} +2 -2
  207. package/dist/_shared/esm/Text-d8988620.d.ts +34 -0
  208. package/dist/_shared/{Text-1c43d82b.js → esm/Text-d8988620.js} +4 -4
  209. package/dist/_shared/esm/arc-icon-17594b2f.d.ts +4 -0
  210. package/dist/_shared/esm/handle-link-click-f64f55a2.d.ts +7 -0
  211. package/dist/_shared/{handle-link-click-35e09d0c.js → esm/handle-link-click-f64f55a2.js} +0 -0
  212. package/dist/_shared/esm/index-229fc864.d.ts +2 -0
  213. package/dist/_shared/{index-e3c83626.js → esm/index-229fc864.js} +0 -0
  214. package/dist/_shared/{index-56d9df62.js → esm/index-2ae58626.js} +0 -0
  215. package/dist/_shared/esm/index-9483ad5f.d.ts +14 -0
  216. package/dist/_shared/esm/index-c81c9401.d.ts +4 -0
  217. package/dist/_shared/esm/index.es-00cb3bcb.d.ts +19 -0
  218. package/dist/_shared/{use-media-query-f11805d4.js → esm/index.es-00cb3bcb.js} +8 -1
  219. package/dist/_shared/esm/suffix-modifier-f5e28822.d.ts +10 -0
  220. package/dist/_shared/{suffix-modifier-2a93822c.js → esm/suffix-modifier-f5e28822.js} +1 -1
  221. package/dist/index.es.js +454 -528
  222. package/dist/index.es.js.map +1 -1
  223. package/dist/index.js +311 -385
  224. package/dist/index.js.map +1 -1
  225. package/dist/styles.css +1 -1
  226. package/dist/types/components/Button/Button.d.ts +3 -3
  227. package/dist/types/components/Icon/Icon.d.ts +6 -6
  228. package/dist/types/types/arc-icon.d.ts +2 -0
  229. package/package.json +4 -3
  230. package/dist/BrandLogo/index.d.ts +0 -1
  231. package/dist/BrandLogo/index.js +0 -6
  232. package/dist/Button/index.d.ts +0 -1
  233. package/dist/Button/index.js +0 -8
  234. package/dist/Checkbox/index.js +0 -46
  235. package/dist/Curve/index.d.ts +0 -1
  236. package/dist/Curve/index.js +0 -5
  237. package/dist/FormControl/index.d.ts +0 -1
  238. package/dist/FormControl/index.js +0 -5
  239. package/dist/Heading/index.d.ts +0 -1
  240. package/dist/Heading/index.js +0 -6
  241. package/dist/Icon/index.d.ts +0 -1
  242. package/dist/Icon/index.js +0 -7
  243. package/dist/Image/index.d.ts +0 -1
  244. package/dist/Image/index.js +0 -5
  245. package/dist/Section/index.d.ts +0 -1
  246. package/dist/Section/index.js +0 -4
  247. package/dist/Surface/index.js +0 -4
  248. package/dist/Text/index.d.ts +0 -1
  249. package/dist/Text/index.js +0 -6
  250. package/dist/_shared/Button-2fcbd4ed.js +0 -51
  251. package/dist/_shared/Icon-b053f03d.js +0 -27
  252. package/dist/_shared/index-c81c9401.d.ts +0 -4
  253. package/dist/_shared/index.es-ff960629.js +0 -286
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-78b35bc1.js');
4
+
5
+ /**
6
+ * Suffixes a modifier value onto the end of a className, converting it to
7
+ * pascal case. i.e. turns suffixModifier("MyComponent--display", display)
8
+ * returns MyComponent--displayBlock.
9
+ *
10
+ * @param rootClassName The root className to append the suffix onto
11
+ * @param suffix The suffix to convert into pascal case.
12
+ */
13
+ var suffixModifier = function (rootClassName, suffix) {
14
+ return "".concat(rootClassName).concat(index.camelCase(suffix, {
15
+ pascalCase: true
16
+ }));
17
+ };
18
+
19
+ exports.suffixModifier = suffixModifier;
@@ -0,0 +1,26 @@
1
+ import { FC } from "react";
2
+ /**
3
+ * Use `BrandLogo` to display the brand logo.
4
+ */
5
+ declare const BrandLogo: FC<BrandLogoProps>;
6
+ declare const colors: readonly ["auto", "brand"];
7
+ declare const subBrands: readonly ["redcare", "wholesale"];
8
+ interface BrandLogoProps {
9
+ /**
10
+ * Color of the BrandLogo. The `brand` color only shows on light surfaces.
11
+ */
12
+ color?: typeof colors[number];
13
+ /**
14
+ * Accessible text for the BrandLogo.
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Size of the BrandLogo, in pixels.
19
+ */
20
+ size?: number;
21
+ /**
22
+ * Optional sub-brand variant. Only applies to BT.
23
+ */
24
+ subBrand?: typeof subBrands[number];
25
+ }
26
+ export { BrandLogo, colors, subBrands, BrandLogoProps };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-e3c83626.js';
2
- import { c as classNames } from './index-56d9df62.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
3
  import React, { useContext } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-2a93822c.js';
5
- import { C as Context } from './Surface-3fe44a2a.js';
4
+ import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
+ import { C as Context } from './Surface-d515d212.js';
6
6
 
7
7
  /**
8
8
  * Use `BrandLogo` to display the brand logo.
@@ -0,0 +1,23 @@
1
+ import React$1 from 'react';
2
+
3
+ const React = React$1;
4
+ const BtIconChevronDown2Px = props =>
5
+ /*#__PURE__*/ React.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.createElement("defs", null),
15
+ /*#__PURE__*/ React.createElement("path", {
16
+ d:
17
+ "M15.99316,23.91406,2.294,10.207A.99989.99989,0,1,1,3.708,8.793l12.28515,12.293L28.292,8.793A.99989.99989,0,1,1,29.70605,10.207Z",
18
+ fill: "currentColor"
19
+ })
20
+ );
21
+ var BtIconChevronDown2Px_2 = BtIconChevronDown2Px;
22
+
23
+ export { BtIconChevronDown2Px_2 as B };
@@ -0,0 +1,43 @@
1
+ import React$2 from 'react';
2
+
3
+ const React$1 = React$2;
4
+ const BtIconChevronLeft2Px = props =>
5
+ /*#__PURE__*/ React$1.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$1.createElement("defs", null),
15
+ /*#__PURE__*/ React$1.createElement("path", {
16
+ d:
17
+ "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",
18
+ fill: "currentColor"
19
+ })
20
+ );
21
+ var BtIconChevronLeft2Px_2 = BtIconChevronLeft2Px;
22
+
23
+ const React = React$2;
24
+ const BtIconChevronRight2Px = props =>
25
+ /*#__PURE__*/ React.createElement(
26
+ "svg",
27
+ Object.assign(
28
+ {
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ viewBox: "0 0 32 32"
31
+ },
32
+ props
33
+ ),
34
+ /*#__PURE__*/ React.createElement("defs", null),
35
+ /*#__PURE__*/ React.createElement("path", {
36
+ d:
37
+ "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",
38
+ fill: "currentColor"
39
+ })
40
+ );
41
+ var BtIconChevronRight2Px_2 = BtIconChevronRight2Px;
42
+
43
+ export { BtIconChevronLeft2Px_2 as B, BtIconChevronRight2Px_2 as a };
@@ -0,0 +1,25 @@
1
+ import React$1 from 'react';
2
+
3
+ const React = React$1;
4
+ const BtIconChevronRightMid = props =>
5
+ /*#__PURE__*/ React.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.createElement("path", {
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d:
19
+ "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",
20
+ fill: "currentColor"
21
+ })
22
+ );
23
+ var BtIconChevronRightMid_2 = BtIconChevronRightMid;
24
+
25
+ export { BtIconChevronRightMid_2 as B };
@@ -0,0 +1,98 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ import { ArcIcon } from "./arc-icon-17594b2f";
5
+ type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
6
+ type Ref = React.Ref<ElementUnion> | null;
7
+ /**
8
+ * Use `Button` to allow users to take actions with clicks and taps.
9
+ */
10
+ declare const Button: FC<ButtonProps>;
11
+ interface ButtonIconProps {
12
+ /**
13
+ * Icon variant.
14
+ */
15
+ icon?: ArcIcon;
16
+ /**
17
+ * Should the icon be a default chevron?
18
+ */
19
+ isChevron?: boolean;
20
+ /**
21
+ * Should the icon be positioned before button text?
22
+ */
23
+ isBeforeText?: boolean;
24
+ }
25
+ interface ButtonElementProps {
26
+ /**
27
+ * Default behavior of the Button element. If not provided, 'submit' will
28
+ * be inferred. Type 'reset' deliberately excluded.
29
+ */
30
+ type?: "button" | "submit";
31
+ }
32
+ interface LinkElementProps {
33
+ /**
34
+ * URL to link to if Button elementType is 'a'.
35
+ */
36
+ href?: string;
37
+ /**
38
+ * Target window for the Button href URL.
39
+ */
40
+ target?: string;
41
+ /**
42
+ * Relationship between the Button href URL and the current page. See
43
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
44
+ */
45
+ rel?: string;
46
+ }
47
+ interface ButtonProps extends ButtonElementProps, LinkElementProps {
48
+ /**
49
+ * Text to override `label` with additional, more precise information
50
+ * specifically for screen reader users.
51
+ */
52
+ ariaLabel?: string;
53
+ /**
54
+ * Button fill.
55
+ */
56
+ fill?: "solid" | "outlined" | "flat";
57
+ /**
58
+ * Button icon variant.
59
+ */
60
+ icon?: ArcIcon;
61
+ /**
62
+ * How should a Button icon be displayed?
63
+ */
64
+ iconPosition?: "afterText" | "beforeText" | "iconOnly";
65
+ /**
66
+ * HTML ID for the Button
67
+ */
68
+ id?: string;
69
+ /**
70
+ * Should the Button be disabled?
71
+ */
72
+ isDisabled?: boolean;
73
+ /**
74
+ * Should the Button’s CSS display property be set to block?
75
+ */
76
+ isDisplayBlock?: boolean;
77
+ /**
78
+ * Should the Button take up the full width of its container?
79
+ */
80
+ isFullWidth?: boolean;
81
+ /**
82
+ * Button text.
83
+ */
84
+ label: string;
85
+ /**
86
+ * Optional click handler for the Button.
87
+ */
88
+ onClick?: () => void;
89
+ /**
90
+ * Optional property to provide component Ref
91
+ */
92
+ ref?: Ref;
93
+ /**
94
+ * Optional supporting text for the Button.
95
+ */
96
+ supportingText?: string;
97
+ }
98
+ export { ElementUnion, Ref, Button, ButtonIconProps, ButtonProps };
@@ -0,0 +1,74 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import React$1, { forwardRef, useContext } from 'react';
3
+ import { B as BtIconChevronRightMid_2 } from './BtIconChevronRightMid-386cf272.js';
4
+ import { c as classNames } from './index-2ae58626.js';
5
+ import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
6
+ import { I as Icon } from './Icon-76d0d8c0.js';
7
+ import { C as Context } from './Surface-d515d212.js';
8
+
9
+ const React = React$1;
10
+ const BtIconChevronLeftMid = props =>
11
+ /*#__PURE__*/ React.createElement(
12
+ "svg",
13
+ Object.assign(
14
+ {
15
+ viewBox: "0 0 16 16",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg"
18
+ },
19
+ props
20
+ ),
21
+ /*#__PURE__*/ React.createElement("path", {
22
+ fillRule: "evenodd",
23
+ clipRule: "evenodd",
24
+ d:
25
+ "M7.62107 8.00023L10.4697 10.8522C10.5957 10.9785 10.6665 11.1495 10.6665 11.3279C10.6665 11.5063 10.5957 11.6773 10.4697 11.8036C10.4074 11.866 10.3335 11.9155 10.252 11.9493C10.1706 11.983 10.0833 12.0004 9.99507 12.0004C9.9069 12.0004 9.81959 11.983 9.73814 11.9493C9.65669 11.9155 9.5827 11.866 9.52041 11.8036L6.19641 8.47556C6.07061 8.34935 5.99998 8.17842 5.99998 8.00023C5.99998 7.82203 6.07061 7.6511 6.19641 7.52489L9.52041 4.19689C9.5827 4.13449 9.65669 4.08498 9.73814 4.0512C9.81959 4.01741 9.9069 4.00003 9.99507 4.00003C10.0832 4.00003 10.1706 4.01741 10.252 4.0512C10.3335 4.08498 10.4074 4.13449 10.4697 4.19689C10.5957 4.32313 10.6665 4.4942 10.6665 4.67256C10.6665 4.85092 10.5957 5.02199 10.4697 5.14823L7.62107 8.00023Z",
26
+ fill: "currentColor"
27
+ })
28
+ );
29
+ var BtIconChevronLeftMid_2 = BtIconChevronLeftMid;
30
+
31
+ /**
32
+ * Use `Button` to allow users to take actions with clicks and taps.
33
+ */
34
+ var Button = forwardRef(function (_a, ref) {
35
+ var _b;
36
+ var ariaLabel = _a.ariaLabel, _c = _a.fill, fill = _c === void 0 ? "solid" : _c, href = _a.href, icon = _a.icon, _d = _a.iconPosition, iconPosition = _d === void 0 ? "afterText" : _d, id = _a.id, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isDisplayBlock, isDisplayBlock = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g, label = _a.label, onClick = _a.onClick, rel = _a.rel, supportingText = _a.supportingText, target = _a.target, type = _a.type, props = __rest(_a, ["ariaLabel", "fill", "href", "icon", "iconPosition", "id", "isDisabled", "isDisplayBlock", "isFullWidth", "label", "onClick", "rel", "supportingText", "target", "type"]);
37
+ var surface = useContext(Context).surface;
38
+ var buttonClasses = classNames((_b = {
39
+ "arc-Button": true,
40
+ "arc-Button--displayBlock": isDisplayBlock
41
+ },
42
+ _b[suffixModifier("arc-Button--fill", fill)] = fill !== "solid",
43
+ _b["arc-Button--fullWidth"] = isFullWidth,
44
+ _b[suffixModifier("arc-Button--icon", iconPosition.replace("icon", ""))] = (icon || fill === "flat") &&
45
+ iconPosition &&
46
+ iconPosition !== "afterText",
47
+ _b["arc-Button--hasSupportingText"] = supportingText,
48
+ _b["arc-Button--onDarkSurface"] = surface === "dark",
49
+ _b));
50
+ var commonProps = __assign({ id: id, onClick: onClick, ref: ref }, filterDataAttrs(props));
51
+ var buttonText = supportingText ? (React$1.createElement("span", null,
52
+ React$1.createElement("span", { className: "arc-Button-text" }, label),
53
+ React$1.createElement("span", { className: "arc-Button-supportingText" }, supportingText))) : (React$1.createElement("span", { className: "arc-Button-text" }, label));
54
+ var buttonIcon = icon || fill === "flat" ? (React$1.createElement(ButtonIcon, { icon: icon, isChevron: !icon && fill === "flat", isBeforeText: iconPosition === "beforeText" })) : null;
55
+ if (href && !isDisabled) {
56
+ return (React$1.createElement("a", __assign({}, commonProps, { "aria-label": ariaLabel, className: buttonClasses, href: href, rel: rel, target: target }),
57
+ React$1.createElement("span", { className: "arc-Button-inner" },
58
+ buttonText,
59
+ buttonIcon)));
60
+ }
61
+ return (React$1.createElement("button", __assign({}, commonProps, { "aria-label": ariaLabel, className: buttonClasses, disabled: isDisabled, type: type }),
62
+ React$1.createElement("span", { className: "arc-Button-inner" },
63
+ buttonText,
64
+ buttonIcon)));
65
+ });
66
+ var ButtonIcon = function (_a) {
67
+ var icon = _a.icon, isChevron = _a.isChevron, isBeforeText = _a.isBeforeText;
68
+ return (React$1.createElement("span", { className: classNames({
69
+ "arc-Button-icon": true,
70
+ "arc-Button-icon--chevron": isChevron
71
+ }) }, isChevron ? (React$1.createElement(Icon, { icon: isBeforeText ? BtIconChevronLeftMid_2 : BtIconChevronRightMid_2 })) : (React$1.createElement(Icon, { icon: icon }))));
72
+ };
73
+
74
+ export { Button as B };
@@ -0,0 +1,32 @@
1
+ import { FC } from "react";
2
+ import { backgroundsBT } from "../../Surface/Surface.esm";
3
+ /**
4
+ * Use `Curve` sparingly to soften edges and create a more natural, less rigid
5
+ * look and feel.
6
+ */
7
+ declare const Curve: FC<CurveProps>;
8
+ declare const sizes: readonly ["s", "m", "l"];
9
+ declare const positions: readonly ["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"];
10
+ interface CurveProps {
11
+ /**
12
+ * Bottom color of the Curve. Shares values with Surface.
13
+ */
14
+ bottomColor?: typeof backgroundsBT[number];
15
+ /**
16
+ * Positional variants of the Curve.
17
+ */
18
+ from?: typeof positions[number];
19
+ /**
20
+ * Should the Curve colors be flipped? Normally used at the top of Poster.
21
+ */
22
+ isInverted?: boolean;
23
+ /**
24
+ * Size of the Curve.
25
+ */
26
+ size?: typeof sizes[number];
27
+ /**
28
+ * Top color of the Curve. Shares values with Surface.
29
+ */
30
+ topColor?: typeof backgroundsBT[number];
31
+ }
32
+ export { Curve, sizes, positions, CurveProps };
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-e3c83626.js';
2
- import { c as classNames } from './index-56d9df62.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
3
  import React from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-2a93822c.js';
4
+ import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
5
 
6
6
  /**
7
7
  * Use `Curve` sparingly to soften edges and create a more natural, less rigid
@@ -0,0 +1,70 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ /**
5
+ * Optionally define ariaDescribedBy if errorMessage or helper exist.
6
+ */
7
+ declare const useAriaDescribedby: ({ id, idError, idHelper, errorMessage, helper }: {
8
+ id?: string | undefined;
9
+ idError?: string | undefined;
10
+ idHelper?: string | undefined;
11
+ errorMessage?: any;
12
+ helper?: any;
13
+ }) => {
14
+ ariaDescribedby: undefined;
15
+ idHelper: undefined;
16
+ idError: undefined;
17
+ } | {
18
+ ariaDescribedby: string | undefined;
19
+ idError: string;
20
+ idHelper: string;
21
+ };
22
+ type RequirementStatus = "required" | "optional" | "not-applicable";
23
+ declare const Context: React.Context<{
24
+ requirementStatus: RequirementStatus | null;
25
+ }>;
26
+ /**
27
+ * Use `FormControl` to provide inputs with labels, helper text and error messages
28
+ */
29
+ declare const FormControl: FC<FormControlProps>;
30
+ interface FormControlProps {
31
+ /**
32
+ * Render the input or series of inputs
33
+ */
34
+ children: React.ReactNode;
35
+ /**
36
+ * HTML Element type for the FormControl.
37
+ * @default 'div'
38
+ */
39
+ elementType?: "div" | "fieldset";
40
+ /**
41
+ * Error message for the FormControl.
42
+ */
43
+ errorMessage?: string;
44
+ /**
45
+ * Helper text for the FormControl, shown below the label.
46
+ */
47
+ helper?: React.ReactNode;
48
+ /**
49
+ * ID for the input that the FormControl points towards.
50
+ */
51
+ htmlFor?: string;
52
+ /**
53
+ * ID for the FormControl. Used for helper and errorMessage if `htmlFor` is undefined.
54
+ */
55
+ id?: string;
56
+ /**
57
+ * Are all of the inputs in the FormControl required, optional, or is a
58
+ * uniform requirement status for all inputs not applicable?
59
+ */
60
+ requirementStatus?: RequirementStatus;
61
+ /**
62
+ * Label for the FormControl.
63
+ */
64
+ label: string;
65
+ /**
66
+ * Label size.
67
+ */
68
+ labelSize?: "s" | "l";
69
+ }
70
+ export { useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-e3c83626.js';
2
- import { c as classNames } from './index-56d9df62.js';
3
- import React, { createContext, useContext } from 'react';
4
- import { C as Context$1 } from './Surface-3fe44a2a.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React$1, { createContext, useContext } from 'react';
4
+ import { C as Context$1 } from './Surface-d515d212.js';
5
5
 
6
6
  /**
7
7
  * Optionally define ariaDescribedBy if errorMessage or helper exist.
@@ -26,6 +26,35 @@ var useAriaDescribedby = function (_a) {
26
26
  return { ariaDescribedby: ariaDescribedby, idError: idError, idHelper: idHelper };
27
27
  };
28
28
 
29
+ const React = React$1;
30
+ const BtIconAlert = props =>
31
+ /*#__PURE__*/ React.createElement(
32
+ "svg",
33
+ Object.assign(
34
+ {
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ viewBox: "0 0 32 32"
37
+ },
38
+ props
39
+ ),
40
+ /*#__PURE__*/ React.createElement("defs", null),
41
+ /*#__PURE__*/ React.createElement("path", {
42
+ d:
43
+ "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",
44
+ fill: "currentColor"
45
+ }),
46
+ /*#__PURE__*/ React.createElement("path", {
47
+ fill: "currentColor",
48
+ d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z"
49
+ }),
50
+ /*#__PURE__*/ React.createElement("path", {
51
+ d:
52
+ "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",
53
+ fill: "currentColor"
54
+ })
55
+ );
56
+ var BtIconAlert_2 = BtIconAlert;
57
+
29
58
  var defaultContext = {
30
59
  requirementStatus: null
31
60
  };
@@ -57,18 +86,21 @@ var FormControl = function (_a) {
57
86
  else {
58
87
  elementProps["aria-describedby"] = ariaDescribedby;
59
88
  }
60
- return (React.createElement(Provider, { value: { requirementStatus: requirementStatus } },
61
- React.createElement(ElementType, __assign({ className: classNames({
89
+ return (React$1.createElement(Provider, { value: { requirementStatus: requirementStatus } },
90
+ React$1.createElement(ElementType, __assign({ className: classNames({
62
91
  "arc-FormControl": true,
63
92
  "arc-FormControl--smallLabel": labelSize === "s",
64
93
  "arc-FormControl--onDarkSurface": surface === "dark"
65
94
  }), id: id }, elementProps, filterDataAttrs(props)),
66
- React.createElement(LabelType, __assign({ className: "arc-FormControl-label" }, labelProps),
95
+ React$1.createElement(LabelType, __assign({ className: "arc-FormControl-label" }, labelProps),
67
96
  label,
68
- requirementStatus === "optional" && (React.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))),
69
- helper && (React.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper)),
97
+ requirementStatus === "optional" && (React$1.createElement("span", { className: "arc-FormControl-labelOptional" }, "(optional)"))),
98
+ helper && (React$1.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper)),
70
99
  children,
71
- errorMessage && (React.createElement("div", { className: "arc-FormControl-error", id: idError }, errorMessage)))));
100
+ errorMessage && (React$1.createElement("div", { className: "arc-FormControl-error", id: idError },
101
+ React$1.createElement("span", { className: "arc-FormControl-error--icon" },
102
+ React$1.createElement(BtIconAlert_2, null)),
103
+ errorMessage)))));
72
104
  };
73
105
 
74
- export { Context as C, FormControl as F, useAriaDescribedby as u };
106
+ export { BtIconAlert_2 as B, Context as C, FormControl as F, useAriaDescribedby as u };
@@ -0,0 +1,46 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `Heading` to display heading text.
4
+ */
5
+ declare const Heading: FC<HeadingProps> & {
6
+ Proposition: typeof HeadingProposition;
7
+ };
8
+ declare const HeadingProposition: FC<HeadingPropositionProps>;
9
+ interface HeadingPropositionProps {
10
+ /**
11
+ * Text to display in the Proposition.
12
+ */
13
+ children: ReactNode;
14
+ }
15
+ type HeadingCasing = "auto" | "none";
16
+ type HeadingColor = "auto" | "brand";
17
+ type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
18
+ type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
19
+ interface HeadingProps {
20
+ /**
21
+ * Text alignment of the Heading.
22
+ */
23
+ align?: "left" | "center" | "right";
24
+ /**
25
+ * Typographic casing of the Heading.
26
+ */
27
+ casing?: HeadingCasing;
28
+ /**
29
+ * Text and inline markup to display in the Heading.
30
+ */
31
+ children: ReactNode;
32
+ /**
33
+ * The color of the Heading.
34
+ */
35
+ color?: HeadingColor;
36
+ /**
37
+ * HTML section heading level. If not provided, the Heading will render as
38
+ * a span.
39
+ */
40
+ level?: HeadingLevel;
41
+ /**
42
+ * Typographic size of the Heading.
43
+ */
44
+ size?: HeadingSize;
45
+ }
46
+ export { Heading, HeadingProposition, HeadingPropositionProps, HeadingCasing, HeadingColor, HeadingLevel, HeadingSize, HeadingProps };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-e3c83626.js';
2
- import { c as classNames } from './index-56d9df62.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
3
  import React, { useContext } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-2a93822c.js';
5
- import { C as Context } from './Surface-3fe44a2a.js';
4
+ import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
+ import { C as Context } from './Surface-d515d212.js';
6
6
 
7
7
  /**
8
8
  * Use `Heading` to display heading text.
@@ -0,0 +1,34 @@
1
+ import { FC } from "react";
2
+ import { ArcIcon } from "./arc-icon-17594b2f";
3
+ /**
4
+ * Use `Icon` to display brand iconography.
5
+ */
6
+ declare const Icon: FC<IconProps>;
7
+ declare const colors: readonly ["auto", "brand", "statusRed", "statusAmber", "statusGreen"];
8
+ interface IconProps {
9
+ /**
10
+ * Color of the Icon.
11
+ */
12
+ color?: typeof colors[number];
13
+ /**
14
+ * Should the Icon component be styled as an inline element?
15
+ */
16
+ isInline?: boolean;
17
+ /**
18
+ * Icon variant.
19
+ */
20
+ icon?: ArcIcon;
21
+ /**
22
+ * Alternative text label for the Icon.
23
+ */
24
+ label?: string;
25
+ /**
26
+ * Size of the Icon, in pixels.
27
+ */
28
+ size?: number;
29
+ /**
30
+ * value for data-testid
31
+ */
32
+ testId?: string;
33
+ }
34
+ export { Icon, colors, IconProps };
@@ -0,0 +1,46 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
2
+ import React$1, { useContext } from 'react';
3
+ import { c as classNames } from './index-2ae58626.js';
4
+ import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
+ import { C as Context } from './Surface-d515d212.js';
6
+
7
+ const React = React$1;
8
+ const ArcIconArc = props =>
9
+ /*#__PURE__*/ React.createElement(
10
+ "svg",
11
+ Object.assign(
12
+ {
13
+ viewBox: "0 0 16 16",
14
+ xmlns: "http://www.w3.org/2000/svg"
15
+ },
16
+ props
17
+ ),
18
+ /*#__PURE__*/ React.createElement("path", {
19
+ fill: "none",
20
+ d: "M3.472 11.69a6.5 6.5 0 012.321-6.839A6.5 6.5 0 0113 4.38",
21
+ stroke: "currentColor"
22
+ })
23
+ );
24
+ var ArcIconArc_2 = ArcIconArc;
25
+
26
+ /**
27
+ * Use `Icon` to display brand iconography.
28
+ */
29
+ var Icon = function (_a) {
30
+ var _b;
31
+ var testId = _a.testId, _c = _a.color, color = _c === void 0 ? "auto" : _c, _d = _a.icon, icon = _d === void 0 ? ArcIconArc_2 : _d, _e = _a.isInline, isInline = _e === void 0 ? false : _e, label = _a.label, size = _a.size, props = __rest(_a, ["testId", "color", "icon", "isInline", "label", "size"]);
32
+ var surface = useContext(Context).surface;
33
+ var Icon = icon;
34
+ return (React$1.createElement("span", __assign({ "data-testid": testId, "aria-label": label, className: classNames((_b = {},
35
+ _b["arc-Icon"] = true,
36
+ _b[suffixModifier("arc-Icon--color", color)] = color !== "auto",
37
+ _b["arc-Icon--inline"] = isInline,
38
+ _b["arc-Icon--onDarkSurface"] = surface === "dark",
39
+ _b)), role: label ? "img" : undefined, style: {
40
+ height: size,
41
+ width: size
42
+ } }, filterDataAttrs(props)),
43
+ React$1.createElement(Icon, null)));
44
+ };
45
+
46
+ export { Icon as I };