@nanisoft/prism-ui 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -0
- package/THIRD-PARTY-NOTICES.md +48 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/blocks/app-shell-01/app-shell.d.ts +38 -0
- package/dist/blocks/app-shell-01/app-shell.d.ts.map +1 -0
- package/dist/blocks/app-shell-01/app-shell.js +27 -0
- package/dist/blocks/app-shell-01/index.d.ts +3 -0
- package/dist/blocks/app-shell-01/index.d.ts.map +1 -0
- package/dist/blocks/app-shell-01/index.js +1 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts +52 -0
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -0
- package/dist/blocks/auth-form-01/auth-form.js +23 -0
- package/dist/blocks/auth-form-01/index.d.ts +3 -0
- package/dist/blocks/auth-form-01/index.d.ts.map +1 -0
- package/dist/blocks/auth-form-01/index.js +1 -0
- package/dist/blocks/cta-01/cta.d.ts +23 -0
- package/dist/blocks/cta-01/cta.d.ts.map +1 -0
- package/dist/blocks/cta-01/cta.js +24 -0
- package/dist/blocks/cta-01/index.d.ts +2 -0
- package/dist/blocks/cta-01/index.d.ts.map +1 -0
- package/dist/blocks/cta-01/index.js +1 -0
- package/dist/blocks/data-table-01/data-table.d.ts +102 -0
- package/dist/blocks/data-table-01/data-table.d.ts.map +1 -0
- package/dist/blocks/data-table-01/data-table.js +116 -0
- package/dist/blocks/data-table-01/index.d.ts +3 -0
- package/dist/blocks/data-table-01/index.d.ts.map +1 -0
- package/dist/blocks/data-table-01/index.js +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts +27 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts.map +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.js +14 -0
- package/dist/blocks/feature-grid-01/index.d.ts +2 -0
- package/dist/blocks/feature-grid-01/index.d.ts.map +1 -0
- package/dist/blocks/feature-grid-01/index.js +1 -0
- package/dist/blocks/hero-01/hero.d.ts +30 -0
- package/dist/blocks/hero-01/hero.d.ts.map +1 -0
- package/dist/blocks/hero-01/hero.js +12 -0
- package/dist/blocks/hero-01/index.d.ts +2 -0
- package/dist/blocks/hero-01/index.d.ts.map +1 -0
- package/dist/blocks/hero-01/index.js +1 -0
- package/dist/blocks/index.d.ts +17 -4
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +17 -6
- package/dist/blocks/page-header-01/index.d.ts +3 -0
- package/dist/blocks/page-header-01/index.d.ts.map +1 -0
- package/dist/blocks/page-header-01/index.js +1 -0
- package/dist/blocks/page-header-01/page-header.d.ts +48 -0
- package/dist/blocks/page-header-01/page-header.d.ts.map +1 -0
- package/dist/blocks/page-header-01/page-header.js +27 -0
- package/dist/blocks/pricing-01/index.d.ts +2 -0
- package/dist/blocks/pricing-01/index.d.ts.map +1 -0
- package/dist/blocks/pricing-01/index.js +1 -0
- package/dist/blocks/pricing-01/pricing.d.ts +35 -0
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -0
- package/dist/blocks/pricing-01/pricing.js +20 -0
- package/dist/blocks/settings-panel-01/index.d.ts +3 -0
- package/dist/blocks/settings-panel-01/index.d.ts.map +1 -0
- package/dist/blocks/settings-panel-01/index.js +1 -0
- package/dist/blocks/settings-panel-01/settings-panel.d.ts +71 -0
- package/dist/blocks/settings-panel-01/settings-panel.d.ts.map +1 -0
- package/dist/blocks/settings-panel-01/settings-panel.js +38 -0
- package/dist/blocks/stats-01/index.d.ts +2 -0
- package/dist/blocks/stats-01/index.d.ts.map +1 -0
- package/dist/blocks/stats-01/index.js +1 -0
- package/dist/blocks/stats-01/stats.d.ts +28 -0
- package/dist/blocks/stats-01/stats.d.ts.map +1 -0
- package/dist/blocks/stats-01/stats.js +27 -0
- package/dist/catalog.d.ts +28 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +502 -0
- package/dist/components/index.d.ts +52 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +37 -5
- package/dist/components/ui/accordion.d.ts +65 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +30 -0
- package/dist/components/ui/alert.d.ts +19 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +31 -0
- package/dist/components/ui/avatar.d.ts +47 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +30 -0
- package/dist/components/ui/badge.d.ts +14 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/breadcrumb.d.ts +35 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +48 -0
- package/dist/components/ui/button.d.ts +16 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +63 -0
- package/dist/components/ui/card.d.ts +16 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +28 -0
- package/dist/components/ui/checkbox.d.ts +43 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +18 -0
- package/dist/components/ui/dialog.d.ts +81 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +60 -0
- package/dist/components/ui/dropdown-menu.d.ts +189 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +67 -0
- package/dist/components/ui/field.d.ts +36 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +46 -0
- package/dist/components/ui/input.d.ts +12 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +14 -0
- package/dist/components/ui/kbd.d.ts +10 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +12 -0
- package/dist/components/ui/pagination.d.ts +40 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +49 -0
- package/dist/components/ui/popover.d.ts +56 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +25 -0
- package/dist/components/ui/progress.d.ts +38 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +17 -0
- package/dist/components/ui/radio-group.d.ts +66 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +30 -0
- package/dist/components/ui/section.d.ts +37 -0
- package/dist/components/ui/section.d.ts.map +1 -0
- package/dist/components/ui/section.js +12 -0
- package/dist/components/ui/select.d.ts +124 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +47 -0
- package/dist/components/ui/separator.d.ts +16 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +15 -0
- package/dist/components/ui/skeleton.d.ts +12 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/slider.d.ts +43 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +17 -0
- package/dist/components/ui/switch.d.ts +42 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +16 -0
- package/dist/components/ui/table.d.ts +27 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +43 -0
- package/dist/components/ui/tabs.d.ts +66 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +29 -0
- package/dist/components/ui/textarea.d.ts +11 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +13 -0
- package/dist/components/ui/tooltip.d.ts +63 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +25 -0
- package/dist/components/ui/typography.d.ts +32 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +51 -0
- package/dist/index.d.ts +54 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -20
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- package/dist/pages/auth-page/index.d.ts +36 -0
- package/dist/pages/auth-page/index.d.ts.map +1 -0
- package/dist/pages/auth-page/index.js +23 -0
- package/dist/pages/dashboard-page/index.d.ts +36 -0
- package/dist/pages/dashboard-page/index.d.ts.map +1 -0
- package/dist/pages/dashboard-page/index.js +24 -0
- package/dist/pages/index.d.ts +16 -2
- package/dist/pages/index.d.ts.map +1 -1
- package/dist/pages/index.js +12 -4
- package/dist/pages/marketing-page/index.d.ts +43 -0
- package/dist/pages/marketing-page/index.d.ts.map +1 -0
- package/dist/pages/marketing-page/index.js +25 -0
- package/dist/pages/settings-page/index.d.ts +47 -0
- package/dist/pages/settings-page/index.d.ts.map +1 -0
- package/dist/pages/settings-page/index.js +24 -0
- package/dist/provider/index.d.ts +11 -4
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +9 -5
- package/dist/provider/provider.d.ts +37 -0
- package/dist/provider/provider.d.ts.map +1 -0
- package/dist/provider/provider.js +87 -0
- package/dist/provider/theme-script.d.ts +17 -0
- package/dist/provider/theme-script.d.ts.map +1 -0
- package/dist/provider/theme-script.js +28 -0
- package/dist/styles.css +2366 -325
- package/dist/theming/index.d.ts +42 -3
- package/dist/theming/index.d.ts.map +1 -1
- package/dist/theming/index.js +60 -8
- package/package.json +64 -64
- 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.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/blocks/site-footer/SiteFooter.d.ts +0 -26
- package/dist/blocks/site-footer/SiteFooter.d.ts.map +0 -1
- package/dist/blocks/site-footer/SiteFooter.js +0 -10
- package/dist/blocks/site-footer/SiteFooter.js.map +0 -1
- package/dist/blocks/site-footer/index.d.ts +0 -2
- package/dist/blocks/site-footer/index.d.ts.map +0 -1
- package/dist/blocks/site-footer/index.js +0 -2
- package/dist/blocks/site-footer/index.js.map +0 -1
- package/dist/blocks/site-header/SiteHeader.d.ts +0 -19
- package/dist/blocks/site-header/SiteHeader.d.ts.map +0 -1
- package/dist/blocks/site-header/SiteHeader.js +0 -32
- package/dist/blocks/site-header/SiteHeader.js.map +0 -1
- package/dist/blocks/site-header/index.d.ts +0 -2
- package/dist/blocks/site-header/index.d.ts.map +0 -1
- package/dist/blocks/site-header/index.js +0 -2
- package/dist/blocks/site-header/index.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.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.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.js.map +0 -1
- package/dist/products/ProductDot.d.ts +0 -7
- package/dist/products/ProductDot.d.ts.map +0 -1
- package/dist/products/ProductDot.js +0 -7
- package/dist/products/ProductDot.js.map +0 -1
- package/dist/products/index.d.ts +0 -22
- package/dist/products/index.d.ts.map +0 -1
- package/dist/products/index.js +0 -72
- package/dist/products/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/PrismThemeMode.d.ts +0 -17
- package/dist/provider/PrismThemeMode.d.ts.map +0 -1
- package/dist/provider/PrismThemeMode.js +0 -61
- package/dist/provider/PrismThemeMode.js.map +0 -1
- 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/theming/bake.d.ts +0 -24
- package/dist/theming/bake.d.ts.map +0 -1
- package/dist/theming/bake.js +0 -78
- package/dist/theming/bake.js.map +0 -1
- package/dist/theming/bootScript.d.ts +0 -9
- package/dist/theming/bootScript.d.ts.map +0 -1
- package/dist/theming/bootScript.js +0 -27
- package/dist/theming/bootScript.js.map +0 -1
- package/dist/theming/index.js.map +0 -1
- package/dist/theming/storage.d.ts +0 -5
- package/dist/theming/storage.d.ts.map +0 -1
- package/dist/theming/storage.js +0 -11
- package/dist/theming/storage.js.map +0 -1
- package/dist/wrapped-registry.d.ts +0 -55
- package/dist/wrapped-registry.d.ts.map +0 -1
- package/dist/wrapped-registry.js +0 -160
- package/dist/wrapped-registry.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC7E,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,wCAAwC;IACxC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACjF,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED,0DAA0D;AAC1D,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,QAAQ,CAAC;CAAG;AAE1E,0DAA0D;AAC1D,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAClE,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;;;;GAQG;AACH,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAQzD;AAED,qDAAqD;AACrD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAQjE;AAED,kDAAkD;AAClD,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAkBjF;AAED,6CAA6C;AAC7C,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAcvE;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
4
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
/**
|
|
7
|
+
* A stack of headers that each reveal a panel.
|
|
8
|
+
*
|
|
9
|
+
* The trigger is a real button and the panel is linked to it by the library,
|
|
10
|
+
* so Enter or Space opens the focused item and the header announces its
|
|
11
|
+
* expanded state. By default one item is open at a time; pass `multiple` to
|
|
12
|
+
* allow several. Use an Accordion to reveal a long answer in place, and a
|
|
13
|
+
* Tabs set when the sections are peers rather than a progression.
|
|
14
|
+
*/
|
|
15
|
+
function Accordion({ className, ...props }) {
|
|
16
|
+
return (_jsx(AccordionPrimitive.Root, { "data-slot": "accordion", className: cn('w-full', className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
/** One header-and-panel pair inside an Accordion. */
|
|
19
|
+
function AccordionItem({ className, ...props }) {
|
|
20
|
+
return (_jsx(AccordionPrimitive.Item, { "data-slot": "accordion-item", className: cn('border-b border-border', className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
/** The button that opens and closes its panel. */
|
|
23
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
24
|
+
return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, { "data-slot": "accordion-trigger", className: cn('focus-visible:border-ring focus-visible:ring-ring flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-none', 'transition-[color,box-shadow] duration-fast ease-out hover:underline focus-visible:ring-[3px]', 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [children, _jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-base ease-out data-[panel-open]:rotate-180" })] }) }));
|
|
25
|
+
}
|
|
26
|
+
/** The panel an AccordionTrigger reveals. */
|
|
27
|
+
function AccordionContent({ className, ...props }) {
|
|
28
|
+
return (_jsx(AccordionPrimitive.Panel, { "data-slot": "accordion-content", className: cn('h-(--accordion-panel-height) overflow-hidden text-sm', 'transition-[height] duration-base ease-out data-[starting-style]:h-0 data-[ending-style]:h-0', className), ...props, children: _jsx("div", { className: "pt-0 pb-4", children: props.children }) }));
|
|
29
|
+
}
|
|
30
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* A static callout that carries an important message.
|
|
8
|
+
*
|
|
9
|
+
* Renders a `<div role="alert">`, so it is announced when it enters the
|
|
10
|
+
* document. Compose it from `AlertTitle` and `AlertDescription`, and place a
|
|
11
|
+
* Lucide icon as the first child to add a visual marker.
|
|
12
|
+
*/
|
|
13
|
+
declare function Alert({ className, variant, ...props }: ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react").JSX.Element;
|
|
14
|
+
/** The callout's short heading. */
|
|
15
|
+
declare function AlertTitle({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
16
|
+
/** The callout's supporting sentence. */
|
|
17
|
+
declare function AlertDescription({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
18
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
19
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,QAAA,MAAM,aAAa;;8EAYlB,CAAA;AAED;;;;;;GAMG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,+BAS5D;AAED,mCAAmC;AACnC,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAWjE;AAED,yCAAyC;AACzC,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAWvE;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
const alertVariants = cva('relative grid w-full items-start gap-x-3 gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] [&>svg]:size-4 [&>svg]:translate-y-0.5', {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: 'bg-card text-card-foreground',
|
|
8
|
+
destructive: 'border-destructive/40 text-destructive [&>svg]:text-destructive',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: { variant: 'default' },
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* A static callout that carries an important message.
|
|
15
|
+
*
|
|
16
|
+
* Renders a `<div role="alert">`, so it is announced when it enters the
|
|
17
|
+
* document. Compose it from `AlertTitle` and `AlertDescription`, and place a
|
|
18
|
+
* Lucide icon as the first child to add a visual marker.
|
|
19
|
+
*/
|
|
20
|
+
function Alert({ className, variant, ...props }) {
|
|
21
|
+
return (_jsx("div", { "data-slot": "alert", role: "alert", className: cn(alertVariants({ variant }), className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
/** The callout's short heading. */
|
|
24
|
+
function AlertTitle({ className, ...props }) {
|
|
25
|
+
return (_jsx("div", { "data-slot": "alert-title", className: cn('col-start-2 min-h-4 font-medium tracking-tight', className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
/** The callout's supporting sentence. */
|
|
28
|
+
function AlertDescription({ className, ...props }) {
|
|
29
|
+
return (_jsx("div", { "data-slot": "alert-description", className: cn('text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/** The props the Avatar forwards to its Base UI root. */
|
|
3
|
+
export interface AvatarProps extends ComponentProps<'span'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The props the AvatarImage forwards to Base UI.
|
|
7
|
+
*
|
|
8
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
9
|
+
* crosses the package seam (ticket 07 section 6).
|
|
10
|
+
*/
|
|
11
|
+
export interface AvatarImageProps extends ComponentProps<'img'> {
|
|
12
|
+
/** Called when the image loading status changes. */
|
|
13
|
+
onLoadingStatusChange?: (status: 'idle' | 'loading' | 'loaded' | 'error') => void;
|
|
14
|
+
/** Whether the image stays mounted and loads in place. @defaultValue false */
|
|
15
|
+
keepMounted?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The props the AvatarFallback forwards to Base UI.
|
|
19
|
+
*
|
|
20
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
21
|
+
* crosses the package seam (ticket 07 section 6).
|
|
22
|
+
*/
|
|
23
|
+
export interface AvatarFallbackProps extends ComponentProps<'span'> {
|
|
24
|
+
/** How long to wait before showing the fallback, in milliseconds. @defaultValue 0 */
|
|
25
|
+
delay?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A person or entity's image, with initials as the fallback.
|
|
29
|
+
*
|
|
30
|
+
* Always render an `AvatarFallback`: it covers the moment before the image
|
|
31
|
+
* loads and the case where it never does, so the control is never an empty
|
|
32
|
+
* circle. Give `AvatarImage` a meaningful `alt`, or leave it empty when the
|
|
33
|
+
* adjacent name already identifies the person. Size the root with
|
|
34
|
+
* `className`; the image and fallback fill it.
|
|
35
|
+
*/
|
|
36
|
+
declare function Avatar({ className, ...props }: AvatarProps): import("react").JSX.Element;
|
|
37
|
+
/** The Avatar's image. Renders an `<img>` and reports its loading status. */
|
|
38
|
+
declare function AvatarImage({ className, ...props }: AvatarImageProps): import("react").JSX.Element;
|
|
39
|
+
/**
|
|
40
|
+
* What the Avatar shows when the image is missing or still loading.
|
|
41
|
+
*
|
|
42
|
+
* Typically initials, but any short node works. It is only rendered while the
|
|
43
|
+
* image is unavailable, so it is not read twice by a screen reader.
|
|
44
|
+
*/
|
|
45
|
+
declare function AvatarFallback({ className, ...props }: AvatarFallbackProps): import("react").JSX.Element;
|
|
46
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
47
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,yDAAyD;AACzD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG;AAE9D;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAA;IACjF,8EAA8E;IAC9E,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,MAAM,CAAC;IACjE,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAWnD;AAED,6EAA6E;AAC7E,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQ7D;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAWnE;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
/**
|
|
6
|
+
* A person or entity's image, with initials as the fallback.
|
|
7
|
+
*
|
|
8
|
+
* Always render an `AvatarFallback`: it covers the moment before the image
|
|
9
|
+
* loads and the case where it never does, so the control is never an empty
|
|
10
|
+
* circle. Give `AvatarImage` a meaningful `alt`, or leave it empty when the
|
|
11
|
+
* adjacent name already identifies the person. Size the root with
|
|
12
|
+
* `className`; the image and fallback fill it.
|
|
13
|
+
*/
|
|
14
|
+
function Avatar({ className, ...props }) {
|
|
15
|
+
return (_jsx(AvatarPrimitive.Root, { "data-slot": "avatar", className: cn('relative flex size-10 shrink-0 overflow-hidden rounded-full', className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
/** The Avatar's image. Renders an `<img>` and reports its loading status. */
|
|
18
|
+
function AvatarImage({ className, ...props }) {
|
|
19
|
+
return (_jsx(AvatarPrimitive.Image, { "data-slot": "avatar-image", className: cn('aspect-square size-full object-cover', className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* What the Avatar shows when the image is missing or still loading.
|
|
23
|
+
*
|
|
24
|
+
* Typically initials, but any short node works. It is only rendered while the
|
|
25
|
+
* image is unavailable, so it is not read twice by a screen reader.
|
|
26
|
+
*/
|
|
27
|
+
function AvatarFallback({ className, ...props }) {
|
|
28
|
+
return (_jsx(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", className: cn('bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-xs font-medium', className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
/**
|
|
7
|
+
* A compact status or category label.
|
|
8
|
+
*
|
|
9
|
+
* Renders a `<span>`; `variant` selects the surface treatment and the default
|
|
10
|
+
* is the filled primary style.
|
|
11
|
+
*/
|
|
12
|
+
declare function Badge({ className, variant, ...props }: ComponentProps<'span'> & VariantProps<typeof badgeVariants>): import("react").JSX.Element;
|
|
13
|
+
export { Badge };
|
|
14
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,QAAA,MAAM,aAAa;;8EAelB,CAAA;AAED;;;;;GAKG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,+BAQ7D;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
const badgeVariants = cva('inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors', {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: 'bg-primary text-primary-foreground border-transparent',
|
|
8
|
+
secondary: 'bg-secondary text-secondary-foreground border-transparent',
|
|
9
|
+
destructive: 'bg-destructive text-destructive-foreground border-transparent',
|
|
10
|
+
success: 'bg-success text-success-foreground border-transparent',
|
|
11
|
+
warning: 'bg-warning text-warning-foreground border-transparent',
|
|
12
|
+
outline: 'text-foreground border-border',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: { variant: 'default' },
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* A compact status or category label.
|
|
19
|
+
*
|
|
20
|
+
* Renders a `<span>`; `variant` selects the surface treatment and the default
|
|
21
|
+
* is the filled primary style.
|
|
22
|
+
*/
|
|
23
|
+
function Badge({ className, variant, ...props }) {
|
|
24
|
+
return (_jsx("span", { "data-slot": "badge", className: cn(badgeVariants({ variant }), className), ...props }));
|
|
25
|
+
}
|
|
26
|
+
export { Badge };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The trail of ancestor links that shows where the current page sits.
|
|
4
|
+
*
|
|
5
|
+
* The root is a `<nav>` with an accessible name so the trail is announced as
|
|
6
|
+
* one region rather than as an unexplained list of links.
|
|
7
|
+
*/
|
|
8
|
+
declare function Breadcrumb({ className, ...props }: ComponentProps<'nav'>): import("react").JSX.Element;
|
|
9
|
+
/** The ordered list that holds the trail's items and separators. */
|
|
10
|
+
declare function BreadcrumbList({ className, ...props }: ComponentProps<'ol'>): import("react").JSX.Element;
|
|
11
|
+
/** One step in the trail. Holds a link, the current page, or a separator. */
|
|
12
|
+
declare function BreadcrumbItem({ className, ...props }: ComponentProps<'li'>): import("react").JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* A link to an ancestor page.
|
|
15
|
+
*
|
|
16
|
+
* Renders a native `<a>`; pass `href`. The consumer owns the destination, so a
|
|
17
|
+
* client router's link is composed here rather than baked in.
|
|
18
|
+
*/
|
|
19
|
+
declare function BreadcrumbLink({ className, ...props }: ComponentProps<'a'>): import("react").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* The current page, which is text rather than a link.
|
|
22
|
+
*
|
|
23
|
+
* It carries `aria-current="page"` so assistive technology announces the trail's
|
|
24
|
+
* end instead of reading a dead link.
|
|
25
|
+
*/
|
|
26
|
+
declare function BreadcrumbPage({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* The mark between two steps.
|
|
29
|
+
*
|
|
30
|
+
* Decorative by default, so it is hidden from assistive technology and does not
|
|
31
|
+
* enter the accessible name; pass `children` to replace the chevron.
|
|
32
|
+
*/
|
|
33
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: ComponentProps<'li'>): import("react").JSX.Element;
|
|
34
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, };
|
|
35
|
+
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BASjE;AAED,oEAAoE;AACpE,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,+BAWpE;AAED,6EAA6E;AAC7E,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,+BAQpE;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,+BAWnE;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,+BAStE;AAED;;;;;GAKG;AACH,iBAAS,mBAAmB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,IAAI,CAAC,+BAYtB;AAED,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight } from 'lucide-react';
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
/**
|
|
5
|
+
* The trail of ancestor links that shows where the current page sits.
|
|
6
|
+
*
|
|
7
|
+
* The root is a `<nav>` with an accessible name so the trail is announced as
|
|
8
|
+
* one region rather than as an unexplained list of links.
|
|
9
|
+
*/
|
|
10
|
+
function Breadcrumb({ className, ...props }) {
|
|
11
|
+
return (_jsx("nav", { "aria-label": "Breadcrumb", "data-slot": "breadcrumb", className: cn(className), ...props }));
|
|
12
|
+
}
|
|
13
|
+
/** The ordered list that holds the trail's items and separators. */
|
|
14
|
+
function BreadcrumbList({ className, ...props }) {
|
|
15
|
+
return (_jsx("ol", { "data-slot": "breadcrumb-list", className: cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
/** One step in the trail. Holds a link, the current page, or a separator. */
|
|
18
|
+
function BreadcrumbItem({ className, ...props }) {
|
|
19
|
+
return (_jsx("li", { "data-slot": "breadcrumb-item", className: cn('inline-flex items-center gap-1.5', className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A link to an ancestor page.
|
|
23
|
+
*
|
|
24
|
+
* Renders a native `<a>`; pass `href`. The consumer owns the destination, so a
|
|
25
|
+
* client router's link is composed here rather than baked in.
|
|
26
|
+
*/
|
|
27
|
+
function BreadcrumbLink({ className, ...props }) {
|
|
28
|
+
return (_jsx("a", { "data-slot": "breadcrumb-link", className: cn('hover:text-foreground rounded-sm outline-none transition-colors duration-fast ease-out focus-visible:ring-ring focus-visible:ring-[3px]', className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The current page, which is text rather than a link.
|
|
32
|
+
*
|
|
33
|
+
* It carries `aria-current="page"` so assistive technology announces the trail's
|
|
34
|
+
* end instead of reading a dead link.
|
|
35
|
+
*/
|
|
36
|
+
function BreadcrumbPage({ className, ...props }) {
|
|
37
|
+
return (_jsx("span", { "data-slot": "breadcrumb-page", "aria-current": "page", className: cn('text-foreground font-normal', className), ...props }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The mark between two steps.
|
|
41
|
+
*
|
|
42
|
+
* Decorative by default, so it is hidden from assistive technology and does not
|
|
43
|
+
* enter the accessible name; pass `children` to replace the chevron.
|
|
44
|
+
*/
|
|
45
|
+
function BreadcrumbSeparator({ children, className, ...props }) {
|
|
46
|
+
return (_jsx("li", { "data-slot": "breadcrumb-separator", role: "presentation", "aria-hidden": "true", className: cn('[&>svg]:size-3.5', className), ...props, children: children ?? _jsx(ChevronRight, {}) }));
|
|
47
|
+
}
|
|
48
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* The primary action control.
|
|
9
|
+
*
|
|
10
|
+
* Renders a native `<button>` and takes the standard React button props plus
|
|
11
|
+
* `variant` and `size`. The coarse-pointer media query grows the target to 44px
|
|
12
|
+
* on touch input without changing the desktop metrics.
|
|
13
|
+
*/
|
|
14
|
+
declare function Button({ className, variant, size, ...props }: ComponentProps<'button'> & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
|
|
15
|
+
export { Button };
|
|
16
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,QAAA,MAAM,cAAc;;;8EAsDnB,CAAA;AAED;;;;;;GAMG;AACH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+BAQhE;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
const buttonVariants = cva(
|
|
5
|
+
// The focus ring is `ring-ring` at full strength, not shadcn's stock
|
|
6
|
+
// `focus-visible:ring-ring/50`. The token build pins `--ring` to a step that
|
|
7
|
+
// clears 3:1 against the surface, and half alpha throws that away: 50% of this
|
|
8
|
+
// ring composites to between 1.14:1 and 2.74:1 against every surface in all
|
|
9
|
+
// six themes and clears 3:1 in none of them, which fails WCAG 1.4.11 on the one
|
|
10
|
+
// indicator a keyboard user has. The stock value is kept here deliberately as a
|
|
11
|
+
// deviation from upstream: a consumer's button must not fail the threshold the
|
|
12
|
+
// ring exists to meet.
|
|
13
|
+
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium outline-none transition-[color,box-shadow,background-color] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:border-destructive", {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
17
|
+
destructive: 'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90',
|
|
18
|
+
outline: 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground',
|
|
19
|
+
secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
20
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
21
|
+
// `primary` is a surface token, not a text token: in the pastel themes it
|
|
22
|
+
// compiles to a light tint (e.g. #ec88a0) that fails 4.5:1 on the page
|
|
23
|
+
// background. Link text uses the foreground and keeps the underline as its
|
|
24
|
+
// affordance, so emphasis comes from weight rather than a failing colour.
|
|
25
|
+
link: 'text-foreground underline-offset-4 hover:underline',
|
|
26
|
+
},
|
|
27
|
+
// Touch targets are enlarged by input method, not by viewport. The
|
|
28
|
+
// metrics below are the designed desktop sizes and stay untouched for
|
|
29
|
+
// mouse and trackpad; only a coarse pointer — finger or stylus — gets
|
|
30
|
+
// the 44px iOS/Android HIG target. `pointer-coarse:` compiles to
|
|
31
|
+
// `@media (pointer: coarse)` inside `@layer utilities`, which lands
|
|
32
|
+
// after the base utility in the cascade, so it wins without needing
|
|
33
|
+
// `!important` or a specificity fight.
|
|
34
|
+
//
|
|
35
|
+
// `min-w-11` is what makes the second axis safe: an icon-only `default`
|
|
36
|
+
// is `size-4` plus `px-3` = 40px wide and an icon-only `sm` is `size-4`
|
|
37
|
+
// plus `px-2.5` = 36px, so growing the height alone would still leave
|
|
38
|
+
// both under 44px across. The coarse padding step on `default` lifts the
|
|
39
|
+
// common cases clear of the floor outright, and `min-w-11` backstops
|
|
40
|
+
// whatever content a consumer passes.
|
|
41
|
+
size: {
|
|
42
|
+
default: 'h-9 px-4 py-2 has-[>svg]:px-3 pointer-coarse:h-11 pointer-coarse:min-w-11 pointer-coarse:px-5 pointer-coarse:has-[>svg]:px-4',
|
|
43
|
+
sm: 'h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5 pointer-coarse:h-11 pointer-coarse:min-w-11',
|
|
44
|
+
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4 pointer-coarse:h-11',
|
|
45
|
+
icon: 'size-9 pointer-coarse:size-11',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
variant: 'default',
|
|
50
|
+
size: 'default',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* The primary action control.
|
|
55
|
+
*
|
|
56
|
+
* Renders a native `<button>` and takes the standard React button props plus
|
|
57
|
+
* `variant` and `size`. The coarse-pointer media query grows the target to 44px
|
|
58
|
+
* on touch input without changing the desktop metrics.
|
|
59
|
+
*/
|
|
60
|
+
function Button({ className, variant, size, ...props }) {
|
|
61
|
+
return (_jsx("button", { "data-slot": "button", className: cn(buttonVariants({ variant, size, className })), ...props }));
|
|
62
|
+
}
|
|
63
|
+
export { Button };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A bordered surface for a small group of related content.
|
|
4
|
+
*
|
|
5
|
+
* Compose it from `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`
|
|
6
|
+
* and `CardFooter`. Those parts ship from this module rather than as separate
|
|
7
|
+
* subpaths.
|
|
8
|
+
*/
|
|
9
|
+
declare function Card({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
10
|
+
declare function CardHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
|
+
declare function CardTitle({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
12
|
+
declare function CardDescription({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
13
|
+
declare function CardContent({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
14
|
+
declare function CardFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
15
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter };
|
|
16
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;;GAMG;AACH,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAW3D;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAWjE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQhE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQtE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAElE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQjE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/utils';
|
|
3
|
+
/**
|
|
4
|
+
* A bordered surface for a small group of related content.
|
|
5
|
+
*
|
|
6
|
+
* Compose it from `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`
|
|
7
|
+
* and `CardFooter`. Those parts ship from this module rather than as separate
|
|
8
|
+
* subpaths.
|
|
9
|
+
*/
|
|
10
|
+
function Card({ className, ...props }) {
|
|
11
|
+
return (_jsx("div", { "data-slot": "card", className: cn('bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm', className), ...props }));
|
|
12
|
+
}
|
|
13
|
+
function CardHeader({ className, ...props }) {
|
|
14
|
+
return (_jsx("div", { "data-slot": "card-header", className: cn('@container/card-header grid auto-rows-min items-start gap-1.5 px-6', className), ...props }));
|
|
15
|
+
}
|
|
16
|
+
function CardTitle({ className, ...props }) {
|
|
17
|
+
return (_jsx("div", { "data-slot": "card-title", className: cn('font-semibold leading-none', className), ...props }));
|
|
18
|
+
}
|
|
19
|
+
function CardDescription({ className, ...props }) {
|
|
20
|
+
return (_jsx("div", { "data-slot": "card-description", className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function CardContent({ className, ...props }) {
|
|
23
|
+
return _jsx("div", { "data-slot": "card-content", className: cn('px-6', className), ...props });
|
|
24
|
+
}
|
|
25
|
+
function CardFooter({ className, ...props }) {
|
|
26
|
+
return (_jsx("div", { "data-slot": "card-footer", className: cn('flex items-center px-6', className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Checkbox forwards to its Base UI root.
|
|
4
|
+
*
|
|
5
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
6
|
+
* crosses the package seam (ticket 07 section 6).
|
|
7
|
+
*/
|
|
8
|
+
export interface CheckboxProps extends Omit<ComponentProps<'span'>, 'onChange'> {
|
|
9
|
+
/** The control's accessible name when no visible label is used. */
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
/** The controlled ticked state. */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** The initially ticked state, for an uncontrolled checkbox. */
|
|
14
|
+
defaultChecked?: boolean;
|
|
15
|
+
/** Whether the checkbox shows a mixed state: neither ticked nor unticked. */
|
|
16
|
+
indeterminate?: boolean;
|
|
17
|
+
/** Whether the control ignores user interaction. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Whether the value must be ticked before the form submits. */
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
/** Whether the value must be ticked before the form submits. */
|
|
22
|
+
required?: boolean;
|
|
23
|
+
/** The form field name submitted with the form. */
|
|
24
|
+
name?: string;
|
|
25
|
+
/** The value submitted when the checkbox is ticked. */
|
|
26
|
+
value?: string;
|
|
27
|
+
/** Identifies the form that owns the hidden input. */
|
|
28
|
+
form?: string;
|
|
29
|
+
/** Called when the ticked state changes. */
|
|
30
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A ticked or unticked choice, with an optional mixed state.
|
|
34
|
+
*
|
|
35
|
+
* The Checkbox renders as a span with a hidden native input beside it, so it
|
|
36
|
+
* submits and validates like a checkbox while accepting Prism's styling. Space
|
|
37
|
+
* toggles the focused control, and the indeterminate state is announced as
|
|
38
|
+
* `mixed` to assistive technology. Pair it with a `FieldLabel` in a `Field`,
|
|
39
|
+
* and mark it invalid with `aria-invalid` when the value is rejected.
|
|
40
|
+
*/
|
|
41
|
+
declare function Checkbox({ className, indeterminate, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
42
|
+
export { Checkbox };
|
|
43
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7E,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C;AAED;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BA4BtE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
4
|
+
import { CheckIcon, MinusIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
/**
|
|
7
|
+
* A ticked or unticked choice, with an optional mixed state.
|
|
8
|
+
*
|
|
9
|
+
* The Checkbox renders as a span with a hidden native input beside it, so it
|
|
10
|
+
* submits and validates like a checkbox while accepting Prism's styling. Space
|
|
11
|
+
* toggles the focused control, and the indeterminate state is announced as
|
|
12
|
+
* `mixed` to assistive technology. Pair it with a `FieldLabel` in a `Field`,
|
|
13
|
+
* and mark it invalid with `aria-invalid` when the value is rejected.
|
|
14
|
+
*/
|
|
15
|
+
function Checkbox({ className, indeterminate, ...props }) {
|
|
16
|
+
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", indeterminate: indeterminate, className: cn('border-input bg-background text-primary-foreground shadow-xs peer size-4 shrink-0 rounded-sm border outline-none', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'data-[checked]:border-primary data-[checked]:bg-primary data-[indeterminate]:border-primary data-[indeterminate]:bg-primary', 'focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'aria-invalid:border-destructive aria-invalid:ring-destructive/20', 'disabled:cursor-not-allowed disabled:opacity-50', className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "flex items-center justify-center text-current", children: indeterminate ? (_jsx(MinusIcon, { className: "size-3.5" })) : (_jsx(CheckIcon, { className: "size-3.5" })) }) }));
|
|
17
|
+
}
|
|
18
|
+
export { Checkbox };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Dialog root forwards to Base UI.
|
|
4
|
+
*
|
|
5
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
6
|
+
* crosses the package seam (ticket 07 section 6).
|
|
7
|
+
*/
|
|
8
|
+
export interface DialogProps {
|
|
9
|
+
/** The controlled open state. */
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/** The initially open state, for an uncontrolled dialog. */
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
/** Called when the open state changes. */
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
/** Whether the dialog is modal. @defaultValue true */
|
|
16
|
+
modal?: boolean | 'trap-focus';
|
|
17
|
+
/** The trigger and content. */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/** The props DialogTrigger forwards to Base UI. */
|
|
21
|
+
export interface DialogTriggerProps extends ComponentProps<'button'> {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The props DialogContent forwards to Base UI.
|
|
25
|
+
*
|
|
26
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
27
|
+
* crosses the package seam (ticket 07 section 6).
|
|
28
|
+
*/
|
|
29
|
+
export interface DialogContentProps extends ComponentProps<'div'> {
|
|
30
|
+
/**
|
|
31
|
+
* Where the dialog is anchored.
|
|
32
|
+
*
|
|
33
|
+
* `center` is a modal card; `top`, `bottom`, `left` and `right` anchor the
|
|
34
|
+
* panel to an edge as a sheet, which is the old drawer re-expressed.
|
|
35
|
+
* @defaultValue center
|
|
36
|
+
*/
|
|
37
|
+
side?: 'center' | 'top' | 'bottom' | 'left' | 'right';
|
|
38
|
+
/** Whether the built-in close control is rendered. @defaultValue true */
|
|
39
|
+
showCloseButton?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/** The props DialogHeader forwards to a plain container. */
|
|
42
|
+
export interface DialogHeaderProps extends ComponentProps<'div'> {
|
|
43
|
+
}
|
|
44
|
+
/** The props DialogFooter forwards to a plain container. */
|
|
45
|
+
export interface DialogFooterProps extends ComponentProps<'div'> {
|
|
46
|
+
}
|
|
47
|
+
/** The props DialogTitle forwards to Base UI. */
|
|
48
|
+
export interface DialogTitleProps extends ComponentProps<'h2'> {
|
|
49
|
+
}
|
|
50
|
+
/** The props DialogDescription forwards to Base UI. */
|
|
51
|
+
export interface DialogDescriptionProps extends ComponentProps<'p'> {
|
|
52
|
+
}
|
|
53
|
+
/** The props DialogClose forwards to Base UI. */
|
|
54
|
+
export interface DialogCloseProps extends ComponentProps<'button'> {
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A modal surface that interrupts the page.
|
|
58
|
+
*
|
|
59
|
+
* The dialog traps focus while it is open, locks page scroll, closes on
|
|
60
|
+
* Escape and on an outside press, and returns focus to its trigger when it
|
|
61
|
+
* closes. Always give it a `DialogTitle`, which names the dialog for every
|
|
62
|
+
* reader. Use a Dialog for a decision or a short task; for content that is
|
|
63
|
+
* not a task, use a Popover or navigate to a page.
|
|
64
|
+
*/
|
|
65
|
+
declare function Dialog({ ...props }: DialogProps): import("react").JSX.Element;
|
|
66
|
+
/** The element that opens the dialog. */
|
|
67
|
+
declare function DialogTrigger({ className, ...props }: DialogTriggerProps): import("react").JSX.Element;
|
|
68
|
+
/** The dialog panel, its backdrop and its portal. */
|
|
69
|
+
declare function DialogContent({ className, side, showCloseButton, children, ...props }: DialogContentProps): import("react").JSX.Element;
|
|
70
|
+
/** The dialog's heading area, above the body. */
|
|
71
|
+
declare function DialogHeader({ className, ...props }: DialogHeaderProps): import("react").JSX.Element;
|
|
72
|
+
/** The dialog's action area, below the body. */
|
|
73
|
+
declare function DialogFooter({ className, ...props }: DialogFooterProps): import("react").JSX.Element;
|
|
74
|
+
/** The dialog's heading. It names the dialog for assistive technology. */
|
|
75
|
+
declare function DialogTitle({ className, ...props }: DialogTitleProps): import("react").JSX.Element;
|
|
76
|
+
/** A supporting line under the title. */
|
|
77
|
+
declare function DialogDescription({ className, ...props }: DialogDescriptionProps): import("react").JSX.Element;
|
|
78
|
+
/** A control that closes the dialog from inside its content. */
|
|
79
|
+
declare function DialogClose({ className, ...props }: DialogCloseProps): import("react").JSX.Element;
|
|
80
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, };
|
|
81
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,mDAAmD;AACnD,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;CAAG;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC/D;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IACrD,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,4DAA4D;AAC5D,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAEnE,4DAA4D;AAC5D,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAEnE,iDAAiD;AACjD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,IAAI,CAAC;CAAG;AAEjE,uDAAuD;AACvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,GAAG,CAAC;CAAG;AAEtE,iDAAiD;AACjD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,QAAQ,CAAC;CAAG;AAqBrE;;;;;;;;GAQG;AACH,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAExC;AAED,yCAAyC;AACzC,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAcjE;AAED,qDAAqD;AACrD,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAe,EACf,eAAsB,EACtB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAgCpB;AAED,iDAAiD;AACjD,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAQ/D;AAED,gDAAgD;AAChD,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAW/D;AAED,0EAA0E;AAC1E,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQ7D;AAED,yCAAyC;AACzC,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAQzE;AAED,gEAAgE;AAChE,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAc7D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,WAAW,GACZ,CAAA"}
|