@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,7 @@
1
+ {
2
+ "name": "@arc-ui/icon",
3
+ "types": "./Icon.esm.d.ts",
4
+ "main": "./Icon.cjs.js",
5
+ "module": "./Icon.esm.js",
6
+ "private": true
7
+ }
@@ -0,0 +1 @@
1
+ export { Image } from "../_shared/cjs/Image-fe760a06";
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Image = require('../_shared/cjs/Image-fe760a06.js');
6
+ require('../_shared/cjs/index-78b35bc1.js');
7
+ require('../_shared/cjs/index-45bfb67b.js');
8
+ require('react');
9
+ require('../_shared/cjs/suffix-modifier-edf7851e.js');
10
+
11
+
12
+
13
+ exports.Image = Image.Image;
@@ -0,0 +1 @@
1
+ export { Image } from "../_shared/esm/Image-7e4948f6";
@@ -0,0 +1,5 @@
1
+ export { I as Image } from '../_shared/esm/Image-7e4948f6.js';
2
+ import '../_shared/esm/index-229fc864.js';
3
+ import '../_shared/esm/index-2ae58626.js';
4
+ import 'react';
5
+ import '../_shared/esm/suffix-modifier-f5e28822.js';
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/image",
3
+ "types": "./Image.esm.d.ts",
4
+ "main": "./Image.cjs.js",
5
+ "module": "./Image.esm.js",
6
+ "private": true
7
+ }
File without changes
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../_shared/cjs/index-78b35bc1.js');
6
+ var index$1 = require('../_shared/cjs/index-45bfb67b.js');
7
+ var React = require('react');
8
+ var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ /**
15
+ * Use `Markup` to display HTML-formatted text.
16
+ */
17
+ var Markup = function (_a) {
18
+ var children = _a.children, _b = _a.isMeasured, isMeasured = _b === void 0 ? false : _b, props = index.__rest(_a, ["children", "isMeasured"]);
19
+ var surface = React.useContext(Surface.Context).surface;
20
+ return (React__default["default"].createElement("div", index.__assign({ className: index$1.classNames({
21
+ "arc-Markup": true,
22
+ "arc-Markup--measured": isMeasured,
23
+ "arc-Markup--onDarkSurface": surface === "dark"
24
+ }) }, index.filterDataAttrs(props)), children));
25
+ };
26
+
27
+ exports.Markup = Markup;
@@ -0,0 +1,16 @@
1
+ import { FC, ReactNode } from "react";
2
+ /**
3
+ * Use `Markup` to display HTML-formatted text.
4
+ */
5
+ declare const Markup: FC<MarkupProps>;
6
+ interface MarkupProps {
7
+ /**
8
+ * HTML-formatted text to display in Markup.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Should the Markup width be constrained to a typographic measure?
13
+ */
14
+ isMeasured?: boolean;
15
+ }
16
+ export { Markup };
@@ -1,7 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/index-e3c83626.js';
2
- import { c as classNames } from '../_shared/index-56d9df62.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
2
+ import { c as classNames } from '../_shared/esm/index-2ae58626.js';
3
3
  import React, { useContext } from 'react';
4
- import { C as Context } from '../_shared/Surface-3fe44a2a.js';
4
+ import { C as Context } from '../_shared/esm/Surface-d515d212.js';
5
5
 
