@omni-design/components 0.7.0 → 0.7.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/OmniDesignProvider.esm.js +1 -1
- package/dist/OmniDesignProvider.esm.js.map +1 -1
- package/dist/OmniDesignProvider.js +1 -1
- package/dist/OmniDesignProvider.js.map +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -0
- package/dist/types/components/Checkbox/Checkbox.d.ts +28 -15
- package/dist/types/components/contrast.d.ts +11 -0
- package/package.json +2 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export function normalizeButtonVariant(variant: any): string;
|
|
1
2
|
export function Button({ variant, size, elevated, selected, fullWidth, disabled, iconOnly, letterNumber, avatar, swatch, swatchColor, startIcon, endIcon, startDecorator, endDecorator, badge, badgeContent, badgeVariant, badgeSize, badgeDot, badgeMax, badgeAnchorOrigin, children, className, sx, ...props }: {
|
|
2
3
|
[x: string]: any;
|
|
3
4
|
variant?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export function normalizeCheckboxVariant(variant: any): string;
|
|
1
2
|
export function Checkbox({ variant, size, label, checked, defaultChecked, indeterminate, disabled, onChange, name, value, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, inputProps: inputPropsProp, ...props }: {
|
|
2
3
|
[x: string]: any;
|
|
3
4
|
variant?: string;
|
|
@@ -18,34 +19,46 @@ export function Checkbox({ variant, size, label, checked, defaultChecked, indete
|
|
|
18
19
|
inputProps?: {};
|
|
19
20
|
}): JSX.Element;
|
|
20
21
|
export function DefaultCheckbox(p: any): JSX.Element;
|
|
22
|
+
export function PrimaryCheckbox(p: any): JSX.Element;
|
|
23
|
+
export function SecondaryCheckbox(p: any): JSX.Element;
|
|
24
|
+
export function TertiaryCheckbox(p: any): JSX.Element;
|
|
25
|
+
export function NeutralCheckbox(p: any): JSX.Element;
|
|
26
|
+
export function InfoCheckbox(p: any): JSX.Element;
|
|
27
|
+
export function SuccessCheckbox(p: any): JSX.Element;
|
|
28
|
+
export function WarningCheckbox(p: any): JSX.Element;
|
|
29
|
+
export function ErrorCheckbox(p: any): JSX.Element;
|
|
30
|
+
export function BlackWhiteCheckbox(p: any): JSX.Element;
|
|
21
31
|
export function DefaultSolidCheckbox(p: any): JSX.Element;
|
|
22
32
|
export function DefaultOutlineCheckbox(p: any): JSX.Element;
|
|
23
33
|
export function DefaultLightCheckbox(p: any): JSX.Element;
|
|
24
|
-
export function PrimaryCheckbox(p: any): JSX.Element;
|
|
25
34
|
export function PrimarySolidCheckbox(p: any): JSX.Element;
|
|
26
35
|
export function PrimaryOutlineCheckbox(p: any): JSX.Element;
|
|
27
|
-
export function SecondaryOutlineCheckbox(p: any): JSX.Element;
|
|
28
|
-
export function TertiaryOutlineCheckbox(p: any): JSX.Element;
|
|
29
|
-
export function NeutralOutlineCheckbox(p: any): JSX.Element;
|
|
30
|
-
export function InfoOutlineCheckbox(p: any): JSX.Element;
|
|
31
|
-
export function SuccessOutlineCheckbox(p: any): JSX.Element;
|
|
32
|
-
export function WarningOutlineCheckbox(p: any): JSX.Element;
|
|
33
|
-
export function ErrorOutlineCheckbox(p: any): JSX.Element;
|
|
34
|
-
export function SecondarySolidCheckbox(p: any): JSX.Element;
|
|
35
|
-
export function TertiarySolidCheckbox(p: any): JSX.Element;
|
|
36
|
-
export function NeutralSolidCheckbox(p: any): JSX.Element;
|
|
37
|
-
export function InfoSolidCheckbox(p: any): JSX.Element;
|
|
38
|
-
export function SuccessSolidCheckbox(p: any): JSX.Element;
|
|
39
|
-
export function WarningSolidCheckbox(p: any): JSX.Element;
|
|
40
|
-
export function ErrorSolidCheckbox(p: any): JSX.Element;
|
|
41
36
|
export function PrimaryLightCheckbox(p: any): JSX.Element;
|
|
37
|
+
export function SecondarySolidCheckbox(p: any): JSX.Element;
|
|
38
|
+
export function SecondaryOutlineCheckbox(p: any): JSX.Element;
|
|
42
39
|
export function SecondaryLightCheckbox(p: any): JSX.Element;
|
|
40
|
+
export function TertiarySolidCheckbox(p: any): JSX.Element;
|
|
41
|
+
export function TertiaryOutlineCheckbox(p: any): JSX.Element;
|
|
43
42
|
export function TertiaryLightCheckbox(p: any): JSX.Element;
|
|
43
|
+
export function NeutralSolidCheckbox(p: any): JSX.Element;
|
|
44
|
+
export function NeutralOutlineCheckbox(p: any): JSX.Element;
|
|
44
45
|
export function NeutralLightCheckbox(p: any): JSX.Element;
|
|
46
|
+
export function InfoSolidCheckbox(p: any): JSX.Element;
|
|
47
|
+
export function InfoOutlineCheckbox(p: any): JSX.Element;
|
|
45
48
|
export function InfoLightCheckbox(p: any): JSX.Element;
|
|
49
|
+
export function SuccessSolidCheckbox(p: any): JSX.Element;
|
|
50
|
+
export function SuccessOutlineCheckbox(p: any): JSX.Element;
|
|
46
51
|
export function SuccessLightCheckbox(p: any): JSX.Element;
|
|
52
|
+
export function WarningSolidCheckbox(p: any): JSX.Element;
|
|
53
|
+
export function WarningOutlineCheckbox(p: any): JSX.Element;
|
|
47
54
|
export function WarningLightCheckbox(p: any): JSX.Element;
|
|
55
|
+
export function ErrorSolidCheckbox(p: any): JSX.Element;
|
|
56
|
+
export function ErrorOutlineCheckbox(p: any): JSX.Element;
|
|
48
57
|
export function ErrorLightCheckbox(p: any): JSX.Element;
|
|
58
|
+
export function BlackWhiteSolidCheckbox(p: any): JSX.Element;
|
|
59
|
+
export function BlackWhiteOutlineCheckbox(p: any): JSX.Element;
|
|
60
|
+
export function BlackWhiteLightCheckbox(p: any): JSX.Element;
|
|
49
61
|
export function OutlineCheckbox(p: any): JSX.Element;
|
|
50
62
|
export function SolidCheckbox(p: any): JSX.Element;
|
|
63
|
+
export function LightCheckbox(p: any): JSX.Element;
|
|
51
64
|
export default Checkbox;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function parseColor(str: any): {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
a: number;
|
|
6
|
+
};
|
|
7
|
+
export function compositeOver(fg: any, bg: any): any;
|
|
8
|
+
export function getLuminance(color: any): number;
|
|
9
|
+
export function getContrast(color1: any, color2: any, bgBase: any): string;
|
|
10
|
+
export function getCssVar(varName: any): string;
|
|
11
|
+
export function getCssVarFrom(el: any, varName: any): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omni-design/components",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"description": "DynoDesign adaptive component library
|
|
3
|
+
"version": "0.7.2",
|
|
4
|
+
"description": "DynoDesign adaptive component library — token-driven React components with customizable CSS theming",
|
|
5
5
|
"author": "Lise Noble",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -104,7 +104,6 @@
|
|
|
104
104
|
"url": "https://github.com/lwnoble/omni-design"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@dynodesign/components": "^0.4.1",
|
|
108
107
|
"@mui/x-tree-view": "^8.27.2",
|
|
109
108
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
110
109
|
"react-router-dom": "^7.13.1",
|