@trilogy-ds/styles 0.0.2-calendar → 0.0.3-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/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 +11 -10
- 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 +561 -24
- package/framework/src/components/_index.scss +3 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_tabs.scss +14 -1
- 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/_responsiveness.scss +3 -3
- package/package.json +6 -1
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
@import 'chips';
|
|
16
16
|
@import 'container';
|
|
17
17
|
@import 'countdown';
|
|
18
|
+
@import 'date-picker';
|
|
19
|
+
@import 'dropdown';
|
|
18
20
|
@import 'divider';
|
|
19
21
|
@import 'fab';
|
|
20
22
|
@import 'flex-box';
|
|
@@ -46,3 +48,4 @@
|
|
|
46
48
|
@import 'textarea';
|
|
47
49
|
@import 'timeline';
|
|
48
50
|
@import 'title';
|
|
51
|
+
@import 'prompt'
|
|
@@ -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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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
|
+
|
|
@@ -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.3-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",
|