@arc-ui/components 11.4.2 → 11.5.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 (205) hide show
  1. package/dist/Alert/Alert.cjs.d.ts +57 -0
  2. package/dist/Alert/Alert.cjs.js +142 -0
  3. package/dist/Alert/Alert.esm.d.ts +57 -0
  4. package/dist/Alert/Alert.esm.js +134 -0
  5. package/dist/Alert/package.json +7 -0
  6. package/dist/Align/Align.cjs.js +6 -6
  7. package/dist/Align/Align.esm.js +2 -2
  8. package/dist/Badge/Badge.cjs.js +7 -7
  9. package/dist/Badge/Badge.esm.js +4 -4
  10. package/dist/Base/Base.cjs.d.ts +1 -1
  11. package/dist/Base/Base.cjs.js +2 -2
  12. package/dist/Base/Base.esm.d.ts +1 -1
  13. package/dist/Base/Base.esm.js +2 -2
  14. package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
  15. package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
  16. package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
  17. package/dist/BrandLogo/BrandLogo.esm.js +4 -4
  18. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +8 -8
  19. package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -4
  20. package/dist/Button/Button.cjs.d.ts +1 -1
  21. package/dist/Button/Button.cjs.js +5 -5
  22. package/dist/Button/Button.esm.d.ts +1 -1
  23. package/dist/Button/Button.esm.js +5 -5
  24. package/dist/Card/Card.cjs.js +14 -14
  25. package/dist/Card/Card.esm.js +6 -6
  26. package/dist/Checkbox/Checkbox.cjs.d.ts +6 -1
  27. package/dist/Checkbox/Checkbox.cjs.js +22 -15
  28. package/dist/Checkbox/Checkbox.esm.d.ts +6 -1
  29. package/dist/Checkbox/Checkbox.esm.js +18 -11
  30. package/dist/Clock/Clock.cjs.js +6 -6
  31. package/dist/Clock/Clock.esm.js +1 -1
  32. package/dist/Columns/Columns.cjs.js +9 -9
  33. package/dist/Columns/Columns.esm.js +2 -2
  34. package/dist/Curve/Curve.cjs.d.ts +1 -1
  35. package/dist/Curve/Curve.cjs.js +3 -3
  36. package/dist/Curve/Curve.esm.d.ts +1 -1
  37. package/dist/Curve/Curve.esm.js +3 -3
  38. package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
  39. package/dist/Disclosure/Disclosure.cjs.js +8 -8
  40. package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
  41. package/dist/Disclosure/Disclosure.esm.js +4 -4
  42. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -0
  43. package/dist/DisclosureMini/DisclosureMini.cjs.js +16 -0
  44. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -0
  45. package/dist/DisclosureMini/DisclosureMini.esm.js +8 -0
  46. package/dist/DisclosureMini/package.json +7 -0
  47. package/dist/Elevation/Elevation.cjs.d.ts +4 -0
  48. package/dist/Elevation/Elevation.cjs.js +7 -5
  49. package/dist/Elevation/Elevation.esm.d.ts +4 -0
  50. package/dist/Elevation/Elevation.esm.js +4 -2
  51. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  52. package/dist/FormControl/FormControl.cjs.js +9 -6
  53. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  54. package/dist/FormControl/FormControl.esm.js +9 -6
  55. package/dist/Group/Group.cjs.js +9 -9
  56. package/dist/Group/Group.esm.js +2 -2
  57. package/dist/Heading/Heading.cjs.d.ts +1 -1
  58. package/dist/Heading/Heading.cjs.js +4 -4
  59. package/dist/Heading/Heading.esm.d.ts +1 -1
  60. package/dist/Heading/Heading.esm.js +4 -4
  61. package/dist/Icon/Icon.cjs.d.ts +1 -1
  62. package/dist/Icon/Icon.cjs.js +4 -4
  63. package/dist/Icon/Icon.esm.d.ts +1 -1
  64. package/dist/Icon/Icon.esm.js +4 -4
  65. package/dist/Image/Image.cjs.d.ts +1 -1
  66. package/dist/Image/Image.cjs.js +3 -3
  67. package/dist/Image/Image.esm.d.ts +1 -1
  68. package/dist/Image/Image.esm.js +3 -3
  69. package/dist/Markup/Markup.cjs.js +6 -6
  70. package/dist/Markup/Markup.esm.js +2 -2
  71. package/dist/Poster/Poster.cjs.d.ts +1 -1
  72. package/dist/Poster/Poster.cjs.js +13 -13
  73. package/dist/Poster/Poster.esm.d.ts +1 -1
  74. package/dist/Poster/Poster.esm.js +4 -4
  75. package/dist/ProgressBar/ProgressBar.cjs.js +22 -41
  76. package/dist/ProgressBar/ProgressBar.esm.js +13 -32
  77. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
  78. package/dist/RadioGroup/RadioGroup.cjs.js +15 -12
  79. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
  80. package/dist/RadioGroup/RadioGroup.esm.js +9 -6
  81. package/dist/Rule/Rule.cjs.js +5 -5
  82. package/dist/Rule/Rule.esm.js +2 -2
  83. package/dist/Section/Section.cjs.d.ts +1 -1
  84. package/dist/Section/Section.cjs.js +2 -2
  85. package/dist/Section/Section.esm.d.ts +1 -1
  86. package/dist/Section/Section.esm.js +2 -2
  87. package/dist/Select/Select.cjs.d.ts +1 -1
  88. package/dist/Select/Select.cjs.js +10 -8
  89. package/dist/Select/Select.esm.d.ts +1 -1
  90. package/dist/Select/Select.esm.js +10 -8
  91. package/dist/SiteFooter/SiteFooter.cjs.js +13 -13
  92. package/dist/SiteFooter/SiteFooter.esm.js +6 -6
  93. package/dist/SiteHeader/SiteHeader.cjs.d.ts +9 -1
  94. package/dist/SiteHeader/SiteHeader.cjs.js +57 -49
  95. package/dist/SiteHeader/SiteHeader.esm.d.ts +9 -1
  96. package/dist/SiteHeader/SiteHeader.esm.js +15 -7
  97. package/dist/Surface/Surface.cjs.d.ts +1 -1
  98. package/dist/Surface/Surface.cjs.js +2 -2
  99. package/dist/Surface/Surface.esm.d.ts +1 -1
  100. package/dist/Surface/Surface.esm.js +2 -2
  101. package/dist/Switch/Switch.cjs.d.ts +1 -1
  102. package/dist/Switch/Switch.cjs.js +10 -8
  103. package/dist/Switch/Switch.esm.d.ts +1 -1
  104. package/dist/Switch/Switch.esm.js +10 -8
  105. package/dist/Tag/Tag.cjs.js +39 -18
  106. package/dist/Tag/Tag.esm.js +31 -10
  107. package/dist/Text/Text.cjs.d.ts +1 -1
  108. package/dist/Text/Text.cjs.js +4 -4
  109. package/dist/Text/Text.esm.d.ts +1 -1
  110. package/dist/Text/Text.esm.js +4 -4
  111. package/dist/TextInput/TextInput.cjs.d.ts +1 -1
  112. package/dist/TextInput/TextInput.cjs.js +14 -11
  113. package/dist/TextInput/TextInput.esm.d.ts +1 -1
  114. package/dist/TextInput/TextInput.esm.js +9 -6
  115. package/dist/UniversalHeader/UniversalHeader.cjs.js +6 -6
  116. package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
  117. package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -1
  118. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  119. package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -1
  120. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  121. package/dist/_shared/cjs/{Base-e2b846fe.js → Base-569e4334.js} +3 -3
  122. package/dist/_shared/cjs/{BrandLogo-3c6102ef.js → BrandLogo-8008f0c4.js} +7 -7
  123. package/dist/_shared/cjs/BtIconAlert-637db790.js +38 -0
  124. package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +29 -0
  125. package/dist/_shared/cjs/{Button-1af6868c.js → Button-5dff284a.js} +10 -10
  126. package/dist/_shared/cjs/{Curve-e72ce25b.js → Curve-b05589d8.js} +6 -6
  127. package/dist/_shared/cjs/DisclosureMini-5af13d3c.d.ts +37 -0
  128. package/dist/_shared/cjs/DisclosureMini-5af13d3c.js +42 -0
  129. package/dist/_shared/cjs/{FormControl-d4d9c665.d.ts → FormControl-42360ae8.d.ts} +2 -29
  130. package/dist/_shared/cjs/{FormControl-d4d9c665.js → FormControl-42360ae8.js} +18 -70
  131. package/dist/_shared/cjs/{Heading-cc38c3ec.js → Heading-d45f6a7f.js} +7 -7
  132. package/dist/_shared/cjs/{Icon-719d13d4.js → Icon-9ae8dbe1.js} +7 -7
  133. package/dist/_shared/cjs/{Image-fe760a06.js → Image-3bf4b4f3.js} +8 -8
  134. package/dist/_shared/cjs/{Section-780f2377.js → Section-48aca5f5.js} +5 -5
  135. package/dist/_shared/cjs/{Surface-d6b8010e.js → Surface-6da0a78e.js} +8 -8
  136. package/dist/_shared/cjs/{Text-1d3844be.js → Text-6f2827e6.js} +7 -7
  137. package/dist/_shared/cjs/{VerticalSpace-7aed88ab.js → VerticalSpace-86f697e7.js} +5 -5
  138. package/dist/_shared/cjs/{index-78b35bc1.js → filter-data-attrs-a30dcf5f.js} +12 -12
  139. package/dist/_shared/cjs/index-9483ad5f.d.ts +2 -2
  140. package/dist/_shared/cjs/index-c81c9401.d.ts +1 -1
  141. package/dist/_shared/cjs/{suffix-modifier-edf7851e.js → suffix-modifier-1ee2da04.js} +2 -2
  142. package/dist/_shared/esm/{Base-c235dc45.js → Base-6c01e0ec.js} +1 -1
  143. package/dist/_shared/esm/{BrandLogo-4f13fe85.js → BrandLogo-56699561.js} +3 -3
  144. package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +32 -0
  145. package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +23 -0
  146. package/dist/_shared/esm/{Button-10700df4.js → Button-61241dd0.js} +4 -4
  147. package/dist/_shared/esm/{Curve-50697f7e.js → Curve-3e87b1bc.js} +2 -2
  148. package/dist/_shared/esm/DisclosureMini-322fccc0.d.ts +37 -0
  149. package/dist/_shared/esm/DisclosureMini-322fccc0.js +36 -0
  150. package/dist/_shared/esm/{FormControl-2cb96de7.d.ts → FormControl-0744f93f.d.ts} +2 -29
  151. package/dist/_shared/esm/{FormControl-2cb96de7.js → FormControl-0744f93f.js} +10 -61
  152. package/dist/_shared/esm/{Heading-eb1e42db.js → Heading-b61432fb.js} +3 -3
  153. package/dist/_shared/esm/{Icon-61f7237a.js → Icon-fd247973.js} +3 -3
  154. package/dist/_shared/esm/{Image-c0f3d42f.js → Image-3596ce55.js} +2 -2
  155. package/dist/_shared/esm/{Section-7bc71e26.js → Section-b8038d66.js} +1 -1
  156. package/dist/_shared/esm/{Surface-bf201530.js → Surface-bb100ef8.js} +1 -1
  157. package/dist/_shared/esm/{Text-6b958ad8.js → Text-00e9743b.js} +3 -3
  158. package/dist/_shared/esm/{VerticalSpace-3579b20e.js → VerticalSpace-93980c9c.js} +1 -1
  159. package/dist/_shared/esm/{index-229fc864.js → filter-data-attrs-afdb7d32.js} +12 -12
  160. package/dist/_shared/esm/index-9483ad5f.d.ts +2 -2
  161. package/dist/_shared/esm/index-c81c9401.d.ts +1 -1
  162. package/dist/_shared/esm/{suffix-modifier-f5e28822.js → suffix-modifier-7e640670.js} +1 -1
  163. package/dist/index.es.js +166 -126
  164. package/dist/index.es.js.map +1 -1
  165. package/dist/index.js +395 -355
  166. package/dist/index.js.map +1 -1
  167. package/dist/styles.css +1 -1
  168. package/dist/types/components/Alert/Alert.d.ts +56 -0
  169. package/dist/types/components/Alert/index.d.ts +1 -0
  170. package/dist/types/components/Checkbox/Checkbox.d.ts +6 -1
  171. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +36 -0
  172. package/dist/types/components/DisclosureMini/index.d.ts +1 -0
  173. package/dist/types/components/Elevation/Elevation.d.ts +4 -0
  174. package/dist/types/components/SiteHeader/SiteHeader.d.ts +2 -0
  175. package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +8 -0
  176. package/dist/types/styles.d.ts +3 -2
  177. package/package.json +4 -4
  178. package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +0 -28
  179. package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +0 -1
  180. /package/dist/_shared/cjs/{Base-e2b846fe.d.ts → Base-569e4334.d.ts} +0 -0
  181. /package/dist/_shared/cjs/{BrandLogo-3c6102ef.d.ts → BrandLogo-8008f0c4.d.ts} +0 -0
  182. /package/dist/_shared/cjs/{Button-1af6868c.d.ts → Button-5dff284a.d.ts} +0 -0
  183. /package/dist/_shared/cjs/{Curve-e72ce25b.d.ts → Curve-b05589d8.d.ts} +0 -0
  184. /package/dist/_shared/cjs/{Heading-cc38c3ec.d.ts → Heading-d45f6a7f.d.ts} +0 -0
  185. /package/dist/_shared/cjs/{Icon-719d13d4.d.ts → Icon-9ae8dbe1.d.ts} +0 -0
  186. /package/dist/_shared/cjs/{Image-fe760a06.d.ts → Image-3bf4b4f3.d.ts} +0 -0
  187. /package/dist/_shared/cjs/{Section-780f2377.d.ts → Section-48aca5f5.d.ts} +0 -0
  188. /package/dist/_shared/cjs/{Surface-d6b8010e.d.ts → Surface-6da0a78e.d.ts} +0 -0
  189. /package/dist/_shared/cjs/{Text-1d3844be.d.ts → Text-6f2827e6.d.ts} +0 -0
  190. /package/dist/_shared/cjs/{VerticalSpace-7aed88ab.d.ts → VerticalSpace-86f697e7.d.ts} +0 -0
  191. /package/dist/_shared/cjs/{index-78b35bc1.d.ts → filter-data-attrs-a30dcf5f.d.ts} +0 -0
  192. /package/dist/_shared/cjs/{suffix-modifier-edf7851e.d.ts → suffix-modifier-1ee2da04.d.ts} +0 -0
  193. /package/dist/_shared/esm/{Base-c235dc45.d.ts → Base-6c01e0ec.d.ts} +0 -0
  194. /package/dist/_shared/esm/{BrandLogo-4f13fe85.d.ts → BrandLogo-56699561.d.ts} +0 -0
  195. /package/dist/_shared/esm/{Button-10700df4.d.ts → Button-61241dd0.d.ts} +0 -0
  196. /package/dist/_shared/esm/{Curve-50697f7e.d.ts → Curve-3e87b1bc.d.ts} +0 -0
  197. /package/dist/_shared/esm/{Heading-eb1e42db.d.ts → Heading-b61432fb.d.ts} +0 -0
  198. /package/dist/_shared/esm/{Icon-61f7237a.d.ts → Icon-fd247973.d.ts} +0 -0
  199. /package/dist/_shared/esm/{Image-c0f3d42f.d.ts → Image-3596ce55.d.ts} +0 -0
  200. /package/dist/_shared/esm/{Section-7bc71e26.d.ts → Section-b8038d66.d.ts} +0 -0
  201. /package/dist/_shared/esm/{Surface-bf201530.d.ts → Surface-bb100ef8.d.ts} +0 -0
  202. /package/dist/_shared/esm/{Text-6b958ad8.d.ts → Text-00e9743b.d.ts} +0 -0
  203. /package/dist/_shared/esm/{VerticalSpace-3579b20e.d.ts → VerticalSpace-93980c9c.d.ts} +0 -0
  204. /package/dist/_shared/esm/{index-229fc864.d.ts → filter-data-attrs-afdb7d32.d.ts} +0 -0
  205. /package/dist/_shared/esm/{suffix-modifier-f5e28822.d.ts → suffix-modifier-7e640670.d.ts} +0 -0
