@acorex/styles 6.1.12 → 7.0.1

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 (81) hide show
  1. package/index.scss +3 -1
  2. package/package.json +1 -1
  3. package/src/base/index.scss +44 -30
  4. package/src/components/_avatar.scss +122 -122
  5. package/src/components/_badge.scss +178 -178
  6. package/src/components/_breadcrumbs.scss +30 -29
  7. package/src/components/_button copy.scss +924 -0
  8. package/src/components/_button.scss +0 -924
  9. package/src/components/_calendar.scss +180 -180
  10. package/src/components/_carousel.scss +44 -44
  11. package/src/components/_checkbox.scss +58 -58
  12. package/src/components/_collapse.scss +48 -48
  13. package/src/components/_color-palette.scss +5 -5
  14. package/src/components/_color-picker.scss +23 -23
  15. package/src/components/_context-menu.scss +0 -16
  16. package/src/components/_data-table.scss +1 -1
  17. package/src/components/_datepicker.scss +5 -5
  18. package/src/components/_decoration.scss +0 -39
  19. package/src/components/_dialog.scss +80 -79
  20. package/src/components/_drawer.scss +112 -112
  21. package/src/components/_dropdown.scss +162 -216
  22. package/src/components/_editor-container.scss +0 -155
  23. package/src/components/_fieldset.scss +1 -6
  24. package/src/components/_image.scss +1 -1
  25. package/src/components/_label.scss +1 -1
  26. package/src/components/_list.scss +0 -83
  27. package/src/components/_loading.scss +1 -50
  28. package/src/components/_menu copy.scss +5 -5
  29. package/src/components/_menu.scss +114 -114
  30. package/src/components/_popup.scss +92 -91
  31. package/src/components/_progress.scss +59 -59
  32. package/src/components/_radio.scss +30 -30
  33. package/src/components/_range-slider.scss +147 -125
  34. package/src/components/_result.scss +2 -2
  35. package/src/components/_selectbox.scss +15 -17
  36. package/src/components/_selection-list.scss +2 -2
  37. package/src/components/_skeleton.scss +2 -2
  38. package/src/components/_switch.scss +0 -186
  39. package/src/components/_table.scss +0 -81
  40. package/src/components/_tabs copy.scss +18 -18
  41. package/src/components/_tabs.scss +235 -235
  42. package/src/components/_textarea.scss +27 -31
  43. package/src/components/_toast.scss +1 -1
  44. package/src/components/_treeview.scss +0 -54
  45. package/src/components/_uploader.scss +0 -18
  46. package/src/components/index.scss +1 -47
  47. package/src/icons/demo.html +892 -738
  48. package/src/icons/fonts/acorex-icons.eot +0 -0
  49. package/src/icons/fonts/acorex-icons.svg +71 -0
  50. package/src/icons/fonts/acorex-icons.ttf +0 -0
  51. package/src/icons/fonts/acorex-icons.woff +0 -0
  52. package/src/icons/selection.json +1 -1
  53. package/src/icons/style.css +210 -177
  54. package/src/icons/style.scss +335 -280
  55. package/src/icons/variables.scss +65 -54
  56. package/src/mixins/_media.scss +27 -0
  57. package/src/mixins/index.scss +1 -0
  58. package/src/shared/_check-box.scss +45 -0
  59. package/src/shared/_decoration.scss +56 -0
  60. package/src/shared/_drop-down.scss +163 -0
  61. package/src/shared/_editor-container.scss +130 -0
  62. package/src/shared/_general-button.scss +42 -0
  63. package/src/shared/_icon-control.scss +0 -0
  64. package/src/shared/_inputs.scss +12 -0
  65. package/src/shared/_list.scss +134 -0
  66. package/src/shared/_radio.scss +37 -0
  67. package/src/shared/_skeleton.scss +26 -0
  68. package/src/shared/_table.scss +116 -0
  69. package/src/shared/_utils.scss +46 -0
  70. package/src/shared/index.scss +12 -0
  71. package/src/utility/_mixins.scss +3 -3
  72. package/src/utility/index.scss +16 -22
  73. package/src/variables/_colors.scss +76 -107
  74. package/src/variables/_degrees.scss +1 -0
  75. package/src/variables/index.scss +2 -0
  76. package/{index.js → tailwind.config.js} +14 -63
  77. package/src/components/_alert.scss +0 -276
  78. package/src/icons/fonts/acorex-icon.eot +0 -0
  79. package/src/icons/fonts/acorex-icon.svg +0 -60
  80. package/src/icons/fonts/acorex-icon.ttf +0 -0
  81. package/src/icons/fonts/acorex-icon.woff +0 -0
