@clicoh/orion-library 0.2.28
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 +36 -0
- package/assets/css/base.css +40 -0
- package/assets/favicon.ico +0 -0
- package/assets/icons/logoPlatform.svg +5 -0
- package/assets/images/login-clicoh.jpg +0 -0
- package/assets/images/login-wms.jpg +0 -0
- package/index.d.ts +6 -0
- package/index.js +6 -0
- package/package.json +71 -0
- package/tailwind.config.ts +97 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
|
2
|
+
|
|
3
|
+
## Getting Started
|
|
4
|
+
|
|
5
|
+
First, run the development server:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm run dev
|
|
9
|
+
# or
|
|
10
|
+
yarn dev
|
|
11
|
+
# or
|
|
12
|
+
pnpm dev
|
|
13
|
+
# or
|
|
14
|
+
bun dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
18
|
+
|
|
19
|
+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
20
|
+
|
|
21
|
+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
|
|
22
|
+
|
|
23
|
+
## Learn More
|
|
24
|
+
|
|
25
|
+
To learn more about Next.js, take a look at the following resources:
|
|
26
|
+
|
|
27
|
+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
28
|
+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
29
|
+
|
|
30
|
+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
|
|
31
|
+
|
|
32
|
+
## Deploy on Vercel
|
|
33
|
+
|
|
34
|
+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
35
|
+
|
|
36
|
+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@import 'react-toastify/dist/ReactToastify.min.css';
|
|
2
|
+
|
|
3
|
+
@tailwind base;
|
|
4
|
+
@tailwind components;
|
|
5
|
+
@tailwind utilities;
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--color-white: #ffffff;
|
|
9
|
+
--color-black: #222329;
|
|
10
|
+
--body-text-color: var(--color-black);
|
|
11
|
+
--body-bg-color: var(--color-white);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
:root {
|
|
17
|
+
--body-text-color: var(--color-white);
|
|
18
|
+
--body-bg-color: var(--color-black);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body {
|
|
28
|
+
color: var(--body-text-color);
|
|
29
|
+
background: var(--body-bg-color);
|
|
30
|
+
@apply text-sm;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.Toastify__toast-icon {
|
|
34
|
+
width: 24px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.Toastify__close-button {
|
|
39
|
+
align-self: center;
|
|
40
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="191" height="150" viewBox="0 0 191 150" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M109.137 86.0407V49.9962H157.433V71.9973H174.601V0H157.433V32.0302H109.137V0H91.9727V106.299H109.141L109.137 86.0407Z" fill="#D2D2D2"/>
|
|
3
|
+
<path d="M42.248 87.2126C50.4673 87.097 58.4704 84.4419 65.2509 79.5813C72.0314 74.7207 77.2865 67.8715 80.3553 59.8952C83.4242 51.9189 84.1699 43.1715 82.4985 34.7531C80.8271 26.3347 76.8133 18.6212 70.9619 12.5825C65.1105 6.54386 57.6827 2.44968 49.6126 0.814879C41.5425 -0.819919 33.1904 0.0776978 25.6067 3.39474C18.023 6.71178 11.5462 12.3002 6.9909 19.4572C2.43561 26.6143 0.00517162 35.0203 0.00521203 43.6183C-0.0831725 49.4188 0.953368 55.178 3.05222 60.5478C5.15107 65.9177 8.26868 70.7868 12.2168 74.8612C16.1649 78.9357 20.8616 82.1308 26.0232 84.2537C31.1848 86.3766 36.7041 87.3831 42.248 87.2126ZM42.248 16.8086C47.3657 16.5694 52.4347 17.9382 56.8022 20.7388C61.1696 23.5394 64.6354 27.6434 66.7533 32.5224C68.8712 37.4014 69.5441 42.8319 68.6854 48.1145C67.8268 53.397 65.4758 58.2897 61.9353 62.1624C58.3948 66.0352 53.827 68.7105 48.8201 69.8439C43.8132 70.9774 38.5965 70.517 33.842 68.5221C29.0874 66.5272 25.0127 63.0891 22.1427 58.6507C19.2726 54.2122 17.7387 48.9767 17.7383 43.6183C17.6301 40.1654 18.1818 36.7247 19.3612 33.4978C20.5406 30.2708 22.3239 27.3225 24.6065 24.8256C26.8892 22.3288 29.6253 20.3336 32.6546 18.9569C35.6839 17.5803 38.9454 16.8499 42.248 16.8086Z" fill="#D2D2D2"/>
|
|
4
|
+
<path d="M174.497 80.293H145.593V97.5602H164.006C155.291 107.681 144.858 116.025 133.236 122.169C113.694 132.479 91.55 136.109 69.9293 132.547C48.3086 128.986 28.303 118.412 12.7361 102.319L0.769531 111.753C12.1318 123.941 25.7574 133.568 40.8083 140.043C55.8592 146.519 72.0174 149.706 88.2894 149.408C104.561 149.111 120.603 145.335 135.428 138.313C150.254 131.29 163.549 121.171 174.497 108.575V127.798H191.001V80.293H174.497Z" fill="#D2D2D2"/>
|
|
5
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clicoh/orion-library",
|
|
3
|
+
"version": "0.2.28",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc --project tsconfig.components.json",
|
|
7
|
+
"format": "prettier --write src",
|
|
8
|
+
"storybook": "storybook dev -p 6006 --ci",
|
|
9
|
+
"build-storybook": "storybook build",
|
|
10
|
+
"next:dev": "next dev",
|
|
11
|
+
"next:build": "next build",
|
|
12
|
+
"next:start": "next start",
|
|
13
|
+
"next:lint": "next lint"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@floating-ui/react": "0.26.19",
|
|
17
|
+
"clsx": "2.1.1",
|
|
18
|
+
"next": "14.0.4",
|
|
19
|
+
"react": "18.3.1",
|
|
20
|
+
"react-dom": "18.3.1",
|
|
21
|
+
"react-icons": "5.2.1",
|
|
22
|
+
"react-toastify": "10.0.5",
|
|
23
|
+
"swr": "2.2.5",
|
|
24
|
+
"zustand": "4.5.2"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@storybook/addon-a11y": "7.6.20",
|
|
28
|
+
"@storybook/addon-essentials": "7.6.20",
|
|
29
|
+
"@storybook/addon-interactions": "7.6.20",
|
|
30
|
+
"@storybook/addon-links": "7.6.20",
|
|
31
|
+
"@storybook/addon-onboarding": "1.0.11",
|
|
32
|
+
"@storybook/blocks": "7.6.20",
|
|
33
|
+
"@storybook/nextjs": "7.6.20",
|
|
34
|
+
"@storybook/react": "7.6.20",
|
|
35
|
+
"@storybook/test": "7.6.20",
|
|
36
|
+
"@types/copyfiles": "2",
|
|
37
|
+
"@types/node": "20",
|
|
38
|
+
"@types/react": "18.3.1",
|
|
39
|
+
"@types/react-dom": "18.3.1",
|
|
40
|
+
"@types/tailwindcss": "3.1.0",
|
|
41
|
+
"autoprefixer": "10.4.19",
|
|
42
|
+
"eslint": "8",
|
|
43
|
+
"eslint-config-next": "14.0.4",
|
|
44
|
+
"eslint-config-prettier": "9.1.0",
|
|
45
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
46
|
+
"eslint-plugin-storybook": "0.6.15",
|
|
47
|
+
"husky": "8.0.3",
|
|
48
|
+
"lint-staged": "15.2.7",
|
|
49
|
+
"postcss": "8",
|
|
50
|
+
"prettier": "3.3.2",
|
|
51
|
+
"prettier-plugin-tailwindcss": "0.6.8",
|
|
52
|
+
"storybook": "7.6.20",
|
|
53
|
+
"tailwindcss": "3.4.4",
|
|
54
|
+
"typescript": "5.5.4"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=22.0.0"
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"index.js",
|
|
61
|
+
"index.d.ts",
|
|
62
|
+
"tailwind.config.ts",
|
|
63
|
+
"dist",
|
|
64
|
+
"assets"
|
|
65
|
+
],
|
|
66
|
+
"types": "./index.d.ts",
|
|
67
|
+
"description": "UI component library for react.js and next.js from the Clicoh company",
|
|
68
|
+
"keywords": [],
|
|
69
|
+
"author": "",
|
|
70
|
+
"license": "ISC"
|
|
71
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { Config } from 'tailwindcss';
|
|
2
|
+
import colors from 'tailwindcss/colors';
|
|
3
|
+
|
|
4
|
+
const config: Config = {
|
|
5
|
+
content: [
|
|
6
|
+
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
7
|
+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
8
|
+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
9
|
+
],
|
|
10
|
+
theme: {
|
|
11
|
+
colors: {
|
|
12
|
+
white: colors.white,
|
|
13
|
+
transparent: 'transparent',
|
|
14
|
+
current: 'currentColor',
|
|
15
|
+
black: {
|
|
16
|
+
DEFAULT: '#222329',
|
|
17
|
+
1: '#121214',
|
|
18
|
+
2: '#0E0E10',
|
|
19
|
+
},
|
|
20
|
+
gray: {
|
|
21
|
+
1: '#616265',
|
|
22
|
+
2: '#A5A5A7',
|
|
23
|
+
3: '#B9BABB',
|
|
24
|
+
4: '#D2D2D2',
|
|
25
|
+
5: '#E9EAEA',
|
|
26
|
+
6: '#F2F2F2',
|
|
27
|
+
7: '#FBFCFC',
|
|
28
|
+
},
|
|
29
|
+
lavender: {
|
|
30
|
+
DEFAULT: '#6A5DF9',
|
|
31
|
+
1: '#E1DFFE',
|
|
32
|
+
2: '#F0EFFE',
|
|
33
|
+
3: '#F8F7FF',
|
|
34
|
+
dark: '#6896FF',
|
|
35
|
+
'dark-1': '#303A54',
|
|
36
|
+
},
|
|
37
|
+
error: {
|
|
38
|
+
DEFAULT: '#DF3C3C',
|
|
39
|
+
1: '#FCEAEA',
|
|
40
|
+
dark: '#DF3C3C',
|
|
41
|
+
'dark-1': '#4E2C2F',
|
|
42
|
+
},
|
|
43
|
+
warning: {
|
|
44
|
+
DEFAULT: '#FFC34C',
|
|
45
|
+
1: '#FFF3DB',
|
|
46
|
+
dark: '#FFCC67',
|
|
47
|
+
'dark-1': '#4E4330',
|
|
48
|
+
},
|
|
49
|
+
success: {
|
|
50
|
+
DEFAULT: '#16A34A',
|
|
51
|
+
1: '#E8F6ED',
|
|
52
|
+
dark: '#22C55E',
|
|
53
|
+
'dark-1': '#264936',
|
|
54
|
+
},
|
|
55
|
+
info: {
|
|
56
|
+
DEFAULT: '#297EFF',
|
|
57
|
+
1: '#E9F2FF',
|
|
58
|
+
dark: '#5498FF',
|
|
59
|
+
'dark-1': '#233554',
|
|
60
|
+
},
|
|
61
|
+
teal: {
|
|
62
|
+
DEFAULT: '#25DEC8',
|
|
63
|
+
1: '#E8FCFA',
|
|
64
|
+
dark: '#25DEC8',
|
|
65
|
+
'dark-1': '#234849',
|
|
66
|
+
},
|
|
67
|
+
lime: {
|
|
68
|
+
DEFAULT: '#C4F33C',
|
|
69
|
+
1: '#F3FDD8',
|
|
70
|
+
dark: '#C4F33C',
|
|
71
|
+
'dark-1': '#424D2D',
|
|
72
|
+
},
|
|
73
|
+
pink: {
|
|
74
|
+
DEFAULT: '#F144D6',
|
|
75
|
+
1: '#FEECFB',
|
|
76
|
+
dark: '#F144D6',
|
|
77
|
+
'dark-1': '#222329',
|
|
78
|
+
},
|
|
79
|
+
violet: {
|
|
80
|
+
DEFAULT: '#C854E4',
|
|
81
|
+
1: '#FDF8FE',
|
|
82
|
+
dark: '#CF5DFE',
|
|
83
|
+
'dark-1': '#292532',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
extend: {
|
|
87
|
+
backgroundImage: {
|
|
88
|
+
clicoh: 'linear-gradient(135deg, #6A5DF9, #C854E4)',
|
|
89
|
+
'brand-shipping': 'linear-gradient(135deg, #5683DD, #8EE3C6)',
|
|
90
|
+
'brand-full': 'linear-gradient(135deg, #CFBDB2, #CF86F4)',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
plugins: [],
|
|
95
|
+
darkMode: ['class'],
|
|
96
|
+
};
|
|
97
|
+
export default config;
|