@acorex/styles 5.0.36 → 5.0.40

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "5.0.36",
3
+ "version": "5.0.40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -81,7 +81,7 @@
81
81
  @apply ax-ring-2 ax-ring-offset-2 ax-ring-primary-500;
82
82
  }
83
83
  &:active {
84
- @apply ax-bg-primary-700 ax-ring-2 ax-ring-offset-2 ax-ring-primary-700;
84
+ @apply ax-bg-primary-800 ax-ring-2 ax-ring-offset-2 ax-ring-primary-800;
85
85
  }
86
86
  }
87
87
 
@@ -45,6 +45,9 @@
45
45
  &:hover {
46
46
  @apply ax-bg-light-100 dark:ax-bg-white/[0.07];
47
47
  }
48
+ &:focus {
49
+ @apply ax-ring-2 ax-ring-primary-500 ax-outline-none;
50
+ }
48
51
 
49
52
  &.ax-state-disabled {
50
53
  @apply ax-text-light-300 ax-cursor-not-allowed;
@@ -1,38 +1,63 @@
1
1
  @layer components {
2
- ax-check-box,
3
- .ax-check-box {
4
- @apply ax-justify-start ax-w-max ax-flex;
2
+
3
+ .ax-check-box,
4
+ ax-check-box {
5
+
6
+ .ax-state-error {
7
+ @apply ax-text-danger-500;
8
+
9
+ input[type="checkbox"] {
10
+ @apply ax-border-danger-500;
11
+ }
12
+ }
13
+ .ax-state-success {
14
+ @apply ax-text-success-600;
15
+
16
+ input[type="checkbox"] {
17
+ @apply ax-border-success-600;
18
+ }
19
+ }
20
+
5
21
 
6
22
  .ax-wrapper {
7
23
  &.ax-state-disabled {
8
24
  @apply ax-cursor-not-allowed ax-opacity-80;
25
+
9
26
  input[type="checkbox"] {
10
27
  @apply ax-cursor-not-allowed;
11
28
  }
12
29
  }
13
30
  }
31
+
14
32
  input[type="checkbox"] {
15
33
  @apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-light-300 ax-rounded ax-bg-white ax-text-primary-500 ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
16
34
  @include control-dark("editor");
35
+
17
36
  &:checked,
18
37
  &:indeterminate {
19
38
  @apply ax-border-primary-500 ax-bg-no-repeat ax-bg-primary-500 ax-bg-contain #{!important};
20
39
  }
40
+
21
41
  &:checked {
22
42
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' 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");
23
43
  }
44
+
24
45
  &:indeterminate {
25
46
  background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
26
47
  }
48
+
27
49
  &:focus {
28
50
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
29
51
  }
30
- }
31
- ax-label {
32
- @apply ax-items-center ax-mb-0 ax-font-semibold ax-text-sm ax-text-light-700;
33
- label {
34
- @apply ax-mb-0;
52
+
53
+ &.ax-state-disabled {
54
+ @apply ax-opacity-70;
35
55
  }
56
+
57
+ &.ax-state-disabled {
58
+ @apply ax-opacity-60;
59
+ }
60
+
36
61
  }
37
62
  }
38
- }
63
+ }
@@ -1,5 +1,4 @@
1
1
  @layer components {
2
-
3
2
  ax-drop-down,
4
3
  .ax-drop-down {
5
4
  display: contents;
@@ -45,7 +44,10 @@
45
44
  }
46
45
 
47
46
  i {
48
- @apply ax-text-primary-500 ax-cursor-pointer ax-text-xl;
47
+ @apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
48
+ &:hover {
49
+ @apply ax-text-light-500 dark:ax-text-light-100;
50
+ }
49
51
  }
50
52
  }
51
53
 
@@ -211,4 +213,4 @@
211
213
  }
212
214
  }
213
215
  }
214
- }
216
+ }
@@ -2,81 +2,123 @@
2
2
  .ax-editor-container {
3
3
  height: calc(var(--ax-base-size) * var(--ax-base-ratio));
4
4
  @apply ax-flex ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
5
- @include control-dark('editor');
5
+ @include control-dark("editor");
6
+
6
7
  @screen md {
7
8
  @apply ax-text-sm;
8
9
  }
10
+
9
11
  &:focus-within {
10
12
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
11
13
  }
14
+
12
15
  &.ax-button-icon {
13
16
  @apply ax-px-2;
14
17
  }
15
- &:first-child {
16
- }
18
+
19
+ &:first-child {}
20
+
17
21
  [class*=" ax-ic-"],
18
22
  [class^="ax-ic-"] {
19
23
  font-size: 1.2rem !important;
20
24
  line-height: 1 !important;
21
25
  }
22
- .ax-input {
23
- line-height: 4 !important;
24
- min-width: 1%;
25
- foont-size:inherit;
26
26
 
27
+ .ax-input {
28
+ width: 1%;
27
29
  @apply ax-flex-1 ax-bg-transparent ax-border-none ax-px-2.5;
28
-
30
+
29
31
  &:focus {
30
32
  box-shadow: none;
31
33
  }
32
34
  }
35
+
36
+
33
37
  ax-prefix {
34
- *,ax-button {
38
+
39
+ *,
40
+ ax-button,ax-addon {
35
41
  @apply ax-rounded-s;
36
42
  }
43
+
37
44
  }
45
+
38
46
  ax-suffix {
39
- *,ax-button {
47
+
48
+ *,
49
+ ax-button, ax-addon {
40
50
  @apply ax-rounded-e;
41
51
  }
52
+
42
53
  }
54
+
43
55
  ax-prefix,
44
56
  ax-suffix {
45
57
  * {
46
58
  @apply ax-h-full ax-flex ax-justify-center ax-items-center ax-rounded-none;
47
59
  }
60
+
61
+ ax-icon {
62
+ @apply ax-px-2
63
+ }
64
+
65
+ ax-addon{
66
+ @apply ax-bg-light-100 ax-text-light-fore ax-px-4;
67
+ }
68
+
48
69
  }
70
+
49
71
  ax-button {
50
72
  height: 100% !important;
51
73
  @apply ax-rounded-none;
74
+
52
75
  &:focus {
53
76
  @apply ax-ring-0;
54
77
  }
78
+
55
79
  &.ax-button-icon {
56
80
  min-width: calc(var(--ax-base-size) * var(--ax-base-ratio));
81
+
57
82
  .ax-ic {
58
83
  @apply ax-text-base;
59
84
  }
60
85
  }
61
86
  }
62
-
87
+
63
88
  &.ax-state-disabled {
64
89
  background-color: rgb(var(--ax-color-disabled)) !important;
65
90
  color: rgb(var(--ax-color-disabled-fore)) !important;
66
91
  @apply ax-cursor-not-allowed;
92
+
67
93
  &:hover {
68
94
  background-color: rgb(var(--ax-color-disabled)) !important;
69
95
  }
70
96
  }
97
+
71
98
  &.ax-state-error {
72
99
  @apply ax-border-danger-500;
100
+
73
101
  .ax-input {
74
102
  @apply ax-placeholder-danger-500;
75
103
  }
104
+
105
+ &:focus-within {
106
+ @apply ax-ring-0 ax-ring-transparent;
107
+ }
108
+ }
109
+
110
+ &.ax-state-success {
111
+ @apply ax-border-success-600;
112
+
113
+ .ax-input {
114
+ @apply ax-placeholder-success-600;
115
+ }
116
+
76
117
  &:focus-within {
77
118
  @apply ax-ring-0 ax-ring-transparent;
78
119
  }
79
120
  }
121
+
80
122
  // &.ax-sm {
81
123
  // height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - var(--ax-base-size)) !important;
82
124
  // .ax-input {
@@ -90,4 +132,4 @@
90
132
  // }
91
133
  // }
92
134
  }
93
- }
135
+ }
@@ -0,0 +1,8 @@
1
+ @layer components{
2
+ fieldset{
3
+ @apply ax-grid ax-col-span-6 ax-grid-cols-6 ax-gap-4 ax-border ax-border-solid ax-border-gray-300 ax-p-3 ax-rounded;
4
+ legend{
5
+ @apply ax-text-sm ax-px-1;
6
+ }
7
+ }
8
+ }
@@ -2,7 +2,7 @@
2
2
  ax-form-field {
3
3
  @apply ax-mb-2 ax-relative;
4
4
  .ax-error-msg {
5
- @apply ax-absolute ax--bottom-5 ax-text-danger-500 ax-text-xs;
5
+ @apply ax-block ax-text-danger-500 ax-text-xs ax-py-2;
6
6
  }
7
7
  }
8
8
  }
@@ -1,8 +1,7 @@
1
1
  @layer components {
2
2
  .ax-input {
3
3
  @apply ax-outline-none ax-p-0;
4
- foont-size:inherit;
5
- line-height: 20px;
4
+ font-size:inherit;
6
5
  &:focus {
7
6
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
8
7
  }
@@ -28,19 +28,27 @@
28
28
  }
29
29
 
30
30
  &:hover {
31
- &:not(.ax-state-selected) {
32
- @apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
33
- }
31
+ @apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-white/[0.09] dark:ax-text-light-50;
34
32
  }
35
-
36
33
  &.ax-state-selected {
37
34
  @apply ax-text-primary-500 ax-font-medium dark:ax-text-primary-50;
38
35
  }
36
+
37
+ &:not(.ax-check-box)
38
+ {
39
+ &.ax-state-selected {
40
+ @apply ax-bg-primary-50 dark:ax-bg-white/[0.16];
41
+ }
42
+ }
43
+
44
+ &.ax-state-disabled {
45
+ @apply ax-cursor-not-allowed ax-opacity-70;
46
+ }
39
47
 
40
48
  &:focus,
41
49
  &.ax-state-focus {
42
50
  &:not(.ax-state-selected) {
43
- @apply ax-outline-none ax-bg-primary-50 ax-text-primary-500;
51
+ @apply ax-outline-none ax-bg-primary-50 ax-text-primary-500 dark:ax-bg-white/[0.16] dark:ax-text-white;
44
52
  }
45
53
  }
46
54
  }
@@ -1,4 +1,5 @@
1
1
  @layer components {
2
+
2
3
  .ax-loading {
3
4
  }
4
5
 
@@ -38,6 +39,10 @@
38
39
  background: rgba(var(--ax-color-white) 2);
39
40
  }
40
41
 
42
+ ax-loading-spinner{
43
+ @apply ax-flex;
44
+ }
45
+
41
46
  @keyframes pulse2 {
42
47
 
43
48
  0%,
@@ -0,0 +1,17 @@
1
+ @layer components {
2
+
3
+ ax-number-box,
4
+ .ax-number-box {
5
+ .ax-number-box-arrows {
6
+ @apply ax-grid ax-invisible;
7
+ }
8
+
9
+ &:focus,
10
+ &:focus-within,
11
+ &:hover {
12
+ .ax-number-box-arrows {
13
+ @apply ax-visible;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -1,5 +1,4 @@
1
1
  @layer components {
2
-
3
2
  ax-page-footer {
4
3
  @apply ax-grid ax-grid-cols-12 ax-gap-2 ax-px-3 ax-py-2 ax-border-t ax-border-solid ax-border-light-300 dark:ax-border-light-700;
5
4
 
@@ -14,10 +13,21 @@
14
13
 
15
14
  .ax-popup {
16
15
  @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;
17
- @include control-dark('surface');
16
+ @include control-dark("surface");
18
17
 
19
18
  header {
20
- @apply ax-flex ax-justify-between ax-px-3 ax-py-2;
19
+ @apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
20
+
21
+ span {
22
+ @apply ax-font-medium;
23
+ }
24
+
25
+ i {
26
+ @apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
27
+ &:hover {
28
+ @apply ax-text-light-500 dark:ax-text-light-100;
29
+ }
30
+ }
21
31
  }
22
32
 
23
33
  main {
@@ -38,13 +48,13 @@
38
48
 
39
49
  header,
40
50
  footer {
41
- >div {
51
+ > div {
42
52
  @apply ax-flex ax-items-center;
43
53
  }
44
54
  }
45
55
 
46
56
  &.ax-popup-full {
47
- @apply ax-w-screen ax-h-screen ax-max-h-screen;
57
+ @apply ax-w-screen ax-h-full ax-max-h-full;
48
58
  }
49
59
 
50
60
  &.ax-fit {
@@ -109,14 +119,13 @@
109
119
  }
110
120
 
111
121
  @media all and (min-width: 0px) and (max-width: 424px) {
112
-
113
122
  &.ax-popup-sm,
114
123
  &.ax-popup-md,
115
124
  &.ax-popup-lg {
116
125
  width: 100vw;
117
- height: 100vh;
118
- max-height: 100vh;
126
+ height: 100%;
127
+ max-height: 100%;
119
128
  }
120
129
  }
121
130
  }
122
- }
131
+ }
@@ -13,6 +13,15 @@
13
13
  &:focus {
14
14
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
15
15
  }
16
+ &.ax-state-disabled{
17
+ @apply ax-opacity-70;
18
+ }
19
+ &.ax-state-disabled{
20
+ @apply ax-opacity-60;
21
+ }
22
+ &.ax-state-error{
23
+ @apply ax-border-danger-500;
24
+ }
16
25
  }
17
26
  ax-label {
18
27
  label {
@@ -10,10 +10,12 @@
10
10
  @import "./drawer";
11
11
  @import "./dropdown";
12
12
  @import "./editor-container";
13
+ @import "./fieldset";
13
14
  @import "./form";
14
15
  @import "./input";
15
16
  @import "./label";
16
17
  @import "./list";
18
+ @import "./numberbox";
17
19
  @import "./loading";
18
20
  @import "./popup";
19
21
  @import "./radio";
@@ -105,17 +105,17 @@ $theme-colors: (
105
105
  "900": "6 6 6",
106
106
  ),
107
107
  "light": (
108
- "": "107 114 128",
109
- "fore": "17 24 39",
110
- "50": "249 250 251",
111
- "100": "243 244 246",
112
- "200": "229 231 235",
113
- "300": "209 213 219",
114
- "400": "156 163 175",
115
- "500": "107 114 128",
116
- "600": "75 85 99",
117
- "700": "55 65 81",
118
- "800": "31 41 55",
119
- "900": "17 24 39",
108
+ "": "100 116 139",
109
+ "fore": "15 23 42",
110
+ "50": "248 250 252",
111
+ "100": "241 245 249",
112
+ "200": "226 232 240",
113
+ "300": "203 213 225",
114
+ "400": "148 163 184",
115
+ "500": "100 116 139",
116
+ "600": "71 85 105",
117
+ "700": "51 65 85",
118
+ "800": "30 41 59",
119
+ "900": "15 23 42",
120
120
  )
121
121
  );