@citizenplane/pimp 8.9.5 → 8.11.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 +5051 -4622
- package/dist/pimp.umd.js +9 -2
- package/dist/style.css +1 -1
- package/package.json +15 -16
- package/src/App.vue +9 -9
- package/src/assets/styles/base/_base.scss +4 -4
- package/src/assets/styles/helpers/_keyframes.scss +0 -25
- package/src/assets/styles/helpers/_mixins.scss +23 -2
- package/src/assets/styles/main.scss +2 -16
- package/src/assets/styles/variables/_colors.scss +2 -0
- package/src/assets/styles/variables/_sizing.scss +3 -3
- package/src/assets/styles/variables/_spacing.scss +2 -2
- package/src/components/atomic-elements/CpBadge.vue +33 -33
- package/src/components/atomic-elements/CpDialog.vue +19 -19
- package/src/components/atomic-elements/CpTooltip.vue +6 -6
- package/src/components/buttons/CpButton.vue +53 -57
- package/src/components/core/{BaseInputLabel/index.vue → BaseInputLabel.vue} +3 -3
- package/src/components/core/playground-sections/SectionAtomicElements.vue +1 -1
- package/src/components/core/playground-sections/SectionButtons.vue +2 -2
- package/src/components/core/playground-sections/SectionContainer.vue +5 -5
- package/src/components/core/playground-sections/SectionDatePickers.vue +3 -3
- package/src/components/core/playground-sections/SectionDialog.vue +1 -1
- package/src/components/core/playground-sections/SectionFeedbackIndicators.vue +2 -2
- package/src/components/core/playground-sections/SectionInputs.vue +2 -2
- package/src/components/core/playground-sections/SectionListsAndTables.vue +9 -9
- package/src/components/core/playground-sections/SectionSelects.vue +2 -2
- package/src/components/core/playground-sections/SectionSimpleInputs.vue +2 -2
- package/src/components/core/playground-sections/SectionToggles.vue +4 -4
- package/src/components/date-pickers/CpCalendar.vue +14 -14
- package/src/components/date-pickers/{CpDate/index.vue → CpDate.vue} +165 -1
- package/src/components/date-pickers/CpDatepicker.vue +1 -1
- package/src/components/feedback-indicators/CpAlert.vue +22 -22
- package/src/components/feedback-indicators/CpToaster.vue +36 -38
- package/src/components/index.js +7 -7
- package/src/components/inputs/CpInput.vue +55 -55
- package/src/components/inputs/CpTextarea.vue +20 -20
- package/src/components/lists-and-table/CpTable.vue +722 -0
- package/src/components/lists-and-table/{CpTable/CpTableEmptyState/index.vue → CpTableEmptyState.vue} +9 -9
- package/src/components/selects/CpSelect.vue +29 -28
- package/src/components/selects/{CpSelectMenu/index.vue → CpSelectMenu.vue} +40 -41
- package/src/components/toggles/{CpCheckbox/index.vue → CpCheckbox.vue} +133 -1
- package/src/components/toggles/CpRadio.vue +253 -0
- package/src/components/toggles/{CpSwitch/index.vue → CpSwitch.vue} +19 -19
- package/src/components/typography/{CpHeading/index.vue → CpHeading.vue} +26 -26
- package/src/constants/index.js +1 -0
- package/src/constants/src/CpTableConfig.js +14 -0
- package/src/libs/CoreDatepicker.vue +383 -308
- package/src/assets/styl/colors.styl +0 -39
- package/src/components/date-pickers/CpDate/index.scss +0 -165
- package/src/components/lists-and-table/CpTable/index.scss +0 -325
- package/src/components/lists-and-table/CpTable/index.vue +0 -438
- package/src/components/toggles/CpCheckbox/index.scss +0 -136
- package/src/components/toggles/CpRadio/index.scss +0 -160
- package/src/components/toggles/CpRadio/index.vue +0 -97
|
@@ -85,14 +85,14 @@ const onClear = () => {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@mixin cp-badge-color-solid($color) {
|
|
88
|
-
color:
|
|
88
|
+
color: colors.$neutral-light;
|
|
89
89
|
background-color: $color;
|
|
90
90
|
border-color: transparent;
|
|
91
91
|
|
|
92
92
|
.cpBadge__clear:hover,
|
|
93
93
|
.cpBadge__clear:focus-visible {
|
|
94
94
|
color: $color;
|
|
95
|
-
background-color:
|
|
95
|
+
background-color: colors.$neutral-light;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -109,48 +109,48 @@ const onClear = () => {
|
|
|
109
109
|
.cpBadge {
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
align-items: center;
|
|
112
|
-
padding-block:
|
|
113
|
-
font-size: px-to-em(14);
|
|
112
|
+
padding-block: sp.$space-sm;
|
|
113
|
+
font-size: fn.px-to-em(14);
|
|
114
114
|
font-weight: 500;
|
|
115
|
-
border-radius: px-to-rem(1000);
|
|
116
|
-
border: 1px solid
|
|
117
|
-
background-color:
|
|
118
|
-
|
|
119
|
-
@include cp-badge-style(
|
|
120
|
-
@include cp-badge-style(
|
|
121
|
-
@include cp-badge-style(
|
|
122
|
-
@include cp-badge-style(
|
|
123
|
-
@include cp-badge-style(
|
|
124
|
-
@include cp-badge-style(
|
|
125
|
-
@include cp-badge-style(
|
|
126
|
-
@include cp-badge-style(
|
|
127
|
-
@include cp-badge-style(
|
|
115
|
+
border-radius: fn.px-to-rem(1000);
|
|
116
|
+
border: 1px solid colors.$border-color;
|
|
117
|
+
background-color: colors.$neutral-light;
|
|
118
|
+
|
|
119
|
+
@include cp-badge-style(colors.$neutral-dark, 'Neutral');
|
|
120
|
+
@include cp-badge-style(colors.$secondary-color, 'Blue');
|
|
121
|
+
@include cp-badge-style(colors.$green-2, 'Green');
|
|
122
|
+
@include cp-badge-style(colors.$red, 'Red');
|
|
123
|
+
@include cp-badge-style(colors.$orange, 'Orange');
|
|
124
|
+
@include cp-badge-style(colors.$purple, 'Purple');
|
|
125
|
+
@include cp-badge-style(colors.$blue-1, 'Teal');
|
|
126
|
+
@include cp-badge-style(colors.$pink, 'Pink');
|
|
127
|
+
@include cp-badge-style(colors.$yellow, 'Yellow');
|
|
128
128
|
|
|
129
129
|
&--isYellow#{&}--isSolid {
|
|
130
|
-
color: darken(
|
|
130
|
+
color: darken(colors.$yellow, 20);
|
|
131
131
|
|
|
132
132
|
&:before {
|
|
133
|
-
background-color: darken(
|
|
133
|
+
background-color: darken(colors.$yellow, 20);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
&:not(#{&}--isPlain):not(#{&}--hasIcon)::before {
|
|
138
138
|
content: '';
|
|
139
|
-
width: px-to-rem(6);
|
|
140
|
-
height: px-to-rem(6);
|
|
141
|
-
margin-right: px-to-rem(6);
|
|
139
|
+
width: fn.px-to-rem(6);
|
|
140
|
+
height: fn.px-to-rem(6);
|
|
141
|
+
margin-right: fn.px-to-rem(6);
|
|
142
142
|
border-radius: 100%;
|
|
143
143
|
flex-shrink: 0;
|
|
144
144
|
background-color: currentColor;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
&:not(&--isClearable) {
|
|
148
|
-
padding-inline:
|
|
148
|
+
padding-inline: sp.$space;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
&--isClearable {
|
|
152
|
-
padding-left:
|
|
153
|
-
padding-right:
|
|
152
|
+
padding-left: sp.$space;
|
|
153
|
+
padding-right: sp.$space-sm;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
&__label {
|
|
@@ -161,15 +161,15 @@ const onClear = () => {
|
|
|
161
161
|
|
|
162
162
|
&__icon {
|
|
163
163
|
color: currentColor;
|
|
164
|
-
width: px-to-rem(16);
|
|
165
|
-
height: px-to-rem(16);
|
|
164
|
+
width: fn.px-to-rem(16);
|
|
165
|
+
height: fn.px-to-rem(16);
|
|
166
166
|
|
|
167
167
|
&:not(&--isClear) {
|
|
168
|
-
margin-right:
|
|
168
|
+
margin-right: sp.$space-sm;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&--isClear svg {
|
|
172
|
-
stroke-width: px-to-rem(2);
|
|
172
|
+
stroke-width: fn.px-to-rem(2);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
> * {
|
|
@@ -182,15 +182,15 @@ const onClear = () => {
|
|
|
182
182
|
display: flex;
|
|
183
183
|
align-items: center;
|
|
184
184
|
justify-content: center;
|
|
185
|
-
margin-left: px-to-rem(6);
|
|
186
|
-
padding: px-to-rem(1);
|
|
185
|
+
margin-left: fn.px-to-rem(6);
|
|
186
|
+
padding: fn.px-to-rem(1);
|
|
187
187
|
border-radius: 100%;
|
|
188
188
|
color: inherit;
|
|
189
189
|
|
|
190
190
|
&:hover,
|
|
191
191
|
&:focus-visible {
|
|
192
|
-
color:
|
|
193
|
-
background-color:
|
|
192
|
+
color: colors.$neutral-light;
|
|
193
|
+
background-color: colors.$neutral-dark;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
&:focus {
|
|
@@ -90,7 +90,7 @@ $dialog-breakpoint: 550px;
|
|
|
90
90
|
transition-duration: 300ms;
|
|
91
91
|
|
|
92
92
|
@media screen and (min-width: calc(#{$dialog-breakpoint} + 1px)) {
|
|
93
|
-
padding: 10vh
|
|
93
|
+
padding: 10vh sp.$space * 4;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&__dialog {
|
|
@@ -110,7 +110,7 @@ $dialog-breakpoint: 550px;
|
|
|
110
110
|
z-index: -1;
|
|
111
111
|
width: 100%;
|
|
112
112
|
height: 100%;
|
|
113
|
-
background: rgba(
|
|
113
|
+
background: rgba(colors.$neutral-dark, 0.86);
|
|
114
114
|
inset: 0;
|
|
115
115
|
pointer-events: none;
|
|
116
116
|
transition: opacity 250ms ease;
|
|
@@ -129,8 +129,8 @@ $dialog-breakpoint: 550px;
|
|
|
129
129
|
max-height: 100%;
|
|
130
130
|
flex-direction: column;
|
|
131
131
|
justify-content: space-between;
|
|
132
|
-
border-radius: px-to-rem(12);
|
|
133
|
-
background-color:
|
|
132
|
+
border-radius: fn.px-to-rem(12);
|
|
133
|
+
background-color: colors.$neutral-light;
|
|
134
134
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 33%);
|
|
135
135
|
-webkit-overflow-scrolling: touch;
|
|
136
136
|
transition:
|
|
@@ -147,7 +147,7 @@ $dialog-breakpoint: 550px;
|
|
|
147
147
|
&.dialog-enter-from &__container,
|
|
148
148
|
&.dialog-leave-to &__container {
|
|
149
149
|
opacity: 0;
|
|
150
|
-
transform: scale3d(0.85, 0.85, 1) translate3d(0, px-to-rem(30), 0);
|
|
150
|
+
transform: scale3d(0.85, 0.85, 1) translate3d(0, fn.px-to-rem(30), 0);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&__header,
|
|
@@ -165,29 +165,29 @@ $dialog-breakpoint: 550px;
|
|
|
165
165
|
|
|
166
166
|
&__header {
|
|
167
167
|
position: relative;
|
|
168
|
-
border-bottom: 1px solid
|
|
168
|
+
border-bottom: 1px solid colors.$border-color;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&__close {
|
|
172
172
|
position: absolute;
|
|
173
|
-
top:
|
|
174
|
-
right:
|
|
173
|
+
top: sp.$space-xl;
|
|
174
|
+
right: sp.$space-xl;
|
|
175
175
|
display: inline-flex;
|
|
176
176
|
align-items: center;
|
|
177
177
|
justify-content: center;
|
|
178
|
-
padding:
|
|
179
|
-
border-radius: px-to-rem(8);
|
|
180
|
-
color:
|
|
178
|
+
padding: sp.$space-sm;
|
|
179
|
+
border-radius: fn.px-to-rem(8);
|
|
180
|
+
color: colors.$neutral-dark-1;
|
|
181
181
|
transition: 0.2s ease-in-out;
|
|
182
|
-
transform: translate(px-to-rem(4), px-to-rem(-4));
|
|
182
|
+
transform: translate(fn.px-to-rem(4), fn.px-to-rem(-4));
|
|
183
183
|
transition-property: color, background-color;
|
|
184
184
|
|
|
185
185
|
&:hover {
|
|
186
|
-
color:
|
|
186
|
+
color: colors.$neutral-dark;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
&:focus-visible {
|
|
190
|
-
outline: px-to-em(3) solid scale
|
|
190
|
+
outline: fn.px-to-em(3) solid color.scale(colors.$secondary-color, $lightness: 75%);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -199,8 +199,8 @@ $dialog-breakpoint: 550px;
|
|
|
199
199
|
|
|
200
200
|
&__footer {
|
|
201
201
|
&:not(:empty) {
|
|
202
|
-
border-top: 1px solid
|
|
203
|
-
padding:
|
|
202
|
+
border-top: 1px solid colors.$border-color;
|
|
203
|
+
padding: sp.$space-lg sp.$space-xl;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
&--noBorder {
|
|
@@ -211,14 +211,14 @@ $dialog-breakpoint: 550px;
|
|
|
211
211
|
|
|
212
212
|
@media screen and (max-width: $dialog-breakpoint) {
|
|
213
213
|
.cpDialog__close {
|
|
214
|
-
top:
|
|
215
|
-
right:
|
|
214
|
+
top: sp.$space-lg;
|
|
215
|
+
right: sp.$space-lg;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
@media (max-width: 650px) {
|
|
220
220
|
.cpDialog__footer {
|
|
221
|
-
padding:
|
|
221
|
+
padding: sp.$space-lg;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
</style>
|
|
@@ -31,15 +31,15 @@ const ariaId = useId()
|
|
|
31
31
|
<style lang="scss">
|
|
32
32
|
.cpTooltip.v-popper--theme-tooltip {
|
|
33
33
|
.v-popper__inner {
|
|
34
|
-
padding:
|
|
35
|
-
border-radius: px-to-rem(8);
|
|
36
|
-
background-color:
|
|
37
|
-
font-size: px-to-rem(12);
|
|
38
|
-
line-height: px-to-rem(16);
|
|
34
|
+
padding: sp.$space sp.$space-md;
|
|
35
|
+
border-radius: fn.px-to-rem(8);
|
|
36
|
+
background-color: colors.$primary-color;
|
|
37
|
+
font-size: fn.px-to-rem(12);
|
|
38
|
+
line-height: fn.px-to-rem(16);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.v-popper__arrow-outer {
|
|
42
|
-
border-color:
|
|
42
|
+
border-color: colors.$primary-color;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
</style>
|
|
@@ -156,13 +156,13 @@ export default {
|
|
|
156
156
|
border-color: $color;
|
|
157
157
|
|
|
158
158
|
&:hover {
|
|
159
|
-
background-color: scale
|
|
160
|
-
border-color: scale
|
|
159
|
+
background-color: color.scale($color, $lightness: 7%);
|
|
160
|
+
border-color: color.scale($color, $lightness: 7%);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
&:active {
|
|
164
|
-
background-color: scale
|
|
165
|
-
border-color: scale
|
|
164
|
+
background-color: color.scale($color, $lightness: -12%);
|
|
165
|
+
border-color: color.scale($color, $lightness: -12%);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -175,12 +175,12 @@ export default {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
&:hover {
|
|
178
|
-
background: scale
|
|
178
|
+
background: color.scale($color, $lightness: 90%);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
&:active {
|
|
182
|
-
background: scale
|
|
183
|
-
color: scale
|
|
182
|
+
background: color.scale($color, $lightness: 80%);
|
|
183
|
+
color: color.scale($color, $lightness: -10%);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -191,21 +191,21 @@ export default {
|
|
|
191
191
|
|
|
192
192
|
&--isPrimary#{&}--is#{$className}:focus,
|
|
193
193
|
&--isMinimal#{&}--is#{$className}:focus {
|
|
194
|
-
box-shadow: 0 0 0 px-to-em(3) scale
|
|
194
|
+
box-shadow: 0 0 0 fn.px-to-em(3) color.scale($color, $lightness: 70%);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.cpButton {
|
|
199
|
-
border: px-to-rem(1) solid;
|
|
200
|
-
border-radius: px-to-rem(1000);
|
|
199
|
+
border: fn.px-to-rem(1) solid;
|
|
200
|
+
border-radius: fn.px-to-rem(1000);
|
|
201
201
|
background-color: transparent;
|
|
202
|
-
padding: px-to-em(12) px-to-em(16);
|
|
202
|
+
padding: fn.px-to-em(12) fn.px-to-em(16);
|
|
203
203
|
min-width: 10ch;
|
|
204
|
-
height:
|
|
204
|
+
height: sizing.$component-size-default;
|
|
205
205
|
font-size: inherit;
|
|
206
206
|
line-height: 1.1;
|
|
207
207
|
text-decoration: none;
|
|
208
|
-
color:
|
|
208
|
+
color: colors.$neutral-dark;
|
|
209
209
|
font-weight: 500;
|
|
210
210
|
transition-property: box-shadow, background-color, transform, width;
|
|
211
211
|
transition-duration: 0.15s;
|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
214
214
|
|
|
215
215
|
&,
|
|
216
216
|
&:visited {
|
|
217
|
-
color:
|
|
217
|
+
color: colors.$neutral-dark;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
&,
|
|
@@ -225,34 +225,30 @@ export default {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
@media screen and (-ms-high-contrast: active) {
|
|
228
|
-
border: px-to-em(2) solid currentcolor;
|
|
228
|
+
border: fn.px-to-em(2) solid currentcolor;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
&:hover {
|
|
232
|
-
transform: translateY(px-to-rem(-1));
|
|
232
|
+
transform: translateY(fn.px-to-rem(-1));
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
&:active {
|
|
236
|
-
transform: translateY(px-to-rem(1));
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&:focus {
|
|
240
|
-
outline: none !important;
|
|
236
|
+
transform: translateY(fn.px-to-rem(1));
|
|
241
237
|
}
|
|
242
238
|
|
|
243
239
|
&--isDefault {
|
|
244
|
-
background-color:
|
|
245
|
-
border-color:
|
|
240
|
+
background-color: colors.$neutral-light;
|
|
241
|
+
border-color: colors.$neutral-dark-4;
|
|
246
242
|
|
|
247
243
|
&:hover {
|
|
248
|
-
background-color: scale
|
|
244
|
+
background-color: color.scale(colors.$neutral-dark, $lightness: 98%);
|
|
249
245
|
box-shadow:
|
|
250
|
-
0 px-to-rem(1) px-to-rem(2) rgba(
|
|
251
|
-
0 px-to-rem(3) px-to-rem(6) rgba(
|
|
246
|
+
0 fn.px-to-rem(1) fn.px-to-rem(2) rgba(colors.$neutral-dark, 0.08),
|
|
247
|
+
0 fn.px-to-rem(3) fn.px-to-rem(6) rgba(colors.$neutral-dark, 0.08);
|
|
252
248
|
}
|
|
253
249
|
|
|
254
250
|
&:active {
|
|
255
|
-
background-color: scale
|
|
251
|
+
background-color: color.scale(colors.$neutral-dark, $lightness: 95%);
|
|
256
252
|
}
|
|
257
253
|
|
|
258
254
|
&:focus {
|
|
@@ -262,36 +258,36 @@ export default {
|
|
|
262
258
|
|
|
263
259
|
&--isDefault,
|
|
264
260
|
&--isPrimary {
|
|
265
|
-
filter: drop-shadow(0 px-to-rem(1) px-to-rem(2) rgba(
|
|
261
|
+
filter: drop-shadow(0 fn.px-to-rem(1) fn.px-to-rem(2) rgba(colors.$neutral-dark, 0.08));
|
|
266
262
|
}
|
|
267
263
|
|
|
268
264
|
&--isDefault:focus,
|
|
269
265
|
&--isDisabled:focus {
|
|
270
|
-
|
|
266
|
+
outline: fn.px-to-em(3) solid color.scale(colors.$primary-color, $lightness: 75%);
|
|
271
267
|
}
|
|
272
268
|
|
|
273
|
-
@include cp-button-default('Blue',
|
|
274
|
-
@include cp-button-default('Purple',
|
|
275
|
-
@include cp-button-default('Green',
|
|
276
|
-
@include cp-button-default('Orange',
|
|
277
|
-
@include cp-button-default('Red',
|
|
269
|
+
@include cp-button-default('Blue', colors.$secondary-color);
|
|
270
|
+
@include cp-button-default('Purple', colors.$primary-color);
|
|
271
|
+
@include cp-button-default('Green', colors.$success-color);
|
|
272
|
+
@include cp-button-default('Orange', colors.$warning-color);
|
|
273
|
+
@include cp-button-default('Red', colors.$error-color);
|
|
278
274
|
|
|
279
275
|
&--isPrimary {
|
|
280
276
|
&,
|
|
281
277
|
&:visited {
|
|
282
|
-
color:
|
|
278
|
+
color: colors.$neutral-light;
|
|
283
279
|
}
|
|
284
280
|
|
|
285
281
|
&:hover {
|
|
286
282
|
box-shadow:
|
|
287
|
-
0 px-to-rem(4) px-to-rem(6) rgba(50, 50, 93, 0.11),
|
|
288
|
-
0 px-to-rem(1) px-to-rem(3) rgba(
|
|
283
|
+
0 fn.px-to-rem(4) fn.px-to-rem(6) rgba(50, 50, 93, 0.11),
|
|
284
|
+
0 fn.px-to-rem(1) fn.px-to-rem(3) rgba(colors.$neutral-dark, 0.08);
|
|
289
285
|
}
|
|
290
286
|
|
|
291
287
|
&:active {
|
|
292
288
|
box-shadow:
|
|
293
|
-
inset 0 0 0 px-to-em(1) rgba(67, 90, 111, 0.14),
|
|
294
|
-
inset 0 px-to-em(1) px-to-em(1) 0 rgba(67, 90, 111, 0.06);
|
|
289
|
+
inset 0 0 0 fn.px-to-em(1) rgba(67, 90, 111, 0.14),
|
|
290
|
+
inset 0 fn.px-to-em(1) fn.px-to-em(1) 0 rgba(67, 90, 111, 0.06);
|
|
295
291
|
}
|
|
296
292
|
}
|
|
297
293
|
|
|
@@ -299,17 +295,17 @@ export default {
|
|
|
299
295
|
border-color: transparent;
|
|
300
296
|
}
|
|
301
297
|
|
|
302
|
-
@include cp-button-style('Blue',
|
|
303
|
-
@include cp-button-style('Purple',
|
|
304
|
-
@include cp-button-style('Green',
|
|
305
|
-
@include cp-button-style('Orange',
|
|
306
|
-
@include cp-button-style('Red',
|
|
298
|
+
@include cp-button-style('Blue', colors.$secondary-color);
|
|
299
|
+
@include cp-button-style('Purple', colors.$primary-color);
|
|
300
|
+
@include cp-button-style('Green', colors.$success-color);
|
|
301
|
+
@include cp-button-style('Orange', colors.$warning-color);
|
|
302
|
+
@include cp-button-style('Red', colors.$error-color);
|
|
307
303
|
|
|
308
304
|
&--isDisabled {
|
|
309
305
|
box-shadow: none !important;
|
|
310
|
-
border-color:
|
|
311
|
-
background-color:
|
|
312
|
-
color:
|
|
306
|
+
border-color: colors.$neutral-light-1 !important;
|
|
307
|
+
background-color: colors.$neutral-light-1 !important;
|
|
308
|
+
color: colors.$neutral-dark-2 !important;
|
|
313
309
|
cursor: not-allowed !important;
|
|
314
310
|
user-select: none;
|
|
315
311
|
|
|
@@ -320,8 +316,8 @@ export default {
|
|
|
320
316
|
}
|
|
321
317
|
|
|
322
318
|
&--isIcon {
|
|
323
|
-
min-width:
|
|
324
|
-
padding: px-to-em(10);
|
|
319
|
+
min-width: sizing.$component-size-default;
|
|
320
|
+
padding: fn.px-to-em(10);
|
|
325
321
|
}
|
|
326
322
|
|
|
327
323
|
&__body {
|
|
@@ -345,23 +341,23 @@ export default {
|
|
|
345
341
|
}
|
|
346
342
|
|
|
347
343
|
&__icon {
|
|
348
|
-
width: px-to-em(16);
|
|
349
|
-
height: px-to-em(16);
|
|
344
|
+
width: fn.px-to-em(16);
|
|
345
|
+
height: fn.px-to-em(16);
|
|
350
346
|
flex-shrink: 0;
|
|
351
347
|
|
|
352
348
|
&--isBefore:not(:only-child) {
|
|
353
|
-
margin-right: px-to-em(8);
|
|
349
|
+
margin-right: fn.px-to-em(8);
|
|
354
350
|
}
|
|
355
351
|
|
|
356
352
|
&--isAfter:not(:only-child) {
|
|
357
|
-
margin-left: px-to-em(8);
|
|
353
|
+
margin-left: fn.px-to-em(8);
|
|
358
354
|
}
|
|
359
355
|
}
|
|
360
356
|
|
|
361
|
-
$cp-button-loader-size: px-to-em(24);
|
|
357
|
+
$cp-button-loader-size: fn.px-to-em(24);
|
|
362
358
|
|
|
363
359
|
&--isLoading .cpButton__body {
|
|
364
|
-
padding-left: calc(#{$cp-button-loader-size + px-to-em(8)});
|
|
360
|
+
padding-left: calc(#{$cp-button-loader-size + fn.px-to-em(8)});
|
|
365
361
|
}
|
|
366
362
|
|
|
367
363
|
&__loader {
|
|
@@ -374,11 +370,11 @@ export default {
|
|
|
374
370
|
}
|
|
375
371
|
|
|
376
372
|
&--isSquare {
|
|
377
|
-
border-radius: px-to-rem(10);
|
|
373
|
+
border-radius: fn.px-to-rem(10);
|
|
378
374
|
}
|
|
379
375
|
|
|
380
376
|
&--isLarge {
|
|
381
|
-
height:
|
|
377
|
+
height: sizing.$component-size-large;
|
|
382
378
|
text-transform: uppercase;
|
|
383
379
|
}
|
|
384
380
|
}
|
|
@@ -20,9 +20,9 @@ export default {
|
|
|
20
20
|
<style lang="scss">
|
|
21
21
|
.baseInputLabel {
|
|
22
22
|
display: block;
|
|
23
|
-
font-size: px-to-em(14);
|
|
23
|
+
font-size: fn.px-to-em(14);
|
|
24
24
|
font-weight: 500;
|
|
25
|
-
color:
|
|
25
|
+
color: colors.$neutral-dark;
|
|
26
26
|
|
|
27
27
|
&::first-letter {
|
|
28
28
|
text-transform: capitalize;
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
|
|
31
31
|
&--isInvalid {
|
|
32
32
|
font-weight: 500;
|
|
33
|
-
color:
|
|
33
|
+
color: colors.$error-color;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
</style>
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
126
126
|
<style lang="scss">
|
|
127
127
|
.sectionButtons {
|
|
128
128
|
&__title {
|
|
129
|
-
margin-bottom:
|
|
129
|
+
margin-bottom: sp.$space-lg;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
&__buttons {
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
flex-wrap: wrap;
|
|
136
136
|
|
|
137
137
|
> * {
|
|
138
|
-
margin: 0
|
|
138
|
+
margin: 0 sp.$space-lg sp.$space-lg 0;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -20,15 +20,15 @@ export default {
|
|
|
20
20
|
|
|
21
21
|
<style lang="scss">
|
|
22
22
|
.sectionContainer {
|
|
23
|
-
padding:
|
|
23
|
+
padding: sp.$space-xl;
|
|
24
24
|
width: 100%;
|
|
25
25
|
|
|
26
26
|
&:not(first-child) {
|
|
27
|
-
border-top: 1px solid
|
|
27
|
+
border-top: 1px solid colors.$neutral-dark-4;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__title {
|
|
31
|
-
margin-bottom:
|
|
31
|
+
margin-bottom: sp.$space-xl;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.item {
|
|
@@ -39,11 +39,11 @@ export default {
|
|
|
39
39
|
align-items: center;
|
|
40
40
|
|
|
41
41
|
& > span {
|
|
42
|
-
margin-bottom: px-to-rem(10);
|
|
42
|
+
margin-bottom: fn.px-to-rem(10);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
h3 {
|
|
46
|
-
margin-bottom: px-to-rem(10);
|
|
46
|
+
margin-bottom: fn.px-to-rem(10);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
<style lang="scss">
|
|
121
121
|
.sectionDatePickers {
|
|
122
122
|
&__title {
|
|
123
|
-
margin-bottom:
|
|
123
|
+
margin-bottom: sp.$space-lg;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&__datepickers {
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
129
129
|
flex-wrap: wrap;
|
|
130
130
|
|
|
131
131
|
> * {
|
|
132
|
-
margin: 0
|
|
132
|
+
margin: 0 sp.$space-lg sp.$space-lg 0;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
&__button {
|
|
147
|
-
margin-left:
|
|
147
|
+
margin-left: sp.$space-lg;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
&__wrapper {
|
|
@@ -36,11 +36,11 @@ export default {
|
|
|
36
36
|
<style lang="scss">
|
|
37
37
|
.sectionInputs {
|
|
38
38
|
&__section:not(:last-of-type) {
|
|
39
|
-
margin-bottom:
|
|
39
|
+
margin-bottom: sp.$space-lg;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&__title {
|
|
43
|
-
margin-bottom:
|
|
43
|
+
margin-bottom: sp.$space-lg;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
</style>
|