@acorex/styles 19.10.0-next.14 → 19.10.0-next.16

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.
@@ -3,17 +3,19 @@
3
3
  :root,
4
4
  .ax-editor-container {
5
5
  --ax-comp-editor-font-size: 0.875rem;
6
+ --ax-comp-editor-gap: 0.5rem;
6
7
  --ax-comp-editor-space-start-size: 0.75rem;
7
8
  --ax-comp-editor-space-end-size: 0.75rem;
8
9
  --ax-comp-editor-height: var(--ax-sys-size-base);
10
+ --ax-comp-editor-placeholder-space-x: 0.75rem;
9
11
 
10
12
  --ax-comp-editor-error-bg-color: var(--ax-sys-color-danger-light-surface);
11
13
  --ax-comp-editor-error-text-color: var(--ax-sys-color-danger-surface);
12
14
  --ax-comp-editor-error-border-color: var(--ax-sys-color-border-danger-surface);
13
15
  --ax-comp-editor-error-box-shadow-color: var(--ax-sys-color-danger-surface);
14
16
 
15
- --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
16
- --ax-comp-editor-border-color: var(--ax-sys-color-border-lighter-surface);
17
+ --ax-comp-editor-text-color: var(--ax-sys-color-on-surface);
18
+ --ax-comp-editor-border-color: var(--ax-sys-color-border-surface);
17
19
  --ax-comp-editor-border-radius: var(--ax-sys-border-radius);
18
20
  --ax-comp-editor-box-outline-width: 1px;
19
21
  --ax-comp-editor-box-outline-color: var(--ax-sys-color-primary-surface);
@@ -37,6 +39,10 @@
37
39
  border-color: rgba(var(--ax-comp-editor-border-color));
38
40
  background-color: rgba(var(--ax-comp-editor-bg-color));
39
41
  color: rgba(var(--ax-comp-editor-text-color));
42
+ position: relative;
43
+ gap: var(--ax-comp-editor-gap);
44
+ padding-inline-start: var(--ax-comp-editor-space-start-size);
45
+ padding-inline-end: var(--ax-comp-editor-space-end-size);
40
46
 
41
47
  &:focus-within {
42
48
  border-color: rgba(var(--ax-comp-editor-focused-border-color));
@@ -75,6 +81,9 @@
75
81
  &.ax-fill {
76
82
  @include mixin.fill-look();
77
83
  }
84
+ &.ax-none {
85
+ @include mixin.none-look();
86
+ }
78
87
 
79
88
  .ax-editor-input {
80
89
  height: 100%;
@@ -85,11 +94,11 @@
85
94
  }
86
95
  }
87
96
 
88
- .ax-editor,
89
- .ax-input {
90
- padding-inline-start: var(--ax-comp-editor-space-start-size);
91
- padding-inline-end: var(--ax-comp-editor-space-end-size);
92
- }
97
+ // .ax-editor,
98
+ // .ax-input {
99
+ // padding-inline-start: var(--ax-comp-editor-space-start-size);
100
+ // padding-inline-end: var(--ax-comp-editor-space-end-size);
101
+ // }
93
102
  .ax-input {
94
103
  // padding: 0 calc(var(--ax-comp-editor-font-size) - 4px);
95
104
  font-size: var(--ax-comp-editor-font-size);
@@ -109,19 +118,6 @@
109
118
  }
110
119
  }
111
120
 
112
- .ax-editor-container {
113
- border-radius: 0 !important;
114
- border: 0px !important;
115
- // height: 100% !important;
116
-
117
- &:focus-within {
118
- box-shadow: none !important;
119
- }
120
- &:focus {
121
- box-shadow: 0px 0px 0 1px rgba(var(--ax-sys-color-primary-500));
122
- }
123
- }
124
-
125
121
  &.ax-state-disabled {
126
122
  opacity: 0.5;
127
123
  cursor: not-allowed;
@@ -164,37 +160,23 @@
164
160
  height: var(--ax-comp-editor-button-height, 100%);
165
161
  }
166
162
 
167
- > ax-prefix {
168
- padding-inline-start: var(--ax-comp-editor-space-start-size);
169
- }
170
-
171
- > ax-suffix,
172
- .ax-editor-button,
173
- .ax-clear-button {
174
- padding-inline-end: var(--ax-comp-editor-space-end-size);
175
- }
163
+ // .ax-editor-button,
164
+ // .ax-clear-button {
165
+ // padding-inline-end: var(--ax-comp-editor-space-end-size);
166
+ // }
176
167
  & > ax-prefix,
177
168
  & > ax-suffix {
178
169
  max-width: fit-content;
179
170
  }
180
- & > ax-prefix {
181
- ax-icon {
182
- }
183
- }
184
- & > ax-suffix {
185
- ax-icon {
186
- }
187
- }
188
171
 
189
172
  & > ax-prefix,
190
173
  & > ax-suffix {
191
174
  height: 100%;
192
175
 
193
- // + .ax-input {
194
- // padding-left: 0.375rem !important;
195
- // padding-right: 0.375rem !important;
196
- // }
197
- * {
176
+ ax-button,
177
+ ax-text,
178
+ ax-icon,
179
+ .ax-editor-container {
198
180
  display: flex;
199
181
  height: 100%;
200
182
  align-items: center;
@@ -223,38 +205,57 @@
223
205
  width: var(--ax-comp-editor-height);
224
206
  }
225
207
  }
208
+
209
+ ax-popover {
210
+ position: absolute;
211
+ }
226
212
  }
227
213
 
228
214
  .ax-xs .ax-editor-container,
229
215
  .ax-editor-container.ax-xs {
230
216
  --ax-comp-editor-font-size: 0.75rem;
231
- --ax-comp-editor-space-start-size: 0.375rem;
232
- --ax-comp-editor-space-end-size: 0.375rem;
217
+ --ax-comp-editor-space-start-size: 0.25rem;
218
+ --ax-comp-editor-space-end-size: 0.25rem;
219
+ --ax-comp-editor-button-font-size: 0.625rem;
220
+ --ax-comp-editor-gap: 0.25rem;
221
+ --ax-comp-editor-height: 1.5rem;
233
222
  }
234
223
  .ax-sm .ax-editor-container,
235
224
  .ax-editor-container.ax-sm {
236
225
  --ax-comp-editor-font-size: 0.875rem;
237
226
  --ax-comp-editor-space-start-size: 0.5rem;
238
227
  --ax-comp-editor-space-end-size: 0.5rem;
228
+ --ax-comp-editor-button-font-size: 0.75rem;
229
+ --ax-comp-editor-gap: 0.375rem;
230
+ --ax-comp-editor-height: 1.969rem;
239
231
  }
240
232
 
241
233
  .ax-md .ax-editor-container,
242
234
  .ax-editor-container,
243
235
  .ax-editor-container.ax-md {
244
- --ax-comp-editor-space-start-size: 0.75rem;
245
- --ax-comp-editor-space-end-size: 0.75rem;
236
+ --ax-comp-editor-space-start-size: 1rem;
237
+ --ax-comp-editor-space-end-size: 1rem;
238
+ --ax-comp-editor-button-font-size: 0.875rem;
239
+ --ax-comp-editor-gap: 0.5rem;
240
+ --ax-comp-editor-height: 2.5rem;
246
241
  }
247
242
 
248
243
  .ax-lg .ax-editor-container,
249
244
  .ax-editor-container.ax-lg {
250
245
  --ax-comp-editor-font-size: 1.125rem;
251
- --ax-comp-editor-space-start-size: 0.75rem;
252
- --ax-comp-editor-space-end-size: 0.75rem;
246
+ --ax-comp-editor-space-start-size: 1.125rem;
247
+ --ax-comp-editor-space-end-size: 1.125rem;
248
+ --ax-comp-editor-button-font-size: 0.875rem;
249
+ --ax-comp-editor-gap: 0.625rem;
250
+ --ax-comp-editor-height: 3.375rem;
253
251
  }
