@acorex/styles 5.9.0 → 6.0.0

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.
Files changed (51) hide show
  1. package/index.js +8 -12
  2. package/index.scss +4 -4
  3. package/package.json +1 -1
  4. package/src/components/_action-sheet.scss +1 -2
  5. package/src/components/_alert.scss +56 -54
  6. package/src/components/_avatar.scss +0 -2
  7. package/src/components/_badge.scss +29 -5
  8. package/src/components/_breadcrumbs.scss +2 -3
  9. package/src/components/_button.scss +9 -13
  10. package/src/components/_calendar.scss +5 -5
  11. package/src/components/_checkbox.scss +3 -8
  12. package/src/components/_collapse.scss +0 -1
  13. package/src/components/_color-palette.scss +5 -5
  14. package/src/components/_color-picker.scss +1 -1
  15. package/src/components/_data-table.scss +5 -5
  16. package/src/components/_datapager.scss +3 -3
  17. package/src/components/_decoration.scss +10 -10
  18. package/src/components/_dialog.scss +1 -1
  19. package/src/components/_drawer.scss +7 -7
  20. package/src/components/_dropdown.scss +8 -10
  21. package/src/components/_editor-container.scss +12 -12
  22. package/src/components/_fieldset.scss +1 -1
  23. package/src/components/_form.scss +1 -1
  24. package/src/components/_label.scss +1 -1
  25. package/src/components/_list.scss +8 -23
  26. package/src/components/_loading.scss +14 -21
  27. package/src/components/_menu.scss +3 -4
  28. package/src/components/_numberbox.scss +1 -3
  29. package/src/components/_popup.scss +4 -4
  30. package/src/components/_progress.scss +2 -3
  31. package/src/components/_radio.scss +1 -1
  32. package/src/components/_range-slider.scss +2 -2
  33. package/src/components/_result.scss +0 -1
  34. package/src/components/_selectbox.scss +2 -2
  35. package/src/components/_switch.scss +0 -1
  36. package/src/components/_tabs.scss +3 -3
  37. package/src/components/_textarea.scss +5 -6
  38. package/src/components/_toast.scss +1 -1
  39. package/src/components/_treeview.scss +0 -1
  40. package/src/components/index.scss +0 -2
  41. package/src/icons/demo-files/demo.css +152 -152
  42. package/src/icons/demo-files/demo.js +30 -30
  43. package/src/icons/demo.html +556 -556
  44. package/src/icons/fonts/acorex-icon.svg +46 -46
  45. package/src/icons/style.css +138 -138
  46. package/src/icons/style.scss +215 -215
  47. package/src/icons/variables.scss +41 -41
  48. package/src/utility/_mixins.scss +63 -0
  49. package/src/components/_picker.scss +0 -179
  50. package/src/components/_side-menu.scss +0 -42
  51. package/src/components/_switch copy.scss +0 -185
@@ -1,215 +1,215 @@
1
- @import "variables";
2
-
3
- @font-face {
4
- font-family: '#{$icomoon-font-family}';
5
- src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?bc3pev');
6
- src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?bc3pev#iefix') format('embedded-opentype'),
7
- url('#{$icomoon-font-path}/#{$icomoon-font-family}.ttf?bc3pev') format('truetype'),
8
- url('#{$icomoon-font-path}/#{$icomoon-font-family}.woff?bc3pev') format('woff'),
9
- url('#{$icomoon-font-path}/#{$icomoon-font-family}.svg?bc3pev##{$icomoon-font-family}') format('svg');
10
- font-weight: normal;
11
- font-style: normal;
12
- font-display: block;
13
- }
14
-
15
- [class^="ax-ic-"], [class*=" ax-ic-"] {
16
- /* use !important to prevent issues with browser extensions that change fonts */
17
- font-family: '#{$icomoon-font-family}' !important;
18
- speak: never;
19
- font-style: normal;
20
- font-weight: normal;
21
- font-variant: normal;
22
- text-transform: none;
23
- line-height: 1;
24
-
25
- /* Better Font Rendering =========== */
26
- -webkit-font-smoothing: antialiased;
27
- -moz-osx-font-smoothing: grayscale;
28
- }
29
-
30
- .ax-ic-empty-box {
31
- &:before {
32
- content: $ax-ic-empty-box;
33
- }
34
- }
35
- .ax-ic-colorize {
36
- &:before {
37
- content: $ax-ic-colorize;
38
- }
39
- }
40
- .ax-ic-pase {
41
- &:before {
42
- content: $ax-ic-pase;
43
- }
44
- }
45
- .ax-ic-copy {
46
- &:before {
47
- content: $ax-ic-copy;
48
- }
49
- }
50
- .ax-ic-star-filled {
51
- &:before {
52
- content: $ax-ic-star-filled;
53
- }
54
- }
55
- .ax-ic-star-half-filled {
56
- &:before {
57
- content: $ax-ic-star-half-filled;
58
- }
59
- }
60
- .ax-ic-star-outline {
61
- &:before {
62
- content: $ax-ic-star-outline;
63
- }
64
- }
65
- .ax-ic-remove {
66
- &:before {
67
- content: $ax-ic-remove;
68
- }
69
- }
70
- .ax-ic-plus {
71
- &:before {
72
- content: $ax-ic-plus;
73
- }
74
- }
75
- .ax-ic-magnify {
76
- &:before {
77
- content: $ax-ic-magnify;
78
- }
79
- }
80
- .ax-ic-arrow-circle {
81
- &:before {
82
- content: $ax-ic-arrow-circle;
83
- }
84
- }
85
- .ax-ic-arrow-circle-fill {
86
- &:before {
87
- content: $ax-ic-arrow-circle-fill;
88
- }
89
- }
90
- .ax-ic-arrow-half {
91
- &:before {
92
- content: $ax-ic-arrow-half;
93
- }
94
- }
95
- .ax-ic-arrow-fill {
96
- &:before {
97
- content: $ax-ic-arrow-fill;
98
- }
99
- }
100
- .ax-ic-arrow {
101
- &:before {
102
- content: $ax-ic-arrow;
103
- }
104
- }
105
- .ax-ic-unfold {
106
- &:before {
107
- content: $ax-ic-unfold;
108
- }
109
- }
110
- .ax-ic-half-arrow {
111
- &:before {
112
- content: $ax-ic-half-arrow;
113
- }
114
- }
115
- .ax-ic-fullscreen {
116
- &:before {
117
- content: $ax-ic-fullscreen;
118
- }
119
- }
120
- .ax-ic-close-fullscreen {
121
- &:before {
122
- content: $ax-ic-close-fullscreen;
123
- }
124
- }
125
- .ax-ic-fold {
126
- &:before {
127
- content: $ax-ic-fold;
128
- }
129
- }
130
- .ax-ic-eye {
131
- &:before {
132
- content: $ax-ic-eye;
133
- }
134
- }
135
- .ax-ic-eye-off {
136
- &:before {
137
- content: $ax-ic-eye-off;
138
- }
139
- }
140
- .ax-ic-calendar {
141
- &:before {
142
- content: $ax-ic-calendar;
143
- }
144
- }
145
- .ax-ic-time {
146
- &:before {
147
- content: $ax-ic-time;
148
- }
149
- }
150
- .ax-ic-check {
151
- &:before {
152
- content: $ax-ic-check;
153
- }
154
- }
155
- .ax-ic-check-filled {
156
- &:before {
157
- content: $ax-ic-check-filled;
158
- }
159
- }
160
- .ax-ic-chevron {
161
- &:before {
162
- content: $ax-ic-chevron;
163
- }
164
- }
165
- .ax-ic-close {
166
- &:before {
167
- content: $ax-ic-close;
168
- }
169
- }
170
- .ax-ic-error-filled {
171
- &:before {
172
- content: $ax-ic-error-filled;
173
- }
174
- }
175
- .ax-ic-chevron-page {
176
- &:before {
177
- content: $ax-ic-chevron-page;
178
- }
179
- }
180
- .ax-ic-info-filled {
181
- &:before {
182
- content: $ax-ic-info-filled;
183
- }
184
- }
185
- .ax-ic-chevron-double {
186
- &:before {
187
- content: $ax-ic-chevron-double;
188
- }
189
- }
190
- .ax-ic-menu {
191
- &:before {
192
- content: $ax-ic-menu;
193
- }
194
- }
195
- .ax-ic-more {
196
- &:before {
197
- content: $ax-ic-more;
198
- }
199
- }
200
- .ax-ic-warning-filled {
201
- &:before {
202
- content: $ax-ic-warning-filled;
203
- }
204
- }
205
- .ax-ic-chevron-page-filled {
206
- &:before {
207
- content: $ax-ic-chevron-page-filled;
208
- }
209
- }
210
- .ax-ic-calendar-today {
211
- &:before {
212
- content: $ax-ic-calendar-today;
213
- }
214
- }
215
-
1
+ @import "variables";
2
+
3
+ @font-face {
4
+ font-family: '#{$icomoon-font-family}';
5
+ src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?bc3pev');
6
+ src: url('#{$icomoon-font-path}/#{$icomoon-font-family}.eot?bc3pev#iefix') format('embedded-opentype'),
7
+ url('#{$icomoon-font-path}/#{$icomoon-font-family}.ttf?bc3pev') format('truetype'),
8
+ url('#{$icomoon-font-path}/#{$icomoon-font-family}.woff?bc3pev') format('woff'),
9
+ url('#{$icomoon-font-path}/#{$icomoon-font-family}.svg?bc3pev##{$icomoon-font-family}') format('svg');
10
+ font-weight: normal;
11
+ font-style: normal;
12
+ font-display: block;
13
+ }
14
+
15
+ [class^="ax-ic-"], [class*=" ax-ic-"] {
16
+ /* use !important to prevent issues with browser extensions that change fonts */
17
+ font-family: '#{$icomoon-font-family}' !important;
18
+ speak: never;
19
+ font-style: normal;
20
+ font-weight: normal;
21
+ font-variant: normal;
22
+ text-transform: none;
23
+ line-height: 1;
24
+
25
+ /* Better Font Rendering =========== */
26
+ -webkit-font-smoothing: antialiased;
27
+ -moz-osx-font-smoothing: grayscale;
28
+ }
29
+
30
+ .ax-ic-empty-box {
31
+ &:before {
32
+ content: $ax-ic-empty-box;
33
+ }
34
+ }
35
+ .ax-ic-colorize {
36
+ &:before {
37
+ content: $ax-ic-colorize;
38
+ }
39
+ }
40
+ .ax-ic-pase {
41
+ &:before {
42
+ content: $ax-ic-pase;
43
+ }
44
+ }
45
+ .ax-ic-copy {
46
+ &:before {
47
+ content: $ax-ic-copy;
48
+ }
49
+ }
50
+ .ax-ic-star-filled {
51
+ &:before {
52
+ content: $ax-ic-star-filled;
53
+ }
54
+ }
55
+ .ax-ic-star-half-filled {
56
+ &:before {
57
+ content: $ax-ic-star-half-filled;
58
+ }
59
+ }
60
+ .ax-ic-star-outline {
61
+ &:before {
62
+ content: $ax-ic-star-outline;
63
+ }
64
+ }
65
+ .ax-ic-remove {
66
+ &:before {
67
+ content: $ax-ic-remove;
68
+ }
69
+ }
70
+ .ax-ic-plus {
71
+ &:before {
72
+ content: $ax-ic-plus;
73
+ }
74
+ }
75
+ .ax-ic-magnify {
76
+ &:before {
77
+ content: $ax-ic-magnify;
78
+ }
79
+ }
80
+ .ax-ic-arrow-circle {
81
+ &:before {
82
+ content: $ax-ic-arrow-circle;
83
+ }
84
+ }
85
+ .ax-ic-arrow-circle-fill {
86
+ &:before {
87
+ content: $ax-ic-arrow-circle-fill;
88
+ }
89
+ }
90
+ .ax-ic-arrow-half {
91
+ &:before {
92
+ content: $ax-ic-arrow-half;
93
+ }
94
+ }
95
+ .ax-ic-arrow-fill {
96
+ &:before {
97
+ content: $ax-ic-arrow-fill;
98
+ }
99
+ }
100
+ .ax-ic-arrow {
101
+ &:before {
102
+ content: $ax-ic-arrow;
103
+ }
104
+ }
105
+ .ax-ic-unfold {
106
+ &:before {
107
+ content: $ax-ic-unfold;
108
+ }
109
+ }
110
+ .ax-ic-half-arrow {
111
+ &:before {
112
+ content: $ax-ic-half-arrow;
113
+ }
114
+ }
115
+ .ax-ic-fullscreen {
116
+ &:before {
117
+ content: $ax-ic-fullscreen;
118
+ }
119
+ }
120
+ .ax-ic-close-fullscreen {
121
+ &:before {
122
+ content: $ax-ic-close-fullscreen;
123
+ }
124
+ }
125
+ .ax-ic-fold {
126
+ &:before {
127
+ content: $ax-ic-fold;
128
+ }
129
+ }
130
+ .ax-ic-eye {
131
+ &:before {
132
+ content: $ax-ic-eye;
133
+ }
134
+ }
135
+ .ax-ic-eye-off {
136
+ &:before {
137
+ content: $ax-ic-eye-off;
138
+ }
139
+ }
140
+ .ax-ic-calendar {
141
+ &:before {
142
+ content: $ax-ic-calendar;
143
+ }
144
+ }
145
+ .ax-ic-time {
146
+ &:before {
147
+ content: $ax-ic-time;
148
+ }
149
+ }
150
+ .ax-ic-check {
151
+ &:before {
152
+ content: $ax-ic-check;
153
+ }
154
+ }
155
+ .ax-ic-check-filled {
156
+ &:before {
157
+ content: $ax-ic-check-filled;
158
+ }
159
+ }
160
+ .ax-ic-chevron {
161
+ &:before {
162
+ content: $ax-ic-chevron;
163
+ }
164
+ }
165
+ .ax-ic-close {
166
+ &:before {
167
+ content: $ax-ic-close;
168
+ }
169
+ }
170
+ .ax-ic-error-filled {
171
+ &:before {
172
+ content: $ax-ic-error-filled;
173
+ }
174
+ }
175
+ .ax-ic-chevron-page {
176
+ &:before {
177
+ content: $ax-ic-chevron-page;
178
+ }
179
+ }
180
+ .ax-ic-info-filled {
181
+ &:before {
182
+ content: $ax-ic-info-filled;
183
+ }
184
+ }
185
+ .ax-ic-chevron-double {
186
+ &:before {
187
+ content: $ax-ic-chevron-double;
188
+ }
189
+ }
190
+ .ax-ic-menu {
191
+ &:before {
192
+ content: $ax-ic-menu;
193
+ }
194
+ }
195
+ .ax-ic-more {
196
+ &:before {
197
+ content: $ax-ic-more;
198
+ }
199
+ }
200
+ .ax-ic-warning-filled {
201
+ &:before {
202
+ content: $ax-ic-warning-filled;
203
+ }
204
+ }
205
+ .ax-ic-chevron-page-filled {
206
+ &:before {
207
+ content: $ax-ic-chevron-page-filled;
208
+ }
209
+ }
210
+ .ax-ic-calendar-today {
211
+ &:before {
212
+ content: $ax-ic-calendar-today;
213
+ }
214
+ }
215
+
@@ -1,41 +1,41 @@
1
- $icomoon-font-family: "acorex-icon" !default;
2
- $icomoon-font-path: "fonts" !default;
3
-
4
- $ax-ic-empty-box: "\e924";
5
- $ax-ic-colorize: "\e921";
6
- $ax-ic-pase: "\e922";
7
- $ax-ic-copy: "\e923";
8
- $ax-ic-star-filled: "\e91e";
9
- $ax-ic-star-half-filled: "\e91f";
10
- $ax-ic-star-outline: "\e920";
11
- $ax-ic-remove: "\e91b";
12
- $ax-ic-plus: "\e91c";
13
- $ax-ic-magnify: "\e91d";
14
- $ax-ic-arrow-circle: "\e911";
15
- $ax-ic-arrow-circle-fill: "\e912";
16
- $ax-ic-arrow-half: "\e913";
17
- $ax-ic-arrow-fill: "\e914";
18
- $ax-ic-arrow: "\e915";
19
- $ax-ic-unfold: "\e916";
20
- $ax-ic-half-arrow: "\e917";
21
- $ax-ic-fullscreen: "\e918";
22
- $ax-ic-close-fullscreen: "\e919";
23
- $ax-ic-fold: "\e91a";
24
- $ax-ic-eye: "\e901";
25
- $ax-ic-eye-off: "\e902";
26
- $ax-ic-calendar: "\e903";
27
- $ax-ic-time: "\e900";
28
- $ax-ic-check: "\e904";
29
- $ax-ic-check-filled: "\e905";
30
- $ax-ic-chevron: "\e906";
31
- $ax-ic-close: "\e907";
32
- $ax-ic-error-filled: "\e908";
33
- $ax-ic-chevron-page: "\e909";
34
- $ax-ic-info-filled: "\e90a";
35
- $ax-ic-chevron-double: "\e90b";
36
- $ax-ic-menu: "\e90c";
37
- $ax-ic-more: "\e90d";
38
- $ax-ic-warning-filled: "\e90e";
39
- $ax-ic-chevron-page-filled: "\e90f";
40
- $ax-ic-calendar-today: "\e910";
41
-
1
+ $icomoon-font-family: "acorex-icon" !default;
2
+ $icomoon-font-path: "fonts" !default;
3
+
4
+ $ax-ic-empty-box: "\e924";
5
+ $ax-ic-colorize: "\e921";
6
+ $ax-ic-pase: "\e922";
7
+ $ax-ic-copy: "\e923";
8
+ $ax-ic-star-filled: "\e91e";
9
+ $ax-ic-star-half-filled: "\e91f";
10
+ $ax-ic-star-outline: "\e920";
11
+ $ax-ic-remove: "\e91b";
12
+ $ax-ic-plus: "\e91c";
13
+ $ax-ic-magnify: "\e91d";
14
+ $ax-ic-arrow-circle: "\e911";
15
+ $ax-ic-arrow-circle-fill: "\e912";
16
+ $ax-ic-arrow-half: "\e913";
17
+ $ax-ic-arrow-fill: "\e914";
18
+ $ax-ic-arrow: "\e915";
19
+ $ax-ic-unfold: "\e916";
20
+ $ax-ic-half-arrow: "\e917";
21
+ $ax-ic-fullscreen: "\e918";
22
+ $ax-ic-close-fullscreen: "\e919";
23
+ $ax-ic-fold: "\e91a";
24
+ $ax-ic-eye: "\e901";
25
+ $ax-ic-eye-off: "\e902";
26
+ $ax-ic-calendar: "\e903";
27
+ $ax-ic-time: "\e900";
28
+ $ax-ic-check: "\e904";
29
+ $ax-ic-check-filled: "\e905";
30
+ $ax-ic-chevron: "\e906";
31
+ $ax-ic-close: "\e907";
32
+ $ax-ic-error-filled: "\e908";
33
+ $ax-ic-chevron-page: "\e909";
34
+ $ax-ic-info-filled: "\e90a";
35
+ $ax-ic-chevron-double: "\e90b";
36
+ $ax-ic-menu: "\e90c";
37
+ $ax-ic-more: "\e90d";
38
+ $ax-ic-warning-filled: "\e90e";
39
+ $ax-ic-chevron-page-filled: "\e90f";
40
+ $ax-ic-calendar-today: "\e910";
41
+
@@ -51,7 +51,70 @@
51
51
  }
