@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.
@@ -1,4 +1,4 @@
1
- import { IClassName } from '@/types';
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,4 +1,4 @@
1
- import { IClassName } from '@/types';
1
+ import { IClassName } from '../../../types';
2
2
  import { ILogo } from './ILogo';
3
3
  /**
4
4
  * Atom: Logo
@@ -1,4 +1,4 @@
1
- import { IChildren, IClassName } from '@/types';
1
+ import { IChildren, IClassName } from '../../../../types';
2
2
  import { ILink } from './ILink';
3
3
  /**
4
4
  * Atom: Link
@@ -1,5 +1,5 @@
1
1
  import { IPropsDropdown } from './IDropdown';
2
- import { IClassName } from '@/types';
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 '@/types';
2
+ import { IChildren } from '../../../types';
3
3
  declare type IKindFlag = 'default' | 'success' | 'warning' | 'error';
4
4
  interface IPropsFlag extends IChildren {
5
5
  icon?: IKindIcon;
@@ -1,4 +1,4 @@
1
- import { IChildren } from '@/types';
1
+ import { IChildren } from '../../../types';
2
2
  interface INavigation extends IChildren {
3
3
  isSmall?: boolean;
4
4
  [rest: string]: any;
@@ -1,4 +1,4 @@
1
- import { ITemplate } from '@/types';
1
+ import { ITemplate } from '../../../types';
2
2
  /**
3
3
  * Template: Layout main
4
4
  */
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-xl: 44px;
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: #fde7eaff;
73
- --colors-surface-critical-active: #e49b9bff;
74
- --colors-surface-critical-hovered: #ebb3b3ff;
75
- --colors-surface-critical-subdued: #fff0ec;
76
- --colors-surface-critical-default: #ffebe6;
77
- --colors-surface-success-active: #ade2bfff;
78
- --colors-surface-success-hovered: #c5ead1ff;
79
- --colors-surface-success-subdued: #d0eedbff;
80
- --colors-surface-success-default: #e3fcef;
81
- --colors-surface-warning-active: #ffd393ff;
82
- --colors-surface-warning-hovered: #ffe9c9ff;
83
- --colors-surface-warning-subdued: #ffeed4ff;
84
- --colors-surface-warning-default: #fffae6;
85
- --colors-surface-action-disabled: #fafcffff;
86
- --colors-surface-action-active: #d1deecff;
87
- --colors-surface-action-hovered: #f2f8ffff;
88
- --colors-surface-action-subdued: #e5f2ffff;
89
- --colors-surface-action-default: #b3d7ffff;
90
- --colors-surface-disabled: #f4f4f4;
91
- --colors-surface-pressed: #d1d1d1;
92
- --colors-surface-active: #dedede;
93
- --colors-surface-hovered: #ececec;
94
- --colors-surface-subdued: #f2f2f2;
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: #dcdcdc;
121
- --colors-border-active: #8f8f8f;
122
- --colors-border-hovered: #a1a1a1;
123
- --colors-border-subdued: #c9c9c9;
124
- --colors-border-default: #b5b5b5;
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: #e7e7e7;
135
- --colors-action-secondary-pressed: #6d7175ff;
136
- --colors-action-secondary-active: #cdcdcd;
137
- --colors-action-secondary-hovered: #e0e1e2;
138
- --colors-action-secondary-default: #f1f2f3;
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: #c2c2c2ff;
149
- --colors-letter-subdued: #8a8a8aff;
150
- --colors-letter-default: #42484eff;
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.1",
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:postcss": "cp postcss.config.js dist/",
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",