@trilogy-ds/styles 0.0.1-beta-3 → 0.0.1-beta.10

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 (86) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +10 -29
  8. package/framework/src/base/_loading.scss +7 -0
  9. package/framework/src/components/_accordion.scss +10 -36
  10. package/framework/src/components/_all.scss +0 -3
  11. package/framework/src/components/_breadcrumb.scss +39 -34
  12. package/framework/src/components/_card.scss +6 -5
  13. package/framework/src/components/_countdown.scss +49 -47
  14. package/framework/src/components/_disclaimer.scss +6 -5
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_dropdown.scss +95 -101
  17. package/framework/src/components/_fab.scss +6 -21
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +172 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +109 -131
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +1 -4
  24. package/framework/src/components/_price.scss +118 -169
  25. package/framework/src/components/_product-tour.scss +1 -3
  26. package/framework/src/components/_segmented-control.scss +39 -51
  27. package/framework/src/components/_slider.scss +70 -70
  28. package/framework/src/components/_stepper.scss +16 -140
  29. package/framework/src/components/_tabs.scss +32 -55
  30. package/framework/src/components/_timeline.scss +49 -42
  31. package/framework/src/elements/_alert.scss +4 -5
  32. package/framework/src/elements/_all.scss +0 -2
  33. package/framework/src/elements/_badge.scss +54 -59
  34. package/framework/src/elements/_box.scss +5 -23
  35. package/framework/src/elements/_button.scss +29 -129
  36. package/framework/src/elements/_checkbox.scss +21 -27
  37. package/framework/src/elements/_chips.scss +76 -81
  38. package/framework/src/elements/_entry.scss +73 -89
  39. package/framework/src/elements/_form.scss +15 -15
  40. package/framework/src/elements/_input-gauge.scss +36 -32
  41. package/framework/src/elements/_link.scss +47 -62
  42. package/framework/src/elements/_list.scss +0 -36
  43. package/framework/src/elements/_notification.scss +2 -3
  44. package/framework/src/elements/_other.scss +1 -1
  45. package/framework/src/elements/_paragraph.scss +4 -26
  46. package/framework/src/elements/_progress.scss +9 -18
  47. package/framework/src/elements/_radio.scss +1 -1
  48. package/framework/src/elements/_select.scss +209 -245
  49. package/framework/src/elements/_sticker.scss +8 -9
  50. package/framework/src/elements/_switch.scss +85 -88
  51. package/framework/src/elements/_table.scss +11 -72
  52. package/framework/src/elements/_tag.scss +104 -104
  53. package/framework/src/elements/_textarea.scss +92 -106
  54. package/framework/src/elements/_title.scss +86 -84
  55. package/framework/src/elements/_toaster.scss +2 -3
  56. package/framework/src/grid/_columns.scss +5 -5
  57. package/framework/src/layout/_hero.scss +129 -211
  58. package/framework/src/layout/_section.scss +3 -3
  59. package/framework/src/layout/_toolbar.scss +6 -6
  60. package/framework/src/utilities/_controls.scss +37 -39
  61. package/framework/src/utilities/_derived-variables.scss +3 -14
  62. package/framework/src/utilities/_initial-variables.scss +38 -23
  63. package/framework/src/utilities/_mixins.scss +522 -582
  64. package/package.json +4 -3
  65. package/framework/src/components/_menu.scss +0 -213
  66. package/framework/src/components/_search-modal.scss +0 -197
  67. package/framework/src/components/_slices.scss +0 -316
  68. package/framework/src/components/_switch.scss +0 -209
  69. package/framework/src/elements/_checkradio.scss +0 -173
  70. package/framework/src/elements/_options.scss +0 -146
  71. package/framework/src/elements/_timeline.scss +0 -283
  72. /package/dist/default/assets/icons/all/{all/alert.svg → alert.svg} +0 -0
  73. /package/dist/default/assets/icons/all/{all/arrow-down.svg → arrow-down.svg} +0 -0
  74. /package/dist/default/assets/icons/all/{all/arrow-left.svg → arrow-left.svg} +0 -0
  75. /package/dist/default/assets/icons/all/{all/arrow-right.svg → arrow-right.svg} +0 -0
  76. /package/dist/default/assets/icons/all/{all/arrow-up.svg → arrow-up.svg} +0 -0
  77. /package/dist/default/assets/icons/all/{all/bell.svg → bell.svg} +0 -0
  78. /package/dist/default/assets/icons/all/{all/check-circle.svg → check-circle.svg} +0 -0
  79. /package/dist/default/assets/icons/all/{all/check.svg → check.svg} +0 -0
  80. /package/dist/default/assets/icons/all/{all/exclamation-circle.svg → exclamation-circle.svg} +0 -0
  81. /package/dist/default/assets/icons/all/{all/eye-slash.svg → eye-slash.svg} +0 -0
  82. /package/dist/default/assets/icons/all/{all/eye.svg → eye.svg} +0 -0
  83. /package/dist/default/assets/icons/all/{all/infos-circle.svg → infos-circle.svg} +0 -0
  84. /package/dist/default/assets/icons/all/{all/search.svg → search.svg} +0 -0
  85. /package/dist/default/assets/icons/all/{all/times.svg → times.svg} +0 -0
  86. /package/dist/default/assets/icons/all/{all/trash.svg → trash.svg} +0 -0
@@ -3,15 +3,17 @@
3
3
  flex-wrap: nowrap;
4
4
 
5
5
  .otp {
6
+ @include hover();
6
7
  outline: none;
7
8
  border: 1px solid currentColor;
8
- border-radius: 4px;
9
+ border-radius: $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('neutral');
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,38 +46,23 @@
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
  }
@@ -1,182 +1,160 @@
1
1
  .pagination {
2
- font-size: $size-normal;
3
- margin: -2.5px;
4
-
5
- &.is-rounded {
6
- .pagination-previous,
7
- .pagination-next {
8
- padding-left: 1em;
9
- padding-right: 1em;
10
- height: 35px;
11
- width: 35px;
12
- border-radius: $radius-rounded;
13
- }
14
-
15
- .pagination-link {
16
- height: 35px;
17
- border-radius: $radius-rounded;
18
- }
19
-
20
- .pagination-list {
21
- flex: 0 0 auto;
22
-
23
- .pagination-link {
24
- &.is-current {
25
- background: getColor('alternate');
26
- border-color: currentColor;
27
- }
28
- }
29
- }
2
+ font-size: $size-normal;
3
+ margin: -2.5px;
4
+
5
+ &.is-rounded {
6
+ .pagination-previous,
7
+ .pagination-next {
8
+ padding-left: 1em;
9
+ padding-right: 1em;
10
+ height: 35px;
11
+ width: 35px;
12
+ border-radius: $radius-rounded;
30
13
  }
14
+
15
+ .pagination-link {
16
+ height: 35px;
17
+ border-radius: $radius-rounded;
18
+ }
19
+
20
+ .pagination-list {
21
+ flex: 0 0 auto;
22
+ }
23
+ }
31
24
  }
32
25
 
33
26
  .pagination,
34
27
  .pagination-list {
35
- align-items: center;
36
- display: flex;
37
- justify-content: center;
38
- text-align: center;
28
+ align-items: center;
29
+ display: flex;
30
+ justify-content: center;
31
+ text-align: center;
39
32
  }
40
33
 
41
34
  .pagination-previous,
42
35
  .pagination-next,
43
36
  .pagination-link,
44
37
  .pagination-ellipsis {
45
- @include control;
46
- @include unselectable;
47
-
48
- font-size: 1em;
49
- padding-left: 0.5em;
50
- padding-right: 0.5em;
51
- justify-content: center;
52
- margin: 2.5px;
53
- text-align: center;
38
+ @include control;
39
+ @include unselectable;
40
+
41
+ font-size: 1em;
42
+ padding-left: 0.5em;
43
+ padding-right: 0.5em;
44
+ justify-content: center;
45
+ margin: 2.5px;
46
+ text-align: center;
54
47
  }
55
48
 
56
49
  .pagination-previous,
57
50
  .pagination-next,
58
51
  .pagination-link {
59
- border-color: transparent;
60
- color: getColor('grey-dark');
61
- min-width: 2.25em;
52
+ color: getColor('neutral-dark');
53
+ min-width: 2.25em;
62
54
 
63
- &:hover {
64
- border-color: getColor('alternate');
65
- }
66
-
67
- &:focus {
68
- border-color: getVariantColor('alternate',2);
69
- }
70
-
71
- &:active {
72
- box-shadow: inset 0 1px 2px getColor('grey-dark');
73
- }
74
-
75
- &[disabled] {
76
- background-color: getColor('grey-lighter');
77
- border-color: currentColor;
78
- box-shadow: none;
79
- color: getColor('grey');
80
- opacity: 0.5;
81
- }
55
+ @include hover();
56
+
82
57
  }
83
58
 
84
59
  .pagination-previous,
85
60
  .pagination-next {
86
- padding-left: 0.75em;
87
- padding-right: 0.75em;
88
- white-space: nowrap;
61
+ padding-left: 0.75em;
62
+ padding-right: 0.75em;
63
+ white-space: nowrap;
89
64
  }
90
65
 
91
66
  .pagination-link {
92
- &.is-current {
93
- background-color: getColor('alternate');
94
- border-color: currentColor;
95
- color: getColor('background');
67
+ &.is-current {
68
+ background-color: getColor('font');
69
+ color: getColor('background');
70
+
71
+ #{$hoverSelector}, &:focus, &:focus-within {
72
+ background-color: getColor('hovered');
96
73
  }
74
+ }
97
75
  }
98
76
 
99
77
  .pagination-ellipsis {
100
- color: getColor('grey-light');
101
- pointer-events: none;
78
+ color: getBGColor('neutral-dark');
79
+ pointer-events: none;
102
80
  }
103
81
 
104
82
  .pagination-list {
105
- flex-wrap: wrap;
83
+ flex-wrap: wrap;
106
84
  }
107
85
 
108
86
  @include mobile {
109
- .pagination {
110
- flex-wrap: wrap;
111
- }
112
-
113
- .pagination-previous,
114
- .pagination-next {
115
- flex-grow: 1;
116
- flex-shrink: 1;
117
- }
118
-
119
- .pagination-list {
120
- li {
121
- flex-grow: 1;
122
- flex-shrink: 1;
123
- }
87
+ .pagination {
88
+ flex-wrap: wrap;
89
+ }
90
+
91
+ .pagination-previous,
92
+ .pagination-next {
93
+ flex-grow: 1;
94
+ flex-shrink: 1;
95
+ }
96
+
97
+ .pagination-list {
98
+ li {
99
+ flex-grow: 1;
100
+ flex-shrink: 1;
124
101
  }
102
+ }
125
103
  }
126
104
 
127
105
  @include tablet {
128
- .pagination-list {
129
- flex-grow: 1;
130
- flex-shrink: 1;
131
- justify-content: flex-start;
106
+ .pagination-list {
107
+ flex-grow: 1;
108
+ flex-shrink: 1;
109
+ justify-content: flex-start;
110
+ order: 1;
111
+ }
112
+
113
+ .pagination-previous {
114
+ order: 2;
115
+ }
116
+
117
+ .pagination-next {
118
+ order: 3;
119
+ }
120
+
121
+ .pagination {
122
+ justify-content: space-between;
123
+
124
+ &.is-centered {
125
+ .pagination-previous {
132
126
  order: 1;
133
- }
127
+ }
134
128
 
135
- .pagination-previous {
129
+ .pagination-list {
130
+ justify-content: center;
136
131
  order: 2;
137
- }
132
+ }
138
133
 
139
- .pagination-next {
134
+ .pagination-next {
140
135
  order: 3;
136
+ }
141
137
  }
142
138
 
143
- .pagination {
144
- justify-content: space-between;
145
-
146
- &.is-centered {
147
- .pagination-previous {
148
- order: 1;
149
- }
150
-
151
- .pagination-list {
152
- justify-content: center;
153
- order: 2;
154
- }
155
-
156
- .pagination-next {
157
- order: 3;
158
- }
159
- }
160
-
161
- &.is-right {
162
- .pagination-previous {
163
- order: 1;
164
- }
165
-
166
- .pagination-next {
167
- order: 2;
168
- }
169
-
170
- .pagination-list {
171
- justify-content: flex-end;
172
- order: 3;
173
- }
174
- }
139
+ &.is-right {
140
+ .pagination-previous {
141
+ order: 1;
142
+ }
143
+
144
+ .pagination-next {
145
+ order: 2;
146
+ }
147
+
148
+ .pagination-list {
149
+ justify-content: flex-end;
150
+ order: 3;
151
+ }
175
152
  }
153
+ }
176
154
  }
177
155
 
178
156
  @include desktop {
179
- .pagination {
180
- justify-content: center;
181
- }
157
+ .pagination {
158
+ justify-content: center;
159
+ }
182
160
  }
@@ -1,6 +1,6 @@
1
1
  $plus-symbol-size: 40px;
2
2
 
3
- @mixin plus-symbol($color: getColor('grey-light'), $text-color: getColor('grey-dark')) {
3
+ @mixin plus-symbol($color: getBGColor('neutral-dark'), $text-color: getColor('neutral-dark')) {
4
4
  &::after {
5
5
  content: "+";
6
6
  display: inline-block;
@@ -68,7 +68,7 @@
68
68
 
69
69
  .popover {
70
70
  position: relative;
71
- display: inline-block;
71
+ display: inline-flex;
72
72
 
73
73
  .popover-content {
74
74
  @include position-top();
@@ -79,7 +79,6 @@
79
79
  color: getColor('background');
80
80
  display: inline-block;
81
81
  font-size: 12px;
82
- opacity: 0.95;
83
82
  visibility: hidden;
84
83
  padding: $spacing-2;
85
84
  font-weight: 500;
@@ -329,12 +328,10 @@
329
328
 
330
329
  &.is-popover-active .popover-content,
331
330
  &:hover .popover-content {
332
- opacity: 1;
333
331
  visibility: visible;
334
332
  }
335
333
 
336
334
  .popover-trigger:focus ~ .popover-content {
337
- opacity: 1;
338
335
  visibility: visible;
339
336
  }
340
337
  }