@onewelcome/react-lib-components 1.9.2 → 2.0.0-alpha
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/_BaseStyling_/BaseStyling.d.ts +3 -3
- package/dist/react-lib-components.cjs.development.js +6 -6
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +6 -6
- package/dist/react-lib-components.esm.js.map +1 -1
- package/package.json +15 -15
- package/src/Form/FileUpload/FileItem/FileItem.modules.scss +1 -1
- package/src/Form/FileUpload/FileUpload.module.scss +1 -1
- package/src/Form/FileUpload/FileUpload.tsx +3 -1
- package/src/Form/Select/Select.test.tsx +66 -22
- package/src/Tabs/Tabs.test.tsx +1 -1
- package/src/Tiles/Tile.test.tsx +10 -4
- package/src/Tooltip/Tooltip.test.tsx +5 -3
- package/src/_BaseStyling_/BaseStyling.tsx +9 -9
- package/src/hooks/useAnimation.test.tsx +8 -2
- package/src/util/helper.test.tsx +33 -22
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes, ReactChild } from "react";
|
|
6
6
|
interface CSSProperties {
|
|
7
|
+
colorBlack10?: string;
|
|
7
8
|
colorFocus?: string;
|
|
8
9
|
colorPrimary?: string;
|
|
9
10
|
colorSecondary?: string;
|
|
10
11
|
colorTertiary?: string;
|
|
11
|
-
lightPink?: string;
|
|
12
|
-
vividViolet?: string;
|
|
13
12
|
colorPrimary300?: string;
|
|
14
13
|
colorPrimary500?: string;
|
|
15
14
|
colorPrimary600?: string;
|
|
@@ -19,6 +18,7 @@ interface CSSProperties {
|
|
|
19
18
|
colorBlueGrey200?: string;
|
|
20
19
|
colorBlueGrey400?: string;
|
|
21
20
|
colorBlueGrey25?: string;
|
|
21
|
+
colorBlueGrey25Transparent?: string;
|
|
22
22
|
colorBlueGrey50?: string;
|
|
23
23
|
colorBlueGrey500?: string;
|
|
24
24
|
colorBlueGrey700?: string;
|
|
@@ -28,6 +28,7 @@ interface CSSProperties {
|
|
|
28
28
|
colorLightBlue600?: string;
|
|
29
29
|
colorOrange500?: string;
|
|
30
30
|
colorRed500?: string;
|
|
31
|
+
colorWhite?: string;
|
|
31
32
|
defaultLineHeight?: string;
|
|
32
33
|
buttonBorderRadius?: string;
|
|
33
34
|
buttonBorderWidth?: string;
|
|
@@ -74,7 +75,6 @@ interface CSSProperties {
|
|
|
74
75
|
lightGreyBorder?: string;
|
|
75
76
|
warning?: string;
|
|
76
77
|
light?: string;
|
|
77
|
-
grey?: string;
|
|
78
78
|
fontFamily?: string;
|
|
79
79
|
fontFamilyCode?: string;
|
|
80
80
|
fontSize?: string;
|
|
@@ -41,12 +41,14 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
41
41
|
_ref$properties = _ref.properties,
|
|
42
42
|
properties = _ref$properties === void 0 ? {} : _ref$properties;
|
|
43
43
|
var defaultProperties = {
|
|
44
|
+
colorBlack10: "#0000001a",
|
|
44
45
|
colorPrimary300: "#6871BF",
|
|
45
46
|
colorPrimary500: "#041295",
|
|
46
47
|
colorPrimary600: "#030F77",
|
|
47
48
|
colorPrimary700: "#020B59",
|
|
48
49
|
colorPrimary900: "#01041E",
|
|
49
50
|
colorBlueGrey25: "#F7F7F9",
|
|
51
|
+
colorBlueGrey25Transparent: "#F7F7F980",
|
|
50
52
|
colorBlueGrey50: "#EEEFF3",
|
|
51
53
|
colorBlueGrey100: "#DEDEE6",
|
|
52
54
|
colorBlueGrey200: "#BCBECE",
|
|
@@ -59,12 +61,11 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
59
61
|
colorLightBlue600: "#0096B1",
|
|
60
62
|
colorOrange500: "#E07900",
|
|
61
63
|
colorRed500: "#E01E00",
|
|
64
|
+
colorWhite: "#FFFFFF",
|
|
62
65
|
colorFocus: "var(--color-primary300)",
|
|
63
66
|
colorPrimary: "var(--color-primary500)",
|
|
64
67
|
colorSecondary: "var(--color-blue-grey700)",
|
|
65
68
|
colorTertiary: "var(--color-light-blue600)",
|
|
66
|
-
lightPink: "#9E006B1A",
|
|
67
|
-
vividViolet: "#9E006B",
|
|
68
69
|
defaultLineHeight: "1.5",
|
|
69
70
|
buttonBorderRadius: "2px",
|
|
70
71
|
buttonBorderWidth: "2px",
|
|
@@ -78,8 +79,8 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
78
79
|
inputBorderWidthFocus: "2px",
|
|
79
80
|
inputBorderStyle: "solid",
|
|
80
81
|
inputBackgroundColor: "var(--light)",
|
|
81
|
-
dragBackgroundColor: "
|
|
82
|
-
dragBorderStyle: "
|
|
82
|
+
dragBackgroundColor: "var(--color-blue-grey25-transparent)",
|
|
83
|
+
dragBorderStyle: "solid",
|
|
83
84
|
modalShadowColor: "rgba(0, 0, 0, 0.16)",
|
|
84
85
|
modalBackgroundColor: "var(--color-blue-grey25)",
|
|
85
86
|
modalHeaderBackgroundColor: "var(--light)",
|
|
@@ -110,8 +111,7 @@ var BaseStyling = function BaseStyling(_ref) {
|
|
|
110
111
|
greyedOut: "var(--color-blue-grey500)",
|
|
111
112
|
lightGreyBorder: "var(--color-blue-grey100)",
|
|
112
113
|
warning: "var(--color-orange500)",
|
|
113
|
-
light: "
|
|
114
|
-
grey: "#c3c3c7",
|
|
114
|
+
light: "var(--color-white)",
|
|
115
115
|
fontFamily: "Roboto, sans-serif",
|
|
116
116
|
fontFamilyCode: "'Roboto Mono', monospace",
|
|
117
117
|
fontSize: "1rem",
|