@aveonline/ui-react 1.6.1 → 1.6.2
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/atoms/Button/IButton.d.ts +1 -1
- package/dist/components/atoms/Logo/Logo.d.ts +1 -1
- package/dist/components/atoms/Typography/Link/Link.d.ts +1 -1
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/molecules/Flag/IFlag.d.ts +1 -1
- package/dist/components/organisms/Navigation/INavigation.d.ts +1 -1
- package/dist/components/templates/Main/Main.d.ts +1 -1
- package/dist/tokens.css +85 -38
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IClassName } from '
|
|
1
|
+
import { IClassName } from '../../../types';
|
|
2
2
|
import type { ReactNode, MouseEventHandler } from 'react';
|
|
3
3
|
export declare type Variant = 'primary' | 'basic' | 'destructive' | 'plain' | 'plain-monochrome' | 'plain-destructive';
|
|
4
4
|
declare type Size = 'md' | 'sm';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPropsDropdown } from './IDropdown';
|
|
2
|
-
import { IClassName } from '
|
|
2
|
+
import { IClassName } from '../../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Molecule: Dropdown
|
|
5
5
|
* Page actions let merchants take key actions at the bottom of specific pages in the interface. This is important because sometimes the primary call to action is hard to access when merchants are at the bottom of a page, that’s why this component is fixed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IKind as IKindIcon } from '@/components/atoms/Icon';
|
|
2
|
-
import { IChildren } from '
|
|
2
|
+
import { IChildren } from '../../../types';
|
|
3
3
|
declare type IKindFlag = 'default' | 'success' | 'warning' | 'error';
|
|
4
4
|
interface IPropsFlag extends IChildren {
|
|
5
5
|
icon?: IKindIcon;
|
package/dist/tokens.css
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modify directly
|
|
3
|
+
* --line-height-xl = 36
|
|
4
|
+
* --line-height-xxl = 56px - new
|
|
5
|
+
* --font-size-xxl: 50px - new
|
|
6
|
+
* --colors-letter-default: #4a4f54;
|
|
7
|
+
* --colors-letter-subdued: #797C81;
|
|
8
|
+
* --colors-letter-disabled: #c3c5ca;
|
|
9
|
+
* --colors-surface-subdued: #f3f4f6;
|
|
10
|
+
* --colors-surface-hovered: #ebedf0;
|
|
11
|
+
* --colors-surface-active: #dfe1e4;
|
|
12
|
+
* --colors-surface-pressed: #ccced1;
|
|
13
|
+
* --colors-surface-disabled: #f6f8fb;
|
|
14
|
+
* --colors-surface-action-default: #b3d7ff;
|
|
15
|
+
* --colors-surface-action-subdued: #ddeaf7;
|
|
16
|
+
* --colors-surface-action-hovered: #a4c8f0;
|
|
17
|
+
* --colors-surface-action-active: #93b7df;
|
|
18
|
+
* --colors-surface-action-disabled: #e7f4ff;
|
|
19
|
+
* --colors-surface-warning-default: #fff2c2;
|
|
20
|
+
* --colors-surface-warning-subdued: #fff7da;
|
|
21
|
+
* --colors-surface-warning-hovered: #feeca5;
|
|
22
|
+
* --colors-surface-warning-active: #ffe78f;
|
|
23
|
+
* --colors-surface-success-default: #bfe8d3;
|
|
24
|
+
* --colors-surface-success-subdued: #d0eedb;
|
|
25
|
+
* --colors-surface-success-hovered: #b3dfc2;
|
|
26
|
+
* --colors-surface-success-active: #9cd8b1;
|
|
27
|
+
* --colors-surface-critical-default: #f1c8c8;
|
|
28
|
+
* --colors-surface-critical-subdued: #fddfdf;
|
|
29
|
+
* --colors-surface-critical-hovered: #ebb3b3;
|
|
30
|
+
* --colors-surface-critical-active: #e49b9b;
|
|
31
|
+
* --colors-surface-critical-disabled: #fde7ea;
|
|
32
|
+
* --colors-action-secondary-default: #e5e7ea;
|
|
33
|
+
* --colors-action-secondary-subdued: #f0f2f5; new
|
|
34
|
+
* --colors-action-secondary-hovered: #d9dce2;
|
|
35
|
+
* --colors-action-secondary-active: #c8cbd1;
|
|
36
|
+
* --colors-action-secondary-pressed: #a8abb1;
|
|
37
|
+
* --colors-action-secondary-disabled: #f3f5f8;
|
|
38
|
+
* --colors-border-default: #dcdcdc;
|
|
39
|
+
* --colors-border-subdued: #e7e7e7;
|
|
40
|
+
* --colors-border-hovered: #d1d1d1;
|
|
41
|
+
* --colors-border-active: #c5c5c5;
|
|
42
|
+
* --colors-border-disabled: #e3e3e3;
|
|
43
|
+
*/
|
|
44
|
+
|
|
1
45
|
:root {
|
|
2
46
|
--spacing-1xl: 117px;
|
|
3
47
|
--spacing-xxl: 56px;
|
|
@@ -14,19 +58,21 @@
|
|
|
14
58
|
0px 2px 10px rgba(0, 0, 0, 0.1);
|
|
15
59
|
--box-shadow-card: 0px 2px 1px rgba(0, 0, 0, 0.05),
|
|
16
60
|
0px 0px 1px rgba(0, 0, 0, 0.25);
|
|
17
|
-
--font-family-sans: 'Circular Std';
|
|
61
|
+
--font-family-sans: 'Circular Std Book';
|
|
18
62
|
--border-radius-md: 20px;
|
|
19
63
|
--border-radius-sm: 10px;
|
|
20
64
|
--border-radius-xs: 8px;
|
|
21
65
|
--font-weight-bold: 700;
|
|
22
66
|
--font-weight-medium: 500;
|
|
23
67
|
--font-weight-book: 450;
|
|
24
|
-
--line-height-
|
|
68
|
+
--line-height-xxl: 56px;
|
|
69
|
+
--line-height-xl: 36px;
|
|
25
70
|
--line-height-lg: 32px;
|
|
26
71
|
--line-height-md: 28px;
|
|
27
72
|
--line-height-sm: 24px;
|
|
28
73
|
--line-height-xs: 20px;
|
|
29
74
|
--line-height-xxs: 16px;
|
|
75
|
+
--font-size-xxl: 50px;
|
|
30
76
|
--font-size-xl: 40px;
|
|
31
77
|
--font-size-lg: 32px;
|
|
32
78
|
--font-size-md: 28px;
|
|
@@ -69,29 +115,29 @@
|
|
|
69
115
|
--colors-surface-neutral-hovered: #cecece;
|
|
70
116
|
--colors-surface-neutral-subdued: #e8e8e8;
|
|
71
117
|
--colors-surface-neutral-default: #dddddd;
|
|
72
|
-
--colors-surface-critical-disabled: #
|
|
73
|
-
--colors-surface-critical-active: #
|
|
74
|
-
--colors-surface-critical-hovered: #
|
|
75
|
-
--colors-surface-critical-subdued: #
|
|
76
|
-
--colors-surface-critical-default: #
|
|
77
|
-
--colors-surface-success-active: #
|
|
78
|
-
--colors-surface-success-hovered: #
|
|
79
|
-
--colors-surface-success-subdued: #
|
|
80
|
-
--colors-surface-success-default: #
|
|
81
|
-
--colors-surface-warning-active: #
|
|
82
|
-
--colors-surface-warning-hovered: #
|
|
83
|
-
--colors-surface-warning-subdued: #
|
|
84
|
-
--colors-surface-warning-default: #
|
|
85
|
-
--colors-surface-action-disabled: #
|
|
86
|
-
--colors-surface-action-active: #
|
|
87
|
-
--colors-surface-action-hovered: #
|
|
88
|
-
--colors-surface-action-subdued: #
|
|
89
|
-
--colors-surface-action-default: #
|
|
90
|
-
--colors-surface-disabled: #
|
|
91
|
-
--colors-surface-pressed: #
|
|
92
|
-
--colors-surface-active: #
|
|
93
|
-
--colors-surface-hovered: #
|
|
94
|
-
--colors-surface-subdued: #
|
|
118
|
+
--colors-surface-critical-disabled: #fde7ea;
|
|
119
|
+
--colors-surface-critical-active: #e49b9b;
|
|
120
|
+
--colors-surface-critical-hovered: #ebb3b3;
|
|
121
|
+
--colors-surface-critical-subdued: #fddfdf;
|
|
122
|
+
--colors-surface-critical-default: #f1c8c8;
|
|
123
|
+
--colors-surface-success-active: #9cd8b1;
|
|
124
|
+
--colors-surface-success-hovered: #b3dfc2;
|
|
125
|
+
--colors-surface-success-subdued: #d0eedb;
|
|
126
|
+
--colors-surface-success-default: #bfe8d3;
|
|
127
|
+
--colors-surface-warning-active: #ffe78f;
|
|
128
|
+
--colors-surface-warning-hovered: #feeca5;
|
|
129
|
+
--colors-surface-warning-subdued: #fff7da;
|
|
130
|
+
--colors-surface-warning-default: #fff2c2;
|
|
131
|
+
--colors-surface-action-disabled: #e7f4ff;
|
|
132
|
+
--colors-surface-action-active: #93b7df;
|
|
133
|
+
--colors-surface-action-hovered: #a4c8f0;
|
|
134
|
+
--colors-surface-action-subdued: #ddeaf7;
|
|
135
|
+
--colors-surface-action-default: #b3d7ff;
|
|
136
|
+
--colors-surface-disabled: #f6f8fb;
|
|
137
|
+
--colors-surface-pressed: #ccced1;
|
|
138
|
+
--colors-surface-active: #dfe1e4;
|
|
139
|
+
--colors-surface-hovered: #ebedf0;
|
|
140
|
+
--colors-surface-subdued: #f3f4f6;
|
|
95
141
|
--colors-surface-default: #ffffffff;
|
|
96
142
|
--colors-focused-default: #3eadfeff;
|
|
97
143
|
--colors-icon-on: #ffffffff;
|
|
@@ -117,11 +163,11 @@
|
|
|
117
163
|
--colors-border-critical-default: #f56270ff;
|
|
118
164
|
--colors-border-success-subdued: #43da76ff;
|
|
119
165
|
--colors-border-success-default: #16ab49;
|
|
120
|
-
--colors-border-disabled: #
|
|
121
|
-
--colors-border-active: #
|
|
122
|
-
--colors-border-hovered: #
|
|
123
|
-
--colors-border-subdued: #
|
|
124
|
-
--colors-border-default: #
|
|
166
|
+
--colors-border-disabled: #e3e3e3;
|
|
167
|
+
--colors-border-active: #c5c5c5;
|
|
168
|
+
--colors-border-hovered: #d1d1d1;
|
|
169
|
+
--colors-border-subdued: #e7e7e7;
|
|
170
|
+
--colors-border-default: #dcdcdc;
|
|
125
171
|
--colors-action-opacity-disabled: rgba(109, 113, 117, 0.2);
|
|
126
172
|
--colors-action-opacity-active: rgba(109, 113, 117, 0.6);
|
|
127
173
|
--colors-action-opacity-hovered: rgba(109, 113, 117, 0.4);
|
|
@@ -131,11 +177,12 @@
|
|
|
131
177
|
--colors-action-critical-active: #9d2020ff;
|
|
132
178
|
--colors-action-critical-hovered: #c12929ff;
|
|
133
179
|
--colors-action-critical-default: #d82f2fff;
|
|
134
|
-
--colors-action-secondary-disabled: #
|
|
135
|
-
--colors-action-secondary-pressed: #
|
|
136
|
-
--colors-action-secondary-active: #
|
|
137
|
-
--colors-action-secondary-hovered: #
|
|
138
|
-
--colors-action-secondary-
|
|
180
|
+
--colors-action-secondary-disabled: #f3f5f8;
|
|
181
|
+
--colors-action-secondary-pressed: #a8abb1;
|
|
182
|
+
--colors-action-secondary-active: #c8cbd1;
|
|
183
|
+
--colors-action-secondary-hovered: #d9dce2;
|
|
184
|
+
--colors-action-secondary-subdued: #f0f2f5;
|
|
185
|
+
--colors-action-secondary-default: #e5e7ea;
|
|
139
186
|
--colors-action-primary-disabled: #d6dbe0ff;
|
|
140
187
|
--colors-action-primary-pressed: #072a52ff;
|
|
141
188
|
--colors-action-primary-active: #0c4d95ff;
|
|
@@ -145,7 +192,7 @@
|
|
|
145
192
|
--colors-letter-success: #12953eff;
|
|
146
193
|
--colors-letter-critical: #bd2a2aff;
|
|
147
194
|
--colors-letter-warning: #ce881eff;
|
|
148
|
-
--colors-letter-disabled: #
|
|
149
|
-
--colors-letter-subdued: #
|
|
150
|
-
--colors-letter-default: #
|
|
195
|
+
--colors-letter-disabled: #c3c5ca;
|
|
196
|
+
--colors-letter-subdued: #797c81;
|
|
197
|
+
--colors-letter-default: #4a4f54;
|
|
151
198
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aveonline/ui-react",
|
|
3
3
|
"description": "Home base for Aveonline design system - ecosystem react",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.6.
|
|
5
|
+
"version": "1.6.2",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "start-storybook -p 6006 --no-manager-cache",
|
|
39
|
-
"build": "vite build && npm run build:tailwind && npm run cp:tailwind",
|
|
39
|
+
"build": "vite build && npm run build:tailwind && npm run cp:tailwind-config && npm run cp:tokens",
|
|
40
40
|
"build:storybook": "build-storybook",
|
|
41
41
|
"lint": "eslint --ignore-path .gitignore \"./src/**/*.+(tsx,ts)\" --fix",
|
|
42
42
|
"build:tailwind": "npx tailwindcss -o ./dist/tailwind.css --minify",
|
|
43
43
|
"clean": "rm -rf dist",
|
|
44
|
-
"cp:tailwind": "cp tailwind.config.js dist/",
|
|
45
|
-
"cp:
|
|
44
|
+
"cp:tailwind-config": "cp tailwind.config.js dist/",
|
|
45
|
+
"cp:tokens": "cp ./src/design-tokens/styles/tokens.css dist/",
|
|
46
46
|
"test": "vitest",
|
|
47
47
|
"coverage": "vitest run --coverage",
|
|
48
48
|
"test:ui": "vitest --ui",
|