@arc-ui/components 11.24.0 → 11.24.2
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/Base/Base.cjs.js +2 -1
- package/dist/Base/Base.esm.js +2 -1
- package/dist/Card/Card.cjs.js +1 -1
- package/dist/Card/Card.esm.js +1 -1
- package/dist/Clock/Clock.cjs.js +7 -2
- package/dist/Clock/Clock.esm.js +7 -2
- package/dist/Curve/Curve.cjs.js +1 -1
- package/dist/Curve/Curve.esm.js +1 -1
- package/dist/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/DatePicker/DatePicker.esm.js +1 -1
- package/dist/Modal/Modal.cjs.js +1 -1
- package/dist/Modal/Modal.esm.js +1 -1
- package/dist/ProgressStepper/ProgressStepper.cjs.js +1 -1
- package/dist/ProgressStepper/ProgressStepper.esm.js +1 -1
- package/dist/RadioGroup/RadioGroup.cjs.js +2 -1
- package/dist/RadioGroup/RadioGroup.esm.js +1 -1
- package/dist/Select/Select.cjs.js +1 -1
- package/dist/Select/Select.esm.js +1 -1
- package/dist/SiteFooter/SiteFooter.cjs.js +2 -2
- package/dist/SiteFooter/SiteFooter.esm.js +3 -3
- package/dist/SiteHeader/SiteHeader.cjs.js +1 -1
- package/dist/SiteHeader/SiteHeader.esm.js +1 -1
- package/dist/TextArea/TextArea.cjs.js +7 -7
- package/dist/TextArea/TextArea.esm.js +7 -7
- package/dist/_shared/cjs/{Base-f5a86eed.js → Base-4676f12e.js} +6 -3
- package/dist/_shared/cjs/{Card-5b19cabc.js → Card-78a70e63.js} +5 -1
- package/dist/_shared/cjs/{Curve-d038052b.js → Curve-b5117889.js} +1 -1
- package/dist/_shared/cjs/{ProgressStepper-57cfef1e.js → ProgressStepper-491f0286.js} +10 -10
- package/dist/_shared/cjs/{RadioGroup-85eda600.js → RadioGroup-26dc00fc.js} +22 -11
- package/dist/_shared/cjs/{SiteFooter-65b6360c.js → SiteFooter-20d5a9fa.js} +1 -1
- package/dist/_shared/cjs/{SiteHeader.rehydrator-b76b0889.js → SiteHeader.rehydrator-9d8f3dad.js} +5 -1
- package/dist/_shared/esm/Base-211ca3a4.js +18 -0
- package/dist/_shared/esm/{Card-7fc6c9b4.js → Card-a4b78406.js} +5 -1
- package/dist/_shared/esm/{Curve-d8679dde.js → Curve-e05b3c3f.js} +1 -1
- package/dist/_shared/esm/{ProgressStepper-6c811282.js → ProgressStepper-7eba3a6a.js} +10 -10
- package/dist/_shared/esm/{RadioGroup-6c8f8454.js → RadioGroup-427652ac.js} +22 -12
- package/dist/_shared/esm/{SiteFooter-38ee1536.js → SiteFooter-86f910b4.js} +1 -1
- package/dist/_shared/esm/{SiteHeader.rehydrator-8ad7651b.js → SiteHeader.rehydrator-2ec02ee7.js} +5 -1
- package/dist/index.es.js +53 -29
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +53 -29
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/components/Base/Base.d.ts +4 -0
- package/dist/types/components/Card/Card.d.ts +5 -1
- package/dist/types/components/Clock/Clock.d.ts +7 -2
- package/dist/types/components/Curve/Curve.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +17 -28
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +36 -0
- package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +1 -0
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/RadioGroup/context.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/SiteHeader/SiteHeader.d.ts +5 -1
- package/package.json +1 -1
- package/dist/_shared/esm/Base-f200653c.js +0 -15
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React, { FC, HTMLAttributes } from "react";
|
|
2
2
|
/**
|
|
3
|
-
|
|
3
|
+
#### Deprecation Notice
|
|
4
|
+
|
|
5
|
+
The `Card` component has been superseded by a range of new `Card` options (`ImpactCard`, `InformationCard`, `MediaCard`, `TypographyCard`) and therefore is being deprecated from Arc and will be removed in a future release.
|
|
6
|
+
|
|
7
|
+
Do not use `Card` for any new work, and prepare to update any design that features it to replace it with our newer `Card` options.
|
|
4
8
|
*/
|
|
5
9
|
export declare const Card: FC<CardProps> & {
|
|
6
10
|
Block: typeof CardBlock;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
#### Deprecation Notice
|
|
4
|
+
|
|
5
|
+
The `Clock` component is being deprecated from Arc and will be removed in a future release.
|
|
6
|
+
|
|
7
|
+
Do not use `Clock` for any new work, and prepare to update any design that features it to remove it.
|
|
8
|
+
|
|
9
|
+
*/
|
|
5
10
|
export declare const Clock: FC<ClockProps>;
|
|
6
11
|
export type LocaleType = "en-GB" | "en-US" | "ar-EG";
|
|
7
12
|
export interface ClockProps {
|
|
@@ -3,7 +3,7 @@ import { backgroundsBT } from "../Surface";
|
|
|
3
3
|
/**
|
|
4
4
|
#### Deprecation Notice
|
|
5
5
|
|
|
6
|
-
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use Curve for any new work, and prepare to update any design that features it to remove it.
|
|
6
|
+
The `Curve` component is an outdated brand feature and is being deprecated from Arc as a standalone component or sub-component within other components. Do not use `Curve` for any new work, and prepare to update any design that features it to remove it.
|
|
7
7
|
|
|
8
8
|
`Curve` will be removed from Arc in a subsequent release
|
|
9
9
|
*/
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const RadioButton: FC<RadioButtonProps>;
|
|
6
|
-
export interface RadioButtonProps {
|
|
7
|
-
/**
|
|
8
|
-
* Determine the alignment the RadioButton.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
radioButtonAlignment?: "top" | "center";
|
|
12
|
-
/**
|
|
13
|
-
* ID for the Radio Button.
|
|
14
|
-
*/
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContextProps } from "../context";
|
|
3
|
+
export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
interface RadioButtonProps {
|
|
15
5
|
id: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
label: string;
|
|
7
|
+
hideLabel?: boolean;
|
|
8
|
+
name: ContextProps["name"];
|
|
9
|
+
withMargin?: boolean;
|
|
10
|
+
defaultChecked?: boolean;
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
value?: string;
|
|
19
13
|
isDisabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Helper text for the RadioButton, shown below the label.
|
|
22
|
-
*/
|
|
23
14
|
helper?: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* Current value (controlled).
|
|
30
|
-
*/
|
|
31
|
-
value: string;
|
|
15
|
+
labelSize?: ContextProps["labelSize"];
|
|
16
|
+
size?: ContextProps["size"];
|
|
17
|
+
radioButtonAlignment?: "top" | "center";
|
|
18
|
+
changeEvent?: ContextProps["changeEvent"];
|
|
19
|
+
blurEvent?: ContextProps["blurEvent"];
|
|
32
20
|
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Radio Button component.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RadioButtonGroupInput: React.ForwardRefExoticComponent<RadioButtonGroupInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export interface RadioButtonGroupInputProps {
|
|
7
|
+
/**
|
|
8
|
+
* Determine the alignment the RadioButton.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
radioButtonAlignment?: "top" | "center";
|
|
12
|
+
/**
|
|
13
|
+
* ID for the Radio Button.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Should the RadioButton label be visually hidden? (it will still be announced by screen readers)
|
|
18
|
+
*/
|
|
19
|
+
hideLabel?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Should the RadioButton be disabled?
|
|
22
|
+
*/
|
|
23
|
+
isDisabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Helper text for the RadioButton, shown below the label.
|
|
26
|
+
*/
|
|
27
|
+
helper?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Label for the RadioButton.
|
|
30
|
+
*/
|
|
31
|
+
label: string;
|
|
32
|
+
/**
|
|
33
|
+
* Current value (controlled).
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioButtonGroupInput } from "./RadioButtonGroupInput";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
|
-
import {
|
|
3
|
+
import { RadioButtonGroupInput } from "./RadioButtonGroupInput";
|
|
4
4
|
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
5
5
|
/**
|
|
6
6
|
* Use `RadioGroup` to wrap and control radio buttons and apply default values
|
|
7
7
|
*/
|
|
8
8
|
export declare const RadioGroup: FC<RadioGroupProps> & {
|
|
9
|
-
RadioButton: typeof
|
|
9
|
+
RadioButton: typeof RadioButtonGroupInput;
|
|
10
10
|
};
|
|
11
11
|
export interface RadioGroupProps extends Omit<FormControlProps, "children" | "elementType" | "errorMessage" | "htmlFor" | "labelSize" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helperUnderLabel" | "supplementaryInfo" | "hideLabel"> {
|
|
12
12
|
/**
|
|
@@ -10,7 +10,11 @@ declare const Context: React.Context<{
|
|
|
10
10
|
transparent: boolean;
|
|
11
11
|
}>;
|
|
12
12
|
/**
|
|
13
|
-
|
|
13
|
+
#### Deprecation Notice
|
|
14
|
+
|
|
15
|
+
The `SiteHeader` component has been superseded by `SiteHeaderV2` and therefore is being deprecated from Arc and will be removed in a future release.
|
|
16
|
+
|
|
17
|
+
Do not use `SiteHeader` for any new work, and prepare to update any design that features it to replace it with `SiteHeaderV2`.
|
|
14
18
|
*/
|
|
15
19
|
export declare const SiteHeader: FC<SiteHeaderProps> & {
|
|
16
20
|
Column: typeof Column;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign, f as filterDataAttrs } from './filter-data-attrs-ea8f4ed4.js';
|
|
2
|
-
import React__default, { createContext } from 'react';
|
|
3
|
-
|
|
4
|
-
var ArcRootElementContext = createContext(null);
|
|
5
|
-
/**
|
|
6
|
-
* Use `Base` as the root component of the arc system.
|
|
7
|
-
*/
|
|
8
|
-
var Base = function (_a) {
|
|
9
|
-
var _b = _a.brand, brand = _b === void 0 ? "bt" : _b, children = _a.children, props = __rest(_a, ["brand", "children"]);
|
|
10
|
-
var _c = React__default.useState(null), arcRoot = _c[0], setArcRoot = _c[1];
|
|
11
|
-
return (React__default.createElement("div", __assign({ id: "arc-root", ref: setArcRoot, className: "arc".concat(brand ? " arc-".concat(brand) : "") }, filterDataAttrs(props)),
|
|
12
|
-
React__default.createElement(ArcRootElementContext.Provider, { value: arcRoot }, children)));
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { ArcRootElementContext as A, Base as B };
|