6
6
  /**
7
7
  * Use `Markup` to display HTML-formatted text.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/markup",
3
+ "types": "./Markup.esm.d.ts",
4
+ "main": "./Markup.cjs.js",
5
+ "module": "./Markup.esm.js",
6
+ "private": true
7
+ }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { FC, ReactNode } from "react";
3
- import { anchorPoints } from "../_shared/index-9483ad5f";
4
- import { loadingOptions } from "../_shared/Image-a3225049";
3
+ import { anchorPoints } from "../_shared/cjs/index-9483ad5f";
4
+ import { loadingOptions } from "../_shared/cjs/Image-fe760a06";
5
5
  declare const PosterImage: FC<PosterImageProps>;
6
6
  interface PosterImageProps {
7
7
  /**
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../_shared/cjs/index-78b35bc1.js');
6
+ var index$1 = require('../_shared/cjs/index-45bfb67b.js');
7
+ var React = require('react');
8
+ var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
9
+ var Image = require('../_shared/cjs/Image-fe760a06.js');
10
+ var suffixModifier = require('../_shared/cjs/suffix-modifier-edf7851e.js');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
+
16
+ var PosterImage = function (_a) {
17
+ var alt = _a.alt, _b = _a.anchor, anchor = _b === void 0 ? "C" : _b, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, props = index.__rest(_a, ["alt", "anchor", "loading", "sizes", "src", "srcSet"]);
18
+ return (React__default["default"].createElement(Image.Image, index.__assign({ alt: alt, anchor: anchor, fit: "cover", loading: loading, sizes: sizes, src: src, srcSet: srcSet }, props)));
19
+ };
20
+ PosterImage.displayName = "Poster.Image";
21
+
22
+ var PosterVideo = function (_a) {
23
+ var _b;
24
+ var _c = _a.anchor, anchor = _c === void 0 ? "C" : _c, _d = _a.autoPlay, autoPlay = _d === void 0 ? true : _d, children = _a.children, _e = _a.loop, loop = _e === void 0 ? true : _e, props = index.__rest(_a, ["anchor", "autoPlay", "children", "loop"]);
25
+ return (React__default["default"].createElement("video", index.__assign({ className: index$1.classNames((_b = {
26
+ "arc-PosterVideo": true
27
+ },
28
+ _b[suffixModifier.suffixModifier("arc-PosterVideo--anchor", anchor)] = anchor,
29
+ _b)), autoPlay: autoPlay, muted: true, loop: loop }, index.filterDataAttrs(props)), children));
30
+ };
31
+ PosterVideo.displayName = "Poster.Video";
32
+
33
+ /**
34
+ * Use `Poster` to compose content on an image or video background.
35
+ */
36
+ var Poster = function (_a) {
37
+ var background = _a.background, children = _a.children, _b = _a.overlay, overlay = _b === void 0 ? true : _b, _c = _a.surface, surface = _c === void 0 ? "darker" : _c, props = index.__rest(_a, ["background", "children", "overlay", "surface"]);
38
+ return (React__default["default"].createElement(Surface.Surface, { background: surface },
39
+ React__default["default"].createElement("div", index.__assign({ className: index$1.classNames({
40
+ "arc-Poster": true,
41
+ "arc-Poster--overlay": overlay,
42
+ "arc-Poster--overlayLight": surface === "lighter"
43
+ }) }, index.filterDataAttrs(props)),
44
+ React__default["default"].createElement("div", { className: "arc-Poster-backgroundWrapper" }, background),
45
+ React__default["default"].createElement("div", { className: "arc-Poster-body" }, children))));
46
+ };
47
+ PosterImage.displayName = "Poster.Image";
48
+ Poster.Image = PosterImage;
49
+ PosterVideo.displayName = "Poster.Video";
50
+ Poster.Video = PosterVideo;
51
+
52
+ exports.Poster = Poster;
@@ -0,0 +1,81 @@
1
+ import React from "react";
2
+ import { FC, ReactNode } from "react";
3
+ import { anchorPoints } from "../_shared/esm/index-9483ad5f";
4
+ import { loadingOptions } from "../_shared/esm/Image-7e4948f6";
5
+ declare const PosterImage: FC<PosterImageProps>;
6
+ interface PosterImageProps {
7
+ /**
8
+ * Alternative text for the Poster.Image, shown if the image cannot be displayed. Consider avoiding this prop if the image is for decorative purposes only.
9
+ */
10
+ alt?: string;
11
+ /**
12
+ * Anchor point for the Poster.Image.
13
+ */
14
+ anchor?: typeof anchorPoints[number];
15
+ /**
16
+ * Loading behaviour of the Poster.Image.
17
+ */
18
+ loading?: typeof loadingOptions[number];
19
+ /**
20
+ * The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute for the Poster.Image. Required if `srcSet` is defined.
21
+ */
22
+ sizes?: string;
23
+ /**
24
+ * The `src` for the Poster.Image. Used if srcSet is not defined, or as a fallback.
25
+ */
26
+ src: string;
27
+ /**
28
+ * A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the Poster.Image. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
29
+ */
30
+ srcSet?: string;
31
+ /**
32
+ * Contents of the PosterImage.
33
+ */
34
+ children?: React.ReactNode;
35
+ }
36
+ declare const PosterVideo: FC<PosterVideoProps>;
37
+ interface PosterVideoProps {
38
+ /**
39
+ * Anchor point for the Poster.Video,
40
+ */
41
+ anchor?: typeof anchorPoints[number];
42
+ /**
43
+ * Should the Poster.Video autoplay?
44
+ */
45
+ autoPlay?: boolean;
46
+ /**
47
+ * HTML video sources for the Poster.Video. [See MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
48
+ */
49
+ children: ReactNode;
50
+ /**
51
+ * Should the Poster.Video loop?
52
+ */
53
+ loop?: boolean;
54
+ }
55
+ /**
56
+ * Use `Poster` to compose content on an image or video background.
57
+ */
58
+ declare const Poster: FC<PosterProps> & {
59
+ Image: typeof PosterImage;
60
+ Video: typeof PosterVideo;
61
+ };
62
+ interface PosterProps {
63
+ /**
64
+ * Poster background to overlay content on top of. Must be one of Poster.Image or Poster.Video.
65
+ */
66
+ background: ReactNode;
67
+ /**
68
+ * Contents of the Poster. Each item will be wrapped in an PosterItem component.
69
+ */
70
+ children: ReactNode;
71
+ /**
72
+ * Apply an overlay to the Poster background, e.g. a scrim gradient for text legibility.
73
+ */
74
+ overlay?: boolean;
75
+ /**
76
+ * The background surface colour to show behind the Poster content before it loads.
77
+ * If using `overlay`, the gradient will match the surface.
78
+ */
79
+ surface?: "darker" | "lighter";
80
+ }
81
+ export { Poster };
@@ -1,9 +1,9 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/index-e3c83626.js';
2
- import { c as classNames } from '../_shared/index-56d9df62.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
2
+ import { c as classNames } from '../_shared/esm/index-2ae58626.js';
3
3
  import React from 'react';
