@trilogy-ds/styles 4.11.1-test-input-3 → 4.12.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.
@@ -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
+ border-spacing: 0 8px;
7
+
8
+ button {
9
+ all: unset;
10
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
11
+ background-color: getColor('main-fade');
12
+ }
13
+
14
+ &.is-active:hover, &.is-active:focus-visible,
15
+ &.is-disabled:hover, &.is-disabled:focus-visible {
16
+ filter: brightness(80%);
17
+ }
18
+ }
19
+
20
+ &-range.calendar-range-init {
21
+ .calendar-week-day:not(.calendar-date-in-range) {
22
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
23
+ background-color: getColor('main');
24
+ color: getColor('background');
25
+ }
26
+ }
27
+ }
28
+
29
+ &-date-in-range {
30
+ button:not(.is-disabled, .is-active){
31
+ background-color: getColor('main-fade');
32
+ border-radius: 0px;
33
+ &:hover {
34
+ filter: brightness(95%) ;
35
+ border-radius: 4px;
36
+ }
37
+ }
38
+
39
+ &.calendar-date-rounded-left {
40
+ button:not(.is-disabled, .is-active){
41
+ border-radius: 8px 0 0 8px;
42
+ }
43
+ }
44
+
45
+ &.calendar-date-rounded-right {
46
+ button:not(.is-disabled, .is-active){
47
+ border-radius: 0px 8px 8px 0;
48
+ }
49
+ }
50
+ }
51
+
52
+ &-next-month, &-prev-month {
53
+ padding-bottom: 16px;
54
+ button {
55
+ text-align: center;
56
+ border-radius: 4px;
57
+ width: 36px;
58
+ height: 36px;
59
+ i {
60
+ height: 100%;
61
+ }
62
+ }
63
+ }
64
+
65
+ &-week-day {
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
+ }
@@ -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';
@@ -64,7 +64,7 @@ $height-arrow-small:30px;
64
64
  .arrow-prev, .arrow-next {
65
65
  background-color: getColor('font');
66
66
  }
67
-
67
+
68
68
  }
69
69
 
70
70
  &:has(.tab-list.is-aligned-start) {
@@ -200,6 +200,13 @@ $height-arrow-small:30px;
200
200
  transition: opacity 2s ease-in-out;
201
201
  transition-delay: 1s;
202
202
 
203
+ * {
204
+ -webkit-user-select: text;
205
+ -moz-user-select: text;
206
+ -ms-user-select: text;
207
+ user-select: text;
208
+ }
209
+
203
210
  &:not(.is-active) {
204
211
  display: none;
205
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.11.1-test-input-3",
3
+ "version": "4.12.0",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [