@acorex/styles 5.0.4 → 5.0.8

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 (47) hide show
  1. package/index.scss +3 -2
  2. package/package.json +10 -10
  3. package/src/base/_colors.scss +16 -16
  4. package/src/base/index.scss +11 -7
  5. package/src/components/_alert.scss +156 -147
  6. package/src/components/_badge.scss +11 -39
  7. package/src/components/_button.scss +641 -651
  8. package/src/components/_calendar.scss +158 -96
  9. package/src/components/_carousel.scss +36 -61
  10. package/src/components/_checkbox.scss +24 -24
  11. package/src/components/_datapager.scss +39 -39
  12. package/src/components/_datepicker.scss +4 -4
  13. package/src/components/_dialog.scss +61 -61
  14. package/src/components/_drawer.scss +79 -79
  15. package/src/components/_dropdown.scss +140 -177
  16. package/src/components/_editor-container.scss +76 -69
  17. package/src/components/_form.scss +7 -7
  18. package/src/components/_input.scss +17 -16
  19. package/src/components/_label.scss +4 -4
  20. package/src/components/_list.scss +48 -48
  21. package/src/components/_loading.scss +53 -53
  22. package/src/components/_popup.scss +86 -86
  23. package/src/components/_radio.scss +19 -30
  24. package/src/components/_range-slider.scss +13 -13
  25. package/src/components/_selectbox.scss +15 -15
  26. package/src/components/_selection-list.scss +28 -28
  27. package/src/components/_side-menu.scss +46 -46
  28. package/src/components/_skeleton.scss +24 -24
  29. package/src/components/_switch.scss +199 -199
  30. package/src/components/_table.scss +20 -22
  31. package/src/components/_tabs.scss +209 -117
  32. package/src/components/_toast.scss +83 -93
  33. package/src/components/_tooltip.scss +44 -44
  34. package/src/components/index.scss +28 -28
  35. package/src/icons/Read Me.txt +7 -0
  36. package/src/icons/demo-files/demo.css +152 -0
  37. package/src/icons/demo-files/demo.js +30 -0
  38. package/src/icons/demo.html +416 -0
  39. package/src/icons/fonts/acorex-icon.svg +37 -0
  40. package/src/icons/fonts/acorex-icon.ttf +0 -0
  41. package/src/icons/fonts/acorex-icon.woff +0 -0
  42. package/src/icons/selection.json +1 -0
  43. package/src/icons/style.css +107 -0
  44. package/src/icons/style.scss +164 -0
  45. package/src/icons/variables.scss +31 -0
  46. package/src/variables/_colors.scss +135 -135
  47. package/src/variables/_mixins.scss +18 -18
