@carrier-dpx/air-react-library 0.7.31 → 0.7.32
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/package.json +1 -1
- package/src/components/Backdrop/Backdrop.figma.tsx +30 -0
- package/src/components/Backdrop/Backdrop.tsx +35 -0
- package/src/components/Backdrop/index.ts +3 -0
- package/src/components/Checkbox/Checkbox.figma.tsx +128 -0
- package/src/components/Checkbox/Checkbox.tsx +134 -0
- package/src/components/Checkbox/index.ts +3 -0
- package/src/components/Checkbox/styles.ts +111 -0
- package/src/components/Radio/Radio.figma.tsx +120 -0
- package/src/components/Radio/Radio.tsx +97 -0
- package/src/components/Radio/index.ts +3 -0
- package/src/components/Radio/styles.ts +107 -0
- package/src/components/StatusLed/StatusLed.tsx +1 -0
- package/src/components/Switch/Switch.figma.tsx +120 -0
- package/src/components/Switch/Switch.tsx +479 -0
- package/src/components/Switch/index.ts +3 -0
- package/src/components/utils/SwitchUtils.ts +25 -0
- package/src/index.ts +8 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const activeShadowAlpha = 0.08;
|
|
2
|
+
export const baseMargin = "1px";
|
|
3
|
+
export const basePadding = "0px";
|
|
4
|
+
export const baseTransitionDuration = "300ms";
|
|
5
|
+
export const baseShadowVariant = 2;
|
|
6
|
+
|
|
7
|
+
export const TrackHeightMap = {
|
|
8
|
+
medium: "20px",
|
|
9
|
+
small: "16px",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const TrackWidthMap = {
|
|
13
|
+
medium: "38px",
|
|
14
|
+
small: "32px",
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ThumbSizeMap = {
|
|
18
|
+
medium: "18px",
|
|
19
|
+
small: "14px",
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const ShadowRadiusMap = {
|
|
23
|
+
medium: "10px",
|
|
24
|
+
small: "8px",
|
|
25
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -34,6 +34,14 @@ export { default as MobileStatusBar } from "./components/MobileStatusBar";
|
|
|
34
34
|
export type { MobileStatusBarProps } from "./components/MobileStatusBar";
|
|
35
35
|
export { default as StatusLed } from "./components/StatusLed";
|
|
36
36
|
export type { StatusLedProps, Severity } from "./components/StatusLed";
|
|
37
|
+
export { default as Backdrop } from "./components/Backdrop";
|
|
38
|
+
export type { BackdropProps } from "./components/Backdrop";
|
|
39
|
+
export { default as Checkbox } from "./components/Checkbox";
|
|
40
|
+
export type { CheckboxProps } from "./components/Checkbox";
|
|
41
|
+
export { default as Radio } from "./components/Radio";
|
|
42
|
+
export type { RadioProps } from "./components/Radio";
|
|
43
|
+
export { default as Switch } from "./components/Switch";
|
|
44
|
+
export type { SwitchProps } from "./components/Switch";
|
|
37
45
|
export * from "./components/theme";
|
|
38
46
|
|
|
39
47
|
// Demo Icons - exported from main index to avoid deep-path imports
|