@difizen/libro-core 0.0.2-alpha.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/LICENSE +21 -0
- package/README.md +3 -0
- package/es/add-cell/index.d.ts +4 -0
- package/es/add-cell/index.d.ts.map +1 -0
- package/es/add-cell/index.js +3 -0
- package/es/add-cell/index.less +38 -0
- package/es/add-cell/libro-add-cell-module.d.ts +3 -0
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-module.js +4 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +12 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-slot-contribution.js +53 -0
- package/es/add-cell/libro-add-cell-view.d.ts +21 -0
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-view.js +129 -0
- package/es/cell/index.d.ts +10 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +9 -0
- package/es/cell/libro-cell-contribution.d.ts +13 -0
- package/es/cell/libro-cell-contribution.d.ts.map +1 -0
- package/es/cell/libro-cell-contribution.js +41 -0
- package/es/cell/libro-cell-model.d.ts +19 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -0
- package/es/cell/libro-cell-model.js +103 -0
- package/es/cell/libro-cell-module.d.ts +10 -0
- package/es/cell/libro-cell-module.d.ts.map +1 -0
- package/es/cell/libro-cell-module.js +30 -0
- package/es/cell/libro-cell-protocol.d.ts +42 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -0
- package/es/cell/libro-cell-protocol.js +11 -0
- package/es/cell/libro-cell-service.d.ts +28 -0
- package/es/cell/libro-cell-service.d.ts.map +1 -0
- package/es/cell/libro-cell-service.js +242 -0
- package/es/cell/libro-cell-view.d.ts +65 -0
- package/es/cell/libro-cell-view.d.ts.map +1 -0
- package/es/cell/libro-cell-view.js +191 -0
- package/es/cell/libro-edit-cell-view.d.ts +32 -0
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -0
- package/es/cell/libro-edit-cell-view.js +72 -0
- package/es/cell/libro-executable-cell-model.d.ts +14 -0
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-model.js +7 -0
- package/es/cell/libro-executable-cell-view.d.ts +27 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-view.js +66 -0
- package/es/cell/libro-markdown-cell-model.d.ts +9 -0
- package/es/cell/libro-markdown-cell-model.d.ts.map +1 -0
- package/es/cell/libro-markdown-cell-model.js +7 -0
- package/es/collapse-service.d.ts +36 -0
- package/es/collapse-service.d.ts.map +1 -0
- package/es/collapse-service.js +55 -0
- package/es/command/document-commands.d.ts +6 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +13 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +6 -0
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +39 -0
- package/es/command/libro-command-contribution.d.ts +14 -0
- package/es/command/libro-command-contribution.d.ts.map +1 -0
- package/es/command/libro-command-contribution.js +1751 -0
- package/es/command/libro-command-register.d.ts +22 -0
- package/es/command/libro-command-register.d.ts.map +1 -0
- package/es/command/libro-command-register.js +105 -0
- package/es/command/module.d.ts +3 -0
- package/es/command/module.d.ts.map +1 -0
- package/es/command/module.js +4 -0
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +468 -0
- package/es/components/cell-protocol.d.ts +20 -0
- package/es/components/cell-protocol.d.ts.map +1 -0
- package/es/components/cell-protocol.js +4 -0
- package/es/components/dnd-cell-item-render.d.ts +12 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -0
- package/es/components/dnd-cell-item-render.js +253 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts +9 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -0
- package/es/components/dnd-component/custom-drag-layer.js +141 -0
- package/es/components/dnd-component/default-dnd-content.d.ts +10 -0
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -0
- package/es/components/dnd-component/default-dnd-content.js +257 -0
- package/es/components/dnd-component/dnd-context.d.ts +3 -0
- package/es/components/dnd-component/dnd-context.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-context.js +20 -0
- package/es/components/dnd-component/dnd-list.d.ts +10 -0
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-list.js +115 -0
- package/es/components/dnd-component/index.d.ts +5 -0
- package/es/components/dnd-component/index.d.ts.map +1 -0
- package/es/components/dnd-component/index.js +4 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +5 -0
- package/es/components/libro-component.d.ts +5 -0
- package/es/components/libro-component.d.ts.map +1 -0
- package/es/components/libro-component.js +35 -0
- package/es/components/libro-side-toolbar-menu.d.ts +21 -0
- package/es/components/libro-side-toolbar-menu.d.ts.map +1 -0
- package/es/components/libro-side-toolbar-menu.js +58 -0
- package/es/components/libro-view-header.d.ts +3 -0
- package/es/components/libro-view-header.d.ts.map +1 -0
- package/es/components/libro-view-header.js +37 -0
- package/es/configuration/libro-configuration-contribution.d.ts +5 -0
- package/es/configuration/libro-configuration-contribution.d.ts.map +1 -0
- package/es/configuration/libro-configuration-contribution.js +24 -0
- package/es/configuration/libro-configuration.d.ts +10 -0
- package/es/configuration/libro-configuration.d.ts.map +1 -0
- package/es/configuration/libro-configuration.js +81 -0
- package/es/content/index.d.ts +5 -0
- package/es/content/index.d.ts.map +1 -0
- package/es/content/index.js +4 -0
- package/es/content/libro-content-contribution.d.ts +11 -0
- package/es/content/libro-content-contribution.d.ts.map +1 -0
- package/es/content/libro-content-contribution.js +32 -0
- package/es/content/libro-content-module.d.ts +3 -0
- package/es/content/libro-content-module.d.ts.map +1 -0
- package/es/content/libro-content-module.js +5 -0
- package/es/content/libro-content-protocol.d.ts +8 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -0
- package/es/content/libro-content-protocol.js +2 -0
- package/es/content/libro-content-service.d.ts +9 -0
- package/es/content/libro-content-service.d.ts.map +1 -0
- package/es/content/libro-content-service.js +35 -0
- package/es/index.d.ts +20 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +19 -0
- package/es/index.less +682 -0
- package/es/libro-context-key.d.ts +22 -0
- package/es/libro-context-key.d.ts.map +1 -0
- package/es/libro-context-key.js +80 -0
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-keybind-registry.js +68 -0
- package/es/libro-model.d.ts +129 -0
- package/es/libro-model.d.ts.map +1 -0
- package/es/libro-model.js +803 -0
- package/es/libro-protocol.d.ts +241 -0
- package/es/libro-protocol.d.ts.map +1 -0
- package/es/libro-protocol.js +34 -0
- package/es/libro-service.d.ts +34 -0
- package/es/libro-service.d.ts.map +1 -0
- package/es/libro-service.js +180 -0
- package/es/libro-view-tracker.d.ts +6 -0
- package/es/libro-view-tracker.d.ts.map +1 -0
- package/es/libro-view-tracker.js +13 -0
- package/es/libro-view.d.ts +151 -0
- package/es/libro-view.d.ts.map +1 -0
- package/es/libro-view.js +1963 -0
- package/es/material-from-designer.d.ts +27 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +550 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +55 -0
- package/es/output/index.d.ts +6 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +5 -0
- package/es/output/output-area.d.ts +51 -0
- package/es/output/output-area.d.ts.map +1 -0
- package/es/output/output-area.js +346 -0
- package/es/output/output-contribution.d.ts +11 -0
- package/es/output/output-contribution.d.ts.map +1 -0
- package/es/output/output-contribution.js +31 -0
- package/es/output/output-model.d.ts +27 -0
- package/es/output/output-model.d.ts.map +1 -0
- package/es/output/output-model.js +95 -0
- package/es/output/output-module.d.ts +3 -0
- package/es/output/output-module.d.ts.map +1 -0
- package/es/output/output-module.js +6 -0
- package/es/output/output-protocol.d.ts +130 -0
- package/es/output/output-protocol.d.ts.map +1 -0
- package/es/output/output-protocol.js +18 -0
- package/es/slot/index.d.ts +5 -0
- package/es/slot/index.d.ts.map +1 -0
- package/es/slot/index.js +4 -0
- package/es/slot/libro-slot-manager.d.ts +13 -0
- package/es/slot/libro-slot-manager.d.ts.map +1 -0
- package/es/slot/libro-slot-manager.js +57 -0
- package/es/slot/libro-slot-protocol.d.ts +19 -0
- package/es/slot/libro-slot-protocol.d.ts.map +1 -0
- package/es/slot/libro-slot-protocol.js +5 -0
- package/es/slot/libro-slot-view.d.ts +9 -0
- package/es/slot/libro-slot-view.d.ts.map +1 -0
- package/es/slot/libro-slot-view.js +81 -0
- package/es/slot/module.d.ts +3 -0
- package/es/slot/module.d.ts.map +1 -0
- package/es/slot/module.js +5 -0
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +494 -0
- package/es/toolbar/change-cell-to-selector.d.ts +5 -0
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -0
- package/es/toolbar/change-cell-to-selector.js +48 -0
- package/es/toolbar/hide-all-selector.d.ts +5 -0
- package/es/toolbar/hide-all-selector.d.ts.map +1 -0
- package/es/toolbar/hide-all-selector.js +99 -0
- package/es/toolbar/index.d.ts +4 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +3 -0
- package/es/toolbar/index.less +59 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts +4 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar-protocol.js +1 -0
- package/es/toolbar/libro-toolbar.d.ts +8 -0
- package/es/toolbar/libro-toolbar.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar.js +223 -0
- package/es/toolbar/module.d.ts +3 -0
- package/es/toolbar/module.d.ts.map +1 -0
- package/es/toolbar/module.js +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-contribution.js +23 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts +6 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-modal.js +30 -0
- package/es/toolbar/save-icon.d.ts +3 -0
- package/es/toolbar/save-icon.d.ts.map +1 -0
- package/es/toolbar/save-icon.js +54 -0
- package/es/toolbar/shutdown-contribution.d.ts +5 -0
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -0
- package/es/toolbar/shutdown-contribution.js +23 -0
- package/es/toolbar/shutdown-modal.d.ts +6 -0
- package/es/toolbar/shutdown-modal.d.ts.map +1 -0
- package/es/toolbar/shutdown-modal.js +30 -0
- package/es/toolbar/side-toolar-more-select.d.ts +4 -0
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -0
- package/es/toolbar/side-toolar-more-select.js +161 -0
- package/es/typings/index.d.ts +1 -0
- package/package.json +70 -0
- package/src/add-cell/index.less +38 -0
- package/src/add-cell/index.ts +3 -0
- package/src/add-cell/libro-add-cell-module.ts +9 -0
- package/src/add-cell/libro-add-cell-slot-contribution.ts +31 -0
- package/src/add-cell/libro-add-cell-view.tsx +101 -0
- package/src/cell/README.md +14 -0
- package/src/cell/index.ts +9 -0
- package/src/cell/libro-cell-contribution.ts +38 -0
- package/src/cell/libro-cell-model.ts +61 -0
- package/src/cell/libro-cell-module.ts +40 -0
- package/src/cell/libro-cell-protocol.ts +53 -0
- package/src/cell/libro-cell-service.ts +157 -0
- package/src/cell/libro-cell-view.tsx +128 -0
- package/src/cell/libro-edit-cell-view.tsx +60 -0
- package/src/cell/libro-executable-cell-model.ts +32 -0
- package/src/cell/libro-executable-cell-view.ts +74 -0
- package/src/cell/libro-markdown-cell-model.ts +20 -0
- package/src/collapse-service.ts +69 -0
- package/src/command/document-commands.ts +18 -0
- package/src/command/index.ts +6 -0
- package/src/command/kernel-command.ts +41 -0
- package/src/command/libro-command-contribution.ts +1339 -0
- package/src/command/libro-command-register.ts +171 -0
- package/src/command/module.ts +9 -0
- package/src/command/notebook-commands.ts +498 -0
- package/src/components/cell-protocol.ts +22 -0
- package/src/components/dnd-cell-item-render.tsx +308 -0
- package/src/components/dnd-component/custom-drag-layer.tsx +145 -0
- package/src/components/dnd-component/default-dnd-content.tsx +275 -0
- package/src/components/dnd-component/dnd-context.tsx +28 -0
- package/src/components/dnd-component/dnd-list.tsx +116 -0
- package/src/components/dnd-component/index.tsx +4 -0
- package/src/components/index.ts +5 -0
- package/src/components/libro-component.tsx +30 -0
- package/src/components/libro-side-toolbar-menu.tsx +82 -0
- package/src/components/libro-view-header.tsx +33 -0
- package/src/configuration/libro-configuration-contribution.ts +29 -0
- package/src/configuration/libro-configuration.ts +88 -0
- package/src/content/index.ts +4 -0
- package/src/content/libro-content-contribution.ts +17 -0
- package/src/content/libro-content-module.ts +9 -0
- package/src/content/libro-content-protocol.ts +8 -0
- package/src/content/libro-content-service.ts +30 -0
- package/src/index.less +682 -0
- package/src/index.tsx +19 -0
- package/src/libro-context-key.ts +80 -0
- package/src/libro-keybind-registry.ts +43 -0
- package/src/libro-model.ts +614 -0
- package/src/libro-protocol.ts +322 -0
- package/src/libro-service.ts +121 -0
- package/src/libro-view-tracker.ts +9 -0
- package/src/libro-view.tsx +1399 -0
- package/src/material-from-designer.tsx +457 -0
- package/src/module.ts +90 -0
- package/src/output/index.ts +5 -0
- package/src/output/output-area.tsx +255 -0
- package/src/output/output-contribution.ts +18 -0
- package/src/output/output-model.tsx +66 -0
- package/src/output/output-module.ts +10 -0
- package/src/output/output-protocol.ts +164 -0
- package/src/slot/index.ts +4 -0
- package/src/slot/libro-slot-manager.ts +37 -0
- package/src/slot/libro-slot-protocol.ts +28 -0
- package/src/slot/libro-slot-view.tsx +51 -0
- package/src/slot/module.ts +9 -0
- package/src/theme/libro-color-registry.ts +371 -0
- package/src/toolbar/change-cell-to-selector.tsx +58 -0
- package/src/toolbar/hide-all-selector.tsx +126 -0
- package/src/toolbar/index.less +59 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/libro-toolbar-protocol.ts +4 -0
- package/src/toolbar/libro-toolbar.tsx +192 -0
- package/src/toolbar/module.ts +11 -0
- package/src/toolbar/restart-clear-outputs-contribution.tsx +10 -0
- package/src/toolbar/restart-clear-outputs-modal.tsx +37 -0
- package/src/toolbar/save-icon.tsx +47 -0
- package/src/toolbar/shutdown-contribution.tsx +10 -0
- package/src/toolbar/shutdown-modal.tsx +37 -0
- package/src/toolbar/side-toolar-more-select.tsx +172 -0
- package/src/typings/index.d.ts +1 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import type { ColorRegistry } from '@difizen/mana-app';
|
|
2
|
+
import { Color, ColorContribution } from '@difizen/mana-app';
|
|
3
|
+
import { singleton } from '@difizen/mana-app';
|
|
4
|
+
|
|
5
|
+
@singleton({ contrib: ColorContribution })
|
|
6
|
+
export class LibroColorRegistry implements ColorContribution {
|
|
7
|
+
registerColors(colors: ColorRegistry): void {
|
|
8
|
+
colors.register(
|
|
9
|
+
// #region antd variable
|
|
10
|
+
{
|
|
11
|
+
id: 'libro.warning.background',
|
|
12
|
+
defaults: { dark: '#A9611466', light: '#FFFBE6' },
|
|
13
|
+
description: '',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'libro.drag.hover.line.color',
|
|
17
|
+
defaults: { dark: '#467DB0', light: '#BFE0FF' },
|
|
18
|
+
description: '',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'libro.background',
|
|
22
|
+
defaults: { dark: '#1f2022', light: '#ffffff' },
|
|
23
|
+
description: '',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'libro.popover.background.color',
|
|
27
|
+
defaults: { dark: '#2f3032', light: '#ffffff' },
|
|
28
|
+
description: '',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'libro.menu.hover.color',
|
|
32
|
+
defaults: { dark: '#515359', light: '#EBF6FF' },
|
|
33
|
+
description: '',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'libro.dropdown.icon.color',
|
|
37
|
+
defaults: {
|
|
38
|
+
dark: Color.rgba(255, 255, 255, 0.3),
|
|
39
|
+
light: Color.rgba(0, 0, 0, 0.2),
|
|
40
|
+
},
|
|
41
|
+
description: '',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'libro.input.background',
|
|
45
|
+
defaults: { dark: '#19191B', light: '#F4F6FB' },
|
|
46
|
+
description: '',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'libro.text.default.color',
|
|
50
|
+
defaults: { dark: '#e3e4e6', light: '#000000' },
|
|
51
|
+
description: '',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: 'libro.text.tertiary.color',
|
|
55
|
+
defaults: { dark: '#bdc0c4', light: '#B8BABA' },
|
|
56
|
+
description: '',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'libro.output.background',
|
|
60
|
+
defaults: { dark: '#292A2D', light: '#fff' },
|
|
61
|
+
description: '',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'libro.toptoolbar.border.color',
|
|
65
|
+
defaults: {
|
|
66
|
+
dark: Color.rgba(255, 255, 255, 0.1),
|
|
67
|
+
light: Color.rgba(0, 0, 0, 0.1),
|
|
68
|
+
},
|
|
69
|
+
description: '',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'libro.toptoolbar.icon.color',
|
|
73
|
+
defaults: { dark: '#BFBFBF', light: '#7B7B7B' },
|
|
74
|
+
description: '',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'libro.toptoolbar.disabled.icon.color',
|
|
78
|
+
defaults: {
|
|
79
|
+
dark: Color.rgba(255, 255, 255, 0.3),
|
|
80
|
+
light: Color.rgba(0, 0, 0, 0.25),
|
|
81
|
+
},
|
|
82
|
+
description: '',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'libro.toptoolbar.text.color',
|
|
86
|
+
defaults: { dark: '#f5f5f5', light: '#000000' },
|
|
87
|
+
description: '',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'libro.bottom.btn.background.color',
|
|
91
|
+
defaults: {
|
|
92
|
+
dark: Color.rgba(255, 255, 255, 0.04),
|
|
93
|
+
light: Color.rgba(255, 255, 255, 1),
|
|
94
|
+
},
|
|
95
|
+
description: '',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'libro.bottom.btn.border.color',
|
|
99
|
+
defaults: { dark: '#505559', light: Color.rgba(0, 10, 26, 0.16) },
|
|
100
|
+
description: '',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'libro.bottom.btn.icon.color',
|
|
104
|
+
defaults: { dark: '#505559', light: Color.rgba(82, 89, 100, 0.85) },
|
|
105
|
+
description: '',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'libro.bottom.btn.text.color',
|
|
109
|
+
defaults: { dark: '#E3E4E6', light: Color.rgba(0, 10, 26, 0.68) },
|
|
110
|
+
description: '',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: 'libro.default.btn.background.color',
|
|
114
|
+
defaults: { dark: Color.rgba(255, 255, 255, 0.1), light: '#FFFFFF' },
|
|
115
|
+
description: '',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: 'libro.default.btn.text.color',
|
|
119
|
+
defaults: { dark: '#E3E4E6', light: Color.rgba(0, 10, 26, 0.68) },
|
|
120
|
+
description: '',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'libro.primary.btn.background.color',
|
|
124
|
+
defaults: { dark: '#2A97FD', light: '#1890FF' },
|
|
125
|
+
description: '',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'libro.default.btn.border.color',
|
|
129
|
+
defaults: { dark: '#BDC0C4', light: '#D6D8DA' },
|
|
130
|
+
description: '',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: 'libro.toolbar.menu.label.color',
|
|
134
|
+
defaults: { dark: '#BDC0C4', light: Color.rgba(0, 0, 0, 0.65) },
|
|
135
|
+
description: '',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: 'libro.toolbar.menu.disabled.label.color',
|
|
139
|
+
defaults: { dark: '#878c93', light: Color.rgba(0, 0, 0, 0.25) },
|
|
140
|
+
description: '',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 'libro.toolbar.menu.keybind.color',
|
|
144
|
+
defaults: { dark: '#878c93', light: Color.rgba(0, 0, 0, 0.45) },
|
|
145
|
+
description: '',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 'libro.sidetoolbar.icon.color',
|
|
149
|
+
defaults: { dark: '#BFBFBF', light: '#6982A9' },
|
|
150
|
+
description: '',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: 'libro.sidetoolbar.border.color',
|
|
154
|
+
defaults: {
|
|
155
|
+
dark: Color.rgba(255, 255, 255, 0.08),
|
|
156
|
+
light: Color.rgba(0, 0, 0, 0.1),
|
|
157
|
+
},
|
|
158
|
+
description: '',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'libro.close.color',
|
|
162
|
+
defaults: {
|
|
163
|
+
dark: Color.rgba(255, 255, 255, 0.45),
|
|
164
|
+
light: Color.rgba(0, 0, 0, 0.45),
|
|
165
|
+
},
|
|
166
|
+
description: '',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'libro.modal.title.color',
|
|
170
|
+
defaults: { dark: '#EDEEEF', light: Color.rgba(0, 0, 0, 0.85) },
|
|
171
|
+
description: '',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: 'libro.modal.content.color',
|
|
175
|
+
defaults: { dark: '#e3e4e6', light: '#000a1a' },
|
|
176
|
+
description: '',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'libro.btn.primary.background.color',
|
|
180
|
+
defaults: { dark: '#2A97FD', light: '#1890FF' },
|
|
181
|
+
description: '',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: 'libro.execution.count.color',
|
|
185
|
+
defaults: { dark: '#8694A9', light: '#6A83AA' },
|
|
186
|
+
description: '',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 'libro.tip.font.color',
|
|
190
|
+
defaults: { dark: '#D6D8DA', light: Color.rgba(0, 0, 0, 0.5) },
|
|
191
|
+
description: '',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: 'libro.execution.tip.success.color',
|
|
195
|
+
defaults: { dark: '#48A918', light: '#0DC54E' },
|
|
196
|
+
description: '',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'libro.link.color',
|
|
200
|
+
defaults: { dark: '#177DDC', light: '#1890FF' },
|
|
201
|
+
description: '',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: 'libro.error.color',
|
|
205
|
+
defaults: { dark: '#cf4c52', light: '#ed1345' },
|
|
206
|
+
description: '',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: 'libro.cell.border.color',
|
|
210
|
+
defaults: { dark: '#3b3c42', light: '#D6DEE6' },
|
|
211
|
+
description: '',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: 'libro.cell.active.border.color',
|
|
215
|
+
defaults: { dark: '#378edf', light: '#3490ed' },
|
|
216
|
+
description: '',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'libro.cell.active.border.shadow.color',
|
|
220
|
+
defaults: {
|
|
221
|
+
dark: Color.rgba(73, 162, 250, 0.25),
|
|
222
|
+
light: Color.rgba(53, 146, 238, 0.25),
|
|
223
|
+
},
|
|
224
|
+
description: '',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: 'libro.cell.header.content',
|
|
228
|
+
defaults: { dark: '#E3E4E6', light: '#545B66' },
|
|
229
|
+
description: '',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: 'libro.cell.header.title',
|
|
233
|
+
defaults: { dark: '#d6d8da', light: '#000a1a' },
|
|
234
|
+
description: '',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: 'libro.code.border.color',
|
|
238
|
+
defaults: { dark: '#353638', light: '#DCE4EC' },
|
|
239
|
+
description: '',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: 'libro.input.border.color',
|
|
243
|
+
defaults: { dark: '#505559', light: Color.rgba(0, 0, 0, 0.15) },
|
|
244
|
+
description: '',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: 'libro.input.background.color',
|
|
248
|
+
defaults: { dark: Color.rgba(255, 255, 255, 0.04), light: '#FFFFFF' },
|
|
249
|
+
description: '',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: 'libro.input.group.btn.background.color',
|
|
253
|
+
defaults: { dark: Color.rgba(0, 0, 0, 0.02), light: Color.rgba(0, 0, 0, 0.02) },
|
|
254
|
+
description: '',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: 'libro.table.innner.border.color',
|
|
258
|
+
defaults: { dark: '#1affffff', light: '#E5EBF1' },
|
|
259
|
+
description: '',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: 'libro.table.bottom.border.color',
|
|
263
|
+
defaults: { dark: '#424242', light: '#E2E7EC' },
|
|
264
|
+
description: '',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: 'libro.editor.keyword.color',
|
|
268
|
+
defaults: { dark: '#109b67', light: '#098658' },
|
|
269
|
+
description: '',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: 'libro.editor.number.color',
|
|
273
|
+
defaults: { dark: '#109b67', light: '#098658' },
|
|
274
|
+
description: '',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
id: 'libro.editor.variable.2.color',
|
|
278
|
+
defaults: { dark: '#5da4ea', light: '#2060A0' },
|
|
279
|
+
description: '',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
id: 'libro.editor.punctuation.color',
|
|
283
|
+
defaults: { dark: '#5da4ea', light: '#2060A0' },
|
|
284
|
+
description: '',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: 'libro.editor.property.color',
|
|
288
|
+
defaults: { dark: '#5da4ea', light: '#2060A0' },
|
|
289
|
+
description: '',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: 'libro.editor.operator.color',
|
|
293
|
+
defaults: { dark: 'e12ee1', light: '#C700C7' },
|
|
294
|
+
description: '',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
id: 'libro.editor.meta.color',
|
|
298
|
+
defaults: { dark: '#e12ee1', light: '#C700C7' },
|
|
299
|
+
description: '',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: 'libro.editor.builtin.color',
|
|
303
|
+
defaults: { dark: '#109b67', light: '#098658' },
|
|
304
|
+
description: '',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: 'libro.editor.variable.color',
|
|
308
|
+
defaults: { dark: '#e3e4e6', light: '#212121' },
|
|
309
|
+
description: '',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
id: 'libro.editor.def.color',
|
|
313
|
+
defaults: { dark: '#187dff', light: '#003cff' },
|
|
314
|
+
description: '',
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
id: 'libro.editor.comment.color',
|
|
318
|
+
defaults: { dark: '#618961', light: '#406040' },
|
|
319
|
+
description: '',
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: 'libro.editor.string.color',
|
|
323
|
+
defaults: { dark: '#ff5b48', light: '#c03030' },
|
|
324
|
+
description: '',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: 'libro.editor.activeline.color',
|
|
328
|
+
defaults: {
|
|
329
|
+
dark: Color.rgba(229, 232, 240, 0.1),
|
|
330
|
+
light: Color.rgba(229, 232, 240, 0.5),
|
|
331
|
+
},
|
|
332
|
+
description: '',
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: 'libro.editor.selectionMatch.color',
|
|
336
|
+
defaults: { dark: '#99ff7780', light: '#DDE6FF' },
|
|
337
|
+
description: '',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
id: 'libro.editor.selection.color',
|
|
341
|
+
defaults: { dark: '#B4CEFF', light: '#B4CEFF' },
|
|
342
|
+
description: '',
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
id: 'libro.editor.gutter.number.color',
|
|
346
|
+
defaults: { dark: '#a8aebf', light: '#A4AECB' },
|
|
347
|
+
description: '',
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: 'libro.editor.line.color',
|
|
351
|
+
defaults: { dark: '#565C6D', light: '#A4AECB' },
|
|
352
|
+
description: '',
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
id: 'libro.editor.cursor.color',
|
|
356
|
+
defaults: { dark: '#ffffff', light: '#000000' },
|
|
357
|
+
description: '',
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id: 'libro.editor.indent.marker.bg.color',
|
|
361
|
+
defaults: { dark: '#42444d', light: '#d6dbeb' },
|
|
362
|
+
description: '',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
id: 'libro.editor.indent.marker.active.bg.color',
|
|
366
|
+
defaults: { dark: '#788491', light: '#9f9f9f' },
|
|
367
|
+
description: '',
|
|
368
|
+
},
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useInject,
|
|
3
|
+
ToolbarInstance,
|
|
4
|
+
getOrigin,
|
|
5
|
+
CommandRegistry,
|
|
6
|
+
} from '@difizen/mana-app';
|
|
7
|
+
import type { Toolbar } from '@difizen/mana-app';
|
|
8
|
+
import { Select } from 'antd';
|
|
9
|
+
import { memo } from 'react';
|
|
10
|
+
|
|
11
|
+
import type { CellMeta } from '../cell/index.js';
|
|
12
|
+
import { LibroCellService } from '../cell/index.js';
|
|
13
|
+
import { NotebookCommands } from '../command/index.js';
|
|
14
|
+
|
|
15
|
+
import type { LibroToolbarArags } from './libro-toolbar-protocol.js';
|
|
16
|
+
import './index.less';
|
|
17
|
+
|
|
18
|
+
const { Option } = Select;
|
|
19
|
+
const widthStyle = { width: 110 };
|
|
20
|
+
type ChangeType = {
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
export const ToolItemSelectInner: React.FC = () => {
|
|
25
|
+
const cellService: LibroCellService = useInject(LibroCellService);
|
|
26
|
+
const invertList: CellMeta[] = cellService.cellsMeta;
|
|
27
|
+
const toolbar = useInject<Toolbar>(ToolbarInstance);
|
|
28
|
+
const data = toolbar.currentArgs as LibroToolbarArags;
|
|
29
|
+
const command = useInject(CommandRegistry);
|
|
30
|
+
const curCell = data?.[0];
|
|
31
|
+
|
|
32
|
+
const handleChange = (value: string) => {
|
|
33
|
+
const args = getOrigin(data) || [];
|
|
34
|
+
command.executeCommand(NotebookCommands['ChangeCellTo'].id, ...args, value);
|
|
35
|
+
};
|
|
36
|
+
return (
|
|
37
|
+
<>
|
|
38
|
+
<Select
|
|
39
|
+
value={curCell?.model?.type}
|
|
40
|
+
size={'small'}
|
|
41
|
+
style={widthStyle}
|
|
42
|
+
onChange={handleChange}
|
|
43
|
+
bordered={false}
|
|
44
|
+
popupClassName="libro-cell-selector"
|
|
45
|
+
>
|
|
46
|
+
{invertList.map((item: ChangeType) => {
|
|
47
|
+
return (
|
|
48
|
+
<Option value={item.type} key={item.name}>
|
|
49
|
+
{item.name}
|
|
50
|
+
</Option>
|
|
51
|
+
);
|
|
52
|
+
})}
|
|
53
|
+
</Select>
|
|
54
|
+
</>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const ToolItemSelect = memo(ToolItemSelectInner);
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { EyeInvisibleOutlined } from '@ant-design/icons';
|
|
2
|
+
import {
|
|
3
|
+
useInject,
|
|
4
|
+
ToolbarInstance,
|
|
5
|
+
getOrigin,
|
|
6
|
+
CommandRegistry,
|
|
7
|
+
} from '@difizen/mana-app';
|
|
8
|
+
import type { Toolbar } from '@difizen/mana-app';
|
|
9
|
+
import { l10n } from '@difizen/mana-l10n';
|
|
10
|
+
import { Menu, Dropdown } from 'antd';
|
|
11
|
+
import type { MenuProps } from 'antd';
|
|
12
|
+
import { memo } from 'react';
|
|
13
|
+
|
|
14
|
+
import { ExecutableCellModel } from '../cell/index.js';
|
|
15
|
+
import { NotebookCommands } from '../command/index.js';
|
|
16
|
+
|
|
17
|
+
import type { LibroToolbarArags } from './libro-toolbar-protocol.js';
|
|
18
|
+
import './index.less';
|
|
19
|
+
|
|
20
|
+
export const HideAllSelectInner: React.FC = () => {
|
|
21
|
+
const toolbar = useInject<Toolbar>(ToolbarInstance);
|
|
22
|
+
const data = toolbar.currentArgs as LibroToolbarArags;
|
|
23
|
+
// const data = useInject(ToolbarArgs) as LibroToolbarArags;
|
|
24
|
+
const command = useInject(CommandRegistry);
|
|
25
|
+
const libroView = data?.[1];
|
|
26
|
+
if (!libroView) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const handleChange: MenuProps['onClick'] = (e) => {
|
|
30
|
+
const args = getOrigin(data) || [];
|
|
31
|
+
if (e.key === 'hideAllInputs') {
|
|
32
|
+
command.executeCommand(NotebookCommands['HideAllCellCode'].id, ...args);
|
|
33
|
+
} else if (e.key === 'hideAllOutputs') {
|
|
34
|
+
command.executeCommand(NotebookCommands['HideAllCellOutput'].id, ...args);
|
|
35
|
+
} else if (e.key === 'hideAll') {
|
|
36
|
+
command.executeCommand(NotebookCommands['HideAllCellCode'].id, ...args);
|
|
37
|
+
command.executeCommand(NotebookCommands['HideAllCellOutput'].id, ...args);
|
|
38
|
+
} else if (e.key === 'showAllInputs') {
|
|
39
|
+
command.executeCommand(NotebookCommands['ShowAllCellCode'].id, ...args);
|
|
40
|
+
} else if (e.key === 'showAllOutputs') {
|
|
41
|
+
command.executeCommand(NotebookCommands['ShowAllCellOutputs'].id, ...args);
|
|
42
|
+
} else if (e.key === 'showAll') {
|
|
43
|
+
command.executeCommand(NotebookCommands['ShowAllCellCode'].id, ...args);
|
|
44
|
+
command.executeCommand(NotebookCommands['ShowAllCellOutputs'].id, ...args);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
//只要有一个cell input是显示的,隐藏cell input的选项都生效
|
|
48
|
+
const isCodeVisiable =
|
|
49
|
+
libroView.model.getCells().findIndex((item) => item.hasInputHidden === false) > -1
|
|
50
|
+
? true
|
|
51
|
+
: false;
|
|
52
|
+
//只要有一个cell input是隐藏的,显示cell input的选项都生效
|
|
53
|
+
const isCodeHidden =
|
|
54
|
+
libroView.model.getCells().findIndex((item) => item.hasInputHidden === true) > -1
|
|
55
|
+
? true
|
|
56
|
+
: false;
|
|
57
|
+
const isOutputVisible =
|
|
58
|
+
libroView.model
|
|
59
|
+
.getCells()
|
|
60
|
+
.findIndex(
|
|
61
|
+
(item) =>
|
|
62
|
+
ExecutableCellModel.is(item.model) && item.model.hasOutputHidden === false,
|
|
63
|
+
) > -1
|
|
64
|
+
? true
|
|
65
|
+
: false;
|
|
66
|
+
const isOutputHidden =
|
|
67
|
+
libroView.model
|
|
68
|
+
.getCells()
|
|
69
|
+
.findIndex(
|
|
70
|
+
(item) =>
|
|
71
|
+
ExecutableCellModel.is(item.model) && item.model.hasOutputHidden === true,
|
|
72
|
+
) > -1
|
|
73
|
+
? true
|
|
74
|
+
: false;
|
|
75
|
+
const menu = (
|
|
76
|
+
<Menu
|
|
77
|
+
onClick={handleChange}
|
|
78
|
+
items={[
|
|
79
|
+
{
|
|
80
|
+
key: 'hideAllInputs',
|
|
81
|
+
label: l10n.t('隐藏全部Code'),
|
|
82
|
+
disabled: !isCodeVisiable,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
key: 'hideAllOutputs',
|
|
86
|
+
label: l10n.t('隐藏全部Output'),
|
|
87
|
+
disabled: !isOutputVisible,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
key: 'hideAll',
|
|
91
|
+
label: l10n.t('全部隐藏'),
|
|
92
|
+
disabled: !isCodeVisiable || !isOutputVisible,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: 'showAllInputs',
|
|
96
|
+
label: l10n.t('显示全部Code'),
|
|
97
|
+
disabled: !isCodeHidden,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: 'showAllOutputs',
|
|
101
|
+
label: l10n.t('显示全部Output'),
|
|
102
|
+
disabled: !isOutputHidden,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: 'showAll',
|
|
106
|
+
label: l10n.t('全部显示'),
|
|
107
|
+
disabled: !isCodeHidden || !isOutputHidden,
|
|
108
|
+
},
|
|
109
|
+
]}
|
|
110
|
+
/>
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
return (
|
|
114
|
+
<>
|
|
115
|
+
<Dropdown
|
|
116
|
+
overlay={menu}
|
|
117
|
+
placement="bottomLeft"
|
|
118
|
+
overlayClassName="libro-hide-selector-menu"
|
|
119
|
+
>
|
|
120
|
+
<EyeInvisibleOutlined style={{ fontSize: 20 }} />
|
|
121
|
+
</Dropdown>
|
|
122
|
+
</>
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const HideAllSelect = memo(HideAllSelectInner);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// The prefix to use on all css classes from ant.
|
|
2
|
+
@ant-prefix: ant;
|
|
3
|
+
|
|
4
|
+
.libro-hide-selector-menu {
|
|
5
|
+
.@{ant-prefix}-dropdown-menu {
|
|
6
|
+
background-color: var(--mana-libro-popover-background-color);
|
|
7
|
+
}
|
|
8
|
+
.@{ant-prefix}-dropdown-menu-item {
|
|
9
|
+
color: var(--mana-libro-toolbar-menu-label-color);
|
|
10
|
+
}
|
|
11
|
+
.@{ant-prefix}-dropdown-menu-item-disabled {
|
|
12
|
+
color: var(--mana-libro-toolbar-menu-disabled-label-color) !important;
|
|
13
|
+
}
|
|
14
|
+
.@{ant-prefix}-dropdown-menu-item.@{ant-prefix}-dropdown-menu-item-disabled:hover,
|
|
15
|
+
.@{ant-prefix}-dropdown-menu-item:hover {
|
|
16
|
+
background-color: var(--mana-libro-menu-hover-color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.libro-cell-selector {
|
|
21
|
+
background-color: var(--mana-libro-popover-background-color) !important;
|
|
22
|
+
.@{ant-prefix}-select-item-option-selected:not(
|
|
23
|
+
.@{ant-prefix}-select-item-option-disabled
|
|
24
|
+
),
|
|
25
|
+
.@{ant-prefix}-select-item-option-active:not(
|
|
26
|
+
.@{ant-prefix}-select-item-option-disabled
|
|
27
|
+
) {
|
|
28
|
+
background-color: var(--mana-libro-menu-hover-color) !important;
|
|
29
|
+
}
|
|
30
|
+
.@{ant-prefix}-select-item-option-content {
|
|
31
|
+
color: var(--mana-libro-toolbar-menu-label-color);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.libro-restart-kernel-modal,
|
|
36
|
+
.libro-shut-down-kernel-modal {
|
|
37
|
+
.@{ant-prefix}-modal-content {
|
|
38
|
+
background-color: var(--mana-libro-popover-background-color) !important;
|
|
39
|
+
}
|
|
40
|
+
.@{ant-prefix}-modal-header {
|
|
41
|
+
background: var(--mana-libro-popover-background-color);
|
|
42
|
+
border-color: var(--mana-libro-table-bottom-border-color);
|
|
43
|
+
}
|
|
44
|
+
.@{ant-prefix}-modal-title {
|
|
45
|
+
color: var(--mana-libro-modal-title-color);
|
|
46
|
+
}
|
|
47
|
+
.@{ant-prefix}-modal-body {
|
|
48
|
+
color: var(--mana-libro-modal-content-color);
|
|
49
|
+
}
|
|
50
|
+
.@{ant-prefix}-modal-footer {
|
|
51
|
+
border-color: var(--mana-libro-table-bottom-border-color);
|
|
52
|
+
}
|
|
53
|
+
.@{ant-prefix}-btn-primary {
|
|
54
|
+
background: var(--mana-libro-btn-primary-background-color);
|
|
55
|
+
}
|
|
56
|
+
.@{ant-prefix}-modal-close {
|
|
57
|
+
color: var(--mana-libro-close-color);
|
|
58
|
+
}
|
|
59
|
+
}
|