@cityway/basic-ui 1.0.2-beta021 → 1.0.2-beta023
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/cityway-basic-ui-1.0.2-beta023.tgz +0 -0
- package/fesm2022/cityway-basic-ui.mjs +1068 -76
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/img/flags.png +0 -0
- package/img/flags.webp +0 -0
- package/img/flags@2x.png +0 -0
- package/img/flags@2x.webp +0 -0
- package/index.d.ts +390 -14
- package/lib/assets/i18n/common.en.json +7 -1
- package/lib/assets/i18n/common.fr.json +7 -1
- package/lib/assets/icons/sprite.svg +3 -1
- package/package.json +6 -2
- package/styles/basic-ui.styles.bo.min.css +1 -1
- package/styles/basic-ui.styles.bo.min.css.map +1 -1
- package/styles/basic-ui.styles.fo.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.0.2-beta021.tgz +0 -0
- package/lib/assets/styles/scss/_reboot.scss +0 -494
- package/lib/assets/styles/scss/_root-bo.scss +0 -22
- package/lib/assets/styles/scss/_root-fo.scss +0 -14
- package/lib/assets/styles/scss/basic-ui.styles.bo.scss +0 -49
- package/lib/assets/styles/scss/basic-ui.styles.fo.scss +0 -49
- package/lib/assets/styles/scss/components/_accordion.scss +0 -35
- package/lib/assets/styles/scss/components/_alert.scss +0 -78
- package/lib/assets/styles/scss/components/_badge.scss +0 -111
- package/lib/assets/styles/scss/components/_breadcrumb.scss +0 -51
- package/lib/assets/styles/scss/components/_btn-collapse.scss +0 -23
- package/lib/assets/styles/scss/components/_card.scss +0 -98
- package/lib/assets/styles/scss/components/_close.scss +0 -11
- package/lib/assets/styles/scss/components/_dropdown.scss +0 -91
- package/lib/assets/styles/scss/components/_file-to-download.scss +0 -46
- package/lib/assets/styles/scss/components/_icon-notification.scss +0 -30
- package/lib/assets/styles/scss/components/_icon.scss +0 -138
- package/lib/assets/styles/scss/components/_modal.scss +0 -165
- package/lib/assets/styles/scss/components/_numerical-range.scss +0 -60
- package/lib/assets/styles/scss/components/_stepper.scss +0 -78
- package/lib/assets/styles/scss/components/_toast.scss +0 -27
- package/lib/assets/styles/scss/components/_tooltip.scss +0 -35
- package/lib/assets/styles/scss/components/button/_button-bo-variant.scss +0 -112
- package/lib/assets/styles/scss/components/button/_button-fo-variant.scss +0 -57
- package/lib/assets/styles/scss/components/button/_button.scss +0 -152
- package/lib/assets/styles/scss/components/form-field/_field-check.scss +0 -137
- package/lib/assets/styles/scss/components/form-field/_form-field.scss +0 -153
- package/lib/assets/styles/scss/components/form-field/_ng-select.scss +0 -93
- package/lib/assets/styles/scss/components/form-field/_slider-range.scss +0 -68
- package/lib/assets/styles/scss/components/tab/_tab-bo.scss +0 -95
- package/lib/assets/styles/scss/components/tab/_tab-fo.scss +0 -83
- package/lib/assets/styles/scss/helpers/_skeleton.scss +0 -67
- package/lib/assets/styles/scss/helpers/_spinner.scss +0 -37
- package/lib/assets/styles/scss/helpers/_stretched-link.scss +0 -9
- package/lib/assets/styles/scss/helpers/_visually-hidden.scss +0 -18
- package/lib/assets/styles/scss/mixins/_color.scss +0 -16
- package/lib/assets/styles/scss/mixins/_flex.scss +0 -11
- package/lib/assets/styles/scss/mixins/_popover-tooltip.scss +0 -144
- package/lib/assets/styles/scss/mixins/_root.scss +0 -26
- package/lib/assets/styles/scss/mixins/_spacing.scss +0 -84
- package/lib/assets/styles/scss/mixins/_type.scss +0 -44
- package/lib/assets/styles/scss/utilities/_alignment.scss +0 -23
- package/lib/assets/styles/scss/utilities/_breakpoints.scss +0 -30
- package/lib/assets/styles/scss/utilities/_flex.scss +0 -142
- package/lib/assets/styles/scss/utilities/_grid.scss +0 -64
- package/lib/assets/styles/scss/utilities/_position.scss +0 -24
- package/lib/assets/styles/scss/utilities/_spacing.scss +0 -3
- package/lib/assets/styles/scss/utilities/type/_type-bo.scss +0 -40
- package/lib/assets/styles/scss/utilities/type/_type-fo.scss +0 -132
- package/lib/assets/styles/scss/utilities/type/_type.scss +0 -34
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
// --- CONFIGURATION COMMUNE ---
|
|
6
|
-
%field-check-base {
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
appearance: none;
|
|
9
|
-
background-color: var(--#{p.$prefix}-field-check-bg);
|
|
10
|
-
background-image: var(--#{p.$prefix}-field-check-bg-image);
|
|
11
|
-
background-repeat: no-repeat;
|
|
12
|
-
background-position: center;
|
|
13
|
-
background-size: contain;
|
|
14
|
-
border: var(--#{p.$prefix}-field-check-border);
|
|
15
|
-
border-radius: var(--#{p.$prefix}-field-check-br);
|
|
16
|
-
print-color-adjust: exact;
|
|
17
|
-
transition: background-position 0.15s ease-in-out, background-color 0.15s, border-color 0.15s;
|
|
18
|
-
|
|
19
|
-
&:disabled,
|
|
20
|
-
&[disabled] {
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
filter: none;
|
|
23
|
-
|
|
24
|
-
~.field-check-label {
|
|
25
|
-
cursor: default;
|
|
26
|
-
color: #{color("grey", 600)};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.field-check {
|
|
32
|
-
display: flex;
|
|
33
|
-
gap: size(2xs);
|
|
34
|
-
|
|
35
|
-
&-input {
|
|
36
|
-
@extend %field-check-base;
|
|
37
|
-
|
|
38
|
-
// Valeurs par défaut (Checkbox / Radio)
|
|
39
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid #{color("grey", 600)};
|
|
40
|
-
--#{p.$prefix}-field-check-br: #{border(br, xs)};
|
|
41
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-base-white);
|
|
42
|
-
--#{p.$prefix}-field-check-bg-image: none;
|
|
43
|
-
|
|
44
|
-
width: 1rem;
|
|
45
|
-
height: 1rem;
|
|
46
|
-
margin-top: calc(((font(fs, md-rwd) * font(lh, md-rwd)) - 1rem) / 2);
|
|
47
|
-
|
|
48
|
-
// États Partagés
|
|
49
|
-
&:checked {
|
|
50
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-primary-base);
|
|
51
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid var(--#{p.$prefix}-primary-base);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&[aria-invalid="true"] {
|
|
55
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid var(--#{p.$prefix}-danger-base);
|
|
56
|
-
|
|
57
|
-
~.field-check-label {
|
|
58
|
-
color: var(--#{p.$prefix}-danger-base);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:disabled,
|
|
63
|
-
&[disabled] {
|
|
64
|
-
--#{p.$prefix}-field-check-bg: #{color("grey", 600)};
|
|
65
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid #{color("grey", 600)};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Spécificités Radio / Checkbox
|
|
69
|
-
&[type="checkbox"]:checked {
|
|
70
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-primary-base);
|
|
71
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid var(--#{p.$prefix}-primary-base);
|
|
72
|
-
--#{p.$prefix}-field-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&[type="checkbox"]:indeterminate {
|
|
76
|
-
--#{p.$prefix}-field-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&[type="radio"] {
|
|
80
|
-
--#{p.$prefix}-field-check-br: #{border(br, round)};
|
|
81
|
-
|
|
82
|
-
&:checked {
|
|
83
|
-
--#{p.$prefix}-field-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&-label {
|
|
89
|
-
font-size: var(--#{p.$prefix}-body-fs);
|
|
90
|
-
line-height: var(--#{p.$prefix}-body-lh);
|
|
91
|
-
font-weight: var(--#{p.$prefix}-body-fw);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// --- VARIANTE SWITCH ---
|
|
96
|
-
.field-switch {
|
|
97
|
-
.field-check-input {
|
|
98
|
-
--#{p.$prefix}-field-check-br: #{border(br, round)};
|
|
99
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-base-disabled);
|
|
100
|
-
--#{p.$prefix}-field-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
|
101
|
-
|
|
102
|
-
width: 2.625rem;
|
|
103
|
-
height: 1.625rem;
|
|
104
|
-
margin-top: calc(((font(fs, md-rwd) * font(lh, md-rwd)) - 1.625rem) / 2);
|
|
105
|
-
background-position: left center;
|
|
106
|
-
|
|
107
|
-
&:checked {
|
|
108
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-primary-base);
|
|
109
|
-
--#{p.$prefix}-field-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
|
110
|
-
|
|
111
|
-
background-position: right center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&[aria-invalid="true"] {
|
|
115
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-danger-base);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&:disabled,
|
|
119
|
-
&[disabled] {
|
|
120
|
-
--#{p.$prefix}-field-check-bg: var(--#{p.$prefix}-base-white);
|
|
121
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid #{color("grey", 600)};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.field-switch.field-switch-small {
|
|
127
|
-
.field-check-input {
|
|
128
|
-
width: 1.625rem;
|
|
129
|
-
height: 1rem;
|
|
130
|
-
margin-top: calc(((font(fs, md-rwd) * font(lh, md-rwd)) - 1rem) / 2);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// --- GLOBAL ---
|
|
135
|
-
fieldset[aria-invalid="true"] .field-check-input {
|
|
136
|
-
--#{p.$prefix}-field-check-border: #{border(bw, xs)} solid var(--#{p.$prefix}-danger-base);
|
|
137
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
@use "../button/button" as mixin;
|
|
5
|
-
|
|
6
|
-
@use "field-check";
|
|
7
|
-
@use "ng-select";
|
|
8
|
-
@use "slider-range";
|
|
9
|
-
|
|
10
|
-
.field {
|
|
11
|
-
&-required {
|
|
12
|
-
font-size: font(fs, xs);
|
|
13
|
-
line-height: font(lh, xs);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-label {
|
|
17
|
-
font-size: var(--#{p.$prefix}-body-fs);
|
|
18
|
-
line-height: var(--#{p.$prefix}-body-lh);
|
|
19
|
-
font-weight: var(--#{p.$prefix}-body-fw);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-text {
|
|
23
|
-
font-size: font(fs, xs);
|
|
24
|
-
line-height: font(lh, xs);
|
|
25
|
-
color: var(--#{p.$prefix}-base-disabled);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-invalid {
|
|
29
|
-
font-size: font(fs, xs);
|
|
30
|
-
line-height: font(lh, xs);
|
|
31
|
-
color: var(--#{p.$prefix}-danger-base);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-group {
|
|
35
|
-
--#{p.$prefix}-field-control-height: #{size(3xl)};
|
|
36
|
-
--#{p.$prefix}-field-control-padding-y: #{size(sm)};
|
|
37
|
-
--#{p.$prefix}-field-control-border: #{border(bw, xs)} solid #{color("grey", 600)};
|
|
38
|
-
--#{p.$prefix}-field-control-bg: var(--#{p.$prefix}-base-white);
|
|
39
|
-
--#{p.$prefix}-field-control-br: var(--#{p.$prefix}-border-radius-input);
|
|
40
|
-
--#{p.$prefix}-field-control-bs: none;
|
|
41
|
-
--#{p.$prefix}-field-control-fs: #{font(fs, sm)};
|
|
42
|
-
--#{p.$prefix}-field-control-lh: #{font(lh, sm)};
|
|
43
|
-
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: stretch;
|
|
46
|
-
gap: 0;
|
|
47
|
-
|
|
48
|
-
&-text {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
padding-inline: var(--#{p.$prefix}-field-control-padding-y);
|
|
52
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-text:first-child {
|
|
56
|
-
border-radius: var(--#{p.$prefix}-border-radius-input) 0 0 var(--#{p.$prefix}-border-radius-input);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-text:last-child {
|
|
60
|
-
border-radius: 0 var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-control {
|
|
65
|
-
width: 100%;
|
|
66
|
-
min-height: var(--#{p.$prefix}-field-control-height);
|
|
67
|
-
padding-inline: var(--#{p.$prefix}-field-control-padding-y);
|
|
68
|
-
|
|
69
|
-
font-size: var(--#{p.$prefix}-field-control-fs);
|
|
70
|
-
line-height: var(--#{p.$prefix}-field-control-lh);
|
|
71
|
-
color: var(--#{p.$prefix}-body-color);
|
|
72
|
-
|
|
73
|
-
border: 0;
|
|
74
|
-
border-top: var(--#{p.$prefix}-field-control-border);
|
|
75
|
-
border-bottom: var(--#{p.$prefix}-field-control-border);
|
|
76
|
-
border-radius: 0;
|
|
77
|
-
background-color: var(--#{p.$prefix}-field-control-bg);
|
|
78
|
-
box-shadow: var(--#{p.$prefix}-field-control-bs);
|
|
79
|
-
|
|
80
|
-
&:first-child {
|
|
81
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
82
|
-
border-right-width: 0;
|
|
83
|
-
border-radius: var(--#{p.$prefix}-border-radius-input) 0 0 var(--#{p.$prefix}-border-radius-input);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:last-child {
|
|
87
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
88
|
-
border-left-width: 0;
|
|
89
|
-
border-radius: 0 var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:only-child {
|
|
93
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
94
|
-
border-radius: var(--#{p.$prefix}-field-control-br);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
textarea {
|
|
100
|
-
min-height: 5.313rem;
|
|
101
|
-
padding: var(--#{p.$prefix}-field-control-padding-y);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.btn-clear-field {
|
|
105
|
-
padding: 0;
|
|
106
|
-
padding-inline: var(--#{p.$prefix}-field-control-padding-y);
|
|
107
|
-
border: 0;
|
|
108
|
-
border-top: var(--#{p.$prefix}-field-control-border);
|
|
109
|
-
border-bottom: var(--#{p.$prefix}-field-control-border);
|
|
110
|
-
border-radius: 0;
|
|
111
|
-
|
|
112
|
-
&:last-child {
|
|
113
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
114
|
-
border-left-width: 0;
|
|
115
|
-
border-radius: 0 var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Placeholder
|
|
120
|
-
// ::placeholder {
|
|
121
|
-
// color: var(--placeholder-color, #6c757d);
|
|
122
|
-
// opacity: 1;
|
|
123
|
-
// }
|
|
124
|
-
|
|
125
|
-
// Variables
|
|
126
|
-
// ---------------------------------
|
|
127
|
-
$buttons: (
|
|
128
|
-
field-group: (surface: var(--#{p.$prefix}-primary-contrasted),
|
|
129
|
-
text: var(--#{p.$prefix}-body-color),
|
|
130
|
-
border: var(--#{p.$prefix}-primary-base),
|
|
131
|
-
surface-hover: var(--#{p.$prefix}-primary-contrasted),
|
|
132
|
-
text-hover: var(--#{p.$prefix}-primary-hover),
|
|
133
|
-
border-hover: var(--#{p.$prefix}-primary-hover),
|
|
134
|
-
surface-disabled: var(--#{p.$prefix}-disabled-contrasted),
|
|
135
|
-
text-disabled: var(--#{p.$prefix}-base-disabled),
|
|
136
|
-
border-disabled: var(--#{p.$prefix}-base-disabled)),
|
|
137
|
-
);
|
|
138
|
-
|
|
139
|
-
// Générer toutes les variantes
|
|
140
|
-
// ---------------------------------
|
|
141
|
-
@include mixin.button-variants($buttons);
|
|
142
|
-
|
|
143
|
-
.btn-field-group {
|
|
144
|
-
border-radius: 0;
|
|
145
|
-
|
|
146
|
-
&:first-of-type {
|
|
147
|
-
border-radius: var(--#{p.$prefix}-border-radius-input) 0 0 var(--#{p.$prefix}-border-radius-input);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&:last-of-type {
|
|
151
|
-
border-radius: 0 var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.ng-select {
|
|
6
|
-
display: flex;
|
|
7
|
-
width: 100%;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
&.ng-select-single {
|
|
11
|
-
.ng-select-container {
|
|
12
|
-
height: var(--#{p.$prefix}-field-control-height);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.ng-select-multiple,
|
|
17
|
-
&.ng-select-single {
|
|
18
|
-
.ng-select-container {
|
|
19
|
-
width: 100%;
|
|
20
|
-
min-height: var(--#{p.$prefix}-field-control-height);
|
|
21
|
-
font-size: var(--#{p.$prefix}-field-control-fs);
|
|
22
|
-
line-height: var(--#{p.$prefix}-field-control-lh);
|
|
23
|
-
border: 0;
|
|
24
|
-
border-top: var(--#{p.$prefix}-field-control-border);
|
|
25
|
-
border-bottom: var(--#{p.$prefix}-field-control-border);
|
|
26
|
-
border-radius: 0;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.ng-value-container {
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: size(2xs);
|
|
32
|
-
height: 100%;
|
|
33
|
-
padding-top: 0;
|
|
34
|
-
padding-inline: var(--#{p.$prefix}-field-control-padding-y);
|
|
35
|
-
|
|
36
|
-
.ng-value {
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding-right: size(2xs);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ng-placeholder {
|
|
42
|
-
top: inherit;
|
|
43
|
-
padding-left: 0;
|
|
44
|
-
padding-bottom: 0;
|
|
45
|
-
// color: $input-placeholder-color;
|
|
46
|
-
// font-weight: $font-weight-base;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ng-input {
|
|
50
|
-
left: inherit;
|
|
51
|
-
top: 0.5rem;
|
|
52
|
-
padding-left: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
&:first-child {
|
|
60
|
-
|
|
61
|
-
&.ng-select-multiple,
|
|
62
|
-
&.ng-select-single {
|
|
63
|
-
.ng-select-container {
|
|
64
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
65
|
-
border-right: 0;
|
|
66
|
-
border-radius: var(--#{p.$prefix}-border-radius-input) 0 0 var(--#{p.$prefix}-border-radius-input);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:last-child {
|
|
72
|
-
|
|
73
|
-
&.ng-select-multiple,
|
|
74
|
-
&.ng-select-single {
|
|
75
|
-
.ng-select-container {
|
|
76
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
77
|
-
border-left: 0;
|
|
78
|
-
border-radius: 0 var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:only-child {
|
|
84
|
-
|
|
85
|
-
&.ng-select-multiple,
|
|
86
|
-
&.ng-select-single {
|
|
87
|
-
.ng-select-container {
|
|
88
|
-
border: var(--#{p.$prefix}-field-control-border);
|
|
89
|
-
border-radius: var(--#{p.$prefix}-border-radius-input);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.slider {
|
|
6
|
-
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: size(md);
|
|
10
|
-
width: 100%;
|
|
11
|
-
|
|
12
|
-
&-input {
|
|
13
|
-
position: relative;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-grow: 1;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-custom-bar {
|
|
20
|
-
// position: absolute;
|
|
21
|
-
// bottom: 0;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 0.625rem;
|
|
24
|
-
border-radius: 10rem;
|
|
25
|
-
background-color: grey;
|
|
26
|
-
|
|
27
|
-
&-selection {
|
|
28
|
-
height: 0.625rem;
|
|
29
|
-
border-radius: 10rem;
|
|
30
|
-
background-color: red;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-tooltip {
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: -100%;
|
|
37
|
-
padding: 2rem;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
border-radius:10rem;
|
|
40
|
-
background-color: white;
|
|
41
|
-
//box-shadow: $ngx-slider-bubble-box-shadow;
|
|
42
|
-
transform: translate(-50%, -130%);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.field-control-range {
|
|
47
|
-
-webkit-appearance: none;
|
|
48
|
-
position: relative;
|
|
49
|
-
z-index: 1;
|
|
50
|
-
height: 0;
|
|
51
|
-
border: 0 solid transparent;
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
transform: translateY(calc(0.625rem / 2 * -1));
|
|
54
|
-
&:focus {
|
|
55
|
-
outline: none;
|
|
56
|
-
box-shadow: none;
|
|
57
|
-
}
|
|
58
|
-
&::-webkit-slider-thumb {
|
|
59
|
-
width: 1rem;
|
|
60
|
-
height: 1rem;
|
|
61
|
-
border: 0.125rem solid red;
|
|
62
|
-
border-radius: 10rem;
|
|
63
|
-
background-color: white;
|
|
64
|
-
//box-shadow: $ngx-slider-pointer-box-shadow;
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
-webkit-appearance: none;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
.tab {
|
|
6
|
-
--#{p.$prefix}-tab-padding: #{size(sm)} #{size(lg)};
|
|
7
|
-
--#{p.$prefix}-tab-bg: var(--#{p.$prefix}-base-white);
|
|
8
|
-
--#{p.$prefix}-tab-fs: #{font(fs, sm)};
|
|
9
|
-
|
|
10
|
-
h2,.h2 {
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: var(--#{p.$prefix}-tab-padding);
|
|
13
|
-
border-bottom: 1px solid #{color('grey', 200)};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.tab-items {
|
|
17
|
-
list-style: none;
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: #{size(2xs)} 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.tab-link {
|
|
23
|
-
padding: var(--#{p.$prefix}-tab-padding);
|
|
24
|
-
color: var(--#{p.$prefix}-primary-base);
|
|
25
|
-
font-size: var(--#{p.$prefix}-tab-fs);
|
|
26
|
-
font-weight: font(fw, semibold);
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
border: 0;
|
|
29
|
-
|
|
30
|
-
&:hover,
|
|
31
|
-
&:active {
|
|
32
|
-
color: var(--#{p.$prefix}-primary-hover);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.active {
|
|
36
|
-
color: var(--#{p.$prefix}-body-color);
|
|
37
|
-
|
|
38
|
-
&:hover,
|
|
39
|
-
&:active {
|
|
40
|
-
color: inherit;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.tab-card {
|
|
47
|
-
@extend .tab;
|
|
48
|
-
|
|
49
|
-
--#{p.$prefix}-tab-br: var(--#{p.$prefix}-border-radius);
|
|
50
|
-
--#{p.$prefix}-tab-bs: var(--#{p.$prefix}-shadow-default);
|
|
51
|
-
|
|
52
|
-
margin-bottom: size(lg);
|
|
53
|
-
border-radius: var(--#{p.$prefix}-tab-br);
|
|
54
|
-
box-shadow: var(--#{p.$prefix}-tab-bs);
|
|
55
|
-
background-color: var(--#{p.$prefix}-tab-bg);
|
|
56
|
-
|
|
57
|
-
.tab-items {
|
|
58
|
-
gap: size(md);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.tab-basic {
|
|
63
|
-
@extend .tab;
|
|
64
|
-
|
|
65
|
-
--#{p.$prefix}-tab-br: var(--#{p.$prefix}-border-radius-input) var(--#{p.$prefix}-border-radius-input) 0 0;
|
|
66
|
-
--#{p.$prefix}-tab-bs: 0 #{size(md)} 0 #fff, var(--#{p.$prefix}-shadow-default);
|
|
67
|
-
|
|
68
|
-
.tab-items {
|
|
69
|
-
gap: size(lg);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.tab-link {
|
|
73
|
-
border-radius: 0;
|
|
74
|
-
|
|
75
|
-
&.active {
|
|
76
|
-
border-radius: var(--#{p.$prefix}-tab-br);
|
|
77
|
-
box-shadow: var(--#{p.$prefix}-tab-bs);
|
|
78
|
-
background-color: var(--#{p.$prefix}-tab-bg);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.tab-content-basic {
|
|
84
|
-
--#{p.$prefix}-tab-content-bg: var(--#{p.$prefix}-base-white);
|
|
85
|
-
--#{p.$prefix}-tab-content-br: var(--#{p.$prefix}-border-radius);
|
|
86
|
-
--#{p.$prefix}-tab-content-bs: var(--#{p.$prefix}-shadow-default);
|
|
87
|
-
--#{p.$prefix}-tab-content-padding-y: #{size(md)};
|
|
88
|
-
--#{p.$prefix}-tab-content-padding-x: #{size(md)};
|
|
89
|
-
|
|
90
|
-
padding: var(--#{p.$prefix}-tab-content-padding-y) var(--#{p.$prefix}-tab-content-padding-x);
|
|
91
|
-
|
|
92
|
-
border-radius: var(--#{p.$prefix}-tab-content-br);
|
|
93
|
-
box-shadow: var(--#{p.$prefix}-tab-content-bs);
|
|
94
|
-
background-color: var(--#{p.$prefix}-tab-content-bg);
|
|
95
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.tab {
|
|
7
|
-
--#{p.$prefix}-tab-fs: #{font(fs, md)};
|
|
8
|
-
|
|
9
|
-
margin-bottom: size(xl);
|
|
10
|
-
|
|
11
|
-
&-default-xl {
|
|
12
|
-
--#{p.$prefix}-tab-fs: #{font(fs, xl)};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-items {
|
|
16
|
-
position: relative;
|
|
17
|
-
height: size(4xl);
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
list-style: none;
|
|
21
|
-
|
|
22
|
-
&::before {
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
bottom: 0;
|
|
26
|
-
display: block;
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: size(3xs);
|
|
29
|
-
border-radius: 100rem;
|
|
30
|
-
background-color: var(--#{p.$prefix}-base-white);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-item {
|
|
35
|
-
flex: 1;
|
|
36
|
-
margin-bottom: size(3xs);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&-link {
|
|
40
|
-
position: relative;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
gap: size(2xs);
|
|
45
|
-
width: 100%;
|
|
46
|
-
height: 100%;
|
|
47
|
-
padding: size(2xs);
|
|
48
|
-
font-size: var(--#{p.$prefix}-tab-fs);
|
|
49
|
-
font-weight: font(fw, semibold);
|
|
50
|
-
border-radius: size(2xs) size(2xs) 0 0;
|
|
51
|
-
|
|
52
|
-
&.active,
|
|
53
|
-
&:active,
|
|
54
|
-
&:hover {
|
|
55
|
-
background-color: var(--#{p.$prefix}-base-white);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:active,
|
|
59
|
-
&:hover {
|
|
60
|
-
color: var(--#{p.$prefix}-primary-base);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.active {
|
|
64
|
-
|
|
65
|
-
&:active,
|
|
66
|
-
&:hover {
|
|
67
|
-
color: inherit;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&::after {
|
|
71
|
-
content: '';
|
|
72
|
-
position: absolute;
|
|
73
|
-
bottom: -(size(3xs));
|
|
74
|
-
z-index: 1;
|
|
75
|
-
display: block;
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: size(3xs);
|
|
78
|
-
border-radius: border(br, round);
|
|
79
|
-
background-color: var(--#{p.$prefix}-primary-base);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "@cityway/design-tokens/primitives" as p;
|
|
3
|
-
@use "@cityway/design-tokens/functions" as *;
|
|
4
|
-
|
|
5
|
-
@keyframes sk-shimmer {
|
|
6
|
-
100% {
|
|
7
|
-
transform: translateX(100%);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.skeleton {
|
|
12
|
-
display: block;
|
|
13
|
-
position: relative;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
max-width: 50%;
|
|
16
|
-
min-height: 16px;
|
|
17
|
-
|
|
18
|
-
background-color: #e8e8e8 !important;
|
|
19
|
-
|
|
20
|
-
/* Masquer le contenu sans casser le layout */
|
|
21
|
-
color: transparent !important;
|
|
22
|
-
-webkit-text-fill-color: transparent !important;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
user-select: none;
|
|
25
|
-
|
|
26
|
-
/* Cacher les enfants (textes, icônes…) */
|
|
27
|
-
* {
|
|
28
|
-
visibility: hidden !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* Cacher les images sans les retirer du flux */
|
|
32
|
-
img,
|
|
33
|
-
picture,
|
|
34
|
-
svg {
|
|
35
|
-
opacity: 0 !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&::after {
|
|
39
|
-
content: "";
|
|
40
|
-
position: absolute;
|
|
41
|
-
inset: 0;
|
|
42
|
-
|
|
43
|
-
background: linear-gradient(90deg,
|
|
44
|
-
transparent,
|
|
45
|
-
rgba(255, 255, 255, 0.6),
|
|
46
|
-
transparent);
|
|
47
|
-
|
|
48
|
-
transform: translateX(-100%);
|
|
49
|
-
animation: sk-shimmer 1.4s infinite;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.btn,
|
|
53
|
-
&.badge {
|
|
54
|
-
display: inline-flex;
|
|
55
|
-
max-width: 100%;
|
|
56
|
-
min-width: 5rem;
|
|
57
|
-
padding: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.btn {
|
|
61
|
-
min-width: 7rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.form-control {
|
|
65
|
-
border: 0;
|
|
66
|
-
}
|
|
67
|
-
}
|