@fxlt/common-ui 0.0.4-rc1 → 0.0.4

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/fonts.css CHANGED
@@ -1,7 +1,119 @@
1
1
  @font-face {
2
- font-family: 'BeVietnamProRegular';
3
- src: url('./BeVietnamPro-Regular.ttf') format('truetype');
4
- font-weight: normal;
2
+ font-family: 'BeVietnamPro';
3
+ src: url('./BeVietnamPro/BeVietnamPro-Thin.ttf') format('truetype');
4
+ font-weight: 100;
5
+ font-style: normal;
6
+ }
7
+
8
+ @font-face {
9
+ font-family: 'BeVietnamPro';
10
+ src: url('./BeVietnamPro/BeVietnamPro-ExtraLight.ttf') format('truetype');
11
+ font-weight: 200;
12
+ font-style: normal;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'BeVietnamPro';
17
+ src: url('./BeVietnamPro/BeVietnamPro-Light.ttf') format('truetype');
18
+ font-weight: 300;
19
+ font-style: normal;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'BeVietnamPro';
24
+ src: url('./BeVietnamPro/BeVietnamPro-Regular.ttf') format('truetype');
25
+ font-weight: 400;
26
+ font-style: normal;
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'BeVietnamPro';
31
+ src: url('./BeVietnamPro/BeVietnamPro-Medium.ttf') format('truetype');
32
+ font-weight: 500;
33
+ font-style: normal;
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'BeVietnamPro';
38
+ src: url('./BeVietnamPro/BeVietnamPro-SemiBold.ttf') format('truetype');
39
+ font-weight: 600;
40
+ font-style: normal;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'BeVietnamPro';
45
+ src: url('./BeVietnamPro/BeVietnamPro-Bold.ttf') format('truetype');
46
+ font-weight: 700;
47
+ font-style: normal;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: 'DMSans';
52
+ src: url('./dm-sans/DMSans-Thin.ttf') format('truetype');
53
+ font-weight: 200;
54
+ font-style: normal;
55
+ }
56
+
57
+ @font-face {
58
+ font-family: 'DMSans';
59
+ src: url('./dm-sans/DMSans-Light.ttf') format('truetype');
60
+ font-weight: 300;
61
+ font-style: normal;
62
+ }
63
+
64
+ @font-face {
65
+ font-family: 'DMSans';
66
+ src: url('./dm-sans/DMSans-Regular.ttf') format('truetype');
67
+ font-weight: 400;
68
+ font-style: normal;
69
+ }
70
+
71
+ @font-face {
72
+ font-family: 'DMSans';
73
+ src: url('./dm-sans/DMSans-Medium.ttf') format('truetype');
74
+ font-weight: 500;
75
+ font-style: normal;
76
+ }
77
+
78
+ @font-face {
79
+ font-family: 'DMSans';
80
+ src: url('./dm-sans/DMSans-SemiBold.ttf') format('truetype');
81
+ font-weight: 600;
82
+ font-style: normal;
83
+ }
84
+
85
+ @font-face {
86
+ font-family: 'DMSans';
87
+ src: url('./dm-sans/DMSans-Bold.ttf') format('truetype');
88
+ font-weight: 700;
89
+ font-style: normal;
90
+ }
91
+
92
+ @font-face {
93
+ font-family: 'Orbitron';
94
+ src: url('./orbitron/Orbitron-Regular.ttf') format('truetype');
95
+ font-weight: 400;
96
+ font-style: normal;
97
+ }
98
+
99
+ @font-face {
100
+ font-family: 'Orbitron';
101
+ src: url('./orbitron/Orbitron-Medium.ttf') format('truetype');
102
+ font-weight: 500;
103
+ font-style: normal;
104
+ }
105
+
106
+ @font-face {
107
+ font-family: 'Orbitron';
108
+ src: url('./orbitron/Orbitron-SemiBold.ttf') format('truetype');
109
+ font-weight: 600;
110
+ font-style: normal;
111
+ }
112
+
113
+ @font-face {
114
+ font-family: 'Orbitron';
115
+ src: url('./orbitron/Orbitron-Bold.ttf') format('truetype');
116
+ font-weight: 700;
5
117
  font-style: normal;
6
118
  }
7
119
 
package/index.d.ts CHANGED
@@ -686,8 +686,9 @@ declare class TagComponent {
686
686
  type: TagType;
687
687
  rounded: boolean;
688
688
  icon?: any;
689
+ solid: boolean;
689
690
  static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
690
- static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "fx-ui-tag", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, false, never>;
691
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "fx-ui-tag", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "solid": { "alias": "solid"; "required": false; }; }, {}, never, never, false, never>;
691
692
  }
