@arc-ui/components 10.8.0 → 10.8.1
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} +7 -7
- 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} +9 -9
- 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 +54 -0
- package/dist/Checkbox/Checkbox.esm.d.ts +59 -0
- package/dist/Checkbox/{index.js → Checkbox.esm.js} +4 -4
- 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 +33 -0
- package/dist/Disclosure/Disclosure.esm.d.ts +31 -0
- package/dist/Disclosure/{index.js → Disclosure.esm.js} +5 -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 +15 -0
- package/dist/Icon/Icon.esm.d.ts +1 -0
- package/dist/Icon/Icon.esm.js +7 -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 +97 -0
- package/dist/SiteFooter/SiteFooter.esm.d.ts +64 -0
- package/dist/SiteFooter/{index.js → SiteFooter.esm.js} +10 -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 +647 -0
- package/dist/SiteHeader/SiteHeader.esm.d.ts +252 -0
- package/dist/SiteHeader/{index.js → SiteHeader.esm.js} +11 -11
- 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/{Button-2fcbd4ed.d.ts → cjs/Button-1743b3ec.d.ts} +0 -0
- package/dist/_shared/cjs/Button-1743b3ec.js +57 -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-7d8e10fa.d.ts} +0 -0
- package/dist/_shared/cjs/FormControl-7d8e10fa.js +82 -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-bb5a5fd1.d.ts} +0 -0
- package/dist/_shared/cjs/Icon-bb5a5fd1.js +33 -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/{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/cjs/index.es-f590caaf.js +290 -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/{use-media-query-f11805d4.d.ts → cjs/use-media-query-75d1bbae.d.ts} +0 -0
- package/dist/_shared/cjs/use-media-query-75d1bbae.js +41 -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/Button-d59c31a2.d.ts +98 -0
- package/dist/_shared/{Button-2fcbd4ed.js → esm/Button-d59c31a2.js} +5 -5
- 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-33194106.d.ts +70 -0
- package/dist/_shared/{FormControl-9dc9ecc3.js → esm/FormControl-33194106.js} +3 -3
- 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-2fd92daa.d.ts +34 -0
- package/dist/_shared/{Icon-b053f03d.js → esm/Icon-2fd92daa.js} +5 -5
- 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/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/{index.es-ff960629.js → esm/index.es-42f84e2d.js} +0 -0
- 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/_shared/esm/use-media-query-38faed7f.d.ts +19 -0
- package/dist/_shared/{use-media-query-f11805d4.js → esm/use-media-query-38faed7f.js} +0 -0
- package/package.json +3 -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/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/index-c81c9401.d.ts +0 -4
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { icons } from "@arc-ui/tokens";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { FC } from "react";
|
|
5
|
+
type ElementUnion = HTMLButtonElement | HTMLAnchorElement;
|
|
6
|
+
type Ref = React.Ref<ElementUnion> | null;
|
|
7
|
+
/**
|
|
8
|
+
* Use `Button` to allow users to take actions with clicks and taps.
|
|
9
|
+
*/
|
|
10
|
+
declare const Button: FC<ButtonProps>;
|
|
11
|
+
interface ButtonIconProps {
|
|
12
|
+
/**
|
|
13
|
+
* Icon variant.
|
|
14
|
+
*/
|
|
15
|
+
icon?: typeof icons[number];
|
|
16
|
+
/**
|
|
17
|
+
* Should the icon be a default chevron?
|
|
18
|
+
*/
|
|
19
|
+
isChevron?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Should the icon be positioned before button text?
|
|
22
|
+
*/
|
|
23
|
+
isBeforeText?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface ButtonElementProps {
|
|
26
|
+
/**
|
|
27
|
+
* Default behavior of the Button element. If not provided, 'submit' will
|
|
28
|
+
* be inferred. Type 'reset' deliberately excluded.
|
|
29
|
+
*/
|
|
30
|
+
type?: "button" | "submit";
|
|
31
|
+
}
|
|
32
|
+
interface LinkElementProps {
|
|
33
|
+
/**
|
|
34
|
+
* URL to link to if Button elementType is 'a'.
|
|
35
|
+
*/
|
|
36
|
+
href?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Target window for the Button href URL.
|
|
39
|
+
*/
|
|
40
|
+
target?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Relationship between the Button href URL and the current page. See
|
|
43
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel).
|
|
44
|
+
*/
|
|
45
|
+
rel?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ButtonProps extends ButtonElementProps, LinkElementProps {
|
|
48
|
+
/**
|
|
49
|
+
* Text to override `label` with additional, more precise information
|
|
50
|
+
* specifically for screen reader users.
|
|
51
|
+
*/
|
|
52
|
+
ariaLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Button fill.
|
|
55
|
+
*/
|
|
56
|
+
fill?: "solid" | "outlined" | "flat";
|
|
57
|
+
/**
|
|
58
|
+
* Button icon variant.
|
|
59
|
+
*/
|
|
60
|
+
icon?: typeof icons[number];
|
|
61
|
+
/**
|
|
62
|
+
* How should a Button icon be displayed?
|
|
63
|
+
*/
|
|
64
|
+
iconPosition?: "afterText" | "beforeText" | "iconOnly";
|
|
65
|
+
/**
|
|
66
|
+
* HTML ID for the Button
|
|
67
|
+
*/
|
|
68
|
+
id?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Should the Button be disabled?
|
|
71
|
+
*/
|
|
72
|
+
isDisabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Should the Button’s CSS display property be set to block?
|
|
75
|
+
*/
|
|
76
|
+
isDisplayBlock?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Should the Button take up the full width of its container?
|
|
79
|
+
*/
|
|
80
|
+
isFullWidth?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Button text.
|
|
83
|
+
*/
|
|
84
|
+
label: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional click handler for the Button.
|
|
87
|
+
*/
|
|
88
|
+
onClick?: () => void;
|
|
89
|
+
/**
|
|
90
|
+
* Optional property to provide component Ref
|
|
91
|
+
*/
|
|
92
|
+
ref?: Ref;
|
|
93
|
+
/**
|
|
94
|
+
* Optional supporting text for the Button.
|
|
95
|
+
*/
|
|
96
|
+
supportingText?: string;
|
|
97
|
+
}
|
|
98
|
+
export { ElementUnion, Ref, Button, ButtonIconProps, ButtonProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
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, { forwardRef, useContext } from 'react';
|
|
4
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
6
|
-
import { C as Context } from './Surface-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
|
|
5
|
+
import { I as Icon } from './Icon-2fd92daa.js';
|
|
6
|
+
import { C as Context } from './Surface-d515d212.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Use `Button` to allow users to take actions with clicks and taps.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { backgroundsBT } from "../../Surface/Surface.esm";
|
|
3
|
+
/**
|
|
4
|
+
* Use `Curve` sparingly to soften edges and create a more natural, less rigid
|
|
5
|
+
* look and feel.
|
|
6
|
+
*/
|
|
7
|
+
declare const Curve: FC<CurveProps>;
|
|
8
|
+
declare const sizes: readonly ["s", "m", "l"];
|
|
9
|
+
declare const positions: readonly ["bottom", "bottomLeft", "bottomRight", "top", "topLeft", "topRight"];
|
|
10
|
+
interface CurveProps {
|
|
11
|
+
/**
|
|
12
|
+
* Bottom color of the Curve. Shares values with Surface.
|
|
13
|
+
*/
|
|
14
|
+
bottomColor?: typeof backgroundsBT[number];
|
|
15
|
+
/**
|
|
16
|
+
* Positional variants of the Curve.
|
|
17
|
+
*/
|
|
18
|
+
from?: typeof positions[number];
|
|
19
|
+
/**
|
|
20
|
+
* Should the Curve colors be flipped? Normally used at the top of Poster.
|
|
21
|
+
*/
|
|
22
|
+
isInverted?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Size of the Curve.
|
|
25
|
+
*/
|
|
26
|
+
size?: typeof sizes[number];
|
|
27
|
+
/**
|
|
28
|
+
* Top color of the Curve. Shares values with Surface.
|
|
29
|
+
*/
|
|
30
|
+
topColor?: typeof backgroundsBT[number];
|
|
31
|
+
}
|
|
32
|
+
export { Curve, sizes, positions, CurveProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
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
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
4
|
+
import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Use `Curve` sparingly to soften edges and create a more natural, less rigid
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* Optionally define ariaDescribedBy if errorMessage or helper exist.
|
|
6
|
+
*/
|
|
7
|
+
declare const useAriaDescribedby: ({ id, idError, idHelper, errorMessage, helper }: {
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
idError?: string | undefined;
|
|
10
|
+
idHelper?: string | undefined;
|
|
11
|
+
errorMessage?: any;
|
|
12
|
+
helper?: any;
|
|
13
|
+
}) => {
|
|
14
|
+
ariaDescribedby: undefined;
|
|
15
|
+
idHelper: undefined;
|
|
16
|
+
idError: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
ariaDescribedby: string | undefined;
|
|
19
|
+
idError: string;
|
|
20
|
+
idHelper: string;
|
|
21
|
+
};
|
|
22
|
+
type RequirementStatus = "required" | "optional" | "not-applicable";
|
|
23
|
+
declare const Context: React.Context<{
|
|
24
|
+
requirementStatus: RequirementStatus | null;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Use `FormControl` to provide inputs with labels, helper text and error messages
|
|
28
|
+
*/
|
|
29
|
+
declare const FormControl: FC<FormControlProps>;
|
|
30
|
+
interface FormControlProps {
|
|
31
|
+
/**
|
|
32
|
+
* Render the input or series of inputs
|
|
33
|
+
*/
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* HTML Element type for the FormControl.
|
|
37
|
+
* @default 'div'
|
|
38
|
+
*/
|
|
39
|
+
elementType?: "div" | "fieldset";
|
|
40
|
+
/**
|
|
41
|
+
* Error message for the FormControl.
|
|
42
|
+
*/
|
|
43
|
+
errorMessage?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Helper text for the FormControl, shown below the label.
|
|
46
|
+
*/
|
|
47
|
+
helper?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* ID for the input that the FormControl points towards.
|
|
50
|
+
*/
|
|
51
|
+
htmlFor?: string;
|
|
52
|
+
/**
|
|
53
|
+
* ID for the FormControl. Used for helper and errorMessage if `htmlFor` is undefined.
|
|
54
|
+
*/
|
|
55
|
+
id?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Are all of the inputs in the FormControl required, optional, or is a
|
|
58
|
+
* uniform requirement status for all inputs not applicable?
|
|
59
|
+
*/
|
|
60
|
+
requirementStatus?: RequirementStatus;
|
|
61
|
+
/**
|
|
62
|
+
* Label for the FormControl.
|
|
63
|
+
*/
|
|
64
|
+
label: string;
|
|
65
|
+
/**
|
|
66
|
+
* Label size.
|
|
67
|
+
*/
|
|
68
|
+
labelSize?: "s" | "l";
|
|
69
|
+
}
|
|
70
|
+
export { useAriaDescribedby, FormControl, FormControlProps, Context as FormControlContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
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, { createContext, useContext } from 'react';
|
|
4
|
-
import { C as Context$1 } from './Surface-
|
|
4
|
+
import { C as Context$1 } from './Surface-d515d212.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Optionally define ariaDescribedBy if errorMessage or helper exist.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `Heading` to display heading text.
|
|
4
|
+
*/
|
|
5
|
+
declare const Heading: FC<HeadingProps> & {
|
|
6
|
+
Proposition: typeof HeadingProposition;
|
|
7
|
+
};
|
|
8
|
+
declare const HeadingProposition: FC<HeadingPropositionProps>;
|
|
9
|
+
interface HeadingPropositionProps {
|
|
10
|
+
/**
|
|
11
|
+
* Text to display in the Proposition.
|
|
12
|
+
*/
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
type HeadingCasing = "auto" | "none";
|
|
16
|
+
type HeadingColor = "auto" | "brand";
|
|
17
|
+
type HeadingLevel = "1" | "2" | "3" | "4" | "5" | "6";
|
|
18
|
+
type HeadingSize = "xxxs" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl";
|
|
19
|
+
interface HeadingProps {
|
|
20
|
+
/**
|
|
21
|
+
* Text alignment of the Heading.
|
|
22
|
+
*/
|
|
23
|
+
align?: "left" | "center" | "right";
|
|
24
|
+
/**
|
|
25
|
+
* Typographic casing of the Heading.
|
|
26
|
+
*/
|
|
27
|
+
casing?: HeadingCasing;
|
|
28
|
+
/**
|
|
29
|
+
* Text and inline markup to display in the Heading.
|
|
30
|
+
*/
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* The color of the Heading.
|
|
34
|
+
*/
|
|
35
|
+
color?: HeadingColor;
|
|
36
|
+
/**
|
|
37
|
+
* HTML section heading level. If not provided, the Heading will render as
|
|
38
|
+
* a span.
|
|
39
|
+
*/
|
|
40
|
+
level?: HeadingLevel;
|
|
41
|
+
/**
|
|
42
|
+
* Typographic size of the Heading.
|
|
43
|
+
*/
|
|
44
|
+
size?: HeadingSize;
|
|
45
|
+
}
|
|
46
|
+
export { Heading, HeadingProposition, HeadingPropositionProps, HeadingCasing, HeadingColor, HeadingLevel, HeadingSize, HeadingProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
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 `Heading` to display heading text.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { icons } from "@arc-ui/tokens";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Use `Icon` to display brand iconography.
|
|
5
|
+
*/
|
|
6
|
+
declare const Icon: FC<IconProps>;
|
|
7
|
+
declare const colors: readonly ["auto", "brand", "statusRed", "statusAmber", "statusGreen"];
|
|
8
|
+
interface IconProps {
|
|
9
|
+
/**
|
|
10
|
+
* Color of the Icon.
|
|
11
|
+
*/
|
|
12
|
+
color?: typeof colors[number];
|
|
13
|
+
/**
|
|
14
|
+
* Should the Icon component be styled as an inline element?
|
|
15
|
+
*/
|
|
16
|
+
isInline?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Should a selected variant of the Icon be shown?
|
|
19
|
+
*/
|
|
20
|
+
isSelected?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Icon variant.
|
|
23
|
+
*/
|
|
24
|
+
icon?: typeof icons[number];
|
|
25
|
+
/**
|
|
26
|
+
* Alternative text label for the Icon.
|
|
27
|
+
*/
|
|
28
|
+
label?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Size of the Icon, in pixels.
|
|
31
|
+
*/
|
|
32
|
+
size?: number;
|
|
33
|
+
}
|
|
34
|
+
export { Icon, colors, IconProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-
|
|
2
|
-
import { i as iconsSelected } from './index.es-
|
|
3
|
-
import { c as classNames } from './index-
|
|
1
|
+
import { _ as __rest, a as __assign, f as filterDataAttrs } from './index-229fc864.js';
|
|
2
|
+
import { i as iconsSelected } from './index.es-42f84e2d.js';
|
|
3
|
+
import { c as classNames } from './index-2ae58626.js';
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
-
import { s as suffixModifier } from './suffix-modifier-
|
|
6
|
-
import { C as Context } from './Surface-
|
|
5
|
+
import { s as suffixModifier } from './suffix-modifier-f5e28822.js';
|
|
6
|
+
import { C as Context } from './Surface-d515d212.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Use `Icon` to display brand iconography.
|
|
@@ -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
|
|
File without changes
|
|
@@ -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 };
|