@fairgarden/design 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +86 -0
- package/components/Accordion/Accordion.d.ts +68 -0
- package/components/Accordion/Accordion.d.ts.map +1 -0
- package/components/Accordion/Accordion.js +95 -0
- package/components/Accordion/Accordion.js.map +1 -0
- package/components/Accordion/accordion.module.css +248 -0
- package/components/Accordion/index.d.ts +2 -0
- package/components/Accordion/index.d.ts.map +1 -0
- package/components/Accordion/index.js +2 -0
- package/components/Accordion/index.js.map +1 -0
- package/components/Alert/Alert.d.ts +38 -0
- package/components/Alert/Alert.d.ts.map +1 -0
- package/components/Alert/Alert.js +79 -0
- package/components/Alert/Alert.js.map +1 -0
- package/components/Alert/alert.module.css +99 -0
- package/components/Alert/index.d.ts +2 -0
- package/components/Alert/index.d.ts.map +1 -0
- package/components/Alert/index.js +2 -0
- package/components/Alert/index.js.map +1 -0
- package/components/AlertDialog/AlertDialog.d.ts +71 -0
- package/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/components/AlertDialog/AlertDialog.js +94 -0
- package/components/AlertDialog/AlertDialog.js.map +1 -0
- package/components/AlertDialog/alert-dialog.module.css +53 -0
- package/components/AlertDialog/index.d.ts +2 -0
- package/components/AlertDialog/index.d.ts.map +1 -0
- package/components/AlertDialog/index.js +2 -0
- package/components/AlertDialog/index.js.map +1 -0
- package/components/AnnouncementBar/AnnouncementBar.d.ts +116 -0
- package/components/AnnouncementBar/AnnouncementBar.d.ts.map +1 -0
- package/components/AnnouncementBar/AnnouncementBar.js +215 -0
- package/components/AnnouncementBar/AnnouncementBar.js.map +1 -0
- package/components/AnnouncementBar/announcement-bar.module.css +271 -0
- package/components/AnnouncementBar/index.d.ts +2 -0
- package/components/AnnouncementBar/index.d.ts.map +1 -0
- package/components/AnnouncementBar/index.js +2 -0
- package/components/AnnouncementBar/index.js.map +1 -0
- package/components/Autocomplete/Autocomplete.d.ts +67 -0
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/components/Autocomplete/Autocomplete.js +116 -0
- package/components/Autocomplete/Autocomplete.js.map +1 -0
- package/components/Autocomplete/autocomplete.module.css +428 -0
- package/components/Autocomplete/index.d.ts +2 -0
- package/components/Autocomplete/index.d.ts.map +1 -0
- package/components/Autocomplete/index.js +2 -0
- package/components/Autocomplete/index.js.map +1 -0
- package/components/Avatar/Avatar.d.ts +97 -0
- package/components/Avatar/Avatar.d.ts.map +1 -0
- package/components/Avatar/Avatar.js +154 -0
- package/components/Avatar/Avatar.js.map +1 -0
- package/components/Avatar/avatar-group.module.css +72 -0
- package/components/Avatar/avatar.module.css +180 -0
- package/components/Avatar/index.d.ts +2 -0
- package/components/Avatar/index.d.ts.map +1 -0
- package/components/Avatar/index.js +2 -0
- package/components/Avatar/index.js.map +1 -0
- package/components/Badge/Badge.d.ts +67 -0
- package/components/Badge/Badge.d.ts.map +1 -0
- package/components/Badge/Badge.js +118 -0
- package/components/Badge/Badge.js.map +1 -0
- package/components/Badge/badge.module.css +134 -0
- package/components/Badge/index.d.ts +2 -0
- package/components/Badge/index.d.ts.map +1 -0
- package/components/Badge/index.js +2 -0
- package/components/Badge/index.js.map +1 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +83 -0
- package/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/components/Breadcrumb/Breadcrumb.js +183 -0
- package/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/components/Breadcrumb/breadcrumb.module.css +413 -0
- package/components/Breadcrumb/index.d.ts +2 -0
- package/components/Breadcrumb/index.d.ts.map +1 -0
- package/components/Breadcrumb/index.js +2 -0
- package/components/Breadcrumb/index.js.map +1 -0
- package/components/Button/Button.d.ts +97 -0
- package/components/Button/Button.d.ts.map +1 -0
- package/components/Button/Button.js +127 -0
- package/components/Button/Button.js.map +1 -0
- package/components/Button/button.module.css +390 -0
- package/components/Button/index.d.ts +2 -0
- package/components/Button/index.d.ts.map +1 -0
- package/components/Button/index.js +2 -0
- package/components/Button/index.js.map +1 -0
- package/components/CTABlock/CTABlock.d.ts +117 -0
- package/components/CTABlock/CTABlock.d.ts.map +1 -0
- package/components/CTABlock/CTABlock.js +125 -0
- package/components/CTABlock/CTABlock.js.map +1 -0
- package/components/CTABlock/cta-block.module.css +358 -0
- package/components/CTABlock/index.d.ts +2 -0
- package/components/CTABlock/index.d.ts.map +1 -0
- package/components/CTABlock/index.js +2 -0
- package/components/CTABlock/index.js.map +1 -0
- package/components/Card/Card.d.ts +137 -0
- package/components/Card/Card.d.ts.map +1 -0
- package/components/Card/Card.js +239 -0
- package/components/Card/Card.js.map +1 -0
- package/components/Card/card.module.css +479 -0
- package/components/Card/index.d.ts +2 -0
- package/components/Card/index.d.ts.map +1 -0
- package/components/Card/index.js +2 -0
- package/components/Card/index.js.map +1 -0
- package/components/CardGrid/CardGrid.d.ts +99 -0
- package/components/CardGrid/CardGrid.d.ts.map +1 -0
- package/components/CardGrid/CardGrid.js +176 -0
- package/components/CardGrid/CardGrid.js.map +1 -0
- package/components/CardGrid/card-grid.module.css +187 -0
- package/components/CardGrid/index.d.ts +2 -0
- package/components/CardGrid/index.d.ts.map +1 -0
- package/components/CardGrid/index.js +2 -0
- package/components/CardGrid/index.js.map +1 -0
- package/components/Carousel/Carousel.d.ts +98 -0
- package/components/Carousel/Carousel.d.ts.map +1 -0
- package/components/Carousel/Carousel.js +316 -0
- package/components/Carousel/Carousel.js.map +1 -0
- package/components/Carousel/carousel.module.css +236 -0
- package/components/Carousel/index.d.ts +2 -0
- package/components/Carousel/index.d.ts.map +1 -0
- package/components/Carousel/index.js +2 -0
- package/components/Carousel/index.js.map +1 -0
- package/components/Chart/Chart.d.ts +135 -0
- package/components/Chart/Chart.d.ts.map +1 -0
- package/components/Chart/Chart.js +453 -0
- package/components/Chart/Chart.js.map +1 -0
- package/components/Chart/chart.module.css +376 -0
- package/components/Chart/index.d.ts +2 -0
- package/components/Chart/index.d.ts.map +1 -0
- package/components/Chart/index.js +2 -0
- package/components/Chart/index.js.map +1 -0
- package/components/Checkbox/Checkbox.d.ts +66 -0
- package/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/components/Checkbox/Checkbox.js +91 -0
- package/components/Checkbox/Checkbox.js.map +1 -0
- package/components/Checkbox/checkbox.module.css +388 -0
- package/components/Checkbox/index.d.ts +2 -0
- package/components/Checkbox/index.d.ts.map +1 -0
- package/components/Checkbox/index.js +2 -0
- package/components/Checkbox/index.js.map +1 -0
- package/components/CheckboxGroup/CheckboxGroup.d.ts +39 -0
- package/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/components/CheckboxGroup/CheckboxGroup.js +63 -0
- package/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/components/CheckboxGroup/checkbox-group.module.css +52 -0
- package/components/CheckboxGroup/index.d.ts +2 -0
- package/components/CheckboxGroup/index.d.ts.map +1 -0
- package/components/CheckboxGroup/index.js +2 -0
- package/components/CheckboxGroup/index.js.map +1 -0
- package/components/Chip/Chip.d.ts +58 -0
- package/components/Chip/Chip.d.ts.map +1 -0
- package/components/Chip/Chip.js +94 -0
- package/components/Chip/Chip.js.map +1 -0
- package/components/Chip/chip.module.css +171 -0
- package/components/Chip/index.d.ts +2 -0
- package/components/Chip/index.d.ts.map +1 -0
- package/components/Chip/index.js +2 -0
- package/components/Chip/index.js.map +1 -0
- package/components/Collapsible/Collapsible.d.ts +80 -0
- package/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/components/Collapsible/Collapsible.js +112 -0
- package/components/Collapsible/Collapsible.js.map +1 -0
- package/components/Collapsible/collapsible.module.css +214 -0
- package/components/Collapsible/index.d.ts +2 -0
- package/components/Collapsible/index.d.ts.map +1 -0
- package/components/Collapsible/index.js +2 -0
- package/components/Collapsible/index.js.map +1 -0
- package/components/Combobox/Combobox.d.ts +86 -0
- package/components/Combobox/Combobox.d.ts.map +1 -0
- package/components/Combobox/Combobox.js +168 -0
- package/components/Combobox/Combobox.js.map +1 -0
- package/components/Combobox/combobox.module.css +501 -0
- package/components/Combobox/index.d.ts +2 -0
- package/components/Combobox/index.d.ts.map +1 -0
- package/components/Combobox/index.js +2 -0
- package/components/Combobox/index.js.map +1 -0
- package/components/ContextMenu/ContextMenu.d.ts +47 -0
- package/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/components/ContextMenu/ContextMenu.js +50 -0
- package/components/ContextMenu/ContextMenu.js.map +1 -0
- package/components/ContextMenu/index.d.ts +2 -0
- package/components/ContextMenu/index.d.ts.map +1 -0
- package/components/ContextMenu/index.js +2 -0
- package/components/ContextMenu/index.js.map +1 -0
- package/components/Dialog/Dialog.d.ts +122 -0
- package/components/Dialog/Dialog.d.ts.map +1 -0
- package/components/Dialog/Dialog.js +240 -0
- package/components/Dialog/Dialog.js.map +1 -0
- package/components/Dialog/dialog.module.css +257 -0
- package/components/Dialog/index.d.ts +2 -0
- package/components/Dialog/index.d.ts.map +1 -0
- package/components/Dialog/index.js +2 -0
- package/components/Dialog/index.js.map +1 -0
- package/components/EmptyState/EmptyState.d.ts +88 -0
- package/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/components/EmptyState/EmptyState.js +161 -0
- package/components/EmptyState/EmptyState.js.map +1 -0
- package/components/EmptyState/empty-state.module.css +244 -0
- package/components/EmptyState/index.d.ts +2 -0
- package/components/EmptyState/index.d.ts.map +1 -0
- package/components/EmptyState/index.js +2 -0
- package/components/EmptyState/index.js.map +1 -0
- package/components/FAQ/FAQ.d.ts +90 -0
- package/components/FAQ/FAQ.d.ts.map +1 -0
- package/components/FAQ/FAQ.js +146 -0
- package/components/FAQ/FAQ.js.map +1 -0
- package/components/FAQ/faq.module.css +277 -0
- package/components/FAQ/index.d.ts +2 -0
- package/components/FAQ/index.d.ts.map +1 -0
- package/components/FAQ/index.js +2 -0
- package/components/FAQ/index.js.map +1 -0
- package/components/FeatureGrid/FeatureGrid.d.ts +108 -0
- package/components/FeatureGrid/FeatureGrid.d.ts.map +1 -0
- package/components/FeatureGrid/FeatureGrid.js +218 -0
- package/components/FeatureGrid/FeatureGrid.js.map +1 -0
- package/components/FeatureGrid/feature-grid.module.css +358 -0
- package/components/FeatureGrid/index.d.ts +2 -0
- package/components/FeatureGrid/index.d.ts.map +1 -0
- package/components/FeatureGrid/index.js +2 -0
- package/components/FeatureGrid/index.js.map +1 -0
- package/components/Field/Field.d.ts +70 -0
- package/components/Field/Field.d.ts.map +1 -0
- package/components/Field/Field.js +103 -0
- package/components/Field/Field.js.map +1 -0
- package/components/Field/field.module.css +114 -0
- package/components/Field/index.d.ts +2 -0
- package/components/Field/index.d.ts.map +1 -0
- package/components/Field/index.js +2 -0
- package/components/Field/index.js.map +1 -0
- package/components/Fieldset/Fieldset.d.ts +48 -0
- package/components/Fieldset/Fieldset.d.ts.map +1 -0
- package/components/Fieldset/Fieldset.js +80 -0
- package/components/Fieldset/Fieldset.js.map +1 -0
- package/components/Fieldset/fieldset.module.css +167 -0
- package/components/Fieldset/index.d.ts +2 -0
- package/components/Fieldset/index.d.ts.map +1 -0
- package/components/Fieldset/index.js +2 -0
- package/components/Fieldset/index.js.map +1 -0
- package/components/Figure/Figure.d.ts +72 -0
- package/components/Figure/Figure.d.ts.map +1 -0
- package/components/Figure/Figure.js +122 -0
- package/components/Figure/Figure.js.map +1 -0
- package/components/Figure/figure.module.css +162 -0
- package/components/Figure/index.d.ts +2 -0
- package/components/Figure/index.d.ts.map +1 -0
- package/components/Figure/index.js +2 -0
- package/components/Figure/index.js.map +1 -0
- package/components/Footer/Footer.d.ts +154 -0
- package/components/Footer/Footer.d.ts.map +1 -0
- package/components/Footer/Footer.js +253 -0
- package/components/Footer/Footer.js.map +1 -0
- package/components/Footer/footer.module.css +683 -0
- package/components/Footer/index.d.ts +2 -0
- package/components/Footer/index.d.ts.map +1 -0
- package/components/Footer/index.js +2 -0
- package/components/Footer/index.js.map +1 -0
- package/components/Form/Form.d.ts +69 -0
- package/components/Form/Form.d.ts.map +1 -0
- package/components/Form/Form.js +90 -0
- package/components/Form/Form.js.map +1 -0
- package/components/Form/form.module.css +123 -0
- package/components/Form/index.d.ts +2 -0
- package/components/Form/index.d.ts.map +1 -0
- package/components/Form/index.js +2 -0
- package/components/Form/index.js.map +1 -0
- package/components/Ground/Ground.d.ts +105 -0
- package/components/Ground/Ground.d.ts.map +1 -0
- package/components/Ground/Ground.js +98 -0
- package/components/Ground/Ground.js.map +1 -0
- package/components/Ground/ground.module.css +84 -0
- package/components/Ground/index.d.ts +2 -0
- package/components/Ground/index.d.ts.map +1 -0
- package/components/Ground/index.js +2 -0
- package/components/Ground/index.js.map +1 -0
- package/components/Hero/Hero.d.ts +214 -0
- package/components/Hero/Hero.d.ts.map +1 -0
- package/components/Hero/Hero.js +216 -0
- package/components/Hero/Hero.js.map +1 -0
- package/components/Hero/hero.module.css +766 -0
- package/components/Hero/index.d.ts +2 -0
- package/components/Hero/index.d.ts.map +1 -0
- package/components/Hero/index.js +2 -0
- package/components/Hero/index.js.map +1 -0
- package/components/Icon/Icon.d.ts +49 -0
- package/components/Icon/Icon.d.ts.map +1 -0
- package/components/Icon/Icon.js +54 -0
- package/components/Icon/Icon.js.map +1 -0
- package/components/Icon/icon.module.css +69 -0
- package/components/Icon/iconHost.d.ts +9 -0
- package/components/Icon/iconHost.d.ts.map +1 -0
- package/components/Icon/iconHost.js +10 -0
- package/components/Icon/iconHost.js.map +1 -0
- package/components/Icon/index.d.ts +3 -0
- package/components/Icon/index.d.ts.map +1 -0
- package/components/Icon/index.js +3 -0
- package/components/Icon/index.js.map +1 -0
- package/components/IndexRows/IndexRows.d.ts +134 -0
- package/components/IndexRows/IndexRows.d.ts.map +1 -0
- package/components/IndexRows/IndexRows.js +229 -0
- package/components/IndexRows/IndexRows.js.map +1 -0
- package/components/IndexRows/index-rows.module.css +460 -0
- package/components/IndexRows/index.d.ts +2 -0
- package/components/IndexRows/index.d.ts.map +1 -0
- package/components/IndexRows/index.js +2 -0
- package/components/IndexRows/index.js.map +1 -0
- package/components/Input/Input.d.ts +154 -0
- package/components/Input/Input.d.ts.map +1 -0
- package/components/Input/Input.js +186 -0
- package/components/Input/Input.js.map +1 -0
- package/components/Input/index.d.ts +2 -0
- package/components/Input/index.d.ts.map +1 -0
- package/components/Input/index.js +2 -0
- package/components/Input/index.js.map +1 -0
- package/components/Input/input.module.css +394 -0
- package/components/Link/Link.d.ts +86 -0
- package/components/Link/Link.d.ts.map +1 -0
- package/components/Link/Link.js +140 -0
- package/components/Link/Link.js.map +1 -0
- package/components/Link/index.d.ts +2 -0
- package/components/Link/index.d.ts.map +1 -0
- package/components/Link/index.js +2 -0
- package/components/Link/index.js.map +1 -0
- package/components/Link/link.module.css +330 -0
- package/components/Map/Map.d.ts +192 -0
- package/components/Map/Map.d.ts.map +1 -0
- package/components/Map/Map.js +500 -0
- package/components/Map/Map.js.map +1 -0
- package/components/Map/MapCanvas.d.ts +29 -0
- package/components/Map/MapCanvas.d.ts.map +1 -0
- package/components/Map/MapCanvas.js +295 -0
- package/components/Map/MapCanvas.js.map +1 -0
- package/components/Map/index.d.ts +2 -0
- package/components/Map/index.d.ts.map +1 -0
- package/components/Map/index.js +2 -0
- package/components/Map/index.js.map +1 -0
- package/components/Map/map.module.css +501 -0
- package/components/Map/mapStyle.d.ts +72 -0
- package/components/Map/mapStyle.d.ts.map +1 -0
- package/components/Map/mapStyle.js +441 -0
- package/components/Map/mapStyle.js.map +1 -0
- package/components/Map/types.d.ts +59 -0
- package/components/Map/types.d.ts.map +1 -0
- package/components/Map/types.js +2 -0
- package/components/Map/types.js.map +1 -0
- package/components/Marquee/Marquee.d.ts +65 -0
- package/components/Marquee/Marquee.d.ts.map +1 -0
- package/components/Marquee/Marquee.js +87 -0
- package/components/Marquee/Marquee.js.map +1 -0
- package/components/Marquee/index.d.ts +2 -0
- package/components/Marquee/index.d.ts.map +1 -0
- package/components/Marquee/index.js +2 -0
- package/components/Marquee/index.js.map +1 -0
- package/components/Marquee/marquee.module.css +151 -0
- package/components/Menu/Menu.d.ts +113 -0
- package/components/Menu/Menu.d.ts.map +1 -0
- package/components/Menu/Menu.js +161 -0
- package/components/Menu/Menu.js.map +1 -0
- package/components/Menu/index.d.ts +2 -0
- package/components/Menu/index.d.ts.map +1 -0
- package/components/Menu/index.js +2 -0
- package/components/Menu/index.js.map +1 -0
- package/components/Menu/menu.module.css +244 -0
- package/components/Menu/popup.d.ts +44 -0
- package/components/Menu/popup.d.ts.map +1 -0
- package/components/Menu/popup.js +39 -0
- package/components/Menu/popup.js.map +1 -0
- package/components/Menubar/Menubar.d.ts +53 -0
- package/components/Menubar/Menubar.d.ts.map +1 -0
- package/components/Menubar/Menubar.js +81 -0
- package/components/Menubar/Menubar.js.map +1 -0
- package/components/Menubar/index.d.ts +2 -0
- package/components/Menubar/index.d.ts.map +1 -0
- package/components/Menubar/index.js +2 -0
- package/components/Menubar/index.js.map +1 -0
- package/components/Menubar/menubar.module.css +124 -0
- package/components/Meter/Meter.d.ts +67 -0
- package/components/Meter/Meter.d.ts.map +1 -0
- package/components/Meter/Meter.js +145 -0
- package/components/Meter/Meter.js.map +1 -0
- package/components/Meter/index.d.ts +2 -0
- package/components/Meter/index.d.ts.map +1 -0
- package/components/Meter/index.js +2 -0
- package/components/Meter/index.js.map +1 -0
- package/components/Meter/meter.module.css +384 -0
- package/components/NavDrawer/NavDrawer.d.ts +113 -0
- package/components/NavDrawer/NavDrawer.d.ts.map +1 -0
- package/components/NavDrawer/NavDrawer.js +215 -0
- package/components/NavDrawer/NavDrawer.js.map +1 -0
- package/components/NavDrawer/index.d.ts +2 -0
- package/components/NavDrawer/index.d.ts.map +1 -0
- package/components/NavDrawer/index.js +2 -0
- package/components/NavDrawer/index.js.map +1 -0
- package/components/NavDrawer/nav-drawer.module.css +446 -0
- package/components/NavigationBar/NavigationBar.d.ts +129 -0
- package/components/NavigationBar/NavigationBar.d.ts.map +1 -0
- package/components/NavigationBar/NavigationBar.js +224 -0
- package/components/NavigationBar/NavigationBar.js.map +1 -0
- package/components/NavigationBar/index.d.ts +2 -0
- package/components/NavigationBar/index.d.ts.map +1 -0
- package/components/NavigationBar/index.js +2 -0
- package/components/NavigationBar/index.js.map +1 -0
- package/components/NavigationBar/navigation-bar.module.css +413 -0
- package/components/NavigationMenu/NavigationMenu.d.ts +243 -0
- package/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/components/NavigationMenu/NavigationMenu.js +512 -0
- package/components/NavigationMenu/NavigationMenu.js.map +1 -0
- package/components/NavigationMenu/index.d.ts +2 -0
- package/components/NavigationMenu/index.d.ts.map +1 -0
- package/components/NavigationMenu/index.js +2 -0
- package/components/NavigationMenu/index.js.map +1 -0
- package/components/NavigationMenu/navigation-menu.module.css +636 -0
- package/components/Newsletter/Newsletter.d.ts +146 -0
- package/components/Newsletter/Newsletter.d.ts.map +1 -0
- package/components/Newsletter/Newsletter.js +241 -0
- package/components/Newsletter/Newsletter.js.map +1 -0
- package/components/Newsletter/index.d.ts +2 -0
- package/components/Newsletter/index.d.ts.map +1 -0
- package/components/Newsletter/index.js +2 -0
- package/components/Newsletter/index.js.map +1 -0
- package/components/Newsletter/newsletter.module.css +552 -0
- package/components/NumberField/NumberField.d.ts +67 -0
- package/components/NumberField/NumberField.d.ts.map +1 -0
- package/components/NumberField/NumberField.js +105 -0
- package/components/NumberField/NumberField.js.map +1 -0
- package/components/NumberField/index.d.ts +2 -0
- package/components/NumberField/index.d.ts.map +1 -0
- package/components/NumberField/index.js +2 -0
- package/components/NumberField/index.js.map +1 -0
- package/components/NumberField/number-field.module.css +429 -0
- package/components/Pagination/Pagination.d.ts +112 -0
- package/components/Pagination/Pagination.d.ts.map +1 -0
- package/components/Pagination/Pagination.js +202 -0
- package/components/Pagination/Pagination.js.map +1 -0
- package/components/Pagination/index.d.ts +2 -0
- package/components/Pagination/index.d.ts.map +1 -0
- package/components/Pagination/index.js +2 -0
- package/components/Pagination/index.js.map +1 -0
- package/components/Pagination/pagination.module.css +400 -0
- package/components/Popover/Popover.d.ts +96 -0
- package/components/Popover/Popover.d.ts.map +1 -0
- package/components/Popover/Popover.js +131 -0
- package/components/Popover/Popover.js.map +1 -0
- package/components/Popover/index.d.ts +2 -0
- package/components/Popover/index.d.ts.map +1 -0
- package/components/Popover/index.js +2 -0
- package/components/Popover/index.js.map +1 -0
- package/components/Popover/popover.module.css +194 -0
- package/components/PreviewCard/PreviewCard.d.ts +83 -0
- package/components/PreviewCard/PreviewCard.d.ts.map +1 -0
- package/components/PreviewCard/PreviewCard.js +123 -0
- package/components/PreviewCard/PreviewCard.js.map +1 -0
- package/components/PreviewCard/index.d.ts +2 -0
- package/components/PreviewCard/index.d.ts.map +1 -0
- package/components/PreviewCard/index.js +2 -0
- package/components/PreviewCard/index.js.map +1 -0
- package/components/PreviewCard/preview-card.module.css +177 -0
- package/components/Pricing/Pricing.d.ts +190 -0
- package/components/Pricing/Pricing.d.ts.map +1 -0
- package/components/Pricing/Pricing.js +350 -0
- package/components/Pricing/Pricing.js.map +1 -0
- package/components/Pricing/index.d.ts +2 -0
- package/components/Pricing/index.d.ts.map +1 -0
- package/components/Pricing/index.js +2 -0
- package/components/Pricing/index.js.map +1 -0
- package/components/Pricing/pricing.module.css +485 -0
- package/components/Profile/Profile.d.ts +120 -0
- package/components/Profile/Profile.d.ts.map +1 -0
- package/components/Profile/Profile.js +230 -0
- package/components/Profile/Profile.js.map +1 -0
- package/components/Profile/index.d.ts +2 -0
- package/components/Profile/index.d.ts.map +1 -0
- package/components/Profile/index.js +2 -0
- package/components/Profile/index.js.map +1 -0
- package/components/Profile/profile.module.css +272 -0
- package/components/Progress/Progress.d.ts +63 -0
- package/components/Progress/Progress.d.ts.map +1 -0
- package/components/Progress/Progress.js +129 -0
- package/components/Progress/Progress.js.map +1 -0
- package/components/Progress/index.d.ts +2 -0
- package/components/Progress/index.d.ts.map +1 -0
- package/components/Progress/index.js +2 -0
- package/components/Progress/index.js.map +1 -0
- package/components/Progress/progress.module.css +280 -0
- package/components/Quote/Quote.d.ts +99 -0
- package/components/Quote/Quote.d.ts.map +1 -0
- package/components/Quote/Quote.js +168 -0
- package/components/Quote/Quote.js.map +1 -0
- package/components/Quote/index.d.ts +2 -0
- package/components/Quote/index.d.ts.map +1 -0
- package/components/Quote/index.js +2 -0
- package/components/Quote/index.js.map +1 -0
- package/components/Quote/quote.module.css +184 -0
- package/components/Radio/Radio.d.ts +81 -0
- package/components/Radio/Radio.d.ts.map +1 -0
- package/components/Radio/Radio.js +119 -0
- package/components/Radio/Radio.js.map +1 -0
- package/components/Radio/index.d.ts +2 -0
- package/components/Radio/index.d.ts.map +1 -0
- package/components/Radio/index.js +2 -0
- package/components/Radio/index.js.map +1 -0
- package/components/Radio/radio.module.css +449 -0
- package/components/RadioGroup/RadioGroup.d.ts +35 -0
- package/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/components/RadioGroup/RadioGroup.js +61 -0
- package/components/RadioGroup/RadioGroup.js.map +1 -0
- package/components/RadioGroup/index.d.ts +2 -0
- package/components/RadioGroup/index.d.ts.map +1 -0
- package/components/RadioGroup/index.js +2 -0
- package/components/RadioGroup/index.js.map +1 -0
- package/components/RadioGroup/radio-group.module.css +57 -0
- package/components/ScrollArea/ScrollArea.d.ts +67 -0
- package/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/components/ScrollArea/ScrollArea.js +87 -0
- package/components/ScrollArea/ScrollArea.js.map +1 -0
- package/components/ScrollArea/index.d.ts +2 -0
- package/components/ScrollArea/index.d.ts.map +1 -0
- package/components/ScrollArea/index.js +2 -0
- package/components/ScrollArea/index.js.map +1 -0
- package/components/ScrollArea/scroll-area.module.css +247 -0
- package/components/Search/Search.d.ts +119 -0
- package/components/Search/Search.d.ts.map +1 -0
- package/components/Search/Search.js +127 -0
- package/components/Search/Search.js.map +1 -0
- package/components/Search/index.d.ts +2 -0
- package/components/Search/index.d.ts.map +1 -0
- package/components/Search/index.js +2 -0
- package/components/Search/index.js.map +1 -0
- package/components/Search/search.module.css +326 -0
- package/components/SectionBar/SectionBar.d.ts +131 -0
- package/components/SectionBar/SectionBar.d.ts.map +1 -0
- package/components/SectionBar/SectionBar.js +292 -0
- package/components/SectionBar/SectionBar.js.map +1 -0
- package/components/SectionBar/index.d.ts +2 -0
- package/components/SectionBar/index.d.ts.map +1 -0
- package/components/SectionBar/index.js +2 -0
- package/components/SectionBar/index.js.map +1 -0
- package/components/SectionBar/section-bar.module.css +598 -0
- package/components/SectionDivider/SectionDivider.d.ts +80 -0
- package/components/SectionDivider/SectionDivider.d.ts.map +1 -0
- package/components/SectionDivider/SectionDivider.js +158 -0
- package/components/SectionDivider/SectionDivider.js.map +1 -0
- package/components/SectionDivider/index.d.ts +2 -0
- package/components/SectionDivider/index.d.ts.map +1 -0
- package/components/SectionDivider/index.js +2 -0
- package/components/SectionDivider/index.js.map +1 -0
- package/components/SectionDivider/section-divider.module.css +275 -0
- package/components/SectionHeader/SectionHeader.d.ts +121 -0
- package/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/components/SectionHeader/SectionHeader.js +141 -0
- package/components/SectionHeader/SectionHeader.js.map +1 -0
- package/components/SectionHeader/index.d.ts +2 -0
- package/components/SectionHeader/index.d.ts.map +1 -0
- package/components/SectionHeader/index.js +2 -0
- package/components/SectionHeader/index.js.map +1 -0
- package/components/SectionHeader/section-header.module.css +319 -0
- package/components/Select/Select.d.ts +104 -0
- package/components/Select/Select.d.ts.map +1 -0
- package/components/Select/Select.js +154 -0
- package/components/Select/Select.js.map +1 -0
- package/components/Select/index.d.ts +2 -0
- package/components/Select/index.d.ts.map +1 -0
- package/components/Select/index.js +2 -0
- package/components/Select/index.js.map +1 -0
- package/components/Select/select.module.css +398 -0
- package/components/Separator/Separator.d.ts +47 -0
- package/components/Separator/Separator.d.ts.map +1 -0
- package/components/Separator/Separator.js +62 -0
- package/components/Separator/Separator.js.map +1 -0
- package/components/Separator/index.d.ts +2 -0
- package/components/Separator/index.d.ts.map +1 -0
- package/components/Separator/index.js +2 -0
- package/components/Separator/index.js.map +1 -0
- package/components/Separator/separator.module.css +174 -0
- package/components/Slider/Slider.d.ts +54 -0
- package/components/Slider/Slider.d.ts.map +1 -0
- package/components/Slider/Slider.js +118 -0
- package/components/Slider/Slider.js.map +1 -0
- package/components/Slider/index.d.ts +2 -0
- package/components/Slider/index.d.ts.map +1 -0
- package/components/Slider/index.js +2 -0
- package/components/Slider/index.js.map +1 -0
- package/components/Slider/slider.module.css +371 -0
- package/components/SpecGrid/SpecGrid.d.ts +49 -0
- package/components/SpecGrid/SpecGrid.d.ts.map +1 -0
- package/components/SpecGrid/SpecGrid.js +75 -0
- package/components/SpecGrid/SpecGrid.js.map +1 -0
- package/components/SpecGrid/index.d.ts +2 -0
- package/components/SpecGrid/index.d.ts.map +1 -0
- package/components/SpecGrid/index.js +2 -0
- package/components/SpecGrid/index.js.map +1 -0
- package/components/SpecGrid/spec-grid.module.css +142 -0
- package/components/SpecList/SpecList.d.ts +32 -0
- package/components/SpecList/SpecList.d.ts.map +1 -0
- package/components/SpecList/SpecList.js +51 -0
- package/components/SpecList/SpecList.js.map +1 -0
- package/components/SpecList/index.d.ts +2 -0
- package/components/SpecList/index.d.ts.map +1 -0
- package/components/SpecList/index.js +2 -0
- package/components/SpecList/index.js.map +1 -0
- package/components/SpecList/spec-list.module.css +95 -0
- package/components/SpecSheet/SpecSheet.d.ts +112 -0
- package/components/SpecSheet/SpecSheet.d.ts.map +1 -0
- package/components/SpecSheet/SpecSheet.js +128 -0
- package/components/SpecSheet/SpecSheet.js.map +1 -0
- package/components/SpecSheet/index.d.ts +2 -0
- package/components/SpecSheet/index.d.ts.map +1 -0
- package/components/SpecSheet/index.js +2 -0
- package/components/SpecSheet/index.js.map +1 -0
- package/components/SpecSheet/spec-sheet.module.css +278 -0
- package/components/Stat/Stat.d.ts +74 -0
- package/components/Stat/Stat.d.ts.map +1 -0
- package/components/Stat/Stat.js +159 -0
- package/components/Stat/Stat.js.map +1 -0
- package/components/Stat/index.d.ts +2 -0
- package/components/Stat/index.d.ts.map +1 -0
- package/components/Stat/index.js +2 -0
- package/components/Stat/index.js.map +1 -0
- package/components/Stat/stat.module.css +299 -0
- package/components/Sticker/Sticker.d.ts +71 -0
- package/components/Sticker/Sticker.d.ts.map +1 -0
- package/components/Sticker/Sticker.js +104 -0
- package/components/Sticker/Sticker.js.map +1 -0
- package/components/Sticker/index.d.ts +2 -0
- package/components/Sticker/index.d.ts.map +1 -0
- package/components/Sticker/index.js +2 -0
- package/components/Sticker/index.js.map +1 -0
- package/components/Sticker/sticker.module.css +87 -0
- package/components/Switch/Switch.d.ts +57 -0
- package/components/Switch/Switch.d.ts.map +1 -0
- package/components/Switch/Switch.js +82 -0
- package/components/Switch/Switch.js.map +1 -0
- package/components/Switch/index.d.ts +2 -0
- package/components/Switch/index.d.ts.map +1 -0
- package/components/Switch/index.js +2 -0
- package/components/Switch/index.js.map +1 -0
- package/components/Switch/switch.module.css +285 -0
- package/components/Table/Table.d.ts +164 -0
- package/components/Table/Table.d.ts.map +1 -0
- package/components/Table/Table.js +255 -0
- package/components/Table/Table.js.map +1 -0
- package/components/Table/index.d.ts +2 -0
- package/components/Table/index.d.ts.map +1 -0
- package/components/Table/index.js +2 -0
- package/components/Table/index.js.map +1 -0
- package/components/Table/table.module.css +751 -0
- package/components/Tabs/Tabs.d.ts +93 -0
- package/components/Tabs/Tabs.d.ts.map +1 -0
- package/components/Tabs/Tabs.js +175 -0
- package/components/Tabs/Tabs.js.map +1 -0
- package/components/Tabs/index.d.ts +2 -0
- package/components/Tabs/index.d.ts.map +1 -0
- package/components/Tabs/index.js +2 -0
- package/components/Tabs/index.js.map +1 -0
- package/components/Tabs/tabs.module.css +339 -0
- package/components/Tag/Tag.d.ts +40 -0
- package/components/Tag/Tag.d.ts.map +1 -0
- package/components/Tag/Tag.js +56 -0
- package/components/Tag/Tag.js.map +1 -0
- package/components/Tag/index.d.ts +2 -0
- package/components/Tag/index.d.ts.map +1 -0
- package/components/Tag/index.js +2 -0
- package/components/Tag/index.js.map +1 -0
- package/components/Tag/tag.module.css +99 -0
- package/components/Timeline/Timeline.d.ts +164 -0
- package/components/Timeline/Timeline.d.ts.map +1 -0
- package/components/Timeline/Timeline.js +314 -0
- package/components/Timeline/Timeline.js.map +1 -0
- package/components/Timeline/index.d.ts +2 -0
- package/components/Timeline/index.d.ts.map +1 -0
- package/components/Timeline/index.js +2 -0
- package/components/Timeline/index.js.map +1 -0
- package/components/Timeline/timeline.module.css +428 -0
- package/components/Toast/Toast.d.ts +89 -0
- package/components/Toast/Toast.d.ts.map +1 -0
- package/components/Toast/Toast.js +171 -0
- package/components/Toast/Toast.js.map +1 -0
- package/components/Toast/index.d.ts +2 -0
- package/components/Toast/index.d.ts.map +1 -0
- package/components/Toast/index.js +2 -0
- package/components/Toast/index.js.map +1 -0
- package/components/Toast/toast.module.css +270 -0
- package/components/Toggle/Toggle.d.ts +78 -0
- package/components/Toggle/Toggle.d.ts.map +1 -0
- package/components/Toggle/Toggle.js +101 -0
- package/components/Toggle/Toggle.js.map +1 -0
- package/components/Toggle/index.d.ts +2 -0
- package/components/Toggle/index.d.ts.map +1 -0
- package/components/Toggle/index.js +2 -0
- package/components/Toggle/index.js.map +1 -0
- package/components/Toggle/toggle.module.css +281 -0
- package/components/ToggleGroup/ToggleGroup.d.ts +43 -0
- package/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/components/ToggleGroup/ToggleGroup.js +85 -0
- package/components/ToggleGroup/ToggleGroup.js.map +1 -0
- package/components/ToggleGroup/index.d.ts +2 -0
- package/components/ToggleGroup/index.d.ts.map +1 -0
- package/components/ToggleGroup/index.js +2 -0
- package/components/ToggleGroup/index.js.map +1 -0
- package/components/ToggleGroup/toggle-group.module.css +139 -0
- package/components/Toolbar/Toolbar.d.ts +125 -0
- package/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/components/Toolbar/Toolbar.js +174 -0
- package/components/Toolbar/Toolbar.js.map +1 -0
- package/components/Toolbar/index.d.ts +2 -0
- package/components/Toolbar/index.d.ts.map +1 -0
- package/components/Toolbar/index.js +2 -0
- package/components/Toolbar/index.js.map +1 -0
- package/components/Toolbar/toolbar.module.css +273 -0
- package/components/Tooltip/Tooltip.d.ts +72 -0
- package/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/components/Tooltip/Tooltip.js +108 -0
- package/components/Tooltip/Tooltip.js.map +1 -0
- package/components/Tooltip/index.d.ts +2 -0
- package/components/Tooltip/index.d.ts.map +1 -0
- package/components/Tooltip/index.js +2 -0
- package/components/Tooltip/index.js.map +1 -0
- package/components/Tooltip/tooltip.module.css +120 -0
- package/icons/paths.d.ts +35 -0
- package/icons/paths.d.ts.map +1 -0
- package/icons/paths.js +150 -0
- package/icons/paths.js.map +1 -0
- package/package.json +112 -0
- package/utils/ClientProvider.d.ts +18 -0
- package/utils/ClientProvider.d.ts.map +1 -0
- package/utils/ClientProvider.js +55 -0
- package/utils/ClientProvider.js.map +1 -0
- package/utils/Ornament.d.ts +93 -0
- package/utils/Ornament.d.ts.map +1 -0
- package/utils/Ornament.js +160 -0
- package/utils/Ornament.js.map +1 -0
- package/utils/StatusGlyph.d.ts +24 -0
- package/utils/StatusGlyph.d.ts.map +1 -0
- package/utils/StatusGlyph.js +39 -0
- package/utils/StatusGlyph.js.map +1 -0
- package/utils/assignRef.d.ts +7 -0
- package/utils/assignRef.d.ts.map +1 -0
- package/utils/assignRef.js +11 -0
- package/utils/assignRef.js.map +1 -0
- package/utils/className.d.ts +10 -0
- package/utils/className.d.ts.map +1 -0
- package/utils/className.js +21 -0
- package/utils/className.js.map +1 -0
- package/utils/colors/amber.css +101 -0
- package/utils/colors/amberDarkDefault.css +101 -0
- package/utils/colors/amberLightDefault.css +67 -0
- package/utils/colors/blue.css +101 -0
- package/utils/colors/blueDarkDefault.css +101 -0
- package/utils/colors/blueLightDefault.css +67 -0
- package/utils/colors/bronze.css +101 -0
- package/utils/colors/bronzeDarkDefault.css +101 -0
- package/utils/colors/bronzeLightDefault.css +67 -0
- package/utils/colors/brown.css +101 -0
- package/utils/colors/brownDarkDefault.css +101 -0
- package/utils/colors/brownLightDefault.css +67 -0
- package/utils/colors/crimson.css +101 -0
- package/utils/colors/crimsonDarkDefault.css +101 -0
- package/utils/colors/crimsonLightDefault.css +67 -0
- package/utils/colors/cyan.css +101 -0
- package/utils/colors/cyanDarkDefault.css +101 -0
- package/utils/colors/cyanLightDefault.css +67 -0
- package/utils/colors/gold.css +101 -0
- package/utils/colors/goldDarkDefault.css +101 -0
- package/utils/colors/goldLightDefault.css +67 -0
- package/utils/colors/grass.css +101 -0
- package/utils/colors/grassDarkDefault.css +101 -0
- package/utils/colors/grassLightDefault.css +67 -0
- package/utils/colors/gray.css +101 -0
- package/utils/colors/grayDarkDefault.css +101 -0
- package/utils/colors/grayLightDefault.css +67 -0
- package/utils/colors/green.css +101 -0
- package/utils/colors/greenDarkDefault.css +101 -0
- package/utils/colors/greenLightDefault.css +67 -0
- package/utils/colors/indigo.css +101 -0
- package/utils/colors/indigoDarkDefault.css +101 -0
- package/utils/colors/indigoLightDefault.css +67 -0
- package/utils/colors/iris.css +101 -0
- package/utils/colors/irisDarkDefault.css +101 -0
- package/utils/colors/irisLightDefault.css +67 -0
- package/utils/colors/jade.css +101 -0
- package/utils/colors/jadeDarkDefault.css +101 -0
- package/utils/colors/jadeLightDefault.css +67 -0
- package/utils/colors/lime.css +101 -0
- package/utils/colors/limeDarkDefault.css +101 -0
- package/utils/colors/limeLightDefault.css +67 -0
- package/utils/colors/mauve.css +101 -0
- package/utils/colors/mauveDarkDefault.css +101 -0
- package/utils/colors/mauveLightDefault.css +67 -0
- package/utils/colors/mint.css +101 -0
- package/utils/colors/mintDarkDefault.css +101 -0
- package/utils/colors/mintLightDefault.css +67 -0
- package/utils/colors/olive.css +101 -0
- package/utils/colors/oliveDarkDefault.css +101 -0
- package/utils/colors/oliveLightDefault.css +67 -0
- package/utils/colors/orange.css +101 -0
- package/utils/colors/orangeDarkDefault.css +101 -0
- package/utils/colors/orangeLightDefault.css +67 -0
- package/utils/colors/pink.css +101 -0
- package/utils/colors/pinkDarkDefault.css +101 -0
- package/utils/colors/pinkLightDefault.css +67 -0
- package/utils/colors/plum.css +101 -0
- package/utils/colors/plumDarkDefault.css +101 -0
- package/utils/colors/plumLightDefault.css +67 -0
- package/utils/colors/purple.css +101 -0
- package/utils/colors/purpleDarkDefault.css +101 -0
- package/utils/colors/purpleLightDefault.css +67 -0
- package/utils/colors/red.css +101 -0
- package/utils/colors/redDarkDefault.css +101 -0
- package/utils/colors/redLightDefault.css +67 -0
- package/utils/colors/ruby.css +101 -0
- package/utils/colors/rubyDarkDefault.css +101 -0
- package/utils/colors/rubyLightDefault.css +67 -0
- package/utils/colors/sage.css +101 -0
- package/utils/colors/sageDarkDefault.css +101 -0
- package/utils/colors/sageLightDefault.css +67 -0
- package/utils/colors/sand.css +101 -0
- package/utils/colors/sandDarkDefault.css +101 -0
- package/utils/colors/sandLightDefault.css +67 -0
- package/utils/colors/sky.css +101 -0
- package/utils/colors/skyDarkDefault.css +101 -0
- package/utils/colors/skyLightDefault.css +67 -0
- package/utils/colors/slate.css +101 -0
- package/utils/colors/slateDarkDefault.css +101 -0
- package/utils/colors/slateLightDefault.css +67 -0
- package/utils/colors/teal.css +101 -0
- package/utils/colors/tealDarkDefault.css +101 -0
- package/utils/colors/tealLightDefault.css +67 -0
- package/utils/colors/tomato.css +101 -0
- package/utils/colors/tomatoDarkDefault.css +101 -0
- package/utils/colors/tomatoLightDefault.css +67 -0
- package/utils/colors/violet.css +101 -0
- package/utils/colors/violetDarkDefault.css +101 -0
- package/utils/colors/violetLightDefault.css +67 -0
- package/utils/colors/yellow.css +101 -0
- package/utils/colors/yellowDarkDefault.css +101 -0
- package/utils/colors/yellowLightDefault.css +67 -0
- package/utils/colors.css +2441 -0
- package/utils/colorsDarkDefault.css +2441 -0
- package/utils/colorsLightDefault.css +1627 -0
- package/utils/fonts.d.ts +11 -0
- package/utils/fonts.d.ts.map +1 -0
- package/utils/fonts.js +12 -0
- package/utils/fonts.js.map +1 -0
- package/utils/global.css +3747 -0
- package/utils/highlightMatch.d.ts +7 -0
- package/utils/highlightMatch.d.ts.map +1 -0
- package/utils/highlightMatch.js +25 -0
- package/utils/highlightMatch.js.map +1 -0
- package/utils/layers.css +3 -0
- package/utils/line.module.css +101 -0
- package/utils/media.css +11 -0
- package/utils/navigation.d.ts +100 -0
- package/utils/navigation.d.ts.map +1 -0
- package/utils/navigation.js +65 -0
- package/utils/navigation.js.map +1 -0
- package/utils/ornament.module.css +224 -0
- package/utils/overlay.d.ts +49 -0
- package/utils/overlay.d.ts.map +1 -0
- package/utils/overlay.js +73 -0
- package/utils/overlay.js.map +1 -0
- package/utils/pattern.module.css +386 -0
- package/utils/print.css +125 -0
- package/utils/printUrl.d.ts +13 -0
- package/utils/printUrl.d.ts.map +1 -0
- package/utils/printUrl.js +43 -0
- package/utils/printUrl.js.map +1 -0
- package/utils/reset.css +129 -0
- package/utils/roles.css +689 -0
- package/utils/scales.d.ts +20 -0
- package/utils/scales.d.ts.map +1 -0
- package/utils/scales.js +156 -0
- package/utils/scales.js.map +1 -0
- package/utils/scales.module.css +1590 -0
- package/utils/scope.d.ts +119 -0
- package/utils/scope.d.ts.map +1 -0
- package/utils/scope.js +145 -0
- package/utils/scope.js.map +1 -0
- package/utils/seriesPatterns.d.ts +75 -0
- package/utils/seriesPatterns.d.ts.map +1 -0
- package/utils/seriesPatterns.js +118 -0
- package/utils/seriesPatterns.js.map +1 -0
- package/utils/theme.css +28 -0
- package/utils/tokens.css +317 -0
- package/utils/tokens.d.ts +36 -0
- package/utils/tokens.d.ts.map +1 -0
- package/utils/tokens.js +38 -0
- package/utils/tokens.js.map +1 -0
- package/utils/type.module.css +342 -0
- package/utils/useColorScheme.d.ts +12 -0
- package/utils/useColorScheme.d.ts.map +1 -0
- package/utils/useColorScheme.js +43 -0
- package/utils/useColorScheme.js.map +1 -0
- package/utils/useMediaQuery.d.ts +8 -0
- package/utils/useMediaQuery.d.ts.map +1 -0
- package/utils/useMediaQuery.js +17 -0
- package/utils/useMediaQuery.js.map +1 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Form as BaseForm } from '@base-ui/react/form';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const form: (props?: ({
|
|
5
|
+
primary?: "ruby" | "brown" | "crimson" | "gold" | "gray" | "indigo" | "olive" | "pink" | "plum" | "purple" | "red" | "tomato" | "violet" | "bronze" | "iris" | "mauve" | "sage" | "sand" | "slate" | null | undefined;
|
|
6
|
+
secondary?: "ruby" | "blue" | "brown" | "crimson" | "cyan" | "gold" | "gray" | "green" | "indigo" | "lime" | "olive" | "orange" | "pink" | "plum" | "purple" | "red" | "teal" | "tomato" | "violet" | "yellow" | "amber" | "bronze" | "grass" | "iris" | "jade" | "mauve" | "mint" | "sage" | "sand" | "sky" | "slate" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type FormVariants = VariantProps<typeof form>;
|
|
9
|
+
/** Props for Form: Base UI Form props plus `busy` and the color axes. */
|
|
10
|
+
export type FormProps<Values extends Record<string, unknown> = Record<string, unknown>> = Omit<BaseForm.Props<Values>, 'className'> & {
|
|
11
|
+
/** Extra class names, added after the module's own. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* While the submission is pending: the form is `inert` and
|
|
15
|
+
* `aria-busy`. Give the solid submit its "-ing…" label ("Sending…").
|
|
16
|
+
*/
|
|
17
|
+
busy?: boolean;
|
|
18
|
+
/** Primary Radix scale: structure and inherited control roles. Never defaulted [D133]. */
|
|
19
|
+
primary?: FormVariants['primary'];
|
|
20
|
+
/** Secondary Radix scale: accepted, unused. */
|
|
21
|
+
secondary?: FormVariants['secondary'];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A Base UI Form, one column at `--size-sm`. Base UI validates on submit,
|
|
25
|
+
* then re-validates failed fields as they change (§10.2 asks for blur;
|
|
26
|
+
* pass `validationMode="onBlur"` to a Field that should wait for it).
|
|
27
|
+
* Order: an optional `FormSummary`, fields and fieldsets, then
|
|
28
|
+
* `FormActions`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function Form<Values extends Record<string, unknown> = Record<string, unknown>>(props: FormProps<Values>): React.JSX.Element;
|
|
31
|
+
/** One failing field in the summary: the field's `id` and the message that links to it. */
|
|
32
|
+
export interface FormSummaryError {
|
|
33
|
+
/** The `id` of the field's control; the link moves focus there. */
|
|
34
|
+
id: string;
|
|
35
|
+
/** The field's error message, as at the field. */
|
|
36
|
+
message: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
/** Props for FormSummary. */
|
|
39
|
+
export interface FormSummaryProps {
|
|
40
|
+
/** The heading, in `type-subhead`: "Fix 2 fields to continue". */
|
|
41
|
+
title: React.ReactNode;
|
|
42
|
+
/** The failing fields, each a link that moves focus to its control. */
|
|
43
|
+
errors: readonly FormSummaryError[];
|
|
44
|
+
/** Extra class names, added after the module's own. */
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The error summary at the top of the form (§10.2): the danger Alert with
|
|
49
|
+
* a heading and a link to each failing field. Render it only while there
|
|
50
|
+
* are errors; it takes focus when it appears.
|
|
51
|
+
*/
|
|
52
|
+
export declare function FormSummary(props: FormSummaryProps): React.JSX.Element;
|
|
53
|
+
/** Props for FormRow: `div` props. */
|
|
54
|
+
export type FormRowProps = React.ComponentPropsWithRef<'div'>;
|
|
55
|
+
/**
|
|
56
|
+
* A short pair, such as city and postcode: a 2:1 row that stacks when both
|
|
57
|
+
* fields do not fit, and always shares the row from 480 px of form width.
|
|
58
|
+
*/
|
|
59
|
+
export declare function FormRow(props: FormRowProps): React.JSX.Element;
|
|
60
|
+
/** Props for FormActions: `div` props. */
|
|
61
|
+
export type FormActionsProps = React.ComponentPropsWithRef<'div'>;
|
|
62
|
+
/**
|
|
63
|
+
* The action row, `--size-px-5` below the last field. Author the solid
|
|
64
|
+
* submit (`size="lg"`) last: it shows first and full width at base, and
|
|
65
|
+
* last (rightmost) from `--md-n-above` [D106].
|
|
66
|
+
*/
|
|
67
|
+
export declare function FormActions(props: FormActionsProps): React.JSX.Element;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AA4BjE,eAAO,MAAM,IAAI;;;8EAMf,CAAA;AAEF,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAA;AAE7C,yEAAyE;AACzE,MAAM,MAAM,SAAS,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,CAC5F,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EACtB,WAAW,CACZ,GAAG;IACF,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0FAA0F;IAC1F,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAA;IACjC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CACtC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnF,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,qBAczB;AAED,2FAA2F;AAC3F,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAA;IACV,kDAAkD;IAClD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,6BAA6B;AAC7B,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,uEAAuE;IACvE,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACnC,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAmClD;AAED,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAA;AAE7D;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,qBAG1C;AAED,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAA;AAEjE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAGlD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Form as BaseForm } from '@base-ui/react/form';
|
|
4
|
+
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { Alert } from '../Alert';
|
|
6
|
+
import { Link } from '../Link';
|
|
7
|
+
import { cx } from '../../utils/className';
|
|
8
|
+
import { primaryScaleVariants, secondaryScaleVariants } from '../../utils/scales';
|
|
9
|
+
import { useScopeAttributes } from '../../utils/scope';
|
|
10
|
+
import styles from './form.module.css';
|
|
11
|
+
/*
|
|
12
|
+
* Form (§10.2): anything submitted. Instant-apply settings are switches.
|
|
13
|
+
*
|
|
14
|
+
* Implementation (CSS Modules + CVA)
|
|
15
|
+
* - Module: form.module.css; CVA function `form`.
|
|
16
|
+
* - Axes: `primary`, `secondary` → scales module classes (structure takes
|
|
17
|
+
* `primary` only; `secondary` is accepted unused).
|
|
18
|
+
* - Compound variants: none. Defaults: color axes none.
|
|
19
|
+
* - Color fallback: inherits the scope. The summary is an Alert whose
|
|
20
|
+
* secondary is the danger scale [D129].
|
|
21
|
+
* - States: `aria-busy` (set from `busy`) → the form is inert, the submit
|
|
22
|
+
* reads "-ing…" at its rest width [D84].
|
|
23
|
+
* - Parts: base, summary (an Alert, status danger; `summaryTitle`,
|
|
24
|
+
* `summaryList`), actions; `row` holds a short pair.
|
|
25
|
+
* - Scope: none.
|
|
26
|
+
* - Container: the root is the inline-size container `form`; short pairs
|
|
27
|
+
* share a row from 480 px, fieldset padding and the butted submit's
|
|
28
|
+
* stack guard read it below 360 px (§5.10.2) [D163].
|
|
29
|
+
*/
|
|
30
|
+
export const form = cva(styles.base, {
|
|
31
|
+
variants: {
|
|
32
|
+
// Color axes: never defaulted [D133].
|
|
33
|
+
primary: primaryScaleVariants,
|
|
34
|
+
secondary: secondaryScaleVariants,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* A Base UI Form, one column at `--size-sm`. Base UI validates on submit,
|
|
39
|
+
* then re-validates failed fields as they change (§10.2 asks for blur;
|
|
40
|
+
* pass `validationMode="onBlur"` to a Field that should wait for it).
|
|
41
|
+
* Order: an optional `FormSummary`, fields and fieldsets, then
|
|
42
|
+
* `FormActions`.
|
|
43
|
+
*/
|
|
44
|
+
export function Form(props) {
|
|
45
|
+
const { busy, primary, secondary, className, ...rest } = props;
|
|
46
|
+
const scope = useScopeAttributes();
|
|
47
|
+
return (React.createElement(BaseForm, { ...rest, ...scope, "aria-busy": busy || undefined, inert: busy || undefined, className: form({ primary, secondary, className }) }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The error summary at the top of the form (§10.2): the danger Alert with
|
|
51
|
+
* a heading and a link to each failing field. Render it only while there
|
|
52
|
+
* are errors; it takes focus when it appears.
|
|
53
|
+
*/
|
|
54
|
+
export function FormSummary(props) {
|
|
55
|
+
const { title, errors, className } = props;
|
|
56
|
+
const ref = React.useRef(null);
|
|
57
|
+
React.useEffect(() => {
|
|
58
|
+
ref.current?.focus();
|
|
59
|
+
}, []);
|
|
60
|
+
const focusField = (event, id) => {
|
|
61
|
+
const target = document.getElementById(id);
|
|
62
|
+
if (!target)
|
|
63
|
+
return;
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
target.focus();
|
|
66
|
+
target.scrollIntoView({ block: 'center' });
|
|
67
|
+
};
|
|
68
|
+
return (React.createElement(Alert, { ref: ref, status: "danger", tabIndex: -1, className: cx(styles.summary, className) },
|
|
69
|
+
React.createElement("h2", { className: styles.summaryTitle }, title),
|
|
70
|
+
React.createElement("ul", { className: styles.summaryList }, errors.map((error) => (React.createElement("li", { key: error.id },
|
|
71
|
+
React.createElement(Link, { href: `#${error.id}`, onClick: (event) => focusField(event, error.id) }, error.message)))))));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A short pair, such as city and postcode: a 2:1 row that stacks when both
|
|
75
|
+
* fields do not fit, and always shares the row from 480 px of form width.
|
|
76
|
+
*/
|
|
77
|
+
export function FormRow(props) {
|
|
78
|
+
const { className, ...rest } = props;
|
|
79
|
+
return React.createElement("div", { ...rest, className: cx(styles.row, className) });
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The action row, `--size-px-5` below the last field. Author the solid
|
|
83
|
+
* submit (`size="lg"`) last: it shows first and full width at base, and
|
|
84
|
+
* last (rightmost) from `--md-n-above` [D106].
|
|
85
|
+
*/
|
|
86
|
+
export function FormActions(props) {
|
|
87
|
+
const { className, ...rest } = props;
|
|
88
|
+
return React.createElement("div", { ...rest, className: cx(styles.actions, className) });
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=Form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["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OAAO,CAAC,KAAmB;IACzC,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;IACpC,OAAO,gCAAS,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,GAAI,CAAA;AAChE,CAAC;AAKD;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAAuB;IACjD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;IACpC,OAAO,gCAAS,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAI,CAAA;AACpE,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Form (§10.2). CVA function `form`. Parts: `base` (the form and its
|
|
3
|
+
* inline-size container `form`), `summary` (the danger Alert at the top,
|
|
4
|
+
* with `summaryTitle` and `summaryList`), `row` (a short pair such as city
|
|
5
|
+
* and postcode) and `actions` (the action row). Structure takes role
|
|
6
|
+
* variables only; the summary's colors are the Alert's.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Composition sits in top-level rules, outside the layers: Lightning CSS
|
|
10
|
+
* (Next.js with Turbopack) rejects `composes` inside @layer or any nesting.
|
|
11
|
+
* The composed classes keep their own layers. */
|
|
12
|
+
.summaryTitle {
|
|
13
|
+
composes: typeSubhead from '../../utils/type.module.css';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@layer base {
|
|
17
|
+
/*
|
|
18
|
+
* One column at --size-sm, fields --size-px-5 apart (§10.2). The root is
|
|
19
|
+
* the inline-size container `form` that fieldsets, pairs and butted
|
|
20
|
+
* submits query (§5.10.2) [D163].
|
|
21
|
+
*/
|
|
22
|
+
.base {
|
|
23
|
+
container: form / inline-size;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--size-px-5);
|
|
27
|
+
inline-size: 100%;
|
|
28
|
+
max-inline-size: var(--size-sm);
|
|
29
|
+
color: var(--primary12);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* The summary takes focus when it appears; the Alert draws its own bar and glyph. */
|
|
33
|
+
.summary {
|
|
34
|
+
scroll-margin-block: var(--ds-space-margin);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.summaryTitle {
|
|
38
|
+
margin: 0;
|
|
39
|
+
color: var(--primary12);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.summaryList {
|
|
43
|
+
display: grid;
|
|
44
|
+
gap: var(--size-px-2);
|
|
45
|
+
margin: 0;
|
|
46
|
+
margin-block-start: var(--size-px-2);
|
|
47
|
+
padding: 0;
|
|
48
|
+
list-style: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/*
|
|
52
|
+
* A short pair shares one row in a 2:1 split and stacks when both do not
|
|
53
|
+
* fit (flex-wrap at each field's minimum); from 480 px of form width it
|
|
54
|
+
* always shares the row (§5.10.2).
|
|
55
|
+
*/
|
|
56
|
+
.row {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
gap: var(--size-px-5);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.row > * {
|
|
63
|
+
flex: 2 1 var(--size-px-12);
|
|
64
|
+
min-inline-size: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.row > :last-child:not(:first-child) {
|
|
68
|
+
flex: 1 1 var(--size-px-11);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container form (width >= 480px) {
|
|
72
|
+
.row {
|
|
73
|
+
flex-wrap: nowrap;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
* The action row, --size-px-5 above the last field: stacked with the
|
|
79
|
+
* solid submit first at base; from --md-n-above one row with the submit
|
|
80
|
+
* last (rightmost) [D106]. Author the submit last.
|
|
81
|
+
*/
|
|
82
|
+
.actions {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column-reverse;
|
|
85
|
+
align-items: stretch;
|
|
86
|
+
gap: var(--ds-space-12);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (min-width: 768px) {
|
|
90
|
+
.actions {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: flex-end;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@layer states {
|
|
100
|
+
/* The summary is focused by script; the ring shows for keyboard users only [D45]. */
|
|
101
|
+
.summary:focus {
|
|
102
|
+
outline: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.summary:focus-visible {
|
|
106
|
+
outline: var(--border-size-2) solid var(--primary12);
|
|
107
|
+
outline-offset: var(--border-size-2);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Busy: the form is inert until the response; the submit reads "Sending…" [D84]. */
|
|
111
|
+
.base[aria-busy='true'] {
|
|
112
|
+
cursor: progress;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@layer print {
|
|
117
|
+
@media print {
|
|
118
|
+
/* The summary prints if present; the action row is interaction only. */
|
|
119
|
+
.actions {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import { type PrimaryScale, type RadixScale } from '../../utils/scales';
|
|
4
|
+
import { type BandPreset, type FieldPreset, type PageGroundPreset } from '../../utils/scope';
|
|
5
|
+
export { companionField, companionFields, fieldPresets, pageGroundPresets, pastelPresets, presetDefaults, type BandPreset, type FieldPreset, type GroundKind, type GroundPreset, type PageGroundPreset, type PastelPreset, type PresetDefaults, } from '../../utils/scope';
|
|
6
|
+
export declare const ground: (props?: ({
|
|
7
|
+
kind?: "field" | "band" | "face" | null | undefined;
|
|
8
|
+
framed?: boolean | null | undefined;
|
|
9
|
+
island?: boolean | null | undefined;
|
|
10
|
+
primary?: "ruby" | "brown" | "crimson" | "gold" | "gray" | "indigo" | "olive" | "pink" | "plum" | "purple" | "red" | "tomato" | "violet" | "bronze" | "iris" | "mauve" | "sage" | "sand" | "slate" | null | undefined;
|
|
11
|
+
secondary?: "ruby" | "blue" | "brown" | "crimson" | "cyan" | "gold" | "gray" | "green" | "indigo" | "lime" | "olive" | "orange" | "pink" | "plum" | "purple" | "red" | "teal" | "tomato" | "violet" | "yellow" | "amber" | "bronze" | "grass" | "iris" | "jade" | "mauve" | "mint" | "sage" | "sand" | "sky" | "slate" | null | undefined;
|
|
12
|
+
action?: "ruby" | "blue" | "brown" | "crimson" | "cyan" | "gold" | "gray" | "green" | "indigo" | "lime" | "olive" | "orange" | "pink" | "plum" | "purple" | "red" | "teal" | "tomato" | "violet" | "yellow" | "amber" | "bronze" | "grass" | "iris" | "jade" | "mauve" | "mint" | "sage" | "sand" | "sky" | "slate" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
+
export type Density = 'compact' | 'default' | 'spacious';
|
|
15
|
+
interface GroundCommonProps {
|
|
16
|
+
/**
|
|
17
|
+
* Override the preset's primary. Inside tinted or solid scopes, only a
|
|
18
|
+
* pairing that §2's matrix verifies [D128].
|
|
19
|
+
*/
|
|
20
|
+
primary?: PrimaryScale;
|
|
21
|
+
/** Override the preset's secondary. */
|
|
22
|
+
secondary?: RadixScale;
|
|
23
|
+
/** Override the scope's action scale. */
|
|
24
|
+
action?: RadixScale;
|
|
25
|
+
/** Written as `data-density`; inherited by the scope, so never defaulted. */
|
|
26
|
+
density?: Density;
|
|
27
|
+
}
|
|
28
|
+
interface GroundBandProps {
|
|
29
|
+
/**
|
|
30
|
+
* `band` (default): a full-bleed section or the page root, drawing its
|
|
31
|
+
* `--role-seam` rule top and bottom (visible only on the night band in
|
|
32
|
+
* dark mode [D179]). `field`: an inset, fixed-mode surface with a radius
|
|
33
|
+
* and a `--primary12` edge. `face`: a nested card face, plate or panel.
|
|
34
|
+
*/
|
|
35
|
+
kind?: 'band';
|
|
36
|
+
/**
|
|
37
|
+
* A page ground (`paper` default, `white`, or one pastel per page:
|
|
38
|
+
* `tide`, `meadow`, `pollen`, `apricot`, `rose`, `heather`), which follows
|
|
39
|
+
* the page mode; or `night`, always dark, for the footer and the media hero
|
|
40
|
+
* only [D176, D177].
|
|
41
|
+
*/
|
|
42
|
+
preset?: BandPreset;
|
|
43
|
+
framed?: never;
|
|
44
|
+
onMedia?: never;
|
|
45
|
+
}
|
|
46
|
+
interface GroundFieldProps {
|
|
47
|
+
kind: 'field';
|
|
48
|
+
/**
|
|
49
|
+
* A field [D177]: `forest`, `royal`, `brick` (always dark) or `leaf`,
|
|
50
|
+
* `amber`, `clay`, `pink` (always light). Required.
|
|
51
|
+
*/
|
|
52
|
+
preset: FieldPreset;
|
|
53
|
+
/**
|
|
54
|
+
* The one framed feature field per page: `--ds-radius-feature` and a
|
|
55
|
+
* `--border-size-2` `--primary12` edge [D95]. Default `false`.
|
|
56
|
+
*/
|
|
57
|
+
framed?: boolean;
|
|
58
|
+
onMedia?: never;
|
|
59
|
+
}
|
|
60
|
+
interface GroundFaceProps {
|
|
61
|
+
kind: 'face';
|
|
62
|
+
/**
|
|
63
|
+
* A page ground as a card face, plate or panel (`paper` default). On a
|
|
64
|
+
* page ground it follows the mode; inside a field or the night band it is
|
|
65
|
+
* a light island [D149, D179].
|
|
66
|
+
*/
|
|
67
|
+
preset?: PageGroundPreset;
|
|
68
|
+
framed?: never;
|
|
69
|
+
onMedia?: never;
|
|
70
|
+
}
|
|
71
|
+
interface GroundMediaFaceProps {
|
|
72
|
+
kind: 'face';
|
|
73
|
+
/** `night` as a face: only the `onMedia` Button's dark face (§1.11.10). */
|
|
74
|
+
preset: 'night';
|
|
75
|
+
/** Declares the face as the `onMedia` Button's; required with `night` [D178]. */
|
|
76
|
+
onMedia: true;
|
|
77
|
+
framed?: never;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Props for Ground: `section` props, `render`, the kind and its preset, the
|
|
81
|
+
* scale overrides and the density. A discriminated union on `kind` [D178]:
|
|
82
|
+
* a field preset outside `kind="field"`, `night` as a field, `night` as a
|
|
83
|
+
* face other than `onMedia`, and deferred or retired presets are type
|
|
84
|
+
* errors. Page grounds always follow the mode, so a pastel can never be a
|
|
85
|
+
* fixed-mode anchor.
|
|
86
|
+
*/
|
|
87
|
+
export type GroundProps = useRender.ComponentProps<'section'> & GroundCommonProps & (GroundBandProps | GroundFieldProps | GroundFaceProps | GroundMediaFaceProps);
|
|
88
|
+
/**
|
|
89
|
+
* The ground scope component (§1.11.5). Writes data-ground, data-tone and
|
|
90
|
+
* data-scheme (and data-theme where the scope fixes its mode or is a light
|
|
91
|
+
* island [D149]), adds the scale classes for the preset's defaults or the
|
|
92
|
+
* overrides, paints `--role-ground`, publishes `--role-edge`, draws the
|
|
93
|
+
* seam on bands and the edge on fields, and provides the scope to
|
|
94
|
+
* descendants through React context [D148, D178].
|
|
95
|
+
*/
|
|
96
|
+
export declare const Ground: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
|
|
97
|
+
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
|
|
98
|
+
} & GroundCommonProps & GroundBandProps, "ref"> | Omit<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
|
|
99
|
+
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
|
|
100
|
+
} & GroundCommonProps & GroundFieldProps, "ref"> | Omit<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
|
|
101
|
+
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
|
|
102
|
+
} & GroundCommonProps & GroundFaceProps, "ref"> | Omit<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & {
|
|
103
|
+
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, {}> | undefined;
|
|
104
|
+
} & GroundCommonProps & GroundMediaFaceProps, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
105
|
+
//# sourceMappingURL=Ground.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ground.d.ts","sourceRoot":"","sources":["../../src/components/Ground/Ground.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAKrD,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KA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AC,GAC3D,iBAAiB,GACjB,CAAC,eAAe,GAAG,gBAAgB,GAAG,eAAe,GAAG,oBAAoB,CAAC,CAAA;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;;;;;;;;yFA4ElB,CAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useContext, useMemo } from 'react';
|
|
3
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
4
|
+
import { mergeProps } from '@base-ui/react/merge-props';
|
|
5
|
+
import { cva } from 'class-variance-authority';
|
|
6
|
+
import styles from './ground.module.css';
|
|
7
|
+
import { actionScaleVariants, primaryScaleVariants, secondaryScaleVariants, } from '../../utils/scales';
|
|
8
|
+
import { GroundContext, presetDefaults, presets, resolveScheme, } from '../../utils/scope';
|
|
9
|
+
export { companionField, companionFields, fieldPresets, pageGroundPresets, pastelPresets, presetDefaults, } from '../../utils/scope';
|
|
10
|
+
/*
|
|
11
|
+
* Ground (§1.11.5) [D178]. CVA function `ground`.
|
|
12
|
+
* - `kind` → band | field | face: geometry, and the container edge the
|
|
13
|
+
* scope publishes as --role-edge (--role-rule on a band, --primary12 on a
|
|
14
|
+
* field or a light island, --primary10 on a face on a page ground).
|
|
15
|
+
* - `framed` → the one framed feature field per page (fields only).
|
|
16
|
+
* - `island` is computed, never a prop: a page ground nested as a face
|
|
17
|
+
* inside a field or the night band [D149, D179].
|
|
18
|
+
* - Color axes: computed from the preset or the overrides, never defaulted
|
|
19
|
+
* [D133].
|
|
20
|
+
*/
|
|
21
|
+
export const ground = cva(styles.base, {
|
|
22
|
+
variants: {
|
|
23
|
+
kind: {
|
|
24
|
+
band: styles.band,
|
|
25
|
+
field: styles.field,
|
|
26
|
+
face: styles.face,
|
|
27
|
+
},
|
|
28
|
+
framed: {
|
|
29
|
+
true: styles.framed,
|
|
30
|
+
},
|
|
31
|
+
island: {
|
|
32
|
+
true: styles.island,
|
|
33
|
+
},
|
|
34
|
+
primary: primaryScaleVariants,
|
|
35
|
+
secondary: secondaryScaleVariants,
|
|
36
|
+
action: actionScaleVariants,
|
|
37
|
+
},
|
|
38
|
+
defaultVariants: {
|
|
39
|
+
kind: 'band',
|
|
40
|
+
framed: false,
|
|
41
|
+
island: false,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* The ground scope component (§1.11.5). Writes data-ground, data-tone and
|
|
46
|
+
* data-scheme (and data-theme where the scope fixes its mode or is a light
|
|
47
|
+
* island [D149]), adds the scale classes for the preset's defaults or the
|
|
48
|
+
* overrides, paints `--role-ground`, publishes `--role-edge`, draws the
|
|
49
|
+
* seam on bands and the edge on fields, and provides the scope to
|
|
50
|
+
* descendants through React context [D148, D178].
|
|
51
|
+
*/
|
|
52
|
+
export const Ground = React.forwardRef(function Ground(props, forwardedRef) {
|
|
53
|
+
const { preset: presetProp, kind: kindProp, framed,
|
|
54
|
+
// A type-level declaration only; never reaches the DOM.
|
|
55
|
+
onMedia: _onMedia, primary, secondary, action, density, render, className, children, ...rest } = props;
|
|
56
|
+
const preset = presetProp ?? 'paper';
|
|
57
|
+
const kind = kindProp ?? 'band';
|
|
58
|
+
const parent = useContext(GroundContext);
|
|
59
|
+
const { tone, mode } = presets[preset];
|
|
60
|
+
const scheme = resolveScheme(preset, parent);
|
|
61
|
+
// A follows-mode preset inside a fixed scope is a light island.
|
|
62
|
+
const island = mode === 'follows' && scheme === 'light';
|
|
63
|
+
const scope = useMemo(() => ({ ground: preset, tone, scheme, kind }), [preset, tone, scheme, kind]);
|
|
64
|
+
const defaults = presetDefaults[preset];
|
|
65
|
+
const resolvedPrimary = primary ?? defaults.primary;
|
|
66
|
+
const resolvedAction = action ?? (defaults.action === 'ink' ? resolvedPrimary : defaults.action);
|
|
67
|
+
// Fixed presets write their mode; a follows-mode preset writes nothing
|
|
68
|
+
// at page level and becomes a light island inside a fixed scope.
|
|
69
|
+
const theme = mode === 'always-dark'
|
|
70
|
+
? 'dark'
|
|
71
|
+
: mode === 'always-light' || island
|
|
72
|
+
? 'light'
|
|
73
|
+
: undefined;
|
|
74
|
+
const element = useRender({
|
|
75
|
+
defaultTagName: 'section',
|
|
76
|
+
render,
|
|
77
|
+
ref: forwardedRef,
|
|
78
|
+
props: mergeProps({
|
|
79
|
+
className: ground({
|
|
80
|
+
kind,
|
|
81
|
+
framed: kind === 'field' && framed === true,
|
|
82
|
+
island,
|
|
83
|
+
primary: resolvedPrimary,
|
|
84
|
+
secondary: secondary ?? defaults.secondary,
|
|
85
|
+
action: resolvedAction,
|
|
86
|
+
className,
|
|
87
|
+
}),
|
|
88
|
+
'data-ground': preset,
|
|
89
|
+
'data-tone': tone,
|
|
90
|
+
'data-scheme': scheme,
|
|
91
|
+
'data-theme': theme,
|
|
92
|
+
'data-density': density,
|
|
93
|
+
children,
|
|
94
|
+
}, rest),
|
|
95
|
+
});
|
|
96
|
+
return (React.createElement(GroundContext.Provider, { value: scope }, element));
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=Ground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ground.js","sourceRoot":"","sources":["../../src/components/Ground/Ground.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAA;AAE9C,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,GAGvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,aAAa,EACb,cAAc,EACd,OAAO,EACP,aAAa,GAOd,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,cAAc,EACd,eAAe,EACf,YAAY,EAC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AAE,KAAK;YACnB,cAAc,EAAE,OAAO;YACvB,QAAQ;SAC0B,EACpC,IAAI,CACL;KACF,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,OAAO,CAA0B,CACzE,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Ground: the preset scope (§1.11.5) [D178]. Paints the scope's ground, sets
|
|
3
|
+
* its one text ink, publishes the container edge as --role-edge, draws the
|
|
4
|
+
* seam on full-bleed bands and the edge on fields. Colors come from
|
|
5
|
+
* roles.css through the scope attributes the component writes; the module
|
|
6
|
+
* itself names role variables only and selects no scope or mode hook.
|
|
7
|
+
*
|
|
8
|
+
* The kind classes sit in the base layer, so a composing component's
|
|
9
|
+
* variant class (the Dialog's solid cover) can reset a field's geometry.
|
|
10
|
+
*/
|
|
11
|
+
@layer base {
|
|
12
|
+
.base {
|
|
13
|
+
display: block;
|
|
14
|
+
color: var(--primary12);
|
|
15
|
+
background-color: var(--role-ground);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Full-bleed band (a page ground, or the night band): a --border-size-1
|
|
20
|
+
* seam at top and bottom in --role-seam, invisible (the ground's own
|
|
21
|
+
* color) except on the night band in dark mode, where it is --primary12
|
|
22
|
+
* [D179]. A band has no container edge, so --role-edge is --role-rule.
|
|
23
|
+
* The hairline between two different page grounds is the §11.2 divider's.
|
|
24
|
+
*/
|
|
25
|
+
.band {
|
|
26
|
+
--role-edge: var(--role-rule);
|
|
27
|
+
|
|
28
|
+
border-block: var(--border-size-1) solid var(--role-seam);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Field [D177]: inset inside the content container, never full-bleed, with
|
|
33
|
+
* a radius and its own --primary12 edge at --border-size-1 in both modes;
|
|
34
|
+
* no seam, because the edge does that job.
|
|
35
|
+
*/
|
|
36
|
+
.field {
|
|
37
|
+
--role-edge: var(--primary12);
|
|
38
|
+
--ground-edge: var(--border-size-1);
|
|
39
|
+
|
|
40
|
+
padding: var(--ds-space-margin);
|
|
41
|
+
border: var(--ground-edge) solid var(--role-edge);
|
|
42
|
+
border-radius: var(--ds-radius-8);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* Nested face (card face, plate, panel): no seam and no geometry of its
|
|
47
|
+
* own; the composing component sets size and radius and draws its edge in
|
|
48
|
+
* --role-edge: --primary10 on a page ground [D179].
|
|
49
|
+
*/
|
|
50
|
+
.face {
|
|
51
|
+
--role-edge: var(--primary10);
|
|
52
|
+
|
|
53
|
+
border-block: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@layer variants {
|
|
58
|
+
/* A page ground inside a field or the night band: a light island with a --primary12 edge [D149, D179]. */
|
|
59
|
+
.island {
|
|
60
|
+
--role-edge: var(--primary12);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* The one framed feature field per page: --ds-radius-feature and a --border-size-2 edge [D95, D177]. */
|
|
64
|
+
.framed {
|
|
65
|
+
--ground-edge: var(--border-size-2);
|
|
66
|
+
|
|
67
|
+
border-radius: var(--ds-radius-feature);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@layer print {
|
|
72
|
+
@media print {
|
|
73
|
+
/* The seam is the printed ground-change rule (§1.4.5); the ground prints white. */
|
|
74
|
+
.band {
|
|
75
|
+
border-block-width: var(--border-size-1);
|
|
76
|
+
break-inside: auto;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* A field keeps its edge on paper; the framed feature field keeps --border-size-2 [D95]. */
|
|
80
|
+
.field {
|
|
81
|
+
break-inside: avoid;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Ground/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/Ground/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|