@trilogy-ds/styles 0.0.1-beta-152 → 0.0.1-beta-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 (104) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -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/_all.scss +2 -2
  6. package/framework/src/base/_all.scss +1 -1
  7. package/framework/src/base/_color.scss +0 -21
  8. package/framework/src/base/_elements.scss +1 -1
  9. package/framework/src/base/_generic.scss +5 -0
  10. package/framework/src/base/_helpers.scss +21 -6
  11. package/framework/src/base/_loading.scss +2 -2
  12. package/framework/src/base/_reset.scss +6 -1
  13. package/framework/src/components/_accordion.scss +4 -3
  14. package/framework/src/components/_autocomplete.scss +38 -0
  15. package/framework/src/components/_autolayout.scss +139 -109
  16. package/framework/src/{elements → components}/_badge.scss +1 -1
  17. package/framework/src/{elements → components}/_box.scss +9 -11
  18. package/framework/src/components/_breadcrumb.scss +17 -31
  19. package/framework/src/{elements → components}/_button.scss +16 -3
  20. package/framework/src/components/_calendar.scss +129 -0
  21. package/framework/src/components/_card.scss +26 -9
  22. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  23. package/framework/src/{elements → components}/_container.scss +0 -10
  24. package/framework/src/components/_countdown.scss +1 -1
  25. package/framework/src/components/_date-picker.scss +58 -0
  26. package/framework/src/components/_divider.scss +43 -4
  27. package/framework/src/components/_dropdown.scss +195 -0
  28. package/framework/src/components/_flex-box.scss +994 -0
  29. package/framework/src/components/_index.scss +50 -0
  30. package/framework/src/{elements → components}/_link.scss +9 -3
  31. package/framework/src/components/_list.scss +66 -0
  32. package/framework/src/components/_modal.scss +32 -11
  33. package/framework/src/components/_otp.scss +2 -2
  34. package/framework/src/components/_pagination.scss +5 -2
  35. package/framework/src/components/_price.scss +28 -2
  36. package/framework/src/{elements → components}/_radio.scss +4 -3
  37. package/framework/src/components/_segmented-control.scss +9 -5
  38. package/framework/src/components/_select.scss +131 -0
  39. package/framework/src/components/_stepper.scss +1 -1
  40. package/framework/src/{elements → components}/_sticker.scss +13 -1
  41. package/framework/src/{elements → components}/_switch.scss +13 -8
  42. package/framework/src/{elements → components}/_table.scss +9 -10
  43. package/framework/src/components/_tabs.scss +79 -28
  44. package/framework/src/{elements → components}/_tag.scss +1 -17
  45. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  46. package/framework/src/components/_textarea.scss +46 -0
  47. package/framework/src/components/_timeline.scss +1 -1
  48. package/framework/src/{elements → components}/_title.scss +10 -0
  49. package/framework/src/components/alert/_index.scss +2 -0
  50. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  51. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  52. package/framework/src/{elements → components/input}/_form.scss +18 -12
  53. package/framework/src/components/input/_index.scss +4 -0
  54. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  55. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  56. package/framework/src/components/progress/_index.scss +2 -0
  57. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  58. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  59. package/framework/src/elements/_index.scss +5 -0
  60. package/framework/src/elements/_other.scss +0 -4
  61. package/framework/src/grid/_columns.scss +56 -22
  62. package/framework/src/layout/_hero.scss +4 -0
  63. package/framework/src/layout/_section.scss +5 -0
  64. package/framework/src/theming/buttons_partial.scss +2 -2
  65. package/framework/src/theming/common_partials.scss +1 -1
  66. package/framework/src/trilogy-mangled.scss +3 -3
  67. package/framework/src/trilogy.scss +2 -2
  68. package/framework/src/utilities/_background.scss +3 -1
  69. package/framework/src/utilities/_derived-variables.scss +0 -92
  70. package/framework/src/utilities/_initial-variables.scss +3 -111
  71. package/framework/src/utilities/_pre.scss +3 -1
  72. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  73. package/framework/src/utilities/mixins/_delete.scss +86 -0
  74. package/framework/src/utilities/mixins/_index.scss +11 -0
  75. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  76. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  77. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  78. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  79. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  80. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  81. package/framework/src/utilities/mixins/_state.scss +25 -0
  82. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  83. package/framework/src/utilities/mixins/_utils.scss +24 -0
  84. package/framework/src/utilities/variables/_animation.scss +2 -0
  85. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
  86. package/framework/src/utilities/variables/_font.scss +97 -0
  87. package/framework/src/utilities/variables/_index.scss +6 -0
  88. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  89. package/framework/src/utilities/variables/_shadow.scss +3 -0
  90. package/framework/src/utilities/variables/_zindex.scss +14 -0
  91. package/package.json +6 -1
  92. package/framework/src/components/_all.scss +0 -24
  93. package/framework/src/elements/_all.scss +0 -32
  94. package/framework/src/elements/_autocomplete.scss +0 -32
  95. package/framework/src/elements/_list.scss +0 -62
  96. package/framework/src/elements/_select.scss +0 -96
  97. package/framework/src/elements/_textarea.scss +0 -133
  98. package/framework/src/utilities/_mixins.scss +0 -635
  99. /package/framework/src/{elements → components}/_chips.scss +0 -0
  100. /package/framework/src/{elements → components}/_icon.scss +0 -0
  101. /package/framework/src/{elements → components}/_image.scss +0 -0
  102. /package/framework/src/{elements → components}/_loader.scss +0 -0
  103. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  104. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -32,10 +32,6 @@ a.box {
32
32
  position: relative;
33
33
  padding: var(--padding-box);
34
34
 
35
- &:not(:last-child) {
36
- margin-bottom: 15px;
37
- }
38
-
39
35
  &.is-active {
40
36
  outline: var(--border-active);
41
37
  }
@@ -88,7 +84,7 @@ a.box {
88
84
 
89
85
  .box-header {
90
86
  z-index: inherit;
91
- background-color: getColor('font');
87
+ background-color: getColor('main');
92
88
  color: getColor('background');
93
89
  margin-top: calc(var(--padding-box) * -1);
94
90
  margin-left: calc(var(--padding-box) * -1);
@@ -97,7 +93,6 @@ a.box {
97
93
  padding-left: var(--padding-box);
98
94
  padding-right: var(--padding-box);
99
95
  box-shadow: none;
100
- font-size: 15px;
101
96
  display: flex;
102
97
  justify-content: center;
103
98
  flex-direction: column;
@@ -144,10 +139,6 @@ a.box {
144
139
  border-bottom-right-radius: var(--radius);
145
140
  }
146
141
 
147
- @include mobile {
148
- text-align: left;
149
- }
150
-
151
142
  > .is-unboxed {
152
143
  margin-left: calc(var(--padding-box) * -1);
153
144
  margin-right: calc(var(--padding-box) * -1);
@@ -163,8 +154,15 @@ a.box {
163
154
  margin-right: calc(var(--padding-box) * -1);
164
155
  margin-bottom: calc(var(--padding-box) * -1);
165
156
  padding: var(--padding-box);
166
- border-top: 1px solid getColor('neutral-fade');
167
157
  border-bottom-left-radius: var(--radius);
168
158
  border-bottom-right-radius: var(--radius);
169
159
  }
160
+
161
+ .box-footer:not(.is-borderless):not([class*="has-background"])::before {
162
+ content: '';
163
+ display: block;
164
+ border-top: var(--border);
165
+ position: relative;
166
+ top: calc(var(--padding-box) * -1);
167
+ }
170
168
  }
@@ -4,47 +4,33 @@
4
4
 
5
5
  ul,
6
6
  ol {
7
- @include desktop {
8
- display: flex;
9
- flex-wrap: wrap;
10
- }
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ gap: $spacing-2;
11
10
  }
12
11
 
13
12
  li {
14
- display: inline;
15
13
  position: relative;
14
+ display: flex;
15
+ align-items: center;
16
+ font-weight: 500;
16
17
 
17
- @include desktop {
18
- display: flex;
19
- align-items: center;
20
- }
21
-
22
- &:first-child a {
23
- margin-left: 0;
24
- }
25
-
26
- &.is-active {
27
- a {
28
- color: getColor('font');
29
- cursor: default;
30
- pointer-events: none;
31
- text-decoration: none;
32
- }
33
- }
34
-
35
- + li a::before {
36
- content: ">";
37
- text-align: center;
38
- padding-right: 0.5em;
39
- text-decoration: none;
40
- display: inline-block;
18
+ + li::before {
19
+ content: "";
20
+ width: 18px;
21
+ height: 18px;
22
+ mask-image: url('./assets/icons/all/arrow-right.svg');
23
+ mask-position: center;
24
+ mask-repeat: no-repeat;
25
+ mask-size: cover;
26
+ background-color: #1b3650;
27
+ margin-right: $spacing-2;
41
28
  }
42
29
  }
43
30
 
44
31
  a {
45
32
  color: getColor('main');
46
- margin: 0 0.5em;
47
- text-decoration: underline;
33
+ text-decoration: underline 2px solid;
48
34
  text-underline-offset: 4px;
49
35
  }
50
36
  }
@@ -53,14 +53,27 @@ $button-border-width: 2px !default;
53
53
  }
54
54
  }
55
55
 
56
+ &.is-ghost:hover:not([disabled]) {
57
+ background-color: var(--color-main-fade);
58
+ filter: none !important;
59
+ }
60
+
56
61
  &[disabled],
57
62
  &[aria-disabled=true] {
58
- background-color: getColorValue('main-fade') !important;
59
- color: getColorValue('disabled-fade') !important
63
+ border-color: transparent !important;
64
+ background-color: getColor('main-fade') !important;
65
+ color: getColor('disabled') !important
66
+ }
67
+
68
+ [aria-disabled=true] {
69
+ pointer-events: none;
60
70
  }
61
71
 
62
72
  &.is-loading {
63
- background-color: getColorValue('neutral');
73
+ background-color: getColor('neutral');
74
+ &::after {
75
+ @include spinner('neutral-fade');
76
+ }
64
77
  }
65
78
 
66
79
  }
@@ -0,0 +1,129 @@
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
+ background-color: getColor('background');
8
+
9
+ button {
10
+ all: unset;
11
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
12
+ background-color: getColor('main-fade');
13
+ }
14
+
15
+ &.is-active:hover, &.is-active:focus-visible,
16
+ &.is-disabled:hover, &.is-disabled:focus-visible {
17
+ filter: brightness(80%);
18
+ }
19
+ }
20
+
21
+ &-range.calendar-range-init {
22
+ .calendar-week-day:not(.calendar-date-in-range) {
23
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
24
+ background-color: getColor('main');
25
+ color: getColor('background');
26
+ }
27
+ }
28
+ }
29
+
30
+ &-date-in-range {
31
+ button:not(.is-disabled, .is-active){
32
+ background-color: getColor('main-fade');
33
+ border-radius: 0px;
34
+ &:hover {
35
+ filter: brightness(95%) ;
36
+ border-radius: 4px;
37
+ }
38
+ }
39
+
40
+ &.calendar-date-rounded-left {
41
+ button:not(.is-disabled, .is-active){
42
+ border-radius: 8px 0 0 8px;
43
+ }
44
+ }
45
+
46
+ &.calendar-date-rounded-right {
47
+ button:not(.is-disabled, .is-active){
48
+ border-radius: 0px 8px 8px 0;
49
+ }
50
+ }
51
+ }
52
+
53
+ &-next-month, &-prev-month {
54
+ padding-bottom: 16px;
55
+ button {
56
+ text-align: center;
57
+ border-radius: 4px;
58
+ width: 36px;
59
+ height: 36px;
60
+ i {
61
+ height: 100%;
62
+ }
63
+ }
64
+ }
65
+
66
+ &-week-day {
67
+ text-align: center !important;
68
+ vertical-align: middle;
69
+ &-disabled {
70
+ button {
71
+ color: getColor('disabled');
72
+ background-color: getColor('disabled-fade');
73
+ }
74
+ }
75
+ &-label {
76
+ padding: 4px;
77
+ text-align: center !important;
78
+ width: 36px;
79
+ color: getColor('font-placeholder');
80
+ }
81
+ button {
82
+ display: block;
83
+ width: 36px;
84
+ height: 36px;
85
+ border-radius: 4px;
86
+ }
87
+ }
88
+
89
+ &-active-month {
90
+ height: 28px;
91
+ text-align: center !important;
92
+ position: relative;
93
+ padding-bottom: 16px;
94
+ .icon {
95
+ vertical-align: bottom;
96
+ }
97
+ button {
98
+ padding: 2px 6px;
99
+ border-radius: 4px;
100
+ }
101
+ }
102
+
103
+ &-active-date button {
104
+ background-color: getColor('main');
105
+ color: getColor('background');
106
+ }
107
+
108
+ &-header-dropdown {
109
+ display: flex;
110
+ gap: $spacing-3;
111
+ justify-content: center;
112
+ .select{
113
+ margin-bottom: 0 !important;
114
+ width: 40%;
115
+ select {
116
+ height: 30px !important;
117
+ margin-bottom: 0 !important;
118
+ padding: 0px 25px 0px 5px;
119
+ &:focus{
120
+ padding-left: 4px !important;
121
+ }
122
+ }
123
+ .control:after {
124
+ right: -8px !important;
125
+ }
126
+ }
127
+ }
128
+
129
+ }
@@ -1,3 +1,11 @@
1
+ $basis-values: (
2
+ 'is-1': 70%,
3
+ 'is-2': 60%,
4
+ 'is-3': 50%,
5
+ 'is-4': 40%
6
+ );
7
+
8
+
1
9
  .card {
2
10
  max-width: 100%;
3
11
  display: flex;
@@ -8,8 +16,13 @@
8
16
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
9
17
  background-color: getColor('background');
10
18
 
11
- &:not(:last-child) {
12
- margin-bottom: 15px;
19
+ &:not(.is-reversed) .card-image {
20
+ order: 1;
21
+ }
22
+
23
+
24
+ &:not(.is-reversed) .card-content {
25
+ order: 2;
13
26
  }
14
27
 
15
28
  .card-image {
@@ -47,7 +60,7 @@
47
60
 
48
61
  &.is-strong {
49
62
  .title {
50
- font-family: $family-serif;
63
+ font-family: $family-secondary;
51
64
  font-size: 24px !important;
52
65
  }
53
66
  }
@@ -94,6 +107,12 @@
94
107
  }
95
108
  }
96
109
 
110
+ @for $i from 1 through 4 {
111
+ &:has(.card-content + .card-image.is-#{$i}) .card-content {
112
+ flex-basis: map-get($basis-values, 'is-#{$i}');
113
+ }
114
+ }
115
+
97
116
  .card-image {
98
117
  max-width: 100%;
99
118
 
@@ -215,13 +234,11 @@
215
234
  &.is-inverted,
216
235
  &.is-reversed {
217
236
  .card-image {
218
- order: 1;
237
+ order: 2;
219
238
  }
220
-
221
- &.is-horizontal {
222
- .card-image {
223
- order: 1;
224
- }
239
+
240
+ .card-content {
241
+ order: 1;
225
242
  }
226
243
  }
227
244
  }
@@ -1,5 +1,34 @@
1
1
  @include checkbox-and-radio('checkbox');
2
2
 
3
+ .checkboxes {
4
+ width: 100%;
5
+ column-gap: $spacing-5;
6
+ row-gap: $spacing-3;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ flex-direction: column;
10
+
11
+ @include tablet {
12
+ flex-direction: row;
13
+
14
+ &.is-vertical-desktop {
15
+ flex-direction: column;
16
+ }
17
+ }
18
+
19
+ @include mobile {
20
+ &.is-horizontal-mobile {
21
+ flex-direction: row;
22
+ }
23
+ }
24
+
25
+ &.is-centered,
26
+ &.has-text-centered,
27
+ .has-text-centered & {
28
+ justify-content: center;
29
+ }
30
+ }
31
+
3
32
  .checkbox,
4
33
  .checkbox-tile {
5
34
  input:checked ~ label.checkbox-label {
@@ -27,7 +56,7 @@
27
56
  input:checked ~ label.checkbox-label {
28
57
  &:after {
29
58
  top: 15px;
30
- right: 15px;
59
+ left: 15px;
31
60
  }
32
61
  }
33
62
  }
@@ -21,9 +21,6 @@
21
21
 
22
22
  @include desktop {
23
23
  max-width: $desktop - 2 * $gap;
24
- margin-left: $gap;
25
- margin-right: $gap;
26
- max-width: none;
27
24
  width: auto;
28
25
  }
29
26
 
@@ -43,24 +40,17 @@
43
40
 
44
41
  @include widescreen {
45
42
  max-width: $widescreen - 2 * $gap;
46
- width: $widescreen - 2 * $gap;
47
43
  }
48
44
 
49
45
  @include fullhd {
50
46
  margin: 0 auto;
51
47
  max-width: $fullhd - 2 * $gap;
52
- width: $fullhd - 2 * $gap;
53
48
  }
54
49
 
55
50
  &.is-medium {
56
51
  max-width: 960px;
57
52
  margin: auto;
58
53
  }
59
-
60
- &.is-fullwidth {
61
- max-width: 100%;
62
- width: 100%;
63
- }
64
54
  }
65
55
 
66
56
  main,
@@ -6,7 +6,7 @@
6
6
  color: getColor('font');
7
7
 
8
8
  .count {
9
- font-family: $family-sans-serif;
9
+ font-family: $family-primary;
10
10
  font-size: $text-14;
11
11
  font-weight: 400;
12
12
  list-style-type: none;
@@ -0,0 +1,58 @@
1
+ .date-picker {
2
+ span {
3
+ outline: none;
4
+ text-align: center;
5
+ caret-color: transparent;
6
+ &:focus-visible {
7
+ background-color: getColor('main-fade')
8
+ }
9
+ &::selection {
10
+ background-color: getColor('main-fade')
11
+ }
12
+ }
13
+
14
+ .input {
15
+ &.is-focused {
16
+ border: 2px solid currentColor;
17
+ padding-left: 15px !important;
18
+ background-color: getColor('background') !important;
19
+ }
20
+ &:active {
21
+ padding-left: 15px !important;
22
+ }
23
+ &[aria-disabled="true"] {
24
+ &:active {
25
+ padding-left: 16px !important;
26
+ }
27
+ & span::selection {
28
+ background-color: transparent !important
29
+ }
30
+ }
31
+ &-hidden {
32
+ border: 0;
33
+ clip: rect(0 0 0 0);
34
+ height: 1px;
35
+ margin: -1px;
36
+ overflow: hidden;
37
+ padding: 0;
38
+ white-space: nowrap;
39
+ width: 1px;
40
+ }
41
+ }
42
+
43
+ .modal {
44
+ flex-direction: inherit;
45
+ .modal-content, .modal-header {
46
+ background-color: transparent !important;
47
+ }
48
+ .modal-body {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ .calendar {
53
+ height: 440px;
54
+ }
55
+ }
56
+ }
57
+
58
+ }
@@ -1,13 +1,52 @@
1
- .divider {
1
+ @mixin divider {
2
+ content:'';
3
+ flex: 1;
4
+ height: 1px;
2
5
  background-color: getColor('neutral');
6
+ }
7
+
8
+ .divider {
3
9
  height: 1px;
4
10
  display: flex;
5
11
  justify-content: center;
6
12
  align-items: center;
7
13
 
8
14
  p.divider-content {
9
- white-space: nowrap;
10
- padding: 0 $spacing-4;
11
- background-color: invertColor('neutral');
15
+ flex-wrap: nowrap;
16
+ width: 100%;
17
+ display: flex;
18
+ align-items: center;
19
+
20
+ &::before {
21
+ @include divider
22
+ }
23
+ &::after {
24
+ @include divider
25
+ }
26
+
27
+ &:not(:empty) {
28
+ &::before {
29
+ margin-right: $spacing-4;
30
+ }
31
+ &::after {
32
+ margin-left: $spacing-4;
33
+ }
34
+ }
35
+ }
36
+
37
+ &:not(.is-marginless) {
38
+ margin: $spacing-5 0;
39
+ }
40
+
41
+ @include mobile {
42
+ &:not(.is-marginless) {
43
+ margin: $spacing-4 0;
44
+ }
12
45
  }
13
46
  }
47
+
48
+ *:has(+ .divider) {
49
+ margin-top: 0 !important;
50
+ margin-bottom: 0 !important;
51
+ }
52
+