@trilogy-ds/styles 0.0.7-esm-cjs → 0.0.8-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/dist/default/assets/icons/all/arrow-high.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/paperclip.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/components/_autolayout.scss +6 -6
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_container.scss +0 -7
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +27 -4
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_flex-box.scss +772 -18
- package/framework/src/components/_index.scss +4 -0
- package/framework/src/components/_prompt.scss +142 -0
- package/framework/src/components/_tabs.scss +14 -1
- package/framework/src/components/input/_form.scss +9 -2
- package/framework/src/components/input/_input-gauge.scss +8 -0
- package/framework/src/components/input/_input-icons.scss +2 -2
- package/framework/src/theming/buttons_partial.scss +2 -2
- package/framework/src/utilities/mixins/_mixins.scss +1 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +99 -9
- package/framework/src/utilities/variables/_color.scss +1 -0
- package/framework/src/utilities/variables/_responsiveness.scss +3 -3
- package/package.json +6 -1
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
@import 'box';
|
|
10
10
|
@import 'breadcrumb';
|
|
11
11
|
@import 'button';
|
|
12
|
+
@import 'calendar';
|
|
12
13
|
@import 'card';
|
|
13
14
|
@import 'checkbox';
|
|
14
15
|
@import 'chips';
|
|
15
16
|
@import 'container';
|
|
16
17
|
@import 'countdown';
|
|
18
|
+
@import 'date-picker';
|
|
19
|
+
@import 'dropdown';
|
|
17
20
|
@import 'divider';
|
|
18
21
|
@import 'fab';
|
|
19
22
|
@import 'flex-box';
|
|
@@ -45,3 +48,4 @@
|
|
|
45
48
|
@import 'textarea';
|
|
46
49
|
@import 'timeline';
|
|
47
50
|
@import 'title';
|
|
51
|
+
@import 'prompt'
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
background-color: getColor('background');
|
|
8
|
+
&[aria-disabled] {
|
|
9
|
+
background-color: getColor('background') !important;
|
|
10
|
+
}
|
|
11
|
+
* {
|
|
12
|
+
margin-bottom: 0px !important;
|
|
13
|
+
}
|
|
14
|
+
&:focus-within {
|
|
15
|
+
box-shadow: 0 0 0 2px currentColor;
|
|
16
|
+
}
|
|
17
|
+
&.is-disabled {
|
|
18
|
+
box-shadow: 0 0 0 1px getColor('disabled') !important;
|
|
19
|
+
}
|
|
20
|
+
&-textarea {
|
|
21
|
+
textarea {
|
|
22
|
+
outline: none !important;
|
|
23
|
+
border: 0px !important;
|
|
24
|
+
background-color: initial !important;
|
|
25
|
+
min-height: 20px !important;
|
|
26
|
+
max-height: 180px !important;
|
|
27
|
+
transition: height 0.1s ease;
|
|
28
|
+
padding: 16px !important;
|
|
29
|
+
height: auto;
|
|
30
|
+
resize: none;
|
|
31
|
+
&[disabled] {
|
|
32
|
+
background-color: getColor('background') !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
&-files {
|
|
37
|
+
padding: 16px 16px 0px 16px !important;
|
|
38
|
+
margin:0 !important;
|
|
39
|
+
&-img {
|
|
40
|
+
border-radius: 8px;
|
|
41
|
+
}
|
|
42
|
+
&-file {
|
|
43
|
+
width: $height-prompt-item;
|
|
44
|
+
height: $height-prompt-item;
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
&-file-name {
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
}
|
|
52
|
+
&-doc {
|
|
53
|
+
width: fit-content;
|
|
54
|
+
max-width: 264px;
|
|
55
|
+
&-preview {
|
|
56
|
+
width: 40px;
|
|
57
|
+
height: 40px;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
.box-content {
|
|
63
|
+
margin: 0px !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-preview-content {
|
|
68
|
+
max-width: calc(100% - 56px);
|
|
69
|
+
}
|
|
70
|
+
&-card-content {
|
|
71
|
+
padding:8px !important
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&-delete {
|
|
75
|
+
background-color: getColor('main-fade');
|
|
76
|
+
border-radius: 100px;
|
|
77
|
+
height: 20px;
|
|
78
|
+
width: 20px;
|
|
79
|
+
}
|
|
80
|
+
&-delete-img {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 2px;
|
|
83
|
+
right: 2px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&-toolbar {
|
|
87
|
+
display: flex;
|
|
88
|
+
gap: 16px;
|
|
89
|
+
padding: 0px 16px 16px 16px;
|
|
90
|
+
align-items: center;
|
|
91
|
+
&-tools {
|
|
92
|
+
display: flex;
|
|
93
|
+
gap: 16px;
|
|
94
|
+
align-items: end;
|
|
95
|
+
margin-right: auto;
|
|
96
|
+
}
|
|
97
|
+
&-tool {
|
|
98
|
+
height: 36px;
|
|
99
|
+
select {
|
|
100
|
+
height: 36px;
|
|
101
|
+
border-width: 0px !important;
|
|
102
|
+
max-width: 180px;
|
|
103
|
+
&:focus {
|
|
104
|
+
padding-left: 16px !important;
|
|
105
|
+
}
|
|
106
|
+
@include mobile {
|
|
107
|
+
max-width: 110px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.field .control::after {
|
|
111
|
+
right: 0px !important;
|
|
112
|
+
}
|
|
113
|
+
&.active {
|
|
114
|
+
background-color: getColor('main') !important;
|
|
115
|
+
.icon i {
|
|
116
|
+
background-color: getColor('background');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&[disabled], &.is-disabled {
|
|
120
|
+
background-color: getColor('disabled-fade') !important;
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&-tool.icon_only {
|
|
125
|
+
width: 36px !important;
|
|
126
|
+
}
|
|
127
|
+
&-microphone {
|
|
128
|
+
border-radius: 100px;
|
|
129
|
+
}
|
|
130
|
+
&-tool-submit.streaming {
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&-stop_streaming {
|
|
137
|
+
background-color: getColor('background');
|
|
138
|
+
height: 16px;
|
|
139
|
+
width: 16px;
|
|
140
|
+
border-radius: 3px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -64,7 +64,7 @@ $height-arrow-small:30px;
|
|
|
64
64
|
.arrow-prev, .arrow-next {
|
|
65
65
|
background-color: getColor('font');
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:has(.tab-list.is-aligned-start) {
|
|
@@ -174,6 +174,12 @@ $height-arrow-small:30px;
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
&.is-fullwidth .tab-list {
|
|
178
|
+
display: flex;
|
|
179
|
+
> .tab {
|
|
180
|
+
flex:1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
177
183
|
|
|
178
184
|
&.is-small{
|
|
179
185
|
|
|
@@ -194,6 +200,13 @@ $height-arrow-small:30px;
|
|
|
194
200
|
transition: opacity 2s ease-in-out;
|
|
195
201
|
transition-delay: 1s;
|
|
196
202
|
|
|
203
|
+
* {
|
|
204
|
+
-webkit-user-select: text;
|
|
205
|
+
-moz-user-select: text;
|
|
206
|
+
-ms-user-select: text;
|
|
207
|
+
user-select: text;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
&:not(.is-active) {
|
|
198
211
|
display: none;
|
|
199
212
|
}
|
|
@@ -13,7 +13,7 @@ $label-weight: $weight-bold;
|
|
|
13
13
|
|
|
14
14
|
.input-label {
|
|
15
15
|
display: inline-block;
|
|
16
|
-
margin-bottom:
|
|
16
|
+
margin-bottom: 8px;
|
|
17
17
|
font-weight: 500;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -443,7 +443,7 @@ $label-weight: $weight-bold;
|
|
|
443
443
|
&:has(input[disabled]), &:has(select[disabled]), &:has(textarea[disabled]) {
|
|
444
444
|
@include disabledRulesWithoutBG;
|
|
445
445
|
.icon {
|
|
446
|
-
color: getColor('disabled');
|
|
446
|
+
color: getColor('disabled');
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -593,3 +593,10 @@ $label-weight: $weight-bold;
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
+
|
|
597
|
+
.group-label {
|
|
598
|
+
display: inline-block;
|
|
599
|
+
margin-bottom: 8px !important;
|
|
600
|
+
font-weight: 500;
|
|
601
|
+
line-height: 20px;
|
|
602
|
+
}
|
|
@@ -18,11 +18,19 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: space-between;
|
|
20
20
|
align-items: center;
|
|
21
|
+
flex-wrap: wrap;
|
|
21
22
|
|
|
22
23
|
.security {
|
|
23
24
|
display: flex;
|
|
24
25
|
align-items: center;
|
|
25
26
|
margin-bottom: 4px;
|
|
27
|
+
flex-basis: 50%;
|
|
28
|
+
flex-shrink: 1;
|
|
29
|
+
flex-grow: 0;
|
|
30
|
+
|
|
31
|
+
&:nth-child(even) {
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
26
34
|
|
|
27
35
|
.icon {
|
|
28
36
|
position: relative;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
.has-icons-right {
|
|
30
|
-
.icon-right, button[data-show-pwd]{
|
|
30
|
+
.icon-right, button[data-show-pwd], button[data-show-calendar] {
|
|
31
31
|
position: absolute;
|
|
32
32
|
height: 100%;
|
|
33
33
|
width: 45px;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
button[data-show-pwd]{
|
|
44
|
+
button[data-show-pwd], button[data-show-calendar] {
|
|
45
45
|
background-color: transparent;
|
|
46
46
|
border:none;
|
|
47
47
|
border-top-right-radius: $radius-small ;
|
|
@@ -9,8 +9,8 @@ Colors for buttons
|
|
|
9
9
|
$button-colors: (
|
|
10
10
|
'accent':['conversion', 'accent', 'background'],
|
|
11
11
|
'primary': ['primary', 'main', 'background'],
|
|
12
|
-
'secondary': ['secondary', 'main-fade', '
|
|
13
|
-
'ghost': ['ghost', 'transparent', '
|
|
12
|
+
'secondary': ['secondary', 'main-fade', 'font'],
|
|
13
|
+
'ghost': ['ghost', 'transparent', 'font']
|
|
14
14
|
) !default;
|
|
15
15
|
|
|
16
16
|
%buttons-states {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@mixin until($device) {
|
|
9
|
-
@media screen and (max-width: $device - 1px) {
|
|
9
|
+
@media screen and (max-width: #{$device - 1px}) {
|
|
10
10
|
@content;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@mixin mobile {
|
|
15
|
-
@media screen and (max-width: $tablet - 1px) {
|
|
15
|
+
@media screen and (max-width: #{$tablet - 1px}) {
|
|
16
16
|
@content;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@mixin tablet-only {
|
|
27
|
-
@media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
|
|
27
|
+
@media screen and (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
28
28
|
@content;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@mixin touch {
|
|
33
|
-
@media screen and (max-width: $desktop - 1px) {
|
|
33
|
+
@media screen and (max-width: #{$desktop - 1px}) {
|
|
34
34
|
@content;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@mixin desktop-only {
|
|
45
|
-
@media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
|
|
45
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
46
46
|
@content;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@mixin until-widescreen {
|
|
51
|
-
@media screen and (max-width: $widescreen - 1px) {
|
|
51
|
+
@media screen and (max-width: #{$widescreen - 1px}) {
|
|
52
52
|
@content;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@mixin widescreen-only {
|
|
63
|
-
@media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
|
|
63
|
+
@media screen and (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
64
64
|
@content;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
@mixin until-fullhd {
|
|
69
|
-
@media screen and (max-width: $fullhd - 1px) {
|
|
69
|
+
@media screen and (max-width: #{$fullhd - 1px}) {
|
|
70
70
|
@content;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -78,7 +78,97 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
@mixin all-desktop-only {
|
|
81
|
-
@media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
|
|
81
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
82
82
|
@content;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
// Responsive for container queries
|
|
87
|
+
.query-container {
|
|
88
|
+
container-type: inline-size;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin container-from($device) {
|
|
92
|
+
@container (min-width: #{$device}) {
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@mixin container-until($device) {
|
|
98
|
+
@container (max-width: #{$device - 1px}) {
|
|
99
|
+
@content;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin container-mobile {
|
|
104
|
+
@container (max-width: #{$tablet - 1px}) {
|
|
105
|
+
@content;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@mixin container-tablet {
|
|
110
|
+
@container (min-width: #{$tablet}) {
|
|
111
|
+
@content;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin container-tablet-only {
|
|
116
|
+
@container (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
117
|
+
@content;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin container-touch {
|
|
122
|
+
@container (max-width: #{$desktop - 1px}) {
|
|
123
|
+
@content;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin container-desktop {
|
|
128
|
+
@container (min-width: #{$desktop}) {
|
|
129
|
+
@content;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin container-desktop-only {
|
|
134
|
+
@container (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
135
|
+
@content;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@mixin container-until-widescreen {
|
|
140
|
+
@container (max-width: #{$widescreen - 1px}) {
|
|
141
|
+
@content;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin container-widescreen {
|
|
146
|
+
@container (min-width: #{$widescreen}) {
|
|
147
|
+
@content;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin container-widescreen-only {
|
|
152
|
+
@container (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
153
|
+
@content;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin container-until-fullhd {
|
|
158
|
+
@container (max-width: #{$fullhd - 1px}) {
|
|
159
|
+
@content;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@mixin container-fullhd {
|
|
164
|
+
@container (min-width: #{$fullhd}) {
|
|
165
|
+
@content;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@mixin container-all-desktop-only {
|
|
170
|
+
@container (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
171
|
+
@content;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -16,6 +16,7 @@ $colors: (
|
|
|
16
16
|
'main':[ #3d5d7e, 'main', 'white'],
|
|
17
17
|
'main-fade':[ #eff2f8, 'main-fade', 'white'],
|
|
18
18
|
'accent':[ #da641b,'accent', 'white'],
|
|
19
|
+
'accent-fade':[ #faebe3,'accent-fade', 'white'],
|
|
19
20
|
'font':[ #3d5d7e, 'font', 'white'],
|
|
20
21
|
'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
|
|
21
22
|
'success':[ #007B52, 'success', 'white'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The container horizontal gap, which acts as the offset for breakpoints
|
|
2
|
-
$gap:
|
|
2
|
+
$gap: 24px !default;
|
|
3
3
|
|
|
4
4
|
$tablet: 768px !default;
|
|
5
5
|
$desktop: 984px + 2 * $gap !default;
|
|
6
|
-
$widescreen:
|
|
7
|
-
$fullhd:
|
|
6
|
+
$widescreen: 1192px + 2 * $gap !default;
|
|
7
|
+
$fullhd: 1340px + 2 * $gap !default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trilogy-ds/styles",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8-alpha-prompt",
|
|
4
4
|
"author": "Bouygues Telecom",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/BouyguesTelecom/trilogy",
|
|
8
|
+
"directory": "packages/styles"
|
|
9
|
+
},
|
|
5
10
|
"license": "UNLICENSED",
|
|
6
11
|
"files": [
|
|
7
12
|
"framework/src",
|