@trilogy-ds/styles 0.0.1-alpha-prompt
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/README.md +47 -0
- package/dist/default/assets/icons/all/alert.svg +1 -0
- package/dist/default/assets/icons/all/arrow-down.svg +1 -0
- package/dist/default/assets/icons/all/arrow-left.svg +1 -0
- package/dist/default/assets/icons/all/arrow-right.svg +1 -0
- package/dist/default/assets/icons/all/arrow-up.svg +1 -0
- package/dist/default/assets/icons/all/attachment.svg +1 -0
- package/dist/default/assets/icons/all/bell.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/check-circle.svg +1 -0
- package/dist/default/assets/icons/all/check.svg +1 -0
- package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
- package/dist/default/assets/icons/all/eye-slash.svg +1 -0
- package/dist/default/assets/icons/all/eye.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/infos-circle.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/search.svg +1 -0
- package/dist/default/assets/icons/all/times.svg +1 -0
- package/dist/default/assets/icons/all/trash.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -0
- package/dist/default/trilogy-partials.css +1 -0
- package/dist/default/trilogy.css +1 -0
- package/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +7 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +76 -0
- package/framework/src/base/_helpers.scss +875 -0
- package/framework/src/base/_loading.scss +109 -0
- package/framework/src/base/_reset.scss +148 -0
- package/framework/src/components/_accordion.scss +144 -0
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +36 -0
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +244 -0
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/components/_container.scss +69 -0
- package/framework/src/components/_countdown.scss +57 -0
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +52 -0
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_fab.scss +47 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_icon.scss +384 -0
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_loader.scss +126 -0
- package/framework/src/components/_modal.scss +232 -0
- package/framework/src/components/_otp.scss +73 -0
- package/framework/src/components/_pagination.scss +83 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +184 -0
- package/framework/src/components/_product-tour.scss +129 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +85 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_segmented-control.scss +62 -0
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +217 -0
- package/framework/src/components/_sticker.scss +148 -0
- package/framework/src/components/_switch.scss +115 -0
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +228 -0
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +282 -0
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/components/alert/_alert.scss +94 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/components/alert/_toaster.scss +124 -0
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/components/input/_form.scss +602 -0
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/components/progress/_progress.scss +223 -0
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +3 -0
- package/framework/src/elements/_plus-symbol.scss +32 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +467 -0
- package/framework/src/grid/_rows.scss +54 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +5 -0
- package/framework/src/layout/_hero.scss +146 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +46 -0
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +13 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +56 -0
- package/framework/src/utilities/_derived-variables.scss +1 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +10 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +8 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- 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/variables/_color.scss +85 -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 +28 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
$height-prompt-item: 64px;
|
|
2
|
+
|
|
3
|
+
.prompt {
|
|
4
|
+
box-shadow: 0 0 0 1px var(--color-stroke);
|
|
5
|
+
border-radius: var(--radius-small);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
* {
|
|
8
|
+
margin-bottom: 0px !important;
|
|
9
|
+
}
|
|
10
|
+
&:focus-within {
|
|
11
|
+
box-shadow: 0 0 0 2px currentColor;
|
|
12
|
+
}
|
|
13
|
+
&-textarea {
|
|
14
|
+
textarea {
|
|
15
|
+
outline: none !important;
|
|
16
|
+
border: 0px !important;
|
|
17
|
+
background-color: initial !important;
|
|
18
|
+
min-height: 20px !important;
|
|
19
|
+
max-height: 180px !important;
|
|
20
|
+
transition: height 0.1s ease;
|
|
21
|
+
padding: 16px !important;
|
|
22
|
+
height: auto;
|
|
23
|
+
resize: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&-files {
|
|
27
|
+
padding: 16px 16px 0px 16px !important;
|
|
28
|
+
margin:0 !important;
|
|
29
|
+
&-img {
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
}
|
|
32
|
+
&-file {
|
|
33
|
+
width: $height-prompt-item;
|
|
34
|
+
height: $height-prompt-item;
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
&-file-name {
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
max-width: 59%;
|
|
42
|
+
}
|
|
43
|
+
&-doc {
|
|
44
|
+
width: fit-content;
|
|
45
|
+
max-width: 264px;
|
|
46
|
+
&-preview {
|
|
47
|
+
width: 40px;
|
|
48
|
+
height: 40px;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
.box-content {
|
|
54
|
+
margin: 0px !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&-card-content {
|
|
58
|
+
padding:8px !important
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&-delete {
|
|
62
|
+
background-color: getColor('main-fade');
|
|
63
|
+
border-radius: 100px;
|
|
64
|
+
height: 20px;
|
|
65
|
+
width: 20px;
|
|
66
|
+
}
|
|
67
|
+
&-delete-img {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 2px;
|
|
70
|
+
right: 2px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&-toolbar {
|
|
74
|
+
display: flex;
|
|
75
|
+
gap: 16px;
|
|
76
|
+
padding: 0px 16px 16px 16px;
|
|
77
|
+
align-items: center;
|
|
78
|
+
&-tools {
|
|
79
|
+
display: flex;
|
|
80
|
+
gap: 16px;
|
|
81
|
+
align-items: end;
|
|
82
|
+
margin-right: auto;
|
|
83
|
+
}
|
|
84
|
+
&-tool {
|
|
85
|
+
height: 36px;
|
|
86
|
+
select {
|
|
87
|
+
height: 36px;
|
|
88
|
+
border-width: 0px !important;
|
|
89
|
+
max-width: 180px;
|
|
90
|
+
&:focus {
|
|
91
|
+
padding-left: 16px !important;
|
|
92
|
+
}
|
|
93
|
+
@include mobile {
|
|
94
|
+
max-width: 110px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.field .control::after {
|
|
98
|
+
right: 0px !important;
|
|
99
|
+
}
|
|
100
|
+
&.active {
|
|
101
|
+
background-color: getColor('main') !important;
|
|
102
|
+
.icon i {
|
|
103
|
+
background-color: getColor('background');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&-tool.icon_only {
|
|
108
|
+
width: 36px !important;
|
|
109
|
+
}
|
|
110
|
+
&-microphone {
|
|
111
|
+
border-radius: 100px;
|
|
112
|
+
}
|
|
113
|
+
&-tool-submit.streaming {
|
|
114
|
+
padding: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-stop_streaming {
|
|
120
|
+
background-color: getColor('background');
|
|
121
|
+
height: 16px;
|
|
122
|
+
width: 16px;
|
|
123
|
+
border-radius: 3px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@include checkbox-and-radio('radio');
|
|
2
|
+
|
|
3
|
+
.radios {
|
|
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
|
+
|
|
32
|
+
.radio,
|
|
33
|
+
.radio-tile {
|
|
34
|
+
input:checked ~ label.radio-label {
|
|
35
|
+
cursor: default;
|
|
36
|
+
|
|
37
|
+
&:after {
|
|
38
|
+
content: '';
|
|
39
|
+
width: 12px;
|
|
40
|
+
height: 12px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
label.radio-label {
|
|
45
|
+
&:before,
|
|
46
|
+
&:after {
|
|
47
|
+
border-radius: 9999px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.radio {
|
|
53
|
+
input:checked ~ label.radio-label {
|
|
54
|
+
&:after {
|
|
55
|
+
left: 3px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
input:not(:disabled):not(:checked) ~ label.radio-label:hover {
|
|
60
|
+
&:before {
|
|
61
|
+
@include hoverRules()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.radio-tile {
|
|
68
|
+
input:checked ~ label.radio-label {
|
|
69
|
+
&:after {
|
|
70
|
+
top: 18px;
|
|
71
|
+
left: 18px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
input:checked:disabled ~ label.radio-label {
|
|
76
|
+
&:after {
|
|
77
|
+
background-color: getColor('neutral');
|
|
78
|
+
top: 19px;
|
|
79
|
+
left: 19px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.range-container {
|
|
2
|
+
@mixin appearence {
|
|
3
|
+
appearance: none;
|
|
4
|
+
height: 5px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin slider-thumb {
|
|
8
|
+
appearance: none;
|
|
9
|
+
width: 20px;
|
|
10
|
+
height: 20px;
|
|
11
|
+
background-color: white;
|
|
12
|
+
pointer-events: auto;
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
15
|
+
outline: none;
|
|
16
|
+
border: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.range {
|
|
20
|
+
width: 100%;
|
|
21
|
+
position: relative;
|
|
22
|
+
margin-top: 18px;
|
|
23
|
+
margin-bottom: 20px;
|
|
24
|
+
|
|
25
|
+
.range-track {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 8px;
|
|
28
|
+
border-radius: var(--radius);
|
|
29
|
+
position: absolute;
|
|
30
|
+
margin: auto;
|
|
31
|
+
top: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
@include mobile {
|
|
34
|
+
height: 4px;
|
|
35
|
+
border-radius: var(--radius-small);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.range-cursor {
|
|
40
|
+
appearance: none;
|
|
41
|
+
-webkit-appearance: none;
|
|
42
|
+
-moz-appearance: none;
|
|
43
|
+
width: 100%;
|
|
44
|
+
outline: none;
|
|
45
|
+
position: absolute;
|
|
46
|
+
margin: auto;
|
|
47
|
+
top: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
|
|
52
|
+
&::-webkit-slider-runnable-track {
|
|
53
|
+
@include appearence;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::-moz-range-track {
|
|
57
|
+
@include appearence;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&::-ms-track {
|
|
61
|
+
@include appearence;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::-webkit-slider-thumb {
|
|
65
|
+
@include slider-thumb;
|
|
66
|
+
margin-top: -8px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&::-moz-range-thumb {
|
|
70
|
+
@include slider-thumb;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::-ms-thumb {
|
|
74
|
+
@include slider-thumb;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.range-values {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
padding-top: 14px;
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.scroll-view {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
|
|
4
|
+
&.scroll-horizontal {
|
|
5
|
+
overflow-x: scroll;
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
&.scroll-snap {
|
|
8
|
+
scroll-snap-type: x mandatory;
|
|
9
|
+
>.div {
|
|
10
|
+
scroll-snap-align: start;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.scroll-vertical {
|
|
16
|
+
overflow-y: scroll;
|
|
17
|
+
overflow-x: hidden;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.segmented-control {
|
|
2
|
+
border-radius: 6px;
|
|
3
|
+
padding: $spacing-1;
|
|
4
|
+
background-color: getColor('background');
|
|
5
|
+
display: flex;
|
|
6
|
+
margin-left: auto;
|
|
7
|
+
margin-right: auto;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
border: 1px solid getColor('neutral');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
&.justified-start {
|
|
13
|
+
margin-left: 0;
|
|
14
|
+
margin-right: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.justified-end {
|
|
18
|
+
margin-right: 0;
|
|
19
|
+
margin-left: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include mobile {
|
|
23
|
+
display: flex;
|
|
24
|
+
margin: 24px auto;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.segmented-control-item {
|
|
29
|
+
padding: $spacing-3 $spacing-4;
|
|
30
|
+
border-radius: var(--radius-small);
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
border: 2px solid transparent;
|
|
34
|
+
color: getColor('font');
|
|
35
|
+
background-color: getColor('background');
|
|
36
|
+
|
|
37
|
+
&:not(:last-child) {
|
|
38
|
+
margin-right: 4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include mobile {
|
|
42
|
+
flex: 1 1 0;
|
|
43
|
+
width: 0;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover:not([disabled], [aria-disabled=true], .is-active) {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
@include hoverRules()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.is-active {
|
|
54
|
+
background-color: getColor('main');
|
|
55
|
+
color: invertColor('main');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:disabled{
|
|
59
|
+
border-color: transparent !important;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
$status-select: (
|
|
2
|
+
'success', 'error'
|
|
3
|
+
);
|
|
4
|
+
|
|
5
|
+
.select {
|
|
6
|
+
position: relative;
|
|
7
|
+
input { cursor: pointer }
|
|
8
|
+
|
|
9
|
+
select {
|
|
10
|
+
width: 100%;
|
|
11
|
+
@include input;
|
|
12
|
+
padding-right: 40px;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
|
|
15
|
+
&:focus {
|
|
16
|
+
padding-left: 15px !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// to prevent user agent style
|
|
20
|
+
&:disabled {
|
|
21
|
+
opacity: 1 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@each $name in $status-select {
|
|
25
|
+
$color: getColor($name);
|
|
26
|
+
$color-invert: invertColor($name);
|
|
27
|
+
$brandName: getColorBrandName($name);
|
|
28
|
+
|
|
29
|
+
&.is-#{$brandName} {
|
|
30
|
+
border: 1px solid $color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.has-icons-left {
|
|
36
|
+
select {
|
|
37
|
+
padding-left: 45px;
|
|
38
|
+
|
|
39
|
+
&:focus {
|
|
40
|
+
padding-left: 44px !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-options {
|
|
46
|
+
box-shadow: 0 0 8px #0000001a;
|
|
47
|
+
border-radius: 4px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
position: absolute;
|
|
50
|
+
z-index: 1001;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
margin-top: 8px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.field {
|
|
58
|
+
margin-bottom: 0 !important;
|
|
59
|
+
.control {
|
|
60
|
+
position: relative;
|
|
61
|
+
&:after {
|
|
62
|
+
@include arrow();
|
|
63
|
+
right: 12px;
|
|
64
|
+
top: 50%;
|
|
65
|
+
transform: translate(-50%, -50%);
|
|
66
|
+
transition: transform 0.3s;
|
|
67
|
+
min-width: 20px;
|
|
68
|
+
min-height: 20px;
|
|
69
|
+
mask-size: 20px;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.focus .control {
|
|
75
|
+
&:after {
|
|
76
|
+
transform: rotate(180deg) translate(50%, 50%);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
&-trilogy_modal_open {
|
|
83
|
+
position: fixed;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
right: 0;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
z-index: 1000;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.select-options {
|
|
92
|
+
background-color: getColor('background');
|
|
93
|
+
|
|
94
|
+
li.option {
|
|
95
|
+
padding: $spacing-3 $spacing-4;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: $spacing-2;
|
|
99
|
+
@include hover;
|
|
100
|
+
|
|
101
|
+
&.is-disabled {
|
|
102
|
+
color: getColor('disabled');
|
|
103
|
+
background-color: getColor('disabled-fade');
|
|
104
|
+
cursor: not-allowed;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[data-selected="true"] {
|
|
108
|
+
font-weight: $weight-black;
|
|
109
|
+
|
|
110
|
+
&:after {
|
|
111
|
+
content: "" !important;
|
|
112
|
+
mask-image: url('./assets/icons/all/check.svg') !important;
|
|
113
|
+
background-color: getColor('main') !important;
|
|
114
|
+
mask-size: 18px !important;
|
|
115
|
+
right: 18px !important;
|
|
116
|
+
height: 18px !important;
|
|
117
|
+
width: 18px !important;
|
|
118
|
+
position: absolute;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&-options-top {
|
|
125
|
+
top: auto;
|
|
126
|
+
bottom: 100%;
|
|
127
|
+
overflow-y: scroll;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
.stepper-wrapper {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
min-height: 44px;
|
|
8
|
+
gap: $spacing-4;
|
|
9
|
+
|
|
10
|
+
@include touch {
|
|
11
|
+
gap : $spacing-2;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.stepper-item {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
&:before {
|
|
21
|
+
content: "";
|
|
22
|
+
display: block;
|
|
23
|
+
height: 4px;
|
|
24
|
+
border-radius: var(--radius-small);
|
|
25
|
+
background-size: 200% !important;
|
|
26
|
+
background-color: getColor('neutral');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.is-error {
|
|
30
|
+
|
|
31
|
+
&:before {
|
|
32
|
+
background-color: getColor('error') !important;
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
&.is-current{
|
|
36
|
+
&:before{
|
|
37
|
+
animation: progress 1s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.step-bars {
|
|
43
|
+
background: getColor('error') !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
color: getColor('font');
|
|
47
|
+
|
|
48
|
+
.step-label {
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: "";
|
|
52
|
+
mask-image: url('./assets/icons/all/times.svg') !important;
|
|
53
|
+
background-color: getColor('error') !important;
|
|
54
|
+
border-width: 0;
|
|
55
|
+
mask-size: 20px;
|
|
56
|
+
width: 20px;
|
|
57
|
+
height: 20px;
|
|
58
|
+
align-self: baseline;
|
|
59
|
+
margin-top: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-done {
|
|
69
|
+
|
|
70
|
+
&:before {
|
|
71
|
+
background-color: getColor('font');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.step-bars {
|
|
75
|
+
background: getColor('font');
|
|
76
|
+
transition: background-color 1s ease-in-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.step-label {
|
|
80
|
+
&::before {
|
|
81
|
+
content: "";
|
|
82
|
+
mask-image: url('./assets/icons/all/check-circle.svg');
|
|
83
|
+
background-color: getColor('success');
|
|
84
|
+
border-width: 0;
|
|
85
|
+
min-width: 20px;
|
|
86
|
+
mask-size: 20px;
|
|
87
|
+
height: 20px;
|
|
88
|
+
align-self: baseline;
|
|
89
|
+
margin-top: 2px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-current,
|
|
95
|
+
&.is-active {
|
|
96
|
+
|
|
97
|
+
&:before {
|
|
98
|
+
background-color: getColor('main');
|
|
99
|
+
animation: progress 1s;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.step-bars {
|
|
103
|
+
background: getColor('main');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.step-label {
|
|
107
|
+
font-style: normal;
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
font-size: 20px;
|
|
110
|
+
line-height: 22px;
|
|
111
|
+
width: max-content;
|
|
112
|
+
|
|
113
|
+
.icon [class^=tri-], .icon [class*=" tri-"] {
|
|
114
|
+
height: 22px;
|
|
115
|
+
width: 22px;
|
|
116
|
+
margin: 0 4px 0 -4px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include tablet-only {
|
|
120
|
+
width: 90% !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include mobile {
|
|
124
|
+
font-size: 18px;
|
|
125
|
+
width: 90%;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.step-bars {
|
|
132
|
+
height: 4px;
|
|
133
|
+
background: getColor('disabled');
|
|
134
|
+
border-radius: var(--radius-small);
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.step-label {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
color: getColor('font');
|
|
142
|
+
font-style: normal;
|
|
143
|
+
font-weight: 400;
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
line-height: 24px;
|
|
146
|
+
padding-top: $spacing-2;
|
|
147
|
+
gap: $spacing-1;
|
|
148
|
+
.icon {
|
|
149
|
+
font-size: 20px;
|
|
150
|
+
height: auto;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include touch {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 10px;
|
|
156
|
+
left: 0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include desktop {
|
|
161
|
+
.step-count {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@include mobile {
|
|
167
|
+
.step-count {
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 23px;
|
|
170
|
+
right: 8px;
|
|
171
|
+
font-size: 14px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.stepper-item:not(.is-current) {
|
|
177
|
+
display: flex;
|
|
178
|
+
|
|
179
|
+
.step-label {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include tablet-only {
|
|
186
|
+
.step-count {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 24px;
|
|
189
|
+
right: 8px;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
line-height: 18px;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.stepper-item:not(.is-current) {
|
|
196
|
+
display: flex;
|
|
197
|
+
|
|
198
|
+
.step-label {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
@keyframes progress {
|
|
206
|
+
0%, 100% {
|
|
207
|
+
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
208
|
+
}
|
|
209
|
+
0% {
|
|
210
|
+
background-position: 100% 0;
|
|
211
|
+
}
|
|
212
|
+
100% {
|
|
213
|
+
background-position: 0 0;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|