@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":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,oDAAoD;AACpD,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IACnE,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAChE,+EAA+E;IAC/E,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,kFAAkF;IAClF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+BAE1C;AAED,0CAA0C;AAC1C,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAcnE;AAED,oCAAoC;AACpC,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,IAAe,EACf,KAAgB,EAChB,UAAc,EACd,WAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,+BA0BrB;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
/**
|
|
6
|
+
* A floating surface opened by a trigger.
|
|
7
|
+
*
|
|
8
|
+
* Use a Popover for content that is richer than a tooltip but not a full
|
|
9
|
+
* screen: a settings form, a filter panel, a small detail view. It is
|
|
10
|
+
* dismissible with Escape and an outside press, and it returns focus to the
|
|
11
|
+
* trigger when it closes. Do not put a required step in a Popover, because an
|
|
12
|
+
* outside press can close it.
|
|
13
|
+
*/
|
|
14
|
+
function Popover({ ...props }) {
|
|
15
|
+
return _jsx(PopoverPrimitive.Root, { ...props });
|
|
16
|
+
}
|
|
17
|
+
/** The element that opens the popover. */
|
|
18
|
+
function PopoverTrigger({ className, ...props }) {
|
|
19
|
+
return (_jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", className: cn('bg-background shadow-xs inline-flex h-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium outline-none', 'transition-[color,box-shadow,background-color] duration-fast ease-out', 'hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px]', 'disabled:pointer-events-none disabled:opacity-50', className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
/** The floating popover surface. */
|
|
22
|
+
function PopoverContent({ className, side = 'bottom', align = 'center', sideOffset = 4, alignOffset = 0, children, ...props }) {
|
|
23
|
+
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Positioner, { side: side, align: align, sideOffset: sideOffset, alignOffset: alignOffset, className: "z-50", children: _jsx(PopoverPrimitive.Popup, { "data-slot": "popover-content", className: cn('bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-none', 'transition-[opacity,transform] duration-fast ease-out', 'data-[starting-style]:scale-95 data-[starting-style]:opacity-0', 'data-[ending-style]:scale-95 data-[ending-style]:opacity-0', className), ...props, children: children }) }) }));
|
|
24
|
+
}
|
|
25
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Progress 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 ProgressProps extends ComponentProps<'div'> {
|
|
9
|
+
/**
|
|
10
|
+
* The current value. Pass `null` for an indeterminate task.
|
|
11
|
+
*
|
|
12
|
+
* There is no default: a progress bar without a value is a claim, so the
|
|
13
|
+
* consumer states where the task is.
|
|
14
|
+
*/
|
|
15
|
+
value: number | null;
|
|
16
|
+
/** The maximum value. @defaultValue 100 */
|
|
17
|
+
max?: number;
|
|
18
|
+
/** The minimum value. @defaultValue 0 */
|
|
19
|
+
min?: number;
|
|
20
|
+
/** Options passed to `Intl.NumberFormat` when the value is rendered. */
|
|
21
|
+
format?: Intl.NumberFormatOptions;
|
|
22
|
+
/** The locale used when formatting the value. */
|
|
23
|
+
locale?: Intl.LocalesArgument;
|
|
24
|
+
/** Returns the text alternative announced for a value. */
|
|
25
|
+
getAriaValueText?: (formattedValue: string, value: number | null) => string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A bar that reports how far a task has progressed.
|
|
29
|
+
*
|
|
30
|
+
* The bar exposes its value, minimum and maximum through ARIA, so a screen
|
|
31
|
+
* reader announces the position rather than the pixels. It is a status, not a
|
|
32
|
+
* control: the reader watches it, and an interrupting task uses an Alert
|
|
33
|
+
* instead. Pass `value={null}` for a task of unknown length, where the bar is
|
|
34
|
+
* announced as indeterminate.
|
|
35
|
+
*/
|
|
36
|
+
declare function Progress({ className, ...props }: ProgressProps): import("react").JSX.Element;
|
|
37
|
+
export { Progress };
|
|
38
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1D;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,wEAAwE;IACxE,MAAM,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;IACjC,iDAAiD;IACjD,MAAM,CAAC,EAAE,IAAI,CAAC,eAAe,CAAA;IAC7B,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAA;CAC5E;AAED;;;;;;;;GAQG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAkBvD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Progress as ProgressPrimitive } from '@base-ui/react/progress';
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
/**
|
|
6
|
+
* A bar that reports how far a task has progressed.
|
|
7
|
+
*
|
|
8
|
+
* The bar exposes its value, minimum and maximum through ARIA, so a screen
|
|
9
|
+
* reader announces the position rather than the pixels. It is a status, not a
|
|
10
|
+
* control: the reader watches it, and an interrupting task uses an Alert
|
|
11
|
+
* instead. Pass `value={null}` for a task of unknown length, where the bar is
|
|
12
|
+
* announced as indeterminate.
|
|
13
|
+
*/
|
|
14
|
+
function Progress({ className, ...props }) {
|
|
15
|
+
return (_jsx(ProgressPrimitive.Root, { "data-slot": "progress", className: cn('flex w-full flex-col gap-2', className), ...props, children: _jsx(ProgressPrimitive.Track, { "data-slot": "progress-track", className: "bg-muted relative h-2 w-full overflow-hidden rounded-full", children: _jsx(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "bg-primary h-full rounded-full transition-[width] duration-base ease-out" }) }) }));
|
|
16
|
+
}
|
|
17
|
+
export { Progress };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the RadioGroup 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 RadioGroupProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
9
|
+
/** The selected item's value, when the group is controlled. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** The item selected initially, for an uncontrolled group. */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/** Called when the selection changes. */
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
/** The form field name submitted with the form. */
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Identifies the form that owns the hidden inputs. */
|
|
18
|
+
form?: string;
|
|
19
|
+
/** Whether every item ignores user interaction. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Whether the user may not change the selection. */
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
/** Whether a value must be chosen before the form submits. */
|
|
24
|
+
required?: boolean;
|
|
25
|
+
/** The group's accessible name when no visible legend is used. */
|
|
26
|
+
'aria-label'?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The props the RadioGroupItem forwards to its Base UI radio.
|
|
30
|
+
*
|
|
31
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
32
|
+
* crosses the package seam (ticket 07 section 6).
|
|
33
|
+
*/
|
|
34
|
+
export interface RadioGroupItemProps extends Omit<ComponentProps<'span'>, 'onChange'> {
|
|
35
|
+
/** The value this item contributes to the group. */
|
|
36
|
+
value: string;
|
|
37
|
+
/** Whether this item ignores user interaction. */
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/** Whether this item must be chosen before the form submits. */
|
|
40
|
+
required?: boolean;
|
|
41
|
+
/** Whether the user may not change this item's selection. */
|
|
42
|
+
readOnly?: boolean;
|
|
43
|
+
/** The item's accessible name when no visible label is used. */
|
|
44
|
+
'aria-label'?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A set of radio items where exactly one may be chosen.
|
|
48
|
+
*
|
|
49
|
+
* The group owns the value and the keyboard model: arrow keys move between
|
|
50
|
+
* items inside the group, while Tab moves into and out of the group as one
|
|
51
|
+
* stop. Always give the group a visible legend or an `aria-label`, and use a
|
|
52
|
+
* RadioGroup rather than a set of checkboxes when the choices are mutually
|
|
53
|
+
* exclusive.
|
|
54
|
+
*/
|
|
55
|
+
declare function RadioGroup({ className, ...props }: RadioGroupProps): import("react").JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* One choice inside a RadioGroup.
|
|
58
|
+
*
|
|
59
|
+
* Renders a circular control with a hidden native radio beside it, so it
|
|
60
|
+
* submits with the form. Space selects the focused item when arrow-key
|
|
61
|
+
* navigation has not already selected it. Put the item beside its
|
|
62
|
+
* `FieldLabel`, and keep the group's name on the RadioGroup itself.
|
|
63
|
+
*/
|
|
64
|
+
declare function RadioGroupItem({ className, value, ...props }: RadioGroupItemProps): import("react").JSX.Element;
|
|
65
|
+
export { RadioGroup, RadioGroupItem };
|
|
66
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC9E,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IACnF,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;;GAQG;AACH,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAQ3D;AAED;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAwB1E;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Radio as RadioPrimitive } from '@base-ui/react/radio';
|
|
4
|
+
import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
|
|
5
|
+
import { CircleIcon } from 'lucide-react';
|
|
6
|
+
import { cn } from '../../lib/utils';
|
|
7
|
+
/**
|
|
8
|
+
* A set of radio items where exactly one may be chosen.
|
|
9
|
+
*
|
|
10
|
+
* The group owns the value and the keyboard model: arrow keys move between
|
|
11
|
+
* items inside the group, while Tab moves into and out of the group as one
|
|
12
|
+
* stop. Always give the group a visible legend or an `aria-label`, and use a
|
|
13
|
+
* RadioGroup rather than a set of checkboxes when the choices are mutually
|
|
14
|
+
* exclusive.
|
|
15
|
+
*/
|
|
16
|
+
function RadioGroup({ className, ...props }) {
|
|
17
|
+
return (_jsx(RadioGroupPrimitive, { "data-slot": "radio-group", className: cn('grid gap-3', className), ...props }));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* One choice inside a RadioGroup.
|
|
21
|
+
*
|
|
22
|
+
* Renders a circular control with a hidden native radio beside it, so it
|
|
23
|
+
* submits with the form. Space selects the focused item when arrow-key
|
|
24
|
+
* navigation has not already selected it. Put the item beside its
|
|
25
|
+
* `FieldLabel`, and keep the group's name on the RadioGroup itself.
|
|
26
|
+
*/
|
|
27
|
+
function RadioGroupItem({ className, value, ...props }) {
|
|
28
|
+
return (_jsx(RadioPrimitive.Root, { value: value, "data-slot": "radio-group-item", className: cn('border-input text-primary shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none', 'transition-[color,box-shadow,border-color] duration-fast ease-out', 'data-[checked]:border-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(RadioPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: _jsx(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) }) }));
|
|
29
|
+
}
|
|
30
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Container primitive. Every block composes its own section from this so vertical
|
|
4
|
+
* rhythm stays consistent across the catalog instead of being re-invented per block.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Section({ className, children, ...props }: React.ComponentProps<'section'>): import("react").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* The six heading levels a block can be composed at.
|
|
9
|
+
*
|
|
10
|
+
* Every block takes a `headingLevel` prop typed with this and forwards it to the
|
|
11
|
+
* one heading it renders, so the surrounding document decides where the block
|
|
12
|
+
* sits in the outline rather than the block deciding for itself. `h2` is the
|
|
13
|
+
* default because a block is composed, not a page.
|
|
14
|
+
*
|
|
15
|
+
* A block rendered where the document *already* owns a heading for the same
|
|
16
|
+
* content passes one level deeper. A catalog card already names the block in its
|
|
17
|
+
* own `h2`, so the copy of the block embedded inside that card passes `h3`: the
|
|
18
|
+
* embedded heading then reads as a child of the card that introduces it instead
|
|
19
|
+
* of as a second, competing sibling. This is a fact about where the block was
|
|
20
|
+
* placed, not about the block, which is why it is a prop and not a default.
|
|
21
|
+
*/
|
|
22
|
+
export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
23
|
+
export declare function SectionHeading({ eyebrow, title, as: Heading, description, align, className, }: {
|
|
24
|
+
eyebrow?: ReactNode;
|
|
25
|
+
title: ReactNode;
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
align?: 'center' | 'left';
|
|
28
|
+
/**
|
|
29
|
+
* Heading level. Defaults to `h2` because blocks compose under a page heading.
|
|
30
|
+
* A page that renders a block as its primary heading passes `as="h1"`; a
|
|
31
|
+
* document with no `h1` gives screen-reader and search engines no top-level
|
|
32
|
+
* entry point.
|
|
33
|
+
*/
|
|
34
|
+
as?: HeadingLevel;
|
|
35
|
+
className?: string;
|
|
36
|
+
}): import("react").JSX.Element;
|
|
37
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/components/ui/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+BAWjC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAElE,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,EAAE,EAAE,OAAc,EAClB,WAAW,EACX,KAAgB,EAChB,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACzB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,YAAY,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,+BAwBA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Container primitive. Every block composes its own section from this so vertical
|
|
5
|
+
* rhythm stays consistent across the catalog instead of being re-invented per block.
|
|
6
|
+
*/
|
|
7
|
+
export function Section({ className, children, ...props }) {
|
|
8
|
+
return (_jsx("section", { className: cn('py-16 sm:py-24', className), ...props, children: _jsx("div", { className: "mx-auto w-full max-w-6xl px-6 lg:px-8", children: children }) }));
|
|
9
|
+
}
|
|
10
|
+
export function SectionHeading({ eyebrow, title, as: Heading = 'h2', description, align = 'center', className, }) {
|
|
11
|
+
return (_jsxs("div", { className: cn('flex flex-col gap-4', align === 'center' ? 'items-center text-center' : 'items-start text-left', className), children: [eyebrow ? (_jsx("span", { className: "text-muted-foreground text-sm font-medium tracking-wide uppercase", children: eyebrow })) : null, _jsx(Heading, { className: "text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }), description ? (_jsx("p", { className: "text-muted-foreground max-w-2xl text-lg text-pretty", children: description })) : null] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Select 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 SelectProps {
|
|
9
|
+
/** The selected value, when the select is controlled. */
|
|
10
|
+
value?: string;
|
|
11
|
+
/** The value selected initially, for an uncontrolled select. */
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/** Called when the selected value changes. */
|
|
14
|
+
onValueChange?: (value: string | null) => void;
|
|
15
|
+
/** The controlled open state of the popup. */
|
|
16
|
+
open?: boolean;
|
|
17
|
+
/** The initially open state of the popup. */
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
/** Called when the popup opens or closes. */
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
/** The form field name submitted with the form. */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Identifies the form that owns the hidden input. */
|
|
24
|
+
form?: string;
|
|
25
|
+
/** Whether a value must be chosen before the form submits. */
|
|
26
|
+
required?: boolean;
|
|
27
|
+
/** Whether the select ignores user interaction. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Whether the user may open the popup but not change the value. */
|
|
30
|
+
readOnly?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The options, keyed by value, so the trigger can render a label before any
|
|
33
|
+
* item has mounted. Without it, `SelectValue` shows the raw value.
|
|
34
|
+
*/
|
|
35
|
+
items?: Record<string, React.ReactNode> | ReadonlyArray<{
|
|
36
|
+
label: React.ReactNode;
|
|
37
|
+
value: string;
|
|
38
|
+
}>;
|
|
39
|
+
/** Converts an item value to the label shown in the trigger. */
|
|
40
|
+
itemToStringLabel?: (value: string) => string;
|
|
41
|
+
/** The trigger and the popup content. */
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
}
|
|
44
|
+
/** The props SelectTrigger forwards to Base UI. */
|
|
45
|
+
export interface SelectTriggerProps extends ComponentProps<'button'> {
|
|
46
|
+
/** The trigger's height. @defaultValue default */
|
|
47
|
+
size?: 'sm' | 'default';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The props SelectValue forwards to Base UI.
|
|
51
|
+
*
|
|
52
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
53
|
+
* crosses the package seam (ticket 07 section 6).
|
|
54
|
+
*/
|
|
55
|
+
export interface SelectValueProps extends Omit<ComponentProps<'span'>, 'children'> {
|
|
56
|
+
/** Shown when no value is selected. */
|
|
57
|
+
placeholder?: React.ReactNode;
|
|
58
|
+
/** Optional render function for the selected value. */
|
|
59
|
+
children?: React.ReactNode | ((value: string | null) => React.ReactNode);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The props SelectContent forwards to Base UI.
|
|
63
|
+
*
|
|
64
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
65
|
+
* crosses the package seam (ticket 07 section 6).
|
|
66
|
+
*/
|
|
67
|
+
export interface SelectContentProps extends ComponentProps<'div'> {
|
|
68
|
+
/** Which side of the trigger the list is placed on. @defaultValue bottom */
|
|
69
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
70
|
+
/** How the list aligns against the trigger. @defaultValue center */
|
|
71
|
+
align?: 'start' | 'center' | 'end';
|
|
72
|
+
/** The distance in pixels between the trigger and the list. @defaultValue 4 */
|
|
73
|
+
sideOffset?: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The props SelectItem forwards to Base UI.
|
|
77
|
+
*
|
|
78
|
+
* Declared here rather than re-exported from Base UI so no upstream type
|
|
79
|
+
* crosses the package seam (ticket 07 section 6).
|
|
80
|
+
*/
|
|
81
|
+
export interface SelectItemProps extends Omit<ComponentProps<'div'>, 'value'> {
|
|
82
|
+
/** The value this option contributes to the select. */
|
|
83
|
+
value: string;
|
|
84
|
+
/** Whether this option ignores user interaction. */
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/** A text label used for keyboard typeahead when the option text differs. */
|
|
87
|
+
label?: string;
|
|
88
|
+
}
|
|
89
|
+
/** The props SelectGroup forwards to Base UI. */
|
|
90
|
+
export interface SelectGroupProps extends ComponentProps<'div'> {
|
|
91
|
+
}
|
|
92
|
+
/** The props SelectLabel forwards to Base UI. */
|
|
93
|
+
export interface SelectLabelProps extends ComponentProps<'div'> {
|
|
94
|
+
}
|
|
95
|
+
/** The props SelectSeparator forwards to Base UI. */
|
|
96
|
+
export interface SelectSeparatorProps extends ComponentProps<'div'> {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* A control for choosing one option from a list that opens on demand.
|
|
100
|
+
*
|
|
101
|
+
* Use a Select when the option set is long enough that a radio group would
|
|
102
|
+
* overwhelm the form, or when only the chosen value needs to stay visible.
|
|
103
|
+
* The trigger is a button with a combobox role, and the popup supports
|
|
104
|
+
* typeahead, arrow-key navigation and Enter to choose. Always pair it with a
|
|
105
|
+
* `FieldLabel`; the selected value shows in the trigger, so the label names
|
|
106
|
+
* the field rather than the choice.
|
|
107
|
+
*/
|
|
108
|
+
declare function Select({ ...props }: SelectProps): import("react").JSX.Element;
|
|
109
|
+
/** The button that shows the selected value and opens the list. */
|
|
110
|
+
declare function SelectTrigger({ className, size, children, ...props }: SelectTriggerProps): import("react").JSX.Element;
|
|
111
|
+
/** The selected value, or a placeholder while none is chosen. */
|
|
112
|
+
declare function SelectValue({ className, ...props }: SelectValueProps): import("react").JSX.Element;
|
|
113
|
+
/** The popup list of options. */
|
|
114
|
+
declare function SelectContent({ className, side, align, sideOffset, children, ...props }: SelectContentProps): import("react").JSX.Element;
|
|
115
|
+
/** One option in the list. */
|
|
116
|
+
declare function SelectItem({ className, children, ...props }: SelectItemProps): import("react").JSX.Element;
|
|
117
|
+
/** A labelled set of related options. */
|
|
118
|
+
declare function SelectGroup({ className, ...props }: SelectGroupProps): import("react").JSX.Element;
|
|
119
|
+
/** The label for a SelectGroup. */
|
|
120
|
+
declare function SelectLabel({ className, ...props }: SelectLabelProps): import("react").JSX.Element;
|
|
121
|
+
/** A rule between groups of options. */
|
|
122
|
+
declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): import("react").JSX.Element;
|
|
123
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, };
|
|
124
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EACF,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,GAC/B,aAAa,CAAC;QAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC5D,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAC7C,yCAAyC;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,mDAAmD;AACnD,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAClE,kDAAkD;IAClD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAChF,uCAAuC;IACvC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACzE;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC/D,4EAA4E;IAC5E,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,oEAAoE;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAC3E,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,iDAAiD;AACjD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAElE,iDAAiD;AACjD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAElE,qDAAqD;AACrD,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAEtE;;;;;;;;;GASG;AACH,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAExC;AAED,mEAAmE;AACnE,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,IAAgB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAsB7F;AAED,iEAAiE;AACjE,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAE7D;AAED,iCAAiC;AACjC,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAe,EACf,KAAgB,EAChB,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAyBpB;AAED,8BAA8B;AAC9B,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAkBrE;AAED,yCAAyC;AACzC,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQ7D;AAED,mCAAmC;AACnC,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAQ7D;AAED,wCAAwC;AACxC,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAQrE;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,GAChB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
4
|
+
import { CheckIcon, ChevronDownIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
/**
|
|
7
|
+
* A control for choosing one option from a list that opens on demand.
|
|
8
|
+
*
|
|
9
|
+
* Use a Select when the option set is long enough that a radio group would
|
|
10
|
+
* overwhelm the form, or when only the chosen value needs to stay visible.
|
|
11
|
+
* The trigger is a button with a combobox role, and the popup supports
|
|
12
|
+
* typeahead, arrow-key navigation and Enter to choose. Always pair it with a
|
|
13
|
+
* `FieldLabel`; the selected value shows in the trigger, so the label names
|
|
14
|
+
* the field rather than the choice.
|
|
15
|
+
*/
|
|
16
|
+
function Select({ ...props }) {
|
|
17
|
+
return _jsx(SelectPrimitive.Root, { ...props });
|
|
18
|
+
}
|
|
19
|
+
/** The button that shows the selected value and opens the list. */
|
|
20
|
+
function SelectTrigger({ className, size = 'default', children, ...props }) {
|
|
21
|
+
return (_jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", className: cn('border-input bg-background shadow-xs flex w-full items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm outline-none', 'transition-[color,box-shadow,border-color] duration-fast ease-out', 'data-[popup-open]:border-ring 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', 'data-[placeholder]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0', size === 'sm' ? 'h-8' : 'h-9', className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { className: "text-muted-foreground", children: _jsx(ChevronDownIcon, { className: "size-4" }) })] }));
|
|
22
|
+
}
|
|
23
|
+
/** The selected value, or a placeholder while none is chosen. */
|
|
24
|
+
function SelectValue({ className, ...props }) {
|
|
25
|
+
return _jsx(SelectPrimitive.Value, { "data-slot": "select-value", className: cn(className), ...props });
|
|
26
|
+
}
|
|
27
|
+
/** The popup list of options. */
|
|
28
|
+
function SelectContent({ className, side = 'bottom', align = 'center', sideOffset = 4, children, ...props }) {
|
|
29
|
+
return (_jsx(SelectPrimitive.Portal, { children: _jsx(SelectPrimitive.Positioner, { side: side, align: align, sideOffset: sideOffset, className: "z-50", children: _jsx(SelectPrimitive.Popup, { "data-slot": "select-content", className: cn('bg-popover text-popover-foreground relative max-h-(--available-height) w-(--anchor-width) min-w-36 overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none', 'transition-[opacity,transform] duration-fast ease-out', 'data-[starting-style]:scale-95 data-[starting-style]:opacity-0', 'data-[ending-style]:scale-95 data-[ending-style]:opacity-0', className), ...props, children: _jsx(SelectPrimitive.List, { children: children }) }) }) }));
|
|
30
|
+
}
|
|
31
|
+
/** One option in the list. */
|
|
32
|
+
function SelectItem({ className, children, ...props }) {
|
|
33
|
+
return (_jsxs(SelectPrimitive.Item, { "data-slot": "select-item", className: cn('focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none', 'data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground', 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [_jsx(SelectPrimitive.ItemIndicator, { className: "absolute right-2 flex size-4 items-center justify-center", children: _jsx(CheckIcon, { className: "size-4" }) }), _jsx(SelectPrimitive.ItemText, { children: children })] }));
|
|
34
|
+
}
|
|
35
|
+
/** A labelled set of related options. */
|
|
36
|
+
function SelectGroup({ className, ...props }) {
|
|
37
|
+
return (_jsx(SelectPrimitive.Group, { "data-slot": "select-group", className: cn(className), ...props }));
|
|
38
|
+
}
|
|
39
|
+
/** The label for a SelectGroup. */
|
|
40
|
+
function SelectLabel({ className, ...props }) {
|
|
41
|
+
return (_jsx(SelectPrimitive.GroupLabel, { "data-slot": "select-label", className: cn('text-muted-foreground px-2 py-1.5 text-xs font-medium', className), ...props }));
|
|
42
|
+
}
|
|
43
|
+
/** A rule between groups of options. */
|
|
44
|
+
function SelectSeparator({ className, ...props }) {
|
|
45
|
+
return (_jsx(SelectPrimitive.Separator, { "data-slot": "select-separator", className: cn('bg-border pointer-events-none -mx-1 my-1 h-px', className), ...props }));
|
|
46
|
+
}
|
|
47
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A hairline rule that divides content.
|
|
4
|
+
*
|
|
5
|
+
* `orientation` is `horizontal` (default) or `vertical`. The rule is decorative
|
|
6
|
+
* by default, so it is hidden from assistive technology; pass
|
|
7
|
+
* `decorative={false}` when the rule expresses a real separation in a set of
|
|
8
|
+
* controls, which turns it into an ARIA separator with the matching
|
|
9
|
+
* orientation.
|
|
10
|
+
*/
|
|
11
|
+
declare function Separator({ className, orientation, decorative, ...props }: ComponentProps<'div'> & {
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
decorative?: boolean;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export { Separator };
|
|
16
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;;;;GAQG;AACH,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAeA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/utils';
|
|
3
|
+
/**
|
|
4
|
+
* A hairline rule that divides content.
|
|
5
|
+
*
|
|
6
|
+
* `orientation` is `horizontal` (default) or `vertical`. The rule is decorative
|
|
7
|
+
* by default, so it is hidden from assistive technology; pass
|
|
8
|
+
* `decorative={false}` when the rule expresses a real separation in a set of
|
|
9
|
+
* controls, which turns it into an ARIA separator with the matching
|
|
10
|
+
* orientation.
|
|
11
|
+
*/
|
|
12
|
+
function Separator({ className, orientation = 'horizontal', decorative = true, ...props }) {
|
|
13
|
+
return (_jsx("div", { "data-slot": "separator", "data-orientation": orientation, role: decorative ? 'none' : 'separator', "aria-orientation": decorative ? undefined : orientation, className: cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
export { Separator };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A placeholder surface that mirrors the shape of content while it loads.
|
|
4
|
+
*
|
|
5
|
+
* It ships without a shimmer on purpose. Prism authors no keyframes, so the
|
|
6
|
+
* placeholder is a static muted block and the shape, not a pulse, is what tells
|
|
7
|
+
* the reader content is coming. Set its size with `className`, which is layout
|
|
8
|
+
* and therefore permitted.
|
|
9
|
+
*/
|
|
10
|
+
declare function Skeleton({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
|
+
export { Skeleton };
|
|
12
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;;;GAOG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAS/D;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../../lib/utils';
|
|
3
|
+
/**
|
|
4
|
+
* A placeholder surface that mirrors the shape of content while it loads.
|
|
5
|
+
*
|
|
6
|
+
* It ships without a shimmer on purpose. Prism authors no keyframes, so the
|
|
7
|
+
* placeholder is a static muted block and the shape, not a pulse, is what tells
|
|
8
|
+
* the reader content is coming. Set its size with `className`, which is layout
|
|
9
|
+
* and therefore permitted.
|
|
10
|
+
*/
|
|
11
|
+
function Skeleton({ className, ...props }) {
|
|
12
|
+
return (_jsx("div", { "data-slot": "skeleton", "aria-hidden": "true", className: cn('bg-muted rounded-md', className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
export { Skeleton };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Slider 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 SliderProps extends Omit<ComponentProps<'div'>, 'onChange' | 'defaultValue'> {
|
|
9
|
+
/** The current value, when the slider is controlled. */
|
|
10
|
+
value?: number;
|
|
11
|
+
/** The value the slider starts at, for an uncontrolled slider. */
|
|
12
|
+
defaultValue?: number;
|
|
13
|
+
/** The minimum allowed value. @defaultValue 0 */
|
|
14
|
+
min?: number;
|
|
15
|
+
/** The maximum allowed value. @defaultValue 100 */
|
|
16
|
+
max?: number;
|
|
17
|
+
/** The granularity the slider steps by. @defaultValue 1 */
|
|
18
|
+
step?: number;
|
|
19
|
+
/** Whether the slider ignores user interaction. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** The axis the slider moves along. @defaultValue horizontal */
|
|
22
|
+
orientation?: 'horizontal' | 'vertical';
|
|
23
|
+
/** The form field name submitted with the form. */
|
|
24
|
+
name?: string;
|
|
25
|
+
/** Identifies the form that owns the hidden input. */
|
|
26
|
+
form?: string;
|
|
27
|
+
/** The slider's accessible name when no visible label is used. */
|
|
28
|
+
'aria-label'?: string;
|
|
29
|
+
/** Called as the value changes. */
|
|
30
|
+
onValueChange?: (value: number) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A control for choosing a number along a range.
|
|
34
|
+
*
|
|
35
|
+
* The slider renders a real range input beside the styled track, so it is
|
|
36
|
+
* reachable by Tab and moved by arrow keys, with Home and End jumping to the
|
|
37
|
+
* ends. Give it an `aria-label` or a visible label. Use a Slider for a value
|
|
38
|
+
* that is approximate and continuous; when the exact number matters, use an
|
|
39
|
+
* Input of type number.
|
|
40
|
+
*/
|
|
41
|
+
declare function Slider({ className, 'aria-label': ariaLabel, ...props }: SliderProps): import("react").JSX.Element;
|
|
42
|
+
export { Slider };
|
|
43
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IAC3F,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iDAAiD;IACjD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAED;;;;;;;;GAQG;AACH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,WAAW,+BA4Bb;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
/**
|
|
6
|
+
* A control for choosing a number along a range.
|
|
7
|
+
*
|
|
8
|
+
* The slider renders a real range input beside the styled track, so it is
|
|
9
|
+
* reachable by Tab and moved by arrow keys, with Home and End jumping to the
|
|
10
|
+
* ends. Give it an `aria-label` or a visible label. Use a Slider for a value
|
|
11
|
+
* that is approximate and continuous; when the exact number matters, use an
|
|
12
|
+
* Input of type number.
|
|
13
|
+
*/
|
|
14
|
+
function Slider({ className, 'aria-label': ariaLabel, ...props }) {
|
|
15
|
+
return (_jsx(SliderPrimitive.Root, { "data-slot": "slider", className: cn('relative flex w-full touch-none items-center select-none', 'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', 'data-[disabled]:opacity-50', className), ...props, children: _jsxs(SliderPrimitive.Control, { className: "flex w-full items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", children: [_jsx(SliderPrimitive.Track, { className: "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5", children: _jsx(SliderPrimitive.Indicator, { className: "bg-primary absolute rounded-full data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full" }) }), _jsx(SliderPrimitive.Thumb, { "aria-label": ariaLabel, className: cn('border-primary bg-background shadow-xs ring-ring/50 block size-4 shrink-0 rounded-full border outline-none', 'transition-[color,box-shadow] duration-fast ease-out', 'hover:ring-4 focus-visible:ring-4', 'data-[disabled]:pointer-events-none') })] }) }));
|
|
16
|
+
}
|
|
17
|
+
export { Slider };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The props the Switch 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 SwitchProps extends Omit<ComponentProps<'span'>, 'onChange'> {
|
|
9
|
+
/** The control's accessible name when no visible label is used. */
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
/** The controlled active state. */
|
|
12
|
+
checked?: boolean;
|
|
13
|
+
/** The initially active state, for an uncontrolled switch. */
|
|
14
|
+
defaultChecked?: boolean;
|
|
15
|
+
/** Whether the control ignores user interaction. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Whether the user may not change the state. */
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/** Whether the state must be active before the form submits. */
|
|
20
|
+
required?: boolean;
|
|
21
|
+
/** The form field name submitted with the form. */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** The value submitted when the switch is on. */
|
|
24
|
+
value?: string;
|
|
25
|
+
/** The value submitted when the switch is off. */
|
|
26
|
+
uncheckedValue?: string;
|
|
27
|
+
/** Identifies the form that owns the hidden input. */
|
|
28
|
+
form?: string;
|
|
29
|
+
/** Called when the active state changes. */
|
|
30
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A binary control that takes effect immediately.
|
|
34
|
+
*
|
|
35
|
+
* Use a Switch when flipping it applies the change at once, without a submit
|
|
36
|
+
* step: enabling notifications, turning a feature on. The control renders a
|
|
37
|
+
* hidden native input, so it submits with a form, and Space toggles it while
|
|
38
|
+
* focused. When the change needs an explicit save, use a Checkbox instead.
|
|
39
|
+
*/
|
|
40
|
+
declare function Switch({ className, ...props }: SwitchProps): import("react").JSX.Element;
|
|
41
|
+
export { Switch };
|
|
42
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/ui/switch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC3E,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C;AAED;;;;;;;GAOG;AACH,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,+BAyBnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|