@acorex/styles 21.0.0-next.16 → 21.0.0-next.17

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 (76) hide show
  1. package/base/_preflight.scss +421 -0
  2. package/base/index.scss +15 -0
  3. package/components/{_action-item.css → _action-item.scss} +37 -12
  4. package/components/{_actionsheet.css → _actionsheet.scss} +9 -13
  5. package/components/{_check-box.css → _check-box.scss} +24 -8
  6. package/components/{_drop-down.css → _drop-down.scss} +17 -18
  7. package/components/_editor-container.scss +293 -0
  8. package/components/{_general-button.css → _general-button.scss} +7 -3
  9. package/components/{_list.css → _list.scss} +56 -25
  10. package/components/_radio.scss +51 -0
  11. package/components/{_ripple.css → _ripple.scss} +8 -8
  12. package/components/{_table.css → _table.scss} +23 -20
  13. package/components/{_uploader.css → _uploader.scss} +5 -5
  14. package/components/index.scss +11 -0
  15. package/generators/index.js +1 -0
  16. package/generators/tailwind-class-generator.js +68 -0
  17. package/icons/fontawesome/_variables.scss +228 -0
  18. package/icons/fontawesome/index.scss +714 -0
  19. package/icons/huge/huge-bulk/_variables.scss +209 -0
  20. package/icons/huge/huge-bulk/index.scss +656 -0
  21. package/icons/huge/huge-duotone/_variables.scss +209 -0
  22. package/icons/huge/huge-duotone/index.scss +657 -0
  23. package/icons/huge/huge-solid-rounded/_variables.scss +209 -0
  24. package/icons/huge/huge-solid-rounded/index.scss +643 -0
  25. package/icons/huge/huge-solid-sharp/_variables.scss +209 -0
  26. package/icons/huge/huge-solid-sharp/index.scss +656 -0
  27. package/icons/huge/huge-solid-standard/_variables.scss +209 -0
  28. package/icons/huge/huge-solid-standard/index.scss +656 -0
  29. package/icons/huge/huge-stroke-rounded/_variables.scss +209 -0
  30. package/icons/huge/huge-stroke-rounded/index.scss +656 -0
  31. package/icons/huge/huge-stroke-sharp/_variables.scss +209 -0
  32. package/icons/huge/huge-stroke-sharp/index.scss +656 -0
  33. package/icons/huge/huge-stroke-standard/_variables.scss +209 -0
  34. package/icons/huge/huge-stroke-standard/index.scss +656 -0
  35. package/icons/huge/huge-twotone/_variables.scss +209 -0
  36. package/icons/huge/huge-twotone/index.scss +656 -0
  37. package/icons/material/_variables.scss +227 -0
  38. package/icons/material/index.scss +718 -0
  39. package/{index.css → index.scss} +3 -3
  40. package/mixins/_editor-looks.scss +32 -0
  41. package/mixins/_media.scss +73 -0
  42. package/mixins/_scroll-bar.scss +35 -0
  43. package/mixins/_util.scss +19 -0
  44. package/mixins/index.scss +4 -0
  45. package/package.json +4 -5
  46. package/tailwind-base.js +4 -0
  47. package/themes/{default copy.scss → default.scss} +9 -6
  48. package/utils/_theme-generator.scss +238 -0
  49. package/utils/_utils.scss +278 -0
  50. package/utils/index.scss +2 -0
  51. package/components/_editor-container.css +0 -306
  52. package/components/_radio.css +0 -33
  53. package/components/index.css +0 -11
  54. package/icons/fontawesome/_variables.css +0 -229
  55. package/icons/fontawesome/index.css +0 -555
  56. package/icons/huge/huge-bulk/_variables.css +0 -211
  57. package/icons/huge/huge-bulk/index.css +0 -520
  58. package/icons/huge/huge-duotone/_variables.css +0 -211
  59. package/icons/huge/huge-duotone/index.css +0 -517
  60. package/icons/huge/huge-solid-rounded/_variables.css +0 -211
  61. package/icons/huge/huge-solid-rounded/index.css +0 -504
  62. package/icons/huge/huge-solid-sharp/_variables.css +0 -213
  63. package/icons/huge/huge-solid-sharp/index.css +0 -517
  64. package/icons/huge/huge-solid-standard/_variables.css +0 -211
  65. package/icons/huge/huge-solid-standard/index.css +0 -516
  66. package/icons/huge/huge-stroke-rounded/_variables.css +0 -211
  67. package/icons/huge/huge-stroke-rounded/index.css +0 -515
  68. package/icons/huge/huge-stroke-sharp/_variables.css +0 -142
  69. package/icons/huge/huge-stroke-sharp/index.css +0 -515
  70. package/icons/huge/huge-stroke-standard/_variables.css +0 -141
  71. package/icons/huge/huge-stroke-standard/index.css +0 -515
  72. package/icons/huge/huge-twotone/_variables.css +0 -211
  73. package/icons/huge/huge-twotone/index.css +0 -516
  74. package/icons/material/_variables.css +0 -229
  75. package/icons/material/index.css +0 -573
  76. package/themes/default.css +0 -1240