692
693
 
693
694
  type IChartType = 'bar' | 'pie' | 'line' | 'sunburst' | 'radar' | 'auto';
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxlt/common-ui",
3
- "version": "0.0.4-rc1",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "main": "bundles/ui.umd.js",
6
6
  "module": "fesm2022/fxlt-common-ui.mjs",
@@ -36,8 +36,6 @@
36
36
  "ngx-vflow": "^1.16.2"
37
37
  },
38
38
  "exports": {
39
- "./SpaceMono-Regular.ttf": "./SpaceMono-Regular.ttf",
40
- "./BeVietnamPro-Regular.ttf": "./BeVietnamPro-Regular.ttf",
41
39
  "./tailwind-config": "./tailwind.config.js",
42
40
  "./tailwind.css": "./tailwind.css",
43
41
  "./theme.css": "./theme.css",
@@ -93,7 +93,7 @@
93
93
  padding-top: 4px !important;
94
94
  padding-bottom: 4px !important;
95
95
  line-height: 24px !important;
96
- font-family: 'BeVietnamProRegular';
96
+ font-family: 'BeVietnamPro';
97
97
  }
98
98
 
99
99
  .mdc-data-table__row {
@@ -108,7 +108,7 @@
108
108
  padding-bottom: 8px !important;
109
109
  padding-left: 16px !important;
110
110
  padding-right: 16px !important; */
111
- font-family: 'BeVietnamProRegular';
111
+ font-family: 'BeVietnamPro';
112
112
  }
113
113
 
