@nanisoft/prism-ui 0.2.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/dist/blocks/component-demo/ComponentDemo.d.ts +13 -0
- package/dist/blocks/component-demo/ComponentDemo.d.ts.map +1 -0
- package/dist/blocks/component-demo/ComponentDemo.js +5 -0
- package/dist/blocks/component-demo/ComponentDemo.js.map +1 -0
- package/dist/blocks/component-demo/index.d.ts +2 -0
- package/dist/blocks/component-demo/index.d.ts.map +1 -0
- package/dist/blocks/component-demo/index.js +2 -0
- package/dist/blocks/component-demo/index.js.map +1 -0
- package/dist/blocks/component-demo.d.ts +15 -0
- package/dist/blocks/component-demo.d.ts.map +1 -0
- package/dist/blocks/component-demo.js +11 -0
- package/dist/blocks/component-demo.js.map +1 -0
- package/dist/blocks/index.d.ts +3 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +4 -0
- package/dist/blocks/index.js.map +1 -0
- package/dist/blocks/page-header/PageHeader.d.ts +11 -0
- package/dist/blocks/page-header/PageHeader.d.ts.map +1 -0
- package/dist/blocks/page-header/PageHeader.js +9 -0
- package/dist/blocks/page-header/PageHeader.js.map +1 -0
- package/dist/blocks/page-header/index.d.ts +2 -0
- package/dist/blocks/page-header/index.d.ts.map +1 -0
- package/dist/blocks/page-header/index.js +2 -0
- package/dist/blocks/page-header/index.js.map +1 -0
- package/dist/blocks/page-header.d.ts +16 -0
- package/dist/blocks/page-header.d.ts.map +1 -0
- package/dist/blocks/page-header.js +13 -0
- package/dist/blocks/page-header.js.map +1 -0
- package/dist/components/affix/index.d.ts +2 -0
- package/dist/components/affix/index.d.ts.map +1 -0
- package/dist/components/affix/index.js +3 -0
- package/dist/components/affix/index.js.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +3 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/anchor/index.d.ts +2 -0
- package/dist/components/anchor/index.d.ts.map +1 -0
- package/dist/components/anchor/index.js +3 -0
- package/dist/components/anchor/index.js.map +1 -0
- package/dist/components/auto-complete/index.d.ts +2 -0
- package/dist/components/auto-complete/index.d.ts.map +1 -0
- package/dist/components/auto-complete/index.js +3 -0
- package/dist/components/auto-complete/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +3 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/back-top/index.d.ts +2 -0
- package/dist/components/back-top/index.d.ts.map +1 -0
- package/dist/components/back-top/index.js +3 -0
- package/dist/components/back-top/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/border-beam/index.d.ts +2 -0
- package/dist/components/border-beam/index.d.ts.map +1 -0
- package/dist/components/border-beam/index.js +3 -0
- package/dist/components/border-beam/index.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +3 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +3 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.d.ts.map +1 -0
- package/dist/components/carousel/index.js +3 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/cascader/index.d.ts +2 -0
- package/dist/components/cascader/index.d.ts.map +1 -0
- package/dist/components/cascader/index.js +3 -0
- package/dist/components/cascader/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/col/index.d.ts +2 -0
- package/dist/components/col/index.d.ts.map +1 -0
- package/dist/components/col/index.js +3 -0
- package/dist/components/col/index.js.map +1 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts.map +1 -0
- package/dist/components/collapse/index.js +3 -0
- package/dist/components/collapse/index.js.map +1 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/color-picker/index.js +3 -0
- package/dist/components/color-picker/index.js.map +1 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +3 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/descriptions/index.d.ts +2 -0
- package/dist/components/descriptions/index.d.ts.map +1 -0
- package/dist/components/descriptions/index.js +3 -0
- package/dist/components/descriptions/index.js.map +1 -0
- package/dist/components/display-title/DisplayTitle.d.ts +7 -0
- package/dist/components/display-title/DisplayTitle.d.ts.map +1 -0
- package/dist/components/display-title/DisplayTitle.js +12 -0
- package/dist/components/display-title/DisplayTitle.js.map +1 -0
- package/dist/components/display-title/index.d.ts +2 -0
- package/dist/components/display-title/index.d.ts.map +1 -0
- package/dist/components/display-title/index.js +2 -0
- package/dist/components/display-title/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +3 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +3 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.js +3 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/empty/index.d.ts.map +1 -0
- package/dist/components/empty/index.js +3 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.d.ts.map +1 -0
- package/dist/components/flex/index.js +3 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/float-button/index.d.ts +2 -0
- package/dist/components/float-button/index.d.ts.map +1 -0
- package/dist/components/float-button/index.js +3 -0
- package/dist/components/float-button/index.js.map +1 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +3 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +3 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image/index.d.ts.map +1 -0
- package/dist/components/image/index.js +3 -0
- package/dist/components/image/index.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-number/index.d.ts +2 -0
- package/dist/components/input-number/index.d.ts.map +1 -0
- package/dist/components/input-number/index.js +3 -0
- package/dist/components/input-number/index.js.map +1 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/index.js +3 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/index.d.ts.map +1 -0
- package/dist/components/list/index.js +3 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/listy/index.d.ts +2 -0
- package/dist/components/listy/index.d.ts.map +1 -0
- package/dist/components/listy/index.js +3 -0
- package/dist/components/listy/index.js.map +1 -0
- package/dist/components/masonry/index.d.ts +2 -0
- package/dist/components/masonry/index.d.ts.map +1 -0
- package/dist/components/masonry/index.js +3 -0
- package/dist/components/masonry/index.js.map +1 -0
- package/dist/components/mentions/index.d.ts +2 -0
- package/dist/components/mentions/index.d.ts.map +1 -0
- package/dist/components/mentions/index.js +3 -0
- package/dist/components/mentions/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +3 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +3 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/popconfirm/index.d.ts +2 -0
- package/dist/components/popconfirm/index.d.ts.map +1 -0
- package/dist/components/popconfirm/index.js +3 -0
- package/dist/components/popconfirm/index.js.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +3 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts.map +1 -0
- package/dist/components/progress/index.js +3 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/qrcode/index.d.ts +2 -0
- package/dist/components/qrcode/index.d.ts.map +1 -0
- package/dist/components/qrcode/index.js +3 -0
- package/dist/components/qrcode/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +3 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/rate/index.d.ts +2 -0
- package/dist/components/rate/index.d.ts.map +1 -0
- package/dist/components/rate/index.js +3 -0
- package/dist/components/rate/index.js.map +1 -0
- package/dist/components/result/index.d.ts +2 -0
- package/dist/components/result/index.d.ts.map +1 -0
- package/dist/components/result/index.js +3 -0
- package/dist/components/result/index.js.map +1 -0
- package/dist/components/row/index.d.ts +2 -0
- package/dist/components/row/index.d.ts.map +1 -0
- package/dist/components/row/index.js +3 -0
- package/dist/components/row/index.js.map +1 -0
- package/dist/components/segmented/index.d.ts +2 -0
- package/dist/components/segmented/index.d.ts.map +1 -0
- package/dist/components/segmented/index.js +3 -0
- package/dist/components/segmented/index.js.map +1 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +3 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/space/index.d.ts +2 -0
- package/dist/components/space/index.d.ts.map +1 -0
- package/dist/components/space/index.js +3 -0
- package/dist/components/space/index.js.map +1 -0
- package/dist/components/spin/index.d.ts +2 -0
- package/dist/components/spin/index.d.ts.map +1 -0
- package/dist/components/spin/index.js +3 -0
- package/dist/components/spin/index.js.map +1 -0
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +3 -0
- package/dist/components/splitter/index.js.map +1 -0
- package/dist/components/statistic/index.d.ts +2 -0
- package/dist/components/statistic/index.d.ts.map +1 -0
- package/dist/components/statistic/index.js +3 -0
- package/dist/components/statistic/index.js.map +1 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/steps/index.d.ts.map +1 -0
- package/dist/components/steps/index.js +3 -0
- package/dist/components/steps/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +3 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +3 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +3 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/tag/index.js +3 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/index.d.ts.map +1 -0
- package/dist/components/time-picker/index.js +3 -0
- package/dist/components/time-picker/index.js.map +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.d.ts.map +1 -0
- package/dist/components/timeline/index.js +3 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tour/index.d.ts.map +1 -0
- package/dist/components/tour/index.js +3 -0
- package/dist/components/tour/index.js.map +1 -0
- package/dist/components/transfer/index.d.ts +2 -0
- package/dist/components/transfer/index.d.ts.map +1 -0
- package/dist/components/transfer/index.js +3 -0
- package/dist/components/transfer/index.js.map +1 -0
- package/dist/components/tree/index.d.ts +2 -0
- package/dist/components/tree/index.d.ts.map +1 -0
- package/dist/components/tree/index.js +3 -0
- package/dist/components/tree/index.js.map +1 -0
- package/dist/components/tree-select/index.d.ts +2 -0
- package/dist/components/tree-select/index.d.ts.map +1 -0
- package/dist/components/tree-select/index.js +3 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +3 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/upload/index.d.ts +2 -0
- package/dist/components/upload/index.d.ts.map +1 -0
- package/dist/components/upload/index.js +3 -0
- package/dist/components/upload/index.js.map +1 -0
- package/dist/components/watermark/index.d.ts +2 -0
- package/dist/components/watermark/index.d.ts.map +1 -0
- package/dist/components/watermark/index.js +3 -0
- package/dist/components/watermark/index.js.map +1 -0
- package/dist/generated/antd-components.d.ts +139 -0
- package/dist/generated/antd-components.d.ts.map +1 -0
- package/dist/generated/antd-components.js +72 -0
- package/dist/generated/antd-components.js.map +1 -0
- package/dist/generated/icons.d.ts +2 -0
- package/dist/generated/icons.d.ts.map +1 -0
- package/dist/generated/icons.js +3 -0
- package/dist/generated/icons.js.map +1 -0
- package/dist/generated/pass-throughs.d.ts +213 -0
- package/dist/generated/pass-throughs.d.ts.map +1 -0
- package/dist/generated/pass-throughs.js +75 -0
- package/dist/generated/pass-throughs.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/blog-layout/BlogLayout.d.ts +22 -0
- package/dist/pages/blog-layout/BlogLayout.d.ts.map +1 -0
- package/dist/pages/blog-layout/BlogLayout.js +5 -0
- package/dist/pages/blog-layout/BlogLayout.js.map +1 -0
- package/dist/pages/blog-layout/index.d.ts +2 -0
- package/dist/pages/blog-layout/index.d.ts.map +1 -0
- package/dist/pages/blog-layout/index.js +2 -0
- package/dist/pages/blog-layout/index.js.map +1 -0
- package/dist/pages/blog-layout.d.ts +22 -0
- package/dist/pages/blog-layout.d.ts.map +1 -0
- package/dist/pages/blog-layout.js +11 -0
- package/dist/pages/blog-layout.js.map +1 -0
- package/dist/pages/docs-shell/DocsShell.d.ts +37 -0
- package/dist/pages/docs-shell/DocsShell.d.ts.map +1 -0
- package/dist/pages/docs-shell/DocsShell.js +8 -0
- package/dist/pages/docs-shell/DocsShell.js.map +1 -0
- package/dist/pages/docs-shell/index.d.ts +2 -0
- package/dist/pages/docs-shell/index.d.ts.map +1 -0
- package/dist/pages/docs-shell/index.js +2 -0
- package/dist/pages/docs-shell/index.js.map +1 -0
- package/dist/pages/docs-shell.d.ts +17 -0
- package/dist/pages/docs-shell.d.ts.map +1 -0
- package/dist/pages/docs-shell.js +11 -0
- package/dist/pages/docs-shell.js.map +1 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/pages/index.js +4 -0
- package/dist/pages/index.js.map +1 -0
- package/dist/prototype/index.d.ts +2 -0
- package/dist/prototype/index.d.ts.map +1 -0
- package/dist/prototype/index.js +2 -0
- package/dist/prototype/index.js.map +1 -0
- package/dist/prototype/landing/bits.d.ts +29 -0
- package/dist/prototype/landing/bits.d.ts.map +1 -0
- package/dist/prototype/landing/bits.js +50 -0
- package/dist/prototype/landing/bits.js.map +1 -0
- package/dist/prototype/landing/index.d.ts +10 -0
- package/dist/prototype/landing/index.d.ts.map +1 -0
- package/dist/prototype/landing/index.js +7 -0
- package/dist/prototype/landing/index.js.map +1 -0
- package/dist/prototype/landing/switcher.d.ts +17 -0
- package/dist/prototype/landing/switcher.d.ts.map +1 -0
- package/dist/prototype/landing/switcher.js +71 -0
- package/dist/prototype/landing/switcher.js.map +1 -0
- package/dist/prototype/landing/theme.d.ts +44 -0
- package/dist/prototype/landing/theme.d.ts.map +1 -0
- package/dist/prototype/landing/theme.js +98 -0
- package/dist/prototype/landing/theme.js.map +1 -0
- package/dist/prototype/landing/variant-a-specimen.d.ts +3 -0
- package/dist/prototype/landing/variant-a-specimen.d.ts.map +1 -0
- package/dist/prototype/landing/variant-a-specimen.js +86 -0
- package/dist/prototype/landing/variant-a-specimen.js.map +1 -0
- package/dist/prototype/landing/variant-b-ledger.d.ts +3 -0
- package/dist/prototype/landing/variant-b-ledger.d.ts.map +1 -0
- package/dist/prototype/landing/variant-b-ledger.js +51 -0
- package/dist/prototype/landing/variant-b-ledger.js.map +1 -0
- package/dist/prototype/landing/variant-c-workbench.d.ts +3 -0
- package/dist/prototype/landing/variant-c-workbench.d.ts.map +1 -0
- package/dist/prototype/landing/variant-c-workbench.js +98 -0
- package/dist/prototype/landing/variant-c-workbench.js.map +1 -0
- package/dist/provider/PrismLinkContext.d.ts +19 -0
- package/dist/provider/PrismLinkContext.d.ts.map +1 -0
- package/dist/provider/PrismLinkContext.js +11 -0
- package/dist/provider/PrismLinkContext.js.map +1 -0
- package/dist/provider/PrismProvider.d.ts +9 -0
- package/dist/provider/PrismProvider.d.ts.map +1 -0
- package/dist/provider/PrismProvider.js +21 -0
- package/dist/provider/PrismProvider.js.map +1 -0
- package/dist/provider/index.d.ts +4 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +4 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/mergePrismTheme.d.ts +12 -0
- package/dist/provider/mergePrismTheme.d.ts.map +1 -0
- package/dist/provider/mergePrismTheme.js +52 -0
- package/dist/provider/mergePrismTheme.js.map +1 -0
- package/dist/styles.css +73 -0
- package/dist/wrapped-registry.d.ts +55 -0
- package/dist/wrapped-registry.d.ts.map +1 -0
- package/dist/wrapped-registry.js +156 -0
- package/dist/wrapped-registry.js.map +1 -0
- package/package.json +100 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* PROTOTYPE (map ticket 11) — Variant B: "Ledger".
|
|
4
|
+
* Stance: light-first, the antd foundation whispered — hierarchy comes from
|
|
5
|
+
* type, hairlines, and a ledger table, not panels. One beam-dark band in the
|
|
6
|
+
* green pack carries the agent story: both modes and both packs, no toggle.
|
|
7
|
+
*/
|
|
8
|
+
import { Button, ConfigProvider, Input, Slider, Switch, Table, Tag } from 'antd';
|
|
9
|
+
import { MiniPageWire, MonoNote } from './bits.js';
|
|
10
|
+
import { spectralAntdTheme, spectralPrimitives } from './theme.js';
|
|
11
|
+
const LAYERS = [
|
|
12
|
+
{ key: '1', layer: 'components', holds: 'The themed, typed antd surface', ships: '@nanisoft/prism-ui/components' },
|
|
13
|
+
{ key: '2', layer: 'blocks', holds: 'Pre-composed component units', ships: '@nanisoft/prism-ui/blocks' },
|
|
14
|
+
{ key: '3', layer: 'pages', holds: 'Full-page compositions', ships: '@nanisoft/prism-ui/pages' },
|
|
15
|
+
];
|
|
16
|
+
const LAYER_COLUMNS = [
|
|
17
|
+
{ title: 'Layer', dataIndex: 'layer', key: 'layer', render: (v) => _jsx("strong", { children: v }) },
|
|
18
|
+
{ title: 'Holds', dataIndex: 'holds', key: 'holds' },
|
|
19
|
+
{ title: 'Ships as', dataIndex: 'ships', key: 'ships', render: (v) => _jsx("code", { children: v }) },
|
|
20
|
+
];
|
|
21
|
+
function MarginSpecimen({ note, children }) {
|
|
22
|
+
const p = spectralPrimitives('blue', 'light');
|
|
23
|
+
return (_jsxs("div", { style: { display: 'grid', gap: 6 }, children: [_jsx(MonoNote, { color: "rgba(37, 99, 235, 0.7)", children: note }), _jsx("div", { style: { color: p.text }, children: children })] }));
|
|
24
|
+
}
|
|
25
|
+
/** The beam-dark green-pack band: the other mode, the other brand, one language. */
|
|
26
|
+
function AgentBand() {
|
|
27
|
+
const gp = spectralPrimitives('green', 'beam-dark');
|
|
28
|
+
const lines = [
|
|
29
|
+
'GET /llms.txt → everything, indexed',
|
|
30
|
+
'GET /docs/button.md → one component, as markdown',
|
|
31
|
+
'MCP prism.nanisoft.com/mcp → tools for agents',
|
|
32
|
+
];
|
|
33
|
+
return (_jsx(ConfigProvider, { theme: spectralAntdTheme('green', 'beam-dark'), children: _jsx("section", { style: { background: gp.ground, color: gp.text, padding: '88px 6vw' }, children: _jsxs("div", { style: { maxWidth: 1080, margin: '0 auto', display: 'grid', gridTemplateColumns: 'minmax(0,1.1fr) minmax(0,1fr)', gap: 56, alignItems: 'center' }, children: [_jsxs("div", { style: { display: 'grid', gap: 18 }, children: [_jsx(MonoNote, { color: "rgba(147, 255, 196, 0.7)", children: "BUILT FOR AGENTS, TOO" }), _jsxs("h2", { style: { margin: 0, fontSize: 38, lineHeight: 1.12, fontStretch: '120%', fontWeight: 600, letterSpacing: '-0.012em' }, children: ["The same language,", _jsx("br", {}), _jsx("span", { style: { color: gp.ink }, children: "read by machines." })] }), _jsx("p", { style: { margin: 0, lineHeight: 1.7, fontSize: 14.5, opacity: 0.82, maxWidth: '46ch' }, children: "prism-llms regenerates the markdown surface from the docs build \u2014 no drift, no stale forks \u2014 and the MCP server serves it from the same origin as this site." })] }), _jsx("div", { style: {
|
|
34
|
+
border: `1px solid ${gp.hairline}`,
|
|
35
|
+
borderRadius: 6,
|
|
36
|
+
background: gp.surface,
|
|
37
|
+
boxShadow: gp.floatingShadow,
|
|
38
|
+
padding: '18px 20px',
|
|
39
|
+
fontFamily: 'var(--font-jetbrains), ui-monospace, monospace',
|
|
40
|
+
fontSize: 12,
|
|
41
|
+
lineHeight: 2,
|
|
42
|
+
whiteSpace: 'pre',
|
|
43
|
+
overflowX: 'auto',
|
|
44
|
+
}, children: lines.map((l) => (_jsxs("div", { children: [_jsx("span", { style: { color: gp.ink }, children: l.slice(0, 3) }), l.slice(3)] }, l))) })] }) }) }));
|
|
45
|
+
}
|
|
46
|
+
export function VariantBLedger() {
|
|
47
|
+
const p = spectralPrimitives('blue', 'light');
|
|
48
|
+
const shell = (max = 1140) => ({ maxWidth: max, margin: '0 auto', padding: '0 6vw' });
|
|
49
|
+
return (_jsx(ConfigProvider, { theme: spectralAntdTheme('blue', 'light'), children: _jsxs("div", { style: { minHeight: '100vh', background: p.ground, color: p.text }, children: [_jsx("header", { style: { borderBottom: `1px solid ${p.hairline}`, background: p.surface }, children: _jsxs("div", { style: { ...shell(), display: 'flex', alignItems: 'center', gap: 24, height: 58 }, children: [_jsx("span", { style: { fontStretch: '125%', fontWeight: 700, fontSize: 17 }, children: "Prism" }), _jsxs("nav", { style: { marginLeft: 'auto', display: 'flex', gap: 22, fontSize: 13 }, children: [_jsx("a", { style: { color: p.text }, children: "Docs" }), _jsx("a", { style: { color: p.text }, children: "Components" }), _jsx("a", { style: { color: p.text }, children: "Blog" })] }), _jsx(MonoNote, { color: "rgba(37, 99, 235, 0.7)", style: { opacity: 1 }, children: "v0.1.0" })] }) }), _jsxs("section", { style: { ...shell(1260), padding: '110px 6vw 72px' }, children: [_jsx(MonoNote, { color: "rgba(37, 99, 235, 0.75)", style: { marginBottom: 26 }, children: "NANISOFT \u00B7 ANT DESIGN\u2013BASED \u00B7 DELIVERED BY NPM" }), _jsxs("h1", { style: { margin: 0, fontSize: 74, lineHeight: 1.02, fontStretch: '125%', fontWeight: 650, letterSpacing: '-0.02em', maxWidth: '15ch' }, children: ["One design language,", ' ', _jsx("span", { style: { color: p.ink }, children: "many expressions." })] }), _jsx("p", { style: { margin: '30px 0 0', fontSize: 16.5, lineHeight: 1.75, opacity: 0.82, maxWidth: '58ch' }, children: "Prism themes Ant Design v6 with NaniSoft's Spectral Refraction language and ships it as npm packages \u2014 tokens, components, blocks, pages \u2014 plus docs and an agent surface. Your app imports one package and picks an expression." })] }), _jsxs("section", { style: { ...shell(), display: 'grid', gridTemplateColumns: 'minmax(0,2fr) minmax(220px,1fr)', gap: 64, padding: '40px 6vw 88px', alignItems: 'start' }, children: [_jsxs("div", { style: { display: 'grid', gap: 20 }, children: [_jsx("h2", { style: { margin: 0, fontSize: 24, fontStretch: '116%', fontWeight: 600 }, children: "What ships" }), _jsx(Table, { size: "small", pagination: false, dataSource: LAYERS, columns: LAYER_COLUMNS }), _jsx("p", { style: { margin: 0, fontSize: 13.5, lineHeight: 1.7, opacity: 0.75, maxWidth: '56ch' }, children: "Every layer installs from npm and updates through changesets \u2014 nothing is ever copied into an app. Blocks and pages are pre-assembled from components, so a theme change refracts through the whole stack at once." }), _jsxs("div", { style: { display: 'flex', gap: 12, marginTop: 10, alignItems: 'center' }, children: [_jsx(Button, { type: "primary", children: "Read the docs" }), _jsx("a", { style: { color: p.ink, fontSize: 13.5 }, children: "Browse components \u2192" })] })] }), _jsxs("aside", { style: { display: 'grid', gap: 22, borderLeft: `1px solid ${p.hairline}`, paddingLeft: 28 }, children: [_jsx(MonoNote, { color: "rgba(37, 99, 235, 0.7)", style: { opacity: 1 }, children: "SPECIMENS, IN THE MARGIN" }), _jsx(MarginSpecimen, { note: "<Switch />", children: _jsx(Switch, { defaultChecked: true, size: "small" }) }), _jsx(MarginSpecimen, { note: "<Input />", children: _jsx(Input, { size: "small", placeholder: "Search\u2026" }) }), _jsx(MarginSpecimen, { note: "<Slider />", children: _jsx(Slider, { defaultValue: 40 }) }), _jsx(MarginSpecimen, { note: "<Tag />", children: _jsxs("div", { style: { display: 'flex', gap: 6, flexWrap: 'wrap' }, children: [_jsx(Tag, { color: "blue", children: "blue pack" }), _jsx(Tag, { color: "success", children: "light" })] }) })] })] }), _jsxs("section", { style: { ...shell(820), padding: '0 6vw 96px' }, children: [_jsx(MiniPageWire, { p: p }), _jsx("p", { style: { margin: '14px 0 0', textAlign: 'center', fontSize: 12.5, opacity: 0.65 }, children: "A page composition \u2014 topbar, nav rail, content \u2014 assembled from blocks." })] }), _jsx(AgentBand, {}), _jsx("footer", { style: { borderTop: `1px solid ${p.hairline}`, background: p.surface }, children: _jsxs("div", { style: { ...shell(), padding: '28px 6vw', display: 'flex', flexWrap: 'wrap', gap: 24, alignItems: 'center', fontSize: 12.5 }, children: [_jsx("span", { style: { fontStretch: '122%', fontWeight: 650 }, children: "Prism" }), _jsx(MonoNote, { color: "rgba(37, 99, 235, 0.7)", style: { opacity: 1 }, children: "npm i @nanisoft/prism-ui" }), _jsx("span", { style: { marginLeft: 'auto', opacity: 0.7 }, children: "\u00A9 2026 NaniSoft \u00B7 MIT \u00B7 prism.nanisoft.com" })] }) })] }) }));
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=variant-b-ledger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-b-ledger.js","sourceRoot":"","sources":["../../../src/prototype/landing/variant-b-ledger.tsx"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAIjF,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGnE,MAAM,MAAM,GAAY;IACtB,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,gCAAgC,EAAE,KAAK,EAAE,+BAA+B,EAAE;IAClH,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,2BAA2B,EAAE;IACxG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,0BAA0B,EAAE;CACjG,CAAC;AACF,MAAM,aAAa,GAAiC;IAClD,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,2BAAS,CAAC,GAAU,EAAE;IACjG,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE;IACpD,EAAE,KAAK,EAAE,UAAU,EAAE,SA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AAC,EAAE,OAAO,EAAE,YAAY,EAAE,aACtD,KAAC,YAAY,IAAC,CAAC,EAAE,CAAC,GAAI,EACtB,YAAG,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,kGAEhF,IACI,EAEV,KAAC,SAAS,KAAG,EAEb,iBAAQ,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,YAC5E,eAAK,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,aAC/H,eAAM,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,sBAAc,EACnE,KAAC,QAAQ,IAAC,KAAK,EAAC,wBAAwB,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,yCAEnD,EACX,eAAM,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,0EAAmD,IAChG,GACC,IACL,GACS,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-c-workbench.d.ts","sourceRoot":"","sources":["../../../src/prototype/landing/variant-c-workbench.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAmFzD,wBAAgB,iBAAiB,IAAI,YAAY,CAqKhD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
/**
|
|
4
|
+
* PROTOTYPE (map ticket 11) — Variant C: "Workbench".
|
|
5
|
+
* Stance: the page is an instrument. A persistent pack × mode control recolors
|
|
6
|
+
* everything live; numbered assembly steps drive a preview pane. The "many
|
|
7
|
+
* expressions" story is told by letting the visitor refract it themselves.
|
|
8
|
+
*/
|
|
9
|
+
import { SearchOutlined } from '@ant-design/icons';
|
|
10
|
+
import { Button, ConfigProvider, Input, Progress, Segmented, Statistic, Tabs, Tag } from 'antd';
|
|
11
|
+
import { useState } from 'react';
|
|
12
|
+
import { MiniPageWire, MonoNote } from './bits.js';
|
|
13
|
+
import { spectralAntdTheme, spectralPrimitives } from './theme.js';
|
|
14
|
+
const STEP_LABELS = ['components', 'blocks', 'pages'];
|
|
15
|
+
const STYLES = `
|
|
16
|
+
@keyframes prismFadeIn { from { opacity: 0; transform: translateY(4px); } }
|
|
17
|
+
.prism-step:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
18
|
+
@media (prefers-reduced-motion: reduce) {
|
|
19
|
+
.prism-fade { animation: none !important; }
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
function StepPreview({ step, p }) {
|
|
23
|
+
if (step === 0) {
|
|
24
|
+
return (_jsxs("div", { style: { display: 'grid', gap: 14 }, children: [_jsxs("div", { style: { display: 'flex', gap: 8, flexWrap: 'wrap' }, children: [_jsx(Button, { type: "primary", children: "Get started" }), _jsx(Button, { children: "Components" }), _jsx(Button, { type: "text", children: "Docs" })] }), _jsx(Input, { placeholder: "Search components\u2026", prefix: _jsx(SearchOutlined, {}) })] }));
|
|
25
|
+
}
|
|
26
|
+
if (step === 1) {
|
|
27
|
+
return (_jsxs("div", { style: {
|
|
28
|
+
border: `1px solid ${p.hairline}`,
|
|
29
|
+
borderRadius: 6,
|
|
30
|
+
background: p.ground,
|
|
31
|
+
padding: '16px 18px',
|
|
32
|
+
display: 'grid',
|
|
33
|
+
gap: 10,
|
|
34
|
+
}, children: [_jsx(MonoNote, { color: p.ink, children: "downloads / month" }), _jsx(Statistic, { value: 128, suffix: "k", styles: { content: { fontStretch: '112%', fontWeight: 600 } } }), _jsx(Progress, { percent: 72, showInfo: false, size: "small" }), _jsx(Tag, { color: "success", children: "+12% vs last month" })] }));
|
|
35
|
+
}
|
|
36
|
+
return _jsx(MiniPageWire, { p: p });
|
|
37
|
+
}
|
|
38
|
+
const BOX_TAB = (_jsxs("div", { style: { display: 'grid', gap: 10, fontSize: 14 }, children: [_jsxs("div", { children: [_jsx("code", { children: "@nanisoft/prism-tokens" }), " \u2014 the theme engine: brand packs, modes, DTCG export."] }), _jsxs("div", { children: [_jsx("code", { children: "@nanisoft/prism-ui" }), " \u2014 components, blocks, pages. The only import apps need."] }), _jsxs("div", { children: [_jsx("code", { children: "@nanisoft/prism-llms" }), " \u2014 generated llms.txt and per-component markdown."] }), _jsxs("div", { children: [_jsx("code", { children: "@nanisoft/prism-mcp-server" }), " \u2014 the same surface, served over MCP at /mcp."] })] }));
|
|
39
|
+
const AGENTS_TAB = (_jsx("div", { style: {
|
|
40
|
+
fontFamily: 'var(--font-jetbrains), ui-monospace, monospace',
|
|
41
|
+
fontSize: 12.5,
|
|
42
|
+
lineHeight: 1.9,
|
|
43
|
+
whiteSpace: 'pre-wrap',
|
|
44
|
+
}, children: 'mcp add prism --url https://prism.nanisoft.com/mcp\n# → list_items, get_item_doc, get_item_props,\n# get_item_source, get_theme_doc, search_docs' }));
|
|
45
|
+
export function VariantCWorkbench() {
|
|
46
|
+
const [pack, setPack] = useState('blue');
|
|
47
|
+
const [mode, setMode] = useState('beam-dark');
|
|
48
|
+
const [step, setStep] = useState(0);
|
|
49
|
+
const p = spectralPrimitives(pack, mode);
|
|
50
|
+
const shell = (max = 1180) => ({ maxWidth: max, margin: '0 auto', padding: '0 6vw' });
|
|
51
|
+
return (_jsxs(ConfigProvider, { theme: spectralAntdTheme(pack, mode), children: [_jsx("style", { children: STYLES }), _jsxs("div", { style: {
|
|
52
|
+
minHeight: '100vh',
|
|
53
|
+
background: p.ground,
|
|
54
|
+
color: p.text,
|
|
55
|
+
transition: 'background-color 160ms cubic-bezier(0.25, 1, 0.5, 1)',
|
|
56
|
+
}, children: [_jsx("header", { style: { borderBottom: `1px solid ${p.hairline}` }, children: _jsxs("div", { style: { ...shell(), display: 'flex', alignItems: 'center', gap: 18, height: 60, flexWrap: 'wrap' }, children: [_jsx("span", { style: { fontStretch: '125%', fontWeight: 700, fontSize: 18 }, children: "Prism" }), _jsxs("span", { style: { marginLeft: 'auto', display: 'flex', gap: 10, alignItems: 'center' }, children: [_jsx(MonoNote, { color: p.ink, style: { opacity: 1 }, children: "PACK" }), _jsx(Segmented, { value: pack, onChange: (v) => setPack(v), options: [
|
|
57
|
+
{ label: 'Blue', value: 'blue' },
|
|
58
|
+
{ label: 'Green', value: 'green' },
|
|
59
|
+
] }), _jsx(MonoNote, { color: p.ink, style: { opacity: 1, marginLeft: 8 }, children: "MODE" }), _jsx(Segmented, { value: mode, onChange: (v) => setMode(v), options: [
|
|
60
|
+
{ label: 'Light', value: 'light' },
|
|
61
|
+
{ label: 'Beam-dark', value: 'beam-dark' },
|
|
62
|
+
] })] })] }) }), _jsxs("section", { style: { ...shell(), display: 'grid', gridTemplateColumns: 'minmax(0,1fr) minmax(0,1.1fr)', gap: 56, padding: '84px 6vw 72px', alignItems: 'start' }, children: [_jsxs("div", { style: { display: 'grid', gap: 24 }, children: [_jsx(MonoNote, { color: p.ink, children: "AN INSTRUMENT, NOT A BROCHURE" }), _jsxs("h1", { style: { margin: 0, fontSize: 46, lineHeight: 1.08, fontStretch: '122%', fontWeight: 600, letterSpacing: '-0.015em' }, children: ["One language.", _jsx("br", {}), "Four expressions.", _jsx("br", {}), _jsx("span", { style: { color: p.ink }, children: "Yours to refract." })] }), _jsx("p", { style: { margin: 0, fontSize: 14.5, lineHeight: 1.7, opacity: 0.8, maxWidth: '44ch' }, children: "Flip the pack and mode above \u2014 every surface on this page re-themes through createPrismTheme(). Then watch the stack assemble, one layer at a time." }), _jsx("div", { style: { display: 'grid', gap: 10, marginTop: 8 }, children: STEP_LABELS.map((label, i) => {
|
|
63
|
+
const active = i === step;
|
|
64
|
+
return (_jsxs("button", { type: "button", className: "prism-step", onClick: () => setStep(i), style: {
|
|
65
|
+
cursor: 'pointer',
|
|
66
|
+
textAlign: 'left',
|
|
67
|
+
fontFamily: 'inherit',
|
|
68
|
+
fontSize: 'inherit',
|
|
69
|
+
color: 'inherit',
|
|
70
|
+
display: 'flex',
|
|
71
|
+
gap: 14,
|
|
72
|
+
alignItems: 'baseline',
|
|
73
|
+
padding: '12px 16px',
|
|
74
|
+
borderRadius: 6,
|
|
75
|
+
border: `1px solid ${active ? p.ink : p.hairline}`,
|
|
76
|
+
background: active ? p.surface : 'transparent',
|
|
77
|
+
transition: 'border-color 80ms, background-color 80ms',
|
|
78
|
+
}, children: [_jsx("span", { style: {
|
|
79
|
+
fontFamily: 'var(--font-jetbrains), ui-monospace, monospace',
|
|
80
|
+
fontSize: 12,
|
|
81
|
+
color: active ? p.ink : p.text,
|
|
82
|
+
opacity: active ? 1 : 0.6,
|
|
83
|
+
}, children: String(i + 1).padStart(2, '0') }), _jsx("span", { style: { fontStretch: '114%', fontWeight: 600, fontSize: 15.5 }, children: label }), _jsxs("span", { style: { fontSize: 13, opacity: 0.7 }, children: [i === 0 && 'themed, typed antd parts', i === 1 && 'parts pre-composed into units', i === 2 && 'units assembled into full pages'] })] }, label));
|
|
84
|
+
}) })] }), _jsxs("div", { style: {
|
|
85
|
+
border: `1px solid ${p.hairline}`,
|
|
86
|
+
borderRadius: 6,
|
|
87
|
+
background: p.surface,
|
|
88
|
+
boxShadow: p.floatingShadow,
|
|
89
|
+
padding: 24,
|
|
90
|
+
display: 'grid',
|
|
91
|
+
gap: 16,
|
|
92
|
+
alignContent: 'start',
|
|
93
|
+
}, children: [_jsxs(MonoNote, { color: p.ink, style: { opacity: 1 }, children: ["preview / ", STEP_LABELS[step]] }), _jsx("div", { className: "prism-fade", style: { animation: 'prismFadeIn 160ms cubic-bezier(0.25, 1, 0.5, 1)' }, children: _jsx(StepPreview, { step: step, p: p }) }, step), _jsxs("p", { style: { margin: 0, fontSize: 12.5, lineHeight: 1.65, opacity: 0.68 }, children: [step === 0 && 'Imported from @nanisoft/prism-ui/components — antd underneath, Prism theme on top.', step === 1 && 'A block: the stat card, pre-composed once and delivered from npm.', step === 2 && 'A page: blocks and components assembled into a full-page composition.'] })] })] }), _jsx("section", { style: { ...shell(860), padding: '8px 6vw 72px' }, children: _jsx(Tabs, { items: [
|
|
94
|
+
{ key: 'box', label: 'In the box', children: BOX_TAB },
|
|
95
|
+
{ key: 'agents', label: 'For agents', children: AGENTS_TAB },
|
|
96
|
+
] }) }), _jsxs("section", { style: { padding: '24px 6vw 88px', textAlign: 'center' }, children: [_jsx(Button, { type: "primary", size: "large", children: "Get started" }), _jsx("p", { style: { margin: '18px 0 0', fontFamily: 'var(--font-jetbrains), ui-monospace, monospace', fontSize: 12, opacity: 0.75 }, children: "npm i @nanisoft/prism-ui" })] }), _jsx("footer", { style: { borderTop: `1px solid ${p.hairline}` }, children: _jsxs("div", { style: { ...shell(), display: 'flex', gap: 16, alignItems: 'center', height: 60, fontSize: 12 }, children: [_jsx("span", { style: { opacity: 0.75 }, children: "\u00A9 2026 NaniSoft \u00B7 MIT" }), _jsx("span", { style: { marginLeft: 'auto', fontFamily: 'var(--font-jetbrains), ui-monospace, monospace', opacity: 0.75 }, children: "prism.nanisoft.com" })] }) })] })] }));
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=variant-c-workbench.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-c-workbench.js","sourceRoot":"","sources":["../../../src/prototype/landing/variant-c-workbench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,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AG,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,YACxD,KAAC,IAAI,IACH,KAAK,EAAE;gCACL,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE;gCACtD,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE;6BAC7D,GACD,GACM,EAEV,mBAAS,KAAK,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,aAC/D,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,4BAE1B,EACT,YAAG,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,gDAAgD,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,yCAEvH,IACI,EAEV,iBAAQ,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,QAAQ,EAAE,EAAE,YACrD,eAAK,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,aAClG,eAAM,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,gDAA8B,EAC5D,eAAM,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,gDAAgD,EAAE,OAAO,EAAE,IAAI,EAAE,mCAEzG,IACH,GACC,IACL,IACS,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
+
export interface PrismLinkContextValue {
|
|
3
|
+
link?: ComponentType<{
|
|
4
|
+
href: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function PrismLinkContextProvider({ children, link, }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
link?: ComponentType<{
|
|
11
|
+
href: string;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
}): ReactNode;
|
|
15
|
+
export declare function usePrismLink(): ComponentType<{
|
|
16
|
+
href: string;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=PrismLinkContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrismLinkContext.d.ts","sourceRoot":"","sources":["../../src/provider/PrismLinkContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtF,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CAC7D;AAID,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;CAC7D,GAAG,SAAS,CAMZ;AAED,wBAAgB,YAAY,IAAI,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC,CAGnF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
const PrismLinkContext = createContext({});
|
|
4
|
+
export function PrismLinkContextProvider({ children, link, }) {
|
|
5
|
+
return (_jsx(PrismLinkContext.Provider, { value: { link }, children: children }));
|
|
6
|
+
}
|
|
7
|
+
export function usePrismLink() {
|
|
8
|
+
const { link } = useContext(PrismLinkContext);
|
|
9
|
+
return link ?? ((props) => _jsx("a", { href: props.href, children: props.children }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=PrismLinkContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrismLinkContext.js","sourceRoot":"","sources":["../../src/provider/PrismLinkContext.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAsC,MAAM,OAAO,CAAC;AAMtF,MAAM,gBAAgB,GAAG,aAAa,CAAwB,EAAE,CAAC,CAAC;AAElE,MAAM,UAAU,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,GAIL;IACC,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,YACvC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC9C,OAAO,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAG,IAAI,EAAE,KAAK,CAAC,IAAI,YAAG,KAAK,CAAC,QAAQ,GAAK,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ConfigProviderProps } from 'antd';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { type PrismTheme } from '@nanisoft/prism-tokens';
|
|
4
|
+
export interface PrismProviderProps extends ConfigProviderProps {
|
|
5
|
+
/** Pack × mode selection. Defaults to the blue pack in light mode (ADR-0003). No pack/mode sugar props. */
|
|
6
|
+
prismTheme?: PrismTheme;
|
|
7
|
+
}
|
|
8
|
+
export declare function PrismProvider({ children, theme, prismTheme, ...props }: PrismProviderProps): ReactNode;
|
|
9
|
+
//# sourceMappingURL=PrismProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrismProvider.d.ts","sourceRoot":"","sources":["../../src/provider/PrismProvider.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIxE,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,2GAA2G;IAC3G,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,SAAS,CAQtG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
// PrismProvider (ADR-0003): a transparent wrapper over antd's ConfigProvider.
|
|
4
|
+
// Owns the default theme (blue pack, light mode), the consumer-last theme
|
|
5
|
+
// merge, and antd's App mount. It owns nothing else — locale and direction are
|
|
6
|
+
// forwarded, SSR extraction and <html> class management are app-level.
|
|
7
|
+
//
|
|
8
|
+
// 'use client': a server component may render this provider directly (e.g. the
|
|
9
|
+
// site's DocsDaylight). Without the directive the provider lands in the server
|
|
10
|
+
// graph and the merged theme's algorithm function serializes to undefined
|
|
11
|
+
// across the RSC boundary — silent light-token derivation. `prismTheme` is
|
|
12
|
+
// plain frozen data (prism-tokens carries no functions), so the props
|
|
13
|
+
// serialize and the algorithm attach happens client-side.
|
|
14
|
+
import { App, ConfigProvider } from 'antd';
|
|
15
|
+
import { getPrismTheme } from '@nanisoft/prism-tokens';
|
|
16
|
+
import { mergePrismTheme } from './mergePrismTheme.js';
|
|
17
|
+
export function PrismProvider({ children, theme, prismTheme, ...props }) {
|
|
18
|
+
const merged = mergePrismTheme(prismTheme ?? getPrismTheme('blue', 'light'), theme);
|
|
19
|
+
return (_jsx(ConfigProvider, { ...props, theme: merged, children: _jsx(App, { children: children }) }));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=PrismProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrismProvider.js","sourceRoot":"","sources":["../../src/provider/PrismProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,8EAA8E;AAC9E,0EAA0E;AAC1E,+EAA+E;AAC/E,uEAAuE;AACvE,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,0EAA0E;AAC1E,2EAA2E;AAC3E,sEAAsE;AACtE,0DAA0D;AAE1D,OAAO,EAAE,GAAG,EAAE,cAAc,EAA4B,MAAM,MAAM,CAAC;AAErE,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOvD,MAAM,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,EAAsB;IACzF,MAAM,MAAM,GAAG,eAAe,CAAC,UAAU,IAAI,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;IAEpF,OAAO,CACL,KAAC,cAAc,OAAK,KAAK,EAAE,KAAK,EAAE,MAAM,YACtC,KAAC,GAAG,cAAE,QAAQ,GAAO,GACN,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PrismProvider, type PrismProviderProps } from './PrismProvider.js';
|
|
2
|
+
export { mergePrismTheme, toAntdTheme, isPrismTheme } from './mergePrismTheme.js';
|
|
3
|
+
export { usePrismLink, PrismLinkContextProvider, type PrismLinkContextValue } from './PrismLinkContext.js';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA2B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAA8B,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ThemeConfig } from 'antd';
|
|
2
|
+
import type { PrismTheme } from '@nanisoft/prism-tokens';
|
|
3
|
+
export declare function isPrismTheme(value: unknown): value is PrismTheme;
|
|
4
|
+
/** PrismTheme → ConfigProvider-ready ThemeConfig: the antd lane plus the mode's algorithm. */
|
|
5
|
+
export declare function toAntdTheme(prismTheme: PrismTheme): ThemeConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Compose a ConfigProvider theme from a PrismTheme (or a raw ThemeConfig, for
|
|
8
|
+
* full control) plus optional consumer overrides — consumer last, per key.
|
|
9
|
+
* Exported so apps can compose themes without the provider.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mergePrismTheme(prismTheme: PrismTheme | ThemeConfig, consumer?: ThemeConfig): ThemeConfig;
|
|
12
|
+
//# sourceMappingURL=mergePrismTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergePrismTheme.d.ts","sourceRoot":"","sources":["../../src/provider/mergePrismTheme.ts"],"names":[],"mappings":"AAOA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAShE;AAED,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,CAK/D;AAwBD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,CAIzG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Theme composition (ADR-0003): mergePrismTheme(prismTheme, consumerTheme).
|
|
2
|
+
//
|
|
3
|
+
// prism-tokens cannot carry the antd algorithm (it has no antd dependency), so
|
|
4
|
+
// this module attaches `theme.defaultAlgorithm` / `theme.darkAlgorithm` from
|
|
5
|
+
// the PrismTheme's mode when converting to a ConfigProvider theme — one
|
|
6
|
+
// algorithm per theme, never an array (ADR-0002 §3).
|
|
7
|
+
import { theme as antdTheme } from 'antd';
|
|
8
|
+
export function isPrismTheme(value) {
|
|
9
|
+
return (typeof value === 'object' &&
|
|
10
|
+
value !== null &&
|
|
11
|
+
'antd' in value &&
|
|
12
|
+
'cssVarKey' in value &&
|
|
13
|
+
'semantics' in value &&
|
|
14
|
+
'primitives' in value);
|
|
15
|
+
}
|
|
16
|
+
/** PrismTheme → ConfigProvider-ready ThemeConfig: the antd lane plus the mode's algorithm. */
|
|
17
|
+
export function toAntdTheme(prismTheme) {
|
|
18
|
+
return {
|
|
19
|
+
...prismTheme.antd,
|
|
20
|
+
algorithm: prismTheme.mode === 'dark' ? antdTheme.darkAlgorithm : antdTheme.defaultAlgorithm,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function isMergeable(value) {
|
|
24
|
+
return (typeof value === 'object' &&
|
|
25
|
+
value !== null &&
|
|
26
|
+
!Array.isArray(value) &&
|
|
27
|
+
typeof value !== 'function' &&
|
|
28
|
+
!(value instanceof Date) &&
|
|
29
|
+
!(value instanceof RegExp));
|
|
30
|
+
}
|
|
31
|
+
/** Deep-merge per key — consumer wins; `token` and `components[X]` merge per component, never replaced by reference. */
|
|
32
|
+
function deepMerge(base, consumer) {
|
|
33
|
+
const result = { ...base };
|
|
34
|
+
for (const [key, consumerValue] of Object.entries(consumer)) {
|
|
35
|
+
const baseValue = result[key];
|
|
36
|
+
result[key] =
|
|
37
|
+
isMergeable(baseValue) && isMergeable(consumerValue) ? deepMerge(baseValue, consumerValue) : consumerValue;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Compose a ConfigProvider theme from a PrismTheme (or a raw ThemeConfig, for
|
|
43
|
+
* full control) plus optional consumer overrides — consumer last, per key.
|
|
44
|
+
* Exported so apps can compose themes without the provider.
|
|
45
|
+
*/
|
|
46
|
+
export function mergePrismTheme(prismTheme, consumer) {
|
|
47
|
+
const base = isPrismTheme(prismTheme) ? toAntdTheme(prismTheme) : prismTheme;
|
|
48
|
+
if (!consumer)
|
|
49
|
+
return base;
|
|
50
|
+
return deepMerge(base, consumer);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=mergePrismTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergePrismTheme.js","sourceRoot":"","sources":["../../src/provider/mergePrismTheme.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,wEAAwE;AACxE,qDAAqD;AAErD,OAAO,EAAE,KAAK,IAAI,SAAS,EAAoB,MAAM,MAAM,CAAC;AAG5D,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,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AAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAC7E,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3B,OAAO,SAAS,CAAC,IAA+B,EAAE,QAAmC,CAAgB,CAAC;AACxG,CAAC"}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* @nanisoft/prism-ui — styles.css
|
|
2
|
+
* Font faces, display width-axis, and dither patterns.
|
|
3
|
+
* Imported by the app (never by PrismProvider), keeping sideEffects: [] honest.
|
|
4
|
+
*
|
|
5
|
+
* Fonts:
|
|
6
|
+
* - Archivo Variable: the system-agnostic UI typeface
|
|
7
|
+
* - JetBrains Mono: the code font used in ComponentDemo blocks
|
|
8
|
+
*
|
|
9
|
+
* Width-axis: the `prism-display--refracted` class applies wght 600 / wdth 125
|
|
10
|
+
* to extend antd's default typography for brand display text.
|
|
11
|
+
*
|
|
12
|
+
* Dither patterns: visual texture for brand surfaces where antd's token
|
|
13
|
+
* surface cannot express the delta (ADR-0001 brand-behavior gate).
|
|
14
|
+
*
|
|
15
|
+
* Layering: every style RULE lives inside `@layer prism { … }` so consumer
|
|
16
|
+
* utilities and app CSS always win the cascade (ADR-0003, styling tier 4).
|
|
17
|
+
* @font-face is not a style rule and cannot be layered, so it stays outside.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/* ---------- Font faces ---------- */
|
|
21
|
+
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: 'Archivo Variable';
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 400 700;
|
|
26
|
+
src: local('Archivo Variable'),
|
|
27
|
+
url('/fonts/archivo-variable.woff2') format('woff2-variations'),
|
|
28
|
+
url('/fonts/archivo-variable.woff') format('woff2');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'JetBrains Mono';
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 400 700;
|
|
35
|
+
src: local('JetBrains Mono'),
|
|
36
|
+
url('/fonts/jbmono-var.woff2') format('woff2-variations'),
|
|
37
|
+
url('/fonts/jbmono-var.woff') format('woff2');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@layer prism {
|
|
41
|
+
|
|
42
|
+
/* ---------- Display width-axis class ---------- */
|
|
43
|
+
|
|
44
|
+
.prism-display {
|
|
45
|
+
/* Default: antd typography-preserved display */
|
|
46
|
+
font-variation-settings: 'wdth' 100;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.prism-display--refracted {
|
|
50
|
+
/* Refracted: brand width axis wght 600 / wdth 125 */
|
|
51
|
+
font-variation-settings: 'wdth' 125, 'wght' 600;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* ---------- Dither patterns ---------- */
|
|
55
|
+
|
|
56
|
+
/* Brand-surface dither — 2×2 Bayer matrix overlay for light mode.
|
|
57
|
+
* Intentionally subtle: it sits behind text and decorative elements
|
|
58
|
+
* only, never on interactive or live-state surfaces. */
|
|
59
|
+
.prism-dither--light {
|
|
60
|
+
background-image:
|
|
61
|
+
url('data:image/svg+xml,%3Csvg viewBox="0 0 4 4" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="bayer2x2"%3E%3CfeTurbulence type="turbulence" baseFrequency="0.9" numOctaves="1"%3E%3C/filter%3E%3Crect width="4" height="4" filter="url(%23bayer2x2)"%3E%3C/rect%3E%3C/svg%3E');
|
|
62
|
+
background-size: 4px 4px;
|
|
63
|
+
opacity: 0.04;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Brand-surface dither — inverse for dark mode. */
|
|
67
|
+
.prism-dither--dark {
|
|
68
|
+
background-image:
|
|
69
|
+
url('data:image/svg+xml,%3Csvg viewBox="0 0 4 4" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="bayer2x2-inverse"%3E%3CfeTurbulence type="turbulence" baseFrequency="0.9" numOctaves="1"%3E%3C/filter%3E%3Crect width="4" height="4" filter="url(%23bayer2x2-inverse)"%3E%3C/rect%3E%3C/svg%3E');
|
|
70
|
+
background-size: 4px 4px;
|
|
71
|
+
opacity: 0.04;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type WrappedJustification = 'brand-behavior' | 'api-narrowing' | 'invariant' | 'upstream-gap';
|
|
2
|
+
export interface WrappedComponent {
|
|
3
|
+
/** The antd surface this component wraps (e.g. 'Typography.Title'). */
|
|
4
|
+
antdName: string;
|
|
5
|
+
/** The prism-ui export name (e.g. 'DisplayTitle'). */
|
|
6
|
+
exportName: string;
|
|
7
|
+
/** Props removed from antd's API — non-empty only under api-narrowing. */
|
|
8
|
+
removedProps?: string[];
|
|
9
|
+
justification: WrappedJustification;
|
|
10
|
+
}
|
|
11
|
+
/** Expected v1 wrapper count is single digits (ADR-0003); the count is tracked. */
|
|
12
|
+
export declare const wrappedComponents: readonly [{
|
|
13
|
+
readonly antdName: 'Typography.Title';
|
|
14
|
+
readonly exportName: 'DisplayTitle';
|
|
15
|
+
readonly removedProps: [];
|
|
16
|
+
readonly justification: 'brand-behavior';
|
|
17
|
+
}];
|
|
18
|
+
export declare const wrappedCount: 1;
|
|
19
|
+
/** antd's six documentation categories (the @ant-design/cli knowledge base grouping). */
|
|
20
|
+
export declare const antdCategories: readonly ['general', 'layout', 'navigation', 'data-entry', 'data-display', 'feedback'];
|
|
21
|
+
/** Prism-original items (blocks, pages, wrapped components) — the docs' Prism group. */
|
|
22
|
+
export type PrismCategory = (typeof antdCategories)[number] | 'prism';
|
|
23
|
+
/**
|
|
24
|
+
* Category per prism-ui item, keyed by export name. Pass-through components
|
|
25
|
+
* inherit antd's own category; blocks and pages are the Prism group.
|
|
26
|
+
*/
|
|
27
|
+
export declare const componentCategories: Readonly<Record<string, PrismCategory>>;
|
|
28
|
+
export type CatalogLayer = 'components' | 'blocks' | 'pages';
|
|
29
|
+
/** A generated pass-through item, as emitted by scripts/generateAntdExports.mjs. */
|
|
30
|
+
export interface PassThroughItem {
|
|
31
|
+
/** The antd export name — also the prism-ui export name (pass-throughs keep it). */
|
|
32
|
+
name: string;
|
|
33
|
+
/** kebab-case id used in the ./components/* subpath. */
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CatalogEntry {
|
|
37
|
+
/** Export name from prism-ui. */
|
|
38
|
+
name: string;
|
|
39
|
+
/** kebab-case id used in the layer subpath. */
|
|
40
|
+
id: string;
|
|
41
|
+
layer: CatalogLayer;
|
|
42
|
+
/** The antd name for pass-throughs; absent for wrapped and prism-original items (a wrapper's base is its registry entry's antdName). */
|
|
43
|
+
antdBase?: string;
|
|
44
|
+
category: PrismCategory;
|
|
45
|
+
/** Present iff the item is a hand-written wrapper. */
|
|
46
|
+
wrapped?: WrappedComponent;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Build the full prism-ui catalog: generated pass-throughs + wrapped
|
|
50
|
+
* components + blocks + pages, each with its antdBase and category. The
|
|
51
|
+
* category lookups throw on a missing entry so an uncategorized component
|
|
52
|
+
* fails the build (the docs coverage gate).
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildCatalog(passThroughs: readonly PassThroughItem[]): CatalogEntry[];
|
|
55
|
+
//# sourceMappingURL=wrapped-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapped-registry.d.ts","sourceRoot":"","sources":["../src/wrapped-registry.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,eAAe,GAAG,WAAW,GAAG,cAAc,CAAC;AAErG,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,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