@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
package/index.scss CHANGED
@@ -1,48 +1,2 @@
1
- @import "./scss/ax-icon/style.scss";
2
-
3
- @import "./scss/bases/accessiblity.scss";
4
- @import "./scss/bases/background.scss";
5
- @import "./scss/bases/border.scss";
6
- @import "./scss/bases/effects.scss";
7
- @import "./scss/bases/flexbox-and-grid.scss";
8
- @import "./scss/bases/interactivity.scss";
9
- @import "./scss/bases/layout.scss";
10
-
11
- @import "./scss/bases/root.scss";
12
-
13
- @import "./scss/bases/sizing.scss";
14
- @import "./scss/bases/skeleton.scss";
15
- @import "./scss/bases/spacing.scss";
16
- @import "./scss/bases/svg.scss";
17
- @import "./scss/bases/table.scss";
18
- @import "./scss/bases/transform.scss";
19
- @import "./scss/bases/transition-and-animation.scss";
20
- @import "./scss/bases/typography.scss";
21
-
22
- @import "./scss/components/alert.scss";
23
- @import "./scss/components/badge.scss";
24
- @import "./scss/components/button.scss";
25
- @import "./scss/components/checkbox.scss";
26
- @import "./scss/components/calendar.scss";
27
- @import "./scss/components/datepicker.scss";
28
- @import "./scss/components/dialog.scss";
29
- @import "./scss/components/drawer.scss";
30
- @import "./scss/components/dropdown.scss";
31
- @import "./scss/components/editor-container.scss";
32
- @import "./scss/components/input.scss";
33
- @import "./scss/components/radio.scss";
34
- @import "./scss/components/switch.scss";
35
- @import "./scss/components/selectbox.scss";
36
- @import "./scss/components/table.scss";
37
- @import "./scss/components/tabs.scss";
38
- @import "./scss/components/label.scss";
39
- @import "./scss/components/selection-list.scss";
40
- @import "./scss/components/side-menu.scss";
41
- @import "./scss/components/list.scss";
42
- @import "./scss/components/popup.scss";
43
- @import "./scss/components/text-box.scss";
44
- @import "./scss/components/toast.scss";
45
- @import "./scss/components/tooltip.scss";
46
- @import "./scss/components/datapager.scss";
47
- @import "./scss/components/loading.scss";
48
- @import "./scss/components/carousel.scss";
1
+ @import "./src/base/index.scss";
2
+ @import "./src/components/index.scss";
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "name": "@acorex/styles",
3
- "version": "4.0.24",
4
- "description": "",
5
- "main": "index.scss",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "Ali Safari",
10
- "license": "ISC"
11
- }
1
+ {
2
+ "name": "@acorex/styles",
3
+ "version": "5.0.4",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
@@ -0,0 +1,16 @@
1
+ @import "../variables/colors";
2
+ @mixin colors() {
3
+ @each $name, $color in $theme-colors {
4
+ @if (type-of($color) == "map") {
5
+ @each $subname, $variant in $color {
6
+ @if ($subname != "") {
7
+ --ax-color-#{$name}-#{$subname}: #{$variant};
8
+ } @else {
9
+ --ax-color-#{$name}: #{$variant};
10
+ }
11
+ }
12
+ } @else {
13
+ --ax-color-#{$name}: #{$color};
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ @import "./colors";
2
+
3
+ :root {
4
+ --ax-base-size: 8px;
5
+ --ax-base-ratio: 5;
6
+ @include colors();
7
+ }
@@ -0,0 +1,148 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ .ax-alert {
4
+ @apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-baseline ax-rounded;
5
+ .ax-alert-icon {
6
+ @apply ax-text-xl ax-align-text-bottom;
7
+ @include respond(mobile) {
8
+ @apply ax-text-2xl;
9
+ }
10
+ }
11
+ .ax-alert-body {
12
+ @apply ax-ml-2 ax-flex-1;
13
+ .ax-alert-title {
14
+ @apply ax-inline-flex ax-text-sm ax-font-bold ax-mb-2.5;
15
+ @include respond(mobile) {
16
+ @apply ax-text-base;
17
+ }
18
+ a {
19
+ @apply ax-text-current ax-font-bold;
20
+ }
21
+ }
22
+ .ax-alert-content {
23
+ @apply ax-block ax-text-sm;
24
+ @include respond(mobile) {
25
+ @apply ax-text-base;
26
+ }
27
+ ul {
28
+ @apply ax-my-2 ax-ms-5 ax-list-disc;
29
+ }
30
+ a {
31
+ @apply ax-text-current ax-font-bold ax-underline;
32
+ &:hover {
33
+ @apply ax-underline;
34
+ }
35
+ }
36
+ }
37
+ .ax-alert-footer {
38
+ .ax-alert-buttons {
39
+ @apply ax-flex ax-mt-2;
40
+ .ax-alert-button {
41
+ @apply ax-font-bold ax-me-4 ax-cursor-pointer ax-rounded;
42
+ }
43
+ }
44
+ }
45
+ }
46
+ .ax-alert-suffix {
47
+ .ax-alert-buttons {
48
+ .ax-alert-button {
49
+ @apply ax-font-bold ax-me-0.5 ax-cursor-pointer ax-rounded;
50
+ i {
51
+ @apply ax-mx-1;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ &.ax-primary {
57
+ @apply ax-bg-primary-50 ax-text-primary;
58
+ .ax-alert-content {
59
+ @apply ax-block ax-text-sm;
60
+ }
61
+ .ax-alert-title {
62
+ @apply ax-text-primary-700;
63
+ }
64
+ .ax-alert-button {
65
+ &:hover {
66
+ @apply ax-text-primary-800;
67
+ }
68
+ }
69
+ }
70
+ &.ax-secondary {
71
+ @apply ax-bg-secondary-50 ax-text-secondary;
72
+ .ax-alert-title {
73
+ @apply ax-text-secondary-700;
74
+ }
75
+ .ax-alert-button {
76
+ &:hover {
77
+ @apply ax-text-secondary-800;
78
+ }
79
+ }
80
+ }
81
+ &.ax-success {
82
+ @apply ax-bg-success-50 ax-text-success;
83
+ .ax-alert-title {
84
+ @apply ax-text-success-700;
85
+ }
86
+ .ax-alert-button {
87
+ &:hover {
88
+ @apply ax-text-success-800;
89
+ }
90
+ }
91
+ }
92
+ &.ax-warning {
93
+ @apply ax-bg-warning-50 ax-text-warning;
94
+ .ax-alert-title {
95
+ @apply ax-text-warning-700;
96
+ }
97
+ .ax-alert-button {
98
+ &:hover {
99
+ @apply ax-text-warning-800;
100
+ }
101
+ }
102
+ }
103
+ &.ax-danger {
104
+ @apply ax-bg-danger-50 ax-text-danger;
105
+ .ax-alert-title {
106
+ @apply ax-text-danger-700;
107
+ }
108
+ .ax-alert-button {
109
+ &:hover {
110
+ @apply ax-text-danger-800;
111
+ }
112
+ }
113
+ }
114
+ &.ax-info {
115
+ @apply ax-bg-info-50 ax-text-info;
116
+ .ax-alert-title {
117
+ @apply ax-text-info-700;
118
+ }
119
+ .ax-alert-button {
120
+ &:hover {
121
+ @apply ax-text-info-800;
122
+ }
123
+ }
124
+ }
125
+ &.ax-light {
126
+ @apply ax-bg-gray-50 ax-text-light-fore;
127
+ .ax-alert-title {
128
+ @apply ax-text-light-fore;
129
+ }
130
+ .ax-alert-button {
131
+ &:hover {
132
+ @apply ax-text-light-800;
133
+ }
134
+ }
135
+ }
136
+ &.ax-dark {
137
+ @apply ax-bg-dark ax-text-dark-fore;
138
+ .ax-alert-title {
139
+ @apply ax-text-dark-fore;
140
+ }
141
+ .ax-alert-button {
142
+ &:hover {
143
+ @apply ax-bg-dark;
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
@@ -0,0 +1,39 @@
1
+ @layer components {
2
+ .ax-badge {
3
+ @apply ax-flex ax-items-center ax-justify-center ax-max-w-max ax-py-1 ax-px-2 ax-rounded ax-cursor-pointer ax-text-sm ax-whitespace-nowrap;
4
+ .ax-ic {
5
+ @apply ax-text-sm ax-ms-1;
6
+ }
7
+ &.ax-badge-rounded-full {
8
+ @apply ax-rounded-full;
9
+ }
10
+ &.ax-primary {
11
+ @apply ax-bg-primary-100 ax-text-primary;
12
+ }
13
+ &.ax-secondary {
14
+ @apply ax-bg-secondary-100 ax-text-secondary;
15
+ }
16
+ &.ax-warning {
17
+ @apply ax-bg-warning-100 ax-text-warning;
18
+ }
19
+ &.ax-danger {
20
+ @apply ax-bg-danger-100 ax-text-danger;
21
+ }
22
+ &.ax-success {
23
+ @apply ax-bg-success-100 ax-text-success;
24
+ }
25
+ &.ax-info {
26
+ @apply ax-bg-info-100 ax-text-info;
27
+ }
28
+ &.ax-light {
29
+ @apply ax-bg-light-100 ax-text-light-fore;
30
+ }
31
+ &.ax-dark {
32
+ @apply ax-bg-dark-100 ax-text-dark;
33
+ }
34
+ &.ax-sm {
35
+ }
36
+ &.ax-lg {
37
+ }
38
+ }
39
+ }