@@ -1,155 +0,0 @@
1
- @layer components {
2
- .ax-editor-container {
3
- height: calc(var(--ax-base-size) * var(--ax-base-ratio));
4
- line-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
5
- @apply ax-flex ax-rounded-default ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
6
- @include control-states("editor");
7
-
8
- @screen md {
9
- @apply ax-text-sm;
10
- }
11
-
12
- &:focus-within {
13
- @apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
14
- }
15
-
16
- &.ax-button-icon {
17
- @apply ax-px-2;
18
- }
19
-
20
- .ax-placeholder {
21
- @apply ax-flex ax-mx-2 ax-text-sm;
22
- --tw-placeholder-opacity: 1;
23
- color: rgb(var(--ax-color-placeholder) / var(--tw-placeholder-opacity));
24
- }
25
-
26
- &:first-child {
27
- }
28
-
29
- [class*=" ax-ic-"],
30
- [class^="ax-ic-"] {
31
- font-size: 1.2rem !important;
32
- line-height: 1 !important;
33
- }
34
- .ax-input,
35
- .ax-textarea {
36
- &::-webkit-input-placeholder {
37
- @apply ax-text-sm;
38
- }
39
-
40
- &:-ms-input-placeholder {
41
- @apply ax-text-sm;
42
- }
43
-
44
- &::placeholder {
45
- @apply ax-text-sm;
46
- }
47
- }
48
- .ax-input {
49
- width: 1%;
50
- text-align: inherit;
51
- font: inherit;
52
- @apply ax-flex-1 ax-bg-transparent ax-border-none ax-ps-4 ax-pe-3 ax-rounded;
53
-
54
- &:focus {
55
- box-shadow: none;
56
- }
57
- }
58
- .ax-textarea {
59
- width: 1%;
60
- text-align: inherit;
61
- font: inherit;
62
- @apply ax-w-full ax-flex-1 ax-bg-transparent ax-border-none ax-p-2.5 ax-rounded;
63
-
64
- &:focus {
65
- box-shadow: none;
66
- }
67
- }
68
- & > .ax-prefix {
69
- *,
70
- .ax-button,
71
- .ax-title {
72
- @apply ax-rounded-s;
73
- }
74
- }
75
-
76
- & > .ax-suffix {
77
- *,
78
- .ax-button,
79
- .ax-title {
80
- @apply ax-rounded-e;
81
- }
82
- }
83
-
84
- & > .ax-prefix,
85
- & > .ax-suffix {
86
- * {
87
- @apply ax-h-full ax-flex ax-justify-center ax-items-center ax-rounded-none;
88
- }
89
-
90
- .ax-icon {
91
- @apply ax-px-2;
92
- }
93
-
94
- .ax-title {
95
- @apply ax-bg-light-100 ax-text-light-fore ax-px-4;
96
- }
97
- }
98
-
99
- .ax-button {
100
- height: 100% !important;
101
- @apply ax-rounded-none;
102
-
103
- &:focus {
104
- @apply ax-ring-0;
105
- }
106
-
107
- &.ax-button-icon {
108
- min-width: calc(var(--ax-base-size) * var(--ax-base-ratio));
109
-
110
- .ax-ic {
111
- @apply ax-text-base;
112
- }
113
- }
114
- &.ax-light-blank {
115
- &:hover {
116
- @apply ax-bg-transparent #{!important};
117
- }
118
- }
119
- }
120
-
121
- &.ax-state-disabled {
122
- @include control-states("editor-disabled");
123
- }
124
-
125
- &.ax-state-error {
126
- @apply ax-border-danger-500;
127
-
128
- .ax-input {
129
- @apply ax-placeholder-danger-500;
130
- }
131
-
132
- &:focus-within {
133
- @apply ax-ring-0 ax-ring-transparent;
134
- }
135
- }
136
-
137
- &.ax-state-success {
138
- @apply ax-border-success-600;
139
-
140
- .ax-input {
141
- @apply ax-placeholder-success-600;
142
- }
143
-
144
- &:focus-within {
145
- @apply ax-ring-0 ax-ring-transparent;
146
- }
147
- }
148
-
149
- .ax-button {
150
- &.ax-state-disabled {
151
- @apply ax-bg-light-100 ax-text-light-fore ax-opacity-100 #{!important};
152
- }
153
- }
154
- }
155
- }
@@ -1,8 +1,3 @@
1
1
  @layer components {
2
- .ax-fieldset {
3
- @apply ax-border ax-border-solid ax-border-light-300 ax-p-3 ax-rounded dark:ax-border-white/10;
4
- legend {
5
- @apply ax-text-sm ax-px-1;
6
- }
7
- }
2
+
8
3
  }
@@ -18,7 +18,7 @@ ax-image {
18
18
  @apply ax-hidden;
19
19
  }
20
20
  ax-loading {
21
- @apply ax-w-full ax-h-full ax-bg-light-200 dark:ax-bg-white/10 ax-flex ax-items-center ax-justify-center;
21
+ @apply ax-w-full ax-h-full ax-bg-neutral-200 dark:ax-bg-white/10 ax-flex ax-items-center ax-justify-center;
22
22
  }
23
23
 
24
24
  }
@@ -1,7 +1,7 @@
1
1
  @layer components {
2
2
  .ax-label {
3
3
  label {
4
- @apply ax-block ax-font-medium ax-mb-2 ax-text-sm ax-text-light-700 dark:ax-text-light-100;
4
+ @apply ax-block ax-font-medium ax-mb-2 ax-text-sm ax-text-neutral-700 dark:ax-text-neutral-100;
5
5
  }
6
6
  }
7
7
  }
@@ -1,83 +0,0 @@
1
- @layer components {
2
- .ax-list {
3
- @apply ax-h-full ax-flex ax-flex-col ax-overflow-hidden md:ax-max-h-80;
4
- .ax-header,
5
- .ax-footer {
6
- @apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
7
- @include control-states("editor");
8
- }
9
- .ax-footer {
10
- @apply ax-border-t;
11
- }
12
- .ax-content {
13
- @apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
14
-
15
- &.ax-list-items-container {
16
- @apply ax-py-1 ax-rounded ax-overflow-y-auto ax-h-full dark:ax-border-transparent;
17
-
18
- &.ax-vertical {
19
- @apply ax-grid ax-grid-cols-1;
20
-
21
- &.ax-divide {
22
- @apply ax-divide-y ax-divide-x-0 ax-divide-light-600 ax-divide-opacity-30 ax-divide-solid;
23
- }
24
- }
25
-
26
- &.ax-default {
27
- @apply ax-cursor-pointer;
28
-
29
- .ax-list-item-group {
30
- & > span {
31
- @apply ax-font-bold ax-flex ax-items-center ax-px-3 ax-text-sm ax-text-light-900;
32
- height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
33
- }
34
-
35
- & > ul {
36
- @apply ax-px-3;
37
- }
38
- }
39
-
40
- .ax-list-item {
41
- height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
42
- @apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700 dark:ax-text-light-100;
43
-
44
- &:focus,
45
- &:focus-visible {
46
- @apply ax-outline-none;
47
- }
48
-
49
- &.ax-state-selected {
50
- @apply ax-bg-light-200 ax-text-light-900 ax-font-medium;
51
- }
52
-
53
- &:not(.ax-check-box) {
54
- &.ax-state-selected {
55
- @apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
56
- }
57
- }
58
-
59
- &.ax-state-disabled {
60
- @apply ax-cursor-not-allowed ax-opacity-70;
61
- }
62
-
63
- &:focus,
64
- &:hover,
65
- &.ax-state-focus {
66
- &:not(.ax-state-selected) {
67
- @apply ax-outline-none ax-bg-light-100 dark:ax-bg-white/[0.16] dark:ax-text-white;
68
- }
69
- }
70
- }
71
- }
72
-
73
- .ax-list-loading-container {
74
- @apply ax-flex ax-justify-center ax-p-2;
75
- }
76
- }
77
- }
78
-
79
- .ax-footer {
80
- }
81
- }
82
- }
83
-
@@ -1,52 +1,3 @@
1
1
  @layer components {
2
- .ax-loading-host {
3
- .ax-loading {
4
- position: relative;
5
- background: rgba(var(--ax-color-white) 2);
6
- width: 4rem;
7
- height: 4rem;
8
-
9
- &::before,
10
- &::after {
11
- content: "";
12
- position: absolute;
13
- top: 50%;
14
- left: 50%;
15
- width: 100%;
16
- height: 100%;
17
- border-radius: 50%;
18
- transform: translate(-50%, -50%) scale(0);
19
- }
20
-
21
- &::before {
22
- @apply ax-bg-primary-500;
23
- animation: pulse2 2s ease-in-out infinite;
24
- }
25
-
26
- &::after {
27
- @apply ax-bg-primary-500;
28
- animation: pulse2 2s 1s ease-in-out infinite;
29
- }
30
- @keyframes pulse2 {
31
- 0%,
32
- 100% {
33
- transform: translate(-50%, -50%) scale(0);
34
- opacity: 1;
35
- }
36
-
37
- 50% {
38
- transform: translate(-50%, -50%) scale(1);
39
- opacity: 0;
40
- }
41
- }
42
- }
43
- }
44
-
45
- .ax-loading-overlay {
46
- background: rgba(var(--ax-color-white) 2);
47
- }
48
-
49
- .ax-loading-spinner {
50
- @apply ax-flex;
51
- }
2
+
52
3
  }
@@ -37,7 +37,7 @@ ax-menu {
37
37
  > li {
38
38
  padding-inline-end: 0.5rem;
39
39
  &:hover {
40
- @apply ax-text-light-600;
40
+ @apply ax-text-neutral-600;
41
41
  }
42
42
  }
43
43
  }
@@ -47,7 +47,7 @@ ax-menu {
47
47
  &.ax-divider {
48
48
  &::before {
49
49
  content: "";
50
- @apply -ax-bottom-1 ax-start-0 ax-absolute ax-w-full ax-h-[1px] ax-bg-light-200 dark:ax-bg-white/20;
50
+ @apply -ax-bottom-1 ax-start-0 ax-absolute ax-w-full ax-h-[1px] ax-bg-neutral-200 dark:ax-bg-white/20;
51
51
  }
52
52
  }
53
53
  }
@@ -66,7 +66,7 @@ ax-menu {
66
66
  &:not(.ax-state-disabled) {
67
67
  > .ax-menu-item {
68
68
  &:hover {
69
- @apply ax-bg-light-100 dark:ax-bg-white/20 ax-rounded-default;
69
+ @apply ax-bg-neutral-100 dark:ax-bg-white/20 ax-rounded-default;
70
70
  }
71
71
  }
72
72
  }
@@ -79,7 +79,7 @@ ax-menu {
79
79
  }
80
80
 
81
81
  .ax-submenu-ul {
82
- @apply ax-bg-white ax-border ax-border-light-200 dark:ax-border-dark-500 ax-sm ax-rounded-default ax-py-2;
82
+ @apply ax-bg-white ax-border ax-border-neutral-200 dark:ax-border-neutral-500 ax-sm ax-rounded-default ax-py-2;
83
83
  @include control-states("surface");
84
84
  li {
85
85
  @apply ax-py-3 ax-px-4 ax-cursor-pointer ax-flex ax-items-center ax-justify-between;
@@ -88,7 +88,7 @@ ax-menu {
88
88
  }
89
89
  &:not(.ax-state-disabled) {
90
90
  &:hover {
91
- @apply ax-bg-light-200 dark:ax-bg-white/[0.16];
91
+ @apply ax-bg-neutral-200 dark:ax-bg-white/[0.16];
92
92
  }
93
93
  }
94
94
  }
@@ -1,117 +1,117 @@
1
- ax-menu {
2
- ul {
3
- &.ax-rtl {
4
- li {
5
- ax-icon {
6
- &.ax-ic-chevron {
7
- @apply ax-block ax-rotate-0;
8
- }
9
- }
10
- }
11
- }
12
- li {
13
- @apply ax-cursor-pointer ax-text-light-500 dark:ax-text-light-50 ax-rounded-default;
14
- &:not(.ax-state-disabled) {
15
- &:hover {
16
- @apply ax-text-light-800 dark:ax-text-light-200;
17
- }
18
- }
1
+ // ax-menu {
2
+ // ul {
3
+ // &.ax-rtl {
4
+ // li {
5
+ // ax-icon {
6
+ // &.ax-icon-chevron {
7
+ // @apply ax-block ax-rotate-0;
8
+ // }
9
+ // }
10
+ // }
11
+ // }
12
+ // li {
13
+ // @apply ax-cursor-pointer ax-text-neutral-500 dark:ax-text-neutral-50 ax-rounded-default;
14
+ // &:not(.ax-state-disabled) {
15
+ // &:hover {
16
+ // @apply ax-text-neutral-800 dark:ax-text-neutral-200;
17
+ // }
18
+ // }
19
19
 
20
- .ax-menu-item {
21
- @apply ax-flex ax-justify-between ax-items-center ax-w-full ax-gap-1;
22
- }
23
- .ax-menu-item-prefix,
24
- .ax-menu-item-suffix {
25
- @apply ax-flex ax-items-center ax-gap-2 ax-h-6;
26
- ax-icon {
27
- @apply ax-transition-all ax-text-xl;
28
- }
29
- }
30
- .ax-menu-item-prefix {
31
- }
32
- .ax-menu-item-suffix {
33
- ax-icon {
34
- @apply ax-block ax-rotate-180;
35
- &.ax-menu-active-icon {
36
- @apply -ax-rotate-90;
37
- }
38
- }
39
- }
40
- &.ax-state-disabled {
41
- @apply ax-cursor-not-allowed;
42
- .ax-menu-item-prefix,
43
- .ax-menu-item-suffix {
44
- @apply ax-opacity-40;
45
- }
46
- }
47
- }
48
- }
49
- > ul {
50
- &.ax-rtl {
51
- .ax-menu-item-suffix {
52
- ax-icon {
53
- @apply ax-block ax-rotate-180;
54
- &.ax-menu-active-icon {
55
- @apply ax-rotate-90;
56
- }
57
- }
58
- }
59
- }
60
- &.ax-horizontal {
61
- @apply ax-flex ax-items-center ax-gap-4;
62
- li {
63
- &.ax-divider {
64
- @apply ax-w-[1px] ax-h-4;
65
- }
66
- }
67
- > li {
68
- @apply ax-cursor-pointer;
69
- .ax-menu-item {
70
- @apply ax-flex ax-items-start ax-justify-between;
71
- }
72
- }
73
- }
74
- &.ax-vertical {
75
- @apply ax-w-full;
76
- &:not(&.ax-submenu-ul) {
77
- @apply ax-space-y-4;
78
- }
79
- li {
80
- &.ax-divider {
81
- @apply ax-h-[1px] ax-my-2;
82
- }
83
- }
84
- &.ax-submenu-ul {
85
- @apply ax-p-2 ax-bg-white ax-border ax-border-light-200 ax-rounded-default ax-shadow;
86
- @include control-states("surface");
20
+ // .ax-menu-item {
21
+ // @apply ax-flex ax-justify-between ax-items-center ax-w-full ax-gap-1;
22
+ // }
23
+ // .ax-menu-item-prefix,
24
+ // .ax-menu-item-suffix {
25
+ // @apply ax-flex ax-items-center ax-gap-2 ax-h-6;
26
+ // ax-icon {
27
+ // @apply ax-transition-all ax-text-xl;
28
+ // }
29
+ // }
30
+ // .ax-menu-item-prefix {
31
+ // }
32
+ // .ax-menu-item-suffix {
33
+ // ax-icon {
34
+ // @apply ax-block ax-rotate-180;
35
+ // &.ax-menu-active-icon {
36
+ // @apply -ax-rotate-90;
37
+ // }
38
+ // }
39
+ // }
40
+ // &.ax-state-disabled {
41
+ // @apply ax-cursor-not-allowed;
42
+ // .ax-menu-item-prefix,
43
+ // .ax-menu-item-suffix {
44
+ // @apply ax-opacity-40;
45
+ // }
46
+ // }
47
+ // }
48
+ // }
49
+ // > ul {
50
+ // &.ax-rtl {
51
+ // .ax-menu-item-suffix {
52
+ // ax-icon {
53
+ // @apply ax-block ax-rotate-180;
54
+ // &.ax-menu-active-icon {
55
+ // @apply ax-rotate-90;
56
+ // }
57
+ // }
58
+ // }
59
+ // }
60
+ // &.ax-horizontal {
61
+ // @apply ax-flex ax-items-center ax-gap-4;
62
+ // li {
63
+ // &.ax-divider {
64
+ // @apply ax-w-[1px] ax-h-4;
65
+ // }
66
+ // }
67
+ // > li {
68
+ // @apply ax-cursor-pointer;
69
+ // .ax-menu-item {
70
+ // @apply ax-flex ax-items-start ax-justify-between;
71
+ // }
72
+ // }
73
+ // }
74
+ // &.ax-vertical {
75
+ // @apply ax-w-full;
76
+ // &:not(&.ax-submenu-ul) {
77
+ // @apply ax-space-y-4;
78
+ // }
79
+ // li {
80
+ // &.ax-divider {
81
+ // @apply ax-h-[1px] ax-my-2;
82
+ // }
83
+ // }
84
+ // &.ax-submenu-ul {
85
+ // @apply ax-p-2 ax-bg-white ax-border ax-border-neutral-200 ax-rounded-default ax-shadow;
86
+ // @include control-states("surface");
87
87
 
88
- li {
89
- &:not(.ax-state-disabled, .ax-divider) {
90
- @apply ax-py-1 ax-ps-4 ax-pe-2;
91
- &:hover {
92
- @apply ax-bg-light-200 dark:ax-bg-white/10 dark:ax-text-light-50;
93
- }
94
- }
95
- &.ax-divider {
96
- @apply ax-h-[1px] ax-my-2;
97
- }
98
- }
99
- }
100
- }
101
- &.ax-side-menu {
102
- @apply ax-space-y-4;
103
- li {
104
- &.ax-divider {
105
- @apply ax-h-[1px] ax-my-2;
106
- }
107
- ul {
108
- @apply ax-ps-4 ax-space-y-4 ax-mt-4;
109
- }
110
- }
111
- }
112
- }
88
+ // li {
89
+ // &:not(.ax-state-disabled, .ax-divider) {
90
+ // @apply ax-py-1 ax-ps-4 ax-pe-2;
91
+ // &:hover {
92
+ // @apply ax-bg-neutral-200 dark:ax-bg-white/10 dark:ax-text-neutral-50;
93
+ // }
94
+ // }
95
+ // &.ax-divider {
96
+ // @apply ax-h-[1px] ax-my-2;
97
+ // }
98
+ // }
99
+ // }
100
+ // }
101
+ // &.ax-side-menu {
102
+ // @apply ax-space-y-4;
103
+ // li {
104
+ // &.ax-divider {
105
+ // @apply ax-h-[1px] ax-my-2;
106
+ // }
107
+ // ul {
108
+ // @apply ax-ps-4 ax-space-y-4 ax-mt-4;
109
+ // }
110
+ // }
111
+ // }
112
+ // }
113
113
 
114
- .ax-divider {
115
- @apply ax-bg-light-200 ax-p-0 ax-cursor-auto dark:ax-bg-white/20;
116
- }
117
- }
114
+ // .ax-divider {
115
+ // @apply ax-bg-neutral-200 ax-p-0 ax-cursor-auto dark:ax-bg-white/20;
116
+ // }
117
+ // }