@memori.ai/memori-react 7.21.1 → 7.23.0
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 +56 -0
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +85 -8
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/dist/components/KnownFacts/KnownFacts.js +1 -1
- package/dist/components/KnownFacts/KnownFacts.js.map +1 -1
- package/dist/components/StartPanel/StartPanel.css +29 -0
- package/dist/components/StartPanel/StartPanel.js +2 -1
- package/dist/components/StartPanel/StartPanel.js.map +1 -1
- package/dist/components/Typing/Typing.js +49 -47
- package/dist/components/Typing/Typing.js.map +1 -1
- package/dist/components/UploadButton/UploadButton.d.ts +1 -0
- package/dist/components/UploadButton/UploadButton.js +142 -3
- package/dist/components/UploadButton/UploadButton.js.map +1 -1
- package/dist/components/icons/Alert.d.ts +5 -0
- package/dist/components/icons/Alert.js +6 -0
- package/dist/components/icons/Alert.js.map +1 -0
- package/dist/components/icons/Info.d.ts +5 -0
- package/dist/components/icons/Info.js +6 -0
- package/dist/components/icons/Info.js.map +1 -0
- package/dist/components/icons/Warning.js +1 -1
- package/dist/components/icons/Warning.js.map +1 -1
- package/dist/components/ui/ConfirmDialog.css +42 -0
- package/dist/components/ui/ConfirmDialog.d.ts +11 -0
- package/dist/components/ui/ConfirmDialog.js +12 -0
- package/dist/components/ui/ConfirmDialog.js.map +1 -0
- package/dist/components/ui/Drawer.css +121 -96
- package/dist/components/ui/Drawer.d.ts +15 -6
- package/dist/components/ui/Drawer.js +44 -13
- package/dist/components/ui/Drawer.js.map +1 -1
- package/dist/locales/de.json +15 -0
- package/dist/locales/en.json +15 -0
- package/dist/locales/es.json +15 -0
- package/dist/locales/fr.json +7 -0
- package/dist/locales/it.json +15 -0
- package/dist/styles.css +6 -4
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +85 -8
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/esm/components/KnownFacts/KnownFacts.js +1 -1
- package/esm/components/KnownFacts/KnownFacts.js.map +1 -1
- package/esm/components/StartPanel/StartPanel.css +29 -0
- package/esm/components/StartPanel/StartPanel.js +2 -1
- package/esm/components/StartPanel/StartPanel.js.map +1 -1
- package/esm/components/Typing/Typing.js +49 -47
- package/esm/components/Typing/Typing.js.map +1 -1
- package/esm/components/UploadButton/UploadButton.d.ts +1 -0
- package/esm/components/UploadButton/UploadButton.js +142 -3
- package/esm/components/UploadButton/UploadButton.js.map +1 -1
- package/esm/components/icons/Alert.d.ts +5 -0
- package/esm/components/icons/Alert.js +4 -0
- package/esm/components/icons/Alert.js.map +1 -0
- package/esm/components/icons/Info.d.ts +5 -0
- package/esm/components/icons/Info.js +4 -0
- package/esm/components/icons/Info.js.map +1 -0
- package/esm/components/icons/Warning.js +1 -1
- package/esm/components/icons/Warning.js.map +1 -1
- package/esm/components/ui/ConfirmDialog.css +42 -0
- package/esm/components/ui/ConfirmDialog.d.ts +11 -0
- package/esm/components/ui/ConfirmDialog.js +9 -0
- package/esm/components/ui/ConfirmDialog.js.map +1 -0
- package/esm/components/ui/Drawer.css +121 -96
- package/esm/components/ui/Drawer.d.ts +15 -6
- package/esm/components/ui/Drawer.js +45 -14
- package/esm/components/ui/Drawer.js.map +1 -1
- package/esm/locales/de.json +15 -0
- package/esm/locales/en.json +15 -0
- package/esm/locales/es.json +15 -0
- package/esm/locales/fr.json +7 -0
- package/esm/locales/it.json +15 -0
- package/esm/styles.css +6 -4
- package/package.json +1 -1
- package/src/components/BlockedMemoriBadge/__snapshots__/BlockedMemoriBadge.test.tsx.snap +10 -0
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.stories.tsx +274 -21
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +117 -21
- package/src/components/CompletionProviderStatus/__snapshots__/CompletionProviderStatus.test.tsx.snap +39 -21
- package/src/components/KnownFacts/KnownFacts.tsx +1 -1
- package/src/components/StartPanel/StartPanel.css +29 -0
- package/src/components/StartPanel/StartPanel.tsx +47 -0
- package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +827 -7
- package/src/components/Typing/Typing.tsx +52 -47
- package/src/components/UploadButton/UploadButton.tsx +206 -5
- package/src/components/UploadButton/__snapshots__/UploadButton.test.tsx.snap +1 -1
- package/src/components/icons/Alert.tsx +31 -0
- package/src/components/icons/Info.tsx +31 -0
- package/src/components/icons/Warning.tsx +2 -1
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +74 -0
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +148 -0
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +74 -0
- package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +74 -0
- package/src/components/ui/ConfirmDialog.css +42 -0
- package/src/components/ui/ConfirmDialog.stories.tsx +216 -0
- package/src/components/ui/ConfirmDialog.test.tsx +124 -0
- package/src/components/ui/ConfirmDialog.tsx +58 -0
- package/src/components/ui/Drawer.css +121 -96
- package/src/components/ui/Drawer.stories.tsx +152 -67
- package/src/components/ui/Drawer.test.tsx +6 -2
- package/src/components/ui/Drawer.tsx +195 -89
- package/src/components/ui/__snapshots__/ConfirmDialog.test.tsx.snap +35 -0
- package/src/locales/de.json +15 -0
- package/src/locales/en.json +15 -0
- package/src/locales/es.json +15 -0
- package/src/locales/fr.json +7 -0
- package/src/locales/it.json +15 -0
- package/src/styles.css +6 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
+
import ConfirmDialog from './ConfirmDialog';
|
|
4
|
+
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
window.IntersectionObserver = jest.fn(() => ({
|
|
8
|
+
observe: jest.fn(),
|
|
9
|
+
unobserve: jest.fn(),
|
|
10
|
+
disconnect: jest.fn(),
|
|
11
|
+
takeRecords: jest.fn(),
|
|
12
|
+
}));
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders ConfirmDialog unchanged', () => {
|
|
16
|
+
const { container } = render(
|
|
17
|
+
<ConfirmDialog
|
|
18
|
+
isOpen={false}
|
|
19
|
+
onClose={jest.fn()}
|
|
20
|
+
onConfirm={jest.fn()}
|
|
21
|
+
title="Test Title"
|
|
22
|
+
message="Test Message"
|
|
23
|
+
confirmText="Confirm"
|
|
24
|
+
cancelText="Cancel"
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
expect(container).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('renders ConfirmDialog open unchanged', () => {
|
|
31
|
+
const { container } = render(
|
|
32
|
+
<ConfirmDialog
|
|
33
|
+
isOpen={true}
|
|
34
|
+
onClose={jest.fn()}
|
|
35
|
+
onConfirm={jest.fn()}
|
|
36
|
+
title="Test Title"
|
|
37
|
+
message="Test Message"
|
|
38
|
+
confirmText="Confirm"
|
|
39
|
+
cancelText="Cancel"
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
expect(container).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('renders ConfirmDialog with custom title unchanged', () => {
|
|
46
|
+
const { container } = render(
|
|
47
|
+
<ConfirmDialog
|
|
48
|
+
isOpen={true}
|
|
49
|
+
onClose={jest.fn()}
|
|
50
|
+
onConfirm={jest.fn()}
|
|
51
|
+
title="Custom Title"
|
|
52
|
+
message="Test Message"
|
|
53
|
+
confirmText="Confirm"
|
|
54
|
+
cancelText="Cancel"
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
expect(container).toMatchSnapshot();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('renders ConfirmDialog with custom message unchanged', () => {
|
|
61
|
+
const { container } = render(
|
|
62
|
+
<ConfirmDialog
|
|
63
|
+
isOpen={true}
|
|
64
|
+
onClose={jest.fn()}
|
|
65
|
+
onConfirm={jest.fn()}
|
|
66
|
+
title="Test Title"
|
|
67
|
+
message="Custom confirmation message for testing purposes"
|
|
68
|
+
confirmText="Confirm"
|
|
69
|
+
cancelText="Cancel"
|
|
70
|
+
/>
|
|
71
|
+
);
|
|
72
|
+
expect(container).toMatchSnapshot();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('renders ConfirmDialog with custom button text unchanged', () => {
|
|
76
|
+
const { container } = render(
|
|
77
|
+
<ConfirmDialog
|
|
78
|
+
isOpen={true}
|
|
79
|
+
onClose={jest.fn()}
|
|
80
|
+
onConfirm={jest.fn()}
|
|
81
|
+
title="Test Title"
|
|
82
|
+
message="Test Message"
|
|
83
|
+
confirmText="Yes, proceed"
|
|
84
|
+
cancelText="No, go back"
|
|
85
|
+
/>
|
|
86
|
+
);
|
|
87
|
+
expect(container).toMatchSnapshot();
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it('calls onClose when cancel button is clicked', () => {
|
|
91
|
+
const onCloseMock = jest.fn();
|
|
92
|
+
render(
|
|
93
|
+
<ConfirmDialog
|
|
94
|
+
isOpen={true}
|
|
95
|
+
onClose={onCloseMock}
|
|
96
|
+
onConfirm={jest.fn()}
|
|
97
|
+
title="Test Title"
|
|
98
|
+
message="Test Message"
|
|
99
|
+
confirmText="Confirm"
|
|
100
|
+
cancelText="Cancel"
|
|
101
|
+
/>
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
fireEvent.click(screen.getByText('Cancel'));
|
|
105
|
+
expect(onCloseMock).toHaveBeenCalledTimes(1);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('calls onConfirm when confirm button is clicked', () => {
|
|
109
|
+
const onConfirmMock = jest.fn();
|
|
110
|
+
render(
|
|
111
|
+
<ConfirmDialog
|
|
112
|
+
isOpen={true}
|
|
113
|
+
onClose={jest.fn()}
|
|
114
|
+
onConfirm={onConfirmMock}
|
|
115
|
+
title="Test Title"
|
|
116
|
+
message="Test Message"
|
|
117
|
+
confirmText="Confirm"
|
|
118
|
+
cancelText="Cancel"
|
|
119
|
+
/>
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
fireEvent.click(screen.getByText('Confirm'));
|
|
123
|
+
expect(onConfirmMock).toHaveBeenCalledTimes(1);
|
|
124
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dialog, Transition } from '@headlessui/react';
|
|
3
|
+
import Button from './Button';
|
|
4
|
+
|
|
5
|
+
// Custom confirm dialog component
|
|
6
|
+
const ConfirmDialog: React.FC<{
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onConfirm: () => void;
|
|
10
|
+
title: string;
|
|
11
|
+
message: string;
|
|
12
|
+
confirmText: string;
|
|
13
|
+
cancelText: string;
|
|
14
|
+
}> = ({
|
|
15
|
+
isOpen,
|
|
16
|
+
onClose,
|
|
17
|
+
onConfirm,
|
|
18
|
+
title,
|
|
19
|
+
message,
|
|
20
|
+
confirmText,
|
|
21
|
+
cancelText,
|
|
22
|
+
}) => {
|
|
23
|
+
return (
|
|
24
|
+
<Transition appear show={isOpen} as={React.Fragment}>
|
|
25
|
+
<Dialog as="div" className="memori-confirm-dialog" onClose={onClose}>
|
|
26
|
+
<div className="memori-confirm-dialog--backdrop" />
|
|
27
|
+
<div className="memori-confirm-dialog--container">
|
|
28
|
+
<Transition.Child
|
|
29
|
+
as={React.Fragment}
|
|
30
|
+
enter="ease-out duration-300"
|
|
31
|
+
enterFrom="opacity-0 scale-95"
|
|
32
|
+
enterTo="opacity-100 scale-100"
|
|
33
|
+
leave="ease-in duration-200"
|
|
34
|
+
leaveFrom="opacity-100 scale-100"
|
|
35
|
+
leaveTo="opacity-0 scale-95"
|
|
36
|
+
>
|
|
37
|
+
<Dialog.Panel className="memori-confirm-dialog--panel">
|
|
38
|
+
<Dialog.Title className="memori-confirm-dialog--title">
|
|
39
|
+
{title}
|
|
40
|
+
</Dialog.Title>
|
|
41
|
+
<Dialog.Description className="memori-confirm-dialog--message">
|
|
42
|
+
{message}
|
|
43
|
+
</Dialog.Description>
|
|
44
|
+
<div className="memori-confirm-dialog--actions">
|
|
45
|
+
<Button onClick={onClose}>{cancelText}</Button>
|
|
46
|
+
<Button primary onClick={onConfirm}>
|
|
47
|
+
{confirmText}
|
|
48
|
+
</Button>
|
|
49
|
+
</div>
|
|
50
|
+
</Dialog.Panel>
|
|
51
|
+
</Transition.Child>
|
|
52
|
+
</div>
|
|
53
|
+
</Dialog>
|
|
54
|
+
</Transition>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default ConfirmDialog;
|
|
@@ -1,180 +1,205 @@
|
|
|
1
1
|
.memori-drawer {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 50;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.memori-drawer--backdrop {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
position: fixed;
|
|
8
|
+
z-index: 40;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.memori-drawer--container {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 50;
|
|
19
|
+
top: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
overflow-y: auto;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.memori-drawer--container-scrollable {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
display: flex;
|
|
28
|
+
min-height: 100%;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.memori-drawer--panel {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
position: relative;
|
|
35
|
+
display: flex;
|
|
36
|
+
width: var(--memori-drawer--width, 100%);
|
|
37
|
+
max-width: 80vw;
|
|
38
|
+
height: 100%;
|
|
39
|
+
min-height: 100vh;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
padding: 1rem 1.5rem 1.5rem;
|
|
43
|
+
margin-right: 0;
|
|
44
|
+
margin-left: auto;
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
font-family: var(--memori-font-family);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
@media (min-width: 768px) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
.memori-drawer--panel {
|
|
51
|
+
width: var(--memori-drawer--width-md, 80%);
|
|
52
|
+
max-width: none;
|
|
53
|
+
padding-top: 1.5rem;
|
|
54
|
+
padding-right: 2rem;
|
|
55
|
+
padding-left: 2rem;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
@media (min-width: 1024px) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
.memori-drawer--panel {
|
|
61
|
+
width: var(--memori-drawer--width-lg, 60%);
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.memori-drawer--panel.memori-drawer--with-footer {
|
|
64
|
-
|
|
66
|
+
padding-bottom: 0;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.memori-drawer--panel .memori-spin {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
flex: 1;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
overflow-y: auto;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
.memori-drawer--panel
|
|
75
|
-
|
|
78
|
+
.memori-drawer--panel > .memori-spin {
|
|
79
|
+
margin-top: -1.75rem;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
.memori-drawer--panel p {
|
|
79
|
-
|
|
83
|
+
margin: 0 0 1em;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
h2.memori-drawer--title {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
margin: 0 0 1rem;
|
|
88
|
+
font-size: 1.5rem;
|
|
89
|
+
font-weight: 700;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
.memori-drawer--panel-left {
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
margin-right: auto;
|
|
94
|
+
margin-left: 0;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
.memori-drawer--close {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
position: sticky;
|
|
99
|
+
z-index: 70;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
padding: 0.5rem;
|
|
103
|
+
margin-top: -1.5rem;
|
|
104
|
+
margin-left: -5.5rem;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
@media (max-width: 767px) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
.memori-drawer--close {
|
|
109
|
+
left: 0.5rem;
|
|
110
|
+
}
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
.memori-drawer--close button {
|
|
110
|
-
|
|
111
|
-
|
|
114
|
+
border-color: #fff;
|
|
115
|
+
color: #fff;
|
|
112
116
|
}
|
|
113
117
|
|
|
114
118
|
@media (max-width: 767px) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
.memori-drawer--close button {
|
|
120
|
+
color: #000;
|
|
121
|
+
}
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
.memori-drawer--panel-left .memori-drawer--close {
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
right: -3.5rem;
|
|
126
|
+
left: auto;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
@media (max-width: 767px) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
.memori-drawer--panel-left .memori-drawer--close {
|
|
131
|
+
right: 0.5rem;
|
|
132
|
+
left: auto;
|
|
133
|
+
}
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
.memori-drawer--footer {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
position: sticky;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
display: flex;
|
|
141
|
+
width: 100%;
|
|
142
|
+
justify-content: flex-end;
|
|
143
|
+
padding-top: 1rem;
|
|
144
|
+
padding-bottom: 1rem;
|
|
145
|
+
border-top: 1px solid rgba(0, 0, 0, 0.25);
|
|
146
|
+
margin-top: auto;
|
|
147
|
+
background-color: #fff;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.memori-drawer--footer-left-action {
|
|
151
|
+
margin-right: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.memori-drawer--footer-actions {
|
|
155
|
+
display: flex;
|
|
156
|
+
gap: 0.5rem;
|
|
144
157
|
}
|
|
145
158
|
|
|
146
|
-
.memori-drawer--footer button+button {
|
|
147
|
-
|
|
159
|
+
.memori-drawer--footer button + button {
|
|
160
|
+
margin-left: 0.5em;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.memori-drawer--content{
|
|
164
|
+
flex: 1;
|
|
165
|
+
padding-top: 12px;
|
|
166
|
+
overflow-y: auto;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.memori-drawer--content--scrollable{
|
|
170
|
+
flex: 1;
|
|
171
|
+
overflow-y: auto;
|
|
148
172
|
}
|
|
149
173
|
|
|
174
|
+
/* Transition classes */
|
|
150
175
|
.ease-out {
|
|
151
|
-
|
|
176
|
+
transition-timing-function: ease-out;
|
|
152
177
|
}
|
|
153
178
|
|
|
154
179
|
.ease-in {
|
|
155
|
-
|
|
180
|
+
transition-timing-function: ease-in;
|
|
156
181
|
}
|
|
157
182
|
|
|
158
183
|
.duration-300 {
|
|
159
|
-
|
|
184
|
+
transition-duration: 300ms;
|
|
160
185
|
}
|
|
161
186
|
|
|
162
187
|
.duration-200 {
|
|
163
|
-
|
|
188
|
+
transition-duration: 200ms;
|
|
164
189
|
}
|
|
165
190
|
|
|
166
191
|
.opacity-0 {
|
|
167
|
-
|
|
192
|
+
opacity: 0;
|
|
168
193
|
}
|
|
169
194
|
|
|
170
195
|
.opacity-100 {
|
|
171
|
-
|
|
196
|
+
opacity: 1;
|
|
172
197
|
}
|
|
173
198
|
|
|
174
199
|
.max-w-0 {
|
|
175
|
-
|
|
200
|
+
max-width: 0;
|
|
176
201
|
}
|
|
177
202
|
|
|
178
203
|
.max-w-80 {
|
|
179
|
-
|
|
204
|
+
max-width: 80%;
|
|
180
205
|
}
|