groundfloor-react-ui 1.0.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/README.md +20 -0
- package/assets/fonts/Averta/Averta-Black.woff2 +0 -0
- package/assets/fonts/Averta/Averta-BlackItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Bold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-BoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraBold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraBoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraThin.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraThinItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Light.woff2 +0 -0
- package/assets/fonts/Averta/Averta-LightItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Regular.woff2 +0 -0
- package/assets/fonts/Averta/Averta-RegularItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-SemiBold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-SemiBoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Thin.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ThinItalic.woff2 +0 -0
- package/assets/fonts/Beauty/BeautyDemo.woff +0 -0
- package/assets/icons/app-logo.svg +3 -0
- package/assets/icons/arrow-down.svg +3 -0
- package/assets/icons/arrow-rotate.svg +1 -0
- package/assets/icons/arrow-up.svg +3 -0
- package/assets/icons/bell.svg +3 -0
- package/assets/icons/check.svg +3 -0
- package/assets/icons/checkmark.svg +3 -0
- package/assets/icons/chevron-down.svg +3 -0
- package/assets/icons/chevron-left.svg +3 -0
- package/assets/icons/chevron-right.svg +3 -0
- package/assets/icons/cloud-icon.svg +3 -0
- package/assets/icons/connection.svg +3 -0
- package/assets/icons/cross-icon.svg +3 -0
- package/assets/icons/door-internal-active.svg +1 -0
- package/assets/icons/edit-icon.svg +3 -0
- package/assets/icons/ellipses-horizontal.svg +3 -0
- package/assets/icons/ellipses.svg +3 -0
- package/assets/icons/email.svg +3 -0
- package/assets/icons/eye-hide-view.svg +1 -0
- package/assets/icons/eye-hide.svg +1 -0
- package/assets/icons/file-attach-white.svg +3 -0
- package/assets/icons/file-attach.svg +3 -0
- package/assets/icons/functional-equation-regular.svg +147 -0
- package/assets/icons/hamburger-menu.svg +3 -0
- package/assets/icons/heart.svg +18 -0
- package/assets/icons/image.svg +3 -0
- package/assets/icons/info.svg +3 -0
- package/assets/icons/jpg-icon.svg +3 -0
- package/assets/icons/magnifier.svg +3 -0
- package/assets/icons/menu-ellipse-two.svg +1 -0
- package/assets/icons/menu-ellipse.svg +53 -0
- package/assets/icons/pause-all.svg +1 -0
- package/assets/icons/pdf-icon.svg +3 -0
- package/assets/icons/pen-icon.svg +3 -0
- package/assets/icons/plus-outlined.svg +3 -0
- package/assets/icons/resume.svg +1 -0
- package/assets/icons/sign-icon.svg +3 -0
- package/assets/icons/star.svg +3 -0
- package/assets/icons/trash-icon.svg +59 -0
- package/assets/icons/triangle-down.svg +3 -0
- package/assets/icons/users.svg +11 -0
- package/assets/icons/view.svg +3 -0
- package/assets/icons/watcher.svg +3 -0
- package/assets/icons/zoom-in-white.svg +1 -0
- package/assets/styles/global.css +0 -0
- package/assets/styles/global.scss +0 -0
- package/components/Accordion/Accordion.js +114 -0
- package/components/Accordion/AccordionSB.js +168 -0
- package/components/Accordion/AccordionSBfooter.js +171 -0
- package/components/Accordion/index.js +4 -0
- package/components/ArrowBar/ArrowBar.js +293 -0
- package/components/ArrowBar/index.js +2 -0
- package/components/Avatar/Avatar.js +167 -0
- package/components/Avatar/AvatarSB.js +226 -0
- package/components/Avatar/AvatarSBfooter.js +226 -0
- package/components/Avatar/index.js +4 -0
- package/components/Banner/Banner.js +65 -0
- package/components/Banner/index.js +2 -0
- package/components/Breadcrumb/Breadcrumb.js +192 -0
- package/components/Breadcrumb/index.js +2 -0
- package/components/Button/PrimaryButton.js +125 -0
- package/components/Button/SecondaryButton.js +114 -0
- package/components/Button/TinyButton.js +94 -0
- package/components/Button/index.js +6 -0
- package/components/Cards/Card.js +48 -0
- package/components/Cards/CardRef.js +64 -0
- package/components/Cards/DocumentCard.js +221 -0
- package/components/Cards/index.js +5 -0
- package/components/Content/Content.js +51 -0
- package/components/Content/index.js +1 -0
- package/components/Divider/Divider.js +63 -0
- package/components/Divider/index.js +2 -0
- package/components/Drawer/Drawer.js +93 -0
- package/components/Drawer/index.js +2 -0
- package/components/ErrorBoundary/ErrorBoundary.js +44 -0
- package/components/ErrorBoundary/index.js +1 -0
- package/components/FilterChip/FilterChip.js +68 -0
- package/components/FilterChip/index.js +1 -0
- package/components/Footer/Footer.js +58 -0
- package/components/Footer/FooterContentLev3.js +96 -0
- package/components/Footer/index.js +2 -0
- package/components/Form/FormComponent.js +273 -0
- package/components/Form/HeaderComponent.js +39 -0
- package/components/Form/StyledComponent.js +323 -0
- package/components/Form/SubmitComponent.js +63 -0
- package/components/Form/index.js +4 -0
- package/components/GroupAvatars/GroupAvatars.js +143 -0
- package/components/GroupAvatars/index.js +1 -0
- package/components/GroupButtons/ButtonPopup.js +192 -0
- package/components/GroupButtons/GroupButtons.js +150 -0
- package/components/GroupButtons/GroupButtonsPopup.js +169 -0
- package/components/GroupButtons/index.js +3 -0
- package/components/GroupStatusCircle/GroupStatusCircle.js +135 -0
- package/components/GroupStatusCircle/index.js +1 -0
- package/components/Header/Header.js +58 -0
- package/components/Header/index.js +1 -0
- package/components/HyperLink/HyperLink.js +114 -0
- package/components/HyperLink/index.js +1 -0
- package/components/Icon/Icon.js +161 -0
- package/components/Icon/index.js +1 -0
- package/components/Images/Image.js +112 -0
- package/components/Images/index.js +2 -0
- package/components/Inputs/CheckBoxEditableInput.js +352 -0
- package/components/Inputs/CheckBoxInput.js +195 -0
- package/components/Inputs/CheckBoxInputMS.js +160 -0
- package/components/Inputs/DateSelect.js +411 -0
- package/components/Inputs/DropdownSelect.js +466 -0
- package/components/Inputs/DropzoneInput.js +335 -0
- package/components/Inputs/NumericInput.js +155 -0
- package/components/Inputs/RadioInput.js +205 -0
- package/components/Inputs/SearchInput.js +18 -0
- package/components/Inputs/Signature.js +278 -0
- package/components/Inputs/TextArea.js +196 -0
- package/components/Inputs/TextInput.js +182 -0
- package/components/Inputs/TextInputClicable.js +198 -0
- package/components/Inputs/TextInputClicableMS.js +255 -0
- package/components/Inputs/TimeInput.js +181 -0
- package/components/Inputs/ToggleSwitch.js +123 -0
- package/components/Inputs/index.js +13 -0
- package/components/Label/Label.js +48 -0
- package/components/Label/index.js +1 -0
- package/components/Loaders/Loader.js +179 -0
- package/components/Loaders/index.js +2 -0
- package/components/Modal/Modal.js +116 -0
- package/components/Modal/ModalComp.js +158 -0
- package/components/Modal/index.js +2 -0
- package/components/Overlay/Overlay.js +159 -0
- package/components/Overlay/index.js +1 -0
- package/components/Pagination/Pagination.js +83 -0
- package/components/Pagination/index.js +1 -0
- package/components/ProgressBar/ProgressBar.js +84 -0
- package/components/ProgressBar/index.js +1 -0
- package/components/ProgressSteps/ProgressSteps.js +121 -0
- package/components/ProgressSteps/index.js +1 -0
- package/components/Rating/Rating.js +264 -0
- package/components/Rating/index.js +1 -0
- package/components/SecondaryLink/DarkSecondaryLink.js +97 -0
- package/components/SecondaryLink/LightSecondaryLink.js +93 -0
- package/components/SecondaryLink/index.js +3 -0
- package/components/Sidebar/Navbar.js +328 -0
- package/components/Sidebar/Sidebar.js +180 -0
- package/components/Sidebar/index.js +3 -0
- package/components/StatusChip/PrimaryStatusChip.js +78 -0
- package/components/StatusChip/SecondaryStatusChip.js +78 -0
- package/components/StatusChip/SlimPrimaryStatusChip.js +92 -0
- package/components/StatusChip/SlimSecondaryStatusChip.js +93 -0
- package/components/StatusChip/index.js +6 -0
- package/components/StatusCircle/StatusCircle.js +64 -0
- package/components/StatusCircle/index.js +1 -0
- package/components/Tables/Table.js +156 -0
- package/components/Tables/index.js +1 -0
- package/components/Tooltip/Tooltip.js +479 -0
- package/components/Tooltip/index.js +1 -0
- package/components/Typography/Typography.js +78 -0
- package/components/Typography/index.js +2 -0
- package/components/constants/colors.js +33 -0
- package/components/constants/defaultStyle.js +781 -0
- package/components/constants/defaultThemeColor.js +15 -0
- package/components/constants/index.js +7 -0
- package/components/constants/utils.js +31 -0
- package/components/global/FontStyle.js +131 -0
- package/components/global/index.js +1 -0
- package/dist/index.es.js +2302 -0
- package/dist/index.js +2302 -0
- package/index.js +40 -0
- package/package.json +67 -0
- package/rollup.config.js +53 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { primaryColor, uiColor, neutralColor, shadeColor, graphColor } from "./colors";
|
|
2
|
+
|
|
3
|
+
const defaultThemeColor = {
|
|
4
|
+
primary: { ...primaryColor },
|
|
5
|
+
ui: { ...uiColor },
|
|
6
|
+
neutral: { ...neutralColor },
|
|
7
|
+
shade: { ...shadeColor },
|
|
8
|
+
graph: { ...graphColor },
|
|
9
|
+
variant: { ...primaryColor, ...uiColor, ...neutralColor, ...shadeColor, ...graphColor },
|
|
10
|
+
textColor: primaryColor['primary-2'],
|
|
11
|
+
bgColor: '#FFFFFF', /**background color */
|
|
12
|
+
black: '#000000'
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default defaultThemeColor;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const getDefaultStyles = (theme, type) => {
|
|
2
|
+
if (theme) {
|
|
3
|
+
let tempObj = {};
|
|
4
|
+
if (theme[type]) {
|
|
5
|
+
for (const property in theme[type]) {
|
|
6
|
+
tempObj[property] = theme[type][property]
|
|
7
|
+
delete theme.common[property]
|
|
8
|
+
}
|
|
9
|
+
for (const property in theme['common']) {
|
|
10
|
+
tempObj[property] = theme['common'][property]
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return tempObj;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function hexToRGB(hex, alpha) {
|
|
18
|
+
var r = parseInt(hex.slice(1, 3), 16),
|
|
19
|
+
g = parseInt(hex.slice(3, 5), 16),
|
|
20
|
+
b = parseInt(hex.slice(5, 7), 16);
|
|
21
|
+
|
|
22
|
+
if (alpha) {
|
|
23
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
|
24
|
+
} else {
|
|
25
|
+
return "rgb(" + r + ", " + g + ", " + b + ")";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
hexToRGB('#FF0000', 0.5);
|
|
30
|
+
|
|
31
|
+
export default getDefaultStyles;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { createGlobalStyle } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
import AvertaExtraThin from '../../assets/fonts/Averta/Averta-ExtraThin.woff2';
|
|
4
|
+
import AvertaThin from '../../assets/fonts/Averta/Averta-Thin.woff2';
|
|
5
|
+
import AvertaLight from '../../assets/fonts/Averta/Averta-Light.woff2';
|
|
6
|
+
import AvertaRegular from '../../assets/fonts/Averta/Averta-Regular.woff2';
|
|
7
|
+
import AvertaSemiBold from '../../assets/fonts/Averta/Averta-SemiBold.woff2';
|
|
8
|
+
import AvertaBold from '../../assets/fonts/Averta/Averta-Bold.woff2';
|
|
9
|
+
import AvertaExtraBold from '../../assets/fonts/Averta/Averta-ExtraBold.woff2';
|
|
10
|
+
import AvertaBlack from '../../assets/fonts/Averta/Averta-Black.woff2';
|
|
11
|
+
import AvertaExtraThinItalic from '../../assets/fonts/Averta/Averta-ExtraThinItalic.woff2';
|
|
12
|
+
import AvertaThinItalic from '../../assets/fonts/Averta/Averta-ThinItalic.woff2';
|
|
13
|
+
import AvertaLightItalic from '../../assets/fonts/Averta/Averta-LightItalic.woff2';
|
|
14
|
+
import AvertaRegularItalic from '../../assets/fonts/Averta/Averta-RegularItalic.woff2';
|
|
15
|
+
import AvertaSemiBoldItalic from '../../assets/fonts/Averta/Averta-SemiBoldItalic.woff2';
|
|
16
|
+
import AvertaBoldItalic from '../../assets/fonts/Averta/Averta-BoldItalic.woff2';
|
|
17
|
+
import AvertaExtraBoldItalic from '../../assets/fonts/Averta/Averta-ExtraBoldItalic.woff2';
|
|
18
|
+
import AvertaBlackItalic from '../../assets/fonts/Averta/Averta-BlackItalic.woff2';
|
|
19
|
+
import BeautyDemo from '../../assets/fonts/Beauty/BeautyDemo.woff';
|
|
20
|
+
|
|
21
|
+
const GlobalFontStyle = createGlobalStyle`
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: "Averta";
|
|
24
|
+
font-weight: 100;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
src: url(${AvertaExtraThin}) format("woff2");
|
|
27
|
+
}
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: "Averta";
|
|
30
|
+
font-weight: 200;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
src: url(${AvertaThin}) format("woff2");
|
|
33
|
+
}
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: "Averta";
|
|
36
|
+
font-weight: 300;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
src: url(${AvertaLight}) format("woff2");
|
|
39
|
+
}
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: "Averta";
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
src: url(${AvertaRegular}) format("woff2");
|
|
45
|
+
}
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: "Averta";
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
src: url(${AvertaSemiBold}) format("woff2");
|
|
51
|
+
}
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "Averta";
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
src: url(${AvertaBold}) format("woff2");
|
|
57
|
+
}
|
|
58
|
+
@font-face {
|
|
59
|
+
font-family: "Averta";
|
|
60
|
+
font-weight: 800;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
src: url(${AvertaExtraBold}) format("woff2");
|
|
63
|
+
}
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: "Averta";
|
|
66
|
+
font-weight: 900;
|
|
67
|
+
font-style: normal;
|
|
68
|
+
src: url(${AvertaBlack}) format("woff2");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: "Averta";
|
|
73
|
+
font-weight: 100;
|
|
74
|
+
font-style: italic;
|
|
75
|
+
src: url(${AvertaExtraThinItalic}) format("woff2");
|
|
76
|
+
}
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: "Averta";
|
|
79
|
+
font-weight: 200;
|
|
80
|
+
font-style: italic;
|
|
81
|
+
src: url(${AvertaThinItalic}) format("woff2");
|
|
82
|
+
}
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: "Averta";
|
|
85
|
+
font-weight: 300;
|
|
86
|
+
font-style: italic;
|
|
87
|
+
src: url(${AvertaLightItalic}) format("woff2");
|
|
88
|
+
}
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: "Averta";
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
font-style: italic;
|
|
93
|
+
src: url(${AvertaRegularItalic}) format("woff2");
|
|
94
|
+
}
|
|
95
|
+
@font-face {
|
|
96
|
+
font-family: "Averta";
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
font-style: italic;
|
|
99
|
+
src: url(${AvertaSemiBoldItalic}) format("woff2");
|
|
100
|
+
}
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: "Averta";
|
|
103
|
+
font-weight: 700;
|
|
104
|
+
font-style: italic;
|
|
105
|
+
src: url(${AvertaBoldItalic}) format("woff2");
|
|
106
|
+
}
|
|
107
|
+
@font-face {
|
|
108
|
+
font-family: "Averta";
|
|
109
|
+
font-weight: 800;
|
|
110
|
+
font-style: italic;
|
|
111
|
+
src: url(${AvertaExtraBoldItalic}) format("woff2");
|
|
112
|
+
}
|
|
113
|
+
@font-face {
|
|
114
|
+
font-family: "Averta";
|
|
115
|
+
font-weight: 900;
|
|
116
|
+
font-style: italic;
|
|
117
|
+
src: url(${AvertaBlackItalic}) format("woff2");
|
|
118
|
+
}
|
|
119
|
+
@font-face {
|
|
120
|
+
font-family: "Beauty";
|
|
121
|
+
font-weight: normal;
|
|
122
|
+
font-style: normal;
|
|
123
|
+
src: url(${BeautyDemo}) format("woff");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
* {
|
|
127
|
+
font-family: "Averta";
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
export default GlobalFontStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FontStyle";
|