@trilogy-ds/styles 0.0.1-calendar → 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 (43) 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/base/_all.scss +0 -1
  11. package/framework/src/components/_accordion.scss +1 -9
  12. package/framework/src/components/_autolayout.scss +6 -6
  13. package/framework/src/components/_box.scss +1 -1
  14. package/framework/src/components/_button.scss +7 -0
  15. package/framework/src/components/_calendar.scss +23 -19
  16. package/framework/src/components/_card.scss +3 -3
  17. package/framework/src/components/_checkbox.scss +6 -4
  18. package/framework/src/components/_container.scss +0 -7
  19. package/framework/src/components/_date-picker.scss +58 -0
  20. package/framework/src/components/_divider.scss +28 -4
  21. package/framework/src/components/_dropdown.scss +195 -0
  22. package/framework/src/components/_flex-box.scss +590 -42
  23. package/framework/src/components/_icon.scss +9 -8
  24. package/framework/src/components/_index.scss +5 -0
  25. package/framework/src/components/_link.scss +4 -0
  26. package/framework/src/components/_prompt.scss +156 -0
  27. package/framework/src/components/_radio.scss +8 -5
  28. package/framework/src/components/_stepper.scss +46 -9
  29. package/framework/src/components/_sticker.scss +14 -6
  30. package/framework/src/components/_table.scss +8 -8
  31. package/framework/src/components/_tabs.scss +14 -1
  32. package/framework/src/components/_timepicker-circular.scss +88 -0
  33. package/framework/src/components/_timepicker.scss +79 -0
  34. package/framework/src/components/alert/_alert.scss +2 -2
  35. package/framework/src/components/input/_input-icons.scss +2 -2
  36. package/framework/src/components/progress/_progress.scss +0 -2
  37. package/framework/src/theming/buttons_partial.scss +2 -2
  38. package/framework/src/trilogy.scss +1 -0
  39. package/framework/src/utilities/mixins/_mixins.scss +97 -18
  40. package/framework/src/utilities/mixins/_responsiveness.scss +99 -9
  41. package/framework/src/utilities/variables/_color.scss +1 -0
  42. package/framework/src/utilities/variables/_responsiveness.scss +4 -4
  43. package/package.json +6 -1
@@ -1,6 +1,5 @@
1
1
  @charset "utf-8";
2
2
 
3
- @import "color";
4
3
  @import "reset";
5
4
  @import "generic";
6
5
  @import "fonts";
@@ -18,7 +18,7 @@
18
18
  flex-direction: column;
19
19
  background-color: getColor('background');
20
20
  font-size: $size-normal;
21
- border: var(--border);
21
+ border: 1px solid #{getColor('stroke-fade')};
22
22
  border-radius: var(--radius);
23
23
  margin: 8px 0;
24
24
  min-height: 56px;
@@ -132,13 +132,5 @@
132
132
  }
133
133
  }
134
134
  }
135
-
136
- .accordion-body {
137
- .accordion-content,
138
- p:last-child {
139
- margin-bottom: 0 !important;
140
- padding: 0 !important;
141
- }
142
- }
143
135
  }
144
136
  }
@@ -29,6 +29,9 @@ body:not(.is-tight) {
29
29
  .stepper:not(.flex-box > .stepper):not(:last-child) {
30
30
  margin-bottom: 24px;
31
31
  }
32
+ .alert:not(.flex-box > .alert):not(:last-child) {
33
+ margin-bottom: 24px;
34
+ }
32
35
  .pagination:not(.flex-box > .pagination):not(:last-child) {
33
36
  margin-bottom: 24px;
34
37
  }
@@ -41,9 +44,6 @@ body:not(.is-tight) {
41
44
  .range:not(.flex-box > .range):not(:last-child) {
42
45
  margin-bottom: 24px;
43
46
  }
44
- .stepper:not(.flex-box > .stepper):not(:last-child) {
45
- margin-bottom: 24px;
46
- }
47
47
  .price-container:not(.flex-box > .price-container):not(:last-child) {
48
48
  margin-bottom: 12px;
49
49
  }
@@ -195,6 +195,9 @@ body:not(.is-tight) {
195
195
  .stepper:not(.flex-box > .stepper):not(:last-child) {
196
196
  margin-bottom: 16px;
197
197
  }
198
+ .alert:not(.flex-box > .alert):not(:last-child) {
199
+ margin-bottom: 16px;
200
+ }
198
201
  .pagination:not(.flex-box > .pagination):not(:last-child) {
199
202
  margin-bottom: 16px;
200
203
  }
@@ -207,9 +210,6 @@ body:not(.is-tight) {
207
210
  .range:not(.flex-box > .range):not(:last-child) {
208
211
  margin-bottom: 16px;
209
212
  }
210
- .stepper:not(.flex-box > .stepper):not(:last-child) {
211
- margin-bottom: 16px;
212
- }
213
213
  .price-container:not(.flex-box > .price-container):not(:last-child) {
214
214
  margin-bottom: 8px;
215
215
  }
@@ -54,7 +54,7 @@ a.box {
54
54
 
55
55
  &.is-flat {
56
56
  box-shadow: none;
57
- border: var(--border);
57
+ border: 1px solid #{getColor('stroke-fade')};
58
58
 
59
59
  .box-header {
60
60
  margin-top: calc(var(--padding-box) * -1 - 1px);
@@ -68,6 +68,13 @@ $button-border-width: 2px !default;
68
68
  [aria-disabled=true] {
69
69
  pointer-events: none;
70
70
  }
71
+ &:has(.icon) {
72
+ gap: $spacing-2;
73
+ }
74
+
75
+ .icon {
76
+ width: auto;
77
+ }
71
78
 
72
79
  &.is-loading {
73
80
  background-color: getColor('neutral');
@@ -1,8 +1,10 @@
1
1
  .calendar {
2
2
  border-collapse: separate;
3
3
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
4
- padding:24px;
4
+ padding: 24px;
5
5
  border-radius: 8px;
6
+ border-spacing: 0 8px;
7
+ background-color: getColor('background');
6
8
 
7
9
  button {
8
10
  all: unset;
@@ -29,6 +31,10 @@
29
31
  button:not(.is-disabled, .is-active){
30
32
  background-color: getColor('main-fade');
31
33
  border-radius: 0px;
34
+ &:hover {
35
+ filter: brightness(95%) ;
36
+ border-radius: 4px;
37
+ }
32
38
  }
33
39
 
34
40
  &.calendar-date-rounded-left {
@@ -44,25 +50,20 @@
44
50
  }
45
51
  }
46
52
 
47
-
48
53
  &-next-month, &-prev-month {
54
+ padding-bottom: 16px;
49
55
  button {
50
- text-align: center;
51
- border-radius: 32px;
52
- width: 32px;
53
- height: 32px;
56
+ text-align: center;
57
+ border-radius: 4px;
58
+ width: 36px;
59
+ height: 36px;
54
60
  i {
55
61
  height: 100%;
56
62
  }
57
63
  }
58
64
  }
59
65
 
60
- &-week:not(:last-child) {
61
- margin-bottom: 8px;
62
- }
63
-
64
66
  &-week-day {
65
- padding: 4px 0px;
66
67
  text-align: center !important;
67
68
  vertical-align: middle;
68
69
  &-disabled {
@@ -74,22 +75,22 @@
74
75
  &-label {
75
76
  padding: 4px;
76
77
  text-align: center !important;
77
- width: 32px;
78
+ width: 36px;
79
+ color: getColor('font-placeholder');
78
80
  }
79
81
  button {
80
82
  display: block;
81
- width: 32px;
82
- height: 32px;
83
+ width: 36px;
84
+ height: 36px;
83
85
  border-radius: 4px;
84
86
  }
85
87
  }
86
88
 
87
-
88
89
  &-active-month {
89
90
  height: 28px;
90
91
  text-align: center !important;
91
92
  position: relative;
92
- padding: 10px 0;
93
+ padding-bottom: 16px;
93
94
  .icon {
94
95
  vertical-align: bottom;
95
96
  }
@@ -107,17 +108,20 @@
107
108
  &-header-dropdown {
108
109
  display: flex;
109
110
  gap: $spacing-3;
111
+ justify-content: center;
110
112
  .select{
111
113
  margin-bottom: 0 !important;
112
- width: 50%;
114
+ width: 40%;
113
115
  select {
114
116
  height: 30px !important;
115
117
  margin-bottom: 0 !important;
116
118
  padding: 0px 25px 0px 5px;
119
+ &:focus{
120
+ padding-left: 4px !important;
121
+ }
117
122
  }
118
123
  .control:after {
119
- right: -5px !important;
120
-
124
+ right: -8px !important;
121
125
  }
122
126
  }
123
127
  }
@@ -67,7 +67,7 @@ $basis-values: (
67
67
 
68
68
  &.is-flat {
69
69
  box-shadow: none;
70
- border: var(--border);
70
+ border: 1px solid #{getColor('stroke-fade')};
71
71
 
72
72
  .card-content {
73
73
  padding-left: 20px;
@@ -112,7 +112,7 @@ $basis-values: (
112
112
  flex-basis: map-get($basis-values, 'is-#{$i}');
113
113
  }
114
114
  }
115
-
115
+
116
116
  .card-image {
117
117
  max-width: 100%;
118
118
 
@@ -236,7 +236,7 @@ $basis-values: (
236
236
  .card-image {
237
237
  order: 2;
238
238
  }
239
-
239
+
240
240
  .card-content {
241
241
  order: 1;
242
242
  }
@@ -31,7 +31,8 @@
31
31
 
32
32
  .checkbox,
33
33
  .checkbox-tile {
34
- input:checked ~ label.checkbox-label {
34
+ input:checked ~ label.checkbox-label,
35
+ input:checked ~ .checkbox-container {
35
36
  &:before {
36
37
  background-color: getColor('main');
37
38
  }
@@ -44,7 +45,8 @@
44
45
  }
45
46
  }
46
47
 
47
- label.checkbox-label {
48
+ label.checkbox-label,
49
+ .checkbox-container {
48
50
  &:before,
49
51
  &:after {
50
52
  border-radius: var(--radius-small);
@@ -53,7 +55,8 @@
53
55
  }
54
56
 
55
57
  .checkbox-tile {
56
- input:checked ~ label.checkbox-label {
58
+ input:checked ~ label.checkbox-label,
59
+ input:checked ~ .checkbox-container {
57
60
  &:after {
58
61
  top: 15px;
59
62
  left: 15px;
@@ -68,4 +71,3 @@
68
71
  }
69
72
  }
70
73
  }
71
-
@@ -40,24 +40,17 @@
40
40
 
41
41
  @include widescreen {
42
42
  max-width: $widescreen - 2 * $gap;
43
- width: $widescreen - 2 * $gap;
44
43
  }
45
44
 
46
45
  @include fullhd {
47
46
  margin: 0 auto;
48
47
  max-width: $fullhd - 2 * $gap;
49
- width: $fullhd - 2 * $gap;
50
48
  }
51
49
 
52
50
  &.is-medium {
53
51
  max-width: 960px;
54
52
  margin: auto;
55
53
  }
56
-
57
- &.is-fullwidth {
58
- max-width: 100%;
59
- width: 100%;
60
- }
61
54
  }
62
55
 
63
56
  main,
@@ -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,14 +1,38 @@
1
- .divider {
1
+ @mixin divider {
2
+ content:'';
3
+ flex: 1;
4
+ height: 1px;
2
5
  background-color: getColor('neutral');
6
+ border: 1px solid #{getColor('stroke-fade')};
7
+ }
8
+
9
+ .divider {
3
10
  height: 1px;
4
11
  display: flex;
5
12
  justify-content: center;
6
13
  align-items: center;
7
14
 
8
15
  p.divider-content {
9
- white-space: nowrap;
10
- padding: 0 $spacing-4;
11
- background-color: invertColor('neutral');
16
+ flex-wrap: nowrap;
17
+ width: 100%;
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ &::before {
22
+ @include divider
23
+ }
24
+ &::after {
25
+ @include divider
26
+ }
27
+
28
+ &:not(:empty) {
29
+ &::before {
30
+ margin-right: $spacing-4;
31
+ }
32
+ &::after {
33
+ margin-left: $spacing-4;
34
+ }
35
+ }
12
36
  }
13
37
 
14
38
  &:not(.is-marginless) {
@@ -0,0 +1,195 @@
1
+ @use 'sass:math';
2
+ @import "../utilities/spacing";
3
+
4
+ $dropdown-border-radius: var(--radius-small);
5
+ $dropdown-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
6
+ $dropdown-item-padding-vertical: 12px;
7
+ $dropdown-item-padding-horizontal: 16px;
8
+
9
+ .dropdown {
10
+ position: relative;
11
+ display: block;
12
+
13
+ &.is-active {
14
+ .dropdown-menu {
15
+ display: block;
16
+ }
17
+ }
18
+ }
19
+
20
+ .dropdown-trigger {
21
+ display: inline-block;
22
+ }
23
+
24
+ .dropdown-manual {
25
+ .dropdown-menu {
26
+ top: 100%;
27
+ margin-top: 0px;
28
+ &[data-position="upward"] {
29
+ top: auto;
30
+ bottom: 100%;
31
+ margin-top: 0;
32
+ margin-bottom: 85px;
33
+ }
34
+ }
35
+ }
36
+
37
+ .dropdown-menu {
38
+ position: absolute;
39
+ top: 100%;
40
+ left: 0;
41
+ z-index: 1000;
42
+ display: none;
43
+ margin-top: 15px;
44
+ background-color: getColor('background');
45
+ border-radius: $dropdown-border-radius;
46
+ box-shadow: $dropdown-shadow;
47
+ overflow: hidden;
48
+ max-height: 300px;
49
+ overflow-y: auto;
50
+ padding-top: 12px;
51
+ padding-bottom: 12px;
52
+ padding-left: 16px;
53
+ padding-right: 16px;
54
+ width: max-content;
55
+ min-width: 200px;
56
+ opacity: 0;
57
+ transform: translateY(-10px);
58
+ transition: opacity 0.2s ease, transform 0.2s ease;
59
+
60
+ &[data-position="upward"] {
61
+ top: auto;
62
+ bottom: 100%;
63
+ margin-top: 0;
64
+ margin-bottom: 15px;
65
+ transform: translateY(10px);
66
+ }
67
+
68
+ &::-webkit-scrollbar {
69
+ width: 6px;
70
+ }
71
+
72
+ &::-webkit-scrollbar-track {
73
+ background: transparent;
74
+ }
75
+
76
+ &::-webkit-scrollbar-thumb {
77
+ background: getColor('main-fade');
78
+ border-radius: 3px;
79
+ }
80
+ }
81
+
82
+ .dropdown-content {
83
+ padding: 0;
84
+ }
85
+
86
+ .dropdown-item {
87
+ display: flex;
88
+ align-items: center;
89
+ padding: $dropdown-item-padding-vertical $dropdown-item-padding-horizontal;
90
+ color: getColor('font');
91
+ text-decoration: none;
92
+ cursor: pointer;
93
+ transition: background-color 0.2s ease;
94
+ border: none;
95
+ border-radius: $dropdown-border-radius;
96
+ background: none;
97
+ width: 100%;
98
+ text-align: left;
99
+ font-size: inherit;
100
+ font-family: inherit;
101
+ line-height: 1.4;
102
+
103
+ .icon {
104
+ margin-right: 12px;
105
+ flex-shrink: 0;
106
+
107
+ &.is-smaller {
108
+ width: 16px;
109
+ height: 16px;
110
+ }
111
+ }
112
+
113
+ &:not(:disabled):not([aria-disabled="true"]) {
114
+ #{$hoverSelector},
115
+ &:focus {
116
+ background-color: getColor('main-fade');
117
+ outline: none;
118
+ }
119
+
120
+ &:active {
121
+ background-color: getColor('main-fade');
122
+ }
123
+ }
124
+
125
+ &.is-active {
126
+ background-color: getColor('main-fade');
127
+ font-weight: $weight-semibold;
128
+ }
129
+
130
+ &:disabled,
131
+ &[aria-disabled="true"] {
132
+ color: getColor('disabled');
133
+ cursor: not-allowed;
134
+ background-color: transparent;
135
+
136
+ .icon {
137
+ opacity: 0.5;
138
+ }
139
+ }
140
+ }
141
+
142
+ .dropdown-item:disabled, .dropdown-item[aria-disabled=true] {
143
+ background-color: transparent !important;
144
+ }
145
+
146
+ .dropdown-group {
147
+ &:not(:first-child) {
148
+ border-top: 2px solid getColor('neutral-fade');
149
+ }
150
+
151
+ &:not(:last-child) {
152
+ margin-bottom: 0;
153
+ }
154
+
155
+ .dropdown-item {
156
+ &:first-child {
157
+ border-top: none;
158
+ }
159
+ }
160
+
161
+ &.is-no-separator {
162
+ border-top: none;
163
+ }
164
+ }
165
+
166
+ @include mobile {
167
+ .dropdown-menu {
168
+ left: 0;
169
+ max-height: 250px;
170
+ width: max-content;
171
+ min-width: 200px;
172
+ }
173
+ }
174
+
175
+ .dropdown.is-active .dropdown-menu {
176
+ opacity: 1;
177
+ transform: translateY(0);
178
+
179
+ &[data-position="upward"] {
180
+ opacity: 1;
181
+ transform: translateY(0);
182
+ }
183
+ }
184
+
185
+ .dropdown-menu.is-visible {
186
+ display: block;
187
+ opacity: 1;
188
+ transform: translateY(0);
189
+
190
+ &[data-position="upward"] {
191
+ display: block;
192
+ opacity: 1;
193
+ transform: translateY(0);
194
+ }
195
+ }