52
52
  }
53
53
 
54
+ @mixin color-look($color, $look) {
55
+ @if ($look == "default") {
56
+ @if ($color == "light") {
57
+ @apply ax-bg-#{$color}-100 ax-text-#{$color}-fore;
58
+ } @else {
59
+ @apply ax-bg-#{$color}-500 ax-text-#{$color}-fore;
60
+ }
61
+ .ax-alert-progress{
62
+ @apply ax-bg-#{$color}-800;
63
+ }
64
+ }
65
+ @if ($look == "outline") {
66
+ @apply ax-bg-transparent ax-text-#{$color}-500 ax-border ax-rounded-default ax-border-#{$color}-500;
67
+ .ax-header {
68
+ @apply ax-bg-#{$color}-50;
69
+ }
70
+ .ax-alert-progress{
71
+ @apply ax-bg-#{$color}-100;
72
+ }
73
+ }
74
+ @if ($look == "twotone") {
75
+ @apply ax-bg-#{$color}-100 ax-text-#{$color}-500;
76
+ .ax-alert-progress{
77
+ @apply ax-bg-#{$color}-500;
78
+ }
79
+ }
80
+ @if ($look == "blank") {
81
+ @apply ax-bg-transparent ax-text-#{$color}-500;
82
+ .ax-alert-progress{
83
+ @apply ax-bg-#{$color}-100;
84
+ }
85
+
86
+ }
87
+ }
88
+
89
+ @mixin color-look-generator() {
90
+ $colors: ("primary", "secondary", "success", "warning", "danger", "info", "light", "dark");
91
+ $looks: ("default", "outline", "twotone", "blank");
92
+ @each $c in $colors {
93
+ @each $l in $looks {
94
+ &.ax-#{$c}-#{$l} {
95
+ @include color-look($c, $l);
96
+ }
97
+ }
98
+ }
99
+ }
54
100
 
101
+ // @mixin button-on-colorful-bg {
102
+ // .ax-button {
103
+ // @apply ax-bg-black/20 ax-text-sm ax-border-0 ax-outline-0 ax-ring-0 ax-ring-transparent ax-h-auto ax-shadow-none ax-font-semibold #{!important};
104
+ // & > button {
105
+ // @apply ax-py-1.5 ax-px-2;
106
+ // }
107
+ // &:focus,
108
+ // &:focus-within,
109
+ // &:active,
110
+ // &:hover {
111
+ // @apply ax-bg-black/30 ax-ring-0 ax-border-0 ax-outline-0 ax-shadow-none ax-ring-transparent ax-ring-offset-0 #{!important};
112
+ // }
113
+ // &:active {
114
+ // @apply ax-bg-black/40 #{!important};
115
+ // }
116
+ // }
117
+ // }
55
118
 
56
119
  @mixin rtl {
57
120
  .ax-rtl {