114
114
  .mat-mdc-cell {
@@ -181,6 +181,9 @@ input[type='password'] {
181
181
  .txt-heading-07 {
182
182
  @apply font-semibold text-sm tracking-normal leading-5 text-text-primary;
183
183
  }
184
+ .txt-heading-table {
185
+ @apply text-base font-dmsans font-semibold text-text-primary tracking-tight;
186
+ }
184
187
  .txt-heading-compact-02 {
185
188
  @apply font-semibold text-sm tracking-normal leading-5 text-text-primary;
186
189
  }
@@ -381,6 +384,27 @@ input[type='password'] {
381
384
  .tag-information {
382
385
  @apply tag-common bg-information/10;
383
386
  }
387
+ .tag-default-solid {
388
+ @apply tag-common bg-bg-hover;
389
+ }
390
+ .tag-success-solid {
391
+ @apply tag-common bg-success;
392
+ }
393
+ .tag-warning-solid {
394
+ @apply tag-common bg-warning;
395
+ }
396
+ .tag-danger-solid {
397
+ @apply tag-common bg-danger;
398
+ }
399
+ .tag-critical-solid {
400
+ @apply tag-common bg-critical;
401
+ }
402
+ .tag-discovery-solid {
403
+ @apply tag-common bg-discovery;
404
+ }
405
+ .tag-information-solid {
406
+ @apply tag-common bg-information;
407
+ }
384
408
  .tag-square {
385
409
  @apply rounded px-semi py-small;
386
410
  }
@@ -451,3 +475,13 @@ input[type='password'] {
451
475
  .dialog-header {
452
476
  @apply px-xl py-semi;
453
477
  }
478
+ .border-gradient-primary {
479
+ border: 1px solid transparent;
480
+ background:
481
+ linear-gradient(var(--surface, #fff), var(--surface, #fff)) padding-box,
482
+ linear-gradient(
483
+ 135deg,
484
+ rgb(var(--gradient-primary-start)),
485
+ rgb(var(--gradient-primary-end))
486
+ ) border-box;
487
+ }
@@ -1,7 +1,119 @@
1
1
  @font-face {
2
- font-family: 'BeVietnamProRegular';
3
- src: url('./BeVietnamPro-Regular.ttf') format('truetype');
4
- font-weight: normal;
2
+ font-family: 'BeVietnamPro';
3
+ src: url('./BeVietnamPro/BeVietnamPro-Thin.ttf') format('truetype');
4
+ font-weight: 100;
5
+ font-style: normal;
6
+ }
7
+
8
+ @font-face {
9
+ font-family: 'BeVietnamPro';
10
+ src: url('./BeVietnamPro/BeVietnamPro-ExtraLight.ttf') format('truetype');
11
+ font-weight: 200;
12
+ font-style: normal;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'BeVietnamPro';
17
+ src: url('./BeVietnamPro/BeVietnamPro-Light.ttf') format('truetype');
18
+ font-weight: 300;
19
+ font-style: normal;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'BeVietnamPro';
24
+ src: url('./BeVietnamPro/BeVietnamPro-Regular.ttf') format('truetype');
25
+ font-weight: 400;
26
+ font-style: normal;
27
+ }
28
+
29
+ @font-face {
30
+ font-family: 'BeVietnamPro';
31
+ src: url('./BeVietnamPro/BeVietnamPro-Medium.ttf') format('truetype');
32
+ font-weight: 500;
33
+ font-style: normal;
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'BeVietnamPro';
38
+ src: url('./BeVietnamPro/BeVietnamPro-SemiBold.ttf') format('truetype');
39
+ font-weight: 600;
40
+ font-style: normal;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'BeVietnamPro';
45
+ src: url('./BeVietnamPro/BeVietnamPro-Bold.ttf') format('truetype');
46
+ font-weight: 700;
47
+ font-style: normal;
48
+ }
49
+
50
+ @font-face {
51
+ font-family: 'DMSans';
52
+ src: url('./dm-sans/DMSans-Thin.ttf') format('truetype');
53
+ font-weight: 200;
54
+ font-style: normal;
55
+ }
56
+
57
+ @font-face {
58
+ font-family: 'DMSans';
59
+ src: url('./dm-sans/DMSans-Light.ttf') format('truetype');
60
+ font-weight: 300;
61
+ font-style: normal;
62
+ }
63
+
64
+ @font-face {
65
+ font-family: 'DMSans';
66
+ src: url('./dm-sans/DMSans-Regular.ttf') format('truetype');
67
+ font-weight: 400;
68
+ font-style: normal;
69
+ }
70
+
71
+ @font-face {
72
+ font-family: 'DMSans';
73
+ src: url('./dm-sans/DMSans-Medium.ttf') format('truetype');
74
+ font-weight: 500;
75
+ font-style: normal;
76
+ }
77
+
78
+ @font-face {
79
+ font-family: 'DMSans';
80
+ src: url('./dm-sans/DMSans-SemiBold.ttf') format('truetype');
81
+ font-weight: 600;
82
+ font-style: normal;
83
+ }
84
+
85
+ @font-face {
86
+ font-family: 'DMSans';
87
+ src: url('./dm-sans/DMSans-Bold.ttf') format('truetype');
88
+ font-weight: 700;
89
+ font-style: normal;
90
+ }
91
+
92
+ @font-face {
93
+ font-family: 'Orbitron';
94
+ src: url('./orbitron/Orbitron-Regular.ttf') format('truetype');
95
+ font-weight: 400;
96
+ font-style: normal;
97
+ }
98
+
99
+ @font-face {
100
+ font-family: 'Orbitron';
101
+ src: url('./orbitron/Orbitron-Medium.ttf') format('truetype');
102
+ font-weight: 500;
103
+ font-style: normal;
104
+ }
105
+
106
+ @font-face {
107
+ font-family: 'Orbitron';
108
+ src: url('./orbitron/Orbitron-SemiBold.ttf') format('truetype');
109
+ font-weight: 600;
110
+ font-style: normal;
111
+ }
112
+
113
+ @font-face {
114
+ font-family: 'Orbitron';
115
+ src: url('./orbitron/Orbitron-Bold.ttf') format('truetype');
116
+ font-weight: 700;
5
117
  font-style: normal;
6
118
  }
7
119
 
@@ -9,7 +9,7 @@
9
9
  @tailwind utilities;
10
10
 
11
11
  html, body {
12
- font-family: 'BeVietnamProRegular';
12
+ font-family: 'BeVietnamPro';
13
13
  margin: 0;
14
14
  padding: 0;
15
15
  height: 100%;
@@ -1,4 +1,6 @@
1
1
  .light_theme {
2
+ --gradient-primary-start: 156 129 255;
3
+ --gradient-primary-end: 4 255 135;
2
4
  --bg-primary: 255 255 255;
3
5
  --primary: 236 25 56;
4
6
  --success: 15 140 96;
@@ -31,6 +33,8 @@
31
33
  }
32
34
 
33
35
  :root {
36
+ --gradient-primary-start: 156 129 255;
37
+ --gradient-primary-end: 4 255 135;
34
38
  --bg-primary: 12 14 18;
35
39
  --primary: 236 25 56;
36
40
  --success: 76 175 80;
@@ -1,43 +1,15 @@
1
1
  <div
2
- class="flex flex-row gap-1"
3
- [class]="rounded ? 'tag-round' : 'tag-square'"
4
- [ngClass]="{
5
- 'tag-critical': type === 'critical',
6
- 'tag-success': type === 'success',
7
- 'tag-warning': type === 'warning',
8
- 'tag-information': type === 'information',
9
- 'tag-discovery': type === 'discovery',
10
- 'tag-danger': type === 'danger',
11
- 'tag-default': type === 'default'
12
- }"
2
+ [class]="`flex flex-row gap-small ${rounded ? 'tag-round' : 'tag-square'} tag-${type}${solid ? '-solid' : ''}`"
13
3
  >
14
- @if(icon){<fx-ui-hero-icon
15
- class="flex"
4
+ @if(icon){
5
+ <fx-ui-hero-icon
6
+ [class]="`flex txt-tag-${type} ${solid ? 'text-white': ''}`"
16
7
  [icon]="icon"
17
8
  [size]="18"
18
- [ngClass]="{
19
- 'text-critical': type === 'critical',
20
- 'text-success': type === 'success',
21
- 'text-warning': type === 'warning',
22
- 'text-information': type === 'information',
23
- 'text-discovery': type === 'discovery',
24
- 'text-danger': type === 'danger',
25
- 'text-text-primary': type === 'default',
26
- }"
27
- ></fx-ui-hero-icon
28
- >}
9
+ ></fx-ui-hero-icon>
10
+ }
29
11
 
30
- <div
31
- [ngClass]="{
32
- 'txt-tag-critical': type === 'critical',
33
- 'txt-tag-success': type === 'success',
34
- 'txt-tag-warning': type === 'warning',
35
- 'txt-tag-information': type === 'information',
36
- 'txt-tag-discovery': type === 'discovery',
37
- 'txt-tag-danger': type === 'danger',
38
- 'txt-tag-default': type === 'default',
39
- }"
40
- >
12
+ <div [class]="`txt-tag-${type} ${solid ? 'text-white': ''}`">
41
13
  {{ label }}
42
14
  </div>
43
15
  </div>
@@ -2,6 +2,8 @@ module.exports = {
2
2
  theme: {
3
3
  extend: {
4
4
  colors: {
5
+ 'gradient-primary-start': 'rgb(var(--gradient-primary-start) / <alpha-value>)',
6
+ 'gradient-primary-end': 'rgb(var(--gradient-primary-end) / <alpha-value>)',
5
7
  primary: 'rgb(var(--primary) / <alpha-value>)',
6
8
  success: 'rgb(var(--success) / <alpha-value>)',
7
9
  danger: 'rgb(var(--danger) / <alpha-value>)',
@@ -37,6 +39,10 @@ module.exports = {
37
39
  primary: 'rgb(var(--button-primary) / <alpha-value>)',
38
40
  },
39
41
  },
42
+ backgroundImage: {
43
+ 'gradient-primary':
44
+ 'linear-gradient(135deg, rgb(var(--gradient-primary-start)) 0%, rgb(var(--gradient-primary-end)) 100%)',
45
+ },
40
46
  screens: {
41
47
  sm: '640px',
42
48
  md: '960px',
@@ -62,6 +68,9 @@ module.exports = {
62
68
  },
63
69
  fontFamily:{
64
70
  spmono: ['SpaceMonoRegular', 'monospace'],
71
+ dmsans: ['DMSans', 'sans-serif'],
72
+ orbitron: ['Orbitron', 'sans-serif'],
73
+ bevn: ['BeVietnamPro', 'sans-serif'],
65
74
  },
66
75
  fontSize: {
67
76
  xs: '0.75rem',
package/tailwind.css CHANGED
@@ -9,7 +9,7 @@
9
9
  @tailwind utilities;
10
10
 
11
11
  html, body {
12
- font-family: 'BeVietnamProRegular';
12
+ font-family: 'BeVietnamPro';
13
13
  margin: 0;
14
14
  padding: 0;
15
15
  height: 100%;
package/theme.css CHANGED
@@ -1,4 +1,6 @@
1
1
  .light_theme {
2
+ --gradient-primary-start: 156 129 255;
3
+ --gradient-primary-end: 4 255 135;
2
4
  --bg-primary: 255 255 255;
3
5
  --primary: 236 25 56;
4
6
  --success: 15 140 96;
@@ -31,6 +33,8 @@
31
33
  }
32
34
 
33
35
  :root {
36
+ --gradient-primary-start: 156 129 255;
37
+ --gradient-primary-end: 4 255 135;
34
38
  --bg-primary: 12 14 18;
35
39
  --primary: 236 25 56;
36
40
  --success: 76 175 80;