@acorex/styles 21.0.2-next.29 → 21.0.2-next.30
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/components/{_action-item.scss → _action-item.css} +12 -37
- package/components/{_actionsheet.scss → _actionsheet.css} +15 -8
- package/components/{_check-box.scss → _check-box.css} +8 -24
- package/components/{_drop-down.scss → _drop-down.css} +12 -17
- package/components/_editor-container.css +48 -0
- package/components/_general-button.css +62 -0
- package/components/{_list.scss → _list.css} +25 -56
- package/components/_radio.css +33 -0
- package/components/{_ripple.scss → _ripple.css} +8 -8
- package/components/{_table.scss → _table.css} +20 -23
- package/components/{_uploader.scss → _uploader.css} +1 -20
- package/components/index.css +11 -0
- package/icons/fontawesome/_variables.css +229 -0
- package/icons/fontawesome/index.css +557 -0
- package/icons/huge/huge-bulk/_variables.css +211 -0
- package/icons/huge/huge-bulk/index.css +522 -0
- package/icons/huge/huge-duotone/_variables.css +211 -0
- package/icons/huge/huge-duotone/index.css +519 -0
- package/icons/huge/huge-solid-rounded/_variables.css +211 -0
- package/icons/huge/huge-solid-rounded/index.css +519 -0
- package/icons/huge/huge-solid-sharp/_variables.css +213 -0
- package/icons/huge/huge-solid-sharp/index.css +519 -0
- package/icons/huge/huge-solid-standard/_variables.css +211 -0
- package/icons/huge/huge-solid-standard/index.css +518 -0
- package/icons/huge/huge-stroke-rounded/_variables.css +211 -0
- package/icons/huge/huge-stroke-rounded/index.css +517 -0
- package/icons/huge/huge-stroke-sharp/_variables.css +142 -0
- package/icons/huge/huge-stroke-sharp/index.css +517 -0
- package/icons/huge/huge-stroke-standard/_variables.css +141 -0
- package/icons/huge/huge-stroke-standard/index.css +517 -0
- package/icons/huge/huge-twotone/_variables.css +211 -0
- package/icons/huge/huge-twotone/index.css +518 -0
- package/icons/material/_variables.css +229 -0
- package/icons/material/index.css +575 -0
- package/index.css +2 -0
- package/package.json +7 -4
- package/tailwind-base.js +0 -4
- package/themes/default.css +3359 -0
- package/base/_preflight.scss +0 -421
- package/base/index.scss +0 -15
- package/components/_conversation-picker-popup.scss +0 -35
- package/components/_editor-container.scss +0 -293
- package/components/_general-button.scss +0 -75
- package/components/_radio.scss +0 -51
- package/components/index.scss +0 -12
- package/generators/index.js +0 -1
- package/generators/tailwind-class-generator.js +0 -68
- package/icons/fontawesome/_variables.scss +0 -227
- package/icons/fontawesome/index.scss +0 -714
- package/icons/huge/huge-bulk/_variables.scss +0 -209
- package/icons/huge/huge-bulk/index.scss +0 -656
- package/icons/huge/huge-duotone/_variables.scss +0 -209
- package/icons/huge/huge-duotone/index.scss +0 -657
- package/icons/huge/huge-solid-rounded/_variables.scss +0 -209
- package/icons/huge/huge-solid-rounded/index.scss +0 -643
- package/icons/huge/huge-solid-sharp/_variables.scss +0 -209
- package/icons/huge/huge-solid-sharp/index.scss +0 -656
- package/icons/huge/huge-solid-standard/_variables.scss +0 -209
- package/icons/huge/huge-solid-standard/index.scss +0 -656
- package/icons/huge/huge-stroke-rounded/_variables.scss +0 -209
- package/icons/huge/huge-stroke-rounded/index.scss +0 -656
- package/icons/huge/huge-stroke-sharp/_variables.scss +0 -209
- package/icons/huge/huge-stroke-sharp/index.scss +0 -656
- package/icons/huge/huge-stroke-standard/_variables.scss +0 -209
- package/icons/huge/huge-stroke-standard/index.scss +0 -656
- package/icons/huge/huge-twotone/_variables.scss +0 -209
- package/icons/huge/huge-twotone/index.scss +0 -656
- package/icons/material/_variables.scss +0 -227
- package/icons/material/index.scss +0 -718
- package/index.scss +0 -7
- package/mixins/_editor-looks.scss +0 -32
- package/mixins/_media.scss +0 -73
- package/mixins/_scroll-bar.scss +0 -35
- package/mixins/_util.scss +0 -19
- package/mixins/index.scss +0 -4
- package/themes/default.scss +0 -74
- package/utils/_theme-generator.scss +0 -238
- package/utils/_utils.scss +0 -278
- package/utils/index.scss +0 -2
- package/variables/_colors.scss +0 -14
- package/variables/_looks.scss +0 -1
- package/variables/index.scss +0 -2
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
@use '../mixins/index.scss' as mixin;
|
|
2
|
-
|
|
3
|
-
:root,
|
|
4
|
-
.ax-editor-container {
|
|
5
|
-
--ax-comp-editor-font-size: 0.875rem;
|
|
6
|
-
--ax-comp-editor-gap: 0.5rem;
|
|
7
|
-
--ax-comp-editor-space-start-size: 0.5rem;
|
|
8
|
-
--ax-comp-editor-space-end-size: 0.5rem;
|
|
9
|
-
--ax-comp-editor-space-block-size: 0.5rem;
|
|
10
|
-
--ax-comp-editor-height: var(--ax-sys-size-base);
|
|
11
|
-
--ax-comp-editor-placeholder-space-x: 0.75rem;
|
|
12
|
-
|
|
13
|
-
--ax-comp-editor-error-bg-color: var(--ax-sys-color-danger-light-surface);
|
|
14
|
-
--ax-comp-editor-error-text-color: var(--ax-sys-color-danger-surface);
|
|
15
|
-
--ax-comp-editor-error-border-color: var(--ax-sys-color-border-danger-surface);
|
|
16
|
-
--ax-comp-editor-error-box-shadow-color: var(--ax-sys-color-danger-surface);
|
|
17
|
-
|
|
18
|
-
--ax-comp-editor-text-color: var(--ax-sys-color-on-surface);
|
|
19
|
-
--ax-comp-editor-border-color: var(--ax-sys-color-border-surface);
|
|
20
|
-
--ax-comp-editor-border-radius: var(--ax-sys-border-radius);
|
|
21
|
-
--ax-comp-editor-box-outline-width: 1px;
|
|
22
|
-
--ax-comp-editor-box-outline-color: var(--ax-sys-color-primary-surface);
|
|
23
|
-
--ax-comp-editor-placeholder-opacity: 0.5;
|
|
24
|
-
|
|
25
|
-
--ax-comp-editor-focused-border-color: var(--ax-sys-color-border-primary-surface);
|
|
26
|
-
--ax-comp-editor-focused-box-shadow-color: var(--ax-sys-color-primary-surface);
|
|
27
|
-
|
|
28
|
-
--ax-comp-editor-border-width: 0px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ax-editor-container {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: var(--ax-comp-editor-height);
|
|
37
|
-
font-size: var(--ax-comp-editor-font-size);
|
|
38
|
-
border-radius: var(--ax-comp-editor-border-radius);
|
|
39
|
-
border-width: var(--ax-comp-editor-border-width);
|
|
40
|
-
border-color: rgba(var(--ax-comp-editor-border-color));
|
|
41
|
-
background-color: rgba(var(--ax-comp-editor-bg-color));
|
|
42
|
-
color: rgba(var(--ax-comp-editor-text-color));
|
|
43
|
-
position: relative;
|
|
44
|
-
gap: var(--ax-comp-editor-gap);
|
|
45
|
-
padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
46
|
-
padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
47
|
-
justify-content: space-between;
|
|
48
|
-
.ax-icon {
|
|
49
|
-
font-size: var(--ax-comp-editor-icon-font-size);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:has(> ax-prefix) {
|
|
53
|
-
padding-inline-start: 0;
|
|
54
|
-
> ax-prefix {
|
|
55
|
-
&:has(ax-button, .ax-editor-container) {
|
|
56
|
-
--ax-comp-editor-space-start-size: 0px;
|
|
57
|
-
}
|
|
58
|
-
padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:has(> ax-suffix) {
|
|
63
|
-
padding-inline-end: 0;
|
|
64
|
-
> ax-suffix {
|
|
65
|
-
&:has(ax-button, .ax-editor-container) {
|
|
66
|
-
--ax-comp-editor-space-end-size: 0px;
|
|
67
|
-
}
|
|
68
|
-
padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&:not(.ax-state-disabled) {
|
|
73
|
-
&:focus-within {
|
|
74
|
-
border-color: rgba(var(--ax-comp-editor-focused-border-color));
|
|
75
|
-
outline-width: var(--ax-comp-editor-box-outline-width);
|
|
76
|
-
outline-style: solid;
|
|
77
|
-
outline-color: rgba(var(--ax-comp-editor-focused-border-color));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.ax-state-error {
|
|
82
|
-
border-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
83
|
-
outline-width: var(--ax-comp-editor-box-outline-width);
|
|
84
|
-
outline-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
85
|
-
outline-style: solid;
|
|
86
|
-
&:focus-within {
|
|
87
|
-
border-color: rgba(var(--ax-comp-editor-error-border-color));
|
|
88
|
-
}
|
|
89
|
-
.ax-input {
|
|
90
|
-
.ax-placeholder,
|
|
91
|
-
&::placeholder {
|
|
92
|
-
color: rgba(var(--ax-comp-editor-error-text-color), var(--ax-comp-editor-placeholder-opacity));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.ax-solid {
|
|
98
|
-
@include mixin.solid-look();
|
|
99
|
-
}
|
|
100
|
-
&.ax-outline {
|
|
101
|
-
@include mixin.outline-look();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&.ax-flat {
|
|
105
|
-
@include mixin.flat-look();
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.ax-fill {
|
|
109
|
-
@include mixin.fill-look();
|
|
110
|
-
}
|
|
111
|
-
&.ax-none {
|
|
112
|
-
@include mixin.none-look();
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ax-editor-input {
|
|
116
|
-
height: 100%;
|
|
117
|
-
flex: 1 1 0%;
|
|
118
|
-
|
|
119
|
-
.ax-input {
|
|
120
|
-
height: 100%;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// .ax-editor,
|
|
125
|
-
// .ax-input {
|
|
126
|
-
// padding-inline-start: var(--ax-comp-editor-space-start-size);
|
|
127
|
-
// padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
128
|
-
// }
|
|
129
|
-
.ax-input {
|
|
130
|
-
// padding: 0 calc(var(--ax-comp-editor-font-size) - 4px);
|
|
131
|
-
font-size: var(--ax-comp-editor-font-size);
|
|
132
|
-
line-height: var(--ax-comp-editor-font-size);
|
|
133
|
-
color: rgba(var(--ax-comp-editor-text-color));
|
|
134
|
-
cursor: inherit;
|
|
135
|
-
.ax-placeholder,
|
|
136
|
-
&::placeholder {
|
|
137
|
-
font-size: inherit;
|
|
138
|
-
font-weight: 400;
|
|
139
|
-
color: rgb(var(--ax-comp-editor-text-color), var(--ax-comp-editor-placeholder-opacity));
|
|
140
|
-
}
|
|
141
|
-
&:focus,
|
|
142
|
-
&:focus-visible,
|
|
143
|
-
&:focus-within {
|
|
144
|
-
outline: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.ax-state-disabled {
|
|
149
|
-
opacity: 0.5;
|
|
150
|
-
cursor: not-allowed;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.ax-editor-control {
|
|
154
|
-
display: flex;
|
|
155
|
-
height: 100%;
|
|
156
|
-
align-items: center;
|
|
157
|
-
justify-content: center;
|
|
158
|
-
padding-inline-start: 0.5rem;
|
|
159
|
-
font-size: 1.125rem;
|
|
160
|
-
line-height: 1.75rem;
|
|
161
|
-
color: rgba(var(--ax-comp-editor-text-color));
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.ax-button-icon {
|
|
165
|
-
padding: 0 0.5rem;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.ax-input,
|
|
169
|
-
.ax-text-area {
|
|
170
|
-
text-align: inherit;
|
|
171
|
-
font-family: inherit;
|
|
172
|
-
font-size: inherit;
|
|
173
|
-
line-height: inherit;
|
|
174
|
-
height: 100%;
|
|
175
|
-
width: 100%;
|
|
176
|
-
flex: 1 1 0%;
|
|
177
|
-
background-color: transparent;
|
|
178
|
-
font-weight: inherit;
|
|
179
|
-
|
|
180
|
-
&:focus {
|
|
181
|
-
box-shadow: none;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.ax-editor-button {
|
|
186
|
-
font-size: var(--ax-comp-editor-button-font-size, var(--ax-comp-editor-font-size));
|
|
187
|
-
height: var(--ax-comp-editor-button-height, 100%);
|
|
188
|
-
display: flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
justify-content: center;
|
|
191
|
-
min-width: 1.5rem;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// .ax-editor-button,
|
|
195
|
-
// .ax-clear-button {
|
|
196
|
-
// padding-inline-end: var(--ax-comp-editor-space-end-size);
|
|
197
|
-
// }
|
|
198
|
-
|
|
199
|
-
& > ax-prefix,
|
|
200
|
-
& > ax-suffix {
|
|
201
|
-
height: 100%;
|
|
202
|
-
max-width: fit-content;
|
|
203
|
-
|
|
204
|
-
ax-button,
|
|
205
|
-
ax-text,
|
|
206
|
-
ax-icon,
|
|
207
|
-
.ax-editor-container {
|
|
208
|
-
display: flex;
|
|
209
|
-
height: 100%;
|
|
210
|
-
align-items: center;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
border-radius: 0px;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
ax-title {
|
|
216
|
-
padding-left: 1rem;
|
|
217
|
-
padding-right: 1rem;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
& > ax-text {
|
|
221
|
-
display: flex;
|
|
222
|
-
align-items: center;
|
|
223
|
-
justify-content: center;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.ax-button {
|
|
228
|
-
height: 100% !important;
|
|
229
|
-
border-radius: 0px !important;
|
|
230
|
-
|
|
231
|
-
&.ax-button-icon {
|
|
232
|
-
height: 100%;
|
|
233
|
-
width: var(--ax-comp-editor-height);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
ax-popover {
|
|
238
|
-
position: absolute;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.ax-xs .ax-editor-container,
|
|
243
|
-
.ax-editor-container.ax-xs {
|
|
244
|
-
--ax-comp-editor-font-size: 0.75rem;
|
|
245
|
-
--ax-comp-editor-space-start-size: 0.25rem;
|
|
246
|
-
--ax-comp-editor-space-end-size: 0.25rem;
|
|
247
|
-
--ax-comp-editor-button-font-size: 0.625rem;
|
|
248
|
-
--ax-comp-editor-gap: 0.25rem;
|
|
249
|
-
--ax-comp-editor-icon-font-size: 0.75rem;
|
|
250
|
-
}
|
|
251
|
-
.ax-sm .ax-editor-container,
|
|
252
|
-
.ax-editor-container.ax-sm {
|
|
253
|
-
--ax-comp-editor-font-size: 0.875rem;
|
|
254
|
-
--ax-comp-editor-space-start-size: 0.5rem;
|
|
255
|
-
--ax-comp-editor-space-end-size: 0.5rem;
|
|
256
|
-
--ax-comp-editor-button-font-size: 0.75rem;
|
|
257
|
-
--ax-comp-editor-gap: 0.375rem;
|
|
258
|
-
--ax-comp-editor-icon-font-size: 0.875rem;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.ax-md .ax-editor-container,
|
|
262
|
-
.ax-editor-container,
|
|
263
|
-
.ax-editor-container.ax-md {
|
|
264
|
-
--ax-comp-editor-space-start-size: 0.75rem;
|
|
265
|
-
--ax-comp-editor-space-end-size: 0.75rem;
|
|
266
|
-
--ax-comp-editor-button-font-size: 0.875rem;
|
|
267
|
-
--ax-comp-editor-gap: 0.5rem;
|
|
268
|
-
--ax-comp-editor-icon-font-size: 1rem;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.ax-lg .ax-editor-container,
|
|
272
|
-
.ax-editor-container.ax-lg {
|
|
273
|
-
--ax-comp-editor-font-size: 1.125rem;
|
|
274
|
-
--ax-comp-editor-space-start-size: 1.125rem;
|
|
275
|
-
--ax-comp-editor-space-end-size: 1.125rem;
|
|
276
|
-
--ax-comp-editor-button-font-size: 0.875rem;
|
|
277
|
-
--ax-comp-editor-gap: 0.625rem;
|
|
278
|
-
--ax-comp-editor-icon-font-size: 1.25rem;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.ax-xl .ax-editor-container,
|
|
282
|
-
.ax-editor-container.ax-xl {
|
|
283
|
-
--ax-comp-editor-font-size: 1.5rem;
|
|
284
|
-
--ax-comp-editor-space-start-size: 1.5rem;
|
|
285
|
-
--ax-comp-editor-space-end-size: 1.5rem;
|
|
286
|
-
--ax-comp-editor-button-font-size: 1rem;
|
|
287
|
-
--ax-comp-editor-gap: 0.75rem;
|
|
288
|
-
--ax-comp-editor-icon-font-size: 1.5rem;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
ax-validation-rule {
|
|
292
|
-
position: absolute;
|
|
293
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
.ax-general-button {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
height: var(--ax-sys-size-base);
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
border-radius: var(--ax-sys-border-radius);
|
|
8
|
-
padding-left: var(--ax-comp-general-button-padding-left, 1rem);
|
|
9
|
-
padding-right: var(--ax-comp-general-button-padding-right, 1rem);
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
line-height: 1.25rem;
|
|
12
|
-
color: rgb(var(--ax-sys-color-on-surface), 0.75);
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
&:not(&:disabled, .ax-state-disabled) {
|
|
16
|
-
color: rgba(var(--ax-sys-color-primary-500), var(--tw-text-opacity));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:focus,
|
|
21
|
-
&:focus-visible {
|
|
22
|
-
&:not(&:disabled, .ax-state-disabled) {
|
|
23
|
-
color: rgba(var(--ax-sys-color-primary-700), var(--tw-text-opacity));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:active {
|
|
28
|
-
&:not(&:disabled, .ax-state-disabled) {
|
|
29
|
-
color: rgba(var(--ax-sys-color-primary-300), var(--tw-text-opacity));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.ax-button-icon {
|
|
34
|
-
padding-left: var(--ax-comp-general-button-padding-left, 0.5rem);
|
|
35
|
-
padding-right: var(--ax-comp-general-button-padding-right, 0.5rem);
|
|
36
|
-
font-size: 100%;
|
|
37
|
-
> button {
|
|
38
|
-
display: flex;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&.ax-button-rounded {
|
|
42
|
-
border-radius: var(--ax-sys-border-radius);
|
|
43
|
-
}
|
|
44
|
-
&:disabled,
|
|
45
|
-
&.ax-state-disabled {
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
opacity: 0.5;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
.ax-clear-button {
|
|
51
|
-
display: inline-flex;
|
|
52
|
-
height: var(--ax-sys-size-base);
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
margin-left: 0.25rem;
|
|
56
|
-
margin-right: 0.25rem;
|
|
57
|
-
font-size: 1rem /* 16px */;
|
|
58
|
-
line-height: 1.5rem /* 24px */;
|
|
59
|
-
color: rgb(var(--ax-sys-color-on-surface), 0.75);
|
|
60
|
-
|
|
61
|
-
> button {
|
|
62
|
-
display: flex;
|
|
63
|
-
}
|
|
64
|
-
&:hover {
|
|
65
|
-
&:not(&:disabled, .ax-state-disabled) {
|
|
66
|
-
color: rgb(var(--ax-sys-color-on-surface), 0.5);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
&:focus,
|
|
70
|
-
&:focus-visible {
|
|
71
|
-
&:not(&:disabled, .ax-state-disabled) {
|
|
72
|
-
color: rgb(var(--ax-sys-color-on-surface));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
package/components/_radio.scss
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@use '../mixins/index.scss';
|
|
2
|
-
|
|
3
|
-
.ax-radio {
|
|
4
|
-
margin: 0px;
|
|
5
|
-
height: 1rem /* 16px */;
|
|
6
|
-
min-height: 1rem /* 16px */;
|
|
7
|
-
min-width: 1rem /* 16px */;
|
|
8
|
-
width: 1rem /* 16px */;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
appearance: none;
|
|
11
|
-
border-radius: 9999px /* 4px */;
|
|
12
|
-
border-width: 1px;
|
|
13
|
-
border-color: rgba(var(--ax-sys-color-border-surface));
|
|
14
|
-
background-color: rgba(var(--ax-sys-color-input-surface));
|
|
15
|
-
vertical-align: middle;
|
|
16
|
-
outline: 2px solid transparent;
|
|
17
|
-
outline-offset: 2px;
|
|
18
|
-
|
|
19
|
-
&:checked {
|
|
20
|
-
border-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
|
21
|
-
background-color: rgba(var(--ax-sys-color-primary-500)) !important;
|
|
22
|
-
background-size: contain;
|
|
23
|
-
background-repeat: no-repeat;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:checked {
|
|
27
|
-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:focus-visible,
|
|
31
|
-
&:focus {
|
|
32
|
-
box-shadow:
|
|
33
|
-
0px 0px 0px 2px rgba(var(--ax-sys-color-surface)),
|
|
34
|
-
0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:disabled {
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
opacity: 0.5;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// @include darkMode() {
|
|
44
|
-
// .ax-checkbox {
|
|
45
|
-
// &:checked {
|
|
46
|
-
// border-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
|
47
|
-
// background-color: rgba(var(--ax-sys-color-primary-200)) !important;
|
|
48
|
-
// background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
49
|
-
// }
|
|
50
|
-
// }
|
|
51
|
-
// }
|
package/components/index.scss
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
@forward './action-item';
|
|
2
|
-
@forward './actionsheet';
|
|
3
|
-
@forward './conversation-picker-popup';
|
|
4
|
-
@forward './check-box';
|
|
5
|
-
@forward './drop-down';
|
|
6
|
-
@forward './editor-container';
|
|
7
|
-
@forward './general-button';
|
|
8
|
-
@forward './list';
|
|
9
|
-
@forward './radio';
|
|
10
|
-
@forward './ripple';
|
|
11
|
-
@forward './table';
|
|
12
|
-
@forward './uploader';
|
package/generators/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tailwind-class-generator';
|
|
@@ -1,68 +0,0 @@
|
|
|
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
|
-
}
|