quasar-ui-sellmate-ui-kit 3.12.7 → 3.13.0
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/dist/index.common.js +2 -2
- package/dist/index.css +493 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.min.css +2 -2
- package/dist/index.rtl.css +493 -1
- package/dist/index.rtl.min.css +2 -2
- package/dist/index.umd.js +42 -31
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/components/SButton.vue +225 -206
- package/src/css/default.scss +397 -393
package/package.json
CHANGED
|
@@ -1,206 +1,225 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-btn
|
|
3
|
-
class="s-button"
|
|
4
|
-
no-caps
|
|
5
|
-
no-wrap
|
|
6
|
-
unelevated
|
|
7
|
-
:color="color"
|
|
8
|
-
:ripple="false"
|
|
9
|
-
:class="{
|
|
10
|
-
's-button-md': size === 'md',
|
|
11
|
-
's-button-sm': size === 'sm',
|
|
12
|
-
's-button-xs': size === 'xs',
|
|
13
|
-
'icon-with': $attrs.icon && $attrs.label,
|
|
14
|
-
'icon-only': $attrs.icon && !$attrs.label,
|
|
15
|
-
'no-hover': noHover,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
height:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
> .q-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
min-width:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
min-width:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
min-width:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<q-btn
|
|
3
|
+
class="s-button"
|
|
4
|
+
no-caps
|
|
5
|
+
no-wrap
|
|
6
|
+
unelevated
|
|
7
|
+
:color="color"
|
|
8
|
+
:ripple="false"
|
|
9
|
+
:class="{
|
|
10
|
+
's-button-md': size === 'md',
|
|
11
|
+
's-button-sm': size === 'sm',
|
|
12
|
+
's-button-xs': size === 'xs',
|
|
13
|
+
'icon-with': $attrs.icon && $attrs.label,
|
|
14
|
+
'icon-only': $attrs.icon && !$attrs.label,
|
|
15
|
+
'no-hover': noHover,
|
|
16
|
+
[`text-only text-important-${color} no-hover q-pa-none`]: text,
|
|
17
|
+
'underline': underline
|
|
18
|
+
}"
|
|
19
|
+
:style="currentColor"
|
|
20
|
+
>
|
|
21
|
+
<template v-for="(_, slotName, index) in $slots" :key="index">
|
|
22
|
+
<slot :name="slotName"></slot>
|
|
23
|
+
</template>
|
|
24
|
+
</q-btn>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import { defineComponent } from 'vue';
|
|
29
|
+
import { QBtn } from 'quasar';
|
|
30
|
+
|
|
31
|
+
export default defineComponent({
|
|
32
|
+
name: 'SButton',
|
|
33
|
+
components: { QBtn },
|
|
34
|
+
props: {
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: 'sm',
|
|
38
|
+
},
|
|
39
|
+
color: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'Blue_B_Default',
|
|
42
|
+
},
|
|
43
|
+
noHover: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false,
|
|
46
|
+
},
|
|
47
|
+
text: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false,
|
|
50
|
+
},
|
|
51
|
+
underline: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style lang="scss">
|
|
60
|
+
@import '../css/quasar.variables.scss';
|
|
61
|
+
|
|
62
|
+
// TODO: hover 색 맞추기
|
|
63
|
+
.s-button {
|
|
64
|
+
&.q-btn {
|
|
65
|
+
min-height: 0;
|
|
66
|
+
height: fit-content;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
&.icon-with {
|
|
69
|
+
> .q-btn__content {
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&.icon-only {
|
|
74
|
+
padding: 5px;
|
|
75
|
+
}
|
|
76
|
+
> .q-btn__content {
|
|
77
|
+
height: 100%;
|
|
78
|
+
> span {
|
|
79
|
+
height: 100%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&:hover {
|
|
84
|
+
&.q-focusable:focus,
|
|
85
|
+
&.q-manual-focusable--focused,
|
|
86
|
+
&.q-hoverable:hover {
|
|
87
|
+
> .q-focus-helper {
|
|
88
|
+
opacity: 0.3;
|
|
89
|
+
transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
90
|
+
&:before {
|
|
91
|
+
opacity: 1.4;
|
|
92
|
+
transition: none;
|
|
93
|
+
}
|
|
94
|
+
&:after {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transition: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.q-btn--outline {
|
|
103
|
+
&:hover {
|
|
104
|
+
&.q-focusable:focus,
|
|
105
|
+
&.q-manual-focusable--focused,
|
|
106
|
+
&.q-hoverable:hover {
|
|
107
|
+
> .q-focus-helper {
|
|
108
|
+
&:before {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
&:after {
|
|
112
|
+
opacity: 0.55;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
.s-button-xs {
|
|
120
|
+
&.q-btn {
|
|
121
|
+
height: 24px;
|
|
122
|
+
padding: $button-padding-xs;
|
|
123
|
+
font-weight: $default-font-weight;
|
|
124
|
+
font-size: $default-font;
|
|
125
|
+
line-height: $default-content-height;
|
|
126
|
+
min-width: 60px;
|
|
127
|
+
&.icon-with {
|
|
128
|
+
padding: $button-with-icon-padding-xs;
|
|
129
|
+
.q-icon {
|
|
130
|
+
font-size: $icon-size-sm;
|
|
131
|
+
}
|
|
132
|
+
.on-left {
|
|
133
|
+
margin-right: $between-margin-sm;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
&.icon-only {
|
|
137
|
+
min-width: 24px;
|
|
138
|
+
min-height: 24px;
|
|
139
|
+
padding: 4px !important;
|
|
140
|
+
.q-icon {
|
|
141
|
+
font-size: $default-icon-size;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
> .q-btn__content {
|
|
145
|
+
height: $default-content-height;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.s-button-sm {
|
|
150
|
+
&.q-btn {
|
|
151
|
+
height: 28px;
|
|
152
|
+
padding: $button-padding-sm;
|
|
153
|
+
font-weight: $default-font-weight;
|
|
154
|
+
font-size: $default-font;
|
|
155
|
+
line-height: $default-content-height;
|
|
156
|
+
min-width: 70px;
|
|
157
|
+
&.icon-with {
|
|
158
|
+
padding: $button-with-icon-padding-sm;
|
|
159
|
+
.q-icon {
|
|
160
|
+
font-size: $default-icon-size;
|
|
161
|
+
}
|
|
162
|
+
.on-left {
|
|
163
|
+
margin-right: $between-margin-sm;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
&.icon-only {
|
|
167
|
+
min-width: 28px;
|
|
168
|
+
min-height: 28px;
|
|
169
|
+
padding: 6px !important;
|
|
170
|
+
.q-icon {
|
|
171
|
+
font-size: $default-icon-size;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
> .q-btn__content {
|
|
175
|
+
height: $default-content-height;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.s-button-md {
|
|
180
|
+
padding: $button-padding-md;
|
|
181
|
+
font-weight: $default-font-weight;
|
|
182
|
+
font-size: $font-md;
|
|
183
|
+
line-height: $line-height-md;
|
|
184
|
+
min-width: 100px;
|
|
185
|
+
&.icon-with {
|
|
186
|
+
padding: $button-with-icon-padding-md;
|
|
187
|
+
.q-icon {
|
|
188
|
+
font-size: $icon-size;
|
|
189
|
+
}
|
|
190
|
+
.on-left {
|
|
191
|
+
margin-right: $between-margin-md;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
&.icon-only {
|
|
195
|
+
min-width: 34px;
|
|
196
|
+
min-height: 34px;
|
|
197
|
+
padding: 5px !important ;
|
|
198
|
+
.q-icon {
|
|
199
|
+
font-size: $icon-size;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
> .q-btn__content {
|
|
203
|
+
max-height: $line-height-md;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.s-button.q-btn--outline.disabled,
|
|
208
|
+
.s-button.disabled {
|
|
209
|
+
background: $Grey_Lighten-3 !important;
|
|
210
|
+
opacity: 1 !important;
|
|
211
|
+
color: $Grey_Default !important;
|
|
212
|
+
border: none !important;
|
|
213
|
+
&:before {
|
|
214
|
+
border: 1px solid $Grey_Lighten-2;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
.s-button.text-only {
|
|
218
|
+
background: none !important;
|
|
219
|
+
padding: 0 !important;
|
|
220
|
+
min-width: 0;
|
|
221
|
+
}
|
|
222
|
+
.s-button.underline {
|
|
223
|
+
text-decoration: underline
|
|
224
|
+
}
|
|
225
|
+
</style>
|