@@ -0,0 +1,32 @@
1
+ import React__default from 'react';
2
+
3
+ const React = React__default;
4
+ const BtIconAlert = 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
+ "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",
18
+ fill: "currentColor"
19
+ }),
20
+ /*#__PURE__*/ React.createElement("path", {
21
+ fill: "currentColor",
22
+ d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z"
23
+ }),
24
+ /*#__PURE__*/ React.createElement("path", {
25
+ d:
26
+ "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",
27
+ fill: "currentColor"
28
+ })
29
+ );
30
+ var BtIconAlert_2 = BtIconAlert;
31
+
32
+ export { BtIconAlert_2 as B };
@@ -0,0 +1,23 @@
1
+ import React__default from 'react';
2
+
3
+ const React = React__default;
4
+ const BtIconCrossAlt2Px = 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
+ "M17.41406,16l3.793-3.793A.99989.99989,0,0,0,19.793,10.793L16,14.58594l-3.793-3.793A.99989.99989,0,0,0,10.793,12.207L14.58594,16l-3.793,3.793A.99989.99989,0,1,0,12.207,21.207L16,17.41406l3.793,3.793A.99989.99989,0,0,0,21.207,19.793Z",
18
+ fill: "currentColor"
19
+ })
20
+ );
21
+ var BtIconCrossAlt2Px_2 = BtIconCrossAlt2Px;
22
+
23
+ export { BtIconCrossAlt2Px_2 as B };
@@ -1,10 +1,10 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import React__default, { forwardRef, useContext } from 'react';
3
3
  import { B as BtIconChevronRightMid_2 } from './BtIconChevronRightMid-d9b11761.js';
