@citizenplane/pimp 9.1.12 → 9.2.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/pimp.es.js +1270 -1256
- package/dist/pimp.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CpInput.vue +19 -19
- package/src/components/CpMultiselect.vue +60 -15
- package/src/components/CpSelect.vue +12 -13
- package/src/components/CpSelectMenu.vue +8 -7
|
@@ -131,31 +131,30 @@ onMounted(() => {
|
|
|
131
131
|
&__inner {
|
|
132
132
|
@extend %u-text-ellipsis;
|
|
133
133
|
box-shadow: inset 0 fn.px-to-em(1) fn.px-to-em(2) rgba(0, 0, 0, 0.12);
|
|
134
|
-
outline: none;
|
|
135
134
|
appearance: none;
|
|
136
135
|
-webkit-appearance: none;
|
|
137
136
|
-moz-appearance: none;
|
|
138
|
-
border:
|
|
137
|
+
border: none;
|
|
138
|
+
outline: fn.px-to-rem(1) solid colors.$neutral-dark-4;
|
|
139
139
|
border-radius: fn.px-to-em(10);
|
|
140
140
|
background-color: colors.$neutral-light;
|
|
141
141
|
width: 100%;
|
|
142
|
-
height: sizing.$component-size-default;
|
|
143
142
|
color: colors.$neutral-dark;
|
|
144
143
|
cursor: pointer;
|
|
145
|
-
padding: fn.px-to-
|
|
146
|
-
fn.px-to-
|
|
147
|
-
|
|
144
|
+
padding: fn.px-to-rem(8) calc(#{$cp-select-icon-size} + #{fn.px-to-rem(8)} + #{fn.px-to-rem(8)}) fn.px-to-rem(8)
|
|
145
|
+
fn.px-to-rem(8);
|
|
146
|
+
line-height: fn.px-to-rem(24);
|
|
147
|
+
font-size: fn.px-to-em(14);
|
|
148
148
|
|
|
149
149
|
&:hover,
|
|
150
150
|
&:focus {
|
|
151
|
-
|
|
151
|
+
outline: fn.px-to-rem(1) solid colors.$primary-color;
|
|
152
152
|
background-color: colors.$neutral-light;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
&:focus {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
colors.$primary-color 0 0 0 fn.px-to-rem(0.5);
|
|
156
|
+
outline: fn.px-to-rem(2) solid colors.$primary-color;
|
|
157
|
+
box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$primary-color, $lightness: 80%);
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
|
|
@@ -174,7 +173,7 @@ onMounted(() => {
|
|
|
174
173
|
|
|
175
174
|
&--isDisabled {
|
|
176
175
|
.cpSelect__inner {
|
|
177
|
-
|
|
176
|
+
outline: fn.px-to-rem(1) solid colors.$neutral-dark-4 !important;
|
|
178
177
|
background: colors.$neutral-light-1;
|
|
179
178
|
}
|
|
180
179
|
|
|
@@ -193,11 +192,11 @@ onMounted(() => {
|
|
|
193
192
|
.cpSelect__inner,
|
|
194
193
|
.cpSelect__inner:hover,
|
|
195
194
|
.cpSelect__inner:focus {
|
|
196
|
-
|
|
195
|
+
outline-color: colors.$error-color;
|
|
197
196
|
}
|
|
198
197
|
|
|
199
198
|
.cpSelect__inner:focus {
|
|
200
|
-
box-shadow: 0 0 0 fn.px-to-em(
|
|
199
|
+
box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$error-color, $lightness: 60%);
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
|
|
@@ -151,32 +151,33 @@ const isSelectedValue = (value: string): boolean => {
|
|
|
151
151
|
<style lang="scss">
|
|
152
152
|
.cpSelectMenu {
|
|
153
153
|
position: relative;
|
|
154
|
-
font-size: fn.px-to-em(
|
|
154
|
+
font-size: fn.px-to-em(14);
|
|
155
155
|
|
|
156
156
|
&__button {
|
|
157
157
|
box-shadow: inset 0 fn.px-to-em(1) fn.px-to-em(2) rgba(0, 0, 0, 0.12);
|
|
158
|
-
border:
|
|
158
|
+
border: none;
|
|
159
|
+
outline: fn.px-to-rem(1) solid colors.$neutral-dark-4;
|
|
159
160
|
border-radius: fn.px-to-em(10);
|
|
160
161
|
background: colors.$neutral-light;
|
|
161
|
-
padding: fn.px-to-
|
|
162
|
+
padding: fn.px-to-rem(8);
|
|
162
163
|
width: 100%;
|
|
163
|
-
height: sizing.$component-size-default;
|
|
164
164
|
display: flex;
|
|
165
165
|
align-items: center;
|
|
166
166
|
justify-content: space-between;
|
|
167
167
|
font-size: inherit;
|
|
168
|
+
line-height: fn.px-to-rem(24);
|
|
168
169
|
font-weight: normal;
|
|
169
170
|
text-transform: capitalize;
|
|
170
171
|
|
|
171
172
|
&:hover,
|
|
172
173
|
&:active,
|
|
173
174
|
&:focus {
|
|
174
|
-
|
|
175
|
+
outline: fn.px-to-rem(1) solid colors.$secondary-color;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
&:focus {
|
|
178
|
-
outline:
|
|
179
|
-
box-shadow: 0 0 0 fn.px-to-em(
|
|
179
|
+
outline: fn.px-to-rem(2) solid colors.$secondary-color;
|
|
180
|
+
box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$secondary-color, $lightness: 80%);
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
183
|
|