@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
package/utils/scope.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { PrimaryScale, RadixScale } from './scales';
|
|
2
|
+
/** The six step-3 pastel page grounds [D176]. */
|
|
3
|
+
export declare const pastelPresets: readonly ["tide", "meadow", "pollen", "apricot", "rose", "heather"];
|
|
4
|
+
export type PastelPreset = (typeof pastelPresets)[number];
|
|
5
|
+
/**
|
|
6
|
+
* The eight page grounds [D176]: follows-mode bands (or faces), painting the
|
|
7
|
+
* same step in both modes. A page has at most one pastel, as its page
|
|
8
|
+
* ground, with `paper` and `white` as its secondary bands [D179].
|
|
9
|
+
*/
|
|
10
|
+
export declare const pageGroundPresets: readonly ["paper", "white", "tide", "meadow", "pollen", "apricot", "rose", "heather"];
|
|
11
|
+
export type PageGroundPreset = (typeof pageGroundPresets)[number];
|
|
12
|
+
/**
|
|
13
|
+
* The seven fields [D177]: inset, fixed-mode surfaces with a radius and a
|
|
14
|
+
* `--primary12` edge, never full-bleed. `kind="field"` only.
|
|
15
|
+
*/
|
|
16
|
+
export declare const fieldPresets: readonly ["forest", "leaf", "amber", "clay", "pink", "royal", "brick"];
|
|
17
|
+
export type FieldPreset = (typeof fieldPresets)[number];
|
|
18
|
+
/** The presets a full-bleed band takes: the page grounds, and `night` for the footer and the media hero [D177]. */
|
|
19
|
+
export type BandPreset = PageGroundPreset | 'night';
|
|
20
|
+
/** Every v1 preset (§1.4.2) [D180]. */
|
|
21
|
+
export type GroundPreset = PageGroundPreset | 'night' | FieldPreset;
|
|
22
|
+
/**
|
|
23
|
+
* Ground's structural axis [D178]: a full-bleed `band` (a page ground, or
|
|
24
|
+
* the `night` band), an inset `field`, or a nested `face` (card face, plate,
|
|
25
|
+
* panel).
|
|
26
|
+
*/
|
|
27
|
+
export type GroundKind = 'band' | 'field' | 'face';
|
|
28
|
+
/**
|
|
29
|
+
* Tone, as `roles.css` keys it (§1.4.2, §1.4.3) [D116]: `light-base` (paper,
|
|
30
|
+
* white), `tinted` (the six pastels, one "pastel" ladder in both modes
|
|
31
|
+
* [D176]), `dark-base` (night), `dark-tinted` (forest), `solid-light` (leaf,
|
|
32
|
+
* amber, clay, pink) and `solid-dark` (royal, brick).
|
|
33
|
+
*/
|
|
34
|
+
export type Tone = 'light-base' | 'tinted' | 'dark-base' | 'dark-tinted' | 'solid-light' | 'solid-dark';
|
|
35
|
+
/**
|
|
36
|
+
* `page`: a follows-mode scope; `light` / `dark`: a fixed-mode scope
|
|
37
|
+
* (always-light field, light island, always-dark field or band) [D148].
|
|
38
|
+
*/
|
|
39
|
+
export type Scheme = 'page' | 'light' | 'dark';
|
|
40
|
+
export type ModeClass = 'follows' | 'always-light' | 'always-dark';
|
|
41
|
+
/** A preset's family (§1.4.2): which `kind` values accept it. */
|
|
42
|
+
export type PresetFamily = 'page' | 'night' | 'field';
|
|
43
|
+
export interface PresetDefinition {
|
|
44
|
+
family: PresetFamily;
|
|
45
|
+
tone: Tone;
|
|
46
|
+
mode: ModeClass;
|
|
47
|
+
}
|
|
48
|
+
/** §1.4.2 preset table: family, tone and mode class per preset. */
|
|
49
|
+
export declare const presets: Record<GroundPreset, PresetDefinition>;
|
|
50
|
+
export interface PresetDefaults {
|
|
51
|
+
primary: PrimaryScale;
|
|
52
|
+
secondary: RadixScale;
|
|
53
|
+
/** `ink`: the scope publishes its primary as the action scale (the ink pill). */
|
|
54
|
+
action: RadixScale | 'ink';
|
|
55
|
+
}
|
|
56
|
+
/** §1.4.2: defaults primary × secondary; action. Amber is the action on every page ground [D176]. */
|
|
57
|
+
export declare const presetDefaults: Record<GroundPreset, PresetDefaults>;
|
|
58
|
+
/**
|
|
59
|
+
* Each page ground's companion field [D177], which replaces the inverse
|
|
60
|
+
* pairs: the dark field for "inverse" placements and the Dialog's solid
|
|
61
|
+
* cover.
|
|
62
|
+
*/
|
|
63
|
+
export declare const companionFields: Record<PageGroundPreset, FieldPreset>;
|
|
64
|
+
/** The companion field of a page ground [D177], e.g. `companionField('tide')` is `royal`. */
|
|
65
|
+
export declare function companionField(preset: PageGroundPreset): FieldPreset;
|
|
66
|
+
export declare function isPageGroundPreset(preset: GroundPreset): preset is PageGroundPreset;
|
|
67
|
+
/** A full-bleed band preset: a page ground or `night` (not a field). */
|
|
68
|
+
export declare function isBandPreset(preset: GroundPreset): preset is BandPreset;
|
|
69
|
+
export declare function isPastelPreset(preset: GroundPreset): preset is PastelPreset;
|
|
70
|
+
export declare function isFieldPreset(preset: GroundPreset): preset is FieldPreset;
|
|
71
|
+
export interface ScopeValue {
|
|
72
|
+
ground: GroundPreset;
|
|
73
|
+
tone: Tone;
|
|
74
|
+
scheme: Scheme;
|
|
75
|
+
/** The scope's `kind` [D178]. */
|
|
76
|
+
kind: GroundKind;
|
|
77
|
+
}
|
|
78
|
+
export interface ScopeAttributes {
|
|
79
|
+
'data-ground': GroundPreset;
|
|
80
|
+
'data-tone': Tone;
|
|
81
|
+
'data-scheme': Scheme;
|
|
82
|
+
}
|
|
83
|
+
/** The page root is a `paper` band that follows the page mode (§1.4.3). */
|
|
84
|
+
export declare const rootScope: {
|
|
85
|
+
readonly ground: "paper";
|
|
86
|
+
readonly tone: "light-base";
|
|
87
|
+
readonly scheme: "page";
|
|
88
|
+
readonly kind: "band";
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Portaled overlay faces (menu, popover, dialog, toast) are a `white` scope
|
|
92
|
+
* that follows the page mode, whatever the trigger's ground [D139].
|
|
93
|
+
*/
|
|
94
|
+
export declare const overlayScope: {
|
|
95
|
+
readonly ground: "white";
|
|
96
|
+
readonly tone: "light-base";
|
|
97
|
+
readonly scheme: "page";
|
|
98
|
+
readonly kind: "face";
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* The nearest ground scope, provided by Ground. React context also reaches
|
|
102
|
+
* portaled overlays, which is why every root writes the attributes itself.
|
|
103
|
+
*/
|
|
104
|
+
export declare const GroundContext: import("react").Context<ScopeValue>;
|
|
105
|
+
export declare function toScopeAttributes(scope: ScopeValue): ScopeAttributes;
|
|
106
|
+
/** The scope a component root belongs to; the `paper` band without a Ground. */
|
|
107
|
+
export declare function useScope(): ScopeValue;
|
|
108
|
+
/**
|
|
109
|
+
* Spread onto every component root so `roles.css` re-resolves the `--role-*`
|
|
110
|
+
* aliases with that root's own `--primary*` / `--secondary*` [D148].
|
|
111
|
+
*/
|
|
112
|
+
export declare function useScopeAttributes(): ScopeAttributes;
|
|
113
|
+
/**
|
|
114
|
+
* The scheme a nested scope of `preset` takes inside `parent`: fixed presets
|
|
115
|
+
* (the night band and the fields) keep their mode; a page ground inside a
|
|
116
|
+
* fixed scope is a light island [D149, D179]; otherwise it follows the page.
|
|
117
|
+
*/
|
|
118
|
+
export declare function resolveScheme(preset: GroundPreset, parent: ScopeValue): Scheme;
|
|
119
|
+
//# sourceMappingURL=scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../src/utils/scope.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAQxD,iDAAiD;AACjD,eAAO,MAAM,aAAa,qEAAsE,CAAA;AAEhG,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,uFAAgD,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;GAGG;AACH,eAAO,MAAM,YAAY,wEAAyE,CAAA;AAElG,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,mHAAmH;AACnH,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,OAAO,CAAA;AAEnD,uCAAuC;AACvC,MAAM,MAAM,YAAY,GA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MAAM,IAAI,UAAU,CAEvE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,YAAY,CAE3E;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,WAAW,CAEzE;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,YAAY,CAAA;IAC3B,WAAW,EAAE,IAAI,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,2EAA2E;AAC3E,eAAO,MAAM,SAAS;;;;;CAKS,CAAA;AAE/B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;CAKM,CAAA;AAE/B;;;GAGG;AACH,eAAO,MAAM,aAAa,qCAAuC,CAAA;AAGjE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,eAAe,CAMpE;AAED,gFAAgF;AAChF,wBAAgB,QAAQ,IAAI,UAAU,CAErC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAK9E"}
|
package/utils/scope.js
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
/*
|
|
4
|
+
* The v1 ground presets (§1.4.2) [D176, D177, D180]: eight page grounds, the
|
|
5
|
+
* `night` band and seven fields, 16 in all. Deferred (sand, spruce, soil)
|
|
6
|
+
* and retired (lichen) presets are not accepted.
|
|
7
|
+
*/
|
|
8
|
+
/** The six step-3 pastel page grounds [D176]. */
|
|
9
|
+
export const pastelPresets = ['tide', 'meadow', 'pollen', 'apricot', 'rose', 'heather'];
|
|
10
|
+
/**
|
|
11
|
+
* The eight page grounds [D176]: follows-mode bands (or faces), painting the
|
|
12
|
+
* same step in both modes. A page has at most one pastel, as its page
|
|
13
|
+
* ground, with `paper` and `white` as its secondary bands [D179].
|
|
14
|
+
*/
|
|
15
|
+
export const pageGroundPresets = ['paper', 'white', ...pastelPresets];
|
|
16
|
+
/**
|
|
17
|
+
* The seven fields [D177]: inset, fixed-mode surfaces with a radius and a
|
|
18
|
+
* `--primary12` edge, never full-bleed. `kind="field"` only.
|
|
19
|
+
*/
|
|
20
|
+
export const fieldPresets = ['forest', 'leaf', 'amber', 'clay', 'pink', 'royal', 'brick'];
|
|
21
|
+
/** §1.4.2 preset table: family, tone and mode class per preset. */
|
|
22
|
+
export const presets = {
|
|
23
|
+
paper: { family: 'page', tone: 'light-base', mode: 'follows' },
|
|
24
|
+
white: { family: 'page', tone: 'light-base', mode: 'follows' },
|
|
25
|
+
tide: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
26
|
+
meadow: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
27
|
+
pollen: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
28
|
+
apricot: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
29
|
+
rose: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
30
|
+
heather: { family: 'page', tone: 'tinted', mode: 'follows' },
|
|
31
|
+
night: { family: 'night', tone: 'dark-base', mode: 'always-dark' },
|
|
32
|
+
forest: { family: 'field', tone: 'dark-tinted', mode: 'always-dark' },
|
|
33
|
+
leaf: { family: 'field', tone: 'solid-light', mode: 'always-light' },
|
|
34
|
+
amber: { family: 'field', tone: 'solid-light', mode: 'always-light' },
|
|
35
|
+
clay: { family: 'field', tone: 'solid-light', mode: 'always-light' },
|
|
36
|
+
pink: { family: 'field', tone: 'solid-light', mode: 'always-light' },
|
|
37
|
+
royal: { family: 'field', tone: 'solid-dark', mode: 'always-dark' },
|
|
38
|
+
brick: { family: 'field', tone: 'solid-dark', mode: 'always-dark' },
|
|
39
|
+
};
|
|
40
|
+
/** §1.4.2: defaults primary × secondary; action. Amber is the action on every page ground [D176]. */
|
|
41
|
+
export const presetDefaults = {
|
|
42
|
+
paper: { primary: 'olive', secondary: 'green', action: 'amber' },
|
|
43
|
+
white: { primary: 'olive', secondary: 'green', action: 'amber' },
|
|
44
|
+
tide: { primary: 'slate', secondary: 'blue', action: 'amber' },
|
|
45
|
+
meadow: { primary: 'sage', secondary: 'green', action: 'amber' },
|
|
46
|
+
pollen: { primary: 'sand', secondary: 'yellow', action: 'amber' },
|
|
47
|
+
apricot: { primary: 'sand', secondary: 'orange', action: 'amber' },
|
|
48
|
+
rose: { primary: 'mauve', secondary: 'red', action: 'amber' },
|
|
49
|
+
heather: { primary: 'mauve', secondary: 'purple', action: 'amber' },
|
|
50
|
+
night: { primary: 'slate', secondary: 'green', action: 'amber' },
|
|
51
|
+
forest: { primary: 'sage', secondary: 'amber', action: 'amber' },
|
|
52
|
+
leaf: { primary: 'olive', secondary: 'green', action: 'ink' },
|
|
53
|
+
amber: { primary: 'olive', secondary: 'amber', action: 'ink' },
|
|
54
|
+
clay: { primary: 'olive', secondary: 'orange', action: 'ink' },
|
|
55
|
+
pink: { primary: 'olive', secondary: 'pink', action: 'ink' },
|
|
56
|
+
royal: { primary: 'slate', secondary: 'indigo', action: 'amber' },
|
|
57
|
+
brick: { primary: 'mauve', secondary: 'red', action: 'amber' },
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Each page ground's companion field [D177], which replaces the inverse
|
|
61
|
+
* pairs: the dark field for "inverse" placements and the Dialog's solid
|
|
62
|
+
* cover.
|
|
63
|
+
*/
|
|
64
|
+
export const companionFields = {
|
|
65
|
+
paper: 'forest',
|
|
66
|
+
white: 'forest',
|
|
67
|
+
meadow: 'forest',
|
|
68
|
+
pollen: 'forest',
|
|
69
|
+
tide: 'royal',
|
|
70
|
+
heather: 'royal',
|
|
71
|
+
apricot: 'brick',
|
|
72
|
+
rose: 'brick',
|
|
73
|
+
};
|
|
74
|
+
/** The companion field of a page ground [D177], e.g. `companionField('tide')` is `royal`. */
|
|
75
|
+
export function companionField(preset) {
|
|
76
|
+
return companionFields[preset];
|
|
77
|
+
}
|
|
78
|
+
export function isPageGroundPreset(preset) {
|
|
79
|
+
return presets[preset].family === 'page';
|
|
80
|
+
}
|
|
81
|
+
/** A full-bleed band preset: a page ground or `night` (not a field). */
|
|
82
|
+
export function isBandPreset(preset) {
|
|
83
|
+
return preset === 'night' || isPageGroundPreset(preset);
|
|
84
|
+
}
|
|
85
|
+
export function isPastelPreset(preset) {
|
|
86
|
+
return presets[preset].tone === 'tinted';
|
|
87
|
+
}
|
|
88
|
+
export function isFieldPreset(preset) {
|
|
89
|
+
return presets[preset].family === 'field';
|
|
90
|
+
}
|
|
91
|
+
/** The page root is a `paper` band that follows the page mode (§1.4.3). */
|
|
92
|
+
export const rootScope = {
|
|
93
|
+
ground: 'paper',
|
|
94
|
+
tone: 'light-base',
|
|
95
|
+
scheme: 'page',
|
|
96
|
+
kind: 'band',
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Portaled overlay faces (menu, popover, dialog, toast) are a `white` scope
|
|
100
|
+
* that follows the page mode, whatever the trigger's ground [D139].
|
|
101
|
+
*/
|
|
102
|
+
export const overlayScope = {
|
|
103
|
+
ground: 'white',
|
|
104
|
+
tone: 'light-base',
|
|
105
|
+
scheme: 'page',
|
|
106
|
+
kind: 'face',
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The nearest ground scope, provided by Ground. React context also reaches
|
|
110
|
+
* portaled overlays, which is why every root writes the attributes itself.
|
|
111
|
+
*/
|
|
112
|
+
export const GroundContext = createContext(rootScope);
|
|
113
|
+
GroundContext.displayName = 'GroundContext';
|
|
114
|
+
export function toScopeAttributes(scope) {
|
|
115
|
+
return {
|
|
116
|
+
'data-ground': scope.ground,
|
|
117
|
+
'data-tone': scope.tone,
|
|
118
|
+
'data-scheme': scope.scheme,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** The scope a component root belongs to; the `paper` band without a Ground. */
|
|
122
|
+
export function useScope() {
|
|
123
|
+
return useContext(GroundContext);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Spread onto every component root so `roles.css` re-resolves the `--role-*`
|
|
127
|
+
* aliases with that root's own `--primary*` / `--secondary*` [D148].
|
|
128
|
+
*/
|
|
129
|
+
export function useScopeAttributes() {
|
|
130
|
+
return toScopeAttributes(useContext(GroundContext));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* The scheme a nested scope of `preset` takes inside `parent`: fixed presets
|
|
134
|
+
* (the night band and the fields) keep their mode; a page ground inside a
|
|
135
|
+
* fixed scope is a light island [D149, D179]; otherwise it follows the page.
|
|
136
|
+
*/
|
|
137
|
+
export function resolveScheme(preset, parent) {
|
|
138
|
+
const { mode } = presets[preset];
|
|
139
|
+
if (mode === 'always-dark')
|
|
140
|
+
return 'dark';
|
|
141
|
+
if (mode === 'always-light')
|
|
142
|
+
return 'light';
|
|
143
|
+
return parent.scheme === 'page' ? 'page' : 'light';
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../src/utils/scope.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIjD;;;;GAIG;AAEH,iDAAiD;AACjD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAU,CAAA;AAIhG;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,aAAa,CAAU,CAAA;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,CAAA;AAClC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,iBAAiB,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAA;AACrD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,MAAoB,EAAE,MAAkB;IACpE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,IAAI,KAAK,aAAa;QAAE,OAAO,MAAM,CAAA;IACzC,IAAI,IAAI,KAAK,cAAc;QAAE,OAAO,OAAO,CAAA;IAC3C,OAAO,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;AACpD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** A series slot of the semantic series order (§8.7): 1 solid, 2–5 patterns, 6 outline. */
|
|
3
|
+
export type SeriesSlot = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
/** A sequential step (§8.7): screen fills secondary 4 / 6 / 8 / 11 / 12. */
|
|
5
|
+
export type SequentialStep = 1 | 2 | 3 | 4 | 5;
|
|
6
|
+
/** The primary ink: even slots, slot 6, every edge, axis and label. */
|
|
7
|
+
export declare const INK_PRIMARY = "var(--primary12)";
|
|
8
|
+
/**
|
|
9
|
+
* The odd slots' ink, `--role-series-odd` (roles.css): `--secondary11` on a
|
|
10
|
+
* light base ground or a `white` plate, `--primary12` elsewhere (§8.7)
|
|
11
|
+
* [D125], so the scope picks two inks or one without a prop.
|
|
12
|
+
*/
|
|
13
|
+
export declare const INK_ODD = "var(--role-series-odd)";
|
|
14
|
+
/** The scope's ground: slot 6's inside and every pattern tile's ground. */
|
|
15
|
+
export declare const GROUND = "var(--role-ground)";
|
|
16
|
+
/** The label knockout plate (--primary1 in every scope and mode) [D150]. */
|
|
17
|
+
export declare const HALO = "var(--role-halo)";
|
|
18
|
+
/** Screen fills of the five sequential steps (§8.7). */
|
|
19
|
+
export declare const SEQUENTIAL_FILLS: Record<SequentialStep, string>;
|
|
20
|
+
/** Value ink on each sequential fill: --primary12 on steps 1–3, --role-inverse on 4–5. */
|
|
21
|
+
export declare const SEQUENTIAL_INKS: Record<SequentialStep, string>;
|
|
22
|
+
/**
|
|
23
|
+
* The ink a slot's marks take: odd slots the scope's odd ink (two-ink or
|
|
24
|
+
* one-ink by ground), even slots primary; forced one ink, all primary.
|
|
25
|
+
*/
|
|
26
|
+
export declare function slotInk(slot: SeriesSlot, oneInk: boolean): string;
|
|
27
|
+
/** The `id` of one pattern in a figure's defs. */
|
|
28
|
+
export declare function patternId(prefix: string, name: string): string;
|
|
29
|
+
/** The fill a slot's shape takes: solid ink, a pattern reference, or the ground. */
|
|
30
|
+
export declare function slotFill(prefix: string, slot: SeriesSlot, oneInk: boolean): string;
|
|
31
|
+
/** The print (and one-ink screen) fill of a sequential step: step 1 is the empty ground. */
|
|
32
|
+
export declare function stepPatternFill(prefix: string, step: SequentialStep): string;
|
|
33
|
+
/** Makes a React id safe inside `url(#…)` and CSS: letters, digits, `-` and `_`. */
|
|
34
|
+
export declare function safeId(reactId: string, lead: string): string;
|
|
35
|
+
/** Classes the host module gives the pattern parts, for its print and forced-colors rules. */
|
|
36
|
+
export interface PatternClassNames {
|
|
37
|
+
/** Every mark (hatch line, dot). */
|
|
38
|
+
mark?: string;
|
|
39
|
+
/** Standard 1.25 px dots, which print at 1 pt (§1.5.9). */
|
|
40
|
+
dot?: string;
|
|
41
|
+
/** The tile ground. */
|
|
42
|
+
ground?: string;
|
|
43
|
+
}
|
|
44
|
+
/** Props for PatternDefs: which patterns one figure defines, and in which inks. */
|
|
45
|
+
export interface PatternDefsProps {
|
|
46
|
+
/** The figure's id prefix; each pattern id is `${prefix}-${name}`. */
|
|
47
|
+
prefix: string;
|
|
48
|
+
/**
|
|
49
|
+
* Forces every mark into --primary12. Off, odd slots take
|
|
50
|
+
* --role-series-odd, which the scope already resolves to --primary12 off
|
|
51
|
+
* the light base grounds (§8.7).
|
|
52
|
+
*/
|
|
53
|
+
oneInk: boolean;
|
|
54
|
+
/** Series slots whose patterns are needed (slots 1 and 6 need none). */
|
|
55
|
+
slots?: readonly SeriesSlot[];
|
|
56
|
+
/** Defines the sequential print patterns `step2`–`step5`. */
|
|
57
|
+
steps?: boolean;
|
|
58
|
+
/** Defines the map area fills `water`, `green` and `planned` (§8.10). */
|
|
59
|
+
map?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Counter-scale for a zoomed drawing, so pattern pitch keeps its screen
|
|
62
|
+
* size at every zoom level [I7]. Default 1.
|
|
63
|
+
*/
|
|
64
|
+
scale?: number;
|
|
65
|
+
/** Classes for the host module's print and forced-colors rules. */
|
|
66
|
+
classNames?: PatternClassNames;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* One figure's pattern definitions, in a <defs> element: the series slots it
|
|
70
|
+
* uses in their slot inks (odd --role-series-odd, even --primary12, or all
|
|
71
|
+
* --primary12 in one ink), the sequential print patterns in --primary12, and
|
|
72
|
+
* the map area fills (green space in the odd ink, §8.10).
|
|
73
|
+
*/
|
|
74
|
+
export declare function PatternDefs({ prefix, oneInk, slots, steps, map, scale, classNames, }: PatternDefsProps): React.JSX.Element;
|
|
75
|
+
//# sourceMappingURL=seriesPatterns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seriesPatterns.d.ts","sourceRoot":"","sources":["../src/utils/seriesPatterns.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAc9B,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAE9C,4EAA4E;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CA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IG;IACH,MAAM,EAAE,OAAO,CAAA;IACf,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,UAAU,EAAE,CAAA;IAC7B,6DAA6D;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,yEAAyE;IACzE,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mEAAmE;IACnE,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,MAAM,EACN,KAAU,EACV,KAAa,EACb,GAAW,EACX,KAAS,EACT,UAAe,GAChB,EAAE,gBAAgB,qBAuDlB"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cx } from './className';
|
|
4
|
+
/** The primary ink: even slots, slot 6, every edge, axis and label. */
|
|
5
|
+
export const INK_PRIMARY = 'var(--primary12)';
|
|
6
|
+
/**
|
|
7
|
+
* The odd slots' ink, `--role-series-odd` (roles.css): `--secondary11` on a
|
|
8
|
+
* light base ground or a `white` plate, `--primary12` elsewhere (§8.7)
|
|
9
|
+
* [D125], so the scope picks two inks or one without a prop.
|
|
10
|
+
*/
|
|
11
|
+
export const INK_ODD = 'var(--role-series-odd)';
|
|
12
|
+
/** The scope's ground: slot 6's inside and every pattern tile's ground. */
|
|
13
|
+
export const GROUND = 'var(--role-ground)';
|
|
14
|
+
/** The label knockout plate (--primary1 in every scope and mode) [D150]. */
|
|
15
|
+
export const HALO = 'var(--role-halo)';
|
|
16
|
+
/** Screen fills of the five sequential steps (§8.7). */
|
|
17
|
+
export const SEQUENTIAL_FILLS = {
|
|
18
|
+
1: 'var(--secondary4)',
|
|
19
|
+
2: 'var(--secondary6)',
|
|
20
|
+
3: 'var(--secondary8)',
|
|
21
|
+
4: 'var(--secondary11)',
|
|
22
|
+
5: 'var(--secondary12)',
|
|
23
|
+
};
|
|
24
|
+
/** Value ink on each sequential fill: --primary12 on steps 1–3, --role-inverse on 4–5. */
|
|
25
|
+
export const SEQUENTIAL_INKS = {
|
|
26
|
+
1: INK_PRIMARY,
|
|
27
|
+
2: INK_PRIMARY,
|
|
28
|
+
3: INK_PRIMARY,
|
|
29
|
+
4: 'var(--role-inverse)',
|
|
30
|
+
5: 'var(--role-inverse)',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The ink a slot's marks take: odd slots the scope's odd ink (two-ink or
|
|
34
|
+
* one-ink by ground), even slots primary; forced one ink, all primary.
|
|
35
|
+
*/
|
|
36
|
+
export function slotInk(slot, oneInk) {
|
|
37
|
+
return oneInk || slot % 2 === 0 ? INK_PRIMARY : INK_ODD;
|
|
38
|
+
}
|
|
39
|
+
/** The `id` of one pattern in a figure's defs. */
|
|
40
|
+
export function patternId(prefix, name) {
|
|
41
|
+
return `${prefix}-${name}`;
|
|
42
|
+
}
|
|
43
|
+
/** The fill a slot's shape takes: solid ink, a pattern reference, or the ground. */
|
|
44
|
+
export function slotFill(prefix, slot, oneInk) {
|
|
45
|
+
if (slot === 1)
|
|
46
|
+
return slotInk(1, oneInk);
|
|
47
|
+
if (slot === 6)
|
|
48
|
+
return GROUND;
|
|
49
|
+
return `url(#${patternId(prefix, `slot${slot}`)})`;
|
|
50
|
+
}
|
|
51
|
+
/** The print (and one-ink screen) fill of a sequential step: step 1 is the empty ground. */
|
|
52
|
+
export function stepPatternFill(prefix, step) {
|
|
53
|
+
return step === 1 ? GROUND : `url(#${patternId(prefix, `step${step}`)})`;
|
|
54
|
+
}
|
|
55
|
+
/** Makes a React id safe inside `url(#…)` and CSS: letters, digits, `-` and `_`. */
|
|
56
|
+
export function safeId(reactId, lead) {
|
|
57
|
+
return `${lead}${reactId.replace(/[^a-zA-Z0-9_-]/g, '')}`;
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* §1.5.9 geometry, px: hatch 1 px lines at --ds-hatch-pitch 6 px, measured
|
|
61
|
+
* perpendicular to the lines (an SVG pattern rotates an exact 6 px tile, so
|
|
62
|
+
* it needs no 8 px CSS tile); dot screens --ds-dotscreen-dot 1.25 px or
|
|
63
|
+
* --ds-dotscreen-dot-heavy 2 px at --ds-dotscreen-pitch-1/-2/-3 (6/5/4 px).
|
|
64
|
+
* SVG pattern attributes cannot read custom properties, so the values are
|
|
65
|
+
* mirrored here.
|
|
66
|
+
*/
|
|
67
|
+
const HATCH_PITCH = 6;
|
|
68
|
+
const HATCH_LINE = 1;
|
|
69
|
+
const DOT_RADIUS = 0.625;
|
|
70
|
+
const DOT_RADIUS_HEAVY = 1;
|
|
71
|
+
const slotGeometry = {
|
|
72
|
+
2: { kind: 'hatch', angle: 45 },
|
|
73
|
+
3: { kind: 'dots', pitch: 5, heavy: false },
|
|
74
|
+
4: { kind: 'hatch', angle: 0 },
|
|
75
|
+
5: { kind: 'crossed' },
|
|
76
|
+
};
|
|
77
|
+
const stepGeometry = {
|
|
78
|
+
2: { kind: 'dots', pitch: 6, heavy: false },
|
|
79
|
+
3: { kind: 'dots', pitch: 4, heavy: false },
|
|
80
|
+
4: { kind: 'dots', pitch: 4, heavy: true },
|
|
81
|
+
5: { kind: 'crossed' },
|
|
82
|
+
};
|
|
83
|
+
function Pattern({ id, geometry, ink, scale, classNames }) {
|
|
84
|
+
const scaled = scale === 1 ? '' : `scale(${scale}) `;
|
|
85
|
+
if (geometry.kind === 'dots') {
|
|
86
|
+
const { pitch, heavy } = geometry;
|
|
87
|
+
return (React.createElement("pattern", { id: id, patternUnits: "userSpaceOnUse", width: pitch, height: pitch, patternTransform: scaled ? scaled.trim() : undefined },
|
|
88
|
+
React.createElement("rect", { width: pitch, height: pitch, fill: GROUND, className: classNames.ground }),
|
|
89
|
+
React.createElement("circle", { cx: pitch / 2, cy: pitch / 2, r: heavy ? DOT_RADIUS_HEAVY : DOT_RADIUS, fill: ink, className: cx(classNames.mark, !heavy && classNames.dot) || undefined })));
|
|
90
|
+
}
|
|
91
|
+
const angle = geometry.kind === 'crossed' ? 45 : geometry.angle;
|
|
92
|
+
// A vertical 1 px line rotated by 45 draws "/", by -45 "\" (y points down).
|
|
93
|
+
const rotation = angle === 0 ? '' : angle === 45 ? 'rotate(45)' : 'rotate(-45)';
|
|
94
|
+
const transform = `${scaled}${rotation}`.trim();
|
|
95
|
+
return (React.createElement("pattern", { id: id, patternUnits: "userSpaceOnUse", width: HATCH_PITCH, height: HATCH_PITCH, patternTransform: transform || undefined },
|
|
96
|
+
React.createElement("rect", { width: HATCH_PITCH, height: HATCH_PITCH, fill: GROUND, className: classNames.ground }),
|
|
97
|
+
angle === 0 ? (React.createElement("rect", { width: HATCH_PITCH, height: HATCH_LINE, fill: ink, className: classNames.mark })) : (React.createElement("rect", { width: HATCH_LINE, height: HATCH_PITCH, fill: ink, className: classNames.mark })),
|
|
98
|
+
geometry.kind === 'crossed' ? (React.createElement("rect", { width: HATCH_PITCH, height: HATCH_LINE, fill: ink, className: classNames.mark })) : null));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* One figure's pattern definitions, in a <defs> element: the series slots it
|
|
102
|
+
* uses in their slot inks (odd --role-series-odd, even --primary12, or all
|
|
103
|
+
* --primary12 in one ink), the sequential print patterns in --primary12, and
|
|
104
|
+
* the map area fills (green space in the odd ink, §8.10).
|
|
105
|
+
*/
|
|
106
|
+
export function PatternDefs({ prefix, oneInk, slots = [], steps = false, map = false, scale = 1, classNames = {}, }) {
|
|
107
|
+
const patternSlots = Array.from(new Set(slots)).filter((slot) => slot > 1 && slot < 6);
|
|
108
|
+
return (React.createElement("defs", null,
|
|
109
|
+
patternSlots.map((slot) => (React.createElement(Pattern, { key: `slot${slot}`, id: patternId(prefix, `slot${slot}`), geometry: slotGeometry[slot], ink: slotInk(slot, oneInk), scale: scale, classNames: classNames }))),
|
|
110
|
+
steps
|
|
111
|
+
? [2, 3, 4, 5].map((step) => (React.createElement(Pattern, { key: `step${step}`, id: patternId(prefix, `step${step}`), geometry: stepGeometry[step], ink: INK_PRIMARY, scale: scale, classNames: classNames })))
|
|
112
|
+
: null,
|
|
113
|
+
map ? (React.createElement(React.Fragment, null,
|
|
114
|
+
React.createElement(Pattern, { id: patternId(prefix, 'water'), geometry: { kind: 'hatch', angle: 45 }, ink: INK_PRIMARY, scale: scale, classNames: classNames }),
|
|
115
|
+
React.createElement(Pattern, { id: patternId(prefix, 'green'), geometry: { kind: 'dots', pitch: 6, heavy: false }, ink: oneInk ? INK_PRIMARY : INK_ODD, scale: scale, classNames: classNames }),
|
|
116
|
+
React.createElement(Pattern, { id: patternId(prefix, 'planned'), geometry: { kind: 'hatch', angle: 135 }, ink: INK_PRIMARY, scale: scale, classNames: classNames }))) : null));
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=seriesPatterns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seriesPatterns.js","sourceRoot":"","sources":["../src/utils/seriesPatterns.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAkBhC,uEAAuE;AACvE,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,wBAAwB,CAAA;AAE/C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,oBAAoB,CAAA;AAE1C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAA;AAEtC,wDAAwD;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAmC;IAC9D,CAAC,EAAE,mBAAmB;IACtB,CAAC,EAAE,mBAAmB;IACtB,CAAC,EAAE,mBAAmB;IACtB,CAAC,EAAE,oBAAoB;IACvB,CAAC,EAAE,oBAAoB;CACxB,CAAA;AAED,0FAA0F;AAC1F,MAAM,CAA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AA;AACH,CAAC"}
|
package/utils/theme.css
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Mode blocks (§1.11.9), follow-OS strategy: light on :root and
|
|
3
|
+
* [data-theme="light"]; dark on [data-theme="dark"] and, screen only, on an
|
|
4
|
+
* html without data-theme="light". The attribute block follows the :root
|
|
5
|
+
* block. Scale values and the per-scale contrast inks live in colors.css.
|
|
6
|
+
*/
|
|
7
|
+
@layer theme {
|
|
8
|
+
:root,
|
|
9
|
+
[data-theme='light'] {
|
|
10
|
+
color-scheme: light;
|
|
11
|
+
--ds-font-fine: var(--ds-font-text);
|
|
12
|
+
--ds-muted-weight-step: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-theme='dark'] {
|
|
16
|
+
color-scheme: dark;
|
|
17
|
+
--ds-font-fine: var(--ds-font-ui);
|
|
18
|
+
--ds-muted-weight-step: 100;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media only screen and (prefers-color-scheme: dark) {
|
|
22
|
+
:root:not([data-theme='light']) {
|
|
23
|
+
color-scheme: dark;
|
|
24
|
+
--ds-font-fine: var(--ds-font-ui);
|
|
25
|
+
--ds-muted-weight-step: 100;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|