@nanisoft/prism-ui 0.3.0 → 0.5.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/components.json +21 -0
- package/package.json +34 -86
- package/public/r/badge.json +26 -0
- package/public/r/button.json +26 -0
- package/public/r/card.json +25 -0
- package/public/r/cta-01.json +44 -0
- package/public/r/feature-grid-01.json +44 -0
- package/public/r/hero-01.json +44 -0
- package/public/r/pricing-01.json +46 -0
- package/public/r/registry.json +294 -0
- package/public/r/section.json +25 -0
- package/public/r/stats-01.json +44 -0
- package/registry.json +294 -0
- package/src/components/ds/blocks/cta-01/block.json +8 -0
- package/src/components/ds/blocks/cta-01/cta.tsx +62 -0
- package/src/components/ds/blocks/cta-01/index.tsx +1 -0
- package/src/components/ds/blocks/feature-grid-01/block.json +8 -0
- package/src/components/ds/blocks/feature-grid-01/feature-grid.tsx +69 -0
- package/src/components/ds/blocks/feature-grid-01/index.tsx +1 -0
- package/src/components/ds/blocks/hero-01/block.json +8 -0
- package/src/components/ds/blocks/hero-01/hero.tsx +85 -0
- package/src/components/ds/blocks/hero-01/index.tsx +1 -0
- package/src/components/ds/blocks/pricing-01/block.json +8 -0
- package/src/components/ds/blocks/pricing-01/index.tsx +1 -0
- package/src/components/ds/blocks/pricing-01/pricing.tsx +122 -0
- package/src/components/ds/blocks/section.meta.json +6 -0
- package/src/components/ds/blocks/section.tsx +86 -0
- package/src/components/ds/blocks/stats-01/block.json +8 -0
- package/src/components/ds/blocks/stats-01/index.tsx +1 -0
- package/src/components/ds/blocks/stats-01/stats.tsx +92 -0
- package/src/components/ui/badge.tsx +37 -0
- package/src/components/ui/button.tsx +77 -0
- package/src/components/ui/card.tsx +65 -0
- package/src/lib/utils.ts +6 -0
- package/LICENSE +0 -21
- package/dist/blocks/component-demo/ComponentDemo.d.ts +0 -13
- package/dist/blocks/component-demo/ComponentDemo.d.ts.map +0 -1
- package/dist/blocks/component-demo/ComponentDemo.js +0 -5
- package/dist/blocks/component-demo/ComponentDemo.js.map +0 -1
- package/dist/blocks/component-demo/index.d.ts +0 -2
- package/dist/blocks/component-demo/index.d.ts.map +0 -1
- package/dist/blocks/component-demo/index.js +0 -2
- package/dist/blocks/component-demo/index.js.map +0 -1
- package/dist/blocks/component-demo.d.ts +0 -15
- package/dist/blocks/component-demo.d.ts.map +0 -1
- package/dist/blocks/component-demo.js +0 -11
- package/dist/blocks/component-demo.js.map +0 -1
- package/dist/blocks/index.d.ts +0 -3
- package/dist/blocks/index.d.ts.map +0 -1
- package/dist/blocks/index.js +0 -4
- package/dist/blocks/index.js.map +0 -1
- package/dist/blocks/page-header/PageHeader.d.ts +0 -11
- package/dist/blocks/page-header/PageHeader.d.ts.map +0 -1
- package/dist/blocks/page-header/PageHeader.js +0 -9
- package/dist/blocks/page-header/PageHeader.js.map +0 -1
- package/dist/blocks/page-header/index.d.ts +0 -2
- package/dist/blocks/page-header/index.d.ts.map +0 -1
- package/dist/blocks/page-header/index.js +0 -2
- package/dist/blocks/page-header/index.js.map +0 -1
- package/dist/blocks/page-header.d.ts +0 -16
- package/dist/blocks/page-header.d.ts.map +0 -1
- package/dist/blocks/page-header.js +0 -13
- package/dist/blocks/page-header.js.map +0 -1
- package/dist/components/affix/index.d.ts +0 -2
- package/dist/components/affix/index.d.ts.map +0 -1
- package/dist/components/affix/index.js +0 -3
- package/dist/components/affix/index.js.map +0 -1
- package/dist/components/alert/index.d.ts +0 -2
- package/dist/components/alert/index.d.ts.map +0 -1
- package/dist/components/alert/index.js +0 -3
- package/dist/components/alert/index.js.map +0 -1
- package/dist/components/anchor/index.d.ts +0 -2
- package/dist/components/anchor/index.d.ts.map +0 -1
- package/dist/components/anchor/index.js +0 -3
- package/dist/components/anchor/index.js.map +0 -1
- package/dist/components/auto-complete/index.d.ts +0 -2
- package/dist/components/auto-complete/index.d.ts.map +0 -1
- package/dist/components/auto-complete/index.js +0 -3
- package/dist/components/auto-complete/index.js.map +0 -1
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/back-top/index.d.ts +0 -2
- package/dist/components/back-top/index.d.ts.map +0 -1
- package/dist/components/back-top/index.js +0 -3
- package/dist/components/back-top/index.js.map +0 -1
- package/dist/components/badge/index.d.ts +0 -2
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js +0 -3
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/border-beam/index.d.ts +0 -2
- package/dist/components/border-beam/index.d.ts.map +0 -1
- package/dist/components/border-beam/index.js +0 -3
- package/dist/components/border-beam/index.js.map +0 -1
- package/dist/components/breadcrumb/index.d.ts +0 -2
- package/dist/components/breadcrumb/index.d.ts.map +0 -1
- package/dist/components/breadcrumb/index.js +0 -3
- package/dist/components/breadcrumb/index.js.map +0 -1
- package/dist/components/button/index.d.ts +0 -2
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js +0 -3
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/calendar/index.d.ts +0 -2
- package/dist/components/calendar/index.d.ts.map +0 -1
- package/dist/components/calendar/index.js +0 -3
- package/dist/components/calendar/index.js.map +0 -1
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/index.js +0 -3
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/carousel/index.d.ts +0 -2
- package/dist/components/carousel/index.d.ts.map +0 -1
- package/dist/components/carousel/index.js +0 -3
- package/dist/components/carousel/index.js.map +0 -1
- package/dist/components/cascader/index.d.ts +0 -2
- package/dist/components/cascader/index.d.ts.map +0 -1
- package/dist/components/cascader/index.js +0 -3
- package/dist/components/cascader/index.js.map +0 -1
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js +0 -3
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/col/index.d.ts +0 -2
- package/dist/components/col/index.d.ts.map +0 -1
- package/dist/components/col/index.js +0 -3
- package/dist/components/col/index.js.map +0 -1
- package/dist/components/collapse/index.d.ts +0 -2
- package/dist/components/collapse/index.d.ts.map +0 -1
- package/dist/components/collapse/index.js +0 -3
- package/dist/components/collapse/index.js.map +0 -1
- package/dist/components/color-picker/index.d.ts +0 -2
- package/dist/components/color-picker/index.d.ts.map +0 -1
- package/dist/components/color-picker/index.js +0 -3
- package/dist/components/color-picker/index.js.map +0 -1
- package/dist/components/date-picker/index.d.ts +0 -2
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js +0 -3
- package/dist/components/date-picker/index.js.map +0 -1
- package/dist/components/descriptions/index.d.ts +0 -2
- package/dist/components/descriptions/index.d.ts.map +0 -1
- package/dist/components/descriptions/index.js +0 -3
- package/dist/components/descriptions/index.js.map +0 -1
- package/dist/components/display-title/DisplayTitle.d.ts +0 -7
- package/dist/components/display-title/DisplayTitle.d.ts.map +0 -1
- package/dist/components/display-title/DisplayTitle.js +0 -12
- package/dist/components/display-title/DisplayTitle.js.map +0 -1
- package/dist/components/display-title/index.d.ts +0 -2
- package/dist/components/display-title/index.d.ts.map +0 -1
- package/dist/components/display-title/index.js +0 -2
- package/dist/components/display-title/index.js.map +0 -1
- package/dist/components/divider/index.d.ts +0 -2
- package/dist/components/divider/index.d.ts.map +0 -1
- package/dist/components/divider/index.js +0 -3
- package/dist/components/divider/index.js.map +0 -1
- package/dist/components/drawer/index.d.ts +0 -2
- package/dist/components/drawer/index.d.ts.map +0 -1
- package/dist/components/drawer/index.js +0 -3
- package/dist/components/drawer/index.js.map +0 -1
- package/dist/components/dropdown/index.d.ts +0 -2
- package/dist/components/dropdown/index.d.ts.map +0 -1
- package/dist/components/dropdown/index.js +0 -3
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/empty/index.d.ts +0 -2
- package/dist/components/empty/index.d.ts.map +0 -1
- package/dist/components/empty/index.js +0 -3
- package/dist/components/empty/index.js.map +0 -1
- package/dist/components/flex/index.d.ts +0 -2
- package/dist/components/flex/index.d.ts.map +0 -1
- package/dist/components/flex/index.js +0 -3
- package/dist/components/flex/index.js.map +0 -1
- package/dist/components/float-button/index.d.ts +0 -2
- package/dist/components/float-button/index.d.ts.map +0 -1
- package/dist/components/float-button/index.js +0 -3
- package/dist/components/float-button/index.js.map +0 -1
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js +0 -3
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/grid/index.d.ts +0 -2
- package/dist/components/grid/index.d.ts.map +0 -1
- package/dist/components/grid/index.js +0 -3
- package/dist/components/grid/index.js.map +0 -1
- package/dist/components/image/index.d.ts +0 -2
- package/dist/components/image/index.d.ts.map +0 -1
- package/dist/components/image/index.js +0 -3
- package/dist/components/image/index.js.map +0 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -5
- package/dist/components/index.js.map +0 -1
- package/dist/components/input/index.d.ts +0 -2
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js +0 -3
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input-number/index.d.ts +0 -2
- package/dist/components/input-number/index.d.ts.map +0 -1
- package/dist/components/input-number/index.js +0 -3
- package/dist/components/input-number/index.js.map +0 -1
- package/dist/components/layout/index.d.ts +0 -2
- package/dist/components/layout/index.d.ts.map +0 -1
- package/dist/components/layout/index.js +0 -3
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/list/index.d.ts +0 -2
- package/dist/components/list/index.d.ts.map +0 -1
- package/dist/components/list/index.js +0 -3
- package/dist/components/list/index.js.map +0 -1
- package/dist/components/listy/index.d.ts +0 -2
- package/dist/components/listy/index.d.ts.map +0 -1
- package/dist/components/listy/index.js +0 -3
- package/dist/components/listy/index.js.map +0 -1
- package/dist/components/masonry/index.d.ts +0 -2
- package/dist/components/masonry/index.d.ts.map +0 -1
- package/dist/components/masonry/index.js +0 -3
- package/dist/components/masonry/index.js.map +0 -1
- package/dist/components/mentions/index.d.ts +0 -2
- package/dist/components/mentions/index.d.ts.map +0 -1
- package/dist/components/mentions/index.js +0 -3
- package/dist/components/mentions/index.js.map +0 -1
- package/dist/components/menu/index.d.ts +0 -2
- package/dist/components/menu/index.d.ts.map +0 -1
- package/dist/components/menu/index.js +0 -3
- package/dist/components/menu/index.js.map +0 -1
- package/dist/components/modal/index.d.ts +0 -2
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/index.js +0 -3
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/pagination/index.d.ts +0 -2
- package/dist/components/pagination/index.d.ts.map +0 -1
- package/dist/components/pagination/index.js +0 -3
- package/dist/components/pagination/index.js.map +0 -1
- package/dist/components/popconfirm/index.d.ts +0 -2
- package/dist/components/popconfirm/index.d.ts.map +0 -1
- package/dist/components/popconfirm/index.js +0 -3
- package/dist/components/popconfirm/index.js.map +0 -1
- package/dist/components/popover/index.d.ts +0 -2
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/index.js +0 -3
- package/dist/components/popover/index.js.map +0 -1
- package/dist/components/progress/index.d.ts +0 -2
- package/dist/components/progress/index.d.ts.map +0 -1
- package/dist/components/progress/index.js +0 -3
- package/dist/components/progress/index.js.map +0 -1
- package/dist/components/qrcode/index.d.ts +0 -2
- package/dist/components/qrcode/index.d.ts.map +0 -1
- package/dist/components/qrcode/index.js +0 -3
- package/dist/components/qrcode/index.js.map +0 -1
- package/dist/components/radio/index.d.ts +0 -2
- package/dist/components/radio/index.d.ts.map +0 -1
- package/dist/components/radio/index.js +0 -3
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/rate/index.d.ts +0 -2
- package/dist/components/rate/index.d.ts.map +0 -1
- package/dist/components/rate/index.js +0 -3
- package/dist/components/rate/index.js.map +0 -1
- package/dist/components/result/index.d.ts +0 -2
- package/dist/components/result/index.d.ts.map +0 -1
- package/dist/components/result/index.js +0 -3
- package/dist/components/result/index.js.map +0 -1
- package/dist/components/row/index.d.ts +0 -2
- package/dist/components/row/index.d.ts.map +0 -1
- package/dist/components/row/index.js +0 -3
- package/dist/components/row/index.js.map +0 -1
- package/dist/components/segmented/index.d.ts +0 -2
- package/dist/components/segmented/index.d.ts.map +0 -1
- package/dist/components/segmented/index.js +0 -3
- package/dist/components/segmented/index.js.map +0 -1
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/skeleton/index.d.ts +0 -2
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/index.js +0 -3
- package/dist/components/skeleton/index.js.map +0 -1
- package/dist/components/slider/index.d.ts +0 -2
- package/dist/components/slider/index.d.ts.map +0 -1
- package/dist/components/slider/index.js +0 -3
- package/dist/components/slider/index.js.map +0 -1
- package/dist/components/space/index.d.ts +0 -2
- package/dist/components/space/index.d.ts.map +0 -1
- package/dist/components/space/index.js +0 -3
- package/dist/components/space/index.js.map +0 -1
- package/dist/components/spin/index.d.ts +0 -2
- package/dist/components/spin/index.d.ts.map +0 -1
- package/dist/components/spin/index.js +0 -3
- package/dist/components/spin/index.js.map +0 -1
- package/dist/components/splitter/index.d.ts +0 -2
- package/dist/components/splitter/index.d.ts.map +0 -1
- package/dist/components/splitter/index.js +0 -3
- package/dist/components/splitter/index.js.map +0 -1
- package/dist/components/statistic/index.d.ts +0 -2
- package/dist/components/statistic/index.d.ts.map +0 -1
- package/dist/components/statistic/index.js +0 -3
- package/dist/components/statistic/index.js.map +0 -1
- package/dist/components/steps/index.d.ts +0 -2
- package/dist/components/steps/index.d.ts.map +0 -1
- package/dist/components/steps/index.js +0 -3
- package/dist/components/steps/index.js.map +0 -1
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/switch/index.d.ts.map +0 -1
- package/dist/components/switch/index.js +0 -3
- package/dist/components/switch/index.js.map +0 -1
- package/dist/components/table/index.d.ts +0 -2
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/index.js +0 -3
- package/dist/components/table/index.js.map +0 -1
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js +0 -3
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tag/index.d.ts +0 -2
- package/dist/components/tag/index.d.ts.map +0 -1
- package/dist/components/tag/index.js +0 -3
- package/dist/components/tag/index.js.map +0 -1
- package/dist/components/time-picker/index.d.ts +0 -2
- package/dist/components/time-picker/index.d.ts.map +0 -1
- package/dist/components/time-picker/index.js +0 -3
- package/dist/components/time-picker/index.js.map +0 -1
- package/dist/components/timeline/index.d.ts +0 -2
- package/dist/components/timeline/index.d.ts.map +0 -1
- package/dist/components/timeline/index.js +0 -3
- package/dist/components/timeline/index.js.map +0 -1
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tour/index.d.ts +0 -2
- package/dist/components/tour/index.d.ts.map +0 -1
- package/dist/components/tour/index.js +0 -3
- package/dist/components/tour/index.js.map +0 -1
- package/dist/components/transfer/index.d.ts +0 -2
- package/dist/components/transfer/index.d.ts.map +0 -1
- package/dist/components/transfer/index.js +0 -3
- package/dist/components/transfer/index.js.map +0 -1
- package/dist/components/tree/index.d.ts +0 -2
- package/dist/components/tree/index.d.ts.map +0 -1
- package/dist/components/tree/index.js +0 -3
- package/dist/components/tree/index.js.map +0 -1
- package/dist/components/tree-select/index.d.ts +0 -2
- package/dist/components/tree-select/index.d.ts.map +0 -1
- package/dist/components/tree-select/index.js +0 -3
- package/dist/components/tree-select/index.js.map +0 -1
- package/dist/components/typography/index.d.ts +0 -2
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/index.js +0 -3
- package/dist/components/typography/index.js.map +0 -1
- package/dist/components/upload/index.d.ts +0 -2
- package/dist/components/upload/index.d.ts.map +0 -1
- package/dist/components/upload/index.js +0 -3
- package/dist/components/upload/index.js.map +0 -1
- package/dist/components/watermark/index.d.ts +0 -2
- package/dist/components/watermark/index.d.ts.map +0 -1
- package/dist/components/watermark/index.js +0 -3
- package/dist/components/watermark/index.js.map +0 -1
- package/dist/generated/antd-components.d.ts +0 -139
- package/dist/generated/antd-components.d.ts.map +0 -1
- package/dist/generated/antd-components.js +0 -72
- package/dist/generated/antd-components.js.map +0 -1
- package/dist/generated/icons.d.ts +0 -2
- package/dist/generated/icons.d.ts.map +0 -1
- package/dist/generated/icons.js +0 -3
- package/dist/generated/icons.js.map +0 -1
- package/dist/generated/pass-throughs.d.ts +0 -213
- package/dist/generated/pass-throughs.d.ts.map +0 -1
- package/dist/generated/pass-throughs.js +0 -75
- package/dist/generated/pass-throughs.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/pages/blog-layout/BlogLayout.d.ts +0 -22
- package/dist/pages/blog-layout/BlogLayout.d.ts.map +0 -1
- package/dist/pages/blog-layout/BlogLayout.js +0 -5
- package/dist/pages/blog-layout/BlogLayout.js.map +0 -1
- package/dist/pages/blog-layout/index.d.ts +0 -2
- package/dist/pages/blog-layout/index.d.ts.map +0 -1
- package/dist/pages/blog-layout/index.js +0 -2
- package/dist/pages/blog-layout/index.js.map +0 -1
- package/dist/pages/blog-layout.d.ts +0 -22
- package/dist/pages/blog-layout.d.ts.map +0 -1
- package/dist/pages/blog-layout.js +0 -11
- package/dist/pages/blog-layout.js.map +0 -1
- package/dist/pages/docs-shell/DocsShell.d.ts +0 -37
- package/dist/pages/docs-shell/DocsShell.d.ts.map +0 -1
- package/dist/pages/docs-shell/DocsShell.js +0 -8
- package/dist/pages/docs-shell/DocsShell.js.map +0 -1
- package/dist/pages/docs-shell/index.d.ts +0 -2
- package/dist/pages/docs-shell/index.d.ts.map +0 -1
- package/dist/pages/docs-shell/index.js +0 -2
- package/dist/pages/docs-shell/index.js.map +0 -1
- package/dist/pages/docs-shell.d.ts +0 -17
- package/dist/pages/docs-shell.d.ts.map +0 -1
- package/dist/pages/docs-shell.js +0 -11
- package/dist/pages/docs-shell.js.map +0 -1
- package/dist/pages/index.d.ts +0 -3
- package/dist/pages/index.d.ts.map +0 -1
- package/dist/pages/index.js +0 -4
- package/dist/pages/index.js.map +0 -1
- package/dist/prototype/index.d.ts +0 -2
- package/dist/prototype/index.d.ts.map +0 -1
- package/dist/prototype/index.js +0 -2
- package/dist/prototype/index.js.map +0 -1
- package/dist/prototype/landing/bits.d.ts +0 -29
- package/dist/prototype/landing/bits.d.ts.map +0 -1
- package/dist/prototype/landing/bits.js +0 -50
- package/dist/prototype/landing/bits.js.map +0 -1
- package/dist/prototype/landing/index.d.ts +0 -10
- package/dist/prototype/landing/index.d.ts.map +0 -1
- package/dist/prototype/landing/index.js +0 -7
- package/dist/prototype/landing/index.js.map +0 -1
- package/dist/prototype/landing/switcher.d.ts +0 -17
- package/dist/prototype/landing/switcher.d.ts.map +0 -1
- package/dist/prototype/landing/switcher.js +0 -71
- package/dist/prototype/landing/switcher.js.map +0 -1
- package/dist/prototype/landing/theme.d.ts +0 -44
- package/dist/prototype/landing/theme.d.ts.map +0 -1
- package/dist/prototype/landing/theme.js +0 -98
- package/dist/prototype/landing/theme.js.map +0 -1
- package/dist/prototype/landing/variant-a-specimen.d.ts +0 -3
- package/dist/prototype/landing/variant-a-specimen.d.ts.map +0 -1
- package/dist/prototype/landing/variant-a-specimen.js +0 -86
- package/dist/prototype/landing/variant-a-specimen.js.map +0 -1
- package/dist/prototype/landing/variant-b-ledger.d.ts +0 -3
- package/dist/prototype/landing/variant-b-ledger.d.ts.map +0 -1
- package/dist/prototype/landing/variant-b-ledger.js +0 -51
- package/dist/prototype/landing/variant-b-ledger.js.map +0 -1
- package/dist/prototype/landing/variant-c-workbench.d.ts +0 -3
- package/dist/prototype/landing/variant-c-workbench.d.ts.map +0 -1
- package/dist/prototype/landing/variant-c-workbench.js +0 -98
- package/dist/prototype/landing/variant-c-workbench.js.map +0 -1
- package/dist/provider/PrismLinkContext.d.ts +0 -19
- package/dist/provider/PrismLinkContext.d.ts.map +0 -1
- package/dist/provider/PrismLinkContext.js +0 -11
- package/dist/provider/PrismLinkContext.js.map +0 -1
- package/dist/provider/PrismProvider.d.ts +0 -9
- package/dist/provider/PrismProvider.d.ts.map +0 -1
- package/dist/provider/PrismProvider.js +0 -21
- package/dist/provider/PrismProvider.js.map +0 -1
- package/dist/provider/index.d.ts +0 -4
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/index.js +0 -4
- package/dist/provider/index.js.map +0 -1
- package/dist/provider/mergePrismTheme.d.ts +0 -12
- package/dist/provider/mergePrismTheme.d.ts.map +0 -1
- package/dist/provider/mergePrismTheme.js +0 -52
- package/dist/provider/mergePrismTheme.js.map +0 -1
- package/dist/styles.css +0 -73
- package/dist/wrapped-registry.d.ts +0 -55
- package/dist/wrapped-registry.d.ts.map +0 -1
- package/dist/wrapped-registry.js +0 -156
- package/dist/wrapped-registry.js.map +0 -1
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PROTOTYPE (map ticket 11) — provisional Spectral Refraction theme, hand-rolled
|
|
3
|
-
* to the shape ADR-0002 specifies for `createPrismTheme()`'s antd lane. Throwaway:
|
|
4
|
-
* the real implementation lands in `@nanisoft/prism-tokens` per the map's fog
|
|
5
|
-
* ("Tokens package + brand packs"), with the AA contrast gate and pinned ink hexes.
|
|
6
|
-
*
|
|
7
|
-
* Brand inks are PROVISIONAL — ADR-0001/0002 leave them TBD until the pack pass.
|
|
8
|
-
*/
|
|
9
|
-
import { theme as antdTheme } from 'antd';
|
|
10
|
-
/** Tier-0 primitives, per ADR-0001 (inks provisional). */
|
|
11
|
-
const primitives = {
|
|
12
|
-
blue: {
|
|
13
|
-
light: {
|
|
14
|
-
ink: '#2563EB',
|
|
15
|
-
ground: '#F7F9FC',
|
|
16
|
-
surface: '#FFFFFF',
|
|
17
|
-
hairline: 'rgba(37, 99, 235, 0.16)',
|
|
18
|
-
text: 'rgba(13, 27, 62, 0.88)',
|
|
19
|
-
},
|
|
20
|
-
'beam-dark': {
|
|
21
|
-
ink: '#5B8DEF',
|
|
22
|
-
ground: '#0B1220',
|
|
23
|
-
surface: '#111C33',
|
|
24
|
-
hairline: 'rgba(147, 178, 255, 0.16)',
|
|
25
|
-
text: '#E8EEF9',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
green: {
|
|
29
|
-
light: {
|
|
30
|
-
ink: '#16A34A',
|
|
31
|
-
ground: '#F7FAF8',
|
|
32
|
-
surface: '#FFFFFF',
|
|
33
|
-
hairline: 'rgba(22, 163, 74, 0.16)',
|
|
34
|
-
text: 'rgba(9, 38, 23, 0.88)',
|
|
35
|
-
},
|
|
36
|
-
'beam-dark': {
|
|
37
|
-
ink: '#3DCB7A',
|
|
38
|
-
ground: '#0A1612',
|
|
39
|
-
surface: '#0F211A',
|
|
40
|
-
hairline: 'rgba(147, 255, 196, 0.14)',
|
|
41
|
-
text: '#E4F3EA',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
/** ADR-0001: exactly one cool-tinted shadow, floating layers only. */
|
|
46
|
-
const floatingShadow = '0 4px 16px rgba(11, 18, 32, 0.16)';
|
|
47
|
-
const fonts = {
|
|
48
|
-
sans: "var(--font-archivo), 'Archivo', 'Segoe UI', system-ui, sans-serif",
|
|
49
|
-
mono: "var(--font-jetbrains), 'JetBrains Mono', ui-monospace, monospace",
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* The antd lane: seeds + algorithms wherever a seed exists, plus the closed
|
|
53
|
-
* map-token allowlist entries the language needs (ADR-0002). Radius 4 / SM 2 /
|
|
54
|
-
* LG 6 and 280ms slow are not seed-derivable — that's why they're here.
|
|
55
|
-
*/
|
|
56
|
-
export function spectralAntdTheme(pack, mode) {
|
|
57
|
-
const p = primitives[pack][mode];
|
|
58
|
-
const dark = mode === 'beam-dark';
|
|
59
|
-
return {
|
|
60
|
-
algorithm: dark ? antdTheme.darkAlgorithm : antdTheme.defaultAlgorithm,
|
|
61
|
-
token: {
|
|
62
|
-
// seeds
|
|
63
|
-
colorPrimary: p.ink,
|
|
64
|
-
colorInfo: pack === 'blue' ? p.ink : '#2563EB',
|
|
65
|
-
colorSuccess: pack === 'blue' ? '#16A34A' : p.ink,
|
|
66
|
-
colorError: '#DC2626',
|
|
67
|
-
colorWarning: '#D97706',
|
|
68
|
-
colorBgBase: dark ? p.ground : p.surface,
|
|
69
|
-
colorTextBase: p.text,
|
|
70
|
-
borderRadius: 4,
|
|
71
|
-
fontFamily: fonts.sans,
|
|
72
|
-
// allowlisted map tokens (not seed-derivable)
|
|
73
|
-
borderRadiusSM: 2,
|
|
74
|
-
borderRadiusLG: 6,
|
|
75
|
-
motionDurationFast: '80ms',
|
|
76
|
-
motionDurationMid: '160ms',
|
|
77
|
-
motionDurationSlow: '280ms',
|
|
78
|
-
motionEaseOut: 'cubic-bezier(0.25, 1, 0.5, 1)',
|
|
79
|
-
colorBgLayout: p.ground,
|
|
80
|
-
colorBorderSecondary: p.hairline,
|
|
81
|
-
colorSplit: p.hairline,
|
|
82
|
-
boxShadow: floatingShadow,
|
|
83
|
-
boxShadowSecondary: floatingShadow,
|
|
84
|
-
wireframe: false,
|
|
85
|
-
},
|
|
86
|
-
// the six shadow-zeroing `components` entries (ADR-0002): flat controls.
|
|
87
|
-
components: {
|
|
88
|
-
Button: { primaryShadow: 'none', defaultShadow: 'none', dangerShadow: 'none' },
|
|
89
|
-
Input: { activeShadow: 'none' },
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
/** Prism-tier values the prototype's own markup reads (antd never sees these). */
|
|
94
|
-
export function spectralPrimitives(pack, mode) {
|
|
95
|
-
const p = primitives[pack][mode];
|
|
96
|
-
return { ...p, mono: fonts.mono, floatingShadow };
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/prototype/landing/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAM1C,0DAA0D;AAC1D,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,yBAAyB;YACnC,IAAI,EAAE,wBAAwB;SAC/B;QACD,WAAW,EAAE;YACX,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,2BAA2B;YACrC,IAAI,EAAE,SAAS;SAChB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,yBAAyB;YACnC,IAAI,EAAE,uBAAuB;SAC9B;QACD,WAAW,EAAE;YACX,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,2BAA2B;YACrC,IAAI,EAAE,SAAS;SAChB;KACF;CACO,CAAC;AAEX,sEAAsE;AACtE,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAE3D,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,mEAAmE;IACzE,IAAI,EAAE,kEAAkE;CACzE,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAU,EAAE,IAAU;IACtD,MAAM,CAAC,GAAG,UAAU,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AM,EAAE;SAChC;KACF,CAAC;AACJ,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAAC,IAAU,EAAE,IAAU;IACvD,MAAM,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,CAAC;AACpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant-a-specimen.d.ts","sourceRoot":"","sources":["../../../src/prototype/landing/variant-a-specimen.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AA6MzD,wBAAgB,gBAAgB,IAAI,YAAY,CAuG/C"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* PROTOTYPE (map ticket 11) — Variant A: "Specimen".
|
|
4
|
-
* Stance: dark-first, antd foundation worn loudly — a live themed specimen
|
|
5
|
-
* plate IS the hero image. Taxonomy told as three spatial progression bands.
|
|
6
|
-
*/
|
|
7
|
-
import { SearchOutlined } from '@ant-design/icons';
|
|
8
|
-
import { Button, ConfigProvider, Input, Progress, Slider, Statistic, Switch, Table, Tag } from 'antd';
|
|
9
|
-
import { DitherDivider, MiniPageWire, MonoNote } from './bits.js';
|
|
10
|
-
import { spectralAntdTheme, spectralPrimitives } from './theme.js';
|
|
11
|
-
const NOTE = 'rgba(147, 178, 255, 0.66)';
|
|
12
|
-
function plateSection(note, children) {
|
|
13
|
-
return (_jsxs("div", { children: [_jsx(MonoNote, { color: NOTE, style: { marginBottom: 8 }, children: note }), children] }));
|
|
14
|
-
}
|
|
15
|
-
function HeroSpecimen() {
|
|
16
|
-
const p = spectralPrimitives('blue', 'beam-dark');
|
|
17
|
-
const rows = [
|
|
18
|
-
{ key: '1', part: 'Button', acts: 'presses a command' },
|
|
19
|
-
{ key: '2', part: 'Input', acts: 'takes a value' },
|
|
20
|
-
{ key: '3', part: 'Table', acts: 'shows many rows' },
|
|
21
|
-
];
|
|
22
|
-
const columns = [
|
|
23
|
-
{ title: 'Part', dataIndex: 'part', key: 'part' },
|
|
24
|
-
{ title: 'Acts', dataIndex: 'acts', key: 'acts' },
|
|
25
|
-
];
|
|
26
|
-
return (_jsxs("div", { style: {
|
|
27
|
-
border: `1px solid ${p.hairline}`,
|
|
28
|
-
borderRadius: 6,
|
|
29
|
-
background: p.surface,
|
|
30
|
-
boxShadow: p.floatingShadow,
|
|
31
|
-
padding: '20px 22px',
|
|
32
|
-
display: 'grid',
|
|
33
|
-
gap: 16,
|
|
34
|
-
}, children: [plateSection('<Button />', _jsxs("div", { style: { display: 'flex', gap: 8, flexWrap: 'wrap' }, children: [_jsx(Button, { type: "primary", children: "Get started" }), _jsx(Button, { children: "Components" }), _jsx(Button, { type: "dashed", children: "Import" }), _jsx(Button, { type: "text", children: "Docs" })] })), plateSection('<Input />', _jsx(Input, { placeholder: "Search components\u2026", prefix: _jsx(SearchOutlined, {}) })), plateSection('<Switch /> <Slider />', _jsxs("div", { style: { display: 'flex', gap: 24, alignItems: 'center' }, children: [_jsx(Switch, { defaultChecked: true }), _jsx("div", { style: { flex: 1 }, children: _jsx(Slider, { defaultValue: 40 }) })] })), plateSection('<Tag />', _jsxs("div", { style: { display: 'flex', gap: 8, flexWrap: 'wrap' }, children: [_jsx(Tag, { color: "blue", children: "v1.0" }), _jsx(Tag, { color: "success", children: "beam-dark" }), _jsx(Tag, { children: "MCP" }), _jsx(Tag, { closable: true, children: "refract" })] })), plateSection('<Table size="small" />', _jsx(Table, { size: "small", pagination: false, dataSource: rows, columns: columns }))] }));
|
|
35
|
-
}
|
|
36
|
-
/** Band 1 of the strip — raw parts, loose in the plane. */
|
|
37
|
-
function PartsCluster() {
|
|
38
|
-
return (_jsxs("div", { style: { display: 'flex', gap: 8, flexWrap: 'wrap', alignItems: 'center' }, children: [_jsx(Button, { type: "primary", size: "small", children: "primary" }), _jsx(Button, { size: "small", children: "default" }), _jsx(Button, { size: "small", type: "text", children: "text" }), _jsx(Tag, { children: "size" }), _jsx(Tag, { children: "type" }), _jsx(Tag, { children: "state" })] }));
|
|
39
|
-
}
|
|
40
|
-
/** Band 2 — parts pre-composed into one reusable unit. */
|
|
41
|
-
function StatBlock() {
|
|
42
|
-
const p = spectralPrimitives('blue', 'beam-dark');
|
|
43
|
-
const card = {
|
|
44
|
-
border: `1px solid ${p.hairline}`,
|
|
45
|
-
borderRadius: 6,
|
|
46
|
-
background: p.surface,
|
|
47
|
-
padding: '14px 18px',
|
|
48
|
-
width: 260,
|
|
49
|
-
};
|
|
50
|
-
return (_jsxs("div", { style: card, children: [_jsx(MonoNote, { color: NOTE, style: { marginBottom: 4 }, 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", style: { marginTop: 8 }, children: "+12% vs last month" })] }));
|
|
51
|
-
}
|
|
52
|
-
function Band({ index, label, blurb, children, }) {
|
|
53
|
-
const p = spectralPrimitives('blue', 'beam-dark');
|
|
54
|
-
return (_jsxs("div", { style: { flex: 1, minWidth: 260, display: 'grid', gap: 14, alignContent: 'start' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'baseline', gap: 10 }, children: [_jsx("span", { style: {
|
|
55
|
-
fontFamily: 'var(--font-jetbrains), ui-monospace, monospace',
|
|
56
|
-
fontSize: 12,
|
|
57
|
-
color: p.ink,
|
|
58
|
-
}, children: index }), _jsx("span", { style: { fontStretch: '118%', fontWeight: 600, fontSize: 18 }, children: label })] }), _jsx("p", { style: { margin: 0, color: p.text, opacity: 0.78, fontSize: 13, lineHeight: 1.6 }, children: blurb }), _jsx("div", { children: children })] }));
|
|
59
|
-
}
|
|
60
|
-
/** The light-mode peek — nested ConfigProvider flips to blue light. */
|
|
61
|
-
function DocsDaylight() {
|
|
62
|
-
const lp = spectralPrimitives('blue', 'light');
|
|
63
|
-
return (_jsx(ConfigProvider, { theme: spectralAntdTheme('blue', 'light'), children: _jsx("div", { style: { background: lp.ground, padding: '72px 6vw' }, children: _jsxs("div", { style: { maxWidth: 980, margin: '0 auto', display: 'grid', gap: 18 }, children: [_jsx(MonoNote, { color: "rgba(37, 99, 235, 0.75)", children: "docs / components / button" }), _jsxs("div", { style: {
|
|
64
|
-
border: `1px solid ${lp.hairline}`,
|
|
65
|
-
borderRadius: 6,
|
|
66
|
-
background: lp.surface,
|
|
67
|
-
boxShadow: lp.floatingShadow,
|
|
68
|
-
padding: '28px 32px',
|
|
69
|
-
display: 'grid',
|
|
70
|
-
gap: 16,
|
|
71
|
-
}, children: [_jsx("h3", { style: { margin: 0, fontStretch: '114%', fontWeight: 600, fontSize: 26 }, children: "Button" }), _jsx("p", { style: { margin: 0, color: lp.text, opacity: 0.8, lineHeight: 1.65, maxWidth: '58ch' }, children: "Every doc page ships as a live demo plus copyable source \u2014 the same components, the same theme object, that your app installs from npm." }), _jsxs("div", { style: { display: 'flex', gap: 8, flexWrap: 'wrap' }, children: [_jsx(Button, { type: "primary", children: "Primary" }), _jsx(Button, { children: "Default" }), _jsx(Button, { type: "dashed", children: "Dashed" }), _jsx(Button, { type: "text", children: "Text" }), _jsx(Button, { type: "link", children: "Link" })] }), _jsx("div", { style: {
|
|
72
|
-
fontFamily: 'var(--font-jetbrains), ui-monospace, monospace',
|
|
73
|
-
fontSize: 12,
|
|
74
|
-
color: lp.text,
|
|
75
|
-
background: lp.ground,
|
|
76
|
-
border: `1px solid ${lp.hairline}`,
|
|
77
|
-
borderRadius: 4,
|
|
78
|
-
padding: '10px 14px',
|
|
79
|
-
}, children: 'import { Button } from \'@nanisoft/prism-ui/components\';' })] })] }) }) }));
|
|
80
|
-
}
|
|
81
|
-
export function VariantASpecimen() {
|
|
82
|
-
const p = spectralPrimitives('blue', 'beam-dark');
|
|
83
|
-
const shell = (max = 1180) => ({ maxWidth: max, margin: '0 auto', padding: '0 6vw' });
|
|
84
|
-
return (_jsx(ConfigProvider, { theme: spectralAntdTheme('blue', 'beam-dark'), children: _jsxs("div", { style: { minHeight: '100vh', background: p.ground, color: p.text }, children: [_jsx("header", { style: { borderBottom: `1px solid ${p.hairline}` }, children: _jsxs("div", { style: { ...shell(), display: 'flex', alignItems: 'center', gap: 24, height: 60 }, children: [_jsx("span", { style: { fontStretch: '125%', fontWeight: 700, fontSize: 18 }, children: "Prism" }), _jsx(MonoNote, { color: NOTE, children: "NANISOFT \u00B7 DESIGN SYSTEM" }), _jsxs("nav", { style: { marginLeft: 'auto', display: 'flex', gap: 20, fontSize: 13, opacity: 0.85 }, 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" })] })] }) }), _jsxs("section", { style: { ...shell(), display: 'grid', gridTemplateColumns: 'minmax(0,1fr) minmax(0,1fr)', gap: 56, alignItems: 'center', padding: '88px 6vw 96px' }, children: [_jsxs("div", { style: { display: 'grid', gap: 22 }, children: [_jsx(MonoNote, { color: NOTE, children: "ONE DESIGN LANGUAGE, MANY EXPRESSIONS" }), _jsxs("h1", { style: { margin: 0, fontSize: 52, lineHeight: 1.06, fontStretch: '122%', fontWeight: 600, letterSpacing: '-0.015em' }, children: ["The beam is neutral.", _jsx("br", {}), _jsx("span", { style: { color: p.ink }, children: "Refraction" }), " is the brand."] }), _jsx("p", { style: { margin: 0, fontSize: 15, lineHeight: 1.7, opacity: 0.82, maxWidth: '46ch' }, children: "Prism is NaniSoft's Ant Design\u2013based design system \u2014 tokens, components, blocks, and pages, shipped as npm packages with docs and an agent surface. Everything you see on this plate is the real library, themed." }), _jsxs("div", { style: { display: 'flex', gap: 12, marginTop: 6 }, children: [_jsx(Button, { type: "primary", size: "large", children: "Get started" }), _jsx(Button, { size: "large", children: "Browse components" })] })] }), _jsx(HeroSpecimen, {})] }), _jsx(DitherDivider, { ink: p.ink, from: p.ground }), _jsxs("section", { style: { ...shell(), padding: '64px 6vw 88px', display: 'flex', gap: 40, flexWrap: 'wrap' }, children: [_jsx(Band, { index: "01", label: "Components", blurb: "The antd surface, themed by Prism tokens, typed, and re-exported \u2014 apps never import antd directly.", children: _jsx(PartsCluster, {}) }), _jsx(Band, { index: "02", label: "Blocks", blurb: "Pre-composed components \u2014 a stat card, a filter bar \u2014 assembled once, delivered from npm.", children: _jsx(StatBlock, {}) }), _jsx(Band, { index: "03", label: "Pages", blurb: "Full-page compositions \u2014 docs shells, blog layouts \u2014 that apps compose, never copy.", children: _jsx(MiniPageWire, { p: p }) })] }), _jsx(DitherDivider, { ink: p.ink, from: p.ground, height: 110 }), _jsx(DocsDaylight, {}), _jsxs("section", { style: { background: p.ground, padding: '88px 6vw', textAlign: 'center' }, children: [_jsx("h2", { style: { margin: 0, fontSize: 36, fontStretch: '118%', fontWeight: 600, letterSpacing: '-0.01em' }, children: "Start refracting." }), _jsx("p", { style: { margin: '14px auto 28px', opacity: 0.75, maxWidth: '44ch', lineHeight: 1.7 }, children: "Two brand packs, two modes, one language. Install the packages, wrap your app, and pick your expression." }), _jsxs("div", { style: { display: 'flex', gap: 12, justifyContent: 'center' }, children: [_jsx(Button, { type: "primary", size: "large", children: "Read the docs" }), _jsx(Button, { size: "large", type: "text", 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: 64, fontSize: 12 }, children: [_jsx(MonoNote, { color: NOTE, style: { opacity: 1 }, children: "\u00A9 2026 NaniSoft \u00B7 MIT" }), _jsx("span", { style: { marginLeft: 'auto', fontFamily: 'var(--font-jetbrains), ui-monospace, monospace', fontSize: 12, opacity: 0.8 }, children: "prism.nanisoft.com" })] }) })] }) }));
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=variant-a-specimen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant-a-specimen.js","sourceRoot":"","sources":["../../../src/prototype/landing/variant-a-specimen.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAItG,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEnE,MAAM,IAAI,GAAG,2BAA2B,CAAC;AAEzC,SAAS,YAAY,CAAC,IAAY,EAAE,QAAsB;IACxD,OAAO,CACL,0BACE,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,YAC9C,IAAI,GACI,EACV,QAAQ,IACL,CACP,CAAC;AACJ,CAAC;AAED,SAAS,YAAY;IACnB,MAAM,CAAC,GAAG,kBAAkB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAGlD,MAAM,IAAI,GAAU;QAClB,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,mBAAmB,EAAE;QACvD,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE;QAClD,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE;KACrD,CAAC;IACF,MAAM,OAAO,GAA+B;QAC1C,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAA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AAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AA8EzD,wBAAgB,cAAc,IAAI,YAAY,CAwG7C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,MAA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-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"}
|
|
@@ -1,98 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAKnE,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAE/D,MAAM,MAAM,GAAG;;;;;;CAMd,CAAC;AAEF,SAAS,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,EAAiC;IAC7D,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,OAAO,CACL,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,aACtC,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,aACvD,KAAC,MAAM,IAAC,IAAI,EAAC,SAAS,4BAAqB,EAC3C,KAAC,MAAM,6BAAoB,EAC3B,KAAC,MAAM,IAAC,IAAI,EAAC,MAAM,qBAAc,IAC7B,EACN,KAAC,KAAK,IAAC,WAAW,EAAC,yBAAoB,EAAC,MAAM,EAAE,KAAC,cAAc,KAAG,GAAI,IAClE,CACP,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,KAAK,CAAC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AAU,EAAE,gDAAgD,EAAE,OAAO,EAAE,IAAI,EAAE,mCAEzG,IACH,GACC,IACL,IACS,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/provider/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/provider/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|