4
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-61f7237a.js';
7
- import { C as Context } from './Surface-bf201530.js';
5
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
6
+ import { I as Icon } from './Icon-fd247973.js';
7
+ import { C as Context } from './Surface-bb100ef8.js';
8
8
 
9
9
  const React = React__default;
10
10
  const BtIconChevronLeftMid = props =>
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
5
 
6
6
  /**
7
7
  * Use `Curve` sparingly to soften edges and create a more natural, less rigid
@@ -0,0 +1,37 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `DisclosureMini` to display content that is only visible when toggled into
4
+ * an "open" state.
5
+ */
6
+ declare const DisclosureMini: FC<DisclosureMiniProps>;
7
+ interface DisclosureMiniProps {
8
+ /**
9
+ * Content to display in the DisclosureMini.
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * DisclosureMini ID.
14
+ */
15
+ id?: string;
16
+ /**
17
+ * The DisclosureMini summary text.
18
+ */
19
+ summary: string;
20
+ /**
21
+ * Should the Disclosure content be open by default?
22
+ */
23
+ isOpen?: boolean;
24
+ /**
25
+ * Position of the DisclosureMini icon?
26
+ */
27
+ iconPosition?: "left" | "right";
28
+ /**
29
+ * On Click handler for DisclosureMini summary disclosure.
30
+ */
31
+ onClick?: () => void;
32
+ /**
33
+ * Disclosure size.
34
+ */
35
+ size?: "s" | "l";
36
+ }
37
+ export { DisclosureMini, DisclosureMiniProps };
@@ -0,0 +1,36 @@
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
+ import { c as classNames } from './index-2ae58626.js';
3
+ import React__default, { useContext, useState } from 'react';
4
+ import { B as BtIconChevronDown2Px_2 } from './BtIconChevronDown2Px-782876e2.js';
5
+ import { T as Text } from './Text-00e9743b.js';
6
+ import { C as Context } from './Surface-bb100ef8.js';
7
+
8
+ /**
9
+ * Use `DisclosureMini` to display content that is only visible when toggled into
10
+ * an "open" state.
11
+ */
12
+ var DisclosureMini = function (_a) {
13
+ var children = _a.children, summary = _a.summary, onClick = _a.onClick, id = _a.id, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? "left" : _c, _d = _a.size, size = _d === void 0 ? "l" : _d, props = __rest(_a, ["children", "summary", "onClick", "id", "isOpen", "iconPosition", "size"]);
14
+ var surface = useContext(Context).surface;
15
+ var _e = useState(false), disclousreState = _e[0], setDisclosureState = _e[1];
16
+ var handleOnClick = function () {
17
+ onClick && onClick();
18
+ setDisclosureState(function (prevState) { return !prevState; });
19
+ };
20
+ return (React__default.createElement("details", __assign({ "data-testid": "DisclosureMini", className: classNames({
21
+ "arc-DisclosureMini": true,
22
+ "arc-DisclosureMini--onDarkSurface": surface === "dark"
23
+ }), open: isOpen }, filterDataAttrs(props)),
24
+ React__default.createElement("summary", { "data-testid": "DisclosureMiniSummary", className: classNames("arc-DisclosureMini-summary", {
25
+ "arc-DisclosureMini-summary--icon-left": iconPosition === "left",
26
+ "arc-DisclosureMini-summary--icon-right": iconPosition === "right"
27
+ }), onClick: handleOnClick, "aria-expanded": disclousreState },
28
+ React__default.createElement("span", { className: "arc-DisclosureMini-summary-icon" },
29
+ React__default.createElement(BtIconChevronDown2Px_2, null)),
30
+ React__default.createElement(Text, { size: size === "l" ? "m" : "s" }, summary)),
31
+ React__default.createElement("div", { className: "arc-DisclosureMini-details" },
32
+ React__default.createElement(Text, { size: size === "l" ? "m" : "s" },
33
+ React__default.createElement("span", { id: id }, children)))));
34
+ };
35
+
36
+ export { DisclosureMini as D };
@@ -1,33 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { FC, ReactNode } from "react";
4
- /**
5
- * Use `FormControlDisclosure` to display content that is only visible when toggled into
6
- * an "open" state.
7
- */
8
- declare const FormControlDisclosure: FC<FormControlDisclosureProps>;
9
- interface FormControlDisclosureProps {
10
- /**
11
- * Content to display in the FormControlDisclosure.
12
- */
13
- children: ReactNode;
14
- /**
15
- * FormControlDisclosure ID.
16
- */
17
- id?: string;
18
- /**
19
- * The FormControlDisclosure summary text.
20
- */
21
- summary: string;
22
- /**
23
- * On Click handler for FormControlDisclosure summary disclosure.
24
- */
25
- onClick?: () => void;
26
- /**
27
- * Disclosure size.
28
- */
29
- size?: "s" | "l";
30
- }
3
+ import { FC } from "react";
31
4
  /**
32
5
  * Optionally define ariaDescribedBy if errorMessage or helper exist.
33
6
  */
@@ -119,4 +92,4 @@ interface FormControlProps {
119
92
  */
120
93
  helperUnderLabel?: boolean;
121
94
  }
122
- export { FormControlDisclosure, FormControlDisclosureProps, useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
95
+ export { useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
@@ -1,9 +1,10 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
- import React__default, { useContext, useState, createContext } from 'react';
4
- import { C as Context$1 } from './Surface-bf201530.js';
5
- import { T as Text } from './Text-6b958ad8.js';
6
- import { B as BtIconChevronRightMid_2 } from './BtIconChevronRightMid-d9b11761.js';
3
+ import React__default, { createContext, useContext } from 'react';
4
+ import { B as BtIconAlert_2 } from './BtIconAlert-55a6ed5c.js';
5
+ import { C as Context$1 } from './Surface-bb100ef8.js';
6
+ import { D as DisclosureMini } from './DisclosureMini-322fccc0.js';
7
+ import { V as VerticalSpace } from './VerticalSpace-93980c9c.js';
7
8
 
8
9
  /**
9
10
  * Optionally define ariaDescribedBy if errorMessage or helper exist.
@@ -32,60 +33,6 @@ var useAriaDescribedby = function (_a) {
32
33
  return { ariaDescribedby: ariaDescribedby, idError: idError, idHelper: idHelper, idDisclosure: idDisclosure };
33
34
  };
34
35
 
35
- const React = React__default;
36
- const BtIconAlert = props =>
37
- /*#__PURE__*/ React.createElement(
38
- "svg",
39
- Object.assign(
40
- {
41
- xmlns: "http://www.w3.org/2000/svg",
42
- viewBox: "0 0 32 32"
43
- },
44
- props
45
- ),
46
- /*#__PURE__*/ React.createElement("defs", null),
47
- /*#__PURE__*/ React.createElement("path", {
48
- d:
49
- "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",
50
- fill: "currentColor"
51
- }),
52
- /*#__PURE__*/ React.createElement("path", {
53
- fill: "currentColor",
54
- d: "M16 20.99335A1 1 0 1 0 16 22.99335 1 1 0 1 0 16 20.99335z"
55
- }),
56
- /*#__PURE__*/ React.createElement("path", {
57
- d:
58
- "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",
59
- fill: "currentColor"
60
- })
61
- );
62
- var BtIconAlert_2 = BtIconAlert;
63
-
64
- /**
65
- * Use `FormControlDisclosure` to display content that is only visible when toggled into
66
- * an "open" state.
67
- */
68
- var FormControlDisclosure = function (_a) {
69
- var children = _a.children, summary = _a.summary, onClick = _a.onClick, _b = _a.size, size = _b === void 0 ? "l" : _b, id = _a.id, props = __rest(_a, ["children", "summary", "onClick", "size", "id"]);
70
- var surface = useContext(Context$1).surface;
71
- var _c = useState(false), disclousreState = _c[0], setDisclosureState = _c[1];
72
- var handleOnClick = function () {
73
- onClick && onClick();
74
- setDisclosureState(function (prevState) { return !prevState; });
75
- };
76
- return (React__default.createElement("details", __assign({ className: classNames({
77
- "arc-FormControlDisclosure": true,
78
- "arc-FormControlDisclosure--onDarkSurface": surface === "dark"
79
- }) }, filterDataAttrs(props), { "data-testid": "FormControlDisclosure" }),
80
- React__default.createElement("summary", { className: "arc-FormControlDisclosure-summary", onClick: handleOnClick, "aria-expanded": disclousreState },
81
- React__default.createElement("span", { className: "arc-FormControlDisclosure-summary-icon" },
82
- React__default.createElement(BtIconChevronRightMid_2, null)),
83
- React__default.createElement(Text, { size: size === "l" ? "m" : "s" }, summary)),
84
- React__default.createElement("div", { className: "arc-FormControlDisclosure-details" },
85
- React__default.createElement(Text, { size: size === "l" ? "m" : "s" },
86
- React__default.createElement("span", { id: id }, children)))));
87
- };
88
-
89
36
  var defaultContext = {
90
37
  requirementStatus: null
91
38
  };
@@ -133,7 +80,9 @@ var FormControl = function (_a) {
133
80
  !helperUnderLabel && (React__default.createElement(React__default.Fragment, null, errorMessage ? (React__default.createElement("div", { className: "arc-FormControl-error", id: idError },
134
81
  React__default.createElement("span", { className: "arc-FormControl-error--icon" },
135
82
  React__default.createElement(BtIconAlert_2, null)),
136
- errorMessage)) : disclosureTitle ? (React__default.createElement(FormControlDisclosure, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText)) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))));
83
+ errorMessage)) : disclosureTitle ? (React__default.createElement(React__default.Fragment, null,
84
+ React__default.createElement(VerticalSpace, { size: "12" }),
85
+ React__default.createElement(DisclosureMini, { onClick: onClickDisclosure, summary: disclosureTitle, size: labelSize, id: idDisclosure }, disclosureText))) : (helper && (React__default.createElement("div", { className: "arc-FormControl-helper", id: idHelper }, helper))))))));
137
86
  };
