@memori.ai/memori-react 2.0.0 → 2.0.1
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/CHANGELOG.md +7 -0
- package/dist/components/AgeVerificationModal/AgeVerificationModal.css +63 -0
- package/dist/components/ChatBubble/ChatBubble.css +1 -2
- package/dist/components/ChatInputs/ChatInputs.css +17 -6
- package/dist/components/DateSelector/DateSelector.css +135 -0
- package/dist/components/ImageUpload/ImageUpload.css +2 -2
- package/dist/components/MediaWidget/MediaItemWidget.css +67 -0
- package/dist/components/MediaWidget/MediaWidget.css +13 -4
- package/dist/components/MemoriWidget/MemoriWidget.css +1 -23
- package/dist/components/PoweredBy/PoweredBy.css +45 -0
- package/dist/components/SettingsDrawer/SettingsDrawer.css +5 -0
- package/dist/components/StartPanel/StartPanel.css +11 -5
- package/dist/components/layouts/totem.css +148 -0
- package/dist/components/ui/Button.css +4 -10
- package/dist/components/ui/Checkbox.css +1 -5
- package/dist/components/ui/Drawer.css +24 -2
- package/dist/components/ui/Select.css +135 -0
- package/dist/components/ui/Spin.css +2 -0
- package/dist/styles.css +51 -1
- package/esm/components/AgeVerificationModal/AgeVerificationModal.css +63 -0
- package/esm/components/ChatBubble/ChatBubble.css +1 -2
- package/esm/components/ChatInputs/ChatInputs.css +17 -6
- package/esm/components/DateSelector/DateSelector.css +135 -0
- package/esm/components/ImageUpload/ImageUpload.css +2 -2
- package/esm/components/MediaWidget/MediaItemWidget.css +67 -0
- package/esm/components/MediaWidget/MediaWidget.css +13 -4
- package/esm/components/MemoriWidget/MemoriWidget.css +1 -23
- package/esm/components/PoweredBy/PoweredBy.css +45 -0
- package/esm/components/SettingsDrawer/SettingsDrawer.css +5 -0
- package/esm/components/StartPanel/StartPanel.css +11 -5
- package/esm/components/layouts/totem.css +148 -0
- package/esm/components/ui/Button.css +4 -10
- package/esm/components/ui/Checkbox.css +1 -5
- package/esm/components/ui/Drawer.css +24 -2
- package/esm/components/ui/Select.css +135 -0
- package/esm/components/ui/Spin.css +2 -0
- package/esm/styles.css +51 -1
- package/package.json +2 -2
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
memori-client #root,
|
|
2
|
-
.memori-widget {
|
|
3
|
-
--memori-primary: rgb(102, 103, 171);
|
|
4
|
-
--memori-primary-text: #fff;
|
|
5
|
-
--memori-inner-content-pad: 1rem;
|
|
6
|
-
--memori-inner-bg: transparent;
|
|
7
|
-
--memori-chat-bubble-bg: #ffffff60;
|
|
8
|
-
--memori-text-color: #000;
|
|
9
|
-
--memori-button-bg: #fff;
|
|
10
|
-
--memori-button-text: #000;
|
|
11
|
-
--memori-button-padding: 0.5rem 1.5rem;
|
|
12
|
-
--memori-button-border-color: #d9d9d9;
|
|
13
|
-
--memori-button-radius: 5px;
|
|
14
|
-
--memori-button-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
|
|
15
|
-
--memori-blur-background: 0;
|
|
16
|
-
--memori-drawer--width: 100%;
|
|
17
|
-
--memori-drawer--width--md: 80%;
|
|
18
|
-
--memori-drawer--width--lg: 60%;
|
|
19
|
-
--memori-modal--width: 100%;
|
|
20
|
-
--memori-modal--width--md: 80%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
1
|
.memori-widget {
|
|
24
2
|
position: relative;
|
|
25
3
|
width: 100%;
|
|
@@ -147,7 +125,7 @@ memori-client #root,
|
|
|
147
125
|
.memori--powered-by {
|
|
148
126
|
position: absolute;
|
|
149
127
|
z-index: 1000;
|
|
150
|
-
bottom:
|
|
128
|
+
bottom: 0;
|
|
151
129
|
left: 0;
|
|
152
130
|
display: inline-flex;
|
|
153
131
|
flex-wrap: wrap;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.memori--powered-by {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 1000;
|
|
4
|
+
bottom: 1rem;
|
|
5
|
+
left: 0;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
padding: 0.25rem 0.5rem;
|
|
9
|
+
border-radius: 10px;
|
|
10
|
+
background-color: var(--memori-inner-bg, transparent);
|
|
11
|
+
box-shadow: var(--memori-button-box-shadow);
|
|
12
|
+
color: var(--memori-text-color, rgba(0, 0, 0, 0.85)) !important;
|
|
13
|
+
font-size: 0.7em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (max-width: 768px) {
|
|
17
|
+
.memori--powered-by {
|
|
18
|
+
top: 3.5rem;
|
|
19
|
+
bottom: auto;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.memori--powered-by img {
|
|
24
|
+
max-width: 2rem;
|
|
25
|
+
max-height: 2rem;
|
|
26
|
+
margin-right: 0.25rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.memori--powered-by p {
|
|
30
|
+
margin-top: 0;
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
color: var(--memori-text-color, rgba(0, 0, 0, 0.85)) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.memori--powered-by a {
|
|
36
|
+
color: var(--memori-text-color, rgba(0, 0, 0, 0.85)) !important;
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.memori--powered-by a:hover,
|
|
41
|
+
.memori--powered-by a:focus {
|
|
42
|
+
color: var(--memori-text-color, rgba(0, 0, 0, 0.85)) !important;
|
|
43
|
+
opacity: 0.8;
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
height: 2rem;
|
|
8
8
|
align-items: center;
|
|
9
9
|
justify-content: center;
|
|
10
|
-
border: 1.5px solid var(--
|
|
10
|
+
border: 1.5px solid var(--memori-primary);
|
|
11
11
|
border-radius: 50%;
|
|
12
12
|
background: #fff;
|
|
13
13
|
box-shadow: 0 0 5px 6px rgba(255, 255, 255, 0.5);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.memori--start-panel .memori--start-panel-title {
|
|
32
|
-
color: var(--memori-text-color, var(--
|
|
32
|
+
color: var(--memori-text-color, var(--memori-primary)) !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.memori--start-panel .memori--start-panel-description {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
|
|
87
87
|
.memori--description,
|
|
88
88
|
.memori--needsPosition {
|
|
89
|
-
color: rgba(0, 0, 0, 0.85);
|
|
89
|
+
color: var(--memori-text-color, rgba(0, 0, 0, 0.85));
|
|
90
90
|
font-size: 14px;
|
|
91
91
|
line-height: 1.6;
|
|
92
92
|
}
|
|
@@ -123,7 +123,8 @@
|
|
|
123
123
|
margin-left: 0.5rem;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.memori--completions-enabled
|
|
126
|
+
.memori--completions-enabled,
|
|
127
|
+
.memori--nsfw {
|
|
127
128
|
position: absolute;
|
|
128
129
|
right: 2.5rem;
|
|
129
130
|
bottom: -1.25rem;
|
|
@@ -132,10 +133,11 @@
|
|
|
132
133
|
height: 2rem;
|
|
133
134
|
align-items: center;
|
|
134
135
|
justify-content: center;
|
|
135
|
-
border: 1.5px solid var(--
|
|
136
|
+
border: 1.5px solid var(--memori-primary);
|
|
136
137
|
border-radius: 50%;
|
|
137
138
|
background: #fff;
|
|
138
139
|
box-shadow: 0 0 5px 6px rgba(255, 255, 255, 0.5);
|
|
140
|
+
color: #000;
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
.memori--completions-enabled span {
|
|
@@ -147,3 +149,7 @@
|
|
|
147
149
|
width: 1rem;
|
|
148
150
|
height: 1rem;
|
|
149
151
|
}
|
|
152
|
+
|
|
153
|
+
.memori--completions-enabled + .memori--nsfw {
|
|
154
|
+
right: 4.75rem;
|
|
155
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.memori-widget.memori-layout-totem {
|
|
2
|
+
height: 100vh !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.memori-widget.memori-layout-totem .memori--global-background.no-background-image {
|
|
6
|
+
background: linear-gradient(#333, #eee);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.memori-widget > .memori-spin.memori-totem-layout {
|
|
10
|
+
display: flex;
|
|
11
|
+
height: 100%;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
/* --memori-text-color: #fff; */
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.memori-totem-layout--header {
|
|
18
|
+
text-align: right;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.memori-totem-layout--avatar {
|
|
22
|
+
flex: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper {
|
|
26
|
+
position: fixed;
|
|
27
|
+
z-index: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.memori-totem-layout .memori-header {
|
|
35
|
+
position: relative;
|
|
36
|
+
z-index: 100;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
width: auto;
|
|
39
|
+
height: auto;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.memori-totem-layout .memori-header .memori-share-button,
|
|
44
|
+
.memori-totem-layout .memori-header .memori-header--button + .memori-header--button {
|
|
45
|
+
margin-top: 0.25rem;
|
|
46
|
+
margin-left: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.memori-totem-layout .memori-chat--cover {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.memori-totem-layout .memori--cover {
|
|
54
|
+
padding: 0;
|
|
55
|
+
background: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.memori-totem-layout .memori--powered-by {
|
|
59
|
+
top: 0;
|
|
60
|
+
bottom: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper > div {
|
|
64
|
+
overflow: visible !important;
|
|
65
|
+
/* width: 100% !important;
|
|
66
|
+
height: 100% !important; */
|
|
67
|
+
width: auto !important;
|
|
68
|
+
height: 90vh !important;
|
|
69
|
+
max-height: 90vh;
|
|
70
|
+
border-radius: 0;
|
|
71
|
+
transform: scale(1.7) translate(0px, 10vh);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper canvas {
|
|
75
|
+
width: auto !important;
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
height: 100% !important;
|
|
78
|
+
max-height: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.memori-totem-layout--controls {
|
|
82
|
+
position: relative;
|
|
83
|
+
z-index: 5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.memori-totem-layout--controls .memori--start-panel,
|
|
87
|
+
.memori-totem-layout--controls .memori-chat--history,
|
|
88
|
+
.memori-totem-layout--controls .memori-chat--content {
|
|
89
|
+
background: transparent;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.memori-totem-layout--controls .memori--start-panel,
|
|
93
|
+
.memori-totem-layout--controls .memori-chat--wrapper {
|
|
94
|
+
width: 80vw;
|
|
95
|
+
max-width: 800px;
|
|
96
|
+
padding: 1rem;
|
|
97
|
+
margin: 0 auto;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.memori-totem-layout .memori--avatar-toggle {
|
|
101
|
+
display: none;
|
|
102
|
+
width: 100%;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.memori-totem-layout .memori--title,
|
|
107
|
+
.memori-totem-layout .memori--description,
|
|
108
|
+
.memori-totem-layout .memori--needsPosition {
|
|
109
|
+
color: var(--memori-text-color);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.memori-totem-layout .memori--global-background-image {
|
|
113
|
+
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(200, 200, 200, 0.8));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.memori-widget.memori-controls-center .memori-totem-layout--controls {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 40%;
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.memori-totem-layout .memori-chat-inputs--mic {
|
|
123
|
+
font-size: 125%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper > div canvas + div {
|
|
127
|
+
position: absolute !important;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
transform: none !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper .avatar-loader {
|
|
134
|
+
display: flex;
|
|
135
|
+
width: 100%;
|
|
136
|
+
height: 100%;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
transform: none !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper .avatar-loader figure {
|
|
143
|
+
text-align: center;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.memori-totem-layout--avatar .memori--avatar-wrapper .avatar-loader .memori-spin--spinner {
|
|
147
|
+
background: none;
|
|
148
|
+
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
:root,
|
|
2
|
-
#root {
|
|
3
|
-
--memori-primary: rgb(102, 103, 171);
|
|
4
|
-
--memori-primary-text: #fff;
|
|
5
|
-
--memori-button-radius: 5px;
|
|
6
|
-
--memori-button-padding: 0.5rem 1.5rem;
|
|
7
|
-
--memori-button-border-color: #d9d9d9;
|
|
8
|
-
--memori-button-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
.memori-button {
|
|
12
2
|
display: inline-flex;
|
|
13
3
|
align-items: center;
|
|
@@ -128,6 +118,10 @@
|
|
|
128
118
|
line-height: 1;
|
|
129
119
|
}
|
|
130
120
|
|
|
121
|
+
.memori-button--icon svg[fill="none"] {
|
|
122
|
+
fill: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
131
125
|
.memori-button--with-icon .memori-button--icon {
|
|
132
126
|
margin-right: 0.5em;
|
|
133
127
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.memori-drawer {
|
|
2
2
|
position: relative;
|
|
3
|
-
z-index:
|
|
3
|
+
z-index: 1000;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.memori-drawer--backdrop {
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
position: relative;
|
|
35
35
|
width: var(--memori-drawer--width, 100%);
|
|
36
36
|
height: 100%;
|
|
37
|
-
|
|
37
|
+
height: 100vh;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
padding: 3rem 2rem 1.5rem;
|
|
38
40
|
margin-right: 0;
|
|
39
41
|
margin-left: auto;
|
|
40
42
|
background-color: #fff;
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
@media (min-width: 768px) {
|
|
45
47
|
.memori-drawer--panel {
|
|
46
48
|
width: var(--memori-drawer--width--md, 80%);
|
|
49
|
+
padding-top: 1.5rem;
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -77,16 +80,35 @@
|
|
|
77
80
|
padding: 0.5rem;
|
|
78
81
|
}
|
|
79
82
|
|
|
83
|
+
@media (max-width: 767px) {
|
|
84
|
+
.memori-drawer--close {
|
|
85
|
+
left: 0.5rem;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
80
89
|
.memori-drawer--close button {
|
|
81
90
|
border-color: #fff;
|
|
82
91
|
color: #fff;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
@media (max-width: 767px) {
|
|
95
|
+
.memori-drawer--close button {
|
|
96
|
+
color: #000;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
85
100
|
.memori-drawer--panel-left .memori-drawer--close {
|
|
86
101
|
right: -3.5rem;
|
|
87
102
|
left: auto;
|
|
88
103
|
}
|
|
89
104
|
|
|
105
|
+
@media (max-width: 767px) {
|
|
106
|
+
.memori-drawer--panel-left .memori-drawer--close {
|
|
107
|
+
right: 0.5rem;
|
|
108
|
+
left: auto;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
90
112
|
.memori-drawer--footer {
|
|
91
113
|
position: sticky;
|
|
92
114
|
bottom: 0;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.memori-select {
|
|
2
|
+
max-width: 240px;
|
|
3
|
+
min-height: 38px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.memori-select--button {
|
|
7
|
+
position: relative;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 38px;
|
|
10
|
+
padding-top: .5rem;
|
|
11
|
+
padding-right: 2.5rem;
|
|
12
|
+
padding-bottom: .5rem;
|
|
13
|
+
padding-left: .75rem;
|
|
14
|
+
border: 1px solid #e5e7eb;
|
|
15
|
+
border-radius: .5rem;
|
|
16
|
+
background: #fff;
|
|
17
|
+
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
text-align: left;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.memori-select--button:focus {
|
|
23
|
+
border-color: #cbd5e0;
|
|
24
|
+
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.memori-select--button:focus-visible {
|
|
28
|
+
border-color: #63b3ed;
|
|
29
|
+
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.memori-select--button:hover {
|
|
33
|
+
border-color: #e2e8f0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.memori-select--button:active {
|
|
37
|
+
border-color: #e2e8f0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.memori-select--button:disabled {
|
|
41
|
+
border-color: #e2e8f0;
|
|
42
|
+
background-color: #f7fafc;
|
|
43
|
+
color: #a0aec0;
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (min-width: 640px) {
|
|
48
|
+
.memori-select--button {
|
|
49
|
+
font-size: .875rem;
|
|
50
|
+
line-height: 1.25rem;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.memori-select--label {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
margin-bottom: 0.25rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.memori-select--value {
|
|
60
|
+
display: block;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.memori-select--value.memori-select--value-placeholder {
|
|
67
|
+
color: #a0aec0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.memori-select--icon {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
right: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
padding-right: .5rem;
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.memori-select--icon svg {
|
|
82
|
+
width: 1.25rem;
|
|
83
|
+
height: 1.25rem;
|
|
84
|
+
color: rgb(156 163 175/1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
ul.memori-select--options {
|
|
88
|
+
position: absolute;
|
|
89
|
+
z-index: 1;
|
|
90
|
+
overflow: auto;
|
|
91
|
+
width: 100%;
|
|
92
|
+
max-width: min(18rem, 30%);
|
|
93
|
+
max-height: 15rem;
|
|
94
|
+
padding-top: .25rem;
|
|
95
|
+
padding-right: 0;
|
|
96
|
+
padding-bottom: .25rem;
|
|
97
|
+
padding-left: 0;
|
|
98
|
+
border-radius: .375rem;
|
|
99
|
+
margin-top: .25rem;
|
|
100
|
+
margin-right: 0;
|
|
101
|
+
margin-bottom: 0;
|
|
102
|
+
margin-left: 0;
|
|
103
|
+
background: #fff;
|
|
104
|
+
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
|
|
105
|
+
list-style: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (min-width: 640px) {
|
|
109
|
+
.memori-select--options {
|
|
110
|
+
font-size: .875rem;
|
|
111
|
+
line-height: 1.25rem;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
li.memori-select--option {
|
|
116
|
+
position: relative;
|
|
117
|
+
padding-top: .5rem;
|
|
118
|
+
padding-right: 1rem;
|
|
119
|
+
padding-bottom: .5rem;
|
|
120
|
+
padding-left: 1rem;
|
|
121
|
+
color: rgb(17 24 39/1);
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
user-select: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
li.memori-select--option:hover,
|
|
127
|
+
li.memori-select--option:focus {
|
|
128
|
+
background-color: #f7fafc;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
li.memori-select--option:focus {
|
|
132
|
+
outline: 2px solid #63b3ed;
|
|
133
|
+
outline-offset: 2px;
|
|
134
|
+
}
|
|
135
|
+
|
package/esm/styles.css
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
@import url('./components/ui/Modal.css');
|
|
6
6
|
@import url('./components/ui/Spin.css');
|
|
7
7
|
@import url('./components/ui/Tooltip.css');
|
|
8
|
+
@import url('./components/ui/Select.css');
|
|
8
9
|
|
|
10
|
+
@import url('./components/PoweredBy/PoweredBy.css');
|
|
9
11
|
@import url('./components/AttachmentLinkModal/AttachmentLinkModal.css');
|
|
10
12
|
@import url('./components/Auth/Auth.css');
|
|
11
13
|
@import url('./components/Avatar/Avatar.css');
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
@import url('./components/ChatInputs/ChatInputs.css');
|
|
18
20
|
@import url('./components/ChatTextArea/ChatTextArea.css');
|
|
19
21
|
@import url('./components/CustomGLBModelViewer/ModelViewer.css');
|
|
22
|
+
@import url('./components/SettingsDrawer/SettingsDrawer.css');
|
|
20
23
|
@import url('./components/ExportHistoryButton/ExportHistoryButton.css');
|
|
21
24
|
@import url('./components/FeedbackButtons/FeedbackButtons.css');
|
|
22
25
|
@import url('./components/Header/Header.css');
|
|
@@ -25,11 +28,58 @@
|
|
|
25
28
|
@import url('./components/MediaWidget/LinkItemWidget.css');
|
|
26
29
|
@import url('./components/MediaWidget/MediaItemWidget.css');
|
|
27
30
|
@import url('./components/MediaWidget/MediaWidget.css');
|
|
28
|
-
@import url('./components/MemoriWidget/MemoriWidget.css');
|
|
29
31
|
@import url('./components/SendOnEnterMenu/SendOnEnterMenu.css');
|
|
30
32
|
@import url('./components/ShareButton/ShareButton.css');
|
|
31
33
|
@import url('./components/Snippet/Snippet.css');
|
|
32
34
|
@import url('./components/StartPanel/StartPanel.css');
|
|
33
35
|
@import url('./components/UploadMenu/UploadMenu.css');
|
|
36
|
+
@import url('./components/DateSelector/DateSelector.css');
|
|
37
|
+
@import url('./components/AgeVerificationModal/AgeVerificationModal.css');
|
|
38
|
+
@import url('./components/MemoriWidget/MemoriWidget.css');
|
|
34
39
|
|
|
35
40
|
@import url('https://fonts.bunny.net/css?family=exo-2:200,400,700');
|
|
41
|
+
|
|
42
|
+
@import url('./components/layouts/totem.css');
|
|
43
|
+
|
|
44
|
+
.sr-only {
|
|
45
|
+
position: absolute;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
width: 1px;
|
|
48
|
+
height: 1px;
|
|
49
|
+
padding: 0;
|
|
50
|
+
border-width: 0;
|
|
51
|
+
margin: -1px;
|
|
52
|
+
clip: rect(0, 0, 0, 0);
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
memori-client,
|
|
57
|
+
memori-client #root,
|
|
58
|
+
body.sb-show-main #root,
|
|
59
|
+
body.sb-show-main #headlessui-portal-root,
|
|
60
|
+
#storybook-root,
|
|
61
|
+
#storybook-docs,
|
|
62
|
+
.memori-widget {
|
|
63
|
+
font-family: 'Exo 2', sans-serif;
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
|
|
66
|
+
--memori-primary: rgb(102, 103, 171);
|
|
67
|
+
--memori-primary-text: #fff;
|
|
68
|
+
--memori-inner-content-pad: 1rem;
|
|
69
|
+
--memori-inner-bg: transparent;
|
|
70
|
+
--memori-chat-bubble-bg: #ffffff60;
|
|
71
|
+
--memori-text-color: #000;
|
|
72
|
+
--memori-button-bg: #fff;
|
|
73
|
+
--memori-button-text: #000;
|
|
74
|
+
--memori-button-padding: 0.5rem 1.5rem;
|
|
75
|
+
--memori-button-border-color: #d9d9d9;
|
|
76
|
+
--memori-button-radius: 5px;
|
|
77
|
+
--memori-button-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
|
|
78
|
+
--memori-blur-background: 0px;
|
|
79
|
+
--memori-drawer--width: 100%;
|
|
80
|
+
--memori-drawer--width--md: 80%;
|
|
81
|
+
--memori-drawer--width--lg: 60%;
|
|
82
|
+
--memori-modal--width: 100%;
|
|
83
|
+
--memori-modal--width--md: 80%;
|
|
84
|
+
--memori-error-color: #ff4d4f;
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.1",
|
|
3
3
|
"name": "@memori.ai/memori-react",
|
|
4
4
|
"author": "Memori Srl",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build:cjs": "tsc --module commonjs --outDir dist",
|
|
48
48
|
"build:esm": "tsc --module esnext --outDir esm",
|
|
49
49
|
"prebuild": "yarn clean",
|
|
50
|
-
"build": "yarn build:cjs && yarn build:esm",
|
|
50
|
+
"build": "yarn build:cjs && yarn build:esm && yarn copy-files",
|
|
51
51
|
"postbuild": "yarn copy-files",
|
|
52
52
|
"test:ci": "jest --passWithNoTests --ci src",
|
|
53
53
|
"test:coverage": "jest --coverage src",
|