@arc-ui/components 11.1.0 → 11.2.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/Select/Select.cjs.js +207 -606
- package/dist/Select/Select.esm.js +43 -442
- package/dist/Switch/Switch.cjs.d.ts +40 -0
- package/dist/Switch/Switch.cjs.js +210 -0
- package/dist/Switch/Switch.esm.d.ts +40 -0
- package/dist/Switch/Switch.esm.js +202 -0
- package/dist/Switch/package.json +7 -0
- package/dist/VerticalSpace/VerticalSpace.cjs.d.ts +1 -18
- package/dist/VerticalSpace/VerticalSpace.cjs.js +5 -20
- package/dist/VerticalSpace/VerticalSpace.esm.d.ts +1 -18
- package/dist/VerticalSpace/VerticalSpace.esm.js +4 -19
- package/dist/_shared/cjs/BtIconTickAlt2Px-b12ecc78.js +425 -0
- package/dist/_shared/cjs/VerticalSpace-65ad083c.d.ts +18 -0
- package/dist/_shared/cjs/VerticalSpace-65ad083c.js +25 -0
- package/dist/_shared/esm/BtIconTickAlt2Px-2c4ec3be.js +408 -0
- package/dist/_shared/esm/VerticalSpace-6b4f5e50.d.ts +18 -0
- package/dist/_shared/esm/VerticalSpace-6b4f5e50.js +19 -0
- package/dist/index.es.js +208 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +208 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Switch/Switch.d.ts +13 -8
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { SwitchProps as RadixSwitchProps } from "@radix-ui/react-switch";
|
|
3
|
-
|
|
3
|
+
import { FormControlProps } from "../FormControl/FormControl";
|
|
4
|
+
/** Use `Switch` to toggle between checked and not checked. */
|
|
4
5
|
export declare const Switch: FC<SwitchProps>;
|
|
5
|
-
export interface SwitchProps {
|
|
6
|
+
export interface SwitchProps extends Omit<FormControlProps, "children" | "elementType" | "htmlFor" | "requirementStatus" | "disclosureText" | "disclosureTitle" | "onClickDisclosure" | "helper"> {
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Hide Label above toggle?
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
hideLabel?: boolean;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Text to display next to `Switch`
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
statusText?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Should the `Switch` be disabled?
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: FormControlProps["isDisabled"];
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
20
|
+
* handler for blur
|
|
16
21
|
*/
|
|
17
|
-
|
|
22
|
+
onBlur?: RadixSwitchProps["onBlur"];
|
|
18
23
|
/**
|
|
19
24
|
* set the switch to be checked by default
|
|
20
25
|
*/
|
|
@@ -25,6 +25,7 @@ export { Select } from "./Select";
|
|
|
25
25
|
export { SiteFooter, SiteFooterRehydrator } from "./SiteFooter";
|
|
26
26
|
export { SiteHeader, SiteHeaderRehydrator } from "./SiteHeader";
|
|
27
27
|
export { Surface, SurfaceContext } from "./Surface";
|
|
28
|
+
export { Switch } from "./Switch";
|
|
28
29
|
export { Badge } from "./Badge";
|
|
29
30
|
export { Text } from "./Text";
|
|
30
31
|
export { TextInput } from "./TextInput";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.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.2.0",
|
|
36
|
+
"@arc-ui/icons": "^11.2.0",
|
|
37
|
+
"@arc-ui/tokens": "^11.2.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",
|