@acorex/styles 4.0.24 → 5.0.4

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 (107) hide show
  1. package/index.scss +2 -48
  2. package/package.json +11 -11
  3. package/src/base/_colors.scss +16 -0
  4. package/src/base/index.scss +7 -0
  5. package/src/components/_alert.scss +148 -0
  6. package/src/components/_badge.scss +39 -0
  7. package/src/components/_button.scss +652 -0
  8. package/src/components/_calendar.scss +97 -0
  9. package/src/components/_carousel.scss +61 -0
  10. package/src/components/_checkbox.scss +25 -0
  11. package/src/components/_datapager.scss +40 -0
  12. package/src/components/_datepicker.scss +5 -0
  13. package/src/components/_dialog.scss +62 -0
  14. package/src/components/_drawer.scss +79 -0
  15. package/src/components/_dropdown.scss +178 -0
  16. package/src/components/_editor-container.scss +70 -0
  17. package/src/components/_form.scss +8 -0
  18. package/src/components/_input.scss +16 -0
  19. package/src/components/_label.scss +5 -0
  20. package/src/components/_list.scss +49 -0
  21. package/src/components/_loading.scss +54 -0
  22. package/src/components/_popup.scss +87 -0
  23. package/src/components/_radio.scss +30 -0
  24. package/src/components/_range-slider.scss +14 -0
  25. package/src/components/_selectbox.scss +15 -0
  26. package/src/components/_selection-list.scss +28 -0
  27. package/src/components/_side-menu.scss +46 -0
  28. package/src/components/_skeleton.scss +25 -0
  29. package/src/components/_switch.scss +200 -0
  30. package/src/components/_table.scss +22 -0
  31. package/src/components/_tabs.scss +117 -0
  32. package/src/components/_toast.scss +94 -0
  33. package/src/components/_tooltip.scss +44 -0
  34. package/src/components/index.scss +29 -0
  35. package/{variables/bases/_color.scss → src/variables/_colors.scss} +135 -135
  36. package/src/variables/_mixins.scss +18 -0
  37. package/scss/ax-icon/fonts/acorex.eot +0 -0
  38. package/scss/ax-icon/fonts/acorex.svg +0 -1434
  39. package/scss/ax-icon/fonts/acorex.ttf +0 -0
  40. package/scss/ax-icon/fonts/acorex.woff +0 -0
  41. package/scss/ax-icon/selection.json +0 -1
  42. package/scss/ax-icon/style.scss +0 -7218
  43. package/scss/ax-icon/variables.scss +0 -1428
  44. package/scss/bases/accessiblity.scss +0 -38
  45. package/scss/bases/background.scss +0 -76
  46. package/scss/bases/border.scss +0 -453
  47. package/scss/bases/effects.scss +0 -56
  48. package/scss/bases/filter.scss +0 -184
  49. package/scss/bases/flexbox-and-grid.scss +0 -254
  50. package/scss/bases/interactivity.scss +0 -42
  51. package/scss/bases/layout.scss +0 -207
  52. package/scss/bases/root.scss +0 -53
  53. package/scss/bases/sizing.scss +0 -43
  54. package/scss/bases/skeleton.scss +0 -30
  55. package/scss/bases/spacing.scss +0 -245
  56. package/scss/bases/svg.scss +0 -18
  57. package/scss/bases/table.scss +0 -15
  58. package/scss/bases/transform.scss +0 -114
  59. package/scss/bases/transition-and-animation.scss +0 -116
  60. package/scss/bases/typography.scss +0 -210
  61. package/scss/components/alert.scss +0 -131
  62. package/scss/components/badge.scss +0 -6
  63. package/scss/components/button.scss +0 -264
  64. package/scss/components/calendar.scss +0 -120
  65. package/scss/components/carousel.scss +0 -67
  66. package/scss/components/checkbox.scss +0 -36
  67. package/scss/components/datapager.scss +0 -80
  68. package/scss/components/datepicker.scss +0 -8
  69. package/scss/components/dialog.scss +0 -61
  70. package/scss/components/drawer.scss +0 -78
  71. package/scss/components/dropdown.scss +0 -35
  72. package/scss/components/editor-container.scss +0 -105
  73. package/scss/components/input.scss +0 -47
  74. package/scss/components/label.scss +0 -6
  75. package/scss/components/list.scss +0 -55
  76. package/scss/components/loading.scss +0 -47
  77. package/scss/components/popup.scss +0 -103
  78. package/scss/components/radio.scss +0 -36
  79. package/scss/components/selectbox.scss +0 -39
  80. package/scss/components/selection-list.scss +0 -22
  81. package/scss/components/side-menu.scss +0 -44
  82. package/scss/components/switch.scss +0 -178
  83. package/scss/components/table.scss +0 -22
  84. package/scss/components/tabs.scss +0 -115
  85. package/scss/components/text-box.scss +0 -4
  86. package/scss/components/toast.scss +0 -82
  87. package/scss/components/tooltip.scss +0 -42
  88. package/variables/bases/_accessiblity.scss +0 -22
  89. package/variables/bases/_background.scss +0 -57
  90. package/variables/bases/_border.scss +0 -106
  91. package/variables/bases/_common.scss +0 -6
  92. package/variables/bases/_effects.scss +0 -36
  93. package/variables/bases/_filter.scss +0 -62
  94. package/variables/bases/_flexbox-and-grid.scss +0 -138
  95. package/variables/bases/_interactivity.scss +0 -31
  96. package/variables/bases/_layout.scss +0 -102
  97. package/variables/bases/_root.scss +0 -70
  98. package/variables/bases/_sizing.scss +0 -322
  99. package/variables/bases/_spacing.scss +0 -38
  100. package/variables/bases/_svg.scss +0 -1
  101. package/variables/bases/_table.scss +0 -2
  102. package/variables/bases/_transform.scss +0 -88
  103. package/variables/bases/_transition-and-animation.scss +0 -26
  104. package/variables/bases/_typography.scss +0 -191
  105. package/variables/components/_button.scss +0 -0
  106. package/variables/components/_editor-container.scss +0 -5
  107. package/variables/components/_input.scss +0 -0
