@bixlab/mtone 0.7.0 → 0.9.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/README.md +2 -2
- package/dist/index.d.ts +563 -42
- package/dist/index.js +3524 -1037
- package/dist/styles.css +1 -1
- package/dist/typography-highlight-WZ7OAZVP.js +62 -0
- package/llms.txt +989 -115
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ import { MtoneProvider, Button, Select } from '@bixlab/mtone';
|
|
|
13
13
|
import '@bixlab/mtone/styles.css';
|
|
14
14
|
|
|
15
15
|
export function App() {
|
|
16
|
-
return <MtoneProvider locale="zh"
|
|
16
|
+
return <MtoneProvider locale="zh">
|
|
17
17
|
<Button variant="solid">新建</Button>
|
|
18
18
|
<Select label="知识库" options={[{value:'notes',label:'研究笔记'}]} />
|
|
19
19
|
</MtoneProvider>;
|
|
@@ -38,7 +38,7 @@ Node 24 recommended. The documentation app lives in `apps/docs`; its static buil
|
|
|
38
38
|
|
|
39
39
|
Buttons, forms, selection controls, navigation, directory tree, tabs, menus, lists, table, status and property displays, dialogs/drawers, feedback and upload. No block editor or backend. See [API](https://github.com/xingjianxu/mtone/blob/master/docs/API.md), [coverage](https://github.com/xingjianxu/mtone/blob/master/docs/COVERAGE.md) and [verification](https://github.com/xingjianxu/mtone/blob/master/docs/VERIFICATION.md).
|
|
40
40
|
|
|
41
|
-
Default style: text #37352F, muted #787774, border #E9E9E7, subtle surface #F7F7F5, white canvas, 14px text,
|
|
41
|
+
Default style: text #37352F, muted #787774, border #E9E9E7, subtle surface #F7F7F5, white canvas, 14px text, 34px standard controls, 4px radius. CSS is precompiled, prefixed and contains no Tailwind Preflight. Existing applications remain light by default. Since 0.7.0, set `theme="dark"` or `theme="system"` on `MtoneProvider`; system mode follows the operating system without reloading. `MtoneScope` can override the mode locally and mtone popups follow their trigger context. The library leaves preference storage to the application. To migrate from the two density modes, remove the `density` prop from `MtoneProvider`; explicit component size options are unchanged.
|
|
42
42
|
|
|
43
43
|
## License
|
|
44
44
|
|