@aaamb/ngx-design-system 0.1.0 → 1.0.1

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.
@@ -0,0 +1,140 @@
1
+ .ant-picker-panel-container,
2
+ .ant-picker {
3
+ border-radius: 0.8rem;
4
+ box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
5
+ }
6
+
7
+ .ant-picker-panel-container .ant-picker-panel {
8
+ background-color: white;
9
+ }
10
+
11
+ .ant-picker-cell:hover {
12
+ .ant-picker-cell-inner {
13
+ background-color: #ddf0ef !important;
14
+ color: #0b645c !important;
15
+ }
16
+ }
17
+
18
+ .ant-picker-cell:not(.ant-picker-week-panel-row-selected):hover
19
+ .ant-picker-cell-inner {
20
+ background-color: #ddf0ef;
21
+ }
22
+
23
+ .ant-picker-week-panel-row-selected td,
24
+ .ant-picker-week-panel-row-selected td {
25
+ background-color: #0b645c !important;
26
+ }
27
+
28
+ .ant-picker-week-panel-row-selected:hover td {
29
+ background-color: #0b645c !important;
30
+ }
31
+
32
+ .ant-picker-cell:not(.ant-picker-week-panel-row-selected):hover
33
+ .ant-picker-cell-inner {
34
+ background-color: #ddf0ef;
35
+ }
36
+
37
+ .ant-picker-cell-disabled {
38
+ color: #aeaeae !important;
39
+ }
40
+
41
+ .ant-picker-cell-in-view {
42
+ color: #0b645c;
43
+ }
44
+
45
+ .ant-picker-cell-disabled::before {
46
+ background: none !important;
47
+ }
48
+
49
+ .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
50
+ .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
51
+ .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
52
+ background-color: #0b645c;
53
+ color: #f6f6f6 !important;
54
+ }
55
+
56
+ .ant-picker-cell-in-view.ant-picker-cell-selected:hover .ant-picker-cell-inner,
57
+ .ant-picker-cell-in-view.ant-picker-cell-range-start:hover
58
+ .ant-picker-cell-inner,
59
+ .ant-picker-cell-in-view.ant-picker-cell-range-end:hover
60
+ .ant-picker-cell-inner {
61
+ background-color: #0b645c !important;
62
+ color: #f6f6f6 !important;
63
+ }
64
+
65
+ .ant-picker-header {
66
+ color: #0b645c;
67
+ }
68
+
69
+ .ant-picker-week-panel-row:not(.ant-picker-week-panel-row-selected):hover td {
70
+ .ant-picker-cell-inner {
71
+ background-color: #ddf0ef;
72
+ }
73
+
74
+ background-color: #ddf0ef;
75
+ color: #0b645c;
76
+ }
77
+
78
+ .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
79
+ border-color: #0b645c;
80
+ }
81
+
82
+ .ant-picker-week-panel-row-selected td {
83
+ background-color: #0b645c;
84
+ color: #f6f6f6 !important;
85
+ }
86
+
87
+ .ant-picker-week-panel {
88
+ thead {
89
+ tr th:first-child {
90
+ display: none;
91
+ }
92
+ }
93
+
94
+ .ant-picker-cell-week {
95
+ display: none !important;
96
+ }
97
+ }
98
+
99
+ .ant-picker-week-panel th.ant-picker-cell-week,
100
+ .ant-picker-week-panel td.ant-picker-cell-week,
101
+ .ant-picker-week-panel colgroup col:first-child {
102
+ display: none !important;
103
+ }
104
+
105
+ .ant-picker-week-panel .ant-picker-row:hover td .ant-picker-cell-inner {
106
+ background-color: #ddf0ef !important;
107
+ color: #0b645c !important;
108
+ }
109
+
110
+ .ant-picker-week-panel
111
+ .ant-picker-week-panel-row-selected:hover
112
+ td
113
+ .ant-picker-cell-inner {
114
+ background-color: #0b645c !important;
115
+ color: #f6f6f6 !important;
116
+ }
117
+
118
+ .ant-picker-today-btn {
119
+ color: #13682d;
120
+ }
121
+
122
+ .ant-picker-today-btn:hover {
123
+ color: #1cce52;
124
+ }
125
+
126
+ .ant-picker-header > button:hover {
127
+ color: #0b645c;
128
+ }
129
+
130
+ .ant-picker-content th {
131
+ color: #014744;
132
+ }
133
+
134
+ .ant-picker-cell:hover .ant-picker-cell-inner {
135
+ color: white !important;
136
+ }
137
+
138
+ .ant-picker-cell-in-view.ant-picker-cell-in-range::before {
139
+ background: #20e1c55c;
140
+ }
Binary file
@@ -0,0 +1,10 @@
1
+ @layer base, theme, utilities;
2
+ @import "../node_modules/ng-zorro-antd/ng-zorro-antd.min.css" layer(base);
3
+ @import "../node_modules/ng-zorro-antd/style/index.min.css" layer(base);
4
+ @import "../node_modules/ng-zorro-antd/button/style/index.min.css" layer(base);
5
+ @source "../src/**/*.ts";
6
+ @import "tailwindcss/utilities";
7
+ @import "tailwindcss/theme" layer(theme);
8
+ @import "./theme.css";
9
+ @import "./datepicker.css";
10
+ @import "./selectors.css";
@@ -0,0 +1,102 @@
1
+ .ant-select-selection-wrap {
2
+ height: 2.1rem !important;
3
+ }
4
+
5
+ .ant-select-selector .nz-animate-disabled {
6
+ height: 2.375rem !important;
7
+ }
8
+
9
+ .ant-select-single .ant-select {
10
+ height: 2.375rem !important;
11
+ }
12
+
13
+ .ant-select-show-search.ant-select:not(.ant-select-customize-input)
14
+ .ant-select-selector {
15
+ height: 2.375rem !important;
16
+ }
17
+
18
+ .ant-select-selection-search {
19
+ display: flex !important;
20
+ align-items: center !important;
21
+ }
22
+
23
+ .ant-select-selection-search-input {
24
+ height: 2.375rem !important;
25
+ }
26
+
27
+ .ant-select {
28
+ height: 2.375rem !important;
29
+ }
30
+
31
+ .ant-select-selection-search-input {
32
+ color: #014744;
33
+ }
34
+
35
+ .ant-select:not(.ant-select-disabled).ant-select-focused .ant-select-selector {
36
+ box-shadow: none;
37
+ }
38
+
39
+ .ant-select:not(.ant-select-customize-input) .ant-select-selector {
40
+ background-color: #f2f9f8;
41
+ }
42
+
43
+ .ant-select:not(.ant-select-disabled).ant-select-focused .ant-select-selector {
44
+ border-color: #039e8d;
45
+ border-right-width: 1px;
46
+ }
47
+
48
+ .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
49
+ border-color: #039e8d;
50
+ border-right-width: 1px;
51
+ }
52
+
53
+ .ant-select:not(.ant-select-customize-input) .ant-select-selector {
54
+ border: 1px solid #ddf0ef;
55
+ border-radius: 0.625rem;
56
+ }
57
+
58
+ .anticon {
59
+ color: #014744;
60
+ }
61
+
62
+ .ant-select-item:not(.ant-select-item-option-disabled) {
63
+ color: #014744 !important;
64
+ }
65
+
66
+ .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
67
+ color: #014744;
68
+ background-color: #f2f9f8 !important;
69
+ }
70
+
71
+ .ant-select-item-option-active {
72
+ color: #0b645c;
73
+ background-color: #f2f9f8 !important;
74
+ }
75
+
76
+ .ant-select-multiple.ant-select .ant-select-selection-overflow {
77
+ display: flex;
78
+ align-items: center;
79
+ max-height: 2.2rem;
80
+ }
81
+
82
+ .ant-select-selection-item {
83
+ color: #014744 !important;
84
+ }
85
+
86
+ .ant-select-multiple.ant-select .ant-select-selection-item {
87
+ color: #014744 !important;
88
+ background-color: transparent !important;
89
+ margin: 0 !important;
90
+ border: 0 !important;
91
+ line-height: 25px !important;
92
+ }
93
+
94
+ .ant-select-multiple.ant-select .ant-select-selection-overflow-item {
95
+ height: 1.5rem !important;
96
+ max-height: 1.5rem !important;
97
+ margin: 0 !important;
98
+ }
99
+
100
+ .ant-select-selection-search-input {
101
+ height: 1.5rem !important;
102
+ }
@@ -0,0 +1,28 @@
1
+ const fs = require('fs');
2
+ let css = fs.readFileSync('./styles/compiled.css', 'utf8');
3
+
4
+ function unwrapLayer(css, layerName) {
5
+ const prefix = `@layer ${layerName}{`;
6
+ const idx = css.indexOf(prefix);
7
+ if (idx === -1) return css;
8
+
9
+ let depth = 0;
10
+ const start = idx + prefix.length;
11
+
12
+ for (let i = start; i < css.length; i++) {
13
+ if (css[i] === '{') depth++;
14
+ if (css[i] === '}') {
15
+ if (depth === 0) {
16
+ return css.substring(0, idx) + css.substring(start, i) + css.substring(i + 1);
17
+ }
18
+ depth--;
19
+ }
20
+ }
21
+ return css;
22
+ }
23
+
24
+ css = unwrapLayer(css, 'properties');
25
+ css = unwrapLayer(css, 'theme');
26
+ css = unwrapLayer(css, 'utilities');
27
+
28
+ fs.writeFileSync('./styles/compiled.css', css);
package/styles/theme.css CHANGED
@@ -1,25 +1,143 @@
1
1
  @font-face {
2
- font-family: 'Poppins';
3
- src: url('./fonts/Poppins-Regular.ttf') format('truetype');
2
+ font-family: "Poppins";
3
+ src: url("./fonts/Poppins-Regular.ttf") format("truetype");
4
4
  font-weight: 400;
5
5
  font-display: swap;
6
6
  }
7
7
 
8
8
  @font-face {
9
- font-family: 'Poppins';
10
- src: url('./fonts/Poppins-SemiBold.ttf') format('truetype');
9
+ font-family: "Poppins";
10
+ src: url("./fonts/Poppins-Medium.ttf") format("truetype");
11
+ font-weight: 500;
12
+ font-display: swap;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Poppins";
17
+ src: url("./fonts/Poppins-SemiBold.ttf") format("truetype");
11
18
  font-weight: 600;
12
19
  font-display: swap;
13
20
  }
14
21
 
15
22
  @theme {
16
- --font-poppins: 'Poppins', sans-serif;
23
+ --font-poppins: "Poppins", sans-serif;
17
24
 
18
25
  --color-green-base: #014744;
19
- --color-green-hover: #0B645C;
20
- --color-green-active: #2D484C;
26
+ --color-green-hover: #0b645c;
27
+ --color-green-active: #2d484c;
28
+
29
+ --color-neutral-disabled-bg: #e7e7e7;
30
+ --color-neutral-disabled-text: #b0b0b0;
31
+ --color-neutral-light-text: #f6f6f6;
32
+
33
+ --color-black-base: #000000;
34
+
35
+ --color-white-base: #f6f6f6;
36
+ --color-white-secondary-base: #fefefe;
37
+ --color-white-hover-text: #6d6d6d;
38
+ --color-white-pressed: #ddf0ef;
39
+ --color-white-secondary-pressed: #e7e7e7;
40
+
41
+ --color-purple-1: #636892;
42
+ --color-purple-2: #818cb0;
43
+ --color-purple-3: #edeff4;
44
+
45
+ --color-aqua-base: #1a2f32;
46
+ --color-aqua-0: #3b7c7f;
47
+ --color-aqua-1: #2b8c8c;
48
+ --color-aqua-2: #039e8d;
49
+ --color-aqua-3: #07c5ac;
50
+ --color-aqua-4: #20e1c5;
51
+ --color-aqua-5: #ddf0ef;
52
+ --color-aqua-6: #f2f9f8;
53
+ --color-aqua-7: #effefb;
54
+
55
+ --color-yellow-1: #8ead03;
56
+ --color-yellow-2: #feffe5;
57
+
58
+ --color-green-1: #014744;
59
+ --color-green-2: #0b645c;
60
+ --color-green-3: #13682d;
61
+ --color-green-4: #10a93f;
62
+ --color-green-5: #1cce52;
63
+ --color-green-6: #dbfde5;
64
+
65
+ --color-red-1: #bf161c;
66
+ --color-red-2: #e31c23;
67
+ --color-red-3: #f63d44;
68
+ --color-red-4: #ffa1a4;
69
+ --color-red-5: #ffe1e2;
70
+ --color-red-6: #fef2f2;
71
+ }
72
+
73
+ @layer base {
74
+ html,
75
+ body {
76
+ font-family: var(--font-poppins) !important;
77
+ }
78
+
79
+ *,
80
+ *::before,
81
+ *::after {
82
+ font-family: inherit !important;
83
+ }
84
+ }
85
+
86
+ .fade-up {
87
+ animation: slideUpFadeIn 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
88
+ }
89
+
90
+ .fade-in {
91
+ animation: fadeInOpacity 200ms ease-out both;
92
+ }
93
+
94
+ /* Fade Down - Exit upwards */
95
+ .fade-down {
96
+ animation: slideDownFadeOut 300ms cubic-bezier(0.4, 0, 0.2, 1) both;
97
+ }
98
+
99
+ .fade-out {
100
+ animation: fadeOutOpacity 200ms ease-in both;
101
+ }
102
+
103
+ /* Keyframes - Entry from below */
104
+ @keyframes slideUpFadeIn {
105
+ from {
106
+ transform: translateY(20px);
107
+ opacity: 0;
108
+ }
109
+ to {
110
+ transform: translateY(0);
111
+ opacity: 1;
112
+ }
113
+ }
114
+
115
+ @keyframes fadeInOpacity {
116
+ from {
117
+ opacity: 0;
118
+ }
119
+ to {
120
+ opacity: 1;
121
+ }
122
+ }
123
+
124
+ /* Keyframes - Exit upwards */
125
+ @keyframes slideDownFadeOut {
126
+ from {
127
+ transform: translateY(0);
128
+ opacity: 1;
129
+ }
130
+ to {
131
+ transform: translateY(20px);
132
+ opacity: 0;
133
+ }
134
+ }
21
135
 
22
- --color-neutral-disabled-bg: #E7E7E7;
23
- --color-neutral-disabled-text: #B0B0B0;
24
- --color-neutral-light-text: #F6F6F6;
136
+ @keyframes fadeOutOpacity {
137
+ from {
138
+ opacity: 1;
139
+ }
140
+ to {
141
+ opacity: 0;
142
+ }
25
143
  }