4
- import { S as Surface } from '../_shared/Surface-3fe44a2a.js';
5
- import { I as Image } from '../_shared/Image-a3225049.js';
6
- import { s as suffixModifier } from '../_shared/suffix-modifier-2a93822c.js';
4
+ import { S as Surface } from '../_shared/esm/Surface-d515d212.js';
5
+ import { I as Image } from '../_shared/esm/Image-7e4948f6.js';
6
+ import { s as suffixModifier } from '../_shared/esm/suffix-modifier-f5e28822.js';
7
7
 
8
8
  var PosterImage = function (_a) {
9
9
  var alt = _a.alt, _b = _a.anchor, anchor = _b === void 0 ? "C" : _b, loading = _a.loading, sizes = _a.sizes, src = _a.src, srcSet = _a.srcSet, props = __rest(_a, ["alt", "anchor", "loading", "sizes", "src", "srcSet"]);
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/poster",
3
+ "types": "./Poster.esm.d.ts",
4
+ "main": "./Poster.cjs.js",
5
+ "module": "./Poster.esm.js",
6
+ "private": true
7
+ }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { FormControlProps } from "../_shared/FormControl-9dc9ecc3";
4
+ import { FormControlProps } from "../_shared/cjs/FormControl-a1b7421b";
5
5
  /**
6
6
  * Radio Button component.
7
7
  */
