@citizenplane/pimp 8.0.0 → 8.0.1
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 +218 -184
- package/dist/pimp.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package-lock.json +373 -378
- package/package.json +11 -11
- package/src/assets/styles/lib/_normalize.scss +0 -24
- package/src/assets/styles/variables/_colors.scss +1 -1
- package/src/components/buttons/CpButton.vue +1 -1
- package/src/components/core/BaseInputLabel/index.vue +0 -1
- package/src/components/core/playground-sections/SectionDatePickers.vue +2 -2
- package/src/components/core/playground-sections/SectionSimpleInputs.vue +6 -1
- package/src/components/date-pickers/CpCalendar.vue +1 -1
- package/src/components/date-pickers/CpDate.vue +61 -39
- package/src/components/date-pickers/CpDatepicker.vue +1 -1
- package/src/components/feedback-indicators/CpAlert.vue +2 -1
- package/src/components/inputs/CpInput.vue +59 -75
- package/src/components/inputs/CpTextarea.vue +19 -2
- package/src/components/selects/CpSelect.vue +21 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="cpSelect" :class="dynamicClasses">
|
|
3
|
-
<base-input-label v-if="label" :for="selectReferenceId"
|
|
3
|
+
<base-input-label v-if="label" :for="selectReferenceId" class="cpSelect__label">
|
|
4
|
+
{{ selectLabelTitle }}
|
|
5
|
+
</base-input-label>
|
|
4
6
|
<div class="cpSelect__container">
|
|
5
7
|
<select
|
|
6
8
|
:id="selectReferenceId"
|
|
@@ -18,7 +20,12 @@
|
|
|
18
20
|
</select>
|
|
19
21
|
</div>
|
|
20
22
|
<transition-expand>
|
|
21
|
-
<base-input-label
|
|
23
|
+
<base-input-label
|
|
24
|
+
v-if="isInvalid"
|
|
25
|
+
:is-invalid="isInvalid"
|
|
26
|
+
:for="selectReferenceId"
|
|
27
|
+
class="cpSelect__label cpSelect__label--isAfter"
|
|
28
|
+
>
|
|
22
29
|
{{ errorMessage }}
|
|
23
30
|
</base-input-label>
|
|
24
31
|
</transition-expand>
|
|
@@ -163,6 +170,18 @@ export default {
|
|
|
163
170
|
}
|
|
164
171
|
}
|
|
165
172
|
|
|
173
|
+
&__label {
|
|
174
|
+
display: block;
|
|
175
|
+
|
|
176
|
+
&:not(#{&}--isAfter) {
|
|
177
|
+
margin-bottom: pxToEm(6);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&--isAfter {
|
|
181
|
+
margin-top: pxToEm(6);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
166
185
|
&--isDisabled {
|
|
167
186
|
.cpSelect__inner {
|
|
168
187
|
border-color: $neutral-dark-4 !important;
|