@omnitron-dev/prism 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -0
- package/dist/blocks/index.js +3 -1
- package/dist/blocks/index.js.map +1 -1
- package/dist/{chunk-S6SEGBX6.js → chunk-472SOF76.js} +4 -4
- package/dist/{chunk-S6SEGBX6.js.map → chunk-472SOF76.js.map} +1 -1
- package/dist/{chunk-Z5OSPAOC.js → chunk-4Z5DE5GK.js} +78 -75
- package/dist/chunk-4Z5DE5GK.js.map +1 -0
- package/dist/chunk-52PQL67Q.js +559 -0
- package/dist/chunk-52PQL67Q.js.map +1 -0
- package/dist/chunk-75FQ5IW3.js +590 -0
- package/dist/chunk-75FQ5IW3.js.map +1 -0
- package/dist/{chunk-6AHI4GSV.js → chunk-7G5D5PTC.js} +4 -3
- package/dist/chunk-7G5D5PTC.js.map +1 -0
- package/dist/chunk-BJE2AKD4.js +105 -0
- package/dist/chunk-BJE2AKD4.js.map +1 -0
- package/dist/chunk-FF5RF32O.js +248 -0
- package/dist/chunk-FF5RF32O.js.map +1 -0
- package/dist/{chunk-OBJ244BO.js → chunk-GMIE6III.js} +9 -42
- package/dist/chunk-GMIE6III.js.map +1 -0
- package/dist/chunk-GUGTDURV.js +826 -0
- package/dist/chunk-GUGTDURV.js.map +1 -0
- package/dist/chunk-HOXFSQUV.js +573 -0
- package/dist/chunk-HOXFSQUV.js.map +1 -0
- package/dist/chunk-JSQTYDPG.js +3 -0
- package/dist/chunk-JSQTYDPG.js.map +1 -0
- package/dist/{chunk-ZTATTUH7.js → chunk-KQ67XB6T.js} +213 -651
- package/dist/chunk-KQ67XB6T.js.map +1 -0
- package/dist/{chunk-WFD54GQQ.js → chunk-LOY2NPCO.js} +14 -573
- package/dist/chunk-LOY2NPCO.js.map +1 -0
- package/dist/{chunk-YQW43BDH.js → chunk-LSPFFEJT.js} +240 -1824
- package/dist/chunk-LSPFFEJT.js.map +1 -0
- package/dist/{chunk-BZOL7GMU.js → chunk-OKTLA23Q.js} +4 -4
- package/dist/chunk-OKTLA23Q.js.map +1 -0
- package/dist/chunk-PFT2BNYO.js +191 -0
- package/dist/chunk-PFT2BNYO.js.map +1 -0
- package/dist/chunk-PGHEP4JD.js +106 -0
- package/dist/chunk-PGHEP4JD.js.map +1 -0
- package/dist/chunk-PXXPLHIY.js +74 -0
- package/dist/chunk-PXXPLHIY.js.map +1 -0
- package/dist/chunk-SU3LVQ7N.js +518 -0
- package/dist/chunk-SU3LVQ7N.js.map +1 -0
- package/dist/chunk-YHE7HXSG.js +206 -0
- package/dist/chunk-YHE7HXSG.js.map +1 -0
- package/dist/cli/index.js +7 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/admin-filters/admin-data-table.d.ts.map +1 -1
- package/dist/components/admin-filters/filter-toolbar.d.ts.map +1 -1
- package/dist/components/date-input/date-input.d.ts +27 -0
- package/dist/components/date-input/date-input.d.ts.map +1 -0
- package/dist/components/date-input/index.d.ts +4 -0
- package/dist/components/date-input/index.d.ts.map +1 -0
- package/dist/components/date-input/value.d.ts +9 -0
- package/dist/components/date-input/value.d.ts.map +1 -0
- package/dist/components/doc-layout/doc-sidebar.d.ts +4 -1
- package/dist/components/doc-layout/doc-sidebar.d.ts.map +1 -1
- package/dist/components/doc-layout/index.js +6 -0
- package/dist/components/doc-layout/index.js.map +1 -0
- package/dist/components/editor/editor.d.ts.map +1 -1
- package/dist/components/editor/icons/index.d.ts +32 -40
- package/dist/components/editor/icons/index.d.ts.map +1 -1
- package/dist/components/editor/index.js +3 -1
- package/dist/components/error-boundary/error-boundary.d.ts.map +1 -1
- package/dist/components/index.css +4 -0
- package/dist/components/index.css.map +1 -1
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -8
- package/dist/components/knowledge-graph/edge-labels.d.ts +14 -0
- package/dist/components/knowledge-graph/edge-labels.d.ts.map +1 -0
- package/dist/components/knowledge-graph/graph.d.ts +56 -0
- package/dist/components/knowledge-graph/graph.d.ts.map +1 -0
- package/dist/components/knowledge-graph/index.css +176 -0
- package/dist/components/knowledge-graph/index.css.map +1 -0
- package/dist/components/knowledge-graph/index.d.ts +3 -0
- package/dist/components/knowledge-graph/index.d.ts.map +1 -0
- package/dist/components/knowledge-graph/index.js +795 -0
- package/dist/components/knowledge-graph/index.js.map +1 -0
- package/dist/components/knowledge-graph/label-layout.d.ts +28 -0
- package/dist/components/knowledge-graph/label-layout.d.ts.map +1 -0
- package/dist/components/knowledge-graph/label-store.d.ts +15 -0
- package/dist/components/knowledge-graph/label-store.d.ts.map +1 -0
- package/dist/components/knowledge-graph/model.d.ts +92 -0
- package/dist/components/knowledge-graph/model.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -1
- package/dist/components/map/Map.d.ts +19 -43
- package/dist/components/map/Map.d.ts.map +1 -1
- package/dist/components/map/MapCoverageLayer.d.ts +1 -1
- package/dist/components/map/MapCoverageLayer.d.ts.map +1 -1
- package/dist/components/map/MapMarker.d.ts +1 -1
- package/dist/components/map/MapMarker.d.ts.map +1 -1
- package/dist/components/map/MapPlaceSearch.d.ts +33 -0
- package/dist/components/map/MapPlaceSearch.d.ts.map +1 -0
- package/dist/components/map/MapPointPicker.d.ts +21 -12
- package/dist/components/map/MapPointPicker.d.ts.map +1 -1
- package/dist/components/map/coordinates.d.ts +10 -0
- package/dist/components/map/coordinates.d.ts.map +1 -0
- package/dist/components/map/index.css +4 -0
- package/dist/components/map/index.css.map +1 -0
- package/dist/components/map/index.d.ts +7 -2
- package/dist/components/map/index.d.ts.map +1 -1
- package/dist/components/map/index.js +3 -0
- package/dist/components/map/index.js.map +1 -0
- package/dist/components/nav-card/nav-card.d.ts.map +1 -1
- package/dist/components/rail/rail.d.ts.map +1 -1
- package/dist/components/research/diagram-image.d.ts +11 -0
- package/dist/components/research/diagram-image.d.ts.map +1 -0
- package/dist/components/research/diagram.d.ts +8 -0
- package/dist/components/research/diagram.d.ts.map +1 -0
- package/dist/components/research/document.d.ts +33 -0
- package/dist/components/research/document.d.ts.map +1 -0
- package/dist/components/research/frontmatter.d.ts +15 -0
- package/dist/components/research/frontmatter.d.ts.map +1 -0
- package/dist/components/research/index.css +51 -0
- package/dist/components/research/index.css.map +1 -0
- package/dist/components/research/index.d.ts +3 -0
- package/dist/components/research/index.d.ts.map +1 -0
- package/dist/components/research/index.js +6 -0
- package/dist/components/research/index.js.map +1 -0
- package/dist/components/research/parse.d.ts +29 -0
- package/dist/components/research/parse.d.ts.map +1 -0
- package/dist/components/research-editor/block-commands.d.ts +20 -0
- package/dist/components/research-editor/block-commands.d.ts.map +1 -0
- package/dist/components/research-editor/block-controls.d.ts +13 -0
- package/dist/components/research-editor/block-controls.d.ts.map +1 -0
- package/dist/components/research-editor/editor.d.ts +75 -0
- package/dist/components/research-editor/editor.d.ts.map +1 -0
- package/dist/components/research-editor/extensions.d.ts +14 -0
- package/dist/components/research-editor/extensions.d.ts.map +1 -0
- package/dist/components/research-editor/index.css +332 -0
- package/dist/components/research-editor/index.css.map +1 -0
- package/dist/components/research-editor/index.d.ts +5 -0
- package/dist/components/research-editor/index.d.ts.map +1 -0
- package/dist/components/research-editor/index.js +1592 -0
- package/dist/components/research-editor/index.js.map +1 -0
- package/dist/components/research-editor/math-input.d.ts +32 -0
- package/dist/components/research-editor/math-input.d.ts.map +1 -0
- package/dist/components/research-editor/math-markup.d.ts +4 -0
- package/dist/components/research-editor/math-markup.d.ts.map +1 -0
- package/dist/components/research-editor/math-navigation.d.ts +6 -0
- package/dist/components/research-editor/math-navigation.d.ts.map +1 -0
- package/dist/components/research-editor/math-node.d.ts +11 -0
- package/dist/components/research-editor/math-node.d.ts.map +1 -0
- package/dist/components/research-editor/source.d.ts +19 -0
- package/dist/components/research-editor/source.d.ts.map +1 -0
- package/dist/components/scrollbar/scrollbar.d.ts +4 -2
- package/dist/components/scrollbar/scrollbar.d.ts.map +1 -1
- package/dist/components/search-input/search-input.d.ts +0 -10
- package/dist/components/search-input/search-input.d.ts.map +1 -1
- package/dist/components/tiptap-renderer/tiptap-renderer.d.ts +4 -3
- package/dist/components/tiptap-renderer/tiptap-renderer.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +8 -4
- package/dist/core/provider.d.ts +7 -2
- package/dist/core/provider.d.ts.map +1 -1
- package/dist/forms/schema-provider.d.ts +3 -3
- package/dist/forms/schema-utils.d.ts +3 -3
- package/dist/hooks/index.js +9 -5
- package/dist/icons/context.d.ts +17 -0
- package/dist/icons/context.d.ts.map +1 -0
- package/dist/icons/controls.d.ts +51 -0
- package/dist/icons/controls.d.ts.map +1 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +4 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/theme.d.ts +4 -0
- package/dist/icons/theme.d.ts.map +1 -0
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -13
- package/dist/index.js.map +1 -1
- package/dist/layouts/core/header-section.d.ts.map +1 -1
- package/dist/layouts/dashboard/labels.d.ts +12 -0
- package/dist/layouts/dashboard/labels.d.ts.map +1 -0
- package/dist/layouts/dashboard/layout.d.ts +7 -1
- package/dist/layouts/dashboard/layout.d.ts.map +1 -1
- package/dist/layouts/dashboard/sidenav.d.ts +7 -3
- package/dist/layouts/dashboard/sidenav.d.ts.map +1 -1
- package/dist/layouts/index.d.ts +5 -0
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +6 -1
- package/dist/layouts/panel-layout.d.ts +35 -0
- package/dist/layouts/panel-layout.d.ts.map +1 -0
- package/dist/layouts/sidebar-toggle.d.ts +11 -0
- package/dist/layouts/sidebar-toggle.d.ts.map +1 -0
- package/dist/state/stores/auth.d.ts +4 -16
- package/dist/state/stores/auth.d.ts.map +1 -1
- package/dist/state/stores/ui.d.ts +7 -105
- package/dist/state/stores/ui.d.ts.map +1 -1
- package/dist/theme/components/Button.d.ts.map +1 -1
- package/dist/theme/components/FormControls.d.ts +3 -12
- package/dist/theme/components/FormControls.d.ts.map +1 -1
- package/dist/theme/components/index.d.ts.map +1 -1
- package/dist/theme/create-theme.d.ts +5 -17
- package/dist/theme/create-theme.d.ts.map +1 -1
- package/dist/theme/index.js +6 -2
- package/dist/theme/mixins.d.ts +3 -1
- package/dist/theme/mixins.d.ts.map +1 -1
- package/dist/theme/palette/overrides.d.ts +23 -0
- package/dist/theme/palette/overrides.d.ts.map +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +148 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +92 -45
- package/dist/chunk-6AHI4GSV.js.map +0 -1
- package/dist/chunk-BZOL7GMU.js.map +0 -1
- package/dist/chunk-OBJ244BO.js.map +0 -1
- package/dist/chunk-WFD54GQQ.js.map +0 -1
- package/dist/chunk-YQW43BDH.js.map +0 -1
- package/dist/chunk-Z5OSPAOC.js.map +0 -1
- package/dist/chunk-ZTATTUH7.js.map +0 -1
package/README.md
CHANGED
|
@@ -39,6 +39,154 @@ function App() {
|
|
|
39
39
|
}
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
## Research documents
|
|
43
|
+
|
|
44
|
+
`@omnitron-dev/prism/components/research` adds a source-preserving Markdown → typed document → React path. Import `@omnitron-dev/prism/components/research/styles.css` once. It supports GFM, stable Unicode heading anchors, admonitions, tabs, KaTeX and strict Mermaid diagrams. `parseResearchMarkdown(source, documentId)` returns the document tree, heading outline and diagnostics; node attributes retain source positions.
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
import { ResearchDocument, defineResearchWidget } from '@omnitron-dev/prism/components/research';
|
|
48
|
+
import '@omnitron-dev/prism/components/research/styles.css';
|
|
49
|
+
import { z } from 'zod';
|
|
50
|
+
|
|
51
|
+
const props = z.object({ value: z.number().finite() }).strict();
|
|
52
|
+
const widgets = {
|
|
53
|
+
quantity: defineResearchWidget(
|
|
54
|
+
1,
|
|
55
|
+
(input) => props.parse(input),
|
|
56
|
+
({ value }) => <output aria-label="Quantity">{value}</output>
|
|
57
|
+
),
|
|
58
|
+
};
|
|
59
|
+
<ResearchDocument source={markdown} documentId="paper-overview" widgets={widgets} contents />;
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Use `$...$` / `$$...$$` for math, a `mermaid` fence for diagrams, and a `prism` fence containing `{"type":"quantity","version":1,"props":{"value":3}}` for a registered widget. `:::note`, `:::warning`, and `:::tabs` with nested `:::tab{label="..."}` use directive syntax. Custom widgets are ordinary host-owned React components with explicit versioned prop validation. The source cannot import JavaScript, register components or grant access. Registries belong to each document, not to process-wide state. `TipTapRenderer` also exposes `nodeRenderers` and `inheritRegisteredNodes`; existing global registrations remain supported by default, while `ResearchDocument` disables inheritance.
|
|
63
|
+
|
|
64
|
+
Raw HTML and unsupported constructs remain inert with source diagnostics. Unsupported diagram engines retain their source; Pintora is not interpreted as Mermaid. TeX runs with trust disabled and expansion/size limits. Mermaid source cannot change renderer configuration; rendered SVG is sanitized and displayed as an isolated SVG image, preserving the layout styles without inserting document-controlled CSS into the page. Active elements and links are removed; the browser image boundary disables scripting and external resources. Theme changes are serialized. Source/AST/block/edge limits bound accepted input, **not execution time**: Mermaid runs on the browser main thread. Host-owned widgets must independently obey the host's accessibility, resource, network and permission policies. This renderer provides presentation, not proof checking or Noesis semantics. The host owns immutable revision identity, digest verification, authorization and publication. Unknown or failing blocks preserve source rather than masquerading as successful verification.
|
|
65
|
+
|
|
42
66
|
## License
|
|
43
67
|
|
|
44
68
|
MIT
|
|
69
|
+
|
|
70
|
+
### Theme-native UI primitives
|
|
71
|
+
|
|
72
|
+
`@omnitron-dev/prism/ui` is a separately built, tree-shakeable entry for MUI
|
|
73
|
+
composition primitives (`Button`, `TextField`, `Tabs`, `Drawer`, `Typography`,
|
|
74
|
+
`ListItemButton`, etc.). It preserves upstream props, slots and keyboard semantics;
|
|
75
|
+
it does not introduce a second set of controls. Use these primitives alongside
|
|
76
|
+
Prism's research editor and knowledge graph under the **same** theme.
|
|
77
|
+
|
|
78
|
+
```tsx
|
|
79
|
+
import { PrismThemeProvider, Button, TextField } from '@omnitron-dev/prism/ui';
|
|
80
|
+
import { createPrismTheme } from '@omnitron-dev/prism/theme';
|
|
81
|
+
const theme = createPrismTheme({ mode: 'light' });
|
|
82
|
+
<PrismThemeProvider theme={theme}>
|
|
83
|
+
<TextField label="Title" size="small" />
|
|
84
|
+
<Button variant="contained">Save</Button>
|
|
85
|
+
</PrismThemeProvider>;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The lightweight provider is appropriate for applications which already own their
|
|
89
|
+
appearance preferences. `PrismProvider` supplies the larger settings/localization
|
|
90
|
+
stack. Do not apply global `button`, `input` or `:focus-visible` appearance rules
|
|
91
|
+
to either provider's controls: configure state styles through the shared theme.
|
|
92
|
+
Keep a visible keyboard-focus indication when integrating legacy stylesheets.
|
|
93
|
+
|
|
94
|
+
`ResearchDocument` also accepts `sourceProfile="docusaurus"` for explicit
|
|
95
|
+
`{#heading-id}` anchors and namespaced local fragment links. The default research
|
|
96
|
+
profile leaves that syntax literal. This is an inert rendering profile, not an MDX
|
|
97
|
+
runtime or a Docusaurus configuration executor. Corpus routes and semantic metadata
|
|
98
|
+
are supplied by the host's source adapter; Prism does not infer knowledge status.
|
|
99
|
+
|
|
100
|
+
## Corpus navigation
|
|
101
|
+
|
|
102
|
+
`@omnitron-dev/prism/components/doc-layout` exposes `DocSidebar`, `DocLayout`
|
|
103
|
+
and `DocSectionNav` without the full component barrel. Sidebar items carry
|
|
104
|
+
stable IDs, labels, optional native hrefs and children. Native hrefs preserve
|
|
105
|
+
modified-click and new-tab navigation; `onItemClick` may route ordinary clicks
|
|
106
|
+
through the host router. Categories announce expansion and remove collapsed
|
|
107
|
+
children from keyboard navigation. No source-format or authorization semantics
|
|
108
|
+
belong in these presentation components.
|
|
109
|
+
|
|
110
|
+
### Application icon families
|
|
111
|
+
|
|
112
|
+
Wrap the application (including its theme provider) in `PrismIconProvider` from
|
|
113
|
+
`@omnitron-dev/prism/icons`. Supply components accepting `SvgIconProps`, forwarding
|
|
114
|
+
an SVG ref and retaining MUI's decorative/accessibly labelled behaviour. A partial
|
|
115
|
+
set overrides selected slots; a complete `Record<PrismIconName, PrismIconComponent>`
|
|
116
|
+
provides compile-time coverage. `prismIconNames` enumerates the public slots.
|
|
117
|
+
|
|
118
|
+
The same context reaches layout controls, search, scientific and rich-text editors,
|
|
119
|
+
graph controls and native MUI slots through portals. Nested providers inherit the
|
|
120
|
+
parent set. Unconfigured slots retain bundled artwork; applications own and license
|
|
121
|
+
their supplied assets. No network icon lookup or DOM replacement is performed.
|
|
122
|
+
Local MUI `slots`, `IconComponent` and `icon` props still take precedence.
|
|
123
|
+
|
|
124
|
+
```tsx
|
|
125
|
+
import { PrismIconProvider, type PrismIconSet } from '@omnitron-dev/prism/icons';
|
|
126
|
+
const icons = { search: ApplicationSearchIcon } satisfies PrismIconSet;
|
|
127
|
+
<PrismIconProvider icons={icons}>
|
|
128
|
+
<PrismThemeProvider theme={theme}>{children}</PrismThemeProvider>
|
|
129
|
+
</PrismIconProvider>;
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Scrollbar visibility
|
|
133
|
+
|
|
134
|
+
Prism's baseline and `Scrollbar` share native, theme-aware scrollbars. On a fine
|
|
135
|
+
pointer they reveal on container hover or `focus-within`, and become transparent
|
|
136
|
+
when idle. Thumb visibility changes neither overflow nor scrollport dimensions.
|
|
137
|
+
Touch input and forced-colors mode retain visible native controls. No mouse
|
|
138
|
+
listener, overlay, delayed timer or scroll-position state is introduced.
|
|
139
|
+
|
|
140
|
+
Set `<Scrollbar autoHide={false}>` for a persistent thumb, or use
|
|
141
|
+
`mixins.scrollbarStyles(theme, { autoHide: false })` for a custom scrollport.
|
|
142
|
+
`hideScrollbar` remains the explicit fully-hidden option.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Mode-aware application palettes
|
|
146
|
+
|
|
147
|
+
`PrismProvider.themeOverrides` accepts a static object or a function receiving
|
|
148
|
+
`{ mode: 'light' | 'dark' }`. The provider resolves the operating-system setting
|
|
149
|
+
before calling this function, so an application does not need a second theme
|
|
150
|
+
store or a synchronisation effect. Keep the callback stable when possible.
|
|
151
|
+
|
|
152
|
+
```tsx
|
|
153
|
+
const appTheme = ({ mode }: PrismThemeOverrideContext) => ({
|
|
154
|
+
palette: {
|
|
155
|
+
primary: { main: mode === 'dark' ? '#C9B2FF' : '#7446A6' },
|
|
156
|
+
background: { paper: mode === 'dark' ? '#241E2C' : '#FFFCF8' },
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
<PrismProvider themeOverrides={appTheme}>{children}</PrismProvider>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Import `PrismProvider` and the `PrismThemeOverrideContext` type from
|
|
164
|
+
`@omnitron-dev/prism/core`. The callback is evaluated again when the resolved
|
|
165
|
+
mode changes; existing object overrides retain their behavior.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
Palette overrides replace dependent tones and channels together: changing `main`
|
|
169
|
+
rebuilds its tonal family; changing an individual colour rebuilds only that
|
|
170
|
+
colour's channel. Explicit shades and channel expressions retain precedence.
|
|
171
|
+
This includes Prism's `lighter`/`darker` and `text.disabledChannel` extensions.
|
|
172
|
+
Opaque static colours receive the higher-contrast black/white `contrastText`
|
|
173
|
+
when none is supplied. Authored contrast colours remain the application's
|
|
174
|
+
responsibility.
|
|
175
|
+
|
|
176
|
+
For runtime CSS colours (`var(...)`, `oklch(...)`, wide-gamut colours), use
|
|
177
|
+
`themeOverrides={{ cssVariables: { nativeColor: true }, palette: ... }}`. MUI resolves tones and
|
|
178
|
+
contrast in the browser; Prism channels use relative RGB expressions instead
|
|
179
|
+
of guessed numeric values. This requires browser support for CSS relative
|
|
180
|
+
colours and MUI native colour mode. Without native colour mode, an unresolved
|
|
181
|
+
`main` requires explicit `light`, `dark` and `contrastText`; Prism reports this
|
|
182
|
+
contract before MUI's JavaScript colour parser runs. Static presets and
|
|
183
|
+
explicit channel overrides remain supported.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Compact navigation identity
|
|
187
|
+
|
|
188
|
+
`DashboardLayout` and `Sidenav` accept `compactLogo` for the collapsed or mini
|
|
189
|
+
sidebar. Pass a compact symbol that fits beside the collapse control; the full
|
|
190
|
+
`logo` remains visible in expanded and mobile navigation. Omitting the prop
|
|
191
|
+
preserves the existing logo behavior. The sidebar control stays centred on its
|
|
192
|
+
boundary in either text direction, including enlarged accessible hit targets.
|
package/dist/blocks/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ErrorBoundary, Field, EmptyContent, SearchInput } from '../chunk-
|
|
1
|
+
import { ErrorBoundary, Field, EmptyContent, SearchInput } from '../chunk-GMIE6III.js';
|
|
2
2
|
import { useBoolean } from '../chunk-BRDWQVRT.js';
|
|
3
|
+
import '../chunk-PGHEP4JD.js';
|
|
4
|
+
import '../chunk-BJE2AKD4.js';
|
|
3
5
|
import { createContext, useContext, useCallback, useMemo, useState, useRef, useEffect } from 'react';
|
|
4
6
|
import Box2 from '@mui/material/Box';
|
|
5
7
|
import Paper from '@mui/material/Paper';
|