@citizenplane/pimp 9.1.12 → 9.3.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/README.md +43 -5
- package/commitlint.config.js +27 -0
- package/dist/pimp.es.js +1955 -1924
- package/dist/pimp.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +17 -2
- 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
- package/src/components/icons/IconBaggageSetPlus.vue +28 -0
- package/src/constants/CpCustomIcons.ts +2 -0
|
@@ -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
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M10.2103 10.086V8.74304C10.2103 7.63847 11.1057 6.74304 12.2103 6.74304H19C20.1046 6.74304 21 7.63847 21 8.74304V12.3914"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M8.67485 21.0001H5.10531C3.96046 21.0001 3.04925 20.0409 3.10794 18.8976L3.31108 14.9403C3.36567 13.877 4.24374 13.0428 5.30845 13.0428H12.4497C13.073 13.0428 13.6324 13.3288 14 13.7792M9.08328 21.0001H12.6528"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M11.5842 12.9094C11.5842 11.2712 10.3731 9.94312 8.87905 9.94312C7.38503 9.94312 6.17389 11.2712 6.17389 12.9094"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M13.0109 4C13.0109 3.44772 13.4586 3 14.0109 3H17.1994C17.7517 3 18.1994 3.44772 18.1994 4V5.74304C18.1994 6.29533 17.7517 6.74304 17.1994 6.74304H14.0109C13.4586 6.74304 13.0109 6.29533 13.0109 5.74304V4Z"
|
|
24
|
+
/>
|
|
25
|
+
<path d="M18.2865 15.5729V21" />
|
|
26
|
+
<path d="M21 18.2865L15.5729 18.2865" />
|
|
27
|
+
</svg>
|
|
28
|
+
</template>
|
|
@@ -8,6 +8,7 @@ import IconArrival from '@/components/icons/IconArrival.vue'
|
|
|
8
8
|
import IconBaggageCabinNone from '@/components/icons/IconBaggageCabinNone.vue'
|
|
9
9
|
import IconBaggageCheckedNone from '@/components/icons/IconBaggageCheckedNone.vue'
|
|
10
10
|
import IconBaggagePersonalNone from '@/components/icons/IconBaggagePersonalNone.vue'
|
|
11
|
+
import IconBaggageSetPlus from '@/components/icons/IconBaggageSetPlus.vue'
|
|
11
12
|
import IconBroadcast from '@/components/icons/IconBroadcast.vue'
|
|
12
13
|
import IconCabinBag from '@/components/icons/IconCabinBag.vue'
|
|
13
14
|
import IconCalendar from '@/components/icons/IconCalendar.vue'
|
|
@@ -87,6 +88,7 @@ export const CustomCpIcons = {
|
|
|
87
88
|
'baggage-cabin-none': IconBaggageCabinNone,
|
|
88
89
|
'baggage-checked-none': IconBaggageCheckedNone,
|
|
89
90
|
'baggage-personal-none': IconBaggagePersonalNone,
|
|
91
|
+
'baggage-set-plus': IconBaggageSetPlus,
|
|
90
92
|
broadcast: IconBroadcast,
|
|
91
93
|
'calendar-2': IconCalendar,
|
|
92
94
|
'calendar-delay': IconCalendarDelay,
|