@openfin/ui-library 0.15.2-alpha.1683230400 → 0.15.2-alpha.1683230507
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/components/layout/Box/box.d.ts +2 -2
- package/dist/components/templates/utils/name.d.ts +0 -1
- package/dist/components/typography/Heading/heading.d.ts +42 -42
- package/dist/components/typography/Text/text.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -39
- package/dist/lib/color-generator.d.ts +7 -0
- package/dist/lib/color-generator.spec.d.ts +1 -0
- package/dist/storybookHelpers.d.ts +9 -9
- package/package.json +6 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate a color based on a string.
|
|
3
|
+
* @param str The string to generate a color from.
|
|
4
|
+
* @param saturation The saturation of the color.
|
|
5
|
+
* @param lightness The lightness of the color.
|
|
6
|
+
*/
|
|
7
|
+
export declare function generateColorFromString(str?: string, saturation?: number, lightness?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,14 +5,14 @@ export declare const StoryRow: import("styled-components").StyledComponent<"div"
|
|
|
5
5
|
flexDirection?: import("./components/layout/Box/types").FlexDirection | undefined;
|
|
6
6
|
flexWrap?: import("./components/layout/Box/types").FlexWrap | undefined;
|
|
7
7
|
justifyContent?: import("./components/layout/Box/types").JustifyContent | undefined;
|
|
8
|
-
gap?: "
|
|
8
|
+
gap?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
9
9
|
alignSelf?: import("./components/layout/Box/types").AlignSelf | undefined;
|
|
10
10
|
flexBasis?: string | undefined;
|
|
11
11
|
flexGrow?: 0 | 1 | undefined;
|
|
12
12
|
flexShrink?: 0 | 1 | undefined;
|
|
13
13
|
order?: number | undefined;
|
|
14
14
|
background?: import("./components/layout/Box/types").BackgroundLevel | undefined;
|
|
15
|
-
padding?: "
|
|
15
|
+
padding?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
gap: string;
|
|
18
18
|
alignItems: string;
|
|
@@ -23,14 +23,14 @@ export declare const StoryColumn: import("styled-components").StyledComponent<"d
|
|
|
23
23
|
flexDirection?: import("./components/layout/Box/types").FlexDirection | undefined;
|
|
24
24
|
flexWrap?: import("./components/layout/Box/types").FlexWrap | undefined;
|
|
25
25
|
justifyContent?: import("./components/layout/Box/types").JustifyContent | undefined;
|
|
26
|
-
gap?: "
|
|
26
|
+
gap?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
27
27
|
alignSelf?: import("./components/layout/Box/types").AlignSelf | undefined;
|
|
28
28
|
flexBasis?: string | undefined;
|
|
29
29
|
flexGrow?: 0 | 1 | undefined;
|
|
30
30
|
flexShrink?: 0 | 1 | undefined;
|
|
31
31
|
order?: number | undefined;
|
|
32
32
|
background?: import("./components/layout/Box/types").BackgroundLevel | undefined;
|
|
33
|
-
padding?: "
|
|
33
|
+
padding?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
flexDirection: string;
|
|
36
36
|
gap: string;
|
|
@@ -42,14 +42,14 @@ export declare const StoryGrid: import("styled-components").StyledComponent<"div
|
|
|
42
42
|
flexDirection?: import("./components/layout/Box/types").FlexDirection | undefined;
|
|
43
43
|
flexWrap?: import("./components/layout/Box/types").FlexWrap | undefined;
|
|
44
44
|
justifyContent?: import("./components/layout/Box/types").JustifyContent | undefined;
|
|
45
|
-
gap?: "
|
|
45
|
+
gap?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
46
46
|
alignSelf?: import("./components/layout/Box/types").AlignSelf | undefined;
|
|
47
47
|
flexBasis?: string | undefined;
|
|
48
48
|
flexGrow?: 0 | 1 | undefined;
|
|
49
49
|
flexShrink?: 0 | 1 | undefined;
|
|
50
50
|
order?: number | undefined;
|
|
51
51
|
background?: import("./components/layout/Box/types").BackgroundLevel | undefined;
|
|
52
|
-
padding?: "
|
|
52
|
+
padding?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
53
53
|
} & {
|
|
54
54
|
gap: string;
|
|
55
55
|
}, "gap">;
|
|
@@ -59,14 +59,14 @@ export declare const PlaceholderContent: import("styled-components").StyledCompo
|
|
|
59
59
|
flexDirection?: import("./components/layout/Box/types").FlexDirection | undefined;
|
|
60
60
|
flexWrap?: import("./components/layout/Box/types").FlexWrap | undefined;
|
|
61
61
|
justifyContent?: import("./components/layout/Box/types").JustifyContent | undefined;
|
|
62
|
-
gap?: "
|
|
62
|
+
gap?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
63
63
|
alignSelf?: import("./components/layout/Box/types").AlignSelf | undefined;
|
|
64
64
|
flexBasis?: string | undefined;
|
|
65
65
|
flexGrow?: 0 | 1 | undefined;
|
|
66
66
|
flexShrink?: 0 | 1 | undefined;
|
|
67
67
|
order?: number | undefined;
|
|
68
68
|
background?: import("./components/layout/Box/types").BackgroundLevel | undefined;
|
|
69
|
-
padding?: "
|
|
69
|
+
padding?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
|
|
70
70
|
} & {
|
|
71
71
|
flexDirection: string;
|
|
72
72
|
gap: string;
|
|
@@ -81,4 +81,4 @@ export declare const SpatialLink: import("styled-components").StyledComponent<"a
|
|
|
81
81
|
target: "_blank";
|
|
82
82
|
rel: "noreferrer";
|
|
83
83
|
title: "Spatial";
|
|
84
|
-
}, "title" | "
|
|
84
|
+
}, "title" | "href" | "target" | "rel">;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/ui-library",
|
|
3
3
|
"description": "OpenFin UI Component Library",
|
|
4
|
-
"version": "0.15.2-alpha.
|
|
4
|
+
"version": "0.15.2-alpha.1683230507",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"repository": "github:openfin/ui-library",
|
|
8
8
|
"homepage": "https://openfin-ui.netlify.app",
|
|
9
|
+
"sideEffects": false,
|
|
9
10
|
"files": [
|
|
10
11
|
"dist/**/*"
|
|
11
12
|
],
|
|
@@ -175,7 +176,10 @@
|
|
|
175
176
|
},
|
|
176
177
|
"testEnvironment": "jsdom",
|
|
177
178
|
"testMatch": [
|
|
178
|
-
"<rootDir>/src/**/*.test.tsx"
|
|
179
|
+
"<rootDir>/src/**/*.test.tsx",
|
|
180
|
+
"<rootDir>/src/**/*.test.ts",
|
|
181
|
+
"<rootDir>/src/**/*.spec.ts",
|
|
182
|
+
"<rootDir>/src/**/*.spec.tsx"
|
|
179
183
|
]
|
|
180
184
|
}
|
|
181
185
|
}
|