@acorex/styles 7.8.10 → 7.8.12

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": "7.8.10",
3
+ "version": "7.8.12",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
@@ -1,48 +1,5 @@
1
1
  @import '../variables/index.scss';
2
2
 
3
- @mixin drop-down-item-apperance() {
4
- @each $color in $color_names {
5
- &.ax-#{$color}-default {
6
- background-color: transparent;
7
- color: rgba(var(--ax-color-#{$color}-500));
8
- border: transparent;
9
-
10
- &:hover,
11
- &:focus {
12
- background-color: rgba(var(--ax-color-on-surface));
13
- color: rgba(var(--ax-color-#{$color}-600));
14
- }
15
-
16
- &:active {
17
- color: rgba(var(--ax-color-#{$color}-400));
18
- }
19
-
20
- &.ax-state-selected {
21
- background-color: rgba(var(--ax-color-#{$color}-500));
22
- color: rgba(var(--ax-color-#{$color}-fore));
23
- }
24
- }
25
- }
26
-
27
- &.ax-default-default {
28
- background-color: transparent;
29
- color: rgba(var(--ax-color-text-default));
30
- border: transparent;
31
-
32
- &:hover,
33
- &:focus,
34
- &:active {
35
- background-color: rgba(var(--ax-color-on-surface));
36
- color: rgba(var(--ax-color-on-surface-fore));
37
- }
38
-
39
- &.ax-state-selected {
40
- background-color: rgba(var(--ax-color-primary-500));
41
- color: rgba(var(--ax-color-primary-fore));
42
- }
43
- }
44
- }
45
-
46
3
  .ax-drop-down {
47
4
  display: contents;
48
5
 
@@ -105,62 +62,4 @@
105
62
  width: 100vw;
106
63
  height: 100vh;
107
64
  }
108
-
109
- &.ax-dropdown-list {
110
- display: flex;
111
- flex-direction: column;
112
- border: 1px solid;
113
- border-color: rgba(var(--ax-color-border-default));
114
- border-radius: var(--ax-rounded-border-default);
115
- box-shadow:
116
- 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
117
- 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
118
- padding: 0.5rem 0;
119
-
120
- ax-button-item {
121
- position: relative;
122
- display: inline-flex;
123
- align-items: center;
124
- justify-content: flex-start;
125
- padding: 0.5rem;
126
- padding-inline-start: 1rem;
127
- padding-inline-end: 2.5rem;
128
- font-size: 0.875rem;
129
- color: rgba(var(--ax-color-text-default));
130
- user-select: none;
131
- cursor: pointer;
132
-
133
- &:hover {
134
- &:not(&.ax-state-disabled) {
135
- background-color: rgba(var(--ax-color-on-surface));
136
- }
137
- }
138
-
139
- &.ax-divide {
140
- border: 1px solid;
141
- border-color: rgba(var(--ax-color-border-default));
142
- }
143
-
144
- &.ax-state-disabled {
145
- opacity: 0.5;
146
- cursor: not-allowed;
147
- }
148
-
149
- ax-prefix,
150
- ax-suffix {
151
- display: flex;
152
- flex-direction: row;
153
- }
154
-
155
- ax-prefix {
156
- padding-inline-end: 0.5rem;
157
- }
158
-
159
- ax-suffix {
160
- padding-inline-start: 0.5rem;
161
- }
162
-
163
- @include drop-down-item-apperance();
164
- }
165
- }
166
65
  }