@@ -1,16 +1,17 @@
1
- @layer components {
2
- .ax-input {
3
- @apply ax-outline-none ax-text-base ax-p-0;
4
- line-height: 20px;
5
- &:focus {
6
- @apply ax-ring-2 ax-ring-primary ax-ring-opacity-100 ax-border-transparent;
7
- }
8
-
9
- &.ax-state-disabled {
10
- @apply ax-bg-gray-400 ax-text-gray-900 ax-cursor-not-allowed ax-border-gray-400;
11
- &:hover {
12
- @apply ax-border-gray-400;
13
- }
14
- }
15
- }
16
- }
1
+ @layer components {
2
+ .ax-input {
3
+ @apply ax-outline-none ax-text-base ax-p-0;
4
+ line-height: 20px;
5
+ &:focus {
6
+ @apply ax-ring-2 ax-ring-primary ax-ring-opacity-100 ax-border-transparent;
7
+ }
8
+ &.ax-state-disabled {
9
+ background-color: rgb(var(--ax-color-disabled)) !important;
10
+ color: rgb(var(--ax-color-disabled-fore)) !important;
11
+ @apply ax-cursor-not-allowed;
12
+ &:hover {
13
+ background-color: rgb(var(--ax-color-disabled)) !important;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -1,5 +1,5 @@
1
- @layer components {
2
- .ax-label {
3
- @apply ax-block ax-font-medium ax-mb-2 ax-text-sm ax-text-gray-700;
4
- }
1
+ @layer components {
2
+ .ax-label {
3
+ @apply ax-block ax-font-medium ax-mb-2 ax-text-sm ax-text-light-700;
4
+ }
5
5
  }
@@ -1,49 +1,49 @@
1
- @layer components {
2
- .ax-list {
3
- display: block;
4
- }
5
- .ax-list-container {
6
- .ax-list-items-container {
7
- @apply ax-bg-white ax-py-1 ax-rounded ax-shadow ax-overflow-y-auto ax-h-full ax-border ax-border-solid ax-border-default;
8
- &.ax-vertical {
9
- @apply ax-grid ax-grid-cols-1;
10
- &.ax-divide {
11
- @apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
12
- }
13
- }
14
- &.ax-default {
15
- @apply ax-cursor-pointer;
16
- .ax-list-item {
17
- height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
18
- @apply ax-text-sm ax-flex ax-items-center ax-px-3;
19
- &:focus,
20
- &:focus-visible {
21
- @apply ax-outline-none;
22
- }
23
- &:hover {
24
- &:not(.ax-state-selected) {
25
- @apply ax-bg-primary-50 ax-text-primary;
26
- }
27
- }
28
- &.ax-state-selected {
29
- @apply ax-bg-primary-100 ax-text-primary ax-font-medium;
30
- }
31
- &:focus,
32
- &.ax-state-focus {
33
- &:not(.ax-state-selected) {
34
- @apply ax-outline-none ax-bg-primary-50 ax-text-primary;
35
- }
36
- }
37
- }
38
- }
39
- }
40
- .ax-list-loading-container {
41
- @apply ax-flex ax-justify-center ax-p-2;
42
- }
43
- }
44
- .cdk-overlay-container {
45
- .ax-list-items-container {
46
- max-height: 25vh;
47
- }
48
- }
1
+ @layer components {
2
+ .ax-list {
3
+ display: block;
4
+ }
5
+ .ax-list-container {
6
+ .ax-list-items-container {
7
+ @apply ax-bg-white ax-py-1 ax-rounded ax-shadow ax-overflow-y-auto ax-h-full ax-border ax-border-solid ax-border-default;
8
+ &.ax-vertical {
9
+ @apply ax-grid ax-grid-cols-1;
10
+ &.ax-divide {
11
+ @apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
12
+ }
13
+ }
14
+ &.ax-default {
15
+ @apply ax-cursor-pointer;
16
+ .ax-list-item {
17
+ height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
18
+ @apply ax-text-sm ax-flex ax-items-center ax-px-3;
19
+ &:focus,
20
+ &:focus-visible {
21
+ @apply ax-outline-none;
22
+ }
23
+ &:hover {
24
+ &:not(.ax-state-selected) {
25
+ @apply ax-bg-light-100 ax-text-light-fore;
26
+ }
27
+ }
28
+ &.ax-state-selected {
29
+ @apply ax-bg-primary-100 ax-text-primary ax-font-medium;
30
+ }
31
+ &:focus,
32
+ &.ax-state-focus {
33
+ &:not(.ax-state-selected) {
34
+ @apply ax-outline-none ax-bg-primary-50 ax-text-primary;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ .ax-list-loading-container {
41
+ @apply ax-flex ax-justify-center ax-p-2;
42
+ }
43
+ }
44
+ .cdk-overlay-container {
45
+ .ax-list-items-container {
46
+ max-height: 25vh;
47
+ }
48
+ }
49
49
  }
@@ -1,54 +1,54 @@
1
- @layer components {
2
- .ax-loading {
3
- }
4
-
5
- .ax-loading-host {
6
- .ax-loading {
7
-
8
- position: relative;
9
- background: rgba(var(--ax-color-white) 2);
10
- width: 4rem;
11
- height: 4rem;
12
-
13
- &::before,
14
- &::after {
15
- content: "";
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- width: 100%;
20
- height: 100%;
21
- border-radius: 50%;
22
- transform: translate(-50%, -50%) scale(0);
23
- }
24
-
25
- &::before {
26
- @apply ax-bg-primary;
27
- animation: pulse2 2s ease-in-out infinite;
28
- }
29
-
30
- &::after {
31
- @apply ax-bg-primary;
32
- animation: pulse2 2s 1s ease-in-out infinite;
33
- }
34
- }
35
- }
36
-
37
- .ax-loading-overlay {
38
- background: rgba(var(--ax-color-white) 2);
39
- }
40
-
41
- @keyframes pulse2 {
42
-
43
- 0%,
44
- 100% {
45
- transform: translate(-50%, -50%) scale(0);
46
- opacity: 1;
47
- }
48
-
49
- 50% {
50
- transform: translate(-50%, -50%) scale(1);
51
- opacity: 0;
52
- }
53
- }
1
+ @layer components {
2
+ .ax-loading {
3
+ }
4
+
5
+ .ax-loading-host {
6
+ .ax-loading {
7
+
8
+ position: relative;
9
+ background: rgba(var(--ax-color-white) 2);
10
+ width: 4rem;
11
+ height: 4rem;
12
+
13
+ &::before,
14
+ &::after {
15
+ content: "";
16
+ position: absolute;
17
+ top: 50%;
18
+ left: 50%;
19
+ width: 100%;
20
+ height: 100%;
21
+ border-radius: 50%;
22
+ transform: translate(-50%, -50%) scale(0);
23
+ }
24
+
25
+ &::before {
26
+ @apply ax-bg-primary;
27
+ animation: pulse2 2s ease-in-out infinite;
28
+ }
29
+
30
+ &::after {
31
+ @apply ax-bg-primary;
32
+ animation: pulse2 2s 1s ease-in-out infinite;
33
+ }
34
+ }
35
+ }
36
+
37
+ .ax-loading-overlay {
38
+ background: rgba(var(--ax-color-white) 2);
39
+ }
40
+
41
+ @keyframes pulse2 {
42
+
43
+ 0%,
44
+ 100% {
45
+ transform: translate(-50%, -50%) scale(0);
46
+ opacity: 1;
47
+ }
48
+
49
+ 50% {
50
+ transform: translate(-50%, -50%) scale(1);
51
+ opacity: 0;
52
+ }
53
+ }
54
54
  }
@@ -1,87 +1,87 @@
1
- @layer components {
2
- .ax-popup {
3
- max-height: 98vh;
4
- min-height: fit-content;
5
- @apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-default ax-rounded ax-outline-none ax-p-0;
6
- header {
7
- @apply ax-flex ax-justify-between ax-px-3 ax-py-2;
8
- }
9
- main {
10
- @apply ax-flex-1 ax-overflow-auto;
11
- }
12
- footer {
13
- @apply ax-grid ax-grid-cols-12 ax-gap-2 ax-px-3 ax-py-2 ax-border-t ax-border-solid ax-border-default;
14
- .ax-prefix {
15
- @apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
16
- }
17
- .ax-suffix {
18
- @apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
19
- }
20
- }
21
- header,
22
- footer {
23
- >div {
24
- @apply ax-flex ax-items-center;
25
- }
26
- }
27
- &.ax-full {
28
- @apply ax-w-screen ax-h-screen;
29
- }
30
- &.ax-fit {
31
- width: fit-content;
32
- }
33
- @media all and (min-width: 1280px) {
34
- &.ax-sm {
35
- width: 420px !important;
36
- }
37
- &.ax-md {
38
- width: 680px !important;
39
- }
40
- &.ax-lg {
41
- width: 1024px !important;
42
- }
43
- }
44
- @media all and (min-width: 1024px) and (max-width: 1279px) {
45
- &.ax-sm {
46
- width: 100vw;
47
- max-height: 100vh;
48
- }
49
- &.ax-md {
50
- width: 500px !important;
51
- }
52
- &.ax-lg {
53
- width: 900px !important;
54
- }
55
- }
56
- @media all and (min-width: 768px) and (max-width: 1023px) {
57
- &.ax-sm {
58
- width: 100vw;
59
- max-height: 100vh;
60
- }
61
- &.ax-md {
62
- width: 500px !important;
63
- }
64
- &.ax-lg {
65
- width: 700px !important;
66
- }
67
- }
68
- @media all and (min-width: 425px) and (max-width: 767px) {
69
- &.ax-sm {
70
- width: 100vw;
71
- max-height: 100vh;
72
- }
73
- &.ax-md,
74
- &.ax-lg {
75
- width: 460px !important;
76
- }
77
- }
78
- @media all and (min-width: 0px) and (max-width: 424px) {
79
- &.ax-sm,
80
- &.ax-md,
81
- &.ax-lg {
82
- width: 100vw;
83
- max-height: 100vh;
84
- }
85
- }
86
- }
1
+ @layer components {
2
+ .ax-popup {
3
+ max-height: 98vh;
4
+ min-height: fit-content;
5
+ @apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-default ax-rounded ax-outline-none ax-p-0;
6
+ header {
7
+ @apply ax-flex ax-justify-between ax-px-3 ax-py-2;
8
+ }
9
+ main {
10
+ @apply ax-flex-1 ax-overflow-auto;
11
+ }
12
+ footer {
13
+ @apply ax-grid ax-grid-cols-12 ax-gap-2 ax-px-3 ax-py-2 ax-border-t ax-border-solid ax-border-default;
14
+ .ax-prefix {
15
+ @apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
16
+ }
17
+ .ax-suffix {
18
+ @apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
19
+ }
20
+ }
21
+ header,
22
+ footer {
23
+ >div {
24
+ @apply ax-flex ax-items-center;
25
+ }
26
+ }
27
+ &.ax-full {
28
+ @apply ax-w-screen ax-h-screen;
29
+ }
30
+ &.ax-fit {
31
+ width: fit-content;
32
+ }
33
+ @media all and (min-width: 1280px) {
34
+ &.ax-sm {
35
+ width: 420px !important;
36
+ }
37
+ &.ax-md {
38
+ width: 680px !important;
39
+ }
40
+ &.ax-lg {
41
+ width: 1024px !important;
42
+ }
43
+ }
44
+ @media all and (min-width: 1024px) and (max-width: 1279px) {
45
+ &.ax-sm {
46
+ width: 100vw;
47
+ max-height: 100vh;
48
+ }
49
+ &.ax-md {
50
+ width: 500px !important;
51
+ }
52
+ &.ax-lg {
53
+ width: 900px !important;
54
+ }
55
+ }
56
+ @media all and (min-width: 768px) and (max-width: 1023px) {
57
+ &.ax-sm {
58
+ width: 100vw;
59
+ max-height: 100vh;
60
+ }
61
+ &.ax-md {
62
+ width: 500px !important;
63
+ }
64
+ &.ax-lg {
65
+ width: 700px !important;
66
+ }
67
+ }
68
+ @media all and (min-width: 425px) and (max-width: 767px) {
69
+ &.ax-sm {
70
+ width: 100vw;
71
+ max-height: 100vh;
72
+ }
73
+ &.ax-md,
74
+ &.ax-lg {
75
+ width: 460px !important;
76
+ }
77
+ }
78
+ @media all and (min-width: 0px) and (max-width: 424px) {
79
+ &.ax-sm,
80
+ &.ax-md,
81
+ &.ax-lg {
82
+ width: 100vw;
83
+ max-height: 100vh;
84
+ }
85
+ }
86
+ }
87
87
  }
@@ -1,30 +1,19 @@
1
- @import "../variables/mixins";
2
- @layer components {
3
- .ax-radio-container {
4
- @apply ax-text-sm ax-font-medium ax-text-gray-700;
5
- @include respond(mobile) {
6
- @apply ax-text-base;
7
- }
8
- .ax-radio {
9
- @apply ax-w-4
10
- ax-h-4
11
- ax-border-solid
12
- ax-border
13
- ax-border-default
14
- ax-rounded-full
15
- ax-bg-white
16
- ax-text-primary
17
- ax-m-0
18
- ax-outline-none
19
- ax-align-middle
20
- ax-appearance-none;
21
- &:checked {
22
- @apply ax-border-primary ax-bg-no-repeat ax-bg-current ax-bg-contain;
23
- 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");
24
- }
25
- &:focus {
26
- @apply ax-ring-2 ax-ring-primary ax-ring-offset-2;
27
- }
28
- }
29
- }
30
- }
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-radio-container {
4
+ @apply ax-text-sm ax-font-medium ax-text-light-700;
5
+ @include respond(mobile) {
6
+ @apply ax-text-base;
7
+ }
8
+ .ax-radio {
9
+ @apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-default ax-rounded-full ax-bg-white ax-text-primary ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
10
+ &:checked {
11
+ @apply ax-border-primary ax-bg-no-repeat ax-bg-current ax-bg-contain;
12
+ 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");
13
+ }
14
+ &:focus {
15
+ @apply ax-ring-2 ax-ring-primary ax-ring-offset-2;
16
+ }
17
+ }
18
+ }
19
+ }
@@ -1,14 +1,14 @@
1
- @layer components {
2
- .ax-range-slider {
3
- @apply ax-w-full;
4
- .ax-range-slider-input {
5
- @apply ax-appearance-none ax-w-full ax-h-2 ax-bg-light-100 ax-rounded-full ax-outline-none ax-transition-all;
6
- &::-webkit-slider-thumb {
7
- @apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
8
- }
9
- &::-moz-range-thumb {
10
- @apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
11
- }
12
- }
13
- }
1
+ @layer components {
2
+ .ax-range-slider {
3
+ @apply ax-w-full;
4
+ .ax-range-slider-input {
5
+ @apply ax-appearance-none ax-w-full ax-h-2 ax-bg-light-100 ax-rounded-full ax-outline-none ax-transition-all;
6
+ &::-webkit-slider-thumb {
7
+ @apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
8
+ }
9
+ &::-moz-range-thumb {
10
+ @apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-default ax-rounded-full ax-cursor-pointer;
11
+ }
12
+ }
13
+ }
14
14
  }
@@ -1,15 +1,15 @@
1
- @layer components {
2
- .ax-select-box {
3
- .ax-select-box-selection {
4
- @apply ax-flex ax-justify-center ax-items-center ax-outline-none;
5
-
6
- .ax-dropdown-chips {
7
- @apply ax-flex ax-overflow-x-auto;
8
- }
9
-
10
- .ax-selectbox-input {
11
- @apply ax-opacity-0 ax-w-0;
12
- }
13
- }
14
- }
15
- }
1
+ @layer components {
2
+ .ax-select-box {
3
+ .ax-select-box-selection {
4
+ @apply ax-flex ax-justify-center ax-items-center ax-outline-none;
5
+
6
+ .ax-dropdown-chips {
7
+ @apply ax-flex ax-overflow-x-auto;
8
+ }
9
+
10
+ .ax-selectbox-input {
11
+ @apply ax-opacity-0 ax-w-0;
12
+ }
13
+ }
14
+ }
15
+ }
@@ -1,28 +1,28 @@
1
- @layer components {
2
- .ax-selection-list {
3
- @apply ax-flex ax-flex-wrap;
4
-
5
- &.ax-vertical {
6
- @apply ax-flex-col;
7
- }
8
-
9
- &.ax-horizontal {
10
- @apply ax-flex-row;
11
- .ax-checkbox-container,
12
- .ax-radio-container {
13
- @apply ax-pe-3;
14
- }
15
- }
16
-
17
- &.ax-state-error {
18
- @apply ax-text-danger;
19
- .ax-checkbox-checkmark {
20
- @apply ax-border-danger;
21
- }
22
-
23
- .ax-radio-checkmark {
24
- @apply ax-border-danger;
25
- }
26
- }
27
- }
28
- }
1
+ @layer components {
2
+ .ax-selection-list {
3
+ @apply ax-flex ax-flex-wrap;
4
+
5
+ &.ax-vertical {
6
+ @apply ax-flex-col;
7
+ }
8
+
9
+ &.ax-horizontal {
10
+ @apply ax-flex-row;
11
+ .ax-checkbox-container,
12
+ .ax-radio-container {
13
+ @apply ax-pe-3;
14
+ }
15
+ }
16
+
17
+ &.ax-state-error {
18
+ @apply ax-text-danger;
19
+ .ax-checkbox-checkmark {
20
+ @apply ax-border-danger;
21
+ }
22
+
23
+ .ax-radio-checkmark {
24
+ @apply ax-border-danger;
25
+ }
26
+ }
27
+ }
28
+ }