@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-fix-timepicker

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.
Files changed (153) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +1 -52
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +9 -1
  15. package/framework/src/base/_helpers.scss +34 -44
  16. package/framework/src/base/_loading.scss +9 -2
  17. package/framework/src/base/_reset.scss +11 -1
  18. package/framework/src/components/_accordion.scss +55 -97
  19. package/framework/src/components/_autocomplete.scss +38 -0
  20. package/framework/src/components/_autolayout.scss +332 -0
  21. package/framework/src/components/_badge.scss +87 -0
  22. package/framework/src/components/_box.scss +168 -0
  23. package/framework/src/components/_breadcrumb.scss +29 -38
  24. package/framework/src/components/_button.scss +86 -0
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +32 -86
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/components/_chips.scss +84 -0
  29. package/framework/src/{elements → components}/_container.scss +7 -46
  30. package/framework/src/components/_countdown.scss +49 -47
  31. package/framework/src/components/_date-picker.scss +58 -0
  32. package/framework/src/components/_divider.scss +49 -14
  33. package/framework/src/components/_dropdown.scss +166 -99
  34. package/framework/src/components/_fab.scss +25 -38
  35. package/framework/src/components/_flex-box.scss +1005 -0
  36. package/framework/src/{elements → components}/_icon.scss +12 -11
  37. package/framework/src/components/_image.scss +69 -0
  38. package/framework/src/components/_index.scss +53 -0
  39. package/framework/src/components/_link.scss +62 -0
  40. package/framework/src/components/_list.scss +66 -0
  41. package/framework/src/{elements → components}/_loader.scss +2 -2
  42. package/framework/src/components/_modal.scss +182 -158
  43. package/framework/src/components/_otp.scss +11 -30
  44. package/framework/src/components/_pagination.scss +60 -159
  45. package/framework/src/components/_popover.scss +260 -260
  46. package/framework/src/components/_price.scss +140 -165
  47. package/framework/src/components/_product-tour.scss +2 -4
  48. package/framework/src/components/_prompt.scss +156 -0
  49. package/framework/src/components/_radio.scss +85 -0
  50. package/framework/src/components/_range.scss +73 -72
  51. package/framework/src/components/_segmented-control.scss +55 -53
  52. package/framework/src/components/_select.scss +131 -0
  53. package/framework/src/components/_stepper.scss +81 -224
  54. package/framework/src/{elements → components}/_sticker.scss +34 -29
  55. package/framework/src/components/_switch.scss +97 -191
  56. package/framework/src/components/_table.scss +244 -0
  57. package/framework/src/components/_tabs.scss +114 -98
  58. package/framework/src/components/_tag.scss +114 -0
  59. package/framework/src/components/_text.scss +55 -0
  60. package/framework/src/components/_textarea.scss +46 -0
  61. package/framework/src/components/_timeline.scss +28 -113
  62. package/framework/src/components/_timepicker-circular.scss +88 -0
  63. package/framework/src/components/_timepicker.scss +79 -0
  64. package/framework/src/components/_title.scss +151 -0
  65. package/framework/src/{elements → components/alert}/_alert.scss +15 -12
  66. package/framework/src/components/alert/_index.scss +2 -0
  67. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  68. package/framework/src/components/input/_entry.scss +135 -0
  69. package/framework/src/{elements → components/input}/_form.scss +42 -33
  70. package/framework/src/components/input/_index.scss +4 -0
  71. package/framework/src/components/input/_input-gauge.scss +44 -0
  72. package/framework/src/components/input/_input-icons.scss +55 -0
  73. package/framework/src/components/progress/_index.scss +2 -0
  74. package/framework/src/components/progress/_progress-radial.scss +28 -0
  75. package/framework/src/{elements → components/progress}/_progress.scss +33 -24
  76. package/framework/src/elements/_index.scss +5 -0
  77. package/framework/src/elements/_other.scss +0 -41
  78. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  79. package/framework/src/grid/_columns.scss +278 -763
  80. package/framework/src/grid/_rows.scss +45 -38
  81. package/framework/src/layout/_all.scss +0 -1
  82. package/framework/src/layout/_hero.scss +92 -214
  83. package/framework/src/layout/_section.scss +10 -29
  84. package/framework/src/theming/_all.scss +3 -0
  85. package/framework/src/theming/buttons_partial.scss +32 -0
  86. package/framework/src/theming/common_partials.scss +10 -0
  87. package/framework/src/theming/links_partial.scss +20 -0
  88. package/framework/src/trilogy-mangled.scss +3 -3
  89. package/framework/src/trilogy.scss +3 -2
  90. package/framework/src/utilities/_a11y.scss +13 -0
  91. package/framework/src/utilities/_all.scss +4 -0
  92. package/framework/src/utilities/_background.scss +21 -0
  93. package/framework/src/utilities/_controls.scss +38 -49
  94. package/framework/src/utilities/_derived-variables.scss +0 -103
  95. package/framework/src/utilities/_initial-variables.scss +4 -144
  96. package/framework/src/utilities/_pre.scss +4 -1
  97. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  98. package/framework/src/utilities/mixins/_delete.scss +86 -0
  99. package/framework/src/utilities/mixins/_index.scss +11 -0
  100. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  101. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  102. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  103. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  104. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  105. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  106. package/framework/src/utilities/mixins/_state.scss +25 -0
  107. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  108. package/framework/src/utilities/mixins/_utils.scss +24 -0
  109. package/framework/src/utilities/variables/_animation.scss +2 -0
  110. package/framework/src/utilities/variables/_color.scss +86 -0
  111. package/framework/src/utilities/variables/_font.scss +97 -0
  112. package/framework/src/utilities/variables/_index.scss +6 -0
  113. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  114. package/framework/src/utilities/variables/_shadow.scss +3 -0
  115. package/framework/src/utilities/variables/_zindex.scss +14 -0
  116. package/package.json +8 -3
  117. package/framework/src/components/_all.scss +0 -30
  118. package/framework/src/components/_autolayout2.scss +0 -38
  119. package/framework/src/components/_disclaimer.scss +0 -84
  120. package/framework/src/components/_level.scss +0 -120
  121. package/framework/src/components/_media.scss +0 -64
  122. package/framework/src/components/_menu.scss +0 -213
  123. package/framework/src/components/_progress-radial.scss +0 -23
  124. package/framework/src/components/_search-modal.scss +0 -197
  125. package/framework/src/components/_slices.scss +0 -316
  126. package/framework/src/components/_slider.scss +0 -92
  127. package/framework/src/elements/_all.scss +0 -35
  128. package/framework/src/elements/_badge.scss +0 -81
  129. package/framework/src/elements/_box.scss +0 -267
  130. package/framework/src/elements/_button.scss +0 -192
  131. package/framework/src/elements/_checkbox.scss +0 -39
  132. package/framework/src/elements/_checkradio.scss +0 -173
  133. package/framework/src/elements/_chips.scss +0 -100
  134. package/framework/src/elements/_dot.scss +0 -6
  135. package/framework/src/elements/_entry.scss +0 -109
  136. package/framework/src/elements/_image.scss +0 -59
  137. package/framework/src/elements/_input-gauge.scss +0 -37
  138. package/framework/src/elements/_input-icons.scss +0 -41
  139. package/framework/src/elements/_link.scss +0 -79
  140. package/framework/src/elements/_list.scss +0 -61
  141. package/framework/src/elements/_notification.scss +0 -151
  142. package/framework/src/elements/_options.scss +0 -146
  143. package/framework/src/elements/_paragraph.scss +0 -101
  144. package/framework/src/elements/_radio.scss +0 -67
  145. package/framework/src/elements/_select.scss +0 -315
  146. package/framework/src/elements/_switch.scss +0 -108
  147. package/framework/src/elements/_table.scss +0 -298
  148. package/framework/src/elements/_tag.scss +0 -131
  149. package/framework/src/elements/_textarea.scss +0 -125
  150. package/framework/src/elements/_timeline.scss +0 -283
  151. package/framework/src/elements/_title.scss +0 -139
  152. package/framework/src/layout/_toolbar.scss +0 -100
  153. package/framework/src/utilities/_mixins.scss +0 -744
@@ -2,207 +2,231 @@ $modal-content-width: 640px !default;
2
2
  $modal-content-margin-mobile: 20px !default;
3
3
  $modal-close-dimensions: 40px !default;
4
4
  $modal-dimensions: (
5
- 'xsmall': 40vw,
6
- 'small': 50vw,
7
- 'medium': 60vw,
8
- 'large': 70vw,
9
- 'xlarge': 80vw
5
+ 'xsmall': 40vw,
6
+ 'small': 50vw,
7
+ 'medium': 60vw,
8
+ 'large': 70vw,
9
+ 'xlarge': 80vw
10
10
  );
11
11
 
12
12
  body:has(.modal.is-active) {
13
- height: 100%;
14
- overflow: hidden
13
+ height: 100%;
14
+ overflow: hidden
15
15
  }
16
16
 
17
17
  .modal {
18
+ @include overlay;
19
+
20
+ position: fixed;
21
+ z-index: zindex('modal');
22
+ overflow: hidden;
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ justify-content: flex-end;
27
+ visibility: hidden;
28
+ opacity: 0;
29
+ transition: opacity 250ms ease-in-out,
30
+ visibility 0ms linear 250ms;
31
+
32
+ // overlay
33
+ &::after {
18
34
  @include overlay;
19
35
 
20
- position: fixed;
21
- z-index: zindex('modal');
22
- overflow: hidden;
23
- display: flex;
24
- flex-direction: column;
25
- align-items: center;
26
- justify-content: flex-end;
27
- visibility: hidden;
28
- opacity: 0;
29
- transition:
30
- opacity 250ms ease-in-out,
31
- visibility 0ms linear 250ms;
32
-
33
- // overlay
34
- &::after {
35
- @include overlay;
36
+ content: '';
37
+ background-color: rgba(#000, 0.86);
38
+ }
39
+
40
+ &.is-active {
41
+ opacity: 1;
42
+ visibility: inherit;
43
+ transition: opacity 250ms ease-in-out,
44
+ visibility 0ms linear;
36
45
 
37
- content: '';
38
- background-color: rgba(#000, 0.86);
46
+ .modal-content {
47
+ transform: translateY(0);
39
48
  }
49
+ }
40
50
 
41
- &.is-active {
42
- opacity: 1;
43
- visibility: inherit;
44
- transition:
45
- opacity 250ms ease-in-out,
46
- visibility 0ms linear;
51
+ @include tablet {
52
+ justify-content: center;
53
+ @each $name, $dimension in $modal-dimensions {
54
+ &.is-#{$name} {
47
55
  .modal-content {
48
- transform: translateY(0);
56
+ width: $dimension;
49
57
  }
58
+ }
50
59
  }
60
+ }
61
+
62
+ // spécificité pour le bouton en position: relative par défaut
63
+ .button {
64
+ position: static;
65
+ }
66
+
67
+ .modal-content {
68
+ background-color: getColor('background');
69
+ border-radius: var(--radius) var(--radius) 0 0;
70
+ color: getColor('font');
71
+ overflow: auto;
72
+ position: relative;
73
+ margin: 0 $modal-content-margin-mobile;
74
+ max-height: calc(100vh - 40px);
75
+ width: 100%;
76
+ z-index: zindex('tiny');
77
+ transition: transform ease-in-out 250ms;
78
+ transform: translateY(50%);
51
79
 
52
- // gestion des tailles
53
80
  @include tablet {
54
- justify-content: center;
55
- @each $dimension in $dimensions-extended {
56
- &.is-#{$dimension} {
57
- .modal-content {
58
- width: map-get($modal-dimensions, $dimension);
59
- }
60
- }
61
- }
81
+ max-height: calc(100vh - 120px);
82
+ width: $modal-content-width;
83
+ border-radius: $radius;
62
84
  }
63
85
 
64
- // spécificité pour le bouton en position: relative par défaut
65
- .button {
66
- position: static;
86
+ // Annulation des propriétés du composant box, se trouvant dans une modal
87
+ > .box {
88
+ background-color: transparent;
89
+ border-radius: 0;
90
+ box-shadow: none;
91
+ padding: 0;
92
+ max-height: inherit;
93
+
94
+ .box-content {
95
+ background-color: transparent;
96
+ border-radius: 0;
97
+ padding: 0;
98
+ padding-bottom: 30px;
99
+ margin: 0;
100
+ text-align: inherit;
101
+ }
67
102
  }
68
103
 
69
- // ancien overlay : n'a plus d'utilité mais conservée pour rétrocompatibilité
70
- .modal-background {
71
- display: none;
104
+ // If Close Icon Modal & Title Modal are sibling elements, override margin
105
+ .modal-close ~ .modal-title {
106
+ margin-top: -32px;
72
107
  }
73
108
 
74
- .modal-content {
75
- background-color: getColor('background');
76
- border-radius: $radius $radius 0 0;
77
- color: getColor('font');
78
- overflow: auto;
79
- position: relative;
80
- padding: 0 30px 30px;
81
- margin: 0 $modal-content-margin-mobile;
82
- max-height: calc(100vh - 40px);
109
+ .modal-header {
110
+ padding: $spacing-5;
111
+ color: getColor('font');
112
+ font-family: $family-primary;
113
+ font-size: $size-3;
114
+ font-weight: $weight-semibold;
115
+ line-height: 1.1;
116
+ background-color: getColor('background');
117
+ z-index: zindex('medium');
118
+ position: sticky;
119
+ top: 0;
120
+ width: 100%;
121
+ word-wrap: break-word;
122
+ display: flex;
123
+ justify-content: space-between;
124
+
125
+ &:has(.modal-close) {
126
+ flex-direction: row-reverse;
127
+ }
128
+
129
+ &:has(.icon) {
83
130
  text-align: center;
84
- width: 100%;
85
- z-index: zindex('tiny');
86
- transition: transform ease-in-out 250ms;
87
- transform: translateY(100%);
88
-
89
- &.is-fullwidth {
90
- width: 100% !important;
91
- }
131
+ }
92
132
 
93
- @include tablet {
94
- max-height: calc(100vh - 120px);
95
- width: $modal-content-width;
96
- border-radius: $radius;
97
- }
98
-
99
- // Annulation des propriétés du composant box, se trouvant dans une modal
100
- > .box {
101
- background-color: transparent;
102
- border-radius: 0;
103
- box-shadow: none;
104
- padding: 0;
105
- max-height: inherit;
106
-
107
- .box-content {
108
- background-color: transparent;
109
- border-radius: 0;
110
- padding: 0;
111
- padding-bottom: 30px;
112
- margin: 0;
113
- text-align: inherit;
114
- }
115
- }
116
-
117
- .modal-footer {
118
- position: sticky;
119
- background: getColor('background');
120
- bottom: -30px;
121
- margin: 30px -30px -30px;
122
- padding: 20px 30px;
123
- }
133
+ @include desktop {
134
+ font-size: $size-3-desktop;
135
+ }
124
136
 
125
- // If Close Icon Modal & Title Modal are sibling elements, override margin
126
- .modal-close ~ .modal-title {
127
- margin-top: -32px;
128
- }
129
- }
130
-
131
- .modal-close {
137
+ .modal-close {
132
138
  @include delete;
133
139
 
134
140
  background-color: getColor('background');
135
- position: sticky;
136
- top: 20px;
137
- left: 100%;
138
141
  display: block;
139
142
  height: $modal-close-dimensions;
140
143
  width: $modal-close-dimensions;
141
- z-index: zindex('medium');
144
+ z-index: zindex('large');
142
145
 
143
- &:hover {
144
- background-color: getColor('grey-light');
146
+ #{$hoverSelector} {
147
+ background-color: getColor('neutral-fade');
145
148
  }
146
149
 
147
150
  &::after,
148
151
  &::before {
149
- background-color: getColor('font');
152
+ background-color: getColor('font');
150
153
  }
151
- }
152
154
 
153
- .modal-title {
154
- color: getColor('font');
155
- font-family: $family-sans-serif;
156
- font-size: $size-3;
157
- font-weight: $weight-semibold;
158
- line-height: 1.1;
159
- background-color: getColor('background');
160
- z-index: zindex('small');
161
- position: sticky;
162
- top: 0;
163
- padding: 20px 0;
164
- width: 100%;
165
- word-wrap: break-word;
166
-
167
- @include desktop {
168
- font-size: $size-3-desktop;
155
+ &:focus-visible,
156
+ &:focus:focus-visible {
157
+ outline: 2px solid getColor('font') !important;
158
+ outline-offset: 2px;
159
+ }
160
+ &:focus{
161
+ background-color: transparent !important;
169
162
  }
163
+ }
170
164
  }
171
165
 
172
- // version "panel" de la modal
173
- &.is-panel {
174
- &::after {
175
- position: fixed;
176
- }
166
+ .modal-body {
167
+ padding: 0 $spacing-5 $spacing-5 ;
168
+ }
169
+ &:has(>.modal-footer) > .modal-body {
170
+ padding-bottom: 0;
171
+ }
177
172
 
178
- .modal-content {
179
- border-radius: 0;
180
- position: fixed;
181
- right: 0;
182
- top: 0;
183
- min-height: 100%;
184
- height: 100%;
185
- max-height: none;
186
- margin: 0;
187
- text-align: left;
188
- display: flex;
189
- flex-direction: column;
190
- align-items: flex-start;
191
- transform: translateX(100%);
192
-
193
- @include tablet {
194
- max-width: 375px;
195
- }
196
-
197
- .modal-footer {
198
- margin-top: auto;
199
- }
200
- }
173
+ .modal-footer {
174
+ padding: $spacing-5;
175
+ position: sticky;
176
+ width: 100%;
177
+ background: getColor('background');
178
+ bottom: 0;
179
+
180
+ .buttons {
181
+ display: flex;
182
+ flex-direction: column-reverse;
183
+ }
184
+
185
+ @include tablet {
186
+ display: flex;
187
+ justify-content: flex-end;
201
188
 
202
- &.is-active {
203
- .modal-content {
204
- transform: translateX(0);
205
- }
189
+ .buttons {
190
+ flex-direction: row;
206
191
  }
192
+ }
193
+ }
194
+ }
195
+
196
+ // version "panel" de la modal
197
+ &.is-panel {
198
+ &::after {
199
+ position: fixed;
200
+ }
201
+
202
+ .modal-content {
203
+ border-radius: 0;
204
+ position: fixed;
205
+ right: 0;
206
+ top: 0;
207
+ min-height: 100%;
208
+ height: 100%;
209
+ max-height: none;
210
+ margin: 0;
211
+ text-align: left;
212
+ display: flex;
213
+ flex-direction: column;
214
+ align-items: flex-start;
215
+ transform: translateX(100%);
216
+
217
+ @include tablet {
218
+ max-width: 375px;
219
+ }
220
+
221
+ .modal-footer {
222
+ margin-top: auto;
223
+ }
224
+ }
225
+
226
+ &.is-active {
227
+ .modal-content {
228
+ transform: translateX(0);
229
+ }
207
230
  }
231
+ }
208
232
  }
@@ -3,15 +3,17 @@
3
3
  flex-wrap: nowrap;
4
4
 
5
5
  .otp {
6
+ @include hover();
6
7
  outline: none;
7
- border: 1px solid currentColor;
8
- border-radius: 4px;
8
+ border: var(--border);
9
+ border-radius: var(--radius-small);
9
10
  background: transparent;
10
11
  width: 33px;
11
12
  height: 40px;
12
13
  margin: 4px 4px 0 4px;
13
14
  text-align: center;
14
- color: getColor('grey');
15
+ color: getColor('main');
16
+
15
17
  &:first-child {
16
18
  margin: 4px 4px 0 0;
17
19
  }
@@ -24,13 +26,7 @@
24
26
 
25
27
  &.is-danger {
26
28
  .otp {
27
- border: 2px solid getColor('error');
28
- }
29
- }
30
-
31
- &.is-tertiary {
32
- .otp {
33
- border: 2px solid getColor('font');
29
+ border: 1px solid getColor('error');
34
30
  }
35
31
  }
36
32
 
@@ -42,7 +38,7 @@
42
38
 
43
39
  &.is-focus {
44
40
  .otp {
45
- border: 2px solid getColor('alternate');;
41
+ border: 1px solid getColor('font');;
46
42
  color: getColor('font')
47
43
  }
48
44
  }
@@ -50,43 +46,28 @@
50
46
 
51
47
  &.is-error {
52
48
  .otp {
53
- border: 2px solid getColor('error');
49
+ border: 1px solid getColor('error');
54
50
  color: getColor('font')
55
51
  }
56
52
  }
57
53
 
58
- &.is-tertiary {
59
- .otp {
60
- border: 2px solid getColor('font');
61
- }
62
- }
63
-
64
- &.is-disabled {
65
- .otp {
66
- border: none !important;
67
- background: getColor('grey-disabled');
68
- pointer-events: none;
69
- color: getColor('grey');
70
- }
71
- }
72
-
73
54
  }
74
55
 
75
56
  .otp-list:focus-within {
76
57
  .otp {
77
- border: 2px solid getColor('alternate');;
58
+ border: 1px solid getColor('font');;
78
59
  color: getColor('font');
79
60
  }
80
61
  }
81
62
 
82
63
  .otp-list.is-error:focus-within {
83
64
  .otp {
84
- border: 2px solid getColor('error');
65
+ border: 1px solid getColor('error');
85
66
  color: getColor('font');
86
67
  }
87
68
  }
88
69
 
89
- .otp-error-message {
70
+ .help {
90
71
  font-size: $text-12;
91
72
  margin-top: 4px;
92
73
  }