@acorex/styles 7.0.37 → 7.0.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "7.0.37",
3
+ "version": "7.0.39",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -13,6 +13,6 @@
13
13
  "autoprefixer": "^10.4.13",
14
14
  "postcss": "^8.4.21",
15
15
  "tailwind-auto-directions": "^1.0.2",
16
- "tailwindcss": "^3.2.6"
16
+ "tailwindcss": "^3.3.1"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  .ax-actionsheet-panel {
2
- animation-duration: 300ms;
3
- -webkit-animation-duration: 300ms;
2
+ animation-duration: 100ms;
3
+ -webkit-animation-duration: 100ms;
4
4
  animation-fill-mode: both;
5
5
  -webkit-animation-fill-mode: both;
6
6
  opacity: 0;
@@ -13,9 +13,9 @@
13
13
  -moz-border-radius-topright: var(--ax-rounded-border-default);
14
14
  border-top-left-radius: var(--ax-rounded-border-default);
15
15
  border-top-right-radius: var(--ax-rounded-border-default);
16
- box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2),
17
- 0 16px 24px 2px rgba(0, 0, 0, 0.141), 0 6px 30px 5px rgba(0, 0, 0, 0.122);
16
+ box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.2), 0 16px 24px 2px rgba(0, 0, 0, 0.141), 0 6px 30px 5px rgba(0, 0, 0, 0.122);
18
17
  overflow: hidden;
18
+
19
19
  @keyframes fadeInUp {
20
20
  from {
21
21
  transform: translate3d(0, 40px, 0);
@@ -1,16 +1,11 @@
1
1
  @import '../mixins/index.scss';
2
2
 
3
- @include darkMode() {
4
- .ax-checkbox {
5
- background-color: rgba(var(--ax-color-on-surface));
6
- }
7
- }
8
3
  .ax-checkbox {
9
4
  width: 1.125rem;
10
5
  height: 1.125rem;
11
6
  border: 1px solid;
12
7
  border-color: rgba(var(--ax-color-border-default));
13
- background-color: rgba(var(--ax-color-surface));
8
+ background-color: rgba(var(--ax-color-input-surface));
14
9
  border-radius: 0.2rem;
15
10
  margin: 0;
16
11
  outline: none;
@@ -1,15 +1,15 @@
1
1
  @import '../mixins/index.scss';
2
- @include darkMode() {
3
- .ax-editor-container {
4
- background-color: rgba(var(--ax-color-on-surface));
5
- }
6
- }
2
+ // @include darkMode() {
3
+ // .ax-editor-container {
4
+ // background-color: rgba(var(--ax-color-on-surface));
5
+ // }
6
+ // }
7
7
  .ax-editor-container {
8
8
  width: 100%;
9
9
  height: var(--ax-size-default);
10
10
  display: flex;
11
- background-color: rgba(var(--ax-color-surface));
12
- color: rgba(var(--ax-color-text-default));
11
+ background-color: rgba(var(--ax-color-input-surface));
12
+ color: rgba(var(--ax-color-input-surface-fore));
13
13
  border: 1px solid;
14
14
  border-color: rgba(var(--ax-color-border-default));
15
15
  border-radius: var(--ax-rounded-border-default);
@@ -47,7 +47,7 @@
47
47
  justify-content: center;
48
48
  width: var(--ax-size-default);
49
49
  min-width: var(--ax-size-default);
50
- height: var(--ax-size-default);
50
+ height: 100%;
51
51
  font-size: 1.25rem;
52
52
  line-height: 1.25rem;
53
53
  color: rgba(var(--ax-color-surface-fore));
@@ -1,17 +1,11 @@
1
1
  @import '../mixins/index.scss';
2
2
  @include darkMode() {
3
- .ax-list {
4
- .ax-content {
5
- &.ax-default {
6
- .ax-list-item {
7
- &.ax-state-selected {
8
- background-color: rgba(var(--ax-color-primary-800)) !important;
9
- color: rgba(var(--ax-color-primary-fore)) !important;
10
- .ax-selected-icon {
11
- color: rgba(var(--ax-color-primary-fore));
12
- }
13
- }
14
- }
3
+ .ax-list-item {
4
+ &.ax-state-selected {
5
+ background-color: rgba(var(--ax-color-primary-800)) !important;
6
+ color: rgba(var(--ax-color-primary-fore)) !important;
7
+ .ax-selected-icon {
8
+ color: rgba(var(--ax-color-primary-fore));
15
9
  }
16
10
  }
17
11
  }
@@ -102,8 +96,8 @@
102
96
  }
103
97
  }
104
98
  &.ax-state-selected {
105
- background-color: rgba(var(--ax-color-primary-50)) !important;
106
- color: rgba(var(--ax-color-primary-500)) !important;
99
+ background-color: rgba(var(--ax-color-on-surface)) !important;
100
+ color: rgba(var(--ax-color-on-surface-fore)) !important;
107
101
  .ax-selected-icon {
108
102
  color: rgba(var(--ax-color-primary-500));
109
103
  font-size: 1.5rem;
@@ -1,16 +1,16 @@
1
1
  @import '../mixins/index.scss';
2
- @include darkMode() {
3
- .ax-radio {
4
- background-color: rgba(var(--ax-color-on-surface));
5
- }
6
- }
2
+ // @include darkMode() {
3
+ // .ax-radio {
4
+ // background-color: rgba(var(--ax-color-on-surface));
5
+ // }
6
+ // }
7
7
  .ax-radio {
8
8
  width: 1.125rem;
9
9
  height: 1.125rem;
10
10
  border: 1px solid;
11
11
  border-color: rgba(var(--ax-color-border-default));
12
12
  border-radius: 99rem;
13
- background-color: rgba(var(--ax-color-surface));
13
+ background-color: rgba(var(--ax-color-input-surface));
14
14
  outline: 2px solid transparent;
15
15
  outline-offset: 2px;
16
16
  vertical-align: middle;
@@ -0,0 +1,129 @@
1
+ :root {
2
+ --ax-size-base: 2.5rem;
3
+ --ax-size-default: var(--ax-size-base);
4
+
5
+ --ax-rounded-border-default: 0.375rem;
6
+ --ax-color-border-default: 224, 224, 224;
7
+
8
+ --ax-color-background-default: 250, 250, 250;
9
+ --ax-color-text-default: 18, 18, 18;
10
+
11
+ --ax-color-surface: 255, 255, 255;
12
+ --ax-color-surface-fore: 18, 18, 18;
13
+
14
+ --ax-color-on-surface: 244, 244, 244;
15
+ --ax-color-on-surface-fore: 20, 20, 20;
16
+
17
+ --ax-color-input-surface: 255, 255, 255;
18
+
19
+ --ax-color-ghost-fore: 30, 41, 59;
20
+ --ax-color-ghost-50: 247, 248, 250;
21
+ --ax-color-ghost-100: 235, 238, 242;
22
+ --ax-color-ghost-200: 221, 226, 233;
23
+ --ax-color-ghost-300: 207, 214, 224;
24
+ --ax-color-ghost-400: 197, 206, 217;
25
+ --ax-color-ghost-500: 187, 197, 210;
26
+ --ax-color-ghost-600: 181, 191, 205;
27
+ --ax-color-ghost-700: 172, 184, 199;
28
+ --ax-color-ghost-800: 164, 176, 193;
29
+ --ax-color-ghost-900: 150, 163, 182;
30
+
31
+ --ax-color-primary-fore: 255, 255, 255;
32
+ --ax-color-primary-50: 239, 246, 255;
33
+ --ax-color-primary-100: 219, 234, 254;
34
+ --ax-color-primary-200: 191, 219, 254;
35
+ --ax-color-primary-300: 147, 197, 253;
36
+ --ax-color-primary-400: 96, 165, 250;
37
+ --ax-color-primary-500: 59, 130, 246;
38
+ --ax-color-primary-600: 37, 99, 235;
39
+ --ax-color-primary-700: 29, 78, 216;
40
+ --ax-color-primary-800: 30, 64, 175;
41
+ --ax-color-primary-900: 30, 58, 138;
42
+
43
+ --ax-color-secondary-fore: 255, 255, 255;
44
+ --ax-color-secondary-50: 233, 234, 236;
45
+ --ax-color-secondary-100: 200, 203, 208;
46
+ --ax-color-secondary-200: 164, 169, 176;
47
+ --ax-color-secondary-300: 128, 134, 144;
48
+ --ax-color-secondary-400: 100, 108, 121;
49
+ --ax-color-secondary-500: 73, 82, 97;
50
+ --ax-color-secondary-600: 66, 75, 89;
51
+ --ax-color-secondary-700: 57, 65, 79;
52
+ --ax-color-secondary-800: 49, 56, 69;
53
+ --ax-color-secondary-900: 33, 40, 51;
54
+
55
+ --ax-color-success-fore: 255, 255, 255;
56
+ --ax-color-success-50: 236, 253, 245;
57
+ --ax-color-success-100: 209, 250, 229;
58
+ --ax-color-success-200: 167, 243, 208;
59
+ --ax-color-success-300: 110, 231, 183;
60
+ --ax-color-success-400: 52, 211, 153;
61
+ --ax-color-success-500: 16, 185, 129;
62
+ --ax-color-success-600: 5, 150, 105;
63
+ --ax-color-success-700: 4, 120, 87;
64
+ --ax-color-success-800: 6, 95, 70;
65
+ --ax-color-success-900: 6, 78, 59;
66
+
67
+ --ax-color-danger-fore: 255, 255, 255;
68
+ --ax-color-danger-50: 254, 242, 242;
69
+ --ax-color-danger-100: 254, 226, 226;
70
+ --ax-color-danger-200: 254, 202, 202;
71
+ --ax-color-danger-300: 252, 165, 165;
72
+ --ax-color-danger-400: 248, 113, 113;
73
+ --ax-color-danger-500: 239, 68, 68;
74
+ --ax-color-danger-600: 220, 38, 38;
75
+ --ax-color-danger-700: 185, 28, 28;
76
+ --ax-color-danger-800: 153, 27, 27;
77
+ --ax-color-danger-900: 127, 29, 29;
78
+
79
+ --ax-color-warning-fore: 120, 53, 15;
80
+ --ax-color-warning-50: 255, 248, 225;
81
+ --ax-color-warning-100: 255, 236, 179;
82
+ --ax-color-warning-200: 255, 224, 130;
83
+ --ax-color-warning-300: 255, 213, 79;
84
+ --ax-color-warning-400: 255, 202, 40;
85
+ --ax-color-warning-500: 255, 193, 7;
86
+ --ax-color-warning-600: 255, 179, 0;
87
+ --ax-color-warning-700: 255, 160, 0;
88
+ --ax-color-warning-800: 255, 143, 0;
89
+ --ax-color-warning-900: 255, 111, 0;
90
+ }
91
+
92
+ .ax-dark {
93
+ --ax-color-background-default: 47, 48, 55;
94
+
95
+ --ax-color-text-default: 224, 224, 224;
96
+ --ax-color-border-default: 72, 72, 72;
97
+
98
+ --ax-color-surface: 60, 60, 67;
99
+ --ax-color-surface-fore: 224, 224, 224;
100
+
101
+ --ax-color-on-surface: 71, 71, 78;
102
+ --ax-color-on-surface-fore: 224, 224, 224;
103
+
104
+ --ax-color-input-surface: 80, 81, 87;
105
+
106
+ --ax-color-ghost-fore: 255, 255, 255;
107
+ --ax-color-ghost-50: 232, 233, 234;
108
+ --ax-color-ghost-100: 199, 200, 203;
109
+ --ax-color-ghost-200: 161, 163, 169;
110
+ --ax-color-ghost-300: 123, 126, 134;
111
+ --ax-color-ghost-400: 95, 99, 108;
112
+ --ax-color-ghost-500: 67, 71, 82;
113
+ --ax-color-ghost-600: 61, 64, 75;
114
+ --ax-color-ghost-700: 52, 55, 65;
115
+ --ax-color-ghost-800: 44, 47, 56;
116
+ --ax-color-ghost-900: 30, 32, 40;
117
+
118
+ // --ax-color-primary-fore : 25, 41, 63;
119
+ // --ax-color-primary-50 : 243, 248, 255;
120
+ // --ax-color-primary-100 : 226, 236, 254;
121
+ // --ax-color-primary-200 : 206, 224, 253;
122
+ // --ax-color-primary-300 : 186, 212, 252;
123
+ // --ax-color-primary-400 : 172, 202, 252;
124
+ // --ax-color-primary-500 : 157, 193, 251;
125
+ // --ax-color-primary-600 : 149, 187, 250;
126
+ // --ax-color-primary-700 : 139, 179, 250;
127
+ // --ax-color-primary-800 : 129, 171, 249;
128
+ // --ax-color-primary-900 : 111, 158, 248
129
+ }
@@ -3,7 +3,7 @@
3
3
  --ax-size-default: var(--ax-size-base);
4
4
 
5
5
  --ax-rounded-border-default: 0.375rem;
6
- --ax-color-border-default: 204, 204, 204;
6
+ --ax-color-border-default: 224, 224, 224;
7
7
 
8
8
  --ax-color-background-default: 250, 250, 250;
9
9
  --ax-color-text-default: 18, 18, 18;
@@ -11,9 +11,12 @@
11
11
  --ax-color-surface: 255, 255, 255;
12
12
  --ax-color-surface-fore: 18, 18, 18;
13
13
 
14
- --ax-color-on-surface: 242, 242, 242;
14
+ --ax-color-on-surface: 244, 244, 244;
15
15
  --ax-color-on-surface-fore: 20, 20, 20;
16
16
 
17
+ --ax-color-input-surface: 255, 255, 255;
18
+ --ax-color-input-surface-fore: 18, 18, 18;
19
+
17
20
  --ax-color-ghost-fore: 30, 41, 59;
18
21
  --ax-color-ghost-50: 247, 248, 250;
19
22
  --ax-color-ghost-100: 235, 238, 242;
@@ -88,17 +91,19 @@
88
91
  }
89
92
 
90
93
  .ax-dark {
91
- --ax-color-background-default: 23, 32, 46;
92
-
94
+ --ax-color-background-default: 27, 27, 27;
93
95
  --ax-color-text-default: 224, 224, 224;
94
- --ax-color-border-default: 74, 76, 80;
96
+ --ax-color-border-default: 255, 255, 255, 0.13;
95
97
 
96
- --ax-color-surface: 45, 50, 63;
98
+ --ax-color-surface: 50, 50, 50;
97
99
  --ax-color-surface-fore: 224, 224, 224;
98
100
 
99
- --ax-color-on-surface: 60, 68, 79;
101
+ --ax-color-on-surface: 62, 62, 62;
100
102
  --ax-color-on-surface-fore: 224, 224, 224;
101
103
 
104
+ --ax-color-input-surface: 0, 0, 0, 0.26;
105
+ --ax-color-input-surface-fore: 224, 224, 224;
106
+
102
107
  --ax-color-ghost-fore: 255, 255, 255;
103
108
  --ax-color-ghost-50: 232, 233, 234;
104
109
  --ax-color-ghost-100: 199, 200, 203;
@@ -110,4 +115,16 @@
110
115
  --ax-color-ghost-700: 52, 55, 65;
111
116
  --ax-color-ghost-800: 44, 47, 56;
112
117
  --ax-color-ghost-900: 30, 32, 40;
118
+
119
+ // --ax-color-primary-fore : 25, 41, 63;
120
+ // --ax-color-primary-50 : 243, 248, 255;
121
+ // --ax-color-primary-100 : 226, 236, 254;
122
+ // --ax-color-primary-200 : 206, 224, 253;
123
+ // --ax-color-primary-300 : 186, 212, 252;
124
+ // --ax-color-primary-400 : 172, 202, 252;
125
+ // --ax-color-primary-500 : 157, 193, 251;
126
+ // --ax-color-primary-600 : 149, 187, 250;
127
+ // --ax-color-primary-700 : 139, 179, 250;
128
+ // --ax-color-primary-800 : 129, 171, 249;
129
+ // --ax-color-primary-900 : 111, 158, 248
113
130
  }
@@ -116,6 +116,7 @@ module.exports = withAnimations({
116
116
  'success-fore': withOpacityValue('--ax-color-success-fore'),
117
117
  'warning-fore': withOpacityValue('--ax-color-warning-fore'),
118
118
  'danger-fore': withOpacityValue('--ax-color-danger-fore'),
119
+ 'ghost-fore': withOpacityValue('--ax-color-ghost-fore'),
119
120
  },
120
121
  backgroundColor: {
121
122
  default: withOpacityValue('--ax-color-background-default'),
@@ -178,6 +179,5 @@ module.exports = withAnimations({
178
179
  addUtilities(acorexClasses, ['responsive', 'hover', 'focus']);
179
180
  }),
180
181
  childSelector,
181
- require('tailwind-auto-directions'),
182
182
  ],
183
183
  });