@acorex/styles 6.1.12 → 7.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.
- package/index.scss +3 -1
- package/package.json +1 -1
- package/src/base/index.scss +44 -30
- package/src/components/_avatar.scss +122 -122
- package/src/components/_badge.scss +178 -178
- package/src/components/_breadcrumbs.scss +30 -29
- package/src/components/_button copy.scss +924 -0
- package/src/components/_button.scss +0 -924
- package/src/components/_calendar.scss +180 -180
- package/src/components/_carousel.scss +44 -44
- package/src/components/_checkbox.scss +58 -58
- package/src/components/_collapse.scss +48 -48
- package/src/components/_color-palette.scss +5 -5
- package/src/components/_color-picker.scss +23 -23
- package/src/components/_context-menu.scss +0 -16
- package/src/components/_data-table.scss +1 -1
- package/src/components/_datepicker.scss +5 -5
- package/src/components/_decoration.scss +0 -39
- package/src/components/_dialog.scss +80 -79
- package/src/components/_drawer.scss +112 -112
- package/src/components/_dropdown.scss +162 -216
- package/src/components/_editor-container.scss +0 -155
- package/src/components/_fieldset.scss +1 -6
- package/src/components/_image.scss +1 -1
- package/src/components/_label.scss +1 -1
- package/src/components/_list.scss +0 -83
- package/src/components/_loading.scss +1 -50
- package/src/components/_menu copy.scss +5 -5
- package/src/components/_menu.scss +114 -114
- package/src/components/_popup.scss +92 -91
- package/src/components/_progress.scss +59 -59
- package/src/components/_radio.scss +30 -30
- package/src/components/_range-slider.scss +147 -125
- package/src/components/_result.scss +2 -2
- package/src/components/_selectbox.scss +15 -17
- package/src/components/_selection-list.scss +2 -2
- package/src/components/_skeleton.scss +2 -2
- package/src/components/_switch.scss +0 -186
- package/src/components/_table.scss +0 -81
- package/src/components/_tabs copy.scss +18 -18
- package/src/components/_tabs.scss +235 -235
- package/src/components/_textarea.scss +27 -31
- package/src/components/_toast.scss +1 -1
- package/src/components/_treeview.scss +0 -54
- package/src/components/_uploader.scss +0 -18
- package/src/components/index.scss +1 -47
- package/src/icons/demo.html +892 -738
- package/src/icons/fonts/acorex-icons.eot +0 -0
- package/src/icons/fonts/acorex-icons.svg +71 -0
- package/src/icons/fonts/acorex-icons.ttf +0 -0
- package/src/icons/fonts/acorex-icons.woff +0 -0
- package/src/icons/selection.json +1 -1
- package/src/icons/style.css +210 -177
- package/src/icons/style.scss +335 -280
- package/src/icons/variables.scss +65 -54
- package/src/mixins/_media.scss +27 -0
- package/src/mixins/index.scss +1 -0
- package/src/shared/_check-box.scss +45 -0
- package/src/shared/_decoration.scss +56 -0
- package/src/shared/_drop-down.scss +163 -0
- package/src/shared/_editor-container.scss +130 -0
- package/src/shared/_general-button.scss +42 -0
- package/src/shared/_icon-control.scss +0 -0
- package/src/shared/_inputs.scss +12 -0
- package/src/shared/_list.scss +134 -0
- package/src/shared/_radio.scss +37 -0
- package/src/shared/_skeleton.scss +26 -0
- package/src/shared/_table.scss +116 -0
- package/src/shared/_utils.scss +46 -0
- package/src/shared/index.scss +12 -0
- package/src/utility/_mixins.scss +3 -3
- package/src/utility/index.scss +16 -22
- package/src/variables/_colors.scss +76 -107
- package/src/variables/_degrees.scss +1 -0
- package/src/variables/index.scss +2 -0
- package/{index.js → tailwind.config.js} +14 -63
- package/src/components/_alert.scss +0 -276
- package/src/icons/fonts/acorex-icon.eot +0 -0
- package/src/icons/fonts/acorex-icon.svg +0 -60
- package/src/icons/fonts/acorex-icon.ttf +0 -0
- package/src/icons/fonts/acorex-icon.woff +0 -0
package/index.scss
CHANGED
@@ -6,5 +6,7 @@
|
|
6
6
|
@import "tailwindcss/utilities";
|
7
7
|
|
8
8
|
@import "./src/base/index.scss";
|
9
|
-
@import "./src/
|
9
|
+
@import "./src/mixins/index.scss";
|
10
|
+
@import "./src/shared/index.scss";
|
11
|
+
// @import "./src/components/index.scss";
|
10
12
|
@import "./src/utility/index.scss";
|
package/package.json
CHANGED
package/src/base/index.scss
CHANGED
@@ -1,45 +1,59 @@
|
|
1
1
|
@import "../utility/mixins";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
@mixin light-variables() {
|
4
|
+
--ax-color-border-default: 0, 0, 0, 0.12;
|
5
|
+
--ax-color-background-default: 250, 250, 250;
|
6
|
+
--ax-color-text-default: 18, 18, 18;
|
7
|
+
--ax-color-ghost: 0, 0, 0;
|
8
|
+
--ax-color-ghost-fore: 255, 255, 255;
|
9
|
+
--ax-color-surface: 255, 255, 255;
|
10
|
+
--ax-color-on-surface: 242, 242, 242;
|
11
|
+
}
|
12
|
+
@mixin dark-variables() {
|
13
|
+
--ax-color-background-default: 18, 18, 18;
|
14
|
+
--ax-color-text-default: 224, 224, 224;
|
15
|
+
--ax-color-border-default: 255, 255, 255, 0.12;
|
16
|
+
--ax-color-surface: 21, 27, 36;
|
17
|
+
--ax-color-on-surface: 60, 60, 60;
|
18
|
+
--ax-color-ghost: 255, 255, 255;
|
6
19
|
}
|
7
20
|
|
8
|
-
:root
|
9
|
-
|
10
|
-
|
11
|
-
--ax-
|
12
|
-
--ax-
|
13
|
-
--ax-color-
|
14
|
-
--ax-
|
15
|
-
|
21
|
+
:root,
|
22
|
+
::before,
|
23
|
+
::after {
|
24
|
+
--ax-size-default: 2.5rem;
|
25
|
+
--ax-rounded-border-default: 0.5rem;
|
26
|
+
--ax-color-white: 255, 255, 255;
|
27
|
+
--ax-color-black: 0, 0, 0;
|
28
|
+
@include light-variables();
|
16
29
|
@include colors($theme-colors);
|
17
30
|
}
|
18
31
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
32
|
+
|
33
|
+
html.ax-neutral-os {
|
34
|
+
@media (prefers-color-scheme: dark) {
|
35
|
+
&:root,
|
36
|
+
&::before,
|
37
|
+
&::after {
|
38
|
+
@include dark-variables();
|
39
|
+
}
|
40
|
+
}
|
25
41
|
}
|
26
42
|
|
27
43
|
html.ax-dark,
|
28
44
|
html.ax-dark * {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
--ax-color-placeholder: 161 161 161;
|
34
|
-
.ax-skeleton {
|
35
|
-
&.ax-skeleton-animate {
|
36
|
-
&::before {
|
37
|
-
content: "";
|
38
|
-
background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
|
39
|
-
}
|
40
|
-
}
|
45
|
+
&:root,
|
46
|
+
&::before,
|
47
|
+
&::after {
|
48
|
+
@include dark-variables();
|
41
49
|
}
|
42
|
-
.cdk-overlay-
|
50
|
+
.cdk-overlay-neutral-backdrop {
|
43
51
|
background: rgba(0, 0, 0, 0.5) !important;
|
44
52
|
}
|
45
53
|
}
|
54
|
+
|
55
|
+
html,
|
56
|
+
body {
|
57
|
+
background-color: rgb(var(--ax-color-background-default));
|
58
|
+
color: rgba(var(--ax-color-text-default));
|
59
|
+
}
|
@@ -1,124 +1,124 @@
|
|
1
1
|
@layer components {
|
2
|
-
.ax-avatar-group {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
}
|
8
|
-
ax-avatar {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
}
|
2
|
+
// .ax-avatar-group {
|
3
|
+
// @apply ax-flex;
|
4
|
+
// ax-avatar {
|
5
|
+
// @apply ax-border-2 ax-border-white -ax-m-1 dark:ax-border-neutral-500;
|
6
|
+
// }
|
7
|
+
// }
|
8
|
+
// ax-avatar {
|
9
|
+
// @apply ax-relative ax-flex ax-items-center ax-justify-center ax-w-16 ax-h-16 ax-overflow-hidden;
|
10
|
+
// ax-badge {
|
11
|
+
// @apply ax-absolute -ax-top-1.5;
|
12
|
+
// right: -6px;
|
13
|
+
// }
|
14
|
+
// ax-text{
|
15
|
+
// @apply ax-text-xl;
|
16
|
+
// }
|
17
|
+
// ax-icon,
|
18
|
+
// ax-text {
|
19
|
+
// @apply ax-w-full ax-h-full ax-flex ax-items-center ax-justify-center;
|
20
|
+
// }
|
21
|
+
// .ax-avatar-container {
|
22
|
+
// @apply ax-w-full ax-h-full ax-rounded-default;
|
23
|
+
// .ax-default-avatar {
|
24
|
+
// svg {
|
25
|
+
// @apply ax-w-full;
|
26
|
+
// }
|
27
|
+
// }
|
28
|
+
// .ax-default-avatar,
|
29
|
+
// .ax-text-avatar,
|
30
|
+
// .ax-icon-avatar,
|
31
|
+
// .ax-image-avatar {
|
32
|
+
// @apply ax-w-full ax-h-full ax-flex ax-items-center ax-justify-center ax-bg-neutral-200 dark:ax-bg-neutral-500 ax-overflow-hidden;
|
33
|
+
// }
|
34
|
+
// }
|
35
|
+
// &.ax-primary-default {
|
36
|
+
// .ax-default {
|
37
|
+
// @apply ax-fill-primary-500;
|
38
|
+
// }
|
39
|
+
// ax-text {
|
40
|
+
// @apply ax-bg-primary-100 ax-text-primary-500 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
|
41
|
+
// }
|
42
|
+
// ax-icon {
|
43
|
+
// @apply ax-bg-primary-500;
|
44
|
+
// }
|
45
|
+
// }
|
46
|
+
// &.ax-secondary-default {
|
47
|
+
// .ax-default {
|
48
|
+
// @apply ax-fill-secondary-500;
|
49
|
+
// }
|
50
|
+
// ax-text {
|
51
|
+
// @apply ax-bg-secondary-100 ax-text-secondary-500 dark:ax-bg-secondary-500 dark:ax-text-secondary-fore;
|
52
|
+
// }
|
53
|
+
// ax-icon {
|
54
|
+
// @apply ax-bg-secondary-500;
|
55
|
+
// }
|
56
|
+
// }
|
57
|
+
// &.ax-success-default {
|
58
|
+
// .ax-default {
|
59
|
+
// @apply ax-fill-success-500;
|
60
|
+
// }
|
61
|
+
// ax-text {
|
62
|
+
// @apply ax-bg-success-100 ax-text-success-500 dark:ax-bg-success-500 dark:ax-text-success-fore;
|
63
|
+
// }
|
64
|
+
// ax-icon {
|
65
|
+
// @apply ax-bg-success-500;
|
66
|
+
// }
|
67
|
+
// }
|
68
|
+
// &.ax-warning-default {
|
69
|
+
// .ax-default {
|
70
|
+
// @apply ax-fill-warning-500;
|
71
|
+
// }
|
72
|
+
// ax-text {
|
73
|
+
// @apply ax-bg-warning-100 ax-text-warning-500 dark:ax-bg-warning-500 dark:ax-text-warning-fore;
|
74
|
+
// }
|
75
|
+
// ax-icon {
|
76
|
+
// @apply ax-bg-warning-500;
|
77
|
+
// }
|
78
|
+
// }
|
79
|
+
// &.ax-danger-default {
|
80
|
+
// .ax-default {
|
81
|
+
// @apply ax-fill-danger-500;
|
82
|
+
// }
|
83
|
+
// ax-text {
|
84
|
+
// @apply ax-bg-danger-100 ax-text-danger-500 dark:ax-bg-danger-500 dark:ax-text-danger-fore;
|
85
|
+
// }
|
86
|
+
// ax-icon {
|
87
|
+
// @apply ax-bg-danger-500;
|
88
|
+
// }
|
89
|
+
// }
|
90
|
+
// &.ax-primary-default {
|
91
|
+
// .ax-default {
|
92
|
+
// @apply ax-fill-primary-500;
|
93
|
+
// }
|
94
|
+
// ax-text {
|
95
|
+
// @apply ax-bg-primary-100 ax-text-primary-500 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
|
96
|
+
// }
|
97
|
+
// ax-icon {
|
98
|
+
// @apply ax-bg-primary-500;
|
99
|
+
// }
|
100
|
+
// }
|
101
|
+
// &.ax-neutral-default {
|
102
|
+
// .ax-default {
|
103
|
+
// @apply ax-fill-neutral-400;
|
104
|
+
// }
|
105
|
+
// ax-text {
|
106
|
+
// @apply ax-bg-neutral-100 ax-text-neutral-500 dark:ax-bg-neutral-500 dark:ax-text-neutral-fore;
|
107
|
+
// }
|
108
|
+
// ax-icon {
|
109
|
+
// @apply ax-bg-neutral-500;
|
110
|
+
// }
|
111
|
+
// }
|
112
|
+
// &.ax-neutral-default {
|
113
|
+
// .ax-default {
|
114
|
+
// @apply ax-fill-neutral-500;
|
115
|
+
// }
|
116
|
+
// ax-text {
|
117
|
+
// @apply ax-bg-neutral-100 ax-text-neutral-500 dark:ax-bg-neutral-500 dark:ax-text-neutral-fore;
|
118
|
+
// }
|
119
|
+
// ax-icon {
|
120
|
+
// @apply ax-bg-neutral-500;
|
121
|
+
// }
|
122
|
+
// }
|
123
|
+
// }
|
124
124
|
}
|