138
87
 
139
- export { BtIconAlert_2 as B, Context as C, FormControl as F, useAriaDescribedby as u };
88
+ export { Context as C, FormControl as F, useAriaDescribedby as u };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default, { useContext } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
- import { C as Context } from './Surface-bf201530.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
+ import { C as Context } from './Surface-bb100ef8.js';
6
6
 
7
7
  /**
8
8
  * Use `Heading` to display heading text.
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import React__default, { useContext } from 'react';
3
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-bf201530.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
+ import { C as Context } from './Surface-bb100ef8.js';
6
6
 
7
7
  const React = React__default;
8
8
  const ArcIconArc = props =>
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default, { useEffect } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
5
 
6
6
  /**
7
7
  * Use `Image` to render a single image, or set of images, with support for
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as __spreadArray, _ as __rest, a as __assign, c as camelCase, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { b as __spreadArray, _ as __rest, a as __assign, c as camelCase, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default, { createContext } from 'react';
4
4
 
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default, { useContext } from 'react';
4
- import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
5
- import { C as Context } from './Surface-bf201530.js';
4
+ import { s as suffixModifier } from './suffix-modifier-7e640670.js';
5
+ import { C as Context } from './Surface-bb100ef8.js';
6
6
 
7
7
  /**
8
8
  * Use `Text` to display text.
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-afdb7d32.js';
2
2
  import { c as classNames } from './index-2ae58626.js';
3
3
  import React__default from 'react';
4
4
 
@@ -84,18 +84,6 @@ function __spreadArray(to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  }
86
86
 
87
- var dataAttrRe = /^(data-.*)$/;
88
- var filterDataAttrs = function (props) {
89
- var filteredProps = {};
90
- for (var prop in props) {
91
- if (Object.prototype.hasOwnProperty.call(props, prop) &&
92
- dataAttrRe.test(prop)) {
93
- filteredProps[prop] = props[prop];
94
- }
95
- }
96
- return filteredProps;
97
- };
98
-
99
87
  var camelcase = {exports: {}};
100
88
 
101
89
  const UPPERCASE = /[\p{Lu}]/u;
@@ -205,4 +193,16 @@ camelcase.exports.default = camelCase;
205
193
 
206
194
  var camelCase$1 = camelcase.exports;
207
195
 
196
+ var dataAttrRe = /^(data-.*)$/;
197
+ var filterDataAttrs = function (props) {
198
+ var filteredProps = {};
199
+ for (var prop in props) {
200
+ if (Object.prototype.hasOwnProperty.call(props, prop) &&
201
+ dataAttrRe.test(prop)) {
202
+ filteredProps[prop] = props[prop];
203
+ }
204
+ }
205
+ return filteredProps;
206
+ };
207
+
208
208
  export { __rest as _, __assign as a, __spreadArray as b, camelCase$1 as c, __awaiter as d, __generator as e, filterDataAttrs as f };
@@ -10,5 +10,5 @@ declare const anchorPoints: readonly [
10
10
  "C"
11
11
  ];
12
12
  export { anchorPoints };
13
- export * from "./index-229fc864";
14
- export * from "./suffix-modifier-f5e28822";
13
+ export * from "./filter-data-attrs-afdb7d32";
14
+ export * from "./suffix-modifier-7e640670";
@@ -1,4 +1,4 @@
1
- export * from "./FormControl-2cb96de7";
1
+ export * from "./FormControl-0744f93f";
2
2
  export * from "../../Card/Card.esm";
3
3
  export * from "./index.es-00cb3bcb";
4
4
  export * from "../../TextInput/TextInput.esm";
@@ -1,4 +1,4 @@
1
- import { c as camelCase } from './index-229fc864.js';
1
+ import { c as camelCase } from './filter-data-attrs-afdb7d32.js';
2
2
 
3
3
  /**
4
4
  * Suffixes a modifier value onto the end of a className, converting it to