@trilogy-ds/styles 0.0.1-beta.8 → 0.0.1-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.
Files changed (143) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +1 -52
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +9 -1
  9. package/framework/src/base/_helpers.scss +34 -44
  10. package/framework/src/base/_loading.scss +9 -2
  11. package/framework/src/base/_reset.scss +11 -1
  12. package/framework/src/components/_accordion.scss +55 -89
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +332 -0
  15. package/framework/src/components/_badge.scss +87 -0
  16. package/framework/src/components/_box.scss +168 -0
  17. package/framework/src/components/_breadcrumb.scss +29 -38
  18. package/framework/src/components/_button.scss +79 -0
  19. package/framework/src/components/_calendar.scss +125 -0
  20. package/framework/src/components/_card.scss +33 -87
  21. package/framework/src/components/_checkbox.scss +71 -0
  22. package/framework/src/components/_chips.scss +84 -0
  23. package/framework/src/{elements → components}/_container.scss +7 -39
  24. package/framework/src/components/_countdown.scss +49 -47
  25. package/framework/src/components/_divider.scss +25 -14
  26. package/framework/src/components/_fab.scss +25 -38
  27. package/framework/src/components/_flex-box.scss +457 -0
  28. package/framework/src/{elements → components}/_icon.scss +4 -4
  29. package/framework/src/components/_image.scss +69 -0
  30. package/framework/src/components/_index.scss +48 -0
  31. package/framework/src/components/_link.scss +58 -0
  32. package/framework/src/components/_list.scss +66 -0
  33. package/framework/src/{elements → components}/_loader.scss +2 -2
  34. package/framework/src/components/_modal.scss +182 -158
  35. package/framework/src/components/_otp.scss +11 -30
  36. package/framework/src/components/_pagination.scss +60 -159
  37. package/framework/src/components/_popover.scss +260 -260
  38. package/framework/src/components/_price.scss +140 -165
  39. package/framework/src/components/_product-tour.scss +2 -4
  40. package/framework/src/components/_radio.scss +82 -0
  41. package/framework/src/components/_range.scss +73 -72
  42. package/framework/src/components/_segmented-control.scss +55 -53
  43. package/framework/src/components/_select.scss +131 -0
  44. package/framework/src/components/_stepper.scss +42 -222
  45. package/framework/src/{elements → components}/_sticker.scss +25 -28
  46. package/framework/src/components/_switch.scss +97 -191
  47. package/framework/src/components/_table.scss +244 -0
  48. package/framework/src/components/_tabs.scss +101 -98
  49. package/framework/src/components/_tag.scss +114 -0
  50. package/framework/src/components/_text.scss +55 -0
  51. package/framework/src/components/_textarea.scss +46 -0
  52. package/framework/src/components/_timeline.scss +28 -113
  53. package/framework/src/components/_title.scss +151 -0
  54. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  55. package/framework/src/components/alert/_index.scss +2 -0
  56. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  57. package/framework/src/components/input/_entry.scss +135 -0
  58. package/framework/src/{elements → components/input}/_form.scss +42 -33
  59. package/framework/src/components/input/_index.scss +4 -0
  60. package/framework/src/components/input/_input-gauge.scss +44 -0
  61. package/framework/src/components/input/_input-icons.scss +55 -0
  62. package/framework/src/components/progress/_index.scss +2 -0
  63. package/framework/src/components/progress/_progress-radial.scss +28 -0
  64. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  65. package/framework/src/elements/_index.scss +5 -0
  66. package/framework/src/elements/_other.scss +0 -41
  67. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  68. package/framework/src/grid/_columns.scss +278 -763
  69. package/framework/src/grid/_rows.scss +45 -38
  70. package/framework/src/layout/_all.scss +0 -1
  71. package/framework/src/layout/_hero.scss +92 -214
  72. package/framework/src/layout/_section.scss +10 -29
  73. package/framework/src/theming/_all.scss +3 -0
  74. package/framework/src/theming/buttons_partial.scss +32 -0
  75. package/framework/src/theming/common_partials.scss +10 -0
  76. package/framework/src/theming/links_partial.scss +20 -0
  77. package/framework/src/trilogy-mangled.scss +3 -3
  78. package/framework/src/trilogy.scss +2 -2
  79. package/framework/src/utilities/_a11y.scss +13 -0
  80. package/framework/src/utilities/_all.scss +4 -0
  81. package/framework/src/utilities/_background.scss +21 -0
  82. package/framework/src/utilities/_controls.scss +38 -49
  83. package/framework/src/utilities/_derived-variables.scss +0 -103
  84. package/framework/src/utilities/_initial-variables.scss +4 -144
  85. package/framework/src/utilities/_pre.scss +4 -1
  86. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  87. package/framework/src/utilities/mixins/_delete.scss +86 -0
  88. package/framework/src/utilities/mixins/_index.scss +11 -0
  89. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  90. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  91. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  92. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  93. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  94. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  95. package/framework/src/utilities/mixins/_state.scss +25 -0
  96. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  97. package/framework/src/utilities/mixins/_utils.scss +24 -0
  98. package/framework/src/utilities/variables/_animation.scss +2 -0
  99. package/framework/src/utilities/variables/_color.scss +85 -0
  100. package/framework/src/utilities/variables/_font.scss +97 -0
  101. package/framework/src/utilities/variables/_index.scss +6 -0
  102. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  103. package/framework/src/utilities/variables/_shadow.scss +3 -0
  104. package/framework/src/utilities/variables/_zindex.scss +14 -0
  105. package/package.json +3 -3
  106. package/framework/src/components/_all.scss +0 -30
  107. package/framework/src/components/_autolayout2.scss +0 -38
  108. package/framework/src/components/_disclaimer.scss +0 -84
  109. package/framework/src/components/_dropdown.scss +0 -128
  110. package/framework/src/components/_level.scss +0 -120
  111. package/framework/src/components/_media.scss +0 -64
  112. package/framework/src/components/_menu.scss +0 -213
  113. package/framework/src/components/_progress-radial.scss +0 -23
  114. package/framework/src/components/_search-modal.scss +0 -197
  115. package/framework/src/components/_slices.scss +0 -316
  116. package/framework/src/components/_slider.scss +0 -92
  117. package/framework/src/elements/_all.scss +0 -35
  118. package/framework/src/elements/_badge.scss +0 -81
  119. package/framework/src/elements/_box.scss +0 -267
  120. package/framework/src/elements/_button.scss +0 -192
  121. package/framework/src/elements/_checkbox.scss +0 -39
  122. package/framework/src/elements/_checkradio.scss +0 -173
  123. package/framework/src/elements/_chips.scss +0 -100
  124. package/framework/src/elements/_dot.scss +0 -6
  125. package/framework/src/elements/_entry.scss +0 -109
  126. package/framework/src/elements/_image.scss +0 -59
  127. package/framework/src/elements/_input-gauge.scss +0 -37
  128. package/framework/src/elements/_input-icons.scss +0 -41
  129. package/framework/src/elements/_link.scss +0 -79
  130. package/framework/src/elements/_list.scss +0 -61
  131. package/framework/src/elements/_notification.scss +0 -151
  132. package/framework/src/elements/_options.scss +0 -146
  133. package/framework/src/elements/_paragraph.scss +0 -101
  134. package/framework/src/elements/_radio.scss +0 -67
  135. package/framework/src/elements/_select.scss +0 -315
  136. package/framework/src/elements/_switch.scss +0 -108
  137. package/framework/src/elements/_table.scss +0 -298
  138. package/framework/src/elements/_tag.scss +0 -131
  139. package/framework/src/elements/_textarea.scss +0 -125
  140. package/framework/src/elements/_timeline.scss +0 -283
  141. package/framework/src/elements/_title.scss +0 -139
  142. package/framework/src/layout/_toolbar.scss +0 -100
  143. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,85 +1,94 @@
1
- .tab-context {
1
+ $height-tab-default: 64px;
2
+ $height-arrow-default:48px;
3
+ $height-arrow-small:30px;
4
+
5
+ .tabs {
2
6
  @include overflow-touch;
3
7
  @include unselectable;
4
8
 
5
9
  align-items: stretch;
6
10
  justify-content: space-between;
7
11
  font-weight: $weight-normal;
8
- background: white;
9
12
  width: 100%;
10
13
  text-align: center;
11
- overflow: scroll;
12
- overflow: -moz-scrollbars-none !important;
13
- -ms-overflow-style: none !important;
14
- scrollbar-width: none;
14
+ overflow: hidden;
15
+ position: relative;
16
+
17
+
18
+ .arrow-prev, .arrow-next {
19
+ z-index: 1;
20
+ height: 44px;
21
+ position: absolute;
22
+ top: 0px;
23
+ transition: opacity 0.3s ease;
24
+ opacity: 1;
25
+ background-color: getColor('background');
26
+ }
15
27
 
16
- @include mobile {
17
- text-align: left;
28
+ .arrow-prev {
29
+ left: 0px;
18
30
  }
19
31
 
32
+ .arrow-next {
33
+ right: 0px;
34
+ }
35
+
36
+
20
37
  &::-webkit-scrollbar {
21
38
  width: 0 !important;
22
39
  height: 0 !important;
40
+ scrollbar-width: none !important;
23
41
  }
24
42
 
25
43
  &.is-inverted {
26
44
  background-color: getColor('font');
27
- .tabs > .tab {
45
+
46
+ .tab-list > .tab {
47
+ color: getColor('background') !important;
48
+
49
+ &.is-active {
50
+ border-bottom-color: currentColor;
51
+ }
52
+
53
+ #{$hoverSelector} {
28
54
  color: getColor('background') !important;
55
+ cursor: pointer;
56
+ }
29
57
 
30
- &.is-active {
31
- &::after {
32
- content: "";
33
- width: calc(100% - 16px);
34
- height: 2px;
35
- border-radius: 2px;
36
- font-size: 20px;
37
- background-color: getColor('background');
38
- bottom: -2px;
39
- left: 8px;
40
- }
41
- }
42
- &:hover:not(.is-disabled) {
43
- color: getColor('background') !important;
44
- cursor: pointer;
45
- }
58
+ &:focus-visible {
59
+ border-color: getColor('background');
60
+ }
46
61
 
47
- &:focus-visible {
48
- border-color: getColor('background');
49
- }
62
+ }
50
63
 
51
- &.is-disabled {
52
- color: getColor('grey-light');
53
- }
64
+ .arrow-prev, .arrow-next {
65
+ background-color: getColor('font');
54
66
  }
67
+
55
68
  }
56
69
 
57
- &.has-text-left {
58
- .tabs > .tab:first-child {
59
- margin-left: 24px;
60
- }
70
+ &:has(.tab-list.is-aligned-start) {
71
+ text-align: left;
61
72
  }
62
73
 
63
- .tabs {
74
+ &:has(.tab-list.is-aligned-end) {
75
+ text-align: right;
76
+ }
77
+
78
+ .tab-list {
64
79
  background-color: transparent;
65
80
  height: 48px;
66
81
  overflow-x: auto;
67
82
  white-space: nowrap;
68
- display: inline-flex;
69
-
70
- &.is-centered {
71
- justify-content: center;
72
- }
73
-
74
- &.is-right {
75
- justify-content: flex-end;
76
- }
83
+ overflow-y: hidden;
84
+ max-width: 100%;
77
85
 
78
- &.is-left {
79
- justify-content: flex-start;
86
+ &::-webkit-scrollbar {
87
+ width: 0 !important;
88
+ height: 0 !important;
89
+ scrollbar-width: none !important;
80
90
  }
81
91
 
82
-
83
92
  &.is-fullwidth {
84
93
  @include desktop {
85
94
  > * {
@@ -93,71 +102,48 @@
93
102
  box-shadow: none;
94
103
  }
95
104
 
96
- &.is-icons {
97
- height: 64px;
105
+ @include mobile {
106
+ justify-content: flex-start;
98
107
  }
99
108
 
100
- @include mobile {
101
- justify-content: flex-start ;
102
- > .tab:first-child {
103
- margin-left: 24px;
109
+ &:has(.tab .icon) {
110
+ height: 64px;
111
+ .arrow-prev, .arrow-next {
112
+ height: 60px;
104
113
  }
105
114
  }
106
115
 
107
116
  > .tab {
117
+ display: inline-block;
118
+ line-height: normal;
119
+ font-family: $family-primary;
108
120
  height: calc(100% - 4px);
109
121
  background-color: transparent;
110
- border: none;
111
122
  color: getColor('font');
112
- font-family: $body-family;
113
123
  text-decoration: none;
114
124
  outline: none;
115
- padding: 6px;
116
- font-size: $text-14;
117
- border: 2px solid transparent;
118
- border-radius: 4px;
119
-
120
- &:not(:last-child) {
121
- margin-right: 16px;
122
- }
125
+ padding: 12px 24px;
126
+ font-size: $text-16;
127
+ border: 0px solid transparent;
128
+ border-bottom: 1px solid getColor('neutral');
123
129
 
124
130
  .tab-icon {
125
131
  margin-top: 2px;
126
132
  }
127
133
 
128
- &:not(button) {
129
- .tab-icon {
130
- margin-top: 4px;
131
- }
132
- }
133
-
134
- @include mobile {
135
- font-size: $text-14;
136
- }
137
-
138
-
139
-
140
134
  &.is-active {
141
- color: getColor('alternate');
142
- font-weight: $weight-semibold;
135
+ color: getColor('main');
143
136
  position: relative;
144
-
145
- &::after {
146
- content: "";
147
- width: calc(100% - 16px);
148
- height: 2px;
149
- border-radius: 2px;
150
- font-size: 20px;
151
- background-color: getColor('alternate');
152
- position: absolute;
153
- bottom: -2px;
154
- left: 8px
155
- }
137
+ border-bottom-color: getColor('main');
138
+ font-weight: $weight-bold;
139
+ border-bottom-width: 2px;
156
140
  }
157
141
 
158
- &:hover:not(.is-disabled) {
159
- color: getColor('alternate');
142
+ &:hover:not([disabled]) {
143
+ color: getColor('main');
144
+ border-bottom-color: currentColor;
160
145
  cursor: pointer;
146
+ border-bottom-width: 2px;
161
147
 
162
148
  .icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
163
149
  font-size: 22px !important;
@@ -165,26 +151,41 @@
165
151
  }
166
152
  }
167
153
 
168
- &:focus-visible{
154
+ &:focus-visible {
169
155
  border-color: currentColor;
170
- color: getColor('alternate');
156
+ color: getColor('main');
171
157
  }
172
158
 
173
159
  .icon {
174
160
  height: 0;
175
161
  }
176
162
 
177
- .icon.is-small, .icon.is-small{
163
+ .icon.is-small, .icon.is-small {
178
164
  font-size: 22px;
179
165
  }
180
166
 
181
- &.is-disabled {
182
- color: getColor('grey');
183
- cursor: default;
167
+ &[disabled], &[aria-disabled=true] {
168
+ background-color: transparent !important;
169
+ border-bottom-color: getColor('neutral') !important;
170
+ &.is-active{
171
+ border-bottom-color: currentColor !important;
172
+ }
184
173
  }
185
174
  }
186
175
  }
187
176
 
177
+
178
+ &.is-small{
179
+
180
+ .tab-list {
181
+ & > .tab {
182
+ font-size: $text-14 ;
183
+ padding: 12px 16px;
184
+ }
185
+ }
186
+ }
187
+
188
+
188
189
  .tab-panels {
189
190
  padding-top: $spacing-3;
190
191
  padding-bottom: $spacing-3;
@@ -192,6 +193,7 @@
192
193
  .tab-panel {
193
194
  transition: opacity 2s ease-in-out;
194
195
  transition-delay: 1s;
196
+
195
197
  &:not(.is-active) {
196
198
  display: none;
197
199
  }
@@ -199,6 +201,7 @@
199
201
  &.is-active {
200
202
  animation: fade-in 250ms;
201
203
  }
204
+
202
205
  @keyframes fade-in {
203
206
  from {
204
207
  opacity: 0;
@@ -0,0 +1,114 @@
1
+ $tag-delete-margin: 1px !default;
2
+
3
+ // container pour multi-tags ou tags avec actions
4
+ .tags {
5
+ display: flex;
6
+ justify-content: flex-start;
7
+ align-items: center;
8
+ flex-wrap: wrap;
9
+ gap: $spacing-3;
10
+ // multi-tags : ajout d'une marge à droite de chaque tag
11
+
12
+ // centrage des tags
13
+ &.is-centered {
14
+ justify-content: center;
15
+ }
16
+
17
+ // tags avec actions
18
+ &.has-addons {
19
+ cursor: pointer;
20
+
21
+ .tag {
22
+
23
+ &:not(:first-child) {
24
+ border-bottom-left-radius: 0;
25
+ border-top-left-radius: 0;
26
+ }
27
+
28
+ &:not(:last-child) {
29
+ border-bottom-right-radius: 0;
30
+ border-top-right-radius: 0;
31
+ }
32
+
33
+ &:first-child {
34
+ padding-right: 5px;
35
+ }
36
+
37
+ + .tag {
38
+ padding: 0;
39
+ position: relative;
40
+ width: 25px;
41
+ border-width: 0;
42
+
43
+ // fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
44
+ cursor: inherit;
45
+
46
+ // affichage d'une fausse croix avec 2 traits penchés
47
+ &:empty {
48
+ &::before,
49
+ &::after {
50
+ position: absolute;
51
+ content: '';
52
+ height: 10px;
53
+ width: 2px;
54
+ background-color: currentColor;
55
+ top: 50%;
56
+ left: 30%;
57
+ }
58
+
59
+ &::before {
60
+ transform: translate(50%, -50%) rotate(45deg);
61
+ }
62
+
63
+ &::after {
64
+ transform: translate(50%, -50%) rotate(-45deg);
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ &.is-inverted {
71
+ .tag {
72
+ background-color: getColor('background');
73
+ }
74
+ }
75
+
76
+ }
77
+ }
78
+
79
+ .tag {
80
+ align-items: center;
81
+ background-color: getColor('neutral-fade');
82
+ border-radius: 9999px;
83
+ color: getColor('font');
84
+ display: inline-flex;
85
+ font-size: $size-medium;
86
+ font-weight: $weight-medium;
87
+ height: 28px;
88
+ justify-content: center;
89
+ line-height: 20px;
90
+ padding: $spacing-1 $spacing-2;
91
+ white-space: nowrap;
92
+
93
+ &.is-small {
94
+ font-size: $text-12;
95
+ line-height: 15px;
96
+ height: 23px;
97
+ }
98
+
99
+
100
+ @include mobile {
101
+ font-size: 12px;
102
+ line-height: 15px;
103
+ }
104
+
105
+ @each $name in $colors-feedback {
106
+ &.is-#{$name}:not(.is-inverted) {
107
+ background-color: fadeColor($name);
108
+ }
109
+ &.is-inverted.is-#{$name} {
110
+ color: getColor($name);
111
+ background-color: invertColor($name);
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,55 @@
1
+ @import "../utilities/variables/_font.scss";
2
+
3
+ .text {
4
+ @each $text-level in $text-levels {
5
+ $i: index($text-levels, $text-level);
6
+ $font-size: nth($text-level, 1);
7
+ $line-height: nth($text-level, 2);
8
+
9
+ &.is-level-#{$i} {
10
+ font-size: $font-size;
11
+ line-height: $line-height;
12
+ font-family: $family-primary;
13
+ }
14
+ }
15
+
16
+ &.is-inverted {
17
+ color: getColor('background');
18
+ }
19
+
20
+ @include mobile {
21
+ @each $text-level-mobile in $text-levels-mobile {
22
+ $i: index($text-levels-mobile, $text-level-mobile);
23
+ }
24
+ }
25
+
26
+ &.is-wrapped {
27
+ word-break: break-word;
28
+ }
29
+
30
+ &.bold {
31
+ font-weight: $weight-bold;
32
+ }
33
+ }
34
+
35
+ .span {
36
+ font-style: inherit;
37
+ font-weight: inherit;
38
+ }
39
+
40
+ .strong {
41
+ color: inherit;
42
+ font-weight: $weight-bold;
43
+ }
44
+
45
+ .sup {
46
+ line-height: 0;
47
+ position: relative;
48
+ vertical-align: baseline;
49
+ top: -0.4em;
50
+ font-size: 0.7em;
51
+ }
52
+
53
+ .small {
54
+ font-size: 0.875em;
55
+ }
@@ -0,0 +1,46 @@
1
+ .textarea-wrapper {
2
+
3
+ .textarea-label {
4
+ display: inline-block;
5
+ margin-bottom: 6px;
6
+ }
7
+
8
+ .textarea-sample {
9
+ margin-bottom: 10px !important;
10
+ }
11
+
12
+ textarea.textarea {
13
+ &::placeholder, label {
14
+ font-size: 16px;
15
+ }
16
+ }
17
+
18
+ .icon {
19
+ align-items: flex-start !important;
20
+ padding-top: 18px !important;
21
+ }
22
+
23
+ // Colors
24
+ @each $name, $pair in $colors-brand-functionnal {
25
+ $color: getColor($name);
26
+ $color-invert: invertColor($name);
27
+ $brandName: getColorBrandName($name);
28
+ &.is-#{$brandName} {
29
+ textarea.textarea {
30
+ border-color: $color;
31
+ }
32
+
33
+ }
34
+ }
35
+
36
+ .counter {
37
+ position: absolute;
38
+ bottom: $spacing-2;
39
+ right: $spacing-4;
40
+ font-size: 10px;
41
+ }
42
+
43
+ .help ~ .counter {
44
+ bottom: $spacing-6;
45
+ }
46
+ }