@@ -0,0 +1,97 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-calendar {
4
+ @apply ax-border ax-border-solid ax-border-default ax-rounded;
5
+ .ax-calendar-header {
6
+ @apply ax-grid ax-grid-cols-12 ax-py-1 ax-px-2 ax-border-b ax-border-default ax-border-solid;
7
+ .ax-nav-button {
8
+ @apply ax-col-span-8 ax-justify-start;
9
+ }
10
+ .ax-prev-button,
11
+ .ax-next-button {
12
+ @apply ax-col-span-2 ax-justify-center ax-ms-1;
13
+ }
14
+ }
15
+ .ax-calendar-body {
16
+ @apply ax-m-2;
17
+ .ax-month-items,
18
+ .ax-day-items {
19
+ @apply ax-grid ax-grid-cols-7;
20
+ }
21
+ .ax-month-items {
22
+ .ax-month-item {
23
+ @apply ax-text-sm ax-text-black ax-text-center ax-relative ax-flex ax-items-center ax-justify-center ax-cursor-text ax-m-0.5;
24
+ }
25
+ }
26
+ .ax-day-items {
27
+ .ax-day-item {
28
+ @apply ax-text-sm ax-text-black ax-text-center ax-relative ax-flex ax-items-center ax-justify-center ax-cursor-pointer ax-m-0.5 ax-rounded;
29
+ &::before {
30
+ content: '';
31
+ padding-top: 100%;
32
+ float: left;
33
+ }
34
+ &::after {
35
+ content: '';
36
+ display: block;
37
+ clear: both;
38
+ }
39
+ &:hover {
40
+ @apply ax-bg-gray-100;
41
+ }
42
+ &.ax-state-holiday {
43
+ @apply ax-text-danger;
44
+ &:hover {
45
+ @apply ax-text-black;
46
+ }
47
+ }
48
+ &.ax-state-today {
49
+ @apply ax-bg-success ax-text-success-fore;
50
+ }
51
+ &.ax-state-selected {
52
+ @apply ax-bg-primary ax-text-primary-fore;
53
+ }
54
+ &.ax-state-event {
55
+ &::after {
56
+ @apply ax-absolute ax-bottom-0.5 ax-rounded-full ax-h-0.5 ax-w-4 ax-bg-dark;
57
+ content: ''
58
+ }
59
+ &.ax-state-event-primary {
60
+ &::after {
61
+ @apply ax-bg-primary;
62
+ }
63
+ }
64
+ &.ax-state-event-secondary {
65
+ &::after {
66
+ @apply ax-bg-secondary;
67
+ }
68
+ }
69
+ &.ax-state-event-success {
70
+ &::after {
71
+ @apply ax-bg-success;
72
+ }
73
+ }
74
+ &.ax-state-event-warning {
75
+ &::after {
76
+ @apply ax-bg-warning;
77
+ }
78
+ }
79
+ &.ax-state-event-danger {
80
+ &::after {
81
+ @apply ax-bg-danger;
82
+ }
83
+ }
84
+ &.ax-state-event-info {
85
+ &::after {
86
+ @apply ax-bg-info;
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ .ax-calendar-footer {
94
+ @apply ax-p-2 ax-bg-light-100;
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,61 @@
1
+ @layer components {
2
+ .ax-carousel {
3
+ text-align: center;
4
+ overflow: hidden;
5
+ width: 100%;
6
+ display: block;
7
+ position: relative;
8
+
9
+ .ax-carousel-arrows {
10
+ @apply ax-flex
11
+ ax-absolute
12
+ ax-justify-between
13
+ ax-justify-items-center
14
+ ax-cursor-pointer
15
+ ax-bg-transparent
16
+ ax-text-white
17
+ ax-invisible;
18
+ top: 0;
19
+ left: 0;
20
+ right: 0;
21
+ bottom: 0;
22
+
23
+ button {
24
+ @apply ax-border-none
25
+ ax-cursor-pointer
26
+ ax-bg-transparent
27
+ ax-text-white
28
+ ax-visible;
29
+
30
+ .ax-ic {
31
+ font-size: 2.5rem;
32
+ }
33
+ }
34
+ }
35
+
36
+ .ax-carousel-pager {
37
+ @apply ax-flex
38
+ ax-py-2
39
+ ax-justify-center;
40
+
41
+ button {
42
+ @apply ax-p-1
43
+ ax-mx-1
44
+ ax-cursor-pointer
45
+ ax-border-none
46
+ ax-rounded-full
47
+ ax-bg-gray-300;
48
+ width: calc(var(--ax-base-size) * 1.5);
49
+ height: calc(var(--ax-base-size) * 1.5);
50
+
51
+ &:hover {
52
+ @apply ax-bg-primary-600;
53
+ }
54
+
55
+ &.ax-state-active {
56
+ @apply ax-bg-primary-400;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,25 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-checkbox-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-checkbox {
9
+ @apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-default ax-rounded ax-bg-white ax-text-primary ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
10
+ &:checked,
11
+ &:indeterminate {
12
+ @apply ax-border-primary ax-bg-no-repeat ax-bg-current ax-bg-contain;
13
+ }
14
+ &:checked {
15
+ 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");
16
+ }
17
+ &:indeterminate {
18
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
19
+ }
20
+ &:focus {
21
+ @apply ax-ring-2 ax-ring-primary ax-ring-offset-2;
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,40 @@
1
+ @layer components {
2
+ .ax-datapager {
3
+ @apply ax-flex ax-flex-row ax-items-center ax-px-1 ax-py-1 ax-text-black ax-border ax-border-solid ax-border-default ax-border-opacity-50 ax-bg-light-50 ax-rounded ax-shadow-md ax-max-w-full;
4
+ .ax-button-group {
5
+ @apply ax-border-none;
6
+ ax-button {
7
+ @apply ax-border-none ax-rounded ax-mr-1;
8
+ }
9
+ }
10
+ .ax-wrapper {
11
+ @apply ax-flex ax-flex-1 ax-flex-row ax-items-center ax-max-w-full;
12
+ .ax-datapager-nav-buttons,
13
+ .ax-datapager-numeric-selector,
14
+ .ax-datapager-page-sizes {
15
+ @apply ax-flex-initial;
16
+ }
17
+ .ax-datapager-info {
18
+ @apply ax-flex ax-justify-end ax-flex-1 ax-order-last ax-px-2.5;
19
+ }
20
+ ax-button {
21
+ &.ax-state-disabled {
22
+ @apply ax-border-none;
23
+ }
24
+ }
25
+ .ax-datapager-nav-buttons {
26
+ ax-button {
27
+ @apply ax-p-1;
28
+ }
29
+ }
30
+ }
31
+ .ax-datapager-input-selector {
32
+ @apply ax-px-1;
33
+ --ax-base-ratio: 4;
34
+ .ax-input {
35
+ width: calc(var(--ax-base-size) * var(--ax-base-ratio) * 1.5);
36
+ text-align: center;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,5 @@
1
+ @layer components {
2
+ .ax-datepicker-body {
3
+ @apply ax-m-auto ax-shadow-sm ax-w-full ax-rounded ax-border ax-border-default ax-border-none;
4
+ }
5
+ }
@@ -0,0 +1,62 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-dialog {
4
+ max-width: 512px;
5
+ width: 25vw;
6
+ @apply ax-grid ax-grid-cols-12 ax-gap-4 ax-px-6 ax-py-5 ax-relative ax-bg-white ax-shadow-md ax-border ax-border-solid ax-border-default ax-rounded-lg ax-outline-none ax-overflow-hidden;
7
+ @include respond(mobile) {
8
+ width: 98vw;
9
+ }
10
+ @include respond(tablet) {
11
+ width: 35vw;
12
+ }
13
+ .ax-dialog-icon-side {
14
+ @apply ax-flex ax-justify-center ax-col-span-2;
15
+ .ax-dialog-icon {
16
+ min-width: 3rem;
17
+ @apply ax-w-12 ax-h-12 ax-flex ax-justify-center ax-items-center ax-rounded-full ax-cursor-move;
18
+ }
19
+ }
20
+ .ax-dialog-content-side {
21
+ @apply ax-col-span-9;
22
+ .ax-dialog-title {
23
+ @apply ax-text-lg ax-font-bold ax-text-gray-700;
24
+ }
25
+ .ax-dialog-content {
26
+ @apply ax-text-sm ax-my-1.5 ax-text-gray-500;
27
+ }
28
+ }
29
+ .ax-dialog-dismiss-icon {
30
+ @apply ax-col-span-1;
31
+ @apply ax-cursor-pointer ax-text-gray-400 ax--mt-2.5;
32
+ }
33
+ .ax-dialog-footer {
34
+ @apply ax-col-span-12 ax-flex ax-justify-end;
35
+ }
36
+ &.ax-success {
37
+ .ax-dialog-icon {
38
+ @apply ax-text-success ax-bg-success-100;
39
+ }
40
+ }
41
+ &.ax-danger {
42
+ .ax-dialog-icon {
43
+ @apply ax-text-danger ax-bg-danger-100;
44
+ }
45
+ }
46
+ &.ax-warning {
47
+ .ax-dialog-icon {
48
+ @apply ax-text-warning ax-bg-warning-100;
49
+ }
50
+ }
51
+ &.ax-info {
52
+ .ax-dialog-icon {
53
+ @apply ax-text-info ax-bg-info-100;
54
+ }
55
+ }
56
+ &.ax-primary {
57
+ .ax-dialog-icon {
58
+ @apply ax-text-primary ax-bg-primary-100;
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,79 @@
1
+ @layer components {
2
+ .ax-drawer-container {
3
+ @apply ax-flex
4
+ ax-relative
5
+ ax-w-full
6
+ ax-h-full
7
+ ax-overflow-hidden;
8
+
9
+ .ax-drawer-backdrop {
10
+ @apply ax-absolute ax-w-full ax-h-full;
11
+ z-index: 9998;
12
+ top: 0;
13
+ right: 0;
14
+ top: 0;
15
+ bottom: 0;
16
+ background-color: rgba($color: #000000, $alpha: 0.3);
17
+ }
18
+
19
+ .ax-drawer {
20
+ @apply ax-h-full;
21
+
22
+ &.ax-animated {
23
+ transition: all 500ms;
24
+ }
25
+
26
+ &.ax-drawer-overlay {
27
+ @apply ax-absolute;
28
+ z-index: 9999;
29
+ }
30
+
31
+ &.ax-drawer-start {
32
+ &.ax-hide {
33
+ position: absolute;
34
+ left: -9999px;
35
+ }
36
+
37
+ &.ax-collapsed {
38
+ margin-inline-start: calc(-1 * var(--attr-width));
39
+ }
40
+
41
+ &.ax-expanded {
42
+ margin-inline-start: 0;
43
+ }
44
+ }
45
+
46
+ &.ax-drawer-end {
47
+ &.ax-hide {
48
+ position: absolute;
49
+ right: -9999px;
50
+ }
51
+
52
+ &.ax-drawer-overlay {
53
+ &.ax-collapsed {
54
+ right: calc(-1 * var(--attr-width));
55
+ }
56
+
57
+ &.ax-expanded {
58
+ right: calc(-1 * var(--attr-diff));
59
+ }
60
+ }
61
+
62
+ &.ax-drawer-push {
63
+ &.ax-collapsed {
64
+ margin-inline-end: calc(-1 * var(--attr-width));
65
+ }
66
+
67
+ &.ax-expanded {
68
+ margin-inline-end: 0;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ .ax-drawer-content {
75
+ @apply ax-flex-1;
76
+ width: var(--attr-content-width);
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,178 @@
1
+ @layer components {
2
+ .ax-dropdown {
3
+ display: contents;
4
+
5
+ .ax-dropdown-content {
6
+ @apply ax-text-sm ax-flex-1 ax-overflow-y-hidden ax-overscroll-x-auto;
7
+ }
8
+ }
9
+
10
+ .ax-overlay-pane {
11
+ @apply ax-bg-white;
12
+ &.ax-dropdown-list {
13
+ @apply ax-border ax-border-solid ax-flex ax-flex-col ax-py-1 ax-rounded ax-shadow-sm;
14
+
15
+ ax-button-item {
16
+ --ax-base-ratio : 4;
17
+ height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
18
+ line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2) !important;
19
+ @apply ax-relative ax-inline-flex ax-items-center ax-justify-start ax-px-4 ax-text-sm ax-text-gray-600 ax-cursor-pointer;
20
+
21
+ &.ax-divide {
22
+ @apply ax-border-t ax-border ax-border-solid;
23
+ }
24
+
25
+ &.ax-state-disabled
26
+ {
27
+ @apply ax-cursor-not-allowed ax-opacity-60;
28
+ }
29
+
30
+ ax-prefix {
31
+ @apply ax-flex ax-flex-row ax-pe-2;
32
+ }
33
+
34
+ ax-suffix {
35
+ @apply ax-flex ax-flex-row ax-ps-2;
36
+ }
37
+
38
+ &.ax-primary {
39
+ @apply ax-bg-transparent ax-text-primary-500 ax-border-transparent;
40
+
41
+ &:hover,
42
+ &:focus {
43
+ @apply ax-bg-primary-50 ax-text-primary-600;
44
+ }
45
+
46
+ &:active {
47
+ @apply ax-bg-primary-100 ax-text-primary-700;
48
+ }
49
+
50
+ &.ax-state-selected {
51
+ @apply ax-bg-primary-200;
52
+ }
53
+ }
54
+
55
+ &.ax-secondary {
56
+ @apply ax-bg-transparent ax-text-secondary-500 ax-border-transparent;
57
+
58
+ &:hover,
59
+ &:focus {
60
+ @apply ax-bg-secondary-50 ax-text-secondary-600;
61
+ }
62
+
63
+ &:active {
64
+ @apply ax-bg-secondary-100 ax-text-secondary-700;
65
+ }
66
+
67
+ &.ax-state-selected {
68
+ @apply ax-bg-secondary-200;
69
+ }
70
+ }
71
+
72
+ &.ax-warning {
73
+ @apply ax-bg-transparent ax-text-warning-500 ax-border-transparent;
74
+
75
+ &:hover,
76
+ &:focus {
77
+ @apply ax-bg-warning-50 ax-text-warning-600;
78
+ }
79
+
80
+ &:active {
81
+ @apply ax-bg-warning-100 ax-text-warning-700;
82
+ }
83
+
84
+ &.ax-state-selected {
85
+ @apply ax-bg-warning-200;
86
+ }
87
+ }
88
+
89
+ &.ax-danger {
90
+ @apply ax-bg-transparent ax-text-danger-500 ax-border-transparent;
91
+
92
+ &:hover,
93
+ &:focus {
94
+ @apply ax-bg-danger-50 ax-text-danger-600;
95
+ }
96
+
97
+ &:active {
98
+ @apply ax-bg-danger-100 ax-text-danger-700;
99
+ }
100
+
101
+ &.ax-state-selected {
102
+ @apply ax-bg-danger-200;
103
+ }
104
+ }
105
+
106
+ &.ax-success {
107
+ @apply ax-bg-transparent ax-text-success-500 ax-border-transparent;
108
+
109
+ &:hover,
110
+ &:focus {
111
+ @apply ax-bg-success-50 ax-text-success-600;
112
+ }
113
+
114
+ &:active {
115
+ @apply ax-bg-success-100 ax-text-success-700;
116
+ }
117
+
118
+ &.ax-state-selected {
119
+ @apply ax-bg-success-200;
120
+ }
121
+ }
122
+
123
+ &.ax-info {
124
+ @apply ax-bg-transparent ax-text-info-500 ax-border-transparent;
125
+
126
+ &:hover,
127
+ &:focus {
128
+ @apply ax-bg-info-50 ax-text-info-600;
129
+ }
130
+
131
+ &:active {
132
+ @apply ax-bg-info-100 ax-text-info-700;
133
+ }
134
+
135
+ &.ax-state-selected {
136
+ @apply ax-bg-info-200;
137
+ }
138
+ }
139
+
140
+ &.ax-dark {
141
+ @apply ax-bg-transparent ax-text-dark-500 ax-border-transparent;
142
+
143
+ &:hover,
144
+ &:focus {
145
+ @apply ax-bg-dark-50 ax-text-dark-600;
146
+ }
147
+
148
+ &:active {
149
+ @apply ax-bg-dark-100 ax-text-dark-700;
150
+ }
151
+
152
+ &.ax-state-selected {
153
+ @apply ax-bg-dark-200;
154
+ }
155
+ }
156
+
157
+ &.ax-light {
158
+ @apply ax-bg-transparent ax-text-light-fore ax-border-transparent;
159
+
160
+ &:hover,
161
+ &:focus {
162
+ @apply ax-bg-light-500 ax-text-light-800;
163
+ }
164
+
165
+ &:active {
166
+ @apply ax-bg-light-100 ax-text-light-700;
167
+ }
168
+
169
+ &.ax-state-selected {
170
+ @apply ax-bg-light-600;
171
+ }
172
+ }
173
+ }
174
+
175
+
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,70 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-editor-container {
4
+ height: calc(var(--ax-base-size) * var(--ax-base-ratio));
5
+ @apply ax-flex ax-rounded ax-bg-white ax-overflow-hidden ax-shadow-sm ax-border ax-border-solid ax-border-default;
6
+ &:focus-within {
7
+ @apply ax-ring-2 ax-ring-primary ax-ring-opacity-100 ax-border-transparent;
8
+ }
9
+ &.ax-button-icon {
10
+ @apply ax-px-2;
11
+ }
12
+ [class*=" ax-ic-"],
13
+ [class^=ax-ic-] {
14
+ font-size: 1.2rem !important;
15
+ line-height: 1 !important;
16
+ }
17
+ .ax-input {
18
+ line-height: 4 !important;
19
+ min-width: 1%;
20
+ @apply ax-text-sm ax-flex-1 ax-bg-transparent ax-border-none ax-px-2;
21
+ @include respond(mobile) {
22
+ @apply ax-text-base;
23
+ }
24
+ &:focus {
25
+ box-shadow: none;
26
+ }
27
+ }
28
+ ax-button {
29
+ button {
30
+ @apply ax-rounded-none;
31
+ &:focus {
32
+ @apply ax-ring-0;
33
+ }
34
+ &.ax-button-icon {
35
+ min-width: calc(var(--ax-base-size) * var(--ax-base-ratio));
36
+ .ax-ic {
37
+ @apply ax-text-base;
38
+ }
39
+ }
40
+ }
41
+ }
42
+ .ax-suffix,
43
+ .ax-prefix {
44
+ * {
45
+ @apply ax-h-full ax-flex ax-justify-center ax-items-center ax-rounded-none;
46
+ }
47
+ }
48
+ &.ax-state-error {
49
+ @apply ax-border-danger;
50
+ .ax-input {
51
+ @apply ax-placeholder-danger;
52
+ }
53
+ &:focus-within {
54
+ @apply ax-ring-0 ax-ring-transparent;
55
+ }
56
+ }
57
+ &.ax-sm {
58
+ height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 10px) !important;
59
+ .ax-input {
60
+ @apply ax-text-xs;
61
+ }
62
+ }
63
+ &.ax-lg {
64
+ height: calc((var(--ax-base-size) * var(--ax-base-ratio)) + 10px) !important;
65
+ .ax-input {
66
+ @apply ax-text-lg;
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,8 @@
1
+ @layer components {
2
+ .ax-form-field {
3
+ @apply ax-mb-2 ax-relative;
4
+ .ax-error-msg {
5
+ @apply ax-absolute ax--bottom-5 ax-text-danger ax-text-xs;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,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
+
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
+ }
@@ -0,0 +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
+ }
5
+ }