254
252
 
255
253
  .ax-xl .ax-editor-container,
256
254
  .ax-editor-container.ax-xl {
257
255
  --ax-comp-editor-font-size: 1.5rem;
258
- --ax-comp-editor-space-start-size: 0.75rem;
259
- --ax-comp-editor-space-end-size: 0.75rem;
256
+ --ax-comp-editor-space-start-size: 1.5rem;
257
+ --ax-comp-editor-space-end-size: 1.5rem;
258
+ --ax-comp-editor-button-font-size: 1rem;
259
+ --ax-comp-editor-gap: 0.75rem;
260
+ --ax-comp-editor-height: 3.938rem;
260
261
  }
@@ -21,3 +21,12 @@
21
21
  border-width: 0px !important;
22
22
  border-bottom-width: var(--ax-comp-editor-border-width) !important;
23
23
  }
24
+
25
+ @mixin none-look() {
26
+ --ax-comp-editor-border-radius: 0px;
27
+ --ax-comp-editor-box-outline-width: 0px;
28
+ --ax-comp-editor-border-width: 0px;
29
+ --ax-comp-editor-bg-color: 0, 0, 0, 0;
30
+ --ax-comp-editor-border-color: 0, 0, 0, 0;
31
+ --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
32
+ }
@@ -6,8 +6,6 @@
6
6
  --ax-sys-scroller-size-radius: 3px;
7
7
  --ax-sys-scroller-track-color: rgba(var(--ax-sys-color-light-surface));
8
8
  --ax-sys-scroller-thumb-color: rgba(var(--ax-sys-color-darkest-surface));
9
- scrollbar-width: thin;
10
- scrollbar-color: var(--ax-sys-scroller-thumb-color) var(--ax-sys-scroller-track-color);
11
9
  }
12
10
 
13
11
  .ax-dark,
@@ -33,3 +31,9 @@
33
31
  border-radius: var(--ax-sys-scroller-size-radius);
34
32
  }
35
33
  }
34
+ @-moz-document url-prefix() {
35
+ * {
36
+ // scrollbar-width: thin;
37
+ scrollbar-color: var(--ax-sys-scroller-thumb-color) var(--ax-sys-scroller-track-color);
38
+ }
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "19.10.0-next.14",
3
+ "version": "19.10.0-next.16",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
package/tailwind-base.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const plugin = require('tailwindcss/plugin');
2
2
  const { withAnimations } = require('animated-tailwindcss');
3
3
  const { createBorderSurfaces, createOnSurfaces, createPalette, createSurfaces } = require('./generators/index');
4
+
4
5
  const childSelector = plugin(function ({ addVariant }) {
5
6
  addVariant('child', '& > *');
6
7
  addVariant('child-hover', '& > *:hover');
@@ -9,9 +9,6 @@ $theme-colors: (
9
9
  oklch(0.645 0.246 16.439),
10
10
  oklch(0.712 0.194 13.428),
11
11
  ),
12
- 'info': hsl(257, 100%, 50%),
13
- 'accent1': hsla(77, 100%, 50%, 0.483),
14
- 'accent2': hsl(48, 100%, 50%),
15
12
  );
16
13
 
17
14
  $theme-surfaces: (
@@ -36,9 +33,6 @@ $options: (
36
33
  --ax-sys-border-radius: 0.5rem;
37
34
  --ax-sys-color-body-text: 0, 0, 0;
38
35
  --ax-sys-color-input-text: 0, 0, 0;
39
-
40
- // --ax-sys-body-bg-color: var(--ax-sys-color-surface-lowest);
41
- // --ax-sys-body-text-color: var(--ax-sys-color-surface-lowest-border);
42
36
  }
43
37
 
44
38
  @include generate-pallete-variables($theme-colors, $theme-surfaces, $options);