quasar-ui-sellmate-ui-kit 3.1.7 → 3.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-sellmate-ui-kit",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
5
5
  "description": "Sellmate UI Kit",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  <q-btn
3
3
  outline
4
4
  split
5
- :color="!color ? 'Grey_Default' : color"
5
+ :color="$attrs.color || 'Grey_Default'"
6
6
  no-caps
7
7
  no-wrap
8
8
  unelevated
@@ -12,10 +12,10 @@
12
12
  menu-self="top start"
13
13
  class="s-dropdown"
14
14
  :class="{
15
- 'use-color': color,
16
15
  's-dropdown-xs': size === 'xs',
17
16
  's-dropdown-sm': size === 'sm',
18
17
  's-dropdown-md': size === 'md',
18
+ 's-dropdown-lg': size === 'lg',
19
19
  }"
20
20
  >
21
21
  <q-menu :class="menuClass" class="s-dropdown-menu" :offset="[0, 4]">
@@ -68,7 +68,6 @@
68
68
  type: String,
69
69
  default: 'sm',
70
70
  },
71
- color: String,
72
71
  menuClass: String,
73
72
  optionLabel: {
74
73
  type: String,
@@ -91,143 +90,162 @@
91
90
  <style lang="scss">
92
91
  @import '../css/quasar.variables.scss';
93
92
 
93
+ @mixin textSize($padding, $lineHeight, $fontSize, $fontWeight, $iconSize, $iconMargin) {
94
+ .block {
95
+ padding: $padding;
96
+ line-height: $lineHeight;
97
+ font: {
98
+ size: $fontSize;
99
+ weight: $fontWeight;
100
+ }
101
+ }
102
+
103
+ .q-icon {
104
+ font-size: $iconSize;
105
+ margin: $iconMargin;
106
+ }
107
+ }
108
+
94
109
  .s-dropdown {
95
110
  min-height: 0;
96
111
  padding: 0 !important;
112
+ line-height: normal;
97
113
 
98
114
  .q-btn__content {
99
115
  min-height: 0;
100
116
  align-items: center;
101
-
102
117
  .block {
103
- color: $Grey_Darken-4;
104
- line-height: $default-content-height;
105
- border-right: 1px solid $Grey_Default !important;
106
- font-size: $default-font;
107
- font-weight: $default-font-weight;
118
+ border-right: 1px solid color-mix(in srgb, white 25%, transparent);
119
+ height: 100%;
108
120
  }
109
-
110
121
  .q-icon {
111
122
  padding: 0;
112
123
  border-right: none;
113
- font-size: $default-font;
114
- width: $icon-size-sm;
115
- height: $icon-size-sm;
124
+ color: white;
116
125
  }
117
126
  }
118
- // hover 추가
119
- &.q-btn {
127
+
128
+ &.q-btn--outline {
129
+ .q-btn__content {
130
+ .block {
131
+ color: currentColor;
132
+ border-right: 1px solid currentColor;
133
+ }
134
+ .q-icon {
135
+ color: currentColor;
136
+ }
137
+ }
138
+
120
139
  &:hover {
121
140
  &.q-focusable:focus,
122
141
  &.q-manual-focusable--focused,
123
142
  &.q-hoverable:hover {
124
143
  > .q-focus-helper {
125
- opacity: 0.3;
126
- transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);
127
144
  &:before {
128
- opacity: 1.4;
129
- transition: none;
145
+ opacity: 0;
130
146
  }
131
147
  &:after {
132
- opacity: 0;
133
- transition: none;
148
+ opacity: 0.55;
134
149
  }
135
150
  }
136
151
  }
137
152
  }
153
+ }
138
154
 
139
- &.q-btn--outline {
140
- &:hover {
141
- &.q-focusable:focus,
142
- &.q-manual-focusable--focused,
143
- &.q-hoverable:hover {
144
- > .q-focus-helper {
145
- &:before {
146
- opacity: 0;
147
- }
148
- &:after {
149
- opacity: 0.55;
150
- }
151
- }
155
+ &:hover {
156
+ &.q-focusable:focus,
157
+ &.q-manual-focusable--focused,
158
+ &.q-hoverable:hover {
159
+ > .q-focus-helper {
160
+ opacity: 0.3;
161
+ transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);
162
+ &:before {
163
+ opacity: 1.4;
164
+ transition: none;
165
+ }
166
+ &:after {
167
+ opacity: 0;
168
+ transition: none;
152
169
  }
153
170
  }
154
171
  }
155
172
  }
156
- }
157
173
 
158
- .use-color {
159
- .q-btn__content {
160
- .block {
161
- color: currentColor;
162
- border-right: 1px solid currentColor !important;
174
+ &.s-dropdown-xs {
175
+ min-width: 67px;
176
+ .q-btn__content {
177
+ @include textSize(
178
+ 2px 6px 2px 8px,
179
+ $default-content-height,
180
+ $default-font,
181
+ $default-font-weight,
182
+ $default-font,
183
+ 5px 5px 5px 4px
184
+ );
163
185
  }
164
186
  }
165
- }
166
-
167
- .s-dropdown-xs {
168
- min-width: 67px;
169
- height: 24px;
170
187
 
171
- .q-btn__content {
172
- span {
173
- padding: 1px 8px 1px 10px;
174
- }
175
-
176
- .q-icon {
177
- margin: 5px 4px 5px 6px;
188
+ &.s-dropdown-sm {
189
+ min-width: 75px;
190
+ .q-btn__content {
191
+ @include textSize(
192
+ 4px 10px 4px 12px,
193
+ $default-content-height,
194
+ $default-font,
195
+ $default-font-weight,
196
+ $default-font,
197
+ 7px 8px
198
+ );
178
199
  }
179
200
  }
180
- }
181
-
182
- .s-dropdown-sm {
183
- min-width: 75px;
184
- height: 28px;
185
201
 
186
- .q-btn__content {
187
- span {
188
- padding: 3px 10px 3px 12px;
189
- }
202
+ &.s-dropdown-md {
203
+ min-width: 107px;
190
204
 
191
- .q-icon {
192
- margin: 8px;
205
+ .q-btn__content {
206
+ @include textSize(
207
+ 6px 16px 6px 20px,
208
+ $default-content-height,
209
+ $font-md,
210
+ $font-weight-md,
211
+ $default-font,
212
+ 11px 12px
213
+ );
193
214
  }
194
215
  }
195
- }
196
216
 
197
- .s-dropdown-md {
198
- min-width: 107px;
199
- height: 34px;
217
+ &.s-dropdown-lg {
218
+ min-width: 107px;
200
219
 
201
- .q-btn__content {
202
- .block {
203
- padding: 2.4px 10px 2.4px 12px; // 가운데 바가 있어 상하 1px 줄임
204
- font-size: $font-md;
205
- font-weight: $font-weight-md;
220
+ .q-btn__content {
221
+ @include textSize(
222
+ 16px 24px 16px 28px,
223
+ 30px,
224
+ 18px,
225
+ $font-weight-md,
226
+ $icon-size-lg,
227
+ 19px 20px
228
+ );
206
229
  }
207
-
208
- .q-icon {
209
- margin: 11px 12px;
210
- }
211
- }
212
- }
213
-
214
- .s-dropdown.disabled {
215
- opacity: 1 !important;
216
- border: none;
217
- padding: 0;
218
- &:before {
219
- border: 1px solid $Grey_Lighten-2;
220
- background: $Grey_Lighten-3 !important;
221
230
  }
222
231
 
223
- .q-btn__content {
224
- > span {
225
- color: $Grey_Default;
232
+ &.disabled {
233
+ opacity: 1 !important;
234
+ border: none;
235
+ padding: 0;
236
+ &:before {
237
+ border: 1px solid $Grey_Lighten-2;
238
+ background: $Grey_Lighten-3 !important;
226
239
  }
227
240
 
228
- .block {
229
- line-height: $default-content-height !important;
230
- border-right: 1px solid $Grey_Lighten-2 !important;
241
+ .q-btn__content {
242
+ > .block {
243
+ color: $Grey_Default;
244
+ }
245
+
246
+ .block {
247
+ border-right: 1px solid $Grey_Lighten-2 !important;
248
+ }
231
249
  }
232
250
  }
233
251
  }