@@ -0,0 +1,72 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../_shared/cjs/index-78b35bc1.js');
6
+ var React = require('react');
7
+ var FormControl = require('../_shared/cjs/FormControl-a1b7421b.js');
8
+ var index$1 = require('../_shared/cjs/index-45bfb67b.js');
9
+ var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
10
+
11
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+
13
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
+
15
+ var RadioContext = React.createContext({});
16
+ var Provider = RadioContext.Provider;
17
+ var useRadioContext = function () {
18
+ var context = React.useContext(RadioContext);
19
+ return context;
20
+ };
21
+
22
+ /**
23
+ * Radio Button component.
24
+ */
25
+ var RadioButton = React.forwardRef(function (_a, ref) {
26
+ var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = index.__rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
27
+ var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
28
+ var surface = React.useContext(Surface.Context).surface;
29
+ var idLabel = "".concat(id, "-label");
30
+ var checked = checkedValue === value ? true : false;
31
+ return (React__default["default"].createElement("div", index.__assign({ className: index$1.classNames({
32
+ "arc-RadioButton": true,
33
+ "arc-RadioButton--disabled": isDisabled || groupDisabled,
34
+ "arc-RadioButton--small": size === "s",
35
+ "arc-RadioButton--smallLabel": labelSize === "s",
36
+ "arc-RadioButton--onDarkSurface": surface === "dark"
37
+ }) }, index.filterDataAttrs(props)),
38
+ React__default["default"].createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
39
+ React__default["default"].createElement("input", { className: "arc-RadioButton-input", checked: typeof changeEvent !== "function" ? undefined : checked, defaultChecked: typeof changeEvent !== "function" ? checked : undefined, disabled: isDisabled || groupDisabled, id: id, name: name, onBlur: blurEvent, onChange: changeEvent, ref: ref, type: "radio", value: value }),
40
+ React__default["default"].createElement("span", null,
41
+ label,
42
+ helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
43
+ });
44
+
45
+ /**
46
+ * Use `RadioGroup` to wrap and control radio buttons and apply default values
47
+ */
48
+ var RadioGroup = function (_a) {
49
+ var children = _a.children, checkedValue = _a.checkedValue, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, id = _a.id, helper = _a.helper, label = _a.label, _c = _a.labelSize, labelSize = _c === void 0 ? "l" : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, _d = _a.size, size = _d === void 0 ? "l" : _d, props = index.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
50
+ React.useEffect(function () {
51
+ React__default["default"].Children.map(children, function (item) {
52
+ if (item && item.type !== RadioButton) {
53
+ throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
54
+ }
55
+ });
56
+ }, [children]);
57
+ return (React__default["default"].createElement(Provider, { value: {
58
+ blurEvent: onBlur,
59
+ changeEvent: onChange,
60
+ groupDisabled: isDisabled,
61
+ checkedValue: checkedValue,
62
+ labelSize: labelSize,
63
+ name: name,
64
+ size: size
65
+ } },
66
+ React__default["default"].createElement("div", index.__assign({ className: "arc-RadioGroup" }, index.filterDataAttrs(props)),
67
+ React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable" }, children))));
68
+ };
69
+ RadioButton.displayName = "RadioGroup.RadioButton";
70
+ RadioGroup.RadioButton = RadioButton;
71
+
72
+ exports.RadioGroup = RadioGroup;
@@ -0,0 +1,85 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ import { FormControlProps } from "../_shared/esm/FormControl-feedc495";
5
+ /**
6
+ * Radio Button component.
7
+ */
8
+ declare const RadioButton: FC<RadioButtonProps>;
9
+ interface RadioButtonProps {
10
+ /**
11
+ * ID for the Radio Button.
12
+ */
13
+ id: string;
14
+ /**
15
+ * Should the RadioButton be disabled?
16
+ */
17
+ isDisabled?: boolean;
18
+ /**
19
+ * Helper text for the RadioButton, shown below the label.
20
+ */
21
+ helper?: string;
22
+ /**
23
+ * Label for the RadioButton.
24
+ */
25
+ label: string;
26
+ /**
27
+ * Current value (controlled).
28
+ */
29
+ value: string;
30
+ }
31
+ type EventType = React.ChangeEvent<HTMLInputElement>;
32
+ /**
33
+ * Use `RadioGroup` to wrap and control radio buttons and apply default values
34
+ */
35
+ declare const RadioGroup: FC<RadioGroupProps> & {
36
+ RadioButton: typeof RadioButton;
37
+ };
38
+ interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus"> {
39
+ /**
40
+ * Contents of the RadioGroup. Should only contain `RadioGroup.RadioButton`
41
+ */
42
+ children?: React.ReactNode;
43
+ /**
44
+ * Value of the RadioButton that should be checked by default.
45
+ */
46
+ checkedValue: string;
47
+ /**
48
+ * Should all controls be disabled?
49
+ */
50
+ isDisabled?: boolean;
51
+ /**
52
+ * Helper message for the RadioGroup.
53
+ */
54
+ helper?: string;
55
+ /**
56
+ * ID for the RadioGroup.
57
+ */
58
+ id: string;
59
+ /**
60
+ * Label for the RadioGroup.
61
+ */
62
+ label: string;
63
+ /**
64
+ * Label size for the RadioGroup
65
+ */
66
+ labelSize?: "s" | "l";
67
+ /**
68
+ * Name for the RadioGroup.
69
+ */
70
+ name: string;
71
+ /**
72
+ * Function to call when the RadioGroup loses focus.
73
+ */
74
+ onBlur?: (e: EventType) => void;
75
+ /**
76
+ * Callback function to update the RadioGroup's controlled `checkedValue` prop,
77
+ * for example `e => setCheckedValue(e.target.value)`.
78
+ */
79
+ onChange?: (event: EventType) => void;
80
+ /**
81
+ * Size of the RadioGroup.
82
+ */
83
+ size?: "s" | "l";
84
+ }
85
+ export { RadioGroup };
@@ -1,8 +1,8 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/index-e3c83626.js';
1
+ import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
2
2
  import React, { createContext, useContext, forwardRef, useEffect } from 'react';
3
- import { F as FormControl } from '../_shared/FormControl-9dc9ecc3.js';
4
- import { c as classNames } from '../_shared/index-56d9df62.js';
5
- import { C as Context } from '../_shared/Surface-3fe44a2a.js';
3
+ import { F as FormControl } from '../_shared/esm/FormControl-feedc495.js';
4
+ import { c as classNames } from '../_shared/esm/index-2ae58626.js';
5
+ import { C as Context } from '../_shared/esm/Surface-d515d212.js';
6
6
 
7
7
  var RadioContext = createContext({});
8
8
  var Provider = RadioContext.Provider;
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/radiogroup",
3
+ "types": "./RadioGroup.esm.d.ts",
4
+ "main": "./RadioGroup.cjs.js",
5
+ "module": "./RadioGroup.esm.js",
6
+ "private": true
7
+ }
File without changes
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../_shared/cjs/index-78b35bc1.js');
6
+ var index$1 = require('../_shared/cjs/index-45bfb67b.js');
7
+ var React = require('react');
8
+ var Surface = require('../_shared/cjs/Surface-d6b8010e.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+
14
+ /**
15
+ * Use `Rule` to display a horizontal rule.
16
+ */
17
+ var Rule = function (props) {
18
+ var surface = React.useContext(Surface.Context).surface;
19
+ return (React__default["default"].createElement("hr", index.__assign({ className: index$1.classNames({
20
+ "arc-Rule": true,
21
+ "arc-Rule--onDarkSurface": surface === "dark"
22
+ }) }, index.filterDataAttrs(props))));
23
+ };
24
+
25
+ exports.Rule = Rule;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ /**
3
+ * Use `Rule` to display a horizontal rule.
4
+ */
5
+ declare const Rule: FC<RuleProps>;
6
+ interface RuleProps {
7
+ }
8
+ export { Rule };
@@ -1,7 +1,7 @@
1
- import { a as __assign, f as filterDataAttrs } from '../_shared/index-e3c83626.js';
2
- import { c as classNames } from '../_shared/index-56d9df62.js';
1
+ import { a as __assign, f as filterDataAttrs } from '../_shared/esm/index-229fc864.js';
2
+ import { c as classNames } from '../_shared/esm/index-2ae58626.js';
3
3
  import React, { useContext } from 'react';
4
- import { C as Context } from '../_shared/Surface-3fe44a2a.js';
4
+ import { C as Context } from '../_shared/esm/Surface-d515d212.js';
5
5
 
6
6
  /**
7
7
  * Use `Rule` to display a horizontal rule.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/rule",
3
+ "types": "./Rule.esm.d.ts",
4
+ "main": "./Rule.cjs.js",
5
+ "module": "./Rule.esm.js",
6
+ "private": true
7
+ }
@@ -0,0 +1 @@
1
+ export { Section } from "../_shared/cjs/Section-780f2377";
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Section = require('../_shared/cjs/Section-780f2377.js');
6
+ require('../_shared/cjs/index-78b35bc1.js');
7
+ require('../_shared/cjs/index-45bfb67b.js');
8
+ require('react');
9
+
10
+
11
+
12
+ exports.Section = Section.Section;
@@ -0,0 +1 @@
1
+ export { Section } from "../_shared/esm/Section-f1256c87";
@@ -0,0 +1,4 @@
1
+ export { S as Section } from '../_shared/esm/Section-f1256c87.js';
2
+ import '../_shared/esm/index-229fc864.js';
3
+ import '../_shared/esm/index-2ae58626.js';
4
+ import 'react';
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@arc-ui/section",
3
+ "types": "./Section.esm.d.ts",
4
+ "main": "./Section.cjs.js",
5
+ "module": "./Section.esm.js",
6
+ "private": true
7
+ }