@acorex/styles 5.2.1 → 5.3.2
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/package.json +1 -1
- package/src/components/_alert.scss +69 -27
- package/src/components/_button.scss +9 -9
- package/src/components/_calendar.scss +1 -1
- package/src/components/_collapse.scss +12 -7
- package/src/components/_decoration.scss +37 -0
- package/src/components/_dialog.scss +5 -5
- package/src/components/_drawer.scss +51 -78
- package/src/components/_dropdown.scss +2 -24
- package/src/components/_list.scss +3 -9
- package/src/components/_menu.scss +8 -2
- package/src/components/_picker.scss +178 -58
- package/src/components/_popup.scss +0 -35
- package/src/components/_progress.scss +1 -1
- package/src/components/_selection-list.scss +2 -2
- package/src/components/_tabs.scss +1 -1
- package/src/components/_textarea.scss +2 -0
- package/src/components/_toast.scss +4 -78
- package/src/components/_treeview.scss +1 -1
- package/src/components/index.scss +2 -1
- package/src/icons/demo-files/demo.css +152 -152
- package/src/icons/demo-files/demo.js +30 -30
- package/src/icons/demo.html +500 -500
- package/src/icons/fonts/acorex-icon.svg +42 -42
- package/src/icons/style.css +126 -126
- package/src/icons/style.scss +195 -195
- package/src/icons/variables.scss +37 -37
- package/src/utility/_mixins.scss +36 -3
- package/src/variables/_colors.scss +12 -12
@@ -1,59 +1,179 @@
|
|
1
|
-
@layer components {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
1
|
+
// @layer components {
|
2
|
+
// ax-picker,
|
3
|
+
// .ax-picker {
|
4
|
+
// @apply ax-relative;
|
5
|
+
// ax-carousel {
|
6
|
+
// &::before {
|
7
|
+
// @apply ax-top-0;
|
8
|
+
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.08+0,0+100;Neutral+Density */
|
9
|
+
// background: -moz-linear-gradient(
|
10
|
+
// top,
|
11
|
+
// rgba(226, 232, 240, 0.08) 0%,
|
12
|
+
// rgba(226, 232, 240, 0) 100%
|
13
|
+
// ); /* FF3.6-15 */
|
14
|
+
// background: -webkit-linear-gradient(
|
15
|
+
// top,
|
16
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
17
|
+
// rgba(226, 232, 240, 0) 100%
|
18
|
+
// ); /* Chrome10-25,Safari5.1-6 */
|
19
|
+
// background: linear-gradient(
|
20
|
+
// to bottom,
|
21
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
22
|
+
// rgba(226, 232, 240, 0) 100%
|
23
|
+
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
24
|
+
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
25
|
+
// }
|
26
|
+
// &::after {
|
27
|
+
// @apply ax-bottom-0;
|
28
|
+
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.70+0,0+100;Neutral+Density */
|
29
|
+
// background: -moz-linear-gradient(
|
30
|
+
// bottom,
|
31
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
32
|
+
// rgba(226, 232, 240, 0) 100%
|
33
|
+
// ); /* FF3.6-15 */
|
34
|
+
// background: -webkit-linear-gradient(
|
35
|
+
// bottom,
|
36
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
37
|
+
// rgba(226, 232, 240, 0) 100%
|
38
|
+
// ); /* Chrome10-25,Safari5.1-6 */
|
39
|
+
// background: linear-gradient(
|
40
|
+
// to top,
|
41
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
42
|
+
// rgba(226, 232, 240, 0) 100%
|
43
|
+
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
44
|
+
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
45
|
+
// }
|
46
|
+
// &::before,
|
47
|
+
// &::after {
|
48
|
+
// @apply ax-absolute ax-h-1/2 ax-w-full ax-start-0 ax-pointer-events-none;
|
49
|
+
// content: "";
|
50
|
+
// }
|
51
|
+
// }
|
52
|
+
// .ax-picker-item {
|
53
|
+
// @apply ax-block ax-p-4 ax-text-sm;
|
54
|
+
// &.is-active {
|
55
|
+
// @apply ax-text-base ax-text-primary-500 ax-transition-all;
|
56
|
+
// }
|
57
|
+
// }
|
58
|
+
// }
|
59
|
+
// }
|
60
|
+
|
61
|
+
// @layer components {
|
62
|
+
// ax-picker {
|
63
|
+
// @apply ax-max-h-full ax-overflow-y-scroll;
|
64
|
+
// scroll-snap-type: mandatory;
|
65
|
+
// scroll-snap-points-y: repeat(1rem);
|
66
|
+
// scroll-snap-type: y mandatory;
|
67
|
+
// li {
|
68
|
+
// @apply ax-py-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-snap-start ax-text-sm;
|
69
|
+
// }
|
70
|
+
// }
|
71
|
+
// }
|
72
|
+
.ng-data-picker {
|
73
|
+
font-size: 1rem;
|
74
|
+
height: 10em;
|
75
|
+
position: relative;
|
76
|
+
background-color: white;
|
77
|
+
overflow: hidden;
|
78
|
+
}
|
79
|
+
.ng-data-picker.black {
|
80
|
+
color: white;
|
81
|
+
}
|
82
|
+
.ng-data-picker .picker-group {
|
83
|
+
}
|
84
|
+
.ng-data-picker .picker-list {
|
85
|
+
height: 6.25em;
|
86
|
+
position: relative;
|
87
|
+
top: 4em; // half of picker height - half of item height
|
88
|
+
}
|
89
|
+
.ng-data-picker .picker-item {
|
90
|
+
position: absolute;
|
91
|
+
top: 0;
|
92
|
+
left: 0;
|
93
|
+
overflow: hidden;
|
94
|
+
width: 100%;
|
95
|
+
text-overflow: ellipsis;
|
96
|
+
white-space: nowrap;
|
97
|
+
display: block;
|
98
|
+
text-align: center;
|
99
|
+
will-change: transform;
|
100
|
+
contain: strict;
|
101
|
+
height: 2em;
|
102
|
+
line-height: 2;
|
103
|
+
font-size: 1em;
|
104
|
+
}
|
105
|
+
.ng-data-picker .selected-item {
|
106
|
+
}
|
107
|
+
|
108
|
+
/* picker handle layer */
|
109
|
+
.ng-data-picker .picker-handle-layer {
|
110
|
+
position: absolute;
|
111
|
+
width: 100%;
|
112
|
+
height: calc(100% + 2px);
|
113
|
+
left: 0;
|
114
|
+
right: 0;
|
115
|
+
top: -1px;
|
116
|
+
bottom: -1px;
|
117
|
+
}
|
118
|
+
.ng-data-picker .picker-handle-layer .picker-top {
|
119
|
+
border-bottom: 0.55px solid rgba(74, 73, 89, 0.5);
|
120
|
+
background: linear-gradient(to bottom, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
121
|
+
transform: translate3d(0, 0, 5.625em);
|
122
|
+
}
|
123
|
+
.ng-data-picker .picker-handle-layer .picker-middle {
|
124
|
+
height: 2em;
|
125
|
+
}
|
126
|
+
.ng-data-picker .picker-handle-layer .picker-bottom {
|
127
|
+
border-top: 0.55px solid rgba(74, 73, 89, 0.5);
|
128
|
+
background: linear-gradient(to top, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
129
|
+
transform: translate3d(0, 0, 5.625em);
|
130
|
+
}
|
131
|
+
|
132
|
+
/* flex system */
|
133
|
+
.flex-box {
|
134
|
+
display: flex;
|
135
|
+
}
|
136
|
+
.flex-box.dir-column {
|
137
|
+
flex-direction: column;
|
138
|
+
}
|
139
|
+
.flex-box.dir-row {
|
140
|
+
flex-direction: row;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* flex system - for items */
|
144
|
+
.flex-box .weight-1 {
|
145
|
+
flex: 1;
|
146
|
+
}
|
147
|
+
.flex-box .weight-2 {
|
148
|
+
flex: 2;
|
149
|
+
}
|
150
|
+
.flex-box .weight-3 {
|
151
|
+
flex: 3;
|
152
|
+
}
|
153
|
+
.flex-box .weight-4 {
|
154
|
+
flex: 4;
|
155
|
+
}
|
156
|
+
.flex-box .weight-5 {
|
157
|
+
flex: 5;
|
158
|
+
}
|
159
|
+
.flex-box .weight-6 {
|
160
|
+
flex: 6;
|
161
|
+
}
|
162
|
+
.flex-box .weight-7 {
|
163
|
+
flex: 7;
|
164
|
+
}
|
165
|
+
.flex-box .weight-8 {
|
166
|
+
flex: 8;
|
167
|
+
}
|
168
|
+
.flex-box .weight-9 {
|
169
|
+
flex: 9;
|
170
|
+
}
|
171
|
+
.flex-box .weight-10 {
|
172
|
+
flex: 10;
|
173
|
+
}
|
174
|
+
.flex-box .weight-11 {
|
175
|
+
flex: 11;
|
176
|
+
}
|
177
|
+
.flex-box .weight-12 {
|
178
|
+
flex: 12;
|
59
179
|
}
|
@@ -1,44 +1,9 @@
|
|
1
1
|
@layer components {
|
2
|
-
ax-page-footer,
|
3
|
-
ax-page-header {
|
4
|
-
@apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2 ax-border-solid ax-border-light-300 dark:ax-border-light-700;
|
5
|
-
|
6
|
-
ax-prefix {
|
7
|
-
@apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
|
8
|
-
}
|
9
|
-
|
10
|
-
ax-suffix {
|
11
|
-
@apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
ax-page-footer {
|
16
|
-
@apply ax-border-t;
|
17
|
-
}
|
18
|
-
|
19
|
-
ax-page-header {
|
20
|
-
@apply ax-border-b;
|
21
|
-
}
|
22
2
|
|
23
3
|
.ax-popup {
|
24
4
|
@apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-light-300 ax-rounded ax-outline-none ax-p-0 ax-max-h-[98vh] ax-min-h-fit ax-mx-auto;
|
25
5
|
@include control-states("surface");
|
26
6
|
|
27
|
-
.ax-popup-header {
|
28
|
-
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center ax-cursor-move;
|
29
|
-
|
30
|
-
span {
|
31
|
-
@apply ax-font-medium;
|
32
|
-
}
|
33
|
-
|
34
|
-
i {
|
35
|
-
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
36
|
-
&:hover {
|
37
|
-
@apply ax-text-light-500 dark:ax-text-light-100;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
7
|
.ax-popup-main-container {
|
43
8
|
@apply ax-overflow-auto ax-flex-1;
|
44
9
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
ax-progress-bar,
|
3
3
|
.ax-progress-bar {
|
4
4
|
@apply ax-flex ax-justify-between ax-items-center ax-text-sm;
|
5
|
-
@include control-states("editor");
|
6
5
|
ax-prefix{
|
7
6
|
@apply ax-pe-2;
|
8
7
|
}
|
@@ -11,6 +10,7 @@
|
|
11
10
|
}
|
12
11
|
.ax-progress-bar-container {
|
13
12
|
@apply ax-w-full ax-h-2 ax-relative ax-bg-light-200 ax-flex ax-rounded-full;
|
13
|
+
@include control-states("editor");
|
14
14
|
.ax-progress-bar-rise {
|
15
15
|
max-width: 100%;
|
16
16
|
transition: width 1s;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
.ax-selection-list {
|
35
35
|
&.ax-vertical {
|
36
36
|
& > div {
|
37
|
-
@apply ax-pb-3.5 ax-border-b ax-border-light-300 last:ax-border-0;
|
37
|
+
@apply ax-pb-3.5 ax-border-b ax-border-light-300 dark:ax-border-white/[0.09] last:ax-border-0;
|
38
38
|
}
|
39
39
|
}
|
40
40
|
}
|
@@ -43,7 +43,7 @@
|
|
43
43
|
.ax-selection-list {
|
44
44
|
&.ax-vertical,&.ax-horizontal {
|
45
45
|
& > div {
|
46
|
-
@apply ax-p-4 ax-border ax-border-light-300 ax-rounded-md ax-shadow-sm;
|
46
|
+
@apply ax-p-4 ax-border ax-border-light-300 dark:ax-border-white/[0.09] ax-rounded-md ax-shadow-sm;
|
47
47
|
&.ax-state-selected {
|
48
48
|
@apply ax-border-primary-500 ax-ring-1 ax-ring-primary-500 ax-shadow-primary-500;
|
49
49
|
}
|
@@ -3,6 +3,8 @@
|
|
3
3
|
.ax-textarea {
|
4
4
|
min-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
5
5
|
@apply ax-relative ax-flex ax-flex-col ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300 ax-overflow-hidden ax-w-full;
|
6
|
+
@include control-states("editor");
|
7
|
+
|
6
8
|
&:focus-within {
|
7
9
|
@apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
|
8
10
|
}
|
@@ -1,82 +1,8 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
|
-
|
4
|
-
@include
|
5
|
-
@screen sm {
|
2
|
+
ax-toast {
|
3
|
+
width: max(20vw, 350px);
|
4
|
+
@include screen("mobile") {
|
6
5
|
width: 98vw;
|
7
6
|
}
|
8
|
-
@screen md {
|
9
|
-
width: max(20vw, 350px);
|
10
|
-
}
|
11
|
-
.ax-toast-icon-side {
|
12
|
-
@apply ax-col-span-1 ax-h-full;
|
13
|
-
}
|
14
|
-
.ax-toast-content-side {
|
15
|
-
@apply ax-col-span-10;
|
16
|
-
.ax-toast-title {
|
17
|
-
@apply ax-text-sm ax-font-semibold ax-text-light-700 dark:ax-text-light-100;
|
18
|
-
}
|
19
|
-
.ax-toast-content {
|
20
|
-
@apply ax-py-2 ax-text-sm ax-text-light-400 dark:ax-text-light-200;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
.ax-toast-dismiss-icon {
|
24
|
-
@apply ax-col-span-1 ax-cursor-pointer ax-h-full;
|
25
|
-
.ax-ic {
|
26
|
-
@apply ax-text-base;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
.ax-toast-dismiss-icon {
|
30
|
-
@apply ax-text-light-400;
|
31
|
-
}
|
32
|
-
.ax-toast-buttons {
|
33
|
-
@apply ax-col-span-12;
|
34
|
-
}
|
35
|
-
.ax-toast-progress {
|
36
|
-
@apply ax-absolute ax-bottom-0 ax-h-1 ax-w-0;
|
37
|
-
animation-duration: 4s;
|
38
|
-
animation-timing-function: linear;
|
39
|
-
animation-name: progressBar;
|
40
|
-
}
|
41
|
-
@keyframes progressBar {
|
42
|
-
0% {
|
43
|
-
width: 100%;
|
44
|
-
}
|
45
|
-
100% {
|
46
|
-
width: 0%;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
&.ax-success {
|
50
|
-
.ax-toast-icon {
|
51
|
-
@apply ax-text-success-500;
|
52
|
-
}
|
53
|
-
.ax-toast-progress {
|
54
|
-
@apply ax-bg-success-400;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
&.ax-danger {
|
58
|
-
.ax-toast-icon {
|
59
|
-
@apply ax-text-danger-500;
|
60
|
-
}
|
61
|
-
.ax-toast-progress {
|
62
|
-
@apply ax-bg-danger-400;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
&.ax-warning {
|
66
|
-
.ax-toast-icon {
|
67
|
-
@apply ax-text-warning-500;
|
68
|
-
}
|
69
|
-
.ax-toast-progress {
|
70
|
-
@apply ax-bg-warning-400;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
&.ax-info {
|
74
|
-
.ax-toast-icon {
|
75
|
-
@apply ax-text-info-500;
|
76
|
-
}
|
77
|
-
.ax-toast-progress {
|
78
|
-
@apply ax-bg-info-400;
|
79
|
-
}
|
80
|
-
}
|
81
7
|
}
|
82
|
-
}
|
8
|
+
}
|