@arc-ui/components 11.5.0 → 11.6.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 (207) hide show
  1. package/dist/Breadcrumbs/Breadcrumbs.cjs.d.ts +1 -61
  2. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +9 -641
  3. package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +1 -61
  4. package/dist/Breadcrumbs/Breadcrumbs.esm.js +8 -640
  5. package/dist/Button/Button.cjs.d.ts +1 -1
  6. package/dist/Button/Button.cjs.js +2 -1
  7. package/dist/Button/Button.esm.d.ts +1 -1
  8. package/dist/Button/Button.esm.js +2 -1
  9. package/dist/Card/Card.cjs.d.ts +1 -130
  10. package/dist/Card/Card.cjs.js +12 -119
  11. package/dist/Card/Card.esm.d.ts +1 -130
  12. package/dist/Card/Card.esm.js +11 -118
  13. package/dist/Checkbox/Checkbox.cjs.d.ts +1 -64
  14. package/dist/Checkbox/Checkbox.cjs.js +10 -59
  15. package/dist/Checkbox/Checkbox.esm.d.ts +1 -64
  16. package/dist/Checkbox/Checkbox.esm.js +9 -58
  17. package/dist/Columns/Columns.cjs.d.ts +1 -76
  18. package/dist/Columns/Columns.cjs.js +6 -52
  19. package/dist/Columns/Columns.esm.d.ts +1 -76
  20. package/dist/Columns/Columns.esm.js +5 -51
  21. package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -1
  22. package/dist/DisclosureMini/DisclosureMini.cjs.js +1 -1
  23. package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -1
  24. package/dist/DisclosureMini/DisclosureMini.esm.js +1 -1
  25. package/dist/Filter/Filter.cjs.d.ts +1 -0
  26. package/dist/Filter/Filter.cjs.js +13 -0
  27. package/dist/Filter/Filter.esm.d.ts +1 -0
  28. package/dist/Filter/Filter.esm.js +5 -0
  29. package/dist/Filter/package.json +7 -0
  30. package/dist/FormControl/FormControl.cjs.d.ts +1 -1
  31. package/dist/FormControl/FormControl.cjs.js +2 -3
  32. package/dist/FormControl/FormControl.esm.d.ts +1 -1
  33. package/dist/FormControl/FormControl.esm.js +2 -3
  34. package/dist/Group/Group.cjs.d.ts +1 -46
  35. package/dist/Group/Group.cjs.js +6 -43
  36. package/dist/Group/Group.esm.d.ts +1 -46
  37. package/dist/Group/Group.esm.js +5 -42
  38. package/dist/Pagination/Pagination.cjs.d.ts +20 -0
  39. package/dist/Pagination/Pagination.cjs.js +87 -0
  40. package/dist/Pagination/Pagination.esm.d.ts +20 -0
  41. package/dist/Pagination/Pagination.esm.js +79 -0
  42. package/dist/Pagination/package.json +7 -0
  43. package/dist/PaginationSimple/PaginationSimple.cjs.d.ts +28 -0
  44. package/dist/PaginationSimple/PaginationSimple.cjs.js +47 -0
  45. package/dist/PaginationSimple/PaginationSimple.esm.d.ts +28 -0
  46. package/dist/PaginationSimple/PaginationSimple.esm.js +39 -0
  47. package/dist/PaginationSimple/package.json +7 -0
  48. package/dist/Poster/Poster.cjs.d.ts +1 -81
  49. package/dist/Poster/Poster.cjs.js +8 -45
  50. package/dist/Poster/Poster.esm.d.ts +1 -81
  51. package/dist/Poster/Poster.esm.js +7 -44
  52. package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -85
  53. package/dist/RadioGroup/RadioGroup.cjs.js +8 -67
  54. package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -85
  55. package/dist/RadioGroup/RadioGroup.esm.js +7 -66
  56. package/dist/ScrollToTop/ScrollToTop.cjs.d.ts +25 -0
  57. package/dist/ScrollToTop/ScrollToTop.cjs.js +68 -0
  58. package/dist/ScrollToTop/ScrollToTop.esm.d.ts +25 -0
  59. package/dist/ScrollToTop/ScrollToTop.esm.js +60 -0
  60. package/dist/ScrollToTop/package.json +7 -0
  61. package/dist/Select/Select.cjs.d.ts +2 -2
  62. package/dist/Select/Select.cjs.js +2 -3
  63. package/dist/Select/Select.esm.d.ts +2 -2
  64. package/dist/Select/Select.esm.js +2 -3
  65. package/dist/SiteFooter/SiteFooter.cjs.d.ts +2 -62
  66. package/dist/SiteFooter/SiteFooter.cjs.js +10 -65
  67. package/dist/SiteFooter/SiteFooter.esm.d.ts +2 -62
  68. package/dist/SiteFooter/SiteFooter.esm.js +12 -66
  69. package/dist/SiteHeader/SiteHeader.cjs.d.ts +2 -260
  70. package/dist/SiteHeader/SiteHeader.cjs.js +16 -668
  71. package/dist/SiteHeader/SiteHeader.esm.d.ts +2 -260
  72. package/dist/SiteHeader/SiteHeader.esm.js +14 -666
  73. package/dist/Switch/Switch.cjs.d.ts +2 -2
  74. package/dist/Switch/Switch.cjs.js +2 -2
  75. package/dist/Switch/Switch.esm.d.ts +2 -2
  76. package/dist/Switch/Switch.esm.js +2 -2
  77. package/dist/TextArea/TextArea.cjs.d.ts +61 -0
  78. package/dist/TextArea/TextArea.cjs.js +87 -0
  79. package/dist/TextArea/TextArea.esm.d.ts +61 -0
  80. package/dist/TextArea/TextArea.esm.js +79 -0
  81. package/dist/TextArea/package.json +7 -0
  82. package/dist/TextInput/TextInput.cjs.d.ts +1 -75
  83. package/dist/TextInput/TextInput.cjs.js +9 -75
  84. package/dist/TextInput/TextInput.esm.d.ts +1 -75
  85. package/dist/TextInput/TextInput.esm.js +8 -74
  86. package/dist/UniversalHeader/UniversalHeader.cjs.d.ts +1 -26
  87. package/dist/UniversalHeader/UniversalHeader.cjs.js +5 -30
  88. package/dist/UniversalHeader/UniversalHeader.esm.d.ts +1 -26
  89. package/dist/UniversalHeader/UniversalHeader.esm.js +4 -29
  90. package/dist/_shared/cjs/Breadcrumbs-8b554370.d.ts +61 -0
  91. package/dist/_shared/cjs/Breadcrumbs-8b554370.js +106 -0
  92. package/dist/_shared/cjs/BtIconChevronLeftMid-df952a3e.js +31 -0
  93. package/dist/_shared/cjs/{Button-5dff284a.js → Button-27512fee.js} +6 -27
  94. package/dist/_shared/cjs/Card-804ab0e5.d.ts +136 -0
  95. package/dist/_shared/cjs/Card-804ab0e5.js +124 -0
  96. package/dist/_shared/cjs/Checkbox-21d3c4f6.d.ts +64 -0
  97. package/dist/_shared/cjs/Checkbox-21d3c4f6.js +62 -0
  98. package/dist/_shared/cjs/Columns-e90798f8.d.ts +76 -0
  99. package/dist/_shared/cjs/Columns-e90798f8.js +57 -0
  100. package/dist/_shared/cjs/{DisclosureMini-5af13d3c.js → DisclosureMini-067e0319.js} +3 -1
  101. package/dist/_shared/cjs/Filter-f7d2fbda.d.ts +83 -0
  102. package/dist/_shared/cjs/Filter-f7d2fbda.js +121 -0
  103. package/dist/_shared/cjs/{FormControl-42360ae8.d.ts → FormControl-9aaddd54.d.ts} +4 -0
  104. package/dist/_shared/cjs/{FormControl-42360ae8.js → FormControl-9aaddd54.js} +9 -9
  105. package/dist/_shared/cjs/Group-d83f8c2e.d.ts +46 -0
  106. package/dist/_shared/cjs/Group-d83f8c2e.js +48 -0
  107. package/dist/_shared/cjs/ItemGroup-5af4d600.d.ts +27 -0
  108. package/dist/_shared/cjs/NavItem-df20237c.d.ts +43 -0
  109. package/dist/_shared/cjs/NavItemWithSubNav-65f21828.d.ts +49 -0
  110. package/dist/_shared/cjs/Poster-e05bbe13.d.ts +81 -0
  111. package/dist/_shared/cjs/Poster-e05bbe13.js +50 -0
  112. package/dist/_shared/cjs/RadioGroup-81805ef9.d.ts +97 -0
  113. package/dist/_shared/cjs/RadioGroup-81805ef9.js +70 -0
  114. package/dist/_shared/cjs/SiteFooter-c540b5f1.d.ts +62 -0
  115. package/dist/_shared/cjs/SiteFooter-c540b5f1.js +73 -0
  116. package/dist/_shared/cjs/SiteHeader-c25ee36e.d.ts +78 -0
  117. package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.d.ts +78 -0
  118. package/dist/_shared/cjs/SiteHeader.rehydrator-f7fa2efe.js +673 -0
  119. package/dist/_shared/cjs/SubNavItem-a84d1bf4.d.ts +48 -0
  120. package/dist/_shared/cjs/TextInput-33314fc4.d.ts +10 -0
  121. package/dist/_shared/cjs/TextInput-33314fc4.js +78 -0
  122. package/dist/_shared/cjs/TextInput-7ed03a48.d.ts +75 -0
  123. package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.d.ts +26 -0
  124. package/dist/_shared/cjs/UniversalHeader-cc1d9e5a.js +35 -0
  125. package/dist/_shared/cjs/debounce-506538c5.js +544 -0
  126. package/dist/_shared/cjs/index-699086a7.d.ts +2 -0
  127. package/dist/_shared/cjs/index-74488a9f.d.ts +2 -0
  128. package/dist/_shared/cjs/index-c81c9401.d.ts +3 -3
  129. package/dist/_shared/cjs/index-e340924e.d.ts +2 -0
  130. package/dist/_shared/cjs/index-e6d20018.d.ts +3 -0
  131. package/dist/_shared/cjs/index-eb06f640.d.ts +2 -0
  132. package/dist/_shared/cjs/index-f419cf04.d.ts +2 -0
  133. package/dist/_shared/esm/Breadcrumbs-04590057.d.ts +61 -0
  134. package/dist/_shared/esm/Breadcrumbs-04590057.js +100 -0
  135. package/dist/_shared/esm/BtIconChevronLeftMid-9f4f3a3d.js +25 -0
  136. package/dist/_shared/esm/{Button-61241dd0.js → Button-d319fa11.js} +2 -23
  137. package/dist/_shared/esm/Card-e79eb6c8.d.ts +136 -0
  138. package/dist/_shared/esm/Card-e79eb6c8.js +118 -0
  139. package/dist/_shared/esm/Checkbox-94300d8c.d.ts +64 -0
  140. package/dist/_shared/esm/Checkbox-94300d8c.js +56 -0
  141. package/dist/_shared/esm/Columns-8704515b.d.ts +76 -0
  142. package/dist/_shared/esm/Columns-8704515b.js +51 -0
  143. package/dist/_shared/esm/{DisclosureMini-322fccc0.js → DisclosureMini-022beae3.js} +3 -1
  144. package/dist/_shared/esm/Filter-41b391e3.d.ts +83 -0
  145. package/dist/_shared/esm/Filter-41b391e3.js +115 -0
  146. package/dist/_shared/esm/{FormControl-0744f93f.d.ts → FormControl-5e3fdca3.d.ts} +4 -0
  147. package/dist/_shared/esm/{FormControl-0744f93f.js → FormControl-5e3fdca3.js} +9 -9
  148. package/dist/_shared/esm/Group-d62c3f56.d.ts +46 -0
  149. package/dist/_shared/esm/Group-d62c3f56.js +42 -0
  150. package/dist/_shared/esm/ItemGroup-5af4d600.d.ts +27 -0
  151. package/dist/_shared/esm/NavItem-df20237c.d.ts +43 -0
  152. package/dist/_shared/esm/NavItemWithSubNav-65f21828.d.ts +49 -0
  153. package/dist/_shared/esm/Poster-107d6954.d.ts +81 -0
  154. package/dist/_shared/esm/Poster-107d6954.js +44 -0
  155. package/dist/_shared/esm/RadioGroup-1fd0f389.d.ts +97 -0
  156. package/dist/_shared/esm/RadioGroup-1fd0f389.js +64 -0
  157. package/dist/_shared/esm/SiteFooter-8075a9bd.d.ts +62 -0
  158. package/dist/_shared/esm/SiteFooter-8075a9bd.js +67 -0
  159. package/dist/_shared/esm/SiteHeader-c25ee36e.d.ts +78 -0
  160. package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.d.ts +78 -0
  161. package/dist/_shared/esm/SiteHeader.rehydrator-4da8ac64.js +666 -0
  162. package/dist/_shared/esm/SubNavItem-a84d1bf4.d.ts +48 -0
  163. package/dist/_shared/esm/TextInput-1631dbc4.d.ts +10 -0
  164. package/dist/_shared/esm/TextInput-1631dbc4.js +72 -0
  165. package/dist/_shared/esm/TextInput-7ed03a48.d.ts +75 -0
  166. package/dist/_shared/esm/UniversalHeader-7926abde.d.ts +26 -0
  167. package/dist/_shared/esm/UniversalHeader-7926abde.js +29 -0
  168. package/dist/_shared/esm/debounce-e228705f.js +542 -0
  169. package/dist/_shared/esm/index-699086a7.d.ts +2 -0
  170. package/dist/_shared/esm/index-74488a9f.d.ts +2 -0
  171. package/dist/_shared/esm/index-c81c9401.d.ts +3 -3
  172. package/dist/_shared/esm/index-e340924e.d.ts +2 -0
  173. package/dist/_shared/esm/index-e6d20018.d.ts +3 -0
  174. package/dist/_shared/esm/index-eb06f640.d.ts +2 -0
  175. package/dist/_shared/esm/index-f419cf04.d.ts +2 -0
  176. package/dist/index.es.js +178 -27
  177. package/dist/index.es.js.map +1 -1
  178. package/dist/index.js +179 -26
  179. package/dist/index.js.map +1 -1
  180. package/dist/styles.css +1 -1
  181. package/dist/types/components/Filter/Filter.d.ts +38 -0
  182. package/dist/types/components/Filter/FilterControls/FilterControl/FilterControl.d.ts +16 -0
  183. package/dist/types/components/Filter/FilterControls/FilterControls.d.ts +12 -0
  184. package/dist/types/components/Filter/FilterItems/FilterItem/FilterItem.d.ts +12 -0
  185. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +12 -0
  186. package/dist/types/components/Filter/index.d.ts +1 -0
  187. package/dist/types/components/FormControl/FormControl.d.ts +4 -0
  188. package/dist/types/components/Pagination/Pagination.d.ts +19 -0
  189. package/dist/types/components/Pagination/index.d.ts +1 -0
  190. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +27 -0
  191. package/dist/types/components/PaginationSimple/index.d.ts +1 -0
  192. package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
  193. package/dist/types/components/ScrollToTop/ScrollToTop.d.ts +24 -0
  194. package/dist/types/components/ScrollToTop/index.d.ts +1 -0
  195. package/dist/types/components/Select/Select.d.ts +1 -1
  196. package/dist/types/components/Switch/Switch.d.ts +1 -1
  197. package/dist/types/components/TextArea/TextArea.d.ts +60 -0
  198. package/dist/types/components/TextArea/index.d.ts +1 -0
  199. package/dist/types/components/TextInput/TextInput.d.ts +1 -1
  200. package/dist/types/components/index.d.ts +2 -0
  201. package/dist/types/hooks/use-pagination.d.ts +1 -0
  202. package/dist/types/styles.d.ts +7 -2
  203. package/package.json +4 -4
  204. /package/dist/_shared/cjs/{Button-5dff284a.d.ts → Button-27512fee.d.ts} +0 -0
  205. /package/dist/_shared/cjs/{DisclosureMini-5af13d3c.d.ts → DisclosureMini-067e0319.d.ts} +0 -0
  206. /package/dist/_shared/esm/{Button-61241dd0.d.ts → Button-d319fa11.d.ts} +0 -0
  207. /package/dist/_shared/esm/{DisclosureMini-322fccc0.d.ts → DisclosureMini-022beae3.d.ts} +0 -0
@@ -2,51 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
6
- var index = require('../_shared/cjs/index-45bfb67b.js');
7
- var React = require('react');
8
- var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
9
- var Image = require('../_shared/cjs/Image-3bf4b4f3.js');
10
- var suffixModifier = require('../_shared/cjs/suffix-modifier-1ee2da04.js');
5
+ var Poster = require('../_shared/cjs/Poster-e05bbe13.js');
6
+ require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
7
+ require('../_shared/cjs/index-45bfb67b.js');
8
+ require('react');
9
+ require('../_shared/cjs/Surface-6da0a78e.js');
10
+ require('../_shared/cjs/Image-3bf4b4f3.js');
11
+ require('../_shared/cjs/suffix-modifier-1ee2da04.js');
11
12
 
12
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
13
 
14
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
14
 
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 = filterDataAttrs.__rest(_a, ["alt", "anchor", "loading", "sizes", "src", "srcSet"]);
18
- return (React__default["default"].createElement(Image.Image, filterDataAttrs.__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 = filterDataAttrs.__rest(_a, ["anchor", "autoPlay", "children", "loop"]);
25
- return (React__default["default"].createElement("video", filterDataAttrs.__assign({ className: index.classNames((_b = {
26
- "arc-PosterVideo": true
27
- },
28
- _b[suffixModifier.suffixModifier("arc-PosterVideo--anchor", anchor)] = anchor,
29
- _b)), autoPlay: autoPlay, muted: true, loop: loop }, filterDataAttrs.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 = filterDataAttrs.__rest(_a, ["background", "children", "overlay", "surface"]);
38
- return (React__default["default"].createElement(Surface.Surface, { background: surface },
39
- React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
40
- "arc-Poster": true,
41
- "arc-Poster--overlay": overlay,
42
- "arc-Poster--overlayLight": surface === "lighter"
43
- }) }, filterDataAttrs.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;
15
+ exports.Poster = Poster.Poster;
@@ -1,81 +1 @@
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-3596ce55";
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
+ export { Poster } from "../_shared/esm/Poster-107d6954";
@@ -1,44 +1,7 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
2
- import { c as classNames } from '../_shared/esm/index-2ae58626.js';
3
- import React__default from 'react';
4
- import { S as Surface } from '../_shared/esm/Surface-bb100ef8.js';
5
- import { I as Image } from '../_shared/esm/Image-3596ce55.js';
6
- import { s as suffixModifier } from '../_shared/esm/suffix-modifier-7e640670.js';
7
-
8
- var PosterImage = function (_a) {
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"]);
10
- return (React__default.createElement(Image, __assign({ alt: alt, anchor: anchor, fit: "cover", loading: loading, sizes: sizes, src: src, srcSet: srcSet }, props)));
11
- };
12
- PosterImage.displayName = "Poster.Image";
13
-
14
- var PosterVideo = function (_a) {
15
- var _b;
16
- 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 = __rest(_a, ["anchor", "autoPlay", "children", "loop"]);
17
- return (React__default.createElement("video", __assign({ className: classNames((_b = {
18
- "arc-PosterVideo": true
19
- },
20
- _b[suffixModifier("arc-PosterVideo--anchor", anchor)] = anchor,
21
- _b)), autoPlay: autoPlay, muted: true, loop: loop }, filterDataAttrs(props)), children));
22
- };
23
- PosterVideo.displayName = "Poster.Video";
24
-
25
- /**
26
- * Use `Poster` to compose content on an image or video background.
27
- */
28
- var Poster = function (_a) {
29
- 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 = __rest(_a, ["background", "children", "overlay", "surface"]);
30
- return (React__default.createElement(Surface, { background: surface },
31
- React__default.createElement("div", __assign({ className: classNames({
32
- "arc-Poster": true,
33
- "arc-Poster--overlay": overlay,
34
- "arc-Poster--overlayLight": surface === "lighter"
35
- }) }, filterDataAttrs(props)),
36
- React__default.createElement("div", { className: "arc-Poster-backgroundWrapper" }, background),
37
- React__default.createElement("div", { className: "arc-Poster-body" }, children))));
38
- };
39
- PosterImage.displayName = "Poster.Image";
40
- Poster.Image = PosterImage;
41
- PosterVideo.displayName = "Poster.Video";
42
- Poster.Video = PosterVideo;
43
-
44
- export { Poster };
1
+ export { P as Poster } from '../_shared/esm/Poster-107d6954.js';
2
+ import '../_shared/esm/filter-data-attrs-afdb7d32.js';
3
+ import '../_shared/esm/index-2ae58626.js';
4
+ import 'react';
5
+ import '../_shared/esm/Surface-bb100ef8.js';
6
+ import '../_shared/esm/Image-3596ce55.js';
7
+ import '../_shared/esm/suffix-modifier-7e640670.js';
@@ -1,85 +1 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { FormControlProps } from "../_shared/cjs/FormControl-42360ae8";
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" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel"> {
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
+ export { RadioGroup } from "../_shared/cjs/RadioGroup-81805ef9";
@@ -2,77 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
6
- var React = require('react');
7
- var FormControl = require('../_shared/cjs/FormControl-42360ae8.js');
8
- var index = require('../_shared/cjs/index-45bfb67b.js');
9
- var Surface = require('../_shared/cjs/Surface-6da0a78e.js');
5
+ var RadioGroup = require('../_shared/cjs/RadioGroup-81805ef9.js');
6
+ require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
7
+ require('react');
8
+ require('../_shared/cjs/FormControl-9aaddd54.js');
9
+ require('../_shared/cjs/index-45bfb67b.js');
10
10
  require('../_shared/cjs/BtIconAlert-637db790.js');
11
- require('../_shared/cjs/DisclosureMini-5af13d3c.js');
11
+ require('../_shared/cjs/Surface-6da0a78e.js');
12
+ require('../_shared/cjs/DisclosureMini-067e0319.js');
12
13
  require('../_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js');
13
14
  require('../_shared/cjs/Text-6f2827e6.js');
14
15
  require('../_shared/cjs/suffix-modifier-1ee2da04.js');
15
- require('../_shared/cjs/VerticalSpace-86f697e7.js');
16
16
 
17
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
17
 
19
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
20
18
 
21
- var RadioContext = React.createContext({});
22
- var Provider = RadioContext.Provider;
23
- var useRadioContext = function () {
24
- var context = React.useContext(RadioContext);
25
- return context;
26
- };
27
-
28
- /**
29
- * Radio Button component.
30
- */
31
- var RadioButton = React.forwardRef(function (_a, ref) {
32
- var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = filterDataAttrs.__rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
33
- var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
34
- var surface = React.useContext(Surface.Context).surface;
35
- var idLabel = "".concat(id, "-label");
36
- var checked = checkedValue === value ? true : false;
37
- return (React__default["default"].createElement("div", filterDataAttrs.__assign({ className: index.classNames({
38
- "arc-RadioButton": true,
39
- "arc-RadioButton--disabled": isDisabled || groupDisabled,
40
- "arc-RadioButton--small": size === "s",
41
- "arc-RadioButton--smallLabel": labelSize === "s",
42
- "arc-RadioButton--onDarkSurface": surface === "dark"
43
- }) }, filterDataAttrs.filterDataAttrs(props)),
44
- React__default["default"].createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
45
- 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 }),
46
- React__default["default"].createElement("span", null,
47
- label,
48
- helper && React__default["default"].createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
49
- });
50
-
51
- /**
52
- * Use `RadioGroup` to wrap and control radio buttons and apply default values
53
- */
54
- var RadioGroup = function (_a) {
55
- 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 = filterDataAttrs.__rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
56
- React.useEffect(function () {
57
- React__default["default"].Children.map(children, function (item) {
58
- if (item && item.type !== RadioButton) {
59
- throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
60
- }
61
- });
62
- }, [children]);
63
- return (React__default["default"].createElement(Provider, { value: {
64
- blurEvent: onBlur,
65
- changeEvent: onChange,
66
- groupDisabled: isDisabled,
67
- checkedValue: checkedValue,
68
- labelSize: labelSize,
69
- name: name,
70
- size: size
71
- } },
72
- React__default["default"].createElement("div", filterDataAttrs.__assign({ className: "arc-RadioGroup" }, filterDataAttrs.filterDataAttrs(props)),
73
- React__default["default"].createElement(FormControl.FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
74
- };
75
- RadioButton.displayName = "RadioGroup.RadioButton";
76
- RadioGroup.RadioButton = RadioButton;
77
-
78
- exports.RadioGroup = RadioGroup;
19
+ exports.RadioGroup = RadioGroup.RadioGroup;
@@ -1,85 +1 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { FormControlProps } from "../_shared/esm/FormControl-0744f93f";
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" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel"> {
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
+ export { RadioGroup } from "../_shared/esm/RadioGroup-1fd0f389";
@@ -1,70 +1,11 @@
1
- import { _ as __rest, a as __assign, f as filterDataAttrs } from '../_shared/esm/filter-data-attrs-afdb7d32.js';
2
- import React__default, { createContext, useContext, forwardRef, useEffect } from 'react';
3
- import { F as FormControl } from '../_shared/esm/FormControl-0744f93f.js';
4
- import { c as classNames } from '../_shared/esm/index-2ae58626.js';
5
- import { C as Context } from '../_shared/esm/Surface-bb100ef8.js';
1
+ export { R as RadioGroup } from '../_shared/esm/RadioGroup-1fd0f389.js';
2
+ import '../_shared/esm/filter-data-attrs-afdb7d32.js';
3
+ import 'react';
4
+ import '../_shared/esm/FormControl-5e3fdca3.js';
5
+ import '../_shared/esm/index-2ae58626.js';
6
6
  import '../_shared/esm/BtIconAlert-55a6ed5c.js';
7
- import '../_shared/esm/DisclosureMini-322fccc0.js';
7
+ import '../_shared/esm/Surface-bb100ef8.js';
8
+ import '../_shared/esm/DisclosureMini-022beae3.js';
8
9
  import '../_shared/esm/BtIconChevronDown2Px-782876e2.js';
9
10
  import '../_shared/esm/Text-00e9743b.js';
10
11
  import '../_shared/esm/suffix-modifier-7e640670.js';
11
- import '../_shared/esm/VerticalSpace-93980c9c.js';
12
-
13
- var RadioContext = createContext({});
14
- var Provider = RadioContext.Provider;
15
- var useRadioContext = function () {
16
- var context = useContext(RadioContext);
17
- return context;
18
- };
19
-
20
- /**
21
- * Radio Button component.
22
- */
23
- var RadioButton = forwardRef(function (_a, ref) {
24
- var helper = _a.helper, id = _a.id, isDisabled = _a.isDisabled, label = _a.label, value = _a.value, props = __rest(_a, ["helper", "id", "isDisabled", "label", "value"]);
25
- var _b = useRadioContext(), blurEvent = _b.blurEvent, changeEvent = _b.changeEvent, groupDisabled = _b.groupDisabled, checkedValue = _b.checkedValue, labelSize = _b.labelSize, name = _b.name, size = _b.size;
26
- var surface = useContext(Context).surface;
27
- var idLabel = "".concat(id, "-label");
28
- var checked = checkedValue === value ? true : false;
29
- return (React__default.createElement("div", __assign({ className: classNames({
30
- "arc-RadioButton": true,
31
- "arc-RadioButton--disabled": isDisabled || groupDisabled,
32
- "arc-RadioButton--small": size === "s",
33
- "arc-RadioButton--smallLabel": labelSize === "s",
34
- "arc-RadioButton--onDarkSurface": surface === "dark"
35
- }) }, filterDataAttrs(props)),
36
- React__default.createElement("label", { className: "arc-RadioButton-label", htmlFor: id, id: idLabel },
37
- React__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 }),
38
- React__default.createElement("span", null,
39
- label,
40
- helper && React__default.createElement("span", { className: "arc-RadioButton-helper" }, helper)))));
41
- });
42
-
43
- /**
44
- * Use `RadioGroup` to wrap and control radio buttons and apply default values
45
- */
46
- var RadioGroup = function (_a) {
47
- 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 = __rest(_a, ["children", "checkedValue", "isDisabled", "id", "helper", "label", "labelSize", "name", "onBlur", "onChange", "size"]);
48
- useEffect(function () {
49
- React__default.Children.map(children, function (item) {
50
- if (item && item.type !== RadioButton) {
51
- throw new Error("Illegal child passed to <RadioGroup />. Ensure to only use <RadioGroup.RadioButton />.");
52
- }
53
- });
54
- }, [children]);
55
- return (React__default.createElement(Provider, { value: {
56
- blurEvent: onBlur,
57
- changeEvent: onChange,
58
- groupDisabled: isDisabled,
59
- checkedValue: checkedValue,
60
- labelSize: labelSize,
61
- name: name,
62
- size: size
63
- } },
64
- React__default.createElement("div", __assign({ className: "arc-RadioGroup" }, filterDataAttrs(props)),
65
- React__default.createElement(FormControl, { elementType: "fieldset", label: label, labelSize: labelSize, helper: helper, id: id, requirementStatus: "not-applicable", helperUnderLabel: true }, children))));
66
- };
67
- RadioButton.displayName = "RadioGroup.RadioButton";
68
- RadioGroup.RadioButton = RadioButton;
69
-
70
- export { RadioGroup };
@@ -0,0 +1,25 @@
1
+ import { FC } from "react";
2
+ /**
3
+ * Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
4
+ */
5
+ declare const ScrollToTop: FC<ScrollToTopProps>;
6
+ interface ScrollToTopProps {
7
+ /**
8
+ * If true, the button will stick to the bottom right corner of the screen.
9
+ */
10
+ isFixed?: boolean;
11
+ /**
12
+ * Sets when the scroll button should appear. `always` will show the button all the time.
13
+ * `afterScroll` will show the button when the user has stopped scrolling and have passed the fold.
14
+ */
15
+ appear?: "always" | "afterScroll";
16
+ /**
17
+ * Z-index for the button. Used to fine tune the overlapping of other page elements.
18
+ */
19
+ zIndex?: number;
20
+ /**
21
+ * Button fill.
22
+ */
23
+ fill?: "solid" | "outlined";
24
+ }
25
+ export { ScrollToTop };
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var filterDataAttrs = require('../_shared/cjs/filter-data-attrs-a30dcf5f.js');
6
+ var index = require('../_shared/cjs/index-45bfb67b.js');
7
+ var React$1 = require('react');
8
+ var debounce = require('../_shared/cjs/debounce-506538c5.js');
9
+ var Icon = require('../_shared/cjs/Icon-9ae8dbe1.js');
10
+ require('../_shared/cjs/suffix-modifier-1ee2da04.js');
11
+ require('../_shared/cjs/Surface-6da0a78e.js');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
16
+
17
+ const React = React__default["default"];
18
+ const BtIconArrowAltUp = props =>
19
+ /*#__PURE__*/ React.createElement(
20
+ "svg",
21
+ Object.assign(
22
+ {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ viewBox: "0 0 32 32"
25
+ },
26
+ props
27
+ ),
28
+ /*#__PURE__*/ React.createElement("defs", null),
29
+ /*#__PURE__*/ React.createElement("path", {
30
+ d:
31
+ "M20.35352,13.14648,16,8.793l-4.35352,4.35352a.49995.49995,0,0,0,.707.707L15.5,10.707V22.5a.5.5,0,0,0,1,0V10.707l3.14648,3.14648a.49995.49995,0,0,0,.707-.707Z",
32
+ fill: "currentColor"
33
+ })
34
+ );
35
+ var BtIconArrowAltUp_2 = BtIconArrowAltUp;
36
+
37
+ /**
38
+ * Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
39
+ */
40
+ var ScrollToTop = function (_a) {
41
+ var _b = _a.appear, appear = _b === void 0 ? "always" : _b, _c = _a.isFixed, isFixed = _c === void 0 ? true : _c, _d = _a.fill, fill = _d === void 0 ? "solid" : _d, _e = _a.zIndex, zIndex = _e === void 0 ? 100 : _e, props = filterDataAttrs.__rest(_a, ["appear", "isFixed", "fill", "zIndex"]);
42
+ var _f = React$1.useState(false), hasScrolled = _f[0], setHasScrolled = _f[1];
43
+ React$1.useEffect(function () {
44
+ var handleScroll = debounce.debounce_1(function () {
45
+ setHasScrolled(window.scrollY > 0);
46
+ }, 100);
47
+ window.addEventListener("scroll", handleScroll);
48
+ return function () { return window.removeEventListener("scroll", handleScroll); };
49
+ });
50
+ var onClick = function () {
51
+ window.scrollTo({
52
+ top: 0,
53
+ behavior: "smooth"
54
+ });
55
+ };
56
+ return (React__default["default"].createElement("button", filterDataAttrs.__assign({ onClick: onClick, style: {
57
+ zIndex: zIndex
58
+ }, className: index.classNames("arc-ScrollToTop", "arc-ScrollToTop--".concat(fill), {
59
+ "arc-ScrollToTop--fixed": isFixed,
60
+ "arc-ScrollToTop--visible": appear === "always" || (appear === "afterScroll" && hasScrolled)
61
+ }) }, filterDataAttrs.filterDataAttrs(props)),
62
+ React__default["default"].createElement("div", { className: "arc-ScrollToTop-textWrapper" },
63
+ React__default["default"].createElement("span", { className: "arc-ScrollToTop-text" }, "Scroll to top")),
64
+ React__default["default"].createElement("span", { className: "arc-ScrollToTop-iconContainer" },
65
+ React__default["default"].createElement(Icon.Icon, { icon: BtIconArrowAltUp_2, size: 44 }))));
66
+ };
67
+
68
+ exports.ScrollToTop = ScrollToTop;
@@ -0,0 +1,25 @@
1
+ import { FC } from "react";
2
+ /**
3
+ * Use `ScrollToTop` to allow the user to scroll to the top of the page by clicking a button.
4
+ */
5
+ declare const ScrollToTop: FC<ScrollToTopProps>;
6
+ interface ScrollToTopProps {
7
+ /**
8
+ * If true, the button will stick to the bottom right corner of the screen.
9
+ */
10
+ isFixed?: boolean;
11
+ /**
12
+ * Sets when the scroll button should appear. `always` will show the button all the time.
13
+ * `afterScroll` will show the button when the user has stopped scrolling and have passed the fold.
14
+ */
15
+ appear?: "always" | "afterScroll";
16
+ /**
17
+ * Z-index for the button. Used to fine tune the overlapping of other page elements.
18
+ */
19
+ zIndex?: number;
20
+ /**
21
+ * Button fill.
22
+ */
23
+ fill?: "solid" | "outlined";
24
+ }
25
+ export { ScrollToTop };