@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.
- package/dist/Align/{index.d.ts → Align.cjs.d.ts} +0 -0
- package/dist/Align/Align.cjs.js +33 -0
- package/dist/Align/Align.esm.d.ts +25 -0
- package/dist/Align/{index.js → Align.esm.js} +3 -3
- package/dist/Align/package.json +7 -0
- package/dist/Base/{index.d.ts → Base.cjs.d.ts} +0 -0
- package/dist/Base/Base.cjs.js +23 -0
- package/dist/Base/Base.esm.d.ts +16 -0
- package/dist/Base/{index.js → Base.esm.js} +1 -1
- package/dist/Base/package.json +7 -0
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -0
- package/dist/BrandLogo/BrandLogo.cjs.js +14 -0
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -0
- package/dist/BrandLogo/BrandLogo.esm.js +6 -0
- package/dist/BrandLogo/package.json +7 -0
- package/dist/Breadcrumbs/{index.d.ts → Breadcrumbs.cjs.d.ts} +0 -0
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +650 -0
- package/dist/Breadcrumbs/Breadcrumbs.esm.d.ts +61 -0
- package/dist/Breadcrumbs/{index.js → Breadcrumbs.esm.js} +9 -9
- package/dist/Breadcrumbs/package.json +7 -0
- package/dist/Button/Button.cjs.d.ts +1 -0
- package/dist/Button/Button.cjs.js +16 -0
- package/dist/Button/Button.esm.d.ts +1 -0
- package/dist/Button/Button.esm.js +8 -0
- package/dist/Button/package.json +7 -0
- package/dist/Card/{index.d.ts → Card.cjs.d.ts} +0 -0
- package/dist/Card/Card.cjs.js +126 -0
- package/dist/Card/Card.esm.d.ts +130 -0
- package/dist/Card/{index.js → Card.esm.js} +10 -10
- package/dist/Card/package.json +7 -0
- package/dist/Checkbox/{index.d.ts → Checkbox.cjs.d.ts} +0 -0
- package/dist/Checkbox/Checkbox.cjs.js +78 -0
- package/dist/Checkbox/Checkbox.esm.d.ts +59 -0
- package/dist/Checkbox/Checkbox.esm.js +70 -0
- package/dist/Checkbox/package.json +7 -0
- package/dist/Clock/{index.d.ts → Clock.cjs.d.ts} +0 -0
- package/dist/Clock/Clock.cjs.js +43 -0
- package/dist/Clock/Clock.esm.d.ts +15 -0
- package/dist/Clock/{index.js → Clock.esm.js} +1 -1
- package/dist/Clock/package.json +7 -0
- package/dist/Columns/{index.d.ts → Columns.cjs.d.ts} +0 -0
- package/dist/Columns/Columns.cjs.js +59 -0
- package/dist/Columns/Columns.esm.d.ts +76 -0
- package/dist/Columns/{index.js → Columns.esm.js} +3 -3
- package/dist/Columns/package.json +7 -0
- package/dist/Curve/Curve.cjs.d.ts +1 -0
- package/dist/Curve/Curve.cjs.js +13 -0
- package/dist/Curve/Curve.esm.d.ts +1 -0
- package/dist/Curve/Curve.esm.js +5 -0
- package/dist/Curve/package.json +7 -0
- package/dist/Disclosure/{index.d.ts → Disclosure.cjs.d.ts} +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +36 -0
- package/dist/Disclosure/Disclosure.esm.d.ts +31 -0
- package/dist/Disclosure/{index.js → Disclosure.esm.js} +8 -5
- package/dist/Disclosure/package.json +7 -0
- package/dist/Elevation/{index.d.ts → Elevation.cjs.d.ts} +0 -0
- package/dist/Elevation/Elevation.cjs.js +25 -0
- package/dist/Elevation/Elevation.esm.d.ts +16 -0
- package/dist/Elevation/{index.js → Elevation.esm.js} +2 -2
- package/dist/Elevation/package.json +7 -0
- package/dist/FormControl/FormControl.cjs.d.ts +1 -0
- package/dist/FormControl/FormControl.cjs.js +14 -0
- package/dist/FormControl/FormControl.esm.d.ts +1 -0
- package/dist/FormControl/FormControl.esm.js +5 -0
- package/dist/FormControl/package.json +7 -0
- package/dist/Group/{index.d.ts → Group.cjs.d.ts} +0 -0
- package/dist/Group/Group.cjs.js +50 -0
- package/dist/Group/Group.esm.d.ts +46 -0
- package/dist/Group/{index.js → Group.esm.js} +3 -3
- package/dist/Group/package.json +7 -0
- package/dist/Heading/Heading.cjs.d.ts +1 -0
- package/dist/Heading/Heading.cjs.js +14 -0
- package/dist/Heading/Heading.esm.d.ts +1 -0
- package/dist/Heading/Heading.esm.js +6 -0
- package/dist/Heading/package.json +7 -0
- package/dist/Icon/Icon.cjs.d.ts +1 -0
- package/dist/Icon/Icon.cjs.js +14 -0
- package/dist/Icon/Icon.esm.d.ts +1 -0
- package/dist/Icon/Icon.esm.js +6 -0
- package/dist/Icon/package.json +7 -0
- package/dist/Image/Image.cjs.d.ts +1 -0
- package/dist/Image/Image.cjs.js +13 -0
- package/dist/Image/Image.esm.d.ts +1 -0
- package/dist/Image/Image.esm.js +5 -0
- package/dist/Image/package.json +7 -0
- package/dist/Markup/{index.d.ts → Markup.cjs.d.ts} +0 -0
- package/dist/Markup/Markup.cjs.js +27 -0
- package/dist/Markup/Markup.esm.d.ts +16 -0
- package/dist/Markup/{index.js → Markup.esm.js} +3 -3
- package/dist/Markup/package.json +7 -0
- package/dist/Poster/{index.d.ts → Poster.cjs.d.ts} +2 -2
- package/dist/Poster/Poster.cjs.js +52 -0
- package/dist/Poster/Poster.esm.d.ts +81 -0
- package/dist/Poster/{index.js → Poster.esm.js} +5 -5
- package/dist/Poster/package.json +7 -0
- package/dist/RadioGroup/{index.d.ts → RadioGroup.cjs.d.ts} +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +72 -0
- package/dist/RadioGroup/RadioGroup.esm.d.ts +85 -0
- package/dist/RadioGroup/{index.js → RadioGroup.esm.js} +4 -4
- package/dist/RadioGroup/package.json +7 -0
- package/dist/Rule/{index.d.ts → Rule.cjs.d.ts} +0 -0
- package/dist/Rule/Rule.cjs.js +25 -0
- package/dist/Rule/Rule.esm.d.ts +8 -0
- package/dist/Rule/{index.js → Rule.esm.js} +3 -3
- package/dist/Rule/package.json +7 -0
- package/dist/Section/Section.cjs.d.ts +1 -0
- package/dist/Section/Section.cjs.js +12 -0
- package/dist/Section/Section.esm.d.ts +1 -0
- package/dist/Section/Section.esm.js +4 -0
- package/dist/Section/package.json +7 -0
- package/dist/SiteFooter/{index.d.ts → SiteFooter.cjs.d.ts} +0 -0
- package/dist/SiteFooter/SiteFooter.cjs.js +99 -0
- package/dist/SiteFooter/SiteFooter.esm.d.ts +64 -0
- package/dist/SiteFooter/{index.js → SiteFooter.esm.js} +12 -10
- package/dist/SiteFooter/package.json +7 -0
- package/dist/SiteHeader/{index.d.ts → SiteHeader.cjs.d.ts} +1 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +669 -0
- package/dist/SiteHeader/SiteHeader.esm.d.ts +252 -0
- package/dist/SiteHeader/{index.js → SiteHeader.esm.js} +39 -17
- package/dist/SiteHeader/package.json +7 -0
- package/dist/Surface/{index.d.ts → Surface.cjs.d.ts} +1 -1
- package/dist/Surface/Surface.cjs.js +15 -0
- package/dist/Surface/Surface.esm.d.ts +1 -0
- package/dist/Surface/Surface.esm.js +4 -0
- package/dist/Surface/package.json +7 -0
- package/dist/Text/Text.cjs.d.ts +1 -0
- package/dist/Text/Text.cjs.js +14 -0
- package/dist/Text/Text.esm.d.ts +1 -0
- package/dist/Text/Text.esm.js +6 -0
- package/dist/Text/package.json +7 -0
- package/dist/TextInput/{index.d.ts → TextInput.cjs.d.ts} +1 -1
- package/dist/TextInput/TextInput.cjs.js +64 -0
- package/dist/TextInput/TextInput.esm.d.ts +71 -0
- package/dist/TextInput/{index.js → TextInput.esm.js} +4 -4
- package/dist/TextInput/package.json +7 -0
- package/dist/UniversalHeader/{index.d.ts → UniversalHeader.cjs.d.ts} +0 -0
- package/dist/UniversalHeader/UniversalHeader.cjs.js +38 -0
- package/dist/UniversalHeader/UniversalHeader.esm.d.ts +26 -0
- package/dist/UniversalHeader/{index.js → UniversalHeader.esm.js} +3 -3
- package/dist/UniversalHeader/package.json +7 -0
- package/dist/VerticalSpace/{index.d.ts → VerticalSpace.cjs.d.ts} +0 -0
- package/dist/VerticalSpace/VerticalSpace.cjs.js +27 -0
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +18 -0
- package/dist/VerticalSpace/{index.js → VerticalSpace.esm.js} +2 -2
- package/dist/VerticalSpace/package.json +7 -0
- package/dist/VisuallyHidden/{index.d.ts → VisuallyHidden.cjs.d.ts} +0 -0
- package/dist/VisuallyHidden/VisuallyHidden.cjs.js +19 -0
- package/dist/VisuallyHidden/VisuallyHidden.esm.d.ts +12 -0
- package/dist/VisuallyHidden/{index.js → VisuallyHidden.esm.js} +0 -0
- package/dist/VisuallyHidden/package.json +7 -0
- package/dist/_shared/{BrandLogo-6cc8202e.d.ts → cjs/BrandLogo-3c6102ef.d.ts} +0 -0
- package/dist/_shared/cjs/BrandLogo-3c6102ef.js +31 -0
- package/dist/_shared/cjs/BtIconChevronDown2Px-8fb4e2eb.js +29 -0
- package/dist/_shared/cjs/BtIconChevronRight2Px-a8e40136.js +50 -0
- package/dist/_shared/cjs/BtIconChevronRightMid-5a38d855.js +31 -0
- package/dist/_shared/{Button-2fcbd4ed.d.ts → cjs/Button-b3a69953.d.ts} +3 -3
- package/dist/_shared/cjs/Button-b3a69953.js +80 -0
- package/dist/_shared/{Curve-5f476d0b.d.ts → cjs/Curve-e72ce25b.d.ts} +1 -1
- package/dist/_shared/cjs/Curve-e72ce25b.js +30 -0
- package/dist/_shared/{FormControl-9dc9ecc3.d.ts → cjs/FormControl-a1b7421b.d.ts} +0 -0
- package/dist/_shared/cjs/FormControl-a1b7421b.js +115 -0
- package/dist/_shared/{Heading-8c640dd1.d.ts → cjs/Heading-cc38c3ec.d.ts} +0 -0
- package/dist/_shared/cjs/Heading-cc38c3ec.js +41 -0
- package/dist/_shared/{Icon-b053f03d.d.ts → cjs/Icon-719d13d4.d.ts} +6 -6
- package/dist/_shared/cjs/Icon-719d13d4.js +52 -0
- package/dist/_shared/{Image-a3225049.d.ts → cjs/Image-fe760a06.d.ts} +0 -0
- package/dist/_shared/cjs/Image-fe760a06.js +45 -0
- package/dist/_shared/{Section-927988cb.d.ts → cjs/Section-780f2377.d.ts} +0 -0
- package/dist/_shared/cjs/Section-780f2377.js +23 -0
- package/dist/_shared/{Surface-3fe44a2a.d.ts → cjs/Surface-d6b8010e.d.ts} +0 -0
- package/dist/_shared/cjs/Surface-d6b8010e.js +58 -0
- package/dist/_shared/{Text-1c43d82b.d.ts → cjs/Text-1d3844be.d.ts} +0 -0
- package/dist/_shared/cjs/Text-1d3844be.js +32 -0
- package/dist/_shared/cjs/arc-icon-17594b2f.d.ts +4 -0
- package/dist/_shared/{handle-link-click-35e09d0c.d.ts → cjs/handle-link-click-17a44cf4.d.ts} +0 -0
- package/dist/_shared/cjs/handle-link-click-17a44cf4.js +15 -0
- package/dist/_shared/cjs/index-45bfb67b.js +63 -0
- package/dist/_shared/{index-e3c83626.d.ts → cjs/index-78b35bc1.d.ts} +0 -0
- package/dist/_shared/cjs/index-78b35bc1.js +215 -0
- package/dist/_shared/{index-9483ad5f.d.ts → cjs/index-9483ad5f.d.ts} +2 -2
- package/dist/_shared/cjs/index-c81c9401.d.ts +4 -0
- package/dist/_shared/{use-media-query-f11805d4.d.ts → cjs/index.es-77def0c9.d.ts} +0 -0
- package/dist/_shared/cjs/index.es-77def0c9.js +50 -0
- package/dist/_shared/{suffix-modifier-2a93822c.d.ts → cjs/suffix-modifier-edf7851e.d.ts} +0 -0
- package/dist/_shared/cjs/suffix-modifier-edf7851e.js +19 -0
- package/dist/_shared/esm/BrandLogo-ea3dd0e6.d.ts +26 -0
- package/dist/_shared/{BrandLogo-6cc8202e.js → esm/BrandLogo-ea3dd0e6.js} +4 -4
- package/dist/_shared/esm/BtIconChevronDown2Px-4abd079b.js +23 -0
- package/dist/_shared/esm/BtIconChevronRight2Px-a5cc1d05.js +43 -0
- package/dist/_shared/esm/BtIconChevronRightMid-386cf272.js +25 -0
- package/dist/_shared/esm/Button-5ff56a7b.d.ts +98 -0
- package/dist/_shared/esm/Button-5ff56a7b.js +74 -0
- package/dist/_shared/esm/Curve-cfdca379.d.ts +32 -0
- package/dist/_shared/{Curve-5f476d0b.js → esm/Curve-cfdca379.js} +3 -3
- package/dist/_shared/esm/FormControl-feedc495.d.ts +70 -0
- package/dist/_shared/{FormControl-9dc9ecc3.js → esm/FormControl-feedc495.js} +43 -11
- package/dist/_shared/esm/Heading-183be76c.d.ts +46 -0
- package/dist/_shared/{Heading-8c640dd1.js → esm/Heading-183be76c.js} +4 -4
- package/dist/_shared/esm/Icon-76d0d8c0.d.ts +34 -0
- package/dist/_shared/esm/Icon-76d0d8c0.js +46 -0
- package/dist/_shared/esm/Image-7e4948f6.d.ts +94 -0
- package/dist/_shared/{Image-a3225049.js → esm/Image-7e4948f6.js} +3 -3
- package/dist/_shared/esm/Section-f1256c87.d.ts +21 -0
- package/dist/_shared/{Section-927988cb.js → esm/Section-f1256c87.js} +2 -2
- package/dist/_shared/esm/Surface-d515d212.d.ts +50 -0
- package/dist/_shared/{Surface-3fe44a2a.js → esm/Surface-d515d212.js} +2 -2
- package/dist/_shared/esm/Text-d8988620.d.ts +34 -0
- package/dist/_shared/{Text-1c43d82b.js → esm/Text-d8988620.js} +4 -4
- package/dist/_shared/esm/arc-icon-17594b2f.d.ts +4 -0
- package/dist/_shared/esm/handle-link-click-f64f55a2.d.ts +7 -0
- package/dist/_shared/{handle-link-click-35e09d0c.js → esm/handle-link-click-f64f55a2.js} +0 -0
- package/dist/_shared/esm/index-229fc864.d.ts +2 -0
- package/dist/_shared/{index-e3c83626.js → esm/index-229fc864.js} +0 -0
- package/dist/_shared/{index-56d9df62.js → esm/index-2ae58626.js} +0 -0
- package/dist/_shared/esm/index-9483ad5f.d.ts +14 -0
- package/dist/_shared/esm/index-c81c9401.d.ts +4 -0
- package/dist/_shared/esm/index.es-00cb3bcb.d.ts +19 -0
- package/dist/_shared/{use-media-query-f11805d4.js → esm/index.es-00cb3bcb.js} +8 -1
- package/dist/_shared/esm/suffix-modifier-f5e28822.d.ts +10 -0
- package/dist/_shared/{suffix-modifier-2a93822c.js → esm/suffix-modifier-f5e28822.js} +1 -1
- package/dist/index.es.js +454 -528
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +311 -385
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Button/Button.d.ts +3 -3
- package/dist/types/components/Icon/Icon.d.ts +6 -6
- package/dist/types/types/arc-icon.d.ts +2 -0
- package/package.json +4 -3
- package/dist/BrandLogo/index.d.ts +0 -1
- package/dist/BrandLogo/index.js +0 -6
- package/dist/Button/index.d.ts +0 -1
- package/dist/Button/index.js +0 -8
- package/dist/Checkbox/index.js +0 -46
- package/dist/Curve/index.d.ts +0 -1
- package/dist/Curve/index.js +0 -5
- package/dist/FormControl/index.d.ts +0 -1
- package/dist/FormControl/index.js +0 -5
- package/dist/Heading/index.d.ts +0 -1
- package/dist/Heading/index.js +0 -6
- package/dist/Icon/index.d.ts +0 -1
- package/dist/Icon/index.js +0 -7
- package/dist/Image/index.d.ts +0 -1
- package/dist/Image/index.js +0 -5
- package/dist/Section/index.d.ts +0 -1
- package/dist/Section/index.js +0 -4
- package/dist/Surface/index.js +0 -4
- package/dist/Text/index.d.ts +0 -1
- package/dist/Text/index.js +0 -6
- package/dist/_shared/Button-2fcbd4ed.js +0 -51
- package/dist/_shared/Icon-b053f03d.js +0 -27
- package/dist/_shared/index-c81c9401.d.ts +0 -4
- package/dist/_shared/index.es-ff960629.js +0 -286
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { anchorPoints } from "./index-9483ad5f";
|
|
3
|
+
/**
|
|
4
|
+
* Use `Image` to render a single image, or set of images, with support for
|
|
5
|
+
* image fitting and art direction.
|
|
6
|
+
*/
|
|
7
|
+
declare const Image: FC<ImageProps> & {
|
|
8
|
+
Source: typeof ImageSource;
|
|
9
|
+
};
|
|
10
|
+
declare const ImageSource: FC<ImageSourceProps>;
|
|
11
|
+
interface ImageSourceProps {
|
|
12
|
+
/**
|
|
13
|
+
* The intrinsic height of the ImageSource, in pixels
|
|
14
|
+
*/
|
|
15
|
+
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Media condition (similar to a media query) that the user agent will evaluate for each ImageSource element. Same format as [media](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-media), i.e. `(min-width: 600px)`
|
|
18
|
+
*/
|
|
19
|
+
media?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-sizes) attribute. Only required if srcSet is switching widths.
|
|
22
|
+
*/
|
|
23
|
+
sizes?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the ImageSource element. Same format as [srcSet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset), i.e. `my-image-200.png 200w, my-image-200.png 200w`.
|
|
26
|
+
*/
|
|
27
|
+
srcSet: string;
|
|
28
|
+
/**
|
|
29
|
+
* MIME type for the resource URL(s) in the ImageSource element's srcset attribute. If the user agent does not support the given type, the element is skipped. Same format as [type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-type), i.e. `image/jpeg`.
|
|
30
|
+
*/
|
|
31
|
+
type?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The intrinsic width of the ImageSource, in pixels
|
|
34
|
+
*/
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
37
|
+
declare const fitOptions: readonly ["cover"];
|
|
38
|
+
declare const loadingOptions: readonly ["eager", "lazy"];
|
|
39
|
+
declare const overlayOptions: readonly ["scrimBottomDark"];
|
|
40
|
+
interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
41
|
+
/**
|
|
42
|
+
* Alternative text for the Image, shown if the image cannot be displayed.
|
|
43
|
+
*/
|
|
44
|
+
alt?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Anchor point for the Image if using fit="cover".
|
|
47
|
+
*/
|
|
48
|
+
anchor?: typeof anchorPoints[number];
|
|
49
|
+
/**
|
|
50
|
+
* Optionally enable HTML <picture> functionality by passing `Image.Source`
|
|
51
|
+
* components as children.
|
|
52
|
+
*/
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Fallback hexadecimal fill color. The intent is to increase perceived loading speed. Do not use on images with transparency. Requires that an explicit width and height be set for the image.
|
|
56
|
+
*/
|
|
57
|
+
fillColor?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Fit of the Image.
|
|
60
|
+
*/
|
|
61
|
+
fit?: typeof fitOptions[number];
|
|
62
|
+
/**
|
|
63
|
+
* Height dimension of the Image, in pixels. If fit="cover", the height in which
|
|
64
|
+
* to fit the Image. Otherwise, the intrinsic height of the Image element.
|
|
65
|
+
*/
|
|
66
|
+
height?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Loading behaviour of the Image.
|
|
69
|
+
*/
|
|
70
|
+
loading?: typeof loadingOptions[number];
|
|
71
|
+
/**
|
|
72
|
+
* Apply an overlay to the Image, e.g. a scrim gradient for text legibility.
|
|
73
|
+
* Should not be used if the image has a rasterized overlay.
|
|
74
|
+
*/
|
|
75
|
+
overlay?: typeof overlayOptions[number];
|
|
76
|
+
/**
|
|
77
|
+
* The HTML [sizes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#Example_4_Using_the_srcset_and_sizes_attributes) attribute. Only required if srcSet is switching widths. Ignored if `children` (<source> elements) are present.
|
|
78
|
+
*/
|
|
79
|
+
sizes?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Image `src`. Used if srcSet is not defined, or as a fallback.
|
|
82
|
+
*/
|
|
83
|
+
src: string;
|
|
84
|
+
/**
|
|
85
|
+
* A comma-separated list indicating a set of possible sources for the user agent to use for different screen sizes for the 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`. Ignored if `children` (<source> elements) are present.
|
|
86
|
+
*/
|
|
87
|
+
srcSet?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Width dimension of the Image, in pixels. If fit="cover", the width in which
|
|
90
|
+
* to fit the Image. Otherwise, the intrinsic width of the Image element.
|
|
91
|
+
*/
|
|
92
|
+
width?: number;
|
|
93
|
+
}
|
|
94
|
+
export { Image, ImageSource, ImageSourceProps, fitOptions, loadingOptions, overlayOptions, ImageProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
2
|
-
import { c as classNames } from './index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
|
|
2
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
3
3
|
import React, { useEffect } from 'react';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Image` to render a single image, or set of images, with support for
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `Section` to compose content into vertical page layouts.
|
|
4
|
+
*/
|
|
5
|
+
declare const Section: FC<SectionProps>;
|
|
6
|
+
interface SectionProps {
|
|
7
|
+
/**
|
|
8
|
+
* Content to display in the Section.
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Should the Section be visible for debugging and documentation
|
|
13
|
+
* purposes?
|
|
14
|
+
*/
|
|
15
|
+
isDebugVisible?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Should the width of this Section be unconstrained (filling the viewport)?
|
|
18
|
+
*/
|
|
19
|
+
isFullWidth?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export { Section, SectionProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
2
|
-
import { c as classNames } from './index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
|
|
2
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, HTMLAttributes } from "react";
|
|
4
|
+
type SurfaceBackground = "light" | "dark";
|
|
5
|
+
declare const Context: React.Context<{
|
|
6
|
+
surface: SurfaceBackground;
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Use `Surface` to compose content using the Arc system.
|
|
10
|
+
*/
|
|
11
|
+
declare const Surface: FC<SurfaceProps>;
|
|
12
|
+
declare const backgrounds: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
13
|
+
declare const backgroundsBT: readonly ["black", "brand", "brand-flat", "dark", "darker", "coral", "turquoise", "light", "lighter", "white"];
|
|
14
|
+
type SurfacePadding = "8" | "12" | "16" | "24" | "32" | "48" | "64";
|
|
15
|
+
interface SurfaceProps extends HTMLAttributes<HTMLElement> {
|
|
16
|
+
/**
|
|
17
|
+
* Background colour of the Surface. Contents will change colour to meet
|
|
18
|
+
* accessibility requirements.
|
|
19
|
+
*/
|
|
20
|
+
background?: typeof backgrounds[number];
|
|
21
|
+
/**
|
|
22
|
+
* Content to display on the Surface.
|
|
23
|
+
*/
|
|
24
|
+
children?: any;
|
|
25
|
+
/**
|
|
26
|
+
* Should the Surface grow to take up all the available vertical space? Most
|
|
27
|
+
* of the time this should not be required, but useful to fix issues in
|
|
28
|
+
* certain layout combinations.
|
|
29
|
+
*/
|
|
30
|
+
growVertically?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
33
|
+
*
|
|
34
|
+
* Size of the padding applied to all sides of the Surface. Use to prevent margin collapsing issues.
|
|
35
|
+
*/
|
|
36
|
+
padding?: SurfacePadding;
|
|
37
|
+
/**
|
|
38
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
39
|
+
*
|
|
40
|
+
* Size of the horizontal padding applied to the left and right of the Surface.
|
|
41
|
+
*/
|
|
42
|
+
paddingHorizontal?: SurfacePadding;
|
|
43
|
+
/**
|
|
44
|
+
* _Caution: This is an experimental property and may be removed at any time._
|
|
45
|
+
*
|
|
46
|
+
* Size of the vertical padding applied to the top and bottom of the Surface.
|
|
47
|
+
*/
|
|
48
|
+
paddingVertical?: SurfacePadding;
|
|
49
|
+
}
|
|
50
|
+
export { Surface, backgrounds, backgroundsBT, SurfacePadding, SurfaceProps, Context as SurfaceContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as __spreadArray, _ as __rest, a as __assign, c as camelCase, f as filterDataAttrs } from './index-
|
|
2
|
-
import { c as classNames } from './index-
|
|
1
|
+
import { b as __spreadArray, _ as __rest, a as __assign, c as camelCase, f as filterDataAttrs } from './index-229fc864.js';
|
|
2
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
3
3
|
import React, { createContext } from 'react';
|
|
4
4
|
|
|
5
5
|
var defaultContext = { surface: "light" };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `Text` to display text.
|
|
4
|
+
*/
|
|
5
|
+
declare const Text: FC<TextProps>;
|
|
6
|
+
type Tone = "default" | "supporting" | "muted";
|
|
7
|
+
type TextSize = "xs" | "s" | "m" | "l";
|
|
8
|
+
interface TextProps {
|
|
9
|
+
/**
|
|
10
|
+
* Alignment of the Text.
|
|
11
|
+
*/
|
|
12
|
+
align?: "left" | "center" | "right";
|
|
13
|
+
/**
|
|
14
|
+
* Text and inline markup to display.
|
|
15
|
+
*/
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Should the Text component be styled as an inline element?
|
|
19
|
+
*/
|
|
20
|
+
isInline?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Should the Text width be constrained to a typographic measure?
|
|
23
|
+
*/
|
|
24
|
+
isMeasured?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Typographic Text size.
|
|
27
|
+
*/
|
|
28
|
+
size?: TextSize;
|
|
29
|
+
/**
|
|
30
|
+
* Visual emphasis of the Text.
|
|
31
|
+
*/
|
|
32
|
+
tone?: Tone;
|
|
33
|
+
}
|
|
34
|
+
export { Text, Tone, TextSize, TextProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
2
|
-
import { c as classNames } from './index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
|
|
2
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
5
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
|
|
5
|
+
import { C as Context } from './Surface-d515d212.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Use `Text` to display text.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MouseEvent } from "react";
|
|
2
|
+
interface IHandleLinkClick {
|
|
3
|
+
handler?: () => void;
|
|
4
|
+
preventDefault?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const handleLinkClick: ({ handler, preventDefault }: IHandleLinkClick) => (e: MouseEvent<HTMLAnchorElement>) => void;
|
|
7
|
+
export { handleLinkClick };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef MediaQueryOutputs
|
|
3
|
+
* @param {boolean} matches - does the document match the media query?
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Handle with care!
|
|
7
|
+
*
|
|
8
|
+
* If you need to change something in the browser based on @media query, you
|
|
9
|
+
* probably don’t need this hook. Use CSS media queries instead.
|
|
10
|
+
*
|
|
11
|
+
* Sometimes UI requirements are not achievable with CSS media queries alone. In
|
|
12
|
+
* these rare cases, use this hook to make media query matches available
|
|
13
|
+
* to React JavaScript code.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} mediaQuery - the media query to parse
|
|
16
|
+
* @returns {MediaQueryOutputs}
|
|
17
|
+
*/
|
|
18
|
+
declare const useMediaQuery: (mediaQuery: string) => boolean;
|
|
19
|
+
export { useMediaQuery as default };
|
|
@@ -36,4 +36,11 @@ var useMediaQuery = function (mediaQuery) {
|
|
|
36
36
|
return matches;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Do not edit directly
|
|
41
|
+
* Generated file
|
|
42
|
+
*/
|
|
43
|
+
var ArcBreakpointM = 768;
|
|
44
|
+
var ArcBreakpointL = 1024;
|
|
45
|
+
|
|
46
|
+
export { ArcBreakpointM as A, ArcBreakpointL as a, useMediaQuery as u };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Suffixes a modifier value onto the end of a className, converting it to
|
|
3
|
+
* pascal case. i.e. turns suffixModifier("MyComponent--display", display)
|
|
4
|
+
* returns MyComponent--displayBlock.
|
|
5
|
+
*
|
|
6
|
+
* @param rootClassName The root className to append the suffix onto
|
|
7
|
+
* @param suffix The suffix to convert into pascal case.
|
|
8
|
+
*/
|
|
9
|
+
declare const suffixModifier: (rootClassName: string, suffix: string) => string;
|
|
10
|
+
export { suffixModifier };
|