@@ -1,11 +1,11 @@
1
- .dark {
1
+ @use '../mixins/index.scss' as mixins;
2
+ @include mixins.darkMode() {
2
3
  .ax-table {
3
4
  thead {
4
5
  background-color: rgba(var(--ax-sys-color-surface));
5
6
  }
6
7
  }
7
8
  }
8
-
9
9
  .ax-table {
10
10
  width: 100%;
11
11
  border-collapse: collapse;
@@ -14,25 +14,26 @@
14
14
  border-radius: var(--ax-sys-border-radius);
15
15
  border-width: 1px;
16
16
  border-color: rgba(var(--ax-sys-color-border-lightest-surface));
17
- font-size: 0.875rem;
18
- line-height: 1.25rem;
17
+ font-size: 0.875rem /* 14px */;
18
+ line-height: 1.25rem /* 20px */;
19
19
  td {
20
20
  border-bottom-width: 1px;
21
21
  border-color: rgba(var(--ax-sys-color-border-lightest-surface));
22
- padding-left: 1rem;
23
- padding-right: 1rem;
24
- padding-top: 0.75rem;
25
- padding-bottom: 0.75rem;
22
+ padding-left: 1rem /* 16px */;
23
+ padding-right: 1rem /* 16px */;
24
+ padding-top: 0.75rem /* 12px */;
25
+ padding-bottom: 0.75rem /* 12px */;
26
26
  }
27
27
  thead {
28
28
  border-bottom-width: 1px;
29
29
  border-color: rgba(var(--ax-sys-color-border-lightest-surface));
30
30
  background-color: rgba(var(--ax-sys-color-surface));
31
+
31
32
  th {
32
- padding-left: 1rem;
33
- padding-right: 1rem;
34
- padding-top: 0.875rem;
35
- padding-bottom: 0.875rem;
33
+ padding-left: 1rem /* 16px */;
34
+ padding-right: 1rem /* 16px */;
35
+ padding-top: 0.875rem /* 14px */;
36
+ padding-bottom: 0.875rem /* 14px */;
36
37
  text-align: start;
37
38
  font-weight: 500;
38
39
  text-transform: uppercase;
@@ -67,10 +68,12 @@
67
68
  }
68
69
  }
69
70
  }
71
+
70
72
  td,
71
73
  th {
72
74
  border-width: 1px;
73
75
  border-color: rgba(var(--ax-sys-color-border-lightest-surface));
76
+
74
77
  &:first-child {
75
78
  border-inline-start-width: 0px;
76
79
  }
@@ -79,28 +82,28 @@
79
82
  }
80
83
  }
81
84
  }
82
- }
83
- @media screen and (max-width: 640px) {
84
- .ax-table {
85
+ @include mixins.mediaLessThan('xs') {
85
86
  &.ax-table-responsive {
86
87
  display: block;
87
88
  overflow-wrap: break-word;
88
89
  border-width: 0px;
90
+
89
91
  thead {
90
92
  position: absolute;
91
93
  inset-inline-start: -100%;
92
94
  top: -100%;
93
95
  }
96
+
94
97
  td {
95
98
  float: inline-start;
96
99
  clear: both;
97
100
  box-sizing: border-box;
98
101
  display: block;
99
102
  width: 100%;
100
- padding-left: 0.625rem;
101
- padding-right: 0.625rem;
102
- padding-top: 0.375rem;
103
- padding-bottom: 0.375rem;
103
+ padding-left: 0.625rem /* 10px */;
104
+ padding-right: 0.625rem /* 10px */;
105
+ padding-top: 0.375rem /* 6px */;
106
+ padding-bottom: 0.375rem /* 6px */;
104
107
  &:last-child {
105
108
  border-width: 0px;
106
109
  }
@@ -117,7 +120,7 @@
117
120
  tr,
118
121
  tbody {
119
122
  float: inline-start;
120
- margin-bottom: 0.625rem;
123
+ margin-bottom: 0.625rem /* 10px */;
121
124
  width: 100%;
122
125
  }
123
126
  }
@@ -1,4 +1,4 @@
1
- @use "../mixins/index.scss" as mixin;
1
+ @use '../mixins/index.scss' as mixin;
2
2
  .ax-uploader-overlay-state {
3
3
  border-radius: inherit;
4
4
  pointer-events: none;
@@ -13,10 +13,10 @@
13
13
  flex-direction: column;
14
14
  align-items: center;
15
15
  justify-content: center;
16
- gap: 0.5rem;
16
+ gap: 0.5rem /* 8px */;
17
17
  background-color: rgba(var(--ax-sys-color-primary-200), 0.75);
18
- font-size: 0.875rem;
19
- line-height: 1.25rem;
18
+ font-size: 0.875rem /* 14px */;
19
+ line-height: 1.25rem /* 20px */;
20
20
  color: rgba(var(--ax-sys-color-on-primary-tint));
21
21
  outline-style: dashed;
22
22
  outline-offset: -4px;
@@ -35,7 +35,7 @@
35
35
  }
36
36
  }
37
37
 
38
- .dark {
38
+ @include mixin.darkMode() {
39
39
  .ax-uploader-overlay-state {
40
40
  background-color: rgba(var(--ax-sys-color-primary-800), 0.75);
41
41
  color: rgba(var(--ax-sys-color-on-primary));
@@ -0,0 +1,11 @@
1
+ @forward './action-item';
2
+ @forward './actionsheet';
3
+ @forward './check-box';
4
+ @forward './drop-down';
5
+ @forward './editor-container';
6
+ @forward './general-button';
7
+ @forward './list';
8
+ @forward './radio';
9
+ @forward './ripple';
10
+ @forward './table';
11
+ @forward './uploader';
@@ -0,0 +1 @@
1
+ export * from './tailwind-class-generator';
@@ -0,0 +1,68 @@
1
+ /**
2
+ * You can give it the variable name you added in the theme file as input and generate color range classes from 50 to 950.
3
+ */
4
+ const variations = ['lightest', 'lighter', 'light', 'surface', 'dark', 'darker', 'darkest'];
5
+
6
+ export const createPalette = function (colorName) {
7
+ const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
8
+ const palette = {
9
+ DEFAULT: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
10
+ default: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
11
+ };
12
+
13
+ shades.forEach((shade) => {
14
+ palette[shade] = `rgba(var(--ax-sys-color-${colorName}-${shade}), <alpha-value>)`;
15
+ });
16
+
17
+ return palette;
18
+ };
19
+
20
+ /**
21
+ * To be able to create additional color classes you need to use the createSurface.
22
+ * This function generates seven surface colors. Also, if you want to have surfaces in all Tailwind properties, you can put them in colors.
23
+ */
24
+ export const createSurfaces = function (colorName) {
25
+ return variations.reduce((surfaces, variation) => {
26
+ const surfaceVariant = variation === 'surface' ? '' : '-surface';
27
+ surfaces[variation] = `rgba(var(--ax-sys-color-${colorName}-${variation}${surfaceVariant}), <alpha-value>)`;
28
+ return surfaces;
29
+ }, {});
30
+ };
31
+
32
+ /**
33
+ * The on surface color is based on the surface color of the same name,
34
+ * so you can generate it with createOnSurface for both text and other colors.
35
+ */
36
+ export const createOnSurfaces = function (colorName) {
37
+ return variations.reduce((onSurfaces, variation) => {
38
+ const surfaceVariant = variation === 'surface' ? '' : '-surface';
39
+ const key = variation === 'contrast' ? `on-${variation}` : `on-${variation}`;
40
+ onSurfaces[key] = `rgba(var(--ax-sys-color-on-${colorName}-${variation}${surfaceVariant}), <alpha-value>)`;
41
+ return onSurfaces;
42
+ }, {});
43
+ };
44
+
45
+ /**
46
+ * The board color is only used for border colors, which you can generate with the createBorderSurfaces function.
47
+ */
48
+ export const createBorderSurfaces = function (colorName) {
49
+ return variations.reduce((borderSurfaces, variation) => {
50
+ const surfaceVariant = variation === 'surface' ? '' : '-surface';
51
+ borderSurfaces[variation] =
52
+ `rgba(var(--ax-sys-color-border-${colorName}-${variation}${surfaceVariant}), <alpha-value>)`;
53
+ return borderSurfaces;
54
+ }, {});
55
+ };
56
+
57
+ export function createColoredSurfaces(colorName) {
58
+ return variations.reduce((classes, variation) => {
59
+ const surfaceVariant = variation === 'surface' ? '' : '-surface';
60
+
61
+ classes[`.${colorName}-${variation}`] = {
62
+ backgroundColor: `rgb(var(--ax-sys-color-${colorName}-${variation}${surfaceVariant}))`,
63
+ color: `rgb(var(--ax-sys-color-on-${colorName}-${variation}${surfaceVariant}))`,
64
+ borderColor: `rgb(var(--ax-sys-color-border-${colorName}-${variation}${surfaceVariant}))`,
65
+ };
66
+ return classes;
67
+ }, {});
68
+ }
@@ -0,0 +1,228 @@
1
+ $ax-icon-more-horizontal: '\f141';
2
+ $ax-icon-more-horizontal: '\f141';
3
+ $ax-icon-more-horizontal-after: '';
4
+
5
+ $ax-icon-more-vertical: '\f142';
6
+ $ax-icon-more-vertical-after: '';
7
+
8
+ $ax-icon-arrow-long-up: '\f176';
9
+ $ax-icon-arrow-long-up-after: '';
10
+
11
+ $ax-icon-arrow-long-down: '\f175';
12
+ $ax-icon-arrow-long-down-after: '';
13
+
14
+ $ax-icon-color-palette: '\f53f';
15
+ $ax-icon-color-palette-after: '';
16
+
17
+ $ax-icon-arrow-left: '\f0d9';
18
+ $ax-icon-arrow-left-after: '';
19
+
20
+ $ax-icon-arrow-down: '\f0d7';
21
+ $ax-icon-arrow-down-after: '';
22
+
23
+ $ax-icon-arrow-up: '\f0d8';
24
+ $ax-icon-arrow-up-after: '';
25
+
26
+ $ax-icon-arrow-right: '\f0da';
27
+ $ax-icon-arrow-right-after: '';
28
+
29
+ $ax-icon-chevron-left: '\f053';
30
+ $ax-icon-chevron-left-after: '';
31
+
32
+ $ax-icon-chevron-down: '\f078';
33
+ $ax-icon-chevron-down-after: '';
34
+
35
+ $ax-icon-chevron-up: '\f077';
36
+ $ax-icon-chevron-up-after: '';
37
+
38
+ $ax-icon-chevron-right: '\f054';
39
+ $ax-icon-chevron-right-after: '';
40
+
41
+ $ax-icon-chevron-double-right: '\f324';
42
+ $ax-icon-chevron-double-right-after: '';
43
+
44
+ $ax-icon-chevron-double-left: '\f323';
45
+ $ax-icon-chevron-double-left-after: '';
46
+
47
+ $ax-icon-first-page: '\f33e';
48
+ $ax-icon-first-page-after: '';
49
+
50
+ $ax-icon-last-page: '\f340';
51
+ $ax-icon-last-page-after: '';
52
+
53
+ $ax-icon-calendar: '\f133';
54
+ $ax-icon-calendar-after: '';
55
+
56
+ $ax-icon-info: '\f05a';
57
+ $ax-icon-info-after: '';
58
+
59
+ $ax-icon-error: '\f06a';
60
+ $ax-icon-error-after: '';
61
+
62
+ $ax-icon-warning: '\f071';
63
+ $ax-icon-warning-after: '';
64
+
65
+ $ax-icon-check: '\f00c';
66
+ $ax-icon-check-after: '';
67
+
68
+ $ax-icon-check-circle: '\f058';
69
+ $ax-icon-check-circle-after: '';
70
+
71
+ $ax-icon-dobble-check: '\f560';
72
+ $ax-icon-dobble-check-after: '';
73
+
74
+ $ax-icon-close: '\f00d';
75
+ $ax-icon-close-after: '';
76
+
77
+ $ax-icon-clear: '\f057';
78
+ $ax-icon-clear-after: '';
79
+
80
+ $ax-icon-visibility-off: '\f070';
81
+ $ax-icon-visibility-off-after: '';
82
+
83
+ $ax-icon-visibility: '\f06e';
84
+ $ax-icon-visibility-after: '';
85
+
86
+ $ax-icon-unfold-more: '\f0dc';
87
+ $ax-icon-unfold-more-after: '';
88
+
89
+ $ax-icon-download: '\f019';
90
+ $ax-icon-download-after: '';
91
+
92
+ $ax-icon-upload: '\e09a';
93
+ $ax-icon-upload-after: '';
94
+
95
+ $ax-icon-search: '\f002';
96
+ $ax-icon-search-after: '';
97
+
98
+ $ax-icon-copy: '\f0c5';
99
+ $ax-icon-copy-after: '';
100
+
101
+ $ax-icon-refresh: '\f021';
102
+ $ax-icon-refresh-after: '';
103
+
104
+ $ax-icon-inbox: '\f01c';
105
+ $ax-icon-inbox-after: '';
106
+
107
+ $ax-icon-emoji: '\f118';
108
+ $ax-icon-emoji-after: '';
109
+
110
+ $ax-icon-attach: '\f0c6';
111
+ $ax-icon-attach-after: '';
112
+
113
+ $ax-icon-mic: '\f130';
114
+ $ax-icon-mic-after: '';
115
+
116
+ $ax-icon-send: '\f1d8';
117
+ $ax-icon-send-after: '';
118
+
119
+ $ax-icon-play: '\f04b';
120
+ $ax-icon-play-after: '';
121
+
122
+ $ax-icon-pause: '\f04c';
123
+ $ax-icon-pause-after: '';
124
+
125
+ $ax-icon-reload: '\f2f9';
126
+ $ax-icon-reload-after: '';
127
+
128
+ $ax-icon-heart: '\f004';
129
+ $ax-icon-heart-after: '';
130
+
131
+ $ax-icon-comment: '\f075';
132
+ $ax-icon-comment-after: '';
133
+
134
+ $ax-icon-bold: '\f032';
135
+ $ax-icon-bold-after: '';
136
+
137
+ $ax-icon-italic: '\f033';
138
+ $ax-icon-italic-after: '';
139
+
140
+ $ax-icon-strike: '\f0cc';
141
+ $ax-icon-strike-after: '';
142
+
143
+ $ax-icon-under-line: '\f0cd';
144
+ $ax-icon-under-line-after: '';
145
+
146
+ $ax-icon-order-list: '\f0cb';
147
+ $ax-icon-order-list-after: '';
148
+
149
+ $ax-icon-un-order-list: '\f0ca';
150
+ $ax-icon-un-order-list-after: '';
151
+
152
+ $ax-icon-align-left: '\f036';
153
+ $ax-icon-align-left-after: '';
154
+
155
+ $ax-icon-align-right: '\f038';
156
+ $ax-icon-align-right-after: '';
157
+
158
+ $ax-icon-align-center: '\f037';
159
+ $ax-icon-align-center-after: '';
160
+
161
+ $ax-icon-align-justify: '\f039';
162
+ $ax-icon-align-justify-after: '';
163
+
164
+ $ax-icon-undo: '\f0e2';
165
+ $ax-icon-undo-after: '';
166
+
167
+ $ax-icon-redo: '\f01e';
168
+ $ax-icon-redo-after: '';
169
+
170
+ $ax-icon-highlight: '\f591';
171
+ $ax-icon-highlight-after: '';
172
+
173
+ $ax-icon-link: '\f0c1';
174
+ $ax-icon-link-after: '';
175
+
176
+ $ax-icon-image: '\f03e';
177
+ $ax-icon-image-after: '';
178
+
179
+ $ax-icon-pen: '\f304';
180
+ $ax-icon-pen-after: '';
181
+
182
+ $ax-icon-eraser: '\f12d';
183
+ $ax-icon-eraser-after: '';
184
+
185
+ $ax-icon-pen-ruler: '\f5ae';
186
+ $ax-icon-pen-ruler-after: '';
187
+
188
+ $ax-icon-crop: '\f125';
189
+ $ax-icon-crop-after: '';
190
+
191
+ $ax-icon-full-screen: '\f065';
192
+ $ax-icon-full-screen-after: '';
193
+
194
+ $ax-icon-up-folder: '\e632';
195
+ $ax-icon-up-folder-after: '';
196
+
197
+ $ax-icon-sort: '\e0ae';
198
+ $ax-icon-sort-after: '';
199
+
200
+ $ax-icon-menu: '\f0c9';
201
+ $ax-icon-menu-after: '';
202
+
203
+ $ax-icon-plus: '\2b';
204
+ $ax-icon-plus-after: '';
205
+
206
+ $ax-icon-trash: '\f1f8';
207
+ $ax-icon-trash-after: '';
208
+
209
+ $ax-icon-arrow-turn-right: '\e635';
210
+ $ax-icon-arrow-turn-right-after: '';
211
+
212
+ $ax-icon-arrow-turn-left: '\e632';
213
+ $ax-icon-arrow-turn-left-after: '';
214
+
215
+ $ax-icon-save: '\f0c7';
216
+ $ax-icon-save-after: '';
217
+
218
+ $ax-icon-minimize: '\f068';
219
+ $ax-icon-minimize-after: '';
220
+
221
+ $ax-icon-maximize: '\f31d';
222
+ $ax-icon-maximize-after: '';
223
+
224
+ $ax-icon-code: '\f121';
225
+ $ax-icon-code-after: '';
226
+
227
+ $ax-icon-paragraph: '\f1dd';
228
+ $ax-icon-paragraph-after: '';