@acorex/styles 21.0.0-next.2 → 21.0.0-next.21

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.
@@ -121,20 +121,20 @@ code,
121
121
  kbd,
122
122
  samp,
123
123
  pre {
124
- font-family: theme(
125
- 'fontFamily.mono',
126
- ui-monospace,
127
- SFMono-Regular,
128
- Menlo,
129
- Monaco,
130
- Consolas,
131
- 'Liberation Mono',
132
- 'Courier New',
133
- monospace
134
- ); /* 1 */
135
- font-feature-settings: theme('fontFamily.mono[1].fontFeatureSettings', normal); /* 2 */
136
- font-variation-settings: theme('fontFamily.mono[1].fontVariationSettings', normal); /* 3 */
137
- font-size: 1em; /* 4 */
124
+ // font-family: theme(
125
+ // 'fontFamily.mono',
126
+ // ui-monospace,
127
+ // SFMono-Regular,
128
+ // Menlo,
129
+ // Monaco,
130
+ // Consolas,
131
+ // 'Liberation Mono',
132
+ // 'Courier New',
133
+ // monospace
134
+ // ); /* 1 */
135
+ // font-feature-settings: theme('fontFamily.mono[1].fontFeatureSettings', normal); /* 2 */
136
+ // font-variation-settings: theme('fontFamily.mono[1].fontVariationSettings', normal); /* 3 */
137
+ // font-size: 1em; /* 4 */
138
138
  }
139
139
 
140
140
  /*
@@ -213,10 +213,7 @@ select {
213
213
  2. Remove default button styles.
214
214
  */
215
215
 
216
- button,
217
- [type='button'],
218
- [type='reset'],
219
- [type='submit'] {
216
+ button {
220
217
  -webkit-appearance: button; /* 1 */
221
218
  background-color: transparent; /* 2 */
222
219
  background-image: none; /* 2 */
@@ -1,4 +1,5 @@
1
1
  @use '../mixins/index.scss' as mixin;
2
+
2
3
  .ax-uploader-overlay-state {
3
4
  border-radius: inherit;
4
5
  pointer-events: none;
@@ -12,17 +13,97 @@
12
13
  cursor: pointer;
13
14
  flex-direction: column;
14
15
  align-items: center;
15
- justify-content: center;
16
- gap: 0.5rem /* 8px */;
17
- background-color: rgba(var(--ax-sys-color-primary-200), 0.75);
18
- font-size: 0.875rem /* 14px */;
19
- line-height: 1.25rem /* 20px */;
20
- color: rgba(var(--ax-sys-color-on-primary-tint));
21
- outline-style: dashed;
22
- outline-offset: -4px;
16
+ justify-content: space-evenly;
17
+ gap: 1rem /* 16px */;
18
+
19
+ // Enhanced backdrop with blur and gradient
20
+ background: linear-gradient(
21
+ 135deg,
22
+ rgba(var(--ax-sys-color-primary-500), 0.15) 0%,
23
+ rgba(var(--ax-sys-color-primary-400), 0.2) 100%
24
+ );
25
+ backdrop-filter: blur(8px);
26
+ -webkit-backdrop-filter: blur(8px);
27
+
28
+ // Modern border design
29
+ border: 2px dashed rgba(var(--ax-sys-color-primary-500), 0.6);
30
+ box-shadow:
31
+ 0 4px 16px rgba(var(--ax-sys-color-primary-500), 0.15),
32
+ inset 0 1px 0 rgba(255, 255, 255, 0.1);
33
+
34
+ // Typography
35
+ font-size: 0.9375rem /* 15px */;
36
+ line-height: 1.5rem /* 24px */;
37
+ font-weight: 500;
38
+ color: rgba(var(--ax-sys-color-primary-700));
39
+ text-align: center;
40
+
41
+ // Smooth transitions
23
42
  transition-property: all;
24
43
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
25
- transition-duration: 150ms;
44
+ transition-duration: 200ms;
45
+
46
+ // Icon styling
47
+ .ax-icon {
48
+ height: 3rem;
49
+ font-size: 2.5rem /* 40px */;
50
+ color: rgba(var(--ax-sys-color-primary-600));
51
+ filter: drop-shadow(0 2px 4px rgba(var(--ax-sys-color-primary-500), 0.2));
52
+ transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
53
+ animation: pulse 2s ease-in-out infinite;
54
+ }
55
+
56
+ // Text styling
57
+ > span:not(.ax-icon) {
58
+ max-width: 80%;
59
+ padding: 0 1rem;
60
+ text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
61
+ }
62
+
63
+ // Subtle animation on mount
64
+ animation: fadeInScale 200ms cubic-bezier(0.4, 0, 0.2, 1);
65
+
66
+ // Exit animation class
67
+ &.ax-uploader-overlay-exiting {
68
+ animation: fadeOutScale 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
69
+ }
70
+ }
71
+
72
+ // Pulse animation for icon
73
+ @keyframes pulse {
74
+ 0%,
75
+ 100% {
76
+ transform: scale(1);
77
+ opacity: 1;
78
+ }
79
+ 50% {
80
+ transform: scale(1.05);
81
+ opacity: 0.9;
82
+ }
83
+ }
84
+
85
+ // Fade in and scale animation
86
+ @keyframes fadeInScale {
87
+ from {
88
+ opacity: 0;
89
+ transform: scale(0.95);
90
+ }
91
+ to {
92
+ opacity: 1;
93
+ transform: scale(1);
94
+ }
95
+ }
96
+
97
+ // Fade out and scale animation
98
+ @keyframes fadeOutScale {
99
+ from {
100
+ opacity: 1;
101
+ transform: scale(1);
102
+ }
103
+ to {
104
+ opacity: 0;
105
+ transform: scale(0.95);
106
+ }
26
107
  }
27
108
 
28
109
  .ax-drop-zone {
@@ -37,8 +118,33 @@
37
118
 
38
119
  @include mixin.darkMode() {
39
120
  .ax-uploader-overlay-state {
40
- background-color: rgba(var(--ax-sys-color-primary-800), 0.75);
41
- color: rgba(var(--ax-sys-color-on-primary));
42
- outline-color: rgba(var(--ax-sys-color-on-primary));
121
+ // Dark mode gradient
122
+ background: linear-gradient(
123
+ 135deg,
124
+ rgba(var(--ax-sys-color-primary-600), 0.2) 0%,
125
+ rgba(var(--ax-sys-color-primary-500), 0.25) 100%
126
+ );
127
+
128
+ // Dark mode border
129
+ border-color: rgba(var(--ax-sys-color-primary-400), 0.5);
130
+
131
+ // Dark mode shadow
132
+ box-shadow:
133
+ 0 4px 16px rgba(var(--ax-sys-color-primary-900), 0.3),
134
+ inset 0 1px 0 rgba(255, 255, 255, 0.05);
135
+
136
+ // Dark mode text
137
+ color: rgba(var(--ax-sys-color-primary-300));
138
+
139
+ // Dark mode icon
140
+ .ax-icon {
141
+ color: rgba(var(--ax-sys-color-primary-400));
142
+ filter: drop-shadow(0 2px 4px rgba(var(--ax-sys-color-primary-900), 0.4));
143
+ }
144
+
145
+ // Dark mode text shadow
146
+ > span:not(.ax-icon) {
147
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
148
+ }
43
149
  }
44
150
  }
@@ -223,3 +223,6 @@ $ax-icon-maximize-after: '';
223
223
 
224
224
  $ax-icon-code: '\f121';
225
225
  $ax-icon-code-after: '';
226
+
227
+ $ax-icon-paragraph: '\f1dd';
228
+ $ax-icon-paragraph-after: '';
@@ -703,3 +703,12 @@
703
703
  content: variables.$ax-icon-code-after;
704
704
  }
705
705
  }
706
+
707
+ .ax-icon-paragraph {
708
+ &:before {
709
+ content: variables.$ax-icon-paragraph;
710
+ }
711
+ &:after {
712
+ content: variables.$ax-icon-paragraph-after;
713
+ }
714
+ }
@@ -222,3 +222,6 @@ $ax-icon-maximize-after: '';
222
222
 
223
223
  $ax-icon-code: '\e86f';
224
224
  $ax-icon-code-after: '';
225
+
226
+ $ax-icon-paragraph: '\f865';
227
+ $ax-icon-paragraph-after: '';
@@ -707,3 +707,12 @@
707
707
  content: variables.$ax-icon-code-after;
708
708
  }
709
709
  }
710
+
711
+ .ax-icon-paragraph {
712
+ &:before {
713
+ content: variables.$ax-icon-paragraph;
714
+ }
715
+ &:after {
716
+ content: variables.$ax-icon-paragraph-after;
717
+ }
718
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "21.0.0-next.2",
3
+ "version": "21.0.0-next.21",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",