@memori.ai/memori-react 8.44.0 → 8.45.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 +12 -0
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -0
- package/dist/components/MemoriWidget/MemoriWidget.js +59 -1
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/helpers/nats/getNatsConfig.d.ts +1 -1
- package/dist/helpers/nats/getNatsConfig.js +2 -2
- package/dist/helpers/nats/getNatsConfig.js.map +1 -1
- package/dist/helpers/nats/useNats.d.ts +2 -1
- package/dist/helpers/nats/useNats.js +87 -20
- package/dist/helpers/nats/useNats.js.map +1 -1
- package/dist/helpers/nats/useNatsSession.d.ts +6 -1
- package/dist/helpers/nats/useNatsSession.js +49 -8
- package/dist/helpers/nats/useNatsSession.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -0
- package/esm/components/MemoriWidget/MemoriWidget.js +57 -1
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/helpers/nats/getNatsConfig.d.ts +1 -1
- package/esm/helpers/nats/getNatsConfig.js +2 -2
- package/esm/helpers/nats/getNatsConfig.js.map +1 -1
- package/esm/helpers/nats/useNats.d.ts +2 -1
- package/esm/helpers/nats/useNats.js +87 -20
- package/esm/helpers/nats/useNats.js.map +1 -1
- package/esm/helpers/nats/useNatsSession.d.ts +6 -1
- package/esm/helpers/nats/useNatsSession.js +48 -8
- package/esm/helpers/nats/useNatsSession.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/components/MemoriWidget/MemoriWidget.tsx +65 -1
- package/src/helpers/nats/getNatsConfig.ts +8 -3
- package/src/helpers/nats/useNats.test.tsx +81 -0
- package/src/helpers/nats/useNats.ts +109 -29
- package/src/helpers/nats/useNatsSession.test.ts +16 -0
- package/src/helpers/nats/useNatsSession.ts +79 -13
- package/src/version.ts +1 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -372
- package/dist/components/DrawerFooter/DrawerFooter.css +0 -62
- package/dist/components/IconButton/IconButton.css +0 -144
- package/dist/components/MobileSessionPanel/MobileSessionPanel.css +0 -459
- package/dist/components/PositionPopover/PositionPopover.css +0 -219
- package/dist/components/layouts/WebsiteAssistant/website-assistant.css +0 -806
- package/dist/components/layouts/fullpage.css +0 -522
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -372
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -113
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +0 -1
- package/esm/components/DrawerFooter/DrawerFooter.css +0 -62
- package/esm/components/DrawerFooter/DrawerFooter.d.ts +0 -12
- package/esm/components/DrawerFooter/DrawerFooter.js +0 -8
- package/esm/components/DrawerFooter/DrawerFooter.js.map +0 -1
- package/esm/components/IconButton/IconButton.css +0 -144
- package/esm/components/IconButton/IconButton.d.ts +0 -9
- package/esm/components/IconButton/IconButton.js +0 -33
- package/esm/components/IconButton/IconButton.js.map +0 -1
- package/esm/components/MobileSessionPanel/MobileSessionPanel.css +0 -459
- package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -65
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js +0 -291
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
- package/esm/components/PositionPopover/PositionPopover.css +0 -219
- package/esm/components/PositionPopover/PositionPopover.d.ts +0 -22
- package/esm/components/PositionPopover/PositionPopover.js +0 -190
- package/esm/components/PositionPopover/PositionPopover.js.map +0 -1
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -61
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
- package/esm/components/layouts/WebsiteAssistant/website-assistant.css +0 -806
- package/esm/components/layouts/fullpage.css +0 -522
- package/esm/context/widgetSurfaceContext.d.ts +0 -3
- package/esm/context/widgetSurfaceContext.js +0 -7
- package/esm/context/widgetSurfaceContext.js.map +0 -1
- package/esm/helpers/positionPopover.d.ts +0 -1
- package/esm/helpers/positionPopover.js +0 -4
- package/esm/helpers/positionPopover.js.map +0 -1
- package/esm/helpers/tts/muteSpeaker.d.ts +0 -13
- package/esm/helpers/tts/muteSpeaker.js +0 -21
- package/esm/helpers/tts/muteSpeaker.js.map +0 -1
- package/esm/helpers/usePressTooltip.d.ts +0 -13
- package/esm/helpers/usePressTooltip.js +0 -20
- package/esm/helpers/usePressTooltip.js.map +0 -1
- package/esm/icons/FacebookIcon.d.ts +0 -3
- package/esm/icons/FacebookIcon.js +0 -4
- package/esm/icons/FacebookIcon.js.map +0 -1
- package/esm/icons/LinkedinIcon.d.ts +0 -3
- package/esm/icons/LinkedinIcon.js +0 -4
- package/esm/icons/LinkedinIcon.js.map +0 -1
- package/esm/icons/MemoriIcon.d.ts +0 -3
- package/esm/icons/MemoriIcon.js +0 -6
- package/esm/icons/MemoriIcon.js.map +0 -1
- package/esm/icons/TelegramIcon.d.ts +0 -3
- package/esm/icons/TelegramIcon.js +0 -4
- package/esm/icons/TelegramIcon.js.map +0 -1
- package/esm/icons/TwitterIcon.d.ts +0 -3
- package/esm/icons/TwitterIcon.js +0 -4
- package/esm/icons/TwitterIcon.js.map +0 -1
- package/esm/icons/WhatsappIcon.d.ts +0 -3
- package/esm/icons/WhatsappIcon.js +0 -4
- package/esm/icons/WhatsappIcon.js.map +0 -1
- package/esm/icons/artifacts/DocumentIcon.d.ts +0 -3
- package/esm/icons/artifacts/DocumentIcon.js +0 -4
- package/esm/icons/artifacts/DocumentIcon.js.map +0 -1
- package/esm/icons/artifacts/HtmlIcon.d.ts +0 -3
- package/esm/icons/artifacts/HtmlIcon.js +0 -4
- package/esm/icons/artifacts/HtmlIcon.js.map +0 -1
- package/esm/icons/artifacts/JavascriptIcon.d.ts +0 -3
- package/esm/icons/artifacts/JavascriptIcon.js +0 -4
- package/esm/icons/artifacts/JavascriptIcon.js.map +0 -1
- package/esm/icons/artifacts/MarkdownIcon.d.ts +0 -3
- package/esm/icons/artifacts/MarkdownIcon.js +0 -4
- package/esm/icons/artifacts/MarkdownIcon.js.map +0 -1
- package/esm/icons/artifacts/PythonIcon.d.ts +0 -3
- package/esm/icons/artifacts/PythonIcon.js +0 -4
- package/esm/icons/artifacts/PythonIcon.js.map +0 -1
- package/esm/icons/artifacts/SvgIcon.d.ts +0 -3
- package/esm/icons/artifacts/SvgIcon.js +0 -4
- package/esm/icons/artifacts/SvgIcon.js.map +0 -1
- package/esm/icons/artifacts/XmlIcon.d.ts +0 -3
- package/esm/icons/artifacts/XmlIcon.js +0 -4
- package/esm/icons/artifacts/XmlIcon.js.map +0 -1
- package/esm/icons/artifacts/cssIcon.d.ts +0 -3
- package/esm/icons/artifacts/cssIcon.js +0 -4
- package/esm/icons/artifacts/cssIcon.js.map +0 -1
- package/esm/testUtils.d.ts +0 -5
- package/esm/testUtils.js +0 -15
- package/esm/testUtils.js.map +0 -1
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/* Shared secondary icon-button chrome (header + chat input bar).
|
|
2
|
-
CTA primary (Accedi / send) must NOT use this class. */
|
|
3
|
-
|
|
4
|
-
.memori-widget {
|
|
5
|
-
--memori-icon-active-bg: color-mix(in oklch, var(--memori-primary) 12%, transparent);
|
|
6
|
-
--memori-icon-recording-bg: color-mix(in oklch, var(--memori-error, #dc2626) 12%, transparent);
|
|
7
|
-
--memori-icon-button-size: 40px;
|
|
8
|
-
--memori-icon-button-icon-size: 20px;
|
|
9
|
-
--memori-icon-button-icon: color-mix(in oklch, var(--memori-text-color, #111827) 72%, transparent);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.memori-widget .memori-icon-button.memori-button {
|
|
13
|
-
display: inline-flex;
|
|
14
|
-
width: var(--memori-icon-button-size);
|
|
15
|
-
min-width: var(--memori-icon-button-size);
|
|
16
|
-
height: var(--memori-icon-button-size);
|
|
17
|
-
min-height: var(--memori-icon-button-size);
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
padding: 0;
|
|
22
|
-
border: 1px solid var(--memori-border-color, #ddd);
|
|
23
|
-
border-radius: var(--memori-radius-box);
|
|
24
|
-
background: transparent;
|
|
25
|
-
box-shadow: none;
|
|
26
|
-
color: var(--memori-icon-button-icon);
|
|
27
|
-
transform: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Icon + text (Cronologia, Esci, Share con label, …) — grow past the square */
|
|
31
|
-
.memori-widget .memori-icon-button.memori-icon-button--labeled.memori-button,
|
|
32
|
-
.memori-widget .memori-icon-button.memori-button:has(.memori-header--action-label),
|
|
33
|
-
.memori-widget .memori-icon-button.memori-button:has(.memori-button__content) {
|
|
34
|
-
overflow: visible;
|
|
35
|
-
width: auto;
|
|
36
|
-
min-width: var(--memori-icon-button-size);
|
|
37
|
-
max-width: none;
|
|
38
|
-
height: var(--memori-icon-button-size);
|
|
39
|
-
min-height: var(--memori-icon-button-size);
|
|
40
|
-
flex-wrap: nowrap;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
padding: 0 12px;
|
|
43
|
-
gap: 0.4rem;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.memori-widget .memori-icon-button.memori-icon-button--labeled.memori-button .memori-button__content,
|
|
48
|
-
.memori-widget .memori-icon-button.memori-button:has(.memori-button__content) .memori-button__content,
|
|
49
|
-
.memori-widget .memori-icon-button.memori-button .memori-header--action-label {
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
overflow: visible;
|
|
52
|
-
align-items: center;
|
|
53
|
-
font-size: var(--memori-text-size-sm, 0.8125rem);
|
|
54
|
-
font-weight: var(--memori-text-weight-medium, 500);
|
|
55
|
-
line-height: 1.2;
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.memori-widget .memori-icon-button.memori-button svg,
|
|
60
|
-
.memori-widget .memori-icon-button.memori-button .icon {
|
|
61
|
-
width: var(--memori-icon-button-icon-size, 20px);
|
|
62
|
-
height: var(--memori-icon-button-icon-size, 20px);
|
|
63
|
-
flex-shrink: 0;
|
|
64
|
-
/* Keep lucide / custom icons as authored — only size them */
|
|
65
|
-
color: inherit;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Mute (VolumeX): slightly larger glyph + heavier stroke so the X reads clearly */
|
|
69
|
-
.memori-widget .memori-icon-button.memori-button svg.lucide-volume-x {
|
|
70
|
-
width: calc(var(--memori-icon-button-icon-size, 20px) + 1px);
|
|
71
|
-
height: calc(var(--memori-icon-button-icon-size, 20px) + 1px);
|
|
72
|
-
stroke-width: 2.35;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.memori-widget .memori-icon-button.memori-button:disabled,
|
|
76
|
-
.memori-widget .memori-icon-button.memori-button.memori-button--disabled {
|
|
77
|
-
cursor: not-allowed;
|
|
78
|
-
opacity: 0.35;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.memori-widget .memori-icon-button.memori-button:focus {
|
|
82
|
-
outline: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.memori-widget .memori-icon-button.memori-button:focus-visible {
|
|
86
|
-
border-color: var(--memori-primary);
|
|
87
|
-
box-shadow: var(--memori-focus-ring, 0 0 0 3px color-mix(in oklch, var(--memori-primary) 18%, transparent));
|
|
88
|
-
outline: 2px solid var(--memori-primary);
|
|
89
|
-
outline-offset: var(--memori-focus-ring-offset, 2px);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.memori-widget .memori-icon-button.memori-button:hover:not(:disabled, .memori-button--disabled) {
|
|
93
|
-
border-color: color-mix(in oklch, var(--memori-text-color, #111827) 28%, transparent);
|
|
94
|
-
background: color-mix(in oklch, var(--memori-text-color, #111827) 6%, transparent);
|
|
95
|
-
box-shadow: none;
|
|
96
|
-
color: var(--memori-text-color, #111827);
|
|
97
|
-
transform: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* Active / popover open — soft primary, never solid CTA fill */
|
|
101
|
-
.memori-widget .memori-icon-button.memori-button.memori-icon-button--active,
|
|
102
|
-
.memori-widget .memori-icon-button.memori-button.memori-button--active,
|
|
103
|
-
.memori-widget
|
|
104
|
-
.memori-icon-button.memori-button--outline.memori-button--active:not(:disabled, .memori-button--disabled),
|
|
105
|
-
.memori-widget
|
|
106
|
-
.memori-icon-button.memori-button--toolbar.memori-button--active:not(:disabled, .memori-button--disabled),
|
|
107
|
-
.memori-widget .memori-icon-button.memori-button--ghost.memori-button--active:not(:disabled, .memori-button--disabled) {
|
|
108
|
-
border-color: var(--memori-primary);
|
|
109
|
-
background: var(--memori-icon-active-bg);
|
|
110
|
-
box-shadow: none;
|
|
111
|
-
color: var(--memori-primary);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.memori-widget
|
|
115
|
-
.memori-icon-button.memori-button.memori-icon-button--active:hover:not(:disabled, .memori-button--disabled),
|
|
116
|
-
.memori-widget .memori-icon-button.memori-button.memori-button--active:hover:not(:disabled, .memori-button--disabled) {
|
|
117
|
-
border-color: var(--memori-primary);
|
|
118
|
-
background: color-mix(in oklch, var(--memori-primary) 18%, transparent);
|
|
119
|
-
color: var(--memori-primary);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* Mic recording — soft error, not primary */
|
|
123
|
-
.memori-widget .memori-icon-button.memori-button.memori-icon-button--recording {
|
|
124
|
-
border-color: var(--memori-error, #dc2626);
|
|
125
|
-
background: var(--memori-icon-recording-bg);
|
|
126
|
-
box-shadow: none;
|
|
127
|
-
color: var(--memori-error, #dc2626);
|
|
128
|
-
transform: none;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.memori-widget .memori-icon-button.memori-button.memori-icon-button--recording:focus-visible {
|
|
132
|
-
border-color: var(--memori-error, #dc2626);
|
|
133
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--memori-error, #dc2626) 22%, transparent);
|
|
134
|
-
outline-color: var(--memori-error, #dc2626);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.memori-widget
|
|
138
|
-
.memori-icon-button.memori-button.memori-icon-button--recording:hover:not(:disabled, .memori-button--disabled) {
|
|
139
|
-
border-color: var(--memori-error, #dc2626);
|
|
140
|
-
background: var(--memori-icon-recording-bg);
|
|
141
|
-
box-shadow: none;
|
|
142
|
-
color: var(--memori-error, #dc2626);
|
|
143
|
-
transform: none;
|
|
144
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@memori.ai/ui';
|
|
3
|
-
export type IconButtonProps = Omit<React.ComponentProps<typeof Button>, 'variant' | 'active'> & {
|
|
4
|
-
active?: boolean;
|
|
5
|
-
recording?: boolean;
|
|
6
|
-
variant?: React.ComponentProps<typeof Button>['variant'];
|
|
7
|
-
};
|
|
8
|
-
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "children" | "form" | "slot" | "style" | "title" | "shape" | "value" | "className" | "key" | "name" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "render" | "type" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "focusableWhenDisabled" | "nativeButton" | "danger" | "variant" | "loading" | "icon" | "size" | "active" | "fullWidth" | "iconPosition" | "shadow" | "ariaLabel" | "recording"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export default IconButton;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
import { Button } from '@memori.ai/ui';
|
|
5
|
-
function hasVisibleLabel(children) {
|
|
6
|
-
return React.Children.toArray(children).some(child => {
|
|
7
|
-
if (child === null || child === undefined)
|
|
8
|
-
return false;
|
|
9
|
-
if (typeof child === 'boolean')
|
|
10
|
-
return false;
|
|
11
|
-
if (typeof child === 'string')
|
|
12
|
-
return child.trim().length > 0;
|
|
13
|
-
if (typeof child === 'number')
|
|
14
|
-
return true;
|
|
15
|
-
return true;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const IconButton = React.forwardRef(({ active = false, recording = false, className, variant = 'toolbar', shape = 'default', size = 'sm', children, ...rest }, ref) => {
|
|
19
|
-
const isRecording = !!recording;
|
|
20
|
-
const isActive = !!active && !isRecording;
|
|
21
|
-
const isLabeled = hasVisibleLabel(children);
|
|
22
|
-
const resolvedVariant = variant === 'primary' ||
|
|
23
|
-
variant === 'secondary' ||
|
|
24
|
-
variant === 'danger' ||
|
|
25
|
-
variant === 'outline' ||
|
|
26
|
-
variant === 'ghost'
|
|
27
|
-
? 'toolbar'
|
|
28
|
-
: variant;
|
|
29
|
-
return (_jsx(Button, { ref: ref, variant: resolvedVariant, shape: shape, size: size, active: isActive, className: cx('memori-icon-button', isLabeled && 'memori-icon-button--labeled', isActive && 'memori-icon-button--active', isRecording && 'memori-icon-button--recording', className), ...rest, children: children }));
|
|
30
|
-
});
|
|
31
|
-
IconButton.displayName = 'IconButton';
|
|
32
|
-
export default IconButton;
|
|
33
|
-
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvC,SAAS,eAAe,CAAC,QAAyB;IAChD,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACnD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxD,IAAI,OAAO,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QAC9D,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC;AAMD,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACjC,CACE,EACE,MAAM,GAAG,KAAK,EACd,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,IAAI,EACX,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,CAAC,CAAC,SAAS,CAAC;IAChC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC;IAC1C,MAAM,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE5C,MAAM,eAAe,GACnB,OAAO,KAAK,SAAS;QACrB,OAAO,KAAK,WAAW;QACvB,OAAO,KAAK,QAAQ;QACpB,OAAO,KAAK,SAAS;QACrB,OAAO,KAAK,OAAO;QACjB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,OAAO,CAAC;IAEd,OAAO,CACL,KAAC,MAAM,IACL,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,QAAQ,EAChB,SAAS,EAAE,EAAE,CACX,oBAAoB,EACpB,SAAS,IAAI,6BAA6B,EAC1C,QAAQ,IAAI,4BAA4B,EACxC,WAAW,IAAI,+BAA+B,EAC9C,SAAS,CACV,KACG,IAAI,YAEP,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,eAAe,UAAU,CAAC"}
|
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
.memori-mobile-session-panel--overlay {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 2100;
|
|
4
|
-
top: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-end;
|
|
10
|
-
background: rgba(0, 0, 0, 0.34);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.memori-mobile-session-panel--backdrop {
|
|
14
|
-
position: absolute;
|
|
15
|
-
z-index: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: none;
|
|
18
|
-
margin: 0;
|
|
19
|
-
background: transparent;
|
|
20
|
-
cursor: default;
|
|
21
|
-
inset: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.memori-mobile-session-panel--overlay-popover {
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
background: transparent;
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.memori-mobile-session-panel {
|
|
32
|
-
position: relative;
|
|
33
|
-
z-index: 1;
|
|
34
|
-
overflow: auto;
|
|
35
|
-
width: 100%;
|
|
36
|
-
max-height: 90vh;
|
|
37
|
-
padding: 0.75rem 0 0;
|
|
38
|
-
border-radius: 20px 20px 0 0;
|
|
39
|
-
background: var(--memori-secondary-background, #f5f5f5);
|
|
40
|
-
transition: transform 0.2s ease-out;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.memori-mobile-session-panel:not(.memori-mobile-session-panel--popover) {
|
|
44
|
-
margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.memori-mobile-session-panel--popover {
|
|
48
|
-
width: min(24rem, calc(100vw - 1rem));
|
|
49
|
-
max-height: min(75vh, 34rem);
|
|
50
|
-
border: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
51
|
-
border-radius: 14px;
|
|
52
|
-
margin: 0.5rem;
|
|
53
|
-
margin-top: 4.5rem;
|
|
54
|
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
|
|
55
|
-
overflow-x: hidden;
|
|
56
|
-
overflow-y: auto;
|
|
57
|
-
pointer-events: auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.memori-mobile-session-panel--handle {
|
|
61
|
-
width: 44px;
|
|
62
|
-
height: 4px;
|
|
63
|
-
border-radius: 999px;
|
|
64
|
-
margin: 0 auto 0.875rem;
|
|
65
|
-
background: var(--memori-border-color);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.memori-mobile-session-panel--user {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
padding: 0 1rem 0.9rem;
|
|
72
|
-
border-bottom: 1px solid var(--memori-border-color);
|
|
73
|
-
gap: 0.75rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.memori-mobile-session-panel--login {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
padding: 0.45rem 0.8rem;
|
|
81
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
82
|
-
border-radius: 999px;
|
|
83
|
-
margin-left: auto;
|
|
84
|
-
background: var(--memori-main-background);
|
|
85
|
-
color: var(--memori-text-color, #111);
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
font-size: 0.82rem;
|
|
88
|
-
font-weight: 600;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.memori-mobile-session-panel--login-cta-wrap {
|
|
92
|
-
position: sticky;
|
|
93
|
-
bottom: 0;
|
|
94
|
-
/* padding: 0.75rem 1rem calc(0.95rem + env(safe-area-inset-bottom, 0px)); */
|
|
95
|
-
border-top: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
96
|
-
margin-top: 0.5rem;
|
|
97
|
-
background: var(--memori-secondary-background, #f5f5f5);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.memori-mobile-session-panel--login-cta {
|
|
101
|
-
width: 100%;
|
|
102
|
-
min-height: 2.8rem;
|
|
103
|
-
justify-content: flex-start !important;
|
|
104
|
-
padding: 0.72rem 1rem !important;
|
|
105
|
-
border: 0 !important;
|
|
106
|
-
border-radius: 0 !important;
|
|
107
|
-
gap: 0.5rem;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.memori-mobile-session-panel--login-cta > span {
|
|
111
|
-
gap: 0.5rem;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.memori-mobile-session-panel--avatar {
|
|
115
|
-
display: inline-flex;
|
|
116
|
-
width: 42px;
|
|
117
|
-
height: 42px;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
border-radius: 999px;
|
|
121
|
-
background: linear-gradient(140deg, #6f63d9, #4f5dcf);
|
|
122
|
-
color: #fff;
|
|
123
|
-
font-size: 1rem;
|
|
124
|
-
font-weight: 600;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.memori-mobile-session-panel--user-meta {
|
|
128
|
-
min-width: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.memori-mobile-session-panel--user-name {
|
|
132
|
-
margin: 0;
|
|
133
|
-
color: var(--memori-text-color, #111);
|
|
134
|
-
font-size: 1rem;
|
|
135
|
-
font-weight: 600;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.memori-mobile-session-panel--user-email {
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
margin: 0.1rem 0 0;
|
|
141
|
-
color: var(--memori-text-color);
|
|
142
|
-
font-size: 0.9rem;
|
|
143
|
-
text-overflow: ellipsis;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.memori-mobile-session-panel--session-info {
|
|
148
|
-
padding-bottom: 0.15rem;
|
|
149
|
-
border-bottom: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
150
|
-
margin-bottom: 0.15rem;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.memori-mobile-session-panel--section-title {
|
|
154
|
-
padding: 0.85rem 1rem 0.3rem;
|
|
155
|
-
color: var(--memori-text-color);
|
|
156
|
-
font-size: 0.8rem;
|
|
157
|
-
font-weight: 600;
|
|
158
|
-
letter-spacing: 0.03em;
|
|
159
|
-
text-transform: uppercase;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.memori-mobile-session-panel--actions {
|
|
163
|
-
padding: 0;
|
|
164
|
-
margin: 0;
|
|
165
|
-
list-style: none;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.memori-mobile-session-panel--action {
|
|
169
|
-
display: flex;
|
|
170
|
-
width: 100%;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: flex-start;
|
|
173
|
-
padding: 0.72rem 1rem;
|
|
174
|
-
border: 0;
|
|
175
|
-
border-radius: 0 !important;
|
|
176
|
-
background: transparent;
|
|
177
|
-
color: inherit;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
gap: 0.7rem;
|
|
180
|
-
text-align: left;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.memori-mobile-session-panel--actions li {
|
|
184
|
-
width: 100%;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.memori-mobile-session-panel--action:disabled {
|
|
188
|
-
cursor: not-allowed;
|
|
189
|
-
opacity: 0.45;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.memori-mobile-session-panel--action-icon {
|
|
193
|
-
display: inline-flex;
|
|
194
|
-
width: 2.3rem;
|
|
195
|
-
height: 2.3rem;
|
|
196
|
-
align-items: center;
|
|
197
|
-
justify-content: center;
|
|
198
|
-
border: 1px solid color-mix(in srgb, var(--memori-text-color, #111827) 16%, transparent);
|
|
199
|
-
border-radius: 12px;
|
|
200
|
-
color: var(--memori-icon-button-icon, color-mix(in oklch, var(--memori-text-color, #111827) 72%, transparent));
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
[data-theme='dark'] .memori-mobile-session-panel--action-icon {
|
|
204
|
-
border-color: color-mix(in srgb, #fff 16%, transparent);
|
|
205
|
-
color: #fff;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.memori-mobile-session-panel--logout .memori-mobile-session-panel--action-icon {
|
|
209
|
-
color: #a53b45;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.memori-mobile-session-panel--action:focus-visible .memori-mobile-session-panel--action-icon {
|
|
213
|
-
color: var(--memori-primary);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.memori-mobile-session-panel--action:hover:not(:disabled) .memori-mobile-session-panel--action-icon {
|
|
217
|
-
color: var(--memori-primary);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
[data-theme='dark'] .memori-mobile-session-panel--action:focus-visible .memori-mobile-session-panel--action-icon {
|
|
221
|
-
color: var(--memori-primary);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
[data-theme='dark'] .memori-mobile-session-panel--action:hover:not(:disabled) .memori-mobile-session-panel--action-icon {
|
|
225
|
-
color: var(--memori-primary);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.memori-mobile-session-panel--action-icon svg {
|
|
229
|
-
width: 1rem;
|
|
230
|
-
max-width: 1rem;
|
|
231
|
-
height: 1rem;
|
|
232
|
-
max-height: 1rem;
|
|
233
|
-
flex-shrink: 0;
|
|
234
|
-
color: inherit;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.memori-mobile-session-panel--action-copy {
|
|
238
|
-
display: flex;
|
|
239
|
-
min-width: 0;
|
|
240
|
-
flex: 1;
|
|
241
|
-
flex-direction: column;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.memori-mobile-session-panel--action-title {
|
|
245
|
-
color: var(--memori-text-color, #111);
|
|
246
|
-
font-size: 1rem;
|
|
247
|
-
font-weight: 500;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.memori-mobile-session-panel--action-subtitle {
|
|
251
|
-
color: var(--memori-text-color);
|
|
252
|
-
font-size: 0.82rem;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.memori-mobile-session-panel--action-trailing {
|
|
256
|
-
display: inline-flex;
|
|
257
|
-
align-items: center;
|
|
258
|
-
margin-left: auto;
|
|
259
|
-
color: var(--memori-text-color);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.memori-mobile-session-panel--chevron {
|
|
263
|
-
font-size: 1rem;
|
|
264
|
-
font-weight: 700;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.memori-mobile-session-panel--logout {
|
|
268
|
-
display: flex !important;
|
|
269
|
-
width: calc(100% - 2rem);
|
|
270
|
-
align-items: center !important;
|
|
271
|
-
justify-content: flex-start !important;
|
|
272
|
-
padding: 0.85rem 0rem !important;
|
|
273
|
-
border: 0;
|
|
274
|
-
border-radius: 0 !important;
|
|
275
|
-
border-top: 1px solid var(--memori-border-color);
|
|
276
|
-
margin: 0.35rem 1rem 0.2rem;
|
|
277
|
-
background: transparent;
|
|
278
|
-
color: #a53b45;
|
|
279
|
-
cursor: pointer;
|
|
280
|
-
gap: 0.7rem;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.memori-mobile-session-panel--logout > span {
|
|
284
|
-
gap: 0.5rem;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.memori-mobile-session-panel--action .memori-button__content {
|
|
288
|
-
display: flex !important;
|
|
289
|
-
width: 100%;
|
|
290
|
-
align-items: center;
|
|
291
|
-
gap: 0.5rem;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.memori-mobile-session-panel--logout-label {
|
|
295
|
-
font-size: 1.02rem;
|
|
296
|
-
font-weight: 500;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.memori-mobile-session-panel--page {
|
|
300
|
-
padding: 0.25rem 1rem 1rem;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.memori-mobile-session-panel--back {
|
|
304
|
-
display: inline-flex !important;
|
|
305
|
-
align-items: center !important;
|
|
306
|
-
padding: 0;
|
|
307
|
-
border: 0;
|
|
308
|
-
border-radius: 0 !important;
|
|
309
|
-
margin-bottom: 0.4rem;
|
|
310
|
-
background: transparent;
|
|
311
|
-
color: var(--memori-text-color);
|
|
312
|
-
cursor: pointer;
|
|
313
|
-
font-size: 0.88rem;
|
|
314
|
-
font-weight: 600;
|
|
315
|
-
gap: 0.35rem;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.memori-mobile-session-panel--page:has(.memori-mobile-session-panel--back) {
|
|
319
|
-
padding-top: 0;
|
|
320
|
-
padding-bottom: 0.65rem;
|
|
321
|
-
border-bottom: 0.5px solid var(--memori-border-color, #e5e7eb);
|
|
322
|
-
margin-bottom: 0.75rem;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/* User details typography */
|
|
326
|
-
.memori-dropdown--user-details {
|
|
327
|
-
display: flex;
|
|
328
|
-
min-width: 0;
|
|
329
|
-
flex: 1;
|
|
330
|
-
flex-direction: column;
|
|
331
|
-
gap: 2px;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.memori-dropdown--user-name {
|
|
335
|
-
margin: 0;
|
|
336
|
-
color: var(--memori-text-color, #111);
|
|
337
|
-
font-size: 1.05rem;
|
|
338
|
-
font-weight: 700;
|
|
339
|
-
letter-spacing: -0.01em;
|
|
340
|
-
line-height: 1.3;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.memori-dropdown--user-email {
|
|
344
|
-
overflow: hidden;
|
|
345
|
-
margin: 0;
|
|
346
|
-
color: var(--memori-text-muted, #666);
|
|
347
|
-
font-size: 0.875rem;
|
|
348
|
-
line-height: 1.35;
|
|
349
|
-
text-overflow: ellipsis;
|
|
350
|
-
white-space: nowrap;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.memori-mobile-session-panel--page-title {
|
|
354
|
-
margin: 0 0 0.8rem;
|
|
355
|
-
color: var(--memori-text-color, #111);
|
|
356
|
-
font-size: 1.15rem;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.memori-mobile-session-panel--page-content {
|
|
360
|
-
display: flex;
|
|
361
|
-
flex-direction: column;
|
|
362
|
-
gap: 0.8rem;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.memori-mobile-session-panel--share-content,
|
|
366
|
-
.memori-mobile-session-panel--share-content * {
|
|
367
|
-
font-family: var(--memori-font-family, 'Lexend Deca', sans-serif);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.memori-mobile-session-panel--ai-usage-content {
|
|
371
|
-
padding: 0;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.memori-mobile-session-panel--ai-usage.memori-dropdown--sustainability {
|
|
375
|
-
width: 100%;
|
|
376
|
-
min-width: 0;
|
|
377
|
-
padding: 0;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.memori-mobile-session-panel--meta-label {
|
|
381
|
-
margin: 0;
|
|
382
|
-
color: var(--memori-text-color);
|
|
383
|
-
font-size: 0.8rem;
|
|
384
|
-
text-transform: uppercase;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.memori-mobile-session-panel--meta-value {
|
|
388
|
-
margin: 0;
|
|
389
|
-
color: var(--memori-text-color, #111);
|
|
390
|
-
font-size: 0.96rem;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.memori-mobile-session-panel--page-actions {
|
|
394
|
-
display: flex;
|
|
395
|
-
flex-direction: column;
|
|
396
|
-
gap: 0.5rem;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.memori-mobile-session-panel--page-btn {
|
|
400
|
-
display: flex !important;
|
|
401
|
-
width: 100%;
|
|
402
|
-
align-items: center !important;
|
|
403
|
-
justify-content: center !important;
|
|
404
|
-
padding: 0.65rem 0.75rem;
|
|
405
|
-
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
406
|
-
/* border-radius: 0 !important; */
|
|
407
|
-
background: var(--memori-main-background);
|
|
408
|
-
color: var(--memori-text-color, #111);
|
|
409
|
-
cursor: pointer;
|
|
410
|
-
font-size: 0.9rem;
|
|
411
|
-
font-weight: 600;
|
|
412
|
-
text-align: center;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.memori-mobile-session-panel--page-btn .memori-button__content {
|
|
416
|
-
display: inline-flex !important;
|
|
417
|
-
width: 100%;
|
|
418
|
-
align-items: center;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
gap: 0.5rem;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.memori-mobile-session-panel--page-btn-active {
|
|
424
|
-
border-color: color-mix(in oklch, var(--memori-success, #16a34a) 55%, var(--memori-border-color, #e5e7eb));
|
|
425
|
-
color: var(--memori-text-color, #111);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.memori-mobile-session-panel--page-btn:disabled {
|
|
429
|
-
cursor: not-allowed;
|
|
430
|
-
opacity: 0.45;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.memori-mobile-session-panel--page-btn-secondary {
|
|
434
|
-
background: transparent;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
[data-theme='dark'] .memori-mobile-session-panel--page-btn-active,
|
|
438
|
-
.memori-widget[data-theme='dark'] .memori-mobile-session-panel--page-btn-active {
|
|
439
|
-
background: transparent;
|
|
440
|
-
color: var(--memori-text-color, #fff);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.memori-mobile-session-panel--known-facts-description,
|
|
444
|
-
.memori-mobile-session-panel--known-facts-count {
|
|
445
|
-
margin: 0;
|
|
446
|
-
color: rgba(0, 0, 0, 0.7);
|
|
447
|
-
font-size: 0.9rem;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
@media (max-width: 768px) {
|
|
451
|
-
.memori-mobile-session-panel--overlay {
|
|
452
|
-
display: flex;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
.memori-mobile-session-panel--overlay-popover {
|
|
456
|
-
align-items: flex-start;
|
|
457
|
-
justify-content: flex-end;
|
|
458
|
-
}
|
|
459
|
-
}
|