@astryx-vue/core 0.33.4 → 0.34.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/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-CwyMvZEI.js → AlertDialog-CdrF01J0.js} +3 -3
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BIPixZOb.js → AvatarGroup-CACtdvXz.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CMXebR4Y.js → Banner-CAyN5-NO.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BPxPAEHQ.js → Breadcrumbs-BQnrbWXt.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B7PvGVt6.js → Button-CrZtv_4j.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BkwQ0h97.js → ButtonGroup-Jgx-IWPz.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BmfKiv69.js → Carousel-BdhtUtf-.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-2AG37D51.js → Chat-DT712Yft.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-rbMgS8ZL.js → CheckboxInput-D8N6yvK5.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-Ckt1Cwt_.js → CheckboxListItem--iUp9-KO.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Dh0tOQv-.js → ClickableCard-B_upAn7L.js} +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +3 -2
- package/dist/Code/languages/dockerfile/index.d.ts +5 -0
- package/dist/Code/languages/dockerfile/index.js +47 -0
- package/dist/Code/languages/graphql/index.d.ts +5 -0
- package/dist/Code/languages/graphql/index.js +24 -0
- package/dist/Code/languages/java/index.d.ts +5 -0
- package/dist/Code/languages/java/index.js +17 -0
- package/dist/Code/languages/lua/index.d.ts +5 -0
- package/dist/Code/languages/lua/index.js +14 -0
- package/dist/Code/languages/objective-c/index.d.ts +5 -0
- package/dist/Code/languages/objective-c/index.js +29 -0
- package/dist/Code/languages/powershell/index.d.ts +5 -0
- package/dist/Code/languages/powershell/index.js +36 -0
- package/dist/Code/languages/ruby/index.d.ts +5 -0
- package/dist/Code/languages/ruby/index.js +21 -0
- package/dist/Code/languages/thrift/index.d.ts +5 -0
- package/dist/Code/languages/thrift/index.js +15 -0
- package/dist/Code/languages/toml/index.d.ts +5 -0
- package/dist/Code/languages/toml/index.js +55 -0
- package/dist/{CodeBlock-ZluDuBT7.js → CodeBlock-BkqcfoZ1.js} +309 -96
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B_9H2wV_.js → Collapsible-BKt7UCeF.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-Cbr-WWC8.js → CommandPalette-CvOeE6i-.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BPvBCUJk.js → ComplexSelector-CVEfoN0k.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BF4ALBZn.js → ContextMenu-ZqWtb5Si.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-C7PICKR2.js → DateInput-7FFzOvcu.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Dt-BA7AA.js → DateRangeInput-C0ICAvm7.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-XEESzGJf.js → DateTimeInput-CaX09wfm.js} +4 -4
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-DcP4xAk3.js → DialogHeader-DLaiYrvF.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CdHbZffI.js → Drawer-BpuER-VT.js} +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C1494BkC.js → DropdownMenu-K8JPIcSk.js} +4 -4
- package/dist/Field/index.js +3 -3
- package/dist/{Field-KszpxUdx.js → Field-CjC4qc2q.js} +1 -1
- package/dist/{FieldInfoTip-CY9BTVtK.js → FieldInfoTip-Cu4LNidQ.js} +1 -1
- package/dist/{FieldLabel-KPCTcJpO.js → FieldLabel-BFBAGrFY.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BTIn6OoY.js → FileInput-DFsbOoe-.js} +3 -3
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-e5xeGow-.js → IconButton-BPjZPGRy.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DpvV8zrm.js → InfoTip-DqDgJRtp.js} +1 -1
- package/dist/{InputClearButton-BzxJH6mk.js → InputClearButton-BZzOtoH7.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Bj4hksiI.js → InputGroup-BN6v-b9L.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
- package/dist/{Item-D62Cibn1.js → Item-BzjepDWA.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-FWtAn7X5.js → Lightbox-K2cAUZRG.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BxK3lbA-.js → Link-v-K2lhCh.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-B4jt3EXr.js → ListItem-BTcwwpFb.js} +2 -2
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/Markdown/parser/index.js +1 -1
- package/dist/{Markdown-CsoseOGe.js → Markdown-B4WsMYzN.js} +80 -5
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-4zcxptan.js → MoreMenu-BF9qhsxq.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-LuAE71wE.js → MultiSelector-CDMoxGKV.js} +3 -3
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-mcmzIshL.js → NavItem-DUnSwKRl.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-Bp35Bk7_.js → NavMenu-DAnQr1S5.js} +1 -1
- package/dist/{NavMenuItem-DviXkleh.js → NavMenuItem-CrTUxgBP.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CxzhFPQw.js → NumberInput-DQ7FMUTd.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-KpA-ffCT.js → Outline-CSHJqtg4.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DRZxrAYq.js → OverflowList-CK6sgmY3.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B3JMAlnl.js → Pagination-B-337WLy.js} +2 -2
- package/dist/{PanGestureRecognizer-R5y8LZ9h.js → PanGestureRecognizer-yYMpXB93.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CQr95J2s.js → Popover-DVrWAYg2.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BEaqgsZa.js → PowerSearch-sWyeh9Az.js} +19 -19
- package/dist/{PressTracker-Dze87pxw.js → PressTracker-CjfG1d8n.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CpMYh9eL.js → RadioGroup-BloTgj7H.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-n-h5r1GO.js → RadioListItem-BERujpW8.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-nz9d6e0y.js → SegmentedControl-BzvLJL8T.js} +6 -6
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-C018jluo.js → SelectableCard-IAv2X4dq.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CW1jaM4F.js → Selector-CsEWOfWV.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DgRpBPuP.js → SideNav-CVAi462m.js} +2 -2
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bz72itTP.js → Slider-D0omHlRI.js} +5 -5
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-Af_rH8C4.js → Stepper-CetoMTog.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BYsb1gKn.js → Switch-DTwurKmh.js} +6 -6
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cgw2IuL-.js → TabList-BJTT4nm6.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DzE-4_og.js → Table-CUqi9BXT.js} +11 -11
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DrYMTaZm.js → TextArea-BKwmXPGQ.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B-1cuwcB.js → TextInput-CRXs8cDs.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DeMaRkDU.js → Thumbnail-GUwgnwZb.js} +2 -2
- package/dist/{TimeField-C1Nv-fz3.js → TimeField-Bn_ziTCi.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Dvh6qqHI.js → TimeInput-BKkwmN1V.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-wFkl39dn.js → Timestamp-Dlz2SvSe.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CO6Z1r1s.js → Toast-BSnsRCyB.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DPpjDYxP.js → ToggleButton-DE79lIQq.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DZkUAIYA.js → Token-BdClMOG9.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CX7D4klL.js → Tokenizer-BitI30VU.js} +5 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D8Hc_kQ-.js → TopNav-BUjEldSq.js} +2 -2
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-lNyuRBOk.js → TreeList-BVJ3V-xI.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BiosTaFo.js → Typeahead-C54ao2ye.js} +3 -3
- package/dist/{accessibleName-f5xApbXG.js → accessibleName-19W3jhkD.js} +1 -1
- package/dist/{boxHold-YML2o6iP.js → boxHold-0ChMpiin.js} +1 -1
- package/dist/code-block-DCVrTLMZ.js +19 -0
- package/dist/composables/index.js +4 -4
- package/dist/{composables-CPDafrux.js → composables-CF2weN-L.js} +2 -2
- package/dist/{geometry-CGa3nNzZ.js → geometry-BnZ6uDX_.js} +1 -1
- package/dist/grammar-4Pn2745Q.d.ts +58 -0
- package/dist/grammar-Dz71GleT.js +144 -0
- package/dist/{index-B6GTqpW-.d.ts → index--kbwaSXW.d.ts} +3 -3
- package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
- package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
- package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-BdICULsZ.d.ts → index-CArlEl1O.d.ts} +555 -159
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-a_FOKJMw.d.ts → index-CbA8rR_b.d.ts} +2 -2
- package/dist/{index-jz9GfvS0.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-DhrnMYVh.d.ts → index-D1C2Nt3F.d.ts} +2 -2
- package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
- package/dist/{index-CukA-J8A.d.ts → index-DHsYyqMP.d.ts} +9 -9
- package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-DN5Ga_Zm.d.ts → index-QC9FDUDA.d.ts} +3 -3
- package/dist/{index-CpkQlo1t.d.ts → index-V6uruC4Z.d.ts} +2 -2
- package/dist/{index-tdOyqA_U.d.ts → index-a6o69uPN.d.ts} +2 -2
- package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
- package/dist/{index-DlsrR4Gm.d.ts → index-uLDBzCDo.d.ts} +10 -10
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +27 -27
- package/dist/index.js +80 -78
- package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
- package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -2
- package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
- package/dist/{pressFeedback--_INTed0.js → pressFeedback-B3cqaMGl.js} +1 -1
- package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
- package/dist/{useActionGroupTracking-BTjuGF9J.js → useActionGroupTracking-D0IwimcQ.js} +2 -2
- package/dist/{useInputStatusIcon-Bl2JFlc3.js → useInputStatusIcon-C2AkJiAT.js} +1 -1
- package/dist/{useMenuPress-CF1GHP_7.js → useMenuPress-B5h9PBx_.js} +1 -1
- package/dist/{usePressFeedback-B_NavJu0.js → usePressFeedback-iyoKakPX.js} +1 -1
- package/dist/{useTouchHitArea-BpEJXuu-.js → useTouchHitArea-MvzPCmJg.js} +1 -1
- package/package.json +37 -1
- package/reset.css +14 -0
- package/styles/code.css +85 -8
- package/styles/markdown.css +6 -5
- package/styles/progress-bar.css +25 -26
- package/dist/index-C9ZssPUV.d.ts +0 -380
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.34.0",
|
|
5
5
|
"description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
@@ -336,6 +336,42 @@
|
|
|
336
336
|
"types": "./dist/Code/index.d.ts",
|
|
337
337
|
"import": "./dist/Code/index.js"
|
|
338
338
|
},
|
|
339
|
+
"./Code/languages/dockerfile": {
|
|
340
|
+
"types": "./dist/Code/languages/dockerfile/index.d.ts",
|
|
341
|
+
"import": "./dist/Code/languages/dockerfile/index.js"
|
|
342
|
+
},
|
|
343
|
+
"./Code/languages/graphql": {
|
|
344
|
+
"types": "./dist/Code/languages/graphql/index.d.ts",
|
|
345
|
+
"import": "./dist/Code/languages/graphql/index.js"
|
|
346
|
+
},
|
|
347
|
+
"./Code/languages/java": {
|
|
348
|
+
"types": "./dist/Code/languages/java/index.d.ts",
|
|
349
|
+
"import": "./dist/Code/languages/java/index.js"
|
|
350
|
+
},
|
|
351
|
+
"./Code/languages/lua": {
|
|
352
|
+
"types": "./dist/Code/languages/lua/index.d.ts",
|
|
353
|
+
"import": "./dist/Code/languages/lua/index.js"
|
|
354
|
+
},
|
|
355
|
+
"./Code/languages/objective-c": {
|
|
356
|
+
"types": "./dist/Code/languages/objective-c/index.d.ts",
|
|
357
|
+
"import": "./dist/Code/languages/objective-c/index.js"
|
|
358
|
+
},
|
|
359
|
+
"./Code/languages/powershell": {
|
|
360
|
+
"types": "./dist/Code/languages/powershell/index.d.ts",
|
|
361
|
+
"import": "./dist/Code/languages/powershell/index.js"
|
|
362
|
+
},
|
|
363
|
+
"./Code/languages/ruby": {
|
|
364
|
+
"types": "./dist/Code/languages/ruby/index.d.ts",
|
|
365
|
+
"import": "./dist/Code/languages/ruby/index.js"
|
|
366
|
+
},
|
|
367
|
+
"./Code/languages/thrift": {
|
|
368
|
+
"types": "./dist/Code/languages/thrift/index.d.ts",
|
|
369
|
+
"import": "./dist/Code/languages/thrift/index.js"
|
|
370
|
+
},
|
|
371
|
+
"./Code/languages/toml": {
|
|
372
|
+
"types": "./dist/Code/languages/toml/index.d.ts",
|
|
373
|
+
"import": "./dist/Code/languages/toml/index.js"
|
|
374
|
+
},
|
|
339
375
|
"./DropdownMenu": {
|
|
340
376
|
"types": "./dist/DropdownMenu/index.d.ts",
|
|
341
377
|
"import": "./dist/DropdownMenu/index.js"
|
package/reset.css
CHANGED
|
@@ -60,8 +60,14 @@
|
|
|
60
60
|
*
|
|
61
61
|
* color-scheme: light dark 声明页面同时支持浅色和深色,
|
|
62
62
|
* 让 CSS 的 light-dark() 能正确取值。
|
|
63
|
+
*
|
|
64
|
+
* html 取 --astryx-font-family-body,body 继承它:库会往 body 里直接放不在 Theme
|
|
65
|
+
* 包装元素里的文字(比如图表用来量标签宽度的 span),这些文字就拿到页面根上的主题字体,
|
|
66
|
+
* 不会退回浏览器默认的衬线体。没有任何样式表定义这个变量时,声明无效,html 保持浏览器默认字体;
|
|
67
|
+
* 应用自己写在 html 或 body 上的字体优先。
|
|
63
68
|
*/
|
|
64
69
|
:where(html) {
|
|
70
|
+
font-family: var(--astryx-font-family-body);
|
|
65
71
|
line-height: 1.5;
|
|
66
72
|
-webkit-text-size-adjust: 100%;
|
|
67
73
|
tab-size: 4;
|
|
@@ -239,6 +245,14 @@
|
|
|
239
245
|
color: var(--astryx-color-text-secondary, light-dark(#474747, #a8a8a8));
|
|
240
246
|
}
|
|
241
247
|
|
|
248
|
+
/*
|
|
249
|
+
* Chromium 把带 `list` 的输入框的下拉标记画成一个字形,按输入框继承来的行高排版,
|
|
250
|
+
* 行高大于 1 时标记就落在输入框中线以下。设成单行高,标记回到中间。
|
|
251
|
+
*/
|
|
252
|
+
:where([list])::-webkit-calendar-picker-indicator {
|
|
253
|
+
line-height: 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
242
256
|
/*
|
|
243
257
|
* 去掉搜索框在 Chrome 和 Safari 里自带的内边距和清除按钮。
|
|
244
258
|
*/
|
package/styles/code.css
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.astryx-code-block {
|
|
33
|
+
/* 页面在这里的方向。代码视口固定从左到右,让代码按写下的样子滚动和换行;行号栏、分隔线和 diff 符号读这个变量,跟着页面镜像。 */
|
|
34
|
+
--_codeblock-direction: ltr;
|
|
33
35
|
position: relative;
|
|
34
36
|
display: flex;
|
|
35
37
|
flex-direction: column;
|
|
@@ -44,6 +46,20 @@
|
|
|
44
46
|
white-space: normal;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
.astryx-code-block:dir(rtl) {
|
|
50
|
+
--_codeblock-direction: rtl;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
* 没有标题栏时,复制按钮和调用方的控件排在代码右边自己的一列里,不盖住代码:
|
|
55
|
+
* 滚动、换行、RTL 下都没有哪一行从按钮底下穿过。
|
|
56
|
+
*/
|
|
57
|
+
.astryx-code-block[data-corner] {
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
60
|
+
grid-template-rows: minmax(0, 1fr);
|
|
61
|
+
}
|
|
62
|
+
|
|
47
63
|
.astryx-code-block[data-container='card'] {
|
|
48
64
|
border: var(--astryx-border-width, 1px) solid var(--astryx-code-block-border, #00000014);
|
|
49
65
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
@@ -77,6 +93,31 @@
|
|
|
77
93
|
border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-code-block-border, #00000014);
|
|
78
94
|
}
|
|
79
95
|
|
|
96
|
+
/* 标题栏右边的控件:调用方的内容在前,复制按钮在后。 */
|
|
97
|
+
.astryx-code-block__controls {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/*
|
|
105
|
+
* 角落的控件簇和第一行代码等高(上下内边距加一个行盒),控件在里面居中,
|
|
106
|
+
* 所以任何高度的控件都落在第一行上;代码块变高时控件原地不动。
|
|
107
|
+
*/
|
|
108
|
+
.astryx-code-block__corner {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
align-self: start;
|
|
112
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
113
|
+
margin-inline: var(--astryx-spacing-2, 8px);
|
|
114
|
+
block-size: calc(2 * var(--astryx-spacing-3, 12px) + var(--astryx-text-code-size, 0.875rem) * var(--astryx-text-code-leading, 1.4286));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.astryx-code-block__corner[data-size='sm'] {
|
|
118
|
+
block-size: calc(2 * var(--astryx-spacing-3, 12px) + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-code-leading, 1.4286));
|
|
119
|
+
}
|
|
120
|
+
|
|
80
121
|
.astryx-code-block__title-control {
|
|
81
122
|
display: flex;
|
|
82
123
|
align-items: center;
|
|
@@ -110,8 +151,11 @@
|
|
|
110
151
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
111
152
|
font-weight: var(--astryx-font-weight-medium, 500);
|
|
112
153
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
113
|
-
/*
|
|
114
|
-
|
|
154
|
+
/* 根元素是 pre,标题会继承 pre 的 white-space 而不换行,长标题就会压到右边的控件底下;这里让它自己换行。 */
|
|
155
|
+
min-width: 0;
|
|
156
|
+
overflow-wrap: anywhere;
|
|
157
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
158
|
+
white-space: pre-wrap;
|
|
115
159
|
}
|
|
116
160
|
|
|
117
161
|
/*
|
|
@@ -131,6 +175,11 @@
|
|
|
131
175
|
animation: astryx-code-block-chevron-reveal var(--astryx-duration-medium-max, 400ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
132
176
|
}
|
|
133
177
|
|
|
178
|
+
/* 折叠时的箭头指向行末方向,RTL 下镜像。镜像放在这个盒子上,图标自己的旋转动画不受影响。 */
|
|
179
|
+
.astryx-code-block__chevron:dir(rtl) {
|
|
180
|
+
transform: scaleX(-1);
|
|
181
|
+
}
|
|
182
|
+
|
|
134
183
|
.astryx-code-block__chevron-icon {
|
|
135
184
|
transition: transform var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
136
185
|
}
|
|
@@ -186,6 +235,36 @@
|
|
|
186
235
|
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
187
236
|
}
|
|
188
237
|
|
|
238
|
+
/*
|
|
239
|
+
* 手机、平板的滚动条只在滚动时出现,横向藏着内容的那一侧边缘淡出,提示还能滑。
|
|
240
|
+
* 鼠标和触控板看不到淡出;键盘焦点环画在视口里面,所以获得焦点时也不淡出。
|
|
241
|
+
*/
|
|
242
|
+
.astryx-code-block__scroll[data-scrollable-inline='true'] {
|
|
243
|
+
--_scroll-fade-start: 0px;
|
|
244
|
+
--_scroll-fade-end: 0px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not([data-scroll-inline-start='true']) {
|
|
248
|
+
--_scroll-fade-start: var(--_scroll-fade-length, var(--astryx-spacing-8, 32px));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not([data-scroll-inline-end='true']) {
|
|
252
|
+
--_scroll-fade-end: var(--_scroll-fade-length, var(--astryx-spacing-8, 32px));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@media (pointer: coarse) {
|
|
256
|
+
.astryx-code-block__scroll[data-scrollable-inline='true']:not(:focus-visible) {
|
|
257
|
+
mask-image: linear-gradient(to right, transparent 0, black var(--_scroll-fade-start), black calc(100% - var(--_scroll-fade-end)), transparent 100%);
|
|
258
|
+
scroll-padding-inline: var(--_scroll-fade-start) var(--_scroll-fade-end);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (forced-colors: active) {
|
|
263
|
+
.astryx-code-block__scroll {
|
|
264
|
+
mask-image: none;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
189
268
|
.astryx-code-block__wrap {
|
|
190
269
|
display: flex;
|
|
191
270
|
min-width: fit-content;
|
|
@@ -201,6 +280,8 @@
|
|
|
201
280
|
margin: 0;
|
|
202
281
|
padding-block: var(--astryx-spacing-3, 12px);
|
|
203
282
|
padding-inline: var(--astryx-spacing-4, 16px);
|
|
283
|
+
/* 每行按页面方向排行号栏;每行的代码自己带 dir="auto"。 */
|
|
284
|
+
direction: var(--_codeblock-direction, ltr);
|
|
204
285
|
color: var(--astryx-code-syntax-variable, #111111);
|
|
205
286
|
font-family: var(--astryx-font-family-code, monospace);
|
|
206
287
|
font-size: var(--astryx-text-code-size, 0.875rem);
|
|
@@ -267,7 +348,9 @@
|
|
|
267
348
|
}
|
|
268
349
|
|
|
269
350
|
/* Keeps the tokens of one line in a single grid cell when numbers are on. */
|
|
351
|
+
/* 做成块,让每行靠自己方向的起始边对齐,不受外面一行方向的影响。 */
|
|
270
352
|
.astryx-code-block__line-content {
|
|
353
|
+
display: block;
|
|
271
354
|
min-width: 0;
|
|
272
355
|
}
|
|
273
356
|
|
|
@@ -348,12 +431,6 @@
|
|
|
348
431
|
--astryx-button-ghost-foreground: var(--astryx-code-syntax-comment, #525252);
|
|
349
432
|
}
|
|
350
433
|
|
|
351
|
-
.astryx-code-block .astryx-code-block-copy-button--floating {
|
|
352
|
-
position: absolute;
|
|
353
|
-
top: var(--astryx-spacing-2, 8px);
|
|
354
|
-
inset-inline-end: var(--astryx-spacing-2, 8px);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
434
|
.astryx-token-keyword,
|
|
358
435
|
.astryx-code-block code::highlight(astryx-keyword) {
|
|
359
436
|
color: var(--astryx-code-syntax-keyword, #6b187c);
|
package/styles/markdown.css
CHANGED
|
@@ -244,10 +244,10 @@
|
|
|
244
244
|
flex-direction: column;
|
|
245
245
|
gap: var(--astryx-spacing-0-5, 2px);
|
|
246
246
|
margin-block: var(--astryx-spacing-3, 12px);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
width:
|
|
250
|
-
max-width:
|
|
247
|
+
/* 列表待在正文这一栏里:不向两侧外扩,窄屏上也不会把页面撑宽。 */
|
|
248
|
+
margin-inline: 0;
|
|
249
|
+
width: 100%;
|
|
250
|
+
max-width: var(--astryx-markdown-measure, 100%);
|
|
251
251
|
padding: 0;
|
|
252
252
|
list-style: none;
|
|
253
253
|
}
|
|
@@ -275,7 +275,8 @@
|
|
|
275
275
|
gap: var(--astryx-spacing-2, 8px);
|
|
276
276
|
margin: 0;
|
|
277
277
|
padding-block: var(--astryx-spacing-1, 4px);
|
|
278
|
-
|
|
278
|
+
/* 行内不留左右边距,序号、勾选框和文字都落在正文这一栏的边上。 */
|
|
279
|
+
padding-inline: 0;
|
|
279
280
|
list-style: none;
|
|
280
281
|
}
|
|
281
282
|
|
package/styles/progress-bar.css
CHANGED
|
@@ -64,20 +64,9 @@
|
|
|
64
64
|
background: var(--astryx-color-on-accent, #fff);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.astryx-progress-bar[data-variant='warning'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
72
|
-
background: var(--astryx-color-on-warning, #171717);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.astryx-progress-bar[data-variant='error'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
76
|
-
background: var(--astryx-color-on-error, #fff);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.astryx-progress-bar[data-variant='neutral'] .astryx-progress-bar-mark[data-placement='fill'] {
|
|
80
|
-
background: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
67
|
+
/* 除 accent 外,填充都是文字角色,主题把它们设成在自己的表面上读得清,所以填充里的标记取表面色。 */
|
|
68
|
+
.astryx-progress-bar:is([data-variant='success'], [data-variant='warning'], [data-variant='error'], [data-variant='neutral'], [data-disabled]) .astryx-progress-bar-mark[data-placement='fill'] {
|
|
69
|
+
background: var(--astryx-color-background-surface, light-dark(#fff, #171717));
|
|
81
70
|
}
|
|
82
71
|
|
|
83
72
|
.astryx-progress-bar-mark:focus-visible {
|
|
@@ -126,15 +115,15 @@
|
|
|
126
115
|
}
|
|
127
116
|
|
|
128
117
|
.astryx-progress-bar[data-variant='success'] .astryx-progress-bar-fill {
|
|
129
|
-
background: var(--astryx-progress-bar-success-fill, var(--astryx-
|
|
118
|
+
background: var(--astryx-progress-bar-success-fill, var(--astryx-color-text-success, light-dark(#2f7d33, #90ca90)));
|
|
130
119
|
}
|
|
131
120
|
|
|
132
121
|
.astryx-progress-bar[data-variant='warning'] .astryx-progress-bar-fill {
|
|
133
|
-
background: var(--astryx-progress-bar-warning-fill, var(--astryx-
|
|
122
|
+
background: var(--astryx-progress-bar-warning-fill, var(--astryx-color-text-warning, light-dark(#836700, #eec448)));
|
|
134
123
|
}
|
|
135
124
|
|
|
136
125
|
.astryx-progress-bar[data-variant='error'] .astryx-progress-bar-fill {
|
|
137
|
-
background: var(--astryx-progress-bar-error-fill, var(--astryx-
|
|
126
|
+
background: var(--astryx-progress-bar-error-fill, var(--astryx-color-text-error, light-dark(#c0262c, #ffaea7)));
|
|
138
127
|
}
|
|
139
128
|
|
|
140
129
|
.astryx-progress-bar[data-variant='accent'] .astryx-progress-bar-fill {
|
|
@@ -145,16 +134,27 @@
|
|
|
145
134
|
background: var(--astryx-progress-bar-info-fill, var(--astryx-input-info, #6d9cfe));
|
|
146
135
|
}
|
|
147
136
|
|
|
148
|
-
/*
|
|
137
|
+
/* 次要文字色在默认轨道上够 3:1;禁用文字色在一些主题里就是深色轨道本身的颜色,会隐形。
|
|
138
|
+
轨道更接近次要文字色的主题,用 --astryx-progress-bar-neutral-fill 换一个更亮的色阶。 */
|
|
149
139
|
.astryx-progress-bar[data-variant='neutral'] .astryx-progress-bar-fill {
|
|
150
|
-
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-
|
|
140
|
+
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3)));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* 禁用的进度条沿用 neutral 的填充,轨道和填充一起降到半透明,和禁用的滑块、开关轨道一样;
|
|
144
|
+
文字和标记另行降一档。标记能获得焦点,所以不跟着变淡,焦点环的对比度才不会掉。
|
|
145
|
+
强制颜色模式会替换填充色,所以用 GrayText 描一圈标出禁用的填充。 */
|
|
146
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-track {
|
|
147
|
+
opacity: 0.5;
|
|
151
148
|
}
|
|
152
149
|
|
|
153
|
-
/* A disabled bar dims everything it draws: the fill drops the variant color
|
|
154
|
-
for the disabled foreground, and the label, value and marks step down to
|
|
155
|
-
the muted ramp. */
|
|
156
150
|
.astryx-progress-bar[data-disabled] .astryx-progress-bar-fill {
|
|
157
|
-
background: var(--astryx-color-text-
|
|
151
|
+
background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3)));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@media (forced-colors: active) {
|
|
155
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-fill {
|
|
156
|
+
outline: 1px solid GrayText;
|
|
157
|
+
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.astryx-progress-bar[data-disabled] .astryx-progress-bar-label,
|
|
@@ -162,9 +162,8 @@
|
|
|
162
162
|
color: var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252));
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
/*
|
|
166
|
-
|
|
167
|
-
.astryx-progress-bar[data-disabled] .astryx-progress-bar-mark[data-placement] {
|
|
165
|
+
/* 属性选择器重复一次,这样它也压得过上面「变体加位置」的规则,两者优先级相同。 */
|
|
166
|
+
.astryx-progress-bar[data-disabled] .astryx-progress-bar-mark[data-placement='track'] {
|
|
168
167
|
background: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
169
168
|
}
|
|
170
169
|
|