@trilogy-ds/styles 0.0.7-esm-cjs → 0.0.8-calendar

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.
@@ -0,0 +1,128 @@
1
+ .calendar {
2
+ border-collapse: separate;
3
+ box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
4
+ padding:24px;
5
+ border-radius: 8px;
6
+
7
+ button {
8
+ all: unset;
9
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
10
+ background-color: getColor('main-fade');
11
+ }
12
+
13
+ &.is-active:hover, &.is-active:focus-visible,
14
+ &.is-disabled:hover, &.is-disabled:focus-visible {
15
+ filter: brightness(80%);
16
+ }
17
+ }
18
+
19
+ &-range.calendar-range-init {
20
+ .calendar-week-day:not(.calendar-date-in-range) {
21
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
22
+ background-color: getColor('main');
23
+ color: getColor('background');
24
+ }
25
+ }
26
+ }
27
+
28
+ &-date-in-range {
29
+ button:not(.is-disabled, .is-active){
30
+ background-color: getColor('main-fade');
31
+ border-radius: 0px;
32
+ }
33
+
34
+ &.calendar-date-rounded-left {
35
+ button:not(.is-disabled, .is-active){
36
+ border-radius: 8px 0 0 8px;
37
+ }
38
+ }
39
+
40
+ &.calendar-date-rounded-right {
41
+ button:not(.is-disabled, .is-active){
42
+ border-radius: 0px 8px 8px 0;
43
+ }
44
+ }
45
+ }
46
+
47
+ &-next-month, &-prev-month {
48
+ padding-bottom: 16px;
49
+ button {
50
+ text-align: center;
51
+ border-radius: 4px;
52
+ width: 36px;
53
+ height: 36px;
54
+ i {
55
+ height: 100%;
56
+ }
57
+ }
58
+ }
59
+
60
+ &-week:not(:last-child) {
61
+ margin-bottom: 8px;
62
+ }
63
+
64
+ &-week-day {
65
+ padding: 4px 0px;
66
+ text-align: center !important;
67
+ vertical-align: middle;
68
+ &-disabled {
69
+ button {
70
+ color: getColor('disabled');
71
+ background-color: getColor('disabled-fade');
72
+ }
73
+ }
74
+ &-label {
75
+ padding: 4px;
76
+ text-align: center !important;
77
+ width: 36px;
78
+ color: getColor('font-placeholder');
79
+ }
80
+ button {
81
+ display: block;
82
+ width: 36px;
83
+ height: 36px;
84
+ border-radius: 4px;
85
+ }
86
+ }
87
+
88
+ &-active-month {
89
+ height: 28px;
90
+ text-align: center !important;
91
+ position: relative;
92
+ padding-bottom: 16px;
93
+ .icon {
94
+ vertical-align: bottom;
95
+ }
96
+ button {
97
+ padding: 2px 6px;
98
+ border-radius: 4px;
99
+ }
100
+ }
101
+
102
+ &-active-date button {
103
+ background-color: getColor('main');
104
+ color: getColor('background');
105
+ }
106
+
107
+ &-header-dropdown {
108
+ display: flex;
109
+ gap: $spacing-3;
110
+ justify-content: center;
111
+ .select{
112
+ margin-bottom: 0 !important;
113
+ width: 40%;
114
+ select {
115
+ height: 30px !important;
116
+ margin-bottom: 0 !important;
117
+ padding: 0px 25px 0px 5px;
118
+ &:focus{
119
+ padding-left: 4px !important;
120
+ }
121
+ }
122
+ .control:after {
123
+ right: -8px !important;
124
+ }
125
+ }
126
+ }
127
+
128
+ }
@@ -16,6 +16,14 @@
16
16
  flex-direction: row;
17
17
  }
18
18
 
19
+ &.is-direction-row-reverse {
20
+ flex-direction: row-reverse;
21
+ }
22
+
23
+ &.is-direction-column-reverse {
24
+ flex-direction: column-reverse;
25
+ }
26
+
19
27
  @include desktop {
20
28
  &.is-direction-row-desktop {
21
29
  flex-direction: row;
@@ -24,6 +32,14 @@
24
32
  &.is-direction-column-desktop {
25
33
  flex-direction: column;
26
34
  }
35
+
36
+ &.is-direction-row-reverse-desktop {
37
+ flex-direction: row-reverse;
38
+ }
39
+
40
+ &.is-direction-column-reverse-desktop {
41
+ flex-direction: column-reverse;
42
+ }
27
43
  }
28
44
 
29
45
  @include tablet {
@@ -34,6 +50,14 @@
34
50
  &.is-direction-column-tablet {
35
51
  flex-direction: column;
36
52
  }
53
+
54
+ &.is-direction-row-reverse-tablet {
55
+ flex-direction: row-reverse;
56
+ }
57
+
58
+ &.is-direction-column-reverse-tablet {
59
+ flex-direction: column-reverse;
60
+ }
37
61
  }
38
62
 
39
63
  @include mobile {
@@ -48,6 +72,188 @@
48
72
  &.is-direction-column-mobile {
49
73
  flex-direction: column;
50
74
  }
75
+
76
+ &.is-direction-row-reverse-mobile {
77
+ flex-direction: row-reverse;
78
+ }
79
+
80
+ &.is-direction-column-reverse-mobile {
81
+ flex-direction: column-reverse;
82
+ }
83
+ }
84
+
85
+ // ALIGN ITEMS
86
+ &.is-aligned-start {
87
+ align-items: flex-start;
88
+ }
89
+
90
+ &.is-aligned-end {
91
+ align-items: flex-end;
92
+ }
93
+
94
+ &.is-aligned-center {
95
+ align-items: center;
96
+ }
97
+
98
+ &.is-aligned-stretch {
99
+ align-items: stretch;
100
+ }
101
+
102
+ @include mobile {
103
+ &.is-aligned-start-mobile {
104
+ align-items: flex-start;
105
+ }
106
+
107
+ &.is-aligned-end-mobile {
108
+ align-items: flex-end;
109
+ }
110
+
111
+ &.is-aligned-center-mobile {
112
+ align-items: center;
113
+ }
114
+
115
+ &.is-aligned-stretch-mobile {
116
+ align-items: stretch;
117
+ }
118
+ }
119
+
120
+ @include tablet {
121
+ &.is-aligned-start-tablet {
122
+ align-items: flex-start;
123
+ }
124
+
125
+ &.is-aligned-end-tablet {
126
+ align-items: flex-end;
127
+ }
128
+
129
+ &.is-aligned-center-tablet {
130
+ align-items: center;
131
+ }
132
+
133
+ &.is-aligned-stretch-tablet {
134
+ align-items: stretch;
135
+ }
136
+ }
137
+
138
+ @include desktop {
139
+ &.is-aligned-start-desktop {
140
+ align-items: flex-start;
141
+ }
142
+
143
+ &.is-aligned-end-desktop {
144
+ align-items: flex-end;
145
+ }
146
+
147
+ &.is-aligned-center-desktop {
148
+ align-items: center;
149
+ }
150
+
151
+ &.is-aligned-stretch-desktop {
152
+ align-items: stretch;
153
+ }
154
+ }
155
+
156
+ // JUSTIFY CONTENT
157
+ &.is-justified-start {
158
+ justify-content: flex-start;
159
+ }
160
+
161
+ &.is-justified-end {
162
+ justify-content: flex-end;
163
+ }
164
+
165
+ &.is-justified-center {
166
+ justify-content: center;
167
+ }
168
+
169
+ &.is-spaced-between {
170
+ justify-content: space-between;
171
+ }
172
+
173
+ &.is-spaced-around {
174
+ justify-content: space-around;
175
+ }
176
+
177
+ &.is-spaced-evenly {
178
+ justify-content: space-evenly;
179
+ }
180
+
181
+ @include mobile {
182
+ &.is-justified-start-mobile {
183
+ justify-content: flex-start;
184
+ }
185
+
186
+ &.is-justified-end-mobile {
187
+ justify-content: flex-end;
188
+ }
189
+
190
+ &.is-justified-center-mobile {
191
+ justify-content: center;
192
+ }
193
+
194
+ &.is-spaced-between-mobile {
195
+ justify-content: space-between;
196
+ }
197
+
198
+ &.is-spaced-around-mobile {
199
+ justify-content: space-around;
200
+ }
201
+
202
+ &.is-spaced-evenly-mobile {
203
+ justify-content: space-evenly;
204
+ }
205
+ }
206
+
207
+ @include tablet {
208
+ &.is-justified-start-tablet {
209
+ justify-content: flex-start;
210
+ }
211
+
212
+ &.is-justified-end-tablet {
213
+ justify-content: flex-end;
214
+ }
215
+
216
+ &.is-justified-center-tablet {
217
+ justify-content: center;
218
+ }
219
+
220
+ &.is-spaced-between-tablet {
221
+ justify-content: space-between;
222
+ }
223
+
224
+ &.is-spaced-around-tablet {
225
+ justify-content: space-around;
226
+ }
227
+
228
+ &.is-spaced-evenly-tablet {
229
+ justify-content: space-evenly;
230
+ }
231
+ }
232
+
233
+ @include desktop {
234
+ &.is-justified-start-desktop {
235
+ justify-content: flex-start;
236
+ }
237
+
238
+ &.is-justified-end-desktop {
239
+ justify-content: flex-end;
240
+ }
241
+
242
+ &.is-justified-center-desktop {
243
+ justify-content: center;
244
+ }
245
+
246
+ &.is-spaced-between-desktop {
247
+ justify-content: space-between;
248
+ }
249
+
250
+ &.is-spaced-around-desktop {
251
+ justify-content: space-around;
252
+ }
253
+
254
+ &.is-spaced-evenly-desktop {
255
+ justify-content: space-evenly;
256
+ }
51
257
  }
52
258
 
53
259
  &.is-scrollable {
@@ -90,8 +296,19 @@
90
296
  }
91
297
  }
92
298
 
299
+ @include mobile {
300
+ &.has-gap-#{$i}-mobile {
301
+ gap: $item;
302
+
303
+ > .flex-item {
304
+ --ColumnGap: #{$item};
305
+ }
306
+ }
307
+ }
308
+
93
309
  @include tablet {
94
- &.has-gap-#{$i}:not(.is-desktop) {
310
+ &.has-gap-#{$i}:not(.is-desktop),
311
+ &.has-gap-#{$i}-tablet {
95
312
  gap: $item;
96
313
 
97
314
  > .flex-item {
@@ -9,6 +9,7 @@
9
9
  @import 'box';
10
10
  @import 'breadcrumb';
11
11
  @import 'button';
12
+ @import 'calendar';
12
13
  @import 'card';
13
14
  @import 'checkbox';
14
15
  @import 'chips';
@@ -174,6 +174,12 @@ $height-arrow-small:30px;
174
174
  }
175
175
  }
176
176
 
177
+ &.is-fullwidth .tab-list {
178
+ display: flex;
179
+ > .tab {
180
+ flex:1;
181
+ }
182
+ }
177
183
 
178
184
  &.is-small{
179
185
 
@@ -13,7 +13,7 @@ $label-weight: $weight-bold;
13
13
 
14
14
  .input-label {
15
15
  display: inline-block;
16
- margin-bottom: 6px;
16
+ margin-bottom: 8px;
17
17
  font-weight: 500;
18
18
  }
19
19
 
@@ -443,7 +443,7 @@ $label-weight: $weight-bold;
443
443
  &:has(input[disabled]), &:has(select[disabled]), &:has(textarea[disabled]) {
444
444
  @include disabledRulesWithoutBG;
445
445
  .icon {
446
- color: getColor('disabled');
446
+ color: getColor('disabled');
447
447
  }
448
448
  }
449
449
  }
@@ -593,3 +593,10 @@ $label-weight: $weight-bold;
593
593
  }
594
594
  }
595
595
  }
596
+
597
+ .group-label {
598
+ display: inline-block;
599
+ margin-bottom: 8px !important;
600
+ font-weight: 500;
601
+ line-height: 20px;
602
+ }
@@ -18,11 +18,19 @@
18
18
  display: flex;
19
19
  justify-content: space-between;
20
20
  align-items: center;
21
+ flex-wrap: wrap;
21
22
 
22
23
  .security {
23
24
  display: flex;
24
25
  align-items: center;
25
26
  margin-bottom: 4px;
27
+ flex-basis: 50%;
28
+ flex-shrink: 1;
29
+ flex-grow: 0;
30
+
31
+ &:nth-child(even) {
32
+ justify-content: flex-end;
33
+ }
26
34
 
27
35
  .icon {
28
36
  position: relative;
@@ -16,6 +16,7 @@ $colors: (
16
16
  'main':[ #3d5d7e, 'main', 'white'],
17
17
  'main-fade':[ #eff2f8, 'main-fade', 'white'],
18
18
  'accent':[ #da641b,'accent', 'white'],
19
+ 'accent-fade':[ #faebe3,'accent-fade', 'white'],
19
20
  'font':[ #3d5d7e, 'font', 'white'],
20
21
  'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
21
22
  'success':[ #007B52, 'success', 'white'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.7-esm-cjs",
3
+ "version": "0.0.8-calendar",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [