Skip to content

Commit a490f9b

Browse files
committed
update project structure
1 parent 93c1be8 commit a490f9b

File tree

121 files changed

+4859
-4102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+4859
-4102
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ node_modules
77
/coverage
88

99
# production
10-
/build
10+
build
1111

1212
# npm Package
13-
/dist
13+
dist
1414
components.js
1515
svg.js
1616
theme.js
File renamed without changes.

packages/eva-icon/README.md packages/icons/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# What is `@paljs/eva-icon`?
1+
# What is `@paljs/icons`?
22

33
Small tool to get [eva-icon](https://akveo.github.io/eva-icons) package ready to use in [@paljs/ui](https://github.com/paljs/ui) package
44

packages/eva-icon/package.json packages/icons/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@paljs/eva-icon",
2+
"name": "@paljs/icons",
33
"version": "1.0.0",
4-
"description": "@paljs/eva-icon package for @paljs/ui package",
4+
"description": "@paljs/icons package for @paljs/ui package",
55
"main": "dist/index.js",
6-
"module": "dist/eva-icon.esm.js",
6+
"module": "dist/icons.esm.js",
77
"types": "dist/index.d.ts",
88
"repository": "https://github.com/paljs/ui.git",
99
"author": "Ahmed Elywa <[email protected]> (https://github.com/paljs/ui)",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/theme/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# What is `@paljs/icons`?
2+
3+
Small tool to get [eva-icon](https://akveo.github.io/eva-icons) package ready to use in [@paljs/ui](https://github.com/paljs/ui) package
4+
5+
## Have questions?
6+
7+
Didn't find something here? Look through the [issues](https://github.com/paljs/ui/issues) or simply drop us a line at <[email protected]>.

packages/theme/package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@paljs/theme",
3+
"version": "1.0.0",
4+
"main": "dist/index.js",
5+
"module": "dist/theme.esm.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"test": "cross-env CI=1 react-scripts test --env=jsdom",
9+
"test:watch": "react-scripts test --env=jsdom",
10+
"build": "tsdx build --transpileOnly",
11+
"prepack": "yarn build",
12+
"start": "tsdx watch"
13+
},
14+
"dependencies": {
15+
}
16+
}

packages/theme/src/corporate.ts

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* @license
3+
* Copyright Ahmed Elywa. All Rights Reserved.
4+
* Licensed under the MIT License. See License.txt in the project root for license information.
5+
*/
6+
7+
import { ThemeObject } from "./themeTypes";
8+
9+
const corporate: Partial<ThemeObject> = {
10+
borderRadius: "0.17rem",
11+
shadow: "none",
12+
13+
buttonHeroGlowSize: "0 0 20px 0",
14+
15+
cardBorderWidth: "1px",
16+
cardBorderColor: "borderBasicColor4",
17+
18+
contextMenuBorderWidth: "1px",
19+
contextMenuBorderColor: "borderBasicColor4",
20+
21+
popoverBorderWidth: "1px",
22+
popoverBorderColor: "borderBasicColor4",
23+
24+
tabsetBorderRadius: "borderRadius",
25+
routeTabsetBorderRadius: "borderRadius",
26+
userRectangleBorderRadius: "borderRadius",
27+
checkboxBorderRadius: "borderRadius",
28+
29+
tabsetShadow: "none",
30+
routeTabsetShadow: "none",
31+
buttonHeroShadow: "none",
32+
alertShadow: "none",
33+
accordionShadow: "none",
34+
35+
selectOptionsListBorderWidth: "0.0625rem",
36+
selectOutlineBasicOpenBorderColor: "selectOptionsListOutlineBasicBorderColor",
37+
selectOutlinePrimaryOpenBorderColor:
38+
"selectOptionsListOutlinePrimaryBorderColor",
39+
selectOutlineSuccessOpenBorderColor:
40+
"selectOptionsListOutlineSuccessBorderColor",
41+
selectOutlineInfoOpenBorderColor: "selectOptionsListOutlineInfoBorderColor",
42+
selectOutlineWarningOpenBorderColor:
43+
"selectOptionsListOutlineWarningBorderColor",
44+
selectOutlineDangerOpenBorderColor:
45+
"selectOptionsListOutlineDangerBorderColor",
46+
selectOutlineControlOpenBorderColor:
47+
"selectOptionsListOutlineControlBorderColor",
48+
};
49+
50+
export default corporate;

packages/theme/src/cosmic.ts

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* @license
3+
* Copyright Ahmed Elywa. All Rights Reserved.
4+
* Licensed under the MIT License. See License.txt in the project root for license information.
5+
*/
6+
7+
import { ThemeObject } from "./themeTypes";
8+
9+
const cosmic: Partial<ThemeObject> = {
10+
colorPrimary100: "#faf7ff",
11+
colorPrimary200: "#ece3ff",
12+
colorPrimary300: "#d5bfff",
13+
colorPrimary400: "#b18aff",
14+
colorPrimary500: "#a16eff",
15+
colorPrimary600: "#7b51db",
16+
colorPrimary700: "#5a37b8",
17+
colorPrimary800: "#3e2494",
18+
colorPrimary900: "#29157a",
19+
20+
colorPrimaryTransparent100: "rgba(161, 110, 255, 0.08)",
21+
colorPrimaryTransparent200: "rgba(161, 110, 255, 0.16)",
22+
colorPrimaryTransparent300: "rgba(161, 110, 255, 0.24)",
23+
colorPrimaryTransparent400: "rgba(161, 110, 255, 0.32)",
24+
colorPrimaryTransparent500: "rgba(161, 110, 255, 0.4)",
25+
colorPrimaryTransparent600: "rgba(161, 110, 255, 0.48)",
26+
27+
colorBasic100: "#ffffff",
28+
colorBasic200: "#f7f7fc",
29+
colorBasic300: "#f0f0fa",
30+
colorBasic400: "#e1e1f2",
31+
colorBasic500: "#ceceeb",
32+
colorBasic600: "#b4b4db",
33+
colorBasic700: "#6a6a94",
34+
colorBasic800: "#323259",
35+
colorBasic900: "#252547",
36+
colorBasic1000: "#1b1b38",
37+
colorBasic1100: "#13132b",
38+
39+
colorBasicTransparent100: "rgba(180, 180, 219, 0.08)",
40+
colorBasicTransparent200: "rgba(180, 180, 219, 0.16)",
41+
colorBasicTransparent300: "rgba(180, 180, 219, 0.24)",
42+
colorBasicTransparent400: "rgba(180, 180, 219, 0.32)",
43+
colorBasicTransparent500: "rgba(180, 180, 219, 0.4)",
44+
colorBasicTransparent600: "rgba(180, 180, 219, 0.48)",
45+
};
46+
47+
export default cosmic;

packages/theme/src/dark.ts

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* @license
3+
* Copyright Ahmed Elywa. All Rights Reserved.
4+
* Licensed under the MIT License. See License.txt in the project root for license information.
5+
*/
6+
7+
import { ThemeObject } from "./themeTypes";
8+
9+
const dark: Partial<ThemeObject> = {
10+
backgroundBasicColor1: "colorBasic800",
11+
backgroundBasicColor2: "colorBasic900",
12+
backgroundBasicColor3: "colorBasic1000",
13+
backgroundBasicColor4: "colorBasic1100",
14+
15+
borderBasicColor1: "colorBasic800",
16+
borderBasicColor2: "colorBasic900",
17+
borderBasicColor3: "colorBasic1000",
18+
borderBasicColor4: "colorBasic1100",
19+
borderBasicColor5: "colorBasic1100",
20+
21+
backgroundAlternativeColor1: "colorBasic100",
22+
backgroundAlternativeColor2: "colorBasic200",
23+
backgroundAlternativeColor3: "colorBasic300",
24+
backgroundAlternativeColor4: "colorBasic400",
25+
26+
borderAlternativeColor1: "colorBasic100",
27+
borderAlternativeColor2: "colorBasic200",
28+
borderAlternativeColor3: "colorBasic300",
29+
borderAlternativeColor4: "colorBasic400",
30+
borderAlternativeColor5: "colorBasic500",
31+
32+
textBasicColor: "colorBasic100",
33+
textAlternateColor: "colorBasic900",
34+
textControlColor: "colorBasic100",
35+
textDisabledColor: "colorBasicTransparent600",
36+
textHintColor: "colorBasic600",
37+
38+
shadow: "0 0.5rem 1rem 0 #1a1f33",
39+
outlineColor: "colorBasic700",
40+
};
41+
42+
export default dark;

0 commit comments

Comments
 (0)