@arc-ui/components 11.4.2 → 11.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.cjs.d.ts +57 -0
- package/dist/Alert/Alert.cjs.js +142 -0
- package/dist/Alert/Alert.esm.d.ts +57 -0
- package/dist/Alert/Alert.esm.js +134 -0
- package/dist/Alert/package.json +7 -0
- package/dist/Align/Align.cjs.js +6 -6
- package/dist/Align/Align.esm.js +2 -2
- package/dist/Badge/Badge.cjs.js +7 -7
- package/dist/Badge/Badge.esm.js +4 -4
- package/dist/Base/Base.cjs.d.ts +1 -1
- package/dist/Base/Base.cjs.js +2 -2
- package/dist/Base/Base.esm.d.ts +1 -1
- package/dist/Base/Base.esm.js +2 -2
- package/dist/BrandLogo/BrandLogo.cjs.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.cjs.js +4 -4
- package/dist/BrandLogo/BrandLogo.esm.d.ts +1 -1
- package/dist/BrandLogo/BrandLogo.esm.js +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.cjs.js +8 -8
- package/dist/Breadcrumbs/Breadcrumbs.esm.js +4 -4
- package/dist/Button/Button.cjs.d.ts +1 -1
- package/dist/Button/Button.cjs.js +5 -5
- package/dist/Button/Button.esm.d.ts +1 -1
- package/dist/Button/Button.esm.js +5 -5
- package/dist/Card/Card.cjs.js +14 -14
- package/dist/Card/Card.esm.js +6 -6
- package/dist/Checkbox/Checkbox.cjs.d.ts +6 -1
- package/dist/Checkbox/Checkbox.cjs.js +22 -15
- package/dist/Checkbox/Checkbox.esm.d.ts +6 -1
- package/dist/Checkbox/Checkbox.esm.js +18 -11
- package/dist/Clock/Clock.cjs.js +6 -6
- package/dist/Clock/Clock.esm.js +1 -1
- package/dist/Columns/Columns.cjs.js +9 -9
- package/dist/Columns/Columns.esm.js +2 -2
- package/dist/Curve/Curve.cjs.d.ts +1 -1
- package/dist/Curve/Curve.cjs.js +3 -3
- package/dist/Curve/Curve.esm.d.ts +1 -1
- package/dist/Curve/Curve.esm.js +3 -3
- package/dist/Disclosure/Disclosure.cjs.d.ts +1 -1
- package/dist/Disclosure/Disclosure.cjs.js +8 -8
- package/dist/Disclosure/Disclosure.esm.d.ts +1 -1
- package/dist/Disclosure/Disclosure.esm.js +4 -4
- package/dist/DisclosureMini/DisclosureMini.cjs.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.cjs.js +16 -0
- package/dist/DisclosureMini/DisclosureMini.esm.d.ts +1 -0
- package/dist/DisclosureMini/DisclosureMini.esm.js +8 -0
- package/dist/DisclosureMini/package.json +7 -0
- package/dist/Elevation/Elevation.cjs.d.ts +4 -0
- package/dist/Elevation/Elevation.cjs.js +7 -5
- package/dist/Elevation/Elevation.esm.d.ts +4 -0
- package/dist/Elevation/Elevation.esm.js +4 -2
- package/dist/FormControl/FormControl.cjs.d.ts +1 -1
- package/dist/FormControl/FormControl.cjs.js +9 -6
- package/dist/FormControl/FormControl.esm.d.ts +1 -1
- package/dist/FormControl/FormControl.esm.js +9 -6
- package/dist/Group/Group.cjs.js +9 -9
- package/dist/Group/Group.esm.js +2 -2
- package/dist/Heading/Heading.cjs.d.ts +1 -1
- package/dist/Heading/Heading.cjs.js +4 -4
- package/dist/Heading/Heading.esm.d.ts +1 -1
- package/dist/Heading/Heading.esm.js +4 -4
- package/dist/Icon/Icon.cjs.d.ts +1 -1
- package/dist/Icon/Icon.cjs.js +4 -4
- package/dist/Icon/Icon.esm.d.ts +1 -1
- package/dist/Icon/Icon.esm.js +4 -4
- package/dist/Image/Image.cjs.d.ts +1 -1
- package/dist/Image/Image.cjs.js +3 -3
- package/dist/Image/Image.esm.d.ts +1 -1
- package/dist/Image/Image.esm.js +3 -3
- package/dist/Markup/Markup.cjs.js +6 -6
- package/dist/Markup/Markup.esm.js +2 -2
- package/dist/Poster/Poster.cjs.d.ts +1 -1
- package/dist/Poster/Poster.cjs.js +13 -13
- package/dist/Poster/Poster.esm.d.ts +1 -1
- package/dist/Poster/Poster.esm.js +4 -4
- package/dist/ProgressBar/ProgressBar.cjs.js +22 -41
- package/dist/ProgressBar/ProgressBar.esm.js +13 -32
- package/dist/RadioGroup/RadioGroup.cjs.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +15 -12
- package/dist/RadioGroup/RadioGroup.esm.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.esm.js +9 -6
- package/dist/Rule/Rule.cjs.js +5 -5
- package/dist/Rule/Rule.esm.js +2 -2
- package/dist/Section/Section.cjs.d.ts +1 -1
- package/dist/Section/Section.cjs.js +2 -2
- package/dist/Section/Section.esm.d.ts +1 -1
- package/dist/Section/Section.esm.js +2 -2
- package/dist/Select/Select.cjs.d.ts +1 -1
- package/dist/Select/Select.cjs.js +10 -8
- package/dist/Select/Select.esm.d.ts +1 -1
- package/dist/Select/Select.esm.js +10 -8
- package/dist/SiteFooter/SiteFooter.cjs.js +13 -13
- package/dist/SiteFooter/SiteFooter.esm.js +6 -6
- package/dist/SiteHeader/SiteHeader.cjs.d.ts +9 -1
- package/dist/SiteHeader/SiteHeader.cjs.js +57 -49
- package/dist/SiteHeader/SiteHeader.esm.d.ts +9 -1
- package/dist/SiteHeader/SiteHeader.esm.js +15 -7
- package/dist/Surface/Surface.cjs.d.ts +1 -1
- package/dist/Surface/Surface.cjs.js +2 -2
- package/dist/Surface/Surface.esm.d.ts +1 -1
- package/dist/Surface/Surface.esm.js +2 -2
- package/dist/Switch/Switch.cjs.d.ts +1 -1
- package/dist/Switch/Switch.cjs.js +10 -8
- package/dist/Switch/Switch.esm.d.ts +1 -1
- package/dist/Switch/Switch.esm.js +10 -8
- package/dist/Tag/Tag.cjs.js +39 -18
- package/dist/Tag/Tag.esm.js +31 -10
- package/dist/Text/Text.cjs.d.ts +1 -1
- package/dist/Text/Text.cjs.js +4 -4
- package/dist/Text/Text.esm.d.ts +1 -1
- package/dist/Text/Text.esm.js +4 -4
- package/dist/TextInput/TextInput.cjs.d.ts +1 -1
- package/dist/TextInput/TextInput.cjs.js +14 -11
- package/dist/TextInput/TextInput.esm.d.ts +1 -1
- package/dist/TextInput/TextInput.esm.js +9 -6
- package/dist/UniversalHeader/UniversalHeader.cjs.js +6 -6
- package/dist/UniversalHeader/UniversalHeader.esm.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -1
- package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
- package/dist/_shared/cjs/{Base-e2b846fe.js → Base-569e4334.js} +3 -3
- package/dist/_shared/cjs/{BrandLogo-3c6102ef.js → BrandLogo-8008f0c4.js} +7 -7
- package/dist/_shared/cjs/BtIconAlert-637db790.js +38 -0
- package/dist/_shared/cjs/BtIconCrossAlt2Px-30dc2688.js +29 -0
- package/dist/_shared/cjs/{Button-1af6868c.js → Button-5dff284a.js} +10 -10
- package/dist/_shared/cjs/{Curve-e72ce25b.js → Curve-b05589d8.js} +6 -6
- package/dist/_shared/cjs/DisclosureMini-5af13d3c.d.ts +37 -0
- package/dist/_shared/cjs/DisclosureMini-5af13d3c.js +42 -0
- package/dist/_shared/cjs/{FormControl-d4d9c665.d.ts → FormControl-42360ae8.d.ts} +2 -29
- package/dist/_shared/cjs/{FormControl-d4d9c665.js → FormControl-42360ae8.js} +18 -70
- package/dist/_shared/cjs/{Heading-cc38c3ec.js → Heading-d45f6a7f.js} +7 -7
- package/dist/_shared/cjs/{Icon-719d13d4.js → Icon-9ae8dbe1.js} +7 -7
- package/dist/_shared/cjs/{Image-fe760a06.js → Image-3bf4b4f3.js} +8 -8
- package/dist/_shared/cjs/{Section-780f2377.js → Section-48aca5f5.js} +5 -5
- package/dist/_shared/cjs/{Surface-d6b8010e.js → Surface-6da0a78e.js} +8 -8
- package/dist/_shared/cjs/{Text-1d3844be.js → Text-6f2827e6.js} +7 -7
- package/dist/_shared/cjs/{VerticalSpace-7aed88ab.js → VerticalSpace-86f697e7.js} +5 -5
- package/dist/_shared/cjs/{index-78b35bc1.js → filter-data-attrs-a30dcf5f.js} +12 -12
- package/dist/_shared/cjs/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/cjs/index-c81c9401.d.ts +1 -1
- package/dist/_shared/cjs/{suffix-modifier-edf7851e.js → suffix-modifier-1ee2da04.js} +2 -2
- package/dist/_shared/esm/{Base-c235dc45.js → Base-6c01e0ec.js} +1 -1
- package/dist/_shared/esm/{BrandLogo-4f13fe85.js → BrandLogo-56699561.js} +3 -3
- package/dist/_shared/esm/BtIconAlert-55a6ed5c.js +32 -0
- package/dist/_shared/esm/BtIconCrossAlt2Px-a6a9f431.js +23 -0
- package/dist/_shared/esm/{Button-10700df4.js → Button-61241dd0.js} +4 -4
- package/dist/_shared/esm/{Curve-50697f7e.js → Curve-3e87b1bc.js} +2 -2
- package/dist/_shared/esm/DisclosureMini-322fccc0.d.ts +37 -0
- package/dist/_shared/esm/DisclosureMini-322fccc0.js +36 -0
- package/dist/_shared/esm/{FormControl-2cb96de7.d.ts → FormControl-0744f93f.d.ts} +2 -29
- package/dist/_shared/esm/{FormControl-2cb96de7.js → FormControl-0744f93f.js} +10 -61
- package/dist/_shared/esm/{Heading-eb1e42db.js → Heading-b61432fb.js} +3 -3
- package/dist/_shared/esm/{Icon-61f7237a.js → Icon-fd247973.js} +3 -3
- package/dist/_shared/esm/{Image-c0f3d42f.js → Image-3596ce55.js} +2 -2
- package/dist/_shared/esm/{Section-7bc71e26.js → Section-b8038d66.js} +1 -1
- package/dist/_shared/esm/{Surface-bf201530.js → Surface-bb100ef8.js} +1 -1
- package/dist/_shared/esm/{Text-6b958ad8.js → Text-00e9743b.js} +3 -3
- package/dist/_shared/esm/{VerticalSpace-3579b20e.js → VerticalSpace-93980c9c.js} +1 -1
- package/dist/_shared/esm/{index-229fc864.js → filter-data-attrs-afdb7d32.js} +12 -12
- package/dist/_shared/esm/index-9483ad5f.d.ts +2 -2
- package/dist/_shared/esm/index-c81c9401.d.ts +1 -1
- package/dist/_shared/esm/{suffix-modifier-f5e28822.js → suffix-modifier-7e640670.js} +1 -1
- package/dist/index.es.js +166 -126
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +395 -355
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Alert/Alert.d.ts +56 -0
- package/dist/types/components/Alert/index.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +6 -1
- package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +36 -0
- package/dist/types/components/DisclosureMini/index.d.ts +1 -0
- package/dist/types/components/Elevation/Elevation.d.ts +4 -0
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +2 -0
- package/dist/types/components/SiteHeader/components/NodeItem/NodeItem.d.ts +8 -0
- package/dist/types/styles.d.ts +3 -2
- package/package.json +4 -4
- package/dist/types/components/FormControl/FormControlDisclosure/FormControlDisclosure.d.ts +0 -28
- package/dist/types/components/FormControl/FormControlDisclosure/index.d.ts +0 -1
- /package/dist/_shared/cjs/{Base-e2b846fe.d.ts → Base-569e4334.d.ts} +0 -0
- /package/dist/_shared/cjs/{BrandLogo-3c6102ef.d.ts → BrandLogo-8008f0c4.d.ts} +0 -0
- /package/dist/_shared/cjs/{Button-1af6868c.d.ts → Button-5dff284a.d.ts} +0 -0
- /package/dist/_shared/cjs/{Curve-e72ce25b.d.ts → Curve-b05589d8.d.ts} +0 -0
- /package/dist/_shared/cjs/{Heading-cc38c3ec.d.ts → Heading-d45f6a7f.d.ts} +0 -0
- /package/dist/_shared/cjs/{Icon-719d13d4.d.ts → Icon-9ae8dbe1.d.ts} +0 -0
- /package/dist/_shared/cjs/{Image-fe760a06.d.ts → Image-3bf4b4f3.d.ts} +0 -0
- /package/dist/_shared/cjs/{Section-780f2377.d.ts → Section-48aca5f5.d.ts} +0 -0
- /package/dist/_shared/cjs/{Surface-d6b8010e.d.ts → Surface-6da0a78e.d.ts} +0 -0
- /package/dist/_shared/cjs/{Text-1d3844be.d.ts → Text-6f2827e6.d.ts} +0 -0
- /package/dist/_shared/cjs/{VerticalSpace-7aed88ab.d.ts → VerticalSpace-86f697e7.d.ts} +0 -0
- /package/dist/_shared/cjs/{index-78b35bc1.d.ts → filter-data-attrs-a30dcf5f.d.ts} +0 -0
- /package/dist/_shared/cjs/{suffix-modifier-edf7851e.d.ts → suffix-modifier-1ee2da04.d.ts} +0 -0
- /package/dist/_shared/esm/{Base-c235dc45.d.ts → Base-6c01e0ec.d.ts} +0 -0
- /package/dist/_shared/esm/{BrandLogo-4f13fe85.d.ts → BrandLogo-56699561.d.ts} +0 -0
- /package/dist/_shared/esm/{Button-10700df4.d.ts → Button-61241dd0.d.ts} +0 -0
- /package/dist/_shared/esm/{Curve-50697f7e.d.ts → Curve-3e87b1bc.d.ts} +0 -0
- /package/dist/_shared/esm/{Heading-eb1e42db.d.ts → Heading-b61432fb.d.ts} +0 -0
- /package/dist/_shared/esm/{Icon-61f7237a.d.ts → Icon-fd247973.d.ts} +0 -0
- /package/dist/_shared/esm/{Image-c0f3d42f.d.ts → Image-3596ce55.d.ts} +0 -0
- /package/dist/_shared/esm/{Section-7bc71e26.d.ts → Section-b8038d66.d.ts} +0 -0
- /package/dist/_shared/esm/{Surface-bf201530.d.ts → Surface-bb100ef8.d.ts} +0 -0
- /package/dist/_shared/esm/{Text-6b958ad8.d.ts → Text-00e9743b.d.ts} +0 -0
- /package/dist/_shared/esm/{VerticalSpace-3579b20e.d.ts → VerticalSpace-93980c9c.d.ts} +0 -0
- /package/dist/_shared/esm/{index-229fc864.d.ts → filter-data-attrs-afdb7d32.d.ts} +0 -0
- /package/dist/_shared/esm/{suffix-modifier-f5e28822.d.ts → suffix-modifier-7e640670.d.ts} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { HeadingProps } from "../Heading/Heading";
|
|
3
|
+
import { ArcIcon } from "../../types/arc-icon";
|
|
4
|
+
/** use `Alert` to display persistent messages, either permanent or dismissible. */
|
|
5
|
+
export declare const Alert: FC<AlertProps>;
|
|
6
|
+
export interface AlertProps {
|
|
7
|
+
/**
|
|
8
|
+
* Determine a heading for `<Alert />`
|
|
9
|
+
*/
|
|
10
|
+
heading: string;
|
|
11
|
+
/**
|
|
12
|
+
* Determine a heading for `<Alert />`
|
|
13
|
+
*/
|
|
14
|
+
headingLevel?: HeadingProps["level"];
|
|
15
|
+
/**
|
|
16
|
+
* Determine a description for `<Alert />`
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Determine a link for `<Alert />`
|
|
21
|
+
*/
|
|
22
|
+
link?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Determine the text to link
|
|
25
|
+
*/
|
|
26
|
+
linkText?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Determine a icon to display within `<Alert />`. This overrides the default icons.
|
|
29
|
+
*/
|
|
30
|
+
icon?: ArcIcon;
|
|
31
|
+
/**
|
|
32
|
+
* Determine the type of alert
|
|
33
|
+
*/
|
|
34
|
+
type?: "primary" | "secondary";
|
|
35
|
+
/**
|
|
36
|
+
* Determine the type of alert
|
|
37
|
+
*/
|
|
38
|
+
status?: "general" | "error" | "warning" | "success";
|
|
39
|
+
/**
|
|
40
|
+
* Determine showing a dismiss icon within `<Alert />`
|
|
41
|
+
*/
|
|
42
|
+
isDismissable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Execute a function when dismiss is envoked
|
|
45
|
+
*/
|
|
46
|
+
onDismiss?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Execute a function when link is envoked. This prevents the default behaviour for `<a >` Tag
|
|
49
|
+
*/
|
|
50
|
+
onLinkClick?: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Text to override `linkText` with additional, more precise information
|
|
53
|
+
* specifically for screen reader users.
|
|
54
|
+
*/
|
|
55
|
+
linkAriaLabel?: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from "./Alert";
|
|
@@ -13,6 +13,11 @@ export interface CheckboxProps {
|
|
|
13
13
|
* Helper text for the Checkbox, shown below the label.
|
|
14
14
|
*/
|
|
15
15
|
helper?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Determine the alignment the Checkbox.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
checkboxAlignment?: "top" | "center";
|
|
16
21
|
/**
|
|
17
22
|
* ID for the Checkbox.
|
|
18
23
|
*/
|
|
@@ -22,7 +27,7 @@ export interface CheckboxProps {
|
|
|
22
27
|
*/
|
|
23
28
|
checked?: boolean;
|
|
24
29
|
/**
|
|
25
|
-
*
|
|
30
|
+
* `isDisabled` is a legacy property and not recommended from a UX usability best practice perspective.
|
|
26
31
|
*/
|
|
27
32
|
isDisabled?: boolean;
|
|
28
33
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use `DisclosureMini` to display content that is only visible when toggled into
|
|
4
|
+
* an "open" state.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DisclosureMini: FC<DisclosureMiniProps>;
|
|
7
|
+
export interface DisclosureMiniProps {
|
|
8
|
+
/**
|
|
9
|
+
* Content to display in the DisclosureMini.
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* DisclosureMini ID.
|
|
14
|
+
*/
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The DisclosureMini summary text.
|
|
18
|
+
*/
|
|
19
|
+
summary: string;
|
|
20
|
+
/**
|
|
21
|
+
* Should the Disclosure content be open by default?
|
|
22
|
+
*/
|
|
23
|
+
isOpen?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Position of the DisclosureMini icon?
|
|
26
|
+
*/
|
|
27
|
+
iconPosition?: "left" | "right";
|
|
28
|
+
/**
|
|
29
|
+
* On Click handler for DisclosureMini summary disclosure.
|
|
30
|
+
*/
|
|
31
|
+
onClick?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Disclosure size.
|
|
34
|
+
*/
|
|
35
|
+
size?: "s" | "l";
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DisclosureMini } from "./DisclosureMini";
|
|
@@ -4,6 +4,7 @@ import { Column } from "./components/Column";
|
|
|
4
4
|
import { Item } from "./components/Item";
|
|
5
5
|
import { ItemGroup } from "./components/ItemGroup";
|
|
6
6
|
import { NavItem, NavItemWithSubNav } from "./components/NavItem";
|
|
7
|
+
import { NodeItem } from "./components/NodeItem/NodeItem";
|
|
7
8
|
import { SubNavItem } from "./components/SubNavItem";
|
|
8
9
|
declare const Context: React.Context<{
|
|
9
10
|
transparent: boolean;
|
|
@@ -16,6 +17,7 @@ export declare const SiteHeader: FC<SiteHeaderProps> & {
|
|
|
16
17
|
Item: typeof Item;
|
|
17
18
|
ItemGroup: typeof ItemGroup;
|
|
18
19
|
NavItem: typeof NavItem;
|
|
20
|
+
NodeItem: typeof NodeItem;
|
|
19
21
|
NavItemWithSubNav: typeof NavItemWithSubNav;
|
|
20
22
|
SubNavItem: typeof SubNavItem;
|
|
21
23
|
};
|
package/dist/types/styles.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./components/Alert/Alert.css";
|
|
1
2
|
import "./components/Align/Align.css";
|
|
2
3
|
import "./components/Badge/Badge.css";
|
|
3
4
|
import "./components/Base/Base.css";
|
|
@@ -10,9 +11,9 @@ import "./components/Clock/Clock.css";
|
|
|
10
11
|
import "./components/Columns/Columns.css";
|
|
11
12
|
import "./components/Columns/Columns.offsets.css";
|
|
12
13
|
import "./components/Disclosure/Disclosure.css";
|
|
14
|
+
import "./components/DisclosureMini/DisclosureMini.css";
|
|
13
15
|
import "./components/Elevation/Elevation.css";
|
|
14
16
|
import "./components/FormControl/FormControl.css";
|
|
15
|
-
import "./components/FormControl/FormControlDisclosure/FormControlDisclosure.css";
|
|
16
17
|
import "./components/Group/Group.css";
|
|
17
18
|
import "./components/Heading/Heading.css";
|
|
18
19
|
import "./components/Icon/Icon.css";
|
|
@@ -41,9 +42,9 @@ import "./components/Card/Card.bt.css";
|
|
|
41
42
|
import "./components/Checkbox/Checkbox.bt.css";
|
|
42
43
|
import "./components/Curve/Curve.bt.css";
|
|
43
44
|
import "./components/Disclosure/Disclosure.bt.css";
|
|
45
|
+
import "./components/DisclosureMini/DisclosureMini.bt.css";
|
|
44
46
|
import "./components/Elevation/Elevation.bt.css";
|
|
45
47
|
import "./components/FormControl/FormControl.bt.css";
|
|
46
|
-
import "./components/FormControl/FormControlDisclosure/FormControlDisclosure.bt.css";
|
|
47
48
|
import "./components/Group/Group.bt.css";
|
|
48
49
|
import "./components/Heading/Heading.bt.css";
|
|
49
50
|
import "./components/Icon/Icon.bt.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@radix-ui/react-switch": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@arc-ui/fonts": "^11.
|
|
36
|
-
"@arc-ui/icons": "^11.
|
|
37
|
-
"@arc-ui/tokens": "^11.
|
|
35
|
+
"@arc-ui/fonts": "^11.5.0",
|
|
36
|
+
"@arc-ui/icons": "^11.5.0",
|
|
37
|
+
"@arc-ui/tokens": "^11.5.0",
|
|
38
38
|
"@babel/core": "^7.14.3",
|
|
39
39
|
"@babel/helper-define-map": "^7.14.3",
|
|
40
40
|
"@storybook/addon-essentials": "^6.3.6",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* Use `FormControlDisclosure` to display content that is only visible when toggled into
|
|
4
|
-
* an "open" state.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FormControlDisclosure: FC<FormControlDisclosureProps>;
|
|
7
|
-
export interface FormControlDisclosureProps {
|
|
8
|
-
/**
|
|
9
|
-
* Content to display in the FormControlDisclosure.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* FormControlDisclosure ID.
|
|
14
|
-
*/
|
|
15
|
-
id?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The FormControlDisclosure summary text.
|
|
18
|
-
*/
|
|
19
|
-
summary: string;
|
|
20
|
-
/**
|
|
21
|
-
* On Click handler for FormControlDisclosure summary disclosure.
|
|
22
|
-
*/
|
|
23
|
-
onClick?: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Disclosure size.
|
|
26
|
-
*/
|
|
27
|
-
size?: "s" | "l";
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FormControlDisclosure } from "./FormControlDisclosure";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|