@trilogy-ds/styles 0.0.1-beta-v4 → 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.
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +0 -21
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +5 -0
- package/framework/src/base/_helpers.scss +21 -6
- package/framework/src/base/_loading.scss +2 -2
- package/framework/src/base/_reset.scss +6 -1
- package/framework/src/components/_accordion.scss +4 -3
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +139 -109
- package/framework/src/{elements → components}/_badge.scss +1 -1
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +16 -3
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +26 -9
- package/framework/src/{elements → components}/_checkbox.scss +30 -1
- package/framework/src/{elements → components}/_container.scss +0 -10
- package/framework/src/components/_countdown.scss +1 -1
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +43 -4
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_index.scss +50 -0
- package/framework/src/{elements → components}/_link.scss +9 -3
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_modal.scss +32 -11
- package/framework/src/components/_otp.scss +2 -2
- package/framework/src/components/_pagination.scss +5 -2
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +4 -3
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +13 -8
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +79 -28
- package/framework/src/{elements → components}/_tag.scss +1 -17
- package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +1 -1
- package/framework/src/{elements → components}/_title.scss +10 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
- package/framework/src/{elements → components/input}/_entry.scss +48 -10
- package/framework/src/{elements → components/input}/_form.scss +18 -12
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
- package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
- package/framework/src/{elements → components/progress}/_progress.scss +3 -3
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -4
- package/framework/src/grid/_columns.scss +56 -22
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- package/framework/src/theming/buttons_partial.scss +2 -2
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_background.scss +3 -1
- package/framework/src/utilities/_derived-variables.scss +0 -92
- package/framework/src/utilities/_initial-variables.scss +3 -111
- package/framework/src/utilities/_pre.scss +3 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +294 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +6 -1
- package/framework/src/components/_all.scss +0 -24
- package/framework/src/elements/_all.scss +0 -32
- package/framework/src/elements/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_select.scss +0 -96
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -635
- /package/framework/src/{elements → components}/_chips.scss +0 -0
- /package/framework/src/{elements → components}/_icon.scss +0 -0
- /package/framework/src/{elements → components}/_image.scss +0 -0
- /package/framework/src/{elements → components}/_loader.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
|
@@ -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
|
+
}
|