@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-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 (101) 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 +0 -21
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +5 -0
  9. package/framework/src/base/_helpers.scss +21 -6
  10. package/framework/src/base/_loading.scss +2 -2
  11. package/framework/src/base/_reset.scss +6 -1
  12. package/framework/src/components/_accordion.scss +4 -3
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +139 -109
  15. package/framework/src/{elements → components}/_badge.scss +1 -1
  16. package/framework/src/{elements → components}/_box.scss +9 -11
  17. package/framework/src/components/_breadcrumb.scss +17 -31
  18. package/framework/src/{elements → components}/_button.scss +16 -3
  19. package/framework/src/components/_calendar.scss +128 -0
  20. package/framework/src/components/_card.scss +26 -9
  21. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  22. package/framework/src/components/_countdown.scss +1 -1
  23. package/framework/src/components/_divider.scss +16 -0
  24. package/framework/src/components/_flex-box.scss +457 -0
  25. package/framework/src/components/_index.scss +48 -0
  26. package/framework/src/{elements → components}/_link.scss +9 -3
  27. package/framework/src/components/_list.scss +66 -0
  28. package/framework/src/components/_modal.scss +32 -11
  29. package/framework/src/components/_otp.scss +2 -2
  30. package/framework/src/components/_pagination.scss +5 -2
  31. package/framework/src/components/_price.scss +28 -2
  32. package/framework/src/{elements → components}/_radio.scss +4 -3
  33. package/framework/src/components/_segmented-control.scss +9 -5
  34. package/framework/src/components/_select.scss +131 -0
  35. package/framework/src/components/_stepper.scss +1 -1
  36. package/framework/src/{elements → components}/_sticker.scss +13 -1
  37. package/framework/src/{elements → components}/_switch.scss +13 -8
  38. package/framework/src/{elements → components}/_table.scss +9 -10
  39. package/framework/src/components/_tabs.scss +66 -28
  40. package/framework/src/{elements → components}/_tag.scss +1 -17
  41. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  42. package/framework/src/components/_textarea.scss +46 -0
  43. package/framework/src/components/_timeline.scss +1 -1
  44. package/framework/src/{elements → components}/_title.scss +10 -0
  45. package/framework/src/components/alert/_index.scss +2 -0
  46. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  47. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  48. package/framework/src/{elements → components/input}/_form.scss +18 -12
  49. package/framework/src/components/input/_index.scss +4 -0
  50. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  51. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  52. package/framework/src/components/progress/_index.scss +2 -0
  53. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  54. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  55. package/framework/src/elements/_index.scss +5 -0
  56. package/framework/src/elements/_other.scss +0 -4
  57. package/framework/src/grid/_columns.scss +33 -11
  58. package/framework/src/layout/_hero.scss +4 -0
  59. package/framework/src/layout/_section.scss +5 -0
  60. package/framework/src/theming/buttons_partial.scss +1 -1
  61. package/framework/src/theming/common_partials.scss +1 -1
  62. package/framework/src/trilogy-mangled.scss +3 -3
  63. package/framework/src/trilogy.scss +2 -2
  64. package/framework/src/utilities/_background.scss +3 -1
  65. package/framework/src/utilities/_derived-variables.scss +0 -92
  66. package/framework/src/utilities/_initial-variables.scss +3 -111
  67. package/framework/src/utilities/_pre.scss +3 -1
  68. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  69. package/framework/src/utilities/mixins/_delete.scss +86 -0
  70. package/framework/src/utilities/mixins/_index.scss +11 -0
  71. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  72. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  73. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  74. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  75. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  76. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  77. package/framework/src/utilities/mixins/_state.scss +25 -0
  78. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  79. package/framework/src/utilities/mixins/_utils.scss +24 -0
  80. package/framework/src/utilities/variables/_animation.scss +2 -0
  81. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
  82. package/framework/src/utilities/variables/_font.scss +97 -0
  83. package/framework/src/utilities/variables/_index.scss +6 -0
  84. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  85. package/framework/src/utilities/variables/_shadow.scss +3 -0
  86. package/framework/src/utilities/variables/_zindex.scss +14 -0
  87. package/package.json +1 -1
  88. package/framework/src/components/_all.scss +0 -24
  89. package/framework/src/elements/_all.scss +0 -32
  90. package/framework/src/elements/_autocomplete.scss +0 -32
  91. package/framework/src/elements/_list.scss +0 -62
  92. package/framework/src/elements/_select.scss +0 -96
  93. package/framework/src/elements/_textarea.scss +0 -133
  94. package/framework/src/utilities/_mixins.scss +0 -635
  95. /package/framework/src/{elements → components}/_chips.scss +0 -0
  96. /package/framework/src/{elements → components}/_container.scss +0 -0
  97. /package/framework/src/{elements → components}/_icon.scss +0 -0
  98. /package/framework/src/{elements → components}/_image.scss +0 -0
  99. /package/framework/src/{elements → components}/_loader.scss +0 -0
  100. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  101. /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,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
+
7
+ button {
8
+ all: unset;
9
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
10
+ background-color: getColor('main-fade');
11
+ }
12
+
13
+ &.is-active:hover, &.is-active:focus-visible,
14
+ &.is-disabled:hover, &.is-disabled:focus-visible {
15
+ filter: brightness(80%);
16
+ }
17
+ }
18
+
19
+ &-range.calendar-range-init {
20
+ .calendar-week-day:not(.calendar-date-in-range) {
21
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
22
+ background-color: getColor('main');
23
+ color: getColor('background');
24
+ }
25
+ }
26
+ }
27
+
28
+ &-date-in-range {
29
+ button:not(.is-disabled, .is-active){
30
+ background-color: getColor('main-fade');
31
+ border-radius: 0px;
32
+ }
33
+
34
+ &.calendar-date-rounded-left {
35
+ button:not(.is-disabled, .is-active){
36
+ border-radius: 8px 0 0 8px;
37
+ }
38
+ }
39
+
40
+ &.calendar-date-rounded-right {
41
+ button:not(.is-disabled, .is-active){
42
+ border-radius: 0px 8px 8px 0;
43
+ }
44
+ }
45
+ }
46
+
47
+ &-next-month, &-prev-month {
48
+ padding-bottom: 16px;
49
+ button {
50
+ text-align: center;
51
+ border-radius: 4px;
52
+ width: 36px;
53
+ height: 36px;
54
+ i {
55
+ height: 100%;
56
+ }
57
+ }
58
+ }
59
+
60
+ &-week:not(:last-child) {
61
+ margin-bottom: 8px;
62
+ }
63
+
64
+ &-week-day {
65
+ padding: 4px 0px;
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
+ }
@@ -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
  }
@@ -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;
@@ -10,4 +10,20 @@
10
10
  padding: 0 $spacing-4;
11
11
  background-color: invertColor('neutral');
12
12
  }
13
+
14
+ &:not(.is-marginless) {
15
+ margin: $spacing-5 0;
16
+ }
17
+
18
+ @include mobile {
19
+ &:not(.is-marginless) {
20
+ margin: $spacing-4 0;
21
+ }
22
+ }
13
23
  }
24
+
25
+ *:has(+ .divider) {
26
+ margin-top: 0 !important;
27
+ margin-bottom: 0 !important;
28
+ }
29
+