@deriv-com/dds-marketing 0.1.0 → 0.2.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/.llm/components/accordion.md +193 -0
- package/.llm/components/accordionitem.md +236 -0
- package/.llm/components/aspectratio.md +212 -0
- package/.llm/components/badge.md +231 -0
- package/.llm/components/bottomsheet.md +404 -0
- package/.llm/components/breadcrumb.md +197 -0
- package/.llm/components/breadcrumbitem.md +178 -0
- package/.llm/components/button.md +271 -0
- package/.llm/components/buttonicon.md +313 -0
- package/.llm/components/card.md +313 -0
- package/.llm/components/cardbody.md +409 -0
- package/.llm/components/cardbutton.md +259 -0
- package/.llm/components/checkbox.md +285 -0
- package/.llm/components/divider.md +230 -0
- package/.llm/components/dropdownmenu.md +453 -0
- package/.llm/components/filterchip.md +314 -0
- package/.llm/components/footer.md +408 -0
- package/.llm/components/footergroup.md +241 -0
- package/.llm/components/grid.md +659 -0
- package/.llm/components/icon.md +194 -0
- package/.llm/components/link.md +354 -0
- package/.llm/components/menuitem.md +218 -0
- package/.llm/components/navbar.md +458 -0
- package/.llm/components/navbaritem.md +238 -0
- package/.llm/components/navbarmenu.md +319 -0
- package/.llm/components/navbarmenugroup.md +184 -0
- package/.llm/components/navbarpanel.md +255 -0
- package/.llm/components/navbarswitcher.md +343 -0
- package/.llm/components/navbarswitcheroption.md +156 -0
- package/.llm/components/option.md +268 -0
- package/.llm/components/pagination.md +361 -0
- package/.llm/components/removablechip.md +247 -0
- package/.llm/components/row.md +381 -0
- package/.llm/components/scroller.md +470 -0
- package/.llm/components/searchinput.md +279 -0
- package/.llm/components/segmentedcontrol.md +358 -0
- package/.llm/components/segmentedcontrolitem.md +272 -0
- package/.llm/components/select.md +509 -0
- package/.llm/components/selectchip.md +334 -0
- package/.llm/components/spinner.md +222 -0
- package/.llm/components/stack.md +334 -0
- package/.llm/components/statusdot.md +205 -0
- package/.llm/components/subdomainnavbar.md +327 -0
- package/.llm/components/tab.md +291 -0
- package/.llm/components/table.md +660 -0
- package/.llm/components/tablebody.md +258 -0
- package/.llm/components/tablecell.md +248 -0
- package/.llm/components/tablehead.md +248 -0
- package/.llm/components/tableheadercell.md +298 -0
- package/.llm/components/tablerow.md +285 -0
- package/.llm/components/tablist.md +210 -0
- package/.llm/components/textarea.md +362 -0
- package/.llm/components/textinput.md +467 -0
- package/.llm/components/tooltip.md +267 -0
- package/.llm/components/typography.md +245 -0
- package/.llm/digest/accordion.md +43 -0
- package/.llm/digest/accordionitem.md +47 -0
- package/.llm/digest/aspectratio.md +47 -0
- package/.llm/digest/badge.md +45 -0
- package/.llm/digest/bottomsheet.md +69 -0
- package/.llm/digest/breadcrumb.md +38 -0
- package/.llm/digest/breadcrumbitem.md +43 -0
- package/.llm/digest/button.md +48 -0
- package/.llm/digest/buttonicon.md +61 -0
- package/.llm/digest/card.md +50 -0
- package/.llm/digest/cardbody.md +68 -0
- package/.llm/digest/cardbutton.md +49 -0
- package/.llm/digest/checkbox.md +63 -0
- package/.llm/digest/divider.md +52 -0
- package/.llm/digest/dropdownmenu.md +67 -0
- package/.llm/digest/filterchip.md +68 -0
- package/.llm/digest/footer.md +57 -0
- package/.llm/digest/footergroup.md +42 -0
- package/.llm/digest/grid.md +62 -0
- package/.llm/digest/icon.md +45 -0
- package/.llm/digest/link.md +59 -0
- package/.llm/digest/menuitem.md +46 -0
- package/.llm/digest/navbar.md +60 -0
- package/.llm/digest/navbaritem.md +54 -0
- package/.llm/digest/navbarmenu.md +54 -0
- package/.llm/digest/navbarmenugroup.md +40 -0
- package/.llm/digest/navbarpanel.md +53 -0
- package/.llm/digest/navbarswitcher.md +51 -0
- package/.llm/digest/navbarswitcheroption.md +37 -0
- package/.llm/digest/option.md +54 -0
- package/.llm/digest/pagination.md +71 -0
- package/.llm/digest/removablechip.md +51 -0
- package/.llm/digest/row.md +60 -0
- package/.llm/digest/scroller.md +59 -0
- package/.llm/digest/searchinput.md +56 -0
- package/.llm/digest/segmentedcontrol.md +59 -0
- package/.llm/digest/segmentedcontrolitem.md +59 -0
- package/.llm/digest/select.md +92 -0
- package/.llm/digest/selectchip.md +68 -0
- package/.llm/digest/spinner.md +52 -0
- package/.llm/digest/stack.md +56 -0
- package/.llm/digest/statusdot.md +46 -0
- package/.llm/digest/subdomainnavbar.md +54 -0
- package/.llm/digest/tab.md +60 -0
- package/.llm/digest/table.md +71 -0
- package/.llm/digest/tablebody.md +49 -0
- package/.llm/digest/tablecell.md +55 -0
- package/.llm/digest/tablehead.md +50 -0
- package/.llm/digest/tableheadercell.md +65 -0
- package/.llm/digest/tablerow.md +56 -0
- package/.llm/digest/tablist.md +46 -0
- package/.llm/digest/textarea.md +78 -0
- package/.llm/digest/textinput.md +95 -0
- package/.llm/digest/tooltip.md +58 -0
- package/.llm/digest/typography.md +59 -0
- package/.llm/index.md +86 -0
- package/.llm/rules.md +122 -0
- package/.llm/tokens.md +341 -0
- package/AGENTS.md +164 -0
- package/LICENSE +21 -0
- package/README.md +63 -15
- package/dist/components/core/accordion/Accordion.css +10 -0
- package/dist/components/core/accordion/Accordion.d.ts +20 -0
- package/dist/components/core/accordion/Accordion.js +69 -0
- package/dist/components/core/accordion/Accordion.types.d.ts +20 -0
- package/dist/components/core/accordion/Accordion.types.js +7 -0
- package/dist/components/core/accordion-item/AccordionItem.css +98 -0
- package/dist/components/core/accordion-item/AccordionItem.d.ts +44 -0
- package/dist/components/core/accordion-item/AccordionItem.js +63 -0
- package/dist/components/core/accordion-item/AccordionItem.types.d.ts +32 -0
- package/dist/components/core/accordion-item/AccordionItem.types.js +13 -0
- package/dist/components/core/accordion-item/accordion-item-impl.css +107 -0
- package/dist/components/core/badge/Badge.css +37 -0
- package/dist/components/core/badge/Badge.d.ts +37 -0
- package/dist/components/core/badge/Badge.js +40 -0
- package/dist/components/core/badge/Badge.types.d.ts +24 -0
- package/dist/components/core/badge/Badge.types.js +8 -0
- package/dist/components/core/badge/badge-impl.css +32 -0
- package/dist/components/core/bottom-sheet/BottomSheet.css +178 -0
- package/dist/components/core/bottom-sheet/BottomSheet.d.ts +22 -0
- package/dist/components/core/bottom-sheet/BottomSheet.js +359 -0
- package/dist/components/core/bottom-sheet/BottomSheet.types.d.ts +67 -0
- package/dist/components/core/bottom-sheet/BottomSheet.types.js +18 -0
- package/dist/components/core/bottom-sheet/bottom-sheet-impl.css +57 -0
- package/dist/components/core/breadcrumb/Breadcrumb.css +19 -0
- package/dist/components/core/breadcrumb/Breadcrumb.d.ts +16 -0
- package/dist/components/core/breadcrumb/Breadcrumb.js +22 -0
- package/dist/components/core/breadcrumb/Breadcrumb.types.d.ts +18 -0
- package/dist/components/core/breadcrumb/Breadcrumb.types.js +9 -0
- package/dist/components/core/breadcrumb-item/BreadcrumbItem.css +34 -0
- package/dist/components/core/breadcrumb-item/BreadcrumbItem.d.ts +12 -0
- package/dist/components/core/breadcrumb-item/BreadcrumbItem.js +15 -0
- package/dist/components/core/breadcrumb-item/BreadcrumbItem.types.d.ts +22 -0
- package/dist/components/core/breadcrumb-item/BreadcrumbItem.types.js +9 -0
- package/dist/components/core/button/Button.css +141 -0
- package/dist/components/core/button/Button.d.ts +25 -0
- package/dist/components/core/button/Button.js +28 -0
- package/dist/components/core/button/Button.types.d.ts +40 -0
- package/dist/components/core/button/Button.types.js +9 -0
- package/dist/components/core/button/button-impl.css +46 -0
- package/dist/components/core/button-icon/ButtonIcon.css +135 -0
- package/dist/components/core/button-icon/ButtonIcon.d.ts +34 -0
- package/dist/components/core/button-icon/ButtonIcon.js +117 -0
- package/dist/components/core/button-icon/ButtonIcon.types.d.ts +41 -0
- package/dist/components/core/button-icon/ButtonIcon.types.js +8 -0
- package/dist/components/core/card/Card.css +65 -0
- package/dist/components/core/card/Card.d.ts +24 -0
- package/dist/components/core/card/Card.js +26 -0
- package/dist/components/core/card/Card.types.d.ts +33 -0
- package/dist/components/core/card/Card.types.js +7 -0
- package/dist/components/core/card-body/CardBody.css +139 -0
- package/dist/components/core/card-body/CardBody.d.ts +62 -0
- package/dist/components/core/card-body/CardBody.js +97 -0
- package/dist/components/core/card-body/CardBody.types.d.ts +61 -0
- package/dist/components/core/card-body/CardBody.types.js +15 -0
- package/dist/components/core/card-body/card-body-impl.css +87 -0
- package/dist/components/core/card-button/CardButton.css +73 -0
- package/dist/components/core/card-button/CardButton.d.ts +27 -0
- package/dist/components/core/card-button/CardButton.js +37 -0
- package/dist/components/core/card-button/CardButton.types.d.ts +24 -0
- package/dist/components/core/card-button/CardButton.types.js +7 -0
- package/dist/components/core/card-button/card-button-impl.css +39 -0
- package/dist/components/core/checkbox/Checkbox.css +149 -0
- package/dist/components/core/checkbox/Checkbox.d.ts +21 -0
- package/dist/components/core/checkbox/Checkbox.js +97 -0
- package/dist/components/core/checkbox/Checkbox.types.d.ts +46 -0
- package/dist/components/core/checkbox/Checkbox.types.js +15 -0
- package/dist/components/core/checkbox/checkbox-impl.css +90 -0
- package/dist/components/core/divider/Divider.css +41 -0
- package/dist/components/core/divider/Divider.d.ts +46 -0
- package/dist/components/core/divider/Divider.js +51 -0
- package/dist/components/core/divider/Divider.types.d.ts +25 -0
- package/dist/components/core/divider/Divider.types.js +9 -0
- package/dist/components/core/dropdown-menu/DropdownMenu.css +146 -0
- package/dist/components/core/dropdown-menu/DropdownMenu.d.ts +22 -0
- package/dist/components/core/dropdown-menu/DropdownMenu.js +309 -0
- package/dist/components/core/dropdown-menu/DropdownMenu.types.d.ts +62 -0
- package/dist/components/core/dropdown-menu/DropdownMenu.types.js +12 -0
- package/dist/components/core/dropdown-menu/dropdown-menu-impl.css +70 -0
- package/dist/components/core/filter-chip/FilterChip.css +149 -0
- package/dist/components/core/filter-chip/FilterChip.d.ts +23 -0
- package/dist/components/core/filter-chip/FilterChip.js +37 -0
- package/dist/components/core/filter-chip/FilterChip.types.d.ts +53 -0
- package/dist/components/core/filter-chip/FilterChip.types.js +12 -0
- package/dist/components/core/footer/Footer.css +104 -0
- package/dist/components/core/footer/Footer.d.ts +43 -0
- package/dist/components/core/footer/Footer.js +53 -0
- package/dist/components/core/footer/Footer.types.d.ts +47 -0
- package/dist/components/core/footer/Footer.types.js +18 -0
- package/dist/components/core/footer/footer-impl.css +218 -0
- package/dist/components/core/footer-group/FooterGroup.css +90 -0
- package/dist/components/core/footer-group/FooterGroup.d.ts +32 -0
- package/dist/components/core/footer-group/FooterGroup.js +64 -0
- package/dist/components/core/footer-group/FooterGroup.types.d.ts +25 -0
- package/dist/components/core/footer-group/FooterGroup.types.js +12 -0
- package/dist/components/core/footer-group/footer-group-impl.css +78 -0
- package/dist/components/core/icon/Icon.css +40 -0
- package/dist/components/core/icon/Icon.d.ts +23 -0
- package/dist/components/core/icon/Icon.js +79 -0
- package/dist/components/core/icon/Icon.types.d.ts +24 -0
- package/dist/components/core/icon/Icon.types.js +7 -0
- package/dist/components/core/link/Link.css +89 -0
- package/dist/components/core/link/Link.d.ts +37 -0
- package/dist/components/core/link/Link.js +141 -0
- package/dist/components/core/link/Link.types.d.ts +41 -0
- package/dist/components/core/link/Link.types.js +9 -0
- package/dist/components/core/link/link-impl.css +168 -0
- package/dist/components/core/menu-item/MenuItem.css +70 -0
- package/dist/components/core/menu-item/MenuItem.d.ts +11 -0
- package/dist/components/core/menu-item/MenuItem.js +26 -0
- package/dist/components/core/menu-item/MenuItem.types.d.ts +28 -0
- package/dist/components/core/menu-item/MenuItem.types.js +9 -0
- package/dist/components/core/navbar/Navbar.css +135 -0
- package/dist/components/core/navbar/Navbar.d.ts +36 -0
- package/dist/components/core/navbar/Navbar.js +371 -0
- package/dist/components/core/navbar/Navbar.types.d.ts +49 -0
- package/dist/components/core/navbar/Navbar.types.js +17 -0
- package/dist/components/core/navbar/navbar-impl.css +590 -0
- package/dist/components/core/navbar-item/NavbarItem.css +75 -0
- package/dist/components/core/navbar-item/NavbarItem.d.ts +22 -0
- package/dist/components/core/navbar-item/NavbarItem.js +40 -0
- package/dist/components/core/navbar-item/NavbarItem.types.d.ts +34 -0
- package/dist/components/core/navbar-item/NavbarItem.types.js +10 -0
- package/dist/components/core/navbar-menu/NavbarMenu.css +128 -0
- package/dist/components/core/navbar-menu/NavbarMenu.d.ts +5 -0
- package/dist/components/core/navbar-menu/NavbarMenu.js +186 -0
- package/dist/components/core/navbar-menu/NavbarMenu.types.d.ts +45 -0
- package/dist/components/core/navbar-menu/NavbarMenu.types.js +12 -0
- package/dist/components/core/navbar-menu/navbar-menu-impl.css +186 -0
- package/dist/components/core/navbar-menu-group/NavbarMenuGroup.css +26 -0
- package/dist/components/core/navbar-menu-group/NavbarMenuGroup.d.ts +17 -0
- package/dist/components/core/navbar-menu-group/NavbarMenuGroup.js +22 -0
- package/dist/components/core/navbar-menu-group/NavbarMenuGroup.types.d.ts +14 -0
- package/dist/components/core/navbar-menu-group/NavbarMenuGroup.types.js +7 -0
- package/dist/components/core/navbar-panel/NavbarPanel.css +87 -0
- package/dist/components/core/navbar-panel/NavbarPanel.d.ts +34 -0
- package/dist/components/core/navbar-panel/NavbarPanel.js +46 -0
- package/dist/components/core/navbar-panel/NavbarPanel.types.d.ts +29 -0
- package/dist/components/core/navbar-panel/NavbarPanel.types.js +12 -0
- package/dist/components/core/navbar-panel/navbar-panel-impl.css +104 -0
- package/dist/components/core/navbar-panel/use-navbar-panel.d.ts +26 -0
- package/dist/components/core/navbar-panel/use-navbar-panel.js +135 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.css +117 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.d.ts +20 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.js +90 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.types.d.ts +46 -0
- package/dist/components/core/navbar-switcher/NavbarSwitcher.types.js +13 -0
- package/dist/components/core/navbar-switcher/navbar-switcher-impl.css +179 -0
- package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.css +39 -0
- package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.d.ts +16 -0
- package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.js +19 -0
- package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.types.d.ts +18 -0
- package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.types.js +7 -0
- package/dist/components/core/option/Option.css +133 -0
- package/dist/components/core/option/Option.d.ts +25 -0
- package/dist/components/core/option/Option.js +31 -0
- package/dist/components/core/option/Option.types.d.ts +44 -0
- package/dist/components/core/option/Option.types.js +14 -0
- package/dist/components/core/pagination/Pagination.css +237 -0
- package/dist/components/core/pagination/Pagination.d.ts +30 -0
- package/dist/components/core/pagination/Pagination.js +406 -0
- package/dist/components/core/pagination/Pagination.types.d.ts +59 -0
- package/dist/components/core/pagination/Pagination.types.js +14 -0
- package/dist/components/core/pagination/pagination-impl.css +17 -0
- package/dist/components/core/removable-chip/RemovableChip.css +125 -0
- package/dist/components/core/removable-chip/RemovableChip.d.ts +25 -0
- package/dist/components/core/removable-chip/RemovableChip.js +36 -0
- package/dist/components/core/removable-chip/RemovableChip.types.d.ts +38 -0
- package/dist/components/core/removable-chip/RemovableChip.types.js +13 -0
- package/dist/components/core/search-input/SearchInput.css +205 -0
- package/dist/components/core/search-input/SearchInput.d.ts +5 -0
- package/dist/components/core/search-input/SearchInput.js +81 -0
- package/dist/components/core/search-input/SearchInput.types.d.ts +43 -0
- package/dist/components/core/search-input/SearchInput.types.js +13 -0
- package/dist/components/core/search-input/search-input-impl.css +20 -0
- package/dist/components/core/segmented-control/SegmentedControl.css +57 -0
- package/dist/components/core/segmented-control/SegmentedControl.d.ts +37 -0
- package/dist/components/core/segmented-control/SegmentedControl.js +269 -0
- package/dist/components/core/segmented-control/SegmentedControl.types.d.ts +38 -0
- package/dist/components/core/segmented-control/SegmentedControl.types.js +8 -0
- package/dist/components/core/segmented-control/segmented-control-impl.css +57 -0
- package/dist/components/core/segmented-control-item/SegmentedControlItem.css +151 -0
- package/dist/components/core/segmented-control-item/SegmentedControlItem.d.ts +50 -0
- package/dist/components/core/segmented-control-item/SegmentedControlItem.js +101 -0
- package/dist/components/core/segmented-control-item/SegmentedControlItem.types.d.ts +37 -0
- package/dist/components/core/segmented-control-item/SegmentedControlItem.types.js +10 -0
- package/dist/components/core/segmented-control-item/segmented-control-item-impl.css +69 -0
- package/dist/components/core/select/Select.css +400 -0
- package/dist/components/core/select/Select.d.ts +29 -0
- package/dist/components/core/select/Select.js +524 -0
- package/dist/components/core/select/Select.types.d.ts +96 -0
- package/dist/components/core/select/Select.types.js +26 -0
- package/dist/components/core/select/select-impl.css +114 -0
- package/dist/components/core/select-chip/SelectChip.css +155 -0
- package/dist/components/core/select-chip/SelectChip.d.ts +20 -0
- package/dist/components/core/select-chip/SelectChip.js +273 -0
- package/dist/components/core/select-chip/SelectChip.types.d.ts +56 -0
- package/dist/components/core/select-chip/SelectChip.types.js +14 -0
- package/dist/components/core/select-chip/select-chip-impl.css +38 -0
- package/dist/components/core/spinner/Spinner.css +76 -0
- package/dist/components/core/spinner/Spinner.d.ts +5 -0
- package/dist/components/core/spinner/Spinner.js +29 -0
- package/dist/components/core/spinner/Spinner.types.d.ts +37 -0
- package/dist/components/core/spinner/Spinner.types.js +10 -0
- package/dist/components/core/spinner/spinner-impl.css +27 -0
- package/dist/components/core/status-dot/StatusDot.css +43 -0
- package/dist/components/core/status-dot/StatusDot.d.ts +35 -0
- package/dist/components/core/status-dot/StatusDot.js +46 -0
- package/dist/components/core/status-dot/StatusDot.types.d.ts +29 -0
- package/dist/components/core/status-dot/StatusDot.types.js +7 -0
- package/dist/components/core/status-dot/status-dot-impl.css +42 -0
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.css +89 -0
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.d.ts +21 -0
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.js +127 -0
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.types.d.ts +43 -0
- package/dist/components/core/subdomain-navbar/SubdomainNavbar.types.js +13 -0
- package/dist/components/core/subdomain-navbar/subdomain-navbar-impl.css +147 -0
- package/dist/components/core/tab/Tab.css +113 -0
- package/dist/components/core/tab/Tab.d.ts +36 -0
- package/dist/components/core/tab/Tab.js +53 -0
- package/dist/components/core/tab/Tab.types.d.ts +42 -0
- package/dist/components/core/tab/Tab.types.js +13 -0
- package/dist/components/core/tab/tab-impl.css +49 -0
- package/dist/components/core/tab-list/TabList.css +40 -0
- package/dist/components/core/tab-list/TabList.d.ts +26 -0
- package/dist/components/core/tab-list/TabList.js +124 -0
- package/dist/components/core/tab-list/TabList.types.d.ts +20 -0
- package/dist/components/core/tab-list/TabList.types.js +7 -0
- package/dist/components/core/tab-list/tab-list-impl.css +56 -0
- package/dist/components/core/table/Table.css +40 -0
- package/dist/components/core/table/Table.d.ts +19 -0
- package/dist/components/core/table/Table.js +55 -0
- package/dist/components/core/table/Table.types.d.ts +59 -0
- package/dist/components/core/table/Table.types.js +9 -0
- package/dist/components/core/table/table-impl.css +75 -0
- package/dist/components/core/table/use-table-sort.d.ts +43 -0
- package/dist/components/core/table/use-table-sort.js +51 -0
- package/dist/components/core/table-body/TableBody.css +6 -0
- package/dist/components/core/table-body/TableBody.d.ts +12 -0
- package/dist/components/core/table-body/TableBody.js +26 -0
- package/dist/components/core/table-body/TableBody.types.d.ts +36 -0
- package/dist/components/core/table-body/TableBody.types.js +7 -0
- package/dist/components/core/table-cell/TableCell.css +76 -0
- package/dist/components/core/table-cell/TableCell.d.ts +21 -0
- package/dist/components/core/table-cell/TableCell.js +31 -0
- package/dist/components/core/table-cell/TableCell.types.d.ts +43 -0
- package/dist/components/core/table-cell/TableCell.types.js +7 -0
- package/dist/components/core/table-head/TableHead.css +6 -0
- package/dist/components/core/table-head/TableHead.d.ts +22 -0
- package/dist/components/core/table-head/TableHead.js +52 -0
- package/dist/components/core/table-head/TableHead.types.d.ts +39 -0
- package/dist/components/core/table-head/TableHead.types.js +7 -0
- package/dist/components/core/table-head/table-head-impl.css +51 -0
- package/dist/components/core/table-header-cell/TableHeaderCell.css +126 -0
- package/dist/components/core/table-header-cell/TableHeaderCell.d.ts +21 -0
- package/dist/components/core/table-header-cell/TableHeaderCell.js +34 -0
- package/dist/components/core/table-header-cell/TableHeaderCell.types.d.ts +56 -0
- package/dist/components/core/table-header-cell/TableHeaderCell.types.js +9 -0
- package/dist/components/core/table-header-cell/table-header-cell-impl.css +74 -0
- package/dist/components/core/table-row/TableRow.css +18 -0
- package/dist/components/core/table-row/TableRow.d.ts +17 -0
- package/dist/components/core/table-row/TableRow.js +32 -0
- package/dist/components/core/table-row/TableRow.types.d.ts +45 -0
- package/dist/components/core/table-row/TableRow.types.js +7 -0
- package/dist/components/core/table-row/table-row-impl.css +31 -0
- package/dist/components/core/text-area/TextArea.css +325 -0
- package/dist/components/core/text-area/TextArea.d.ts +13 -0
- package/dist/components/core/text-area/TextArea.js +133 -0
- package/dist/components/core/text-area/TextArea.types.d.ts +67 -0
- package/dist/components/core/text-area/TextArea.types.js +19 -0
- package/dist/components/core/text-area/text-area-impl.css +36 -0
- package/dist/components/core/text-input/TextInput.css +400 -0
- package/dist/components/core/text-input/TextInput.d.ts +5 -0
- package/dist/components/core/text-input/TextInput.js +130 -0
- package/dist/components/core/text-input/TextInput.types.d.ts +96 -0
- package/dist/components/core/text-input/TextInput.types.js +24 -0
- package/dist/components/core/text-input/text-input-impl.css +36 -0
- package/dist/components/core/tooltip/Tooltip.css +101 -0
- package/dist/components/core/tooltip/Tooltip.d.ts +51 -0
- package/dist/components/core/tooltip/Tooltip.js +87 -0
- package/dist/components/core/tooltip/Tooltip.types.d.ts +38 -0
- package/dist/components/core/tooltip/Tooltip.types.js +9 -0
- package/dist/components/core/tooltip/TooltipAnchor.d.ts +52 -0
- package/dist/components/core/tooltip/TooltipAnchor.js +69 -0
- package/dist/components/core/tooltip/tooltip-anchor.css +145 -0
- package/dist/components/core/tooltip/tooltip-impl.css +54 -0
- package/dist/components/core/tooltip/use-tooltip.d.ts +111 -0
- package/dist/components/core/tooltip/use-tooltip.js +189 -0
- package/dist/components/core/typography/Typography.css +96 -0
- package/dist/components/core/typography/Typography.d.ts +297 -0
- package/dist/components/core/typography/Typography.js +28 -0
- package/dist/components/core/typography/Typography.types.d.ts +40 -0
- package/dist/components/core/typography/Typography.types.js +7 -0
- package/dist/components/css-time.d.ts +20 -0
- package/dist/components/css-time.js +30 -0
- package/dist/components/given.d.ts +7 -0
- package/dist/components/given.js +9 -0
- package/dist/components/hover-open.d.ts +34 -0
- package/dist/components/hover-open.js +90 -0
- package/dist/components/index.d.ts +114 -1
- package/dist/components/index.js +115 -2
- package/dist/components/layout/aspect-ratio/AspectRatio.css +29 -0
- package/dist/components/layout/aspect-ratio/AspectRatio.d.ts +24 -0
- package/dist/components/layout/aspect-ratio/AspectRatio.js +26 -0
- package/dist/components/layout/aspect-ratio/AspectRatio.types.d.ts +22 -0
- package/dist/components/layout/aspect-ratio/AspectRatio.types.js +7 -0
- package/dist/components/layout/aspect-ratio/aspect-ratio-impl.css +44 -0
- package/dist/components/layout/grid/Grid.css +76 -0
- package/dist/components/layout/grid/Grid.d.ts +31 -0
- package/dist/components/layout/grid/Grid.js +33 -0
- package/dist/components/layout/grid/Grid.types.d.ts +48 -0
- package/dist/components/layout/grid/Grid.types.js +7 -0
- package/dist/components/layout/grid/grid-impl.css +62 -0
- package/dist/components/layout/row/Row.css +85 -0
- package/dist/components/layout/row/Row.d.ts +32 -0
- package/dist/components/layout/row/Row.js +34 -0
- package/dist/components/layout/row/Row.types.d.ts +45 -0
- package/dist/components/layout/row/Row.types.js +7 -0
- package/dist/components/layout/scroller/Scroller.css +59 -0
- package/dist/components/layout/scroller/Scroller.d.ts +34 -0
- package/dist/components/layout/scroller/Scroller.js +36 -0
- package/dist/components/layout/scroller/Scroller.types.d.ts +38 -0
- package/dist/components/layout/scroller/Scroller.types.js +7 -0
- package/dist/components/layout/scroller/scroller-impl.css +45 -0
- package/dist/components/layout/stack/Stack.css +73 -0
- package/dist/components/layout/stack/Stack.d.ts +28 -0
- package/dist/components/layout/stack/Stack.js +30 -0
- package/dist/components/layout/stack/Stack.types.d.ts +41 -0
- package/dist/components/layout/stack/Stack.types.js +7 -0
- package/dist/components/visually-hidden.d.ts +22 -0
- package/dist/components/visually-hidden.js +31 -0
- package/dist/fonts/LICENSE-inter.txt +93 -0
- package/dist/fonts/LICENSE-red-hat-mono.txt +93 -0
- package/dist/fonts/fonts.css +111 -0
- package/dist/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-greek-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/fonts/red-hat-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/red-hat-mono-latin-wght-normal.woff2 +0 -0
- package/dist/marketing.css +289 -241
- package/package.json +18 -4
|
@@ -1 +1,114 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { Accordion, type AccordionProps } from './core/accordion/Accordion.js';
|
|
2
|
+
export { accordionParts, accordionDefaults } from './core/accordion/Accordion.types.js';
|
|
3
|
+
export { AccordionItem, type AccordionItemProps } from './core/accordion-item/AccordionItem.js';
|
|
4
|
+
export { accordionItemParts, accordionItemDefaults } from './core/accordion-item/AccordionItem.types.js';
|
|
5
|
+
export { AspectRatio, type AspectRatioProps } from './layout/aspect-ratio/AspectRatio.js';
|
|
6
|
+
export { aspectRatioParts, aspectRatioDefaults } from './layout/aspect-ratio/AspectRatio.types.js';
|
|
7
|
+
export { Badge, type BadgeProps } from './core/badge/Badge.js';
|
|
8
|
+
export { badgeParts, badgeDefaults } from './core/badge/Badge.types.js';
|
|
9
|
+
export { BottomSheet, type BottomSheetProps } from './core/bottom-sheet/BottomSheet.js';
|
|
10
|
+
export { bottomSheetParts, bottomSheetDefaults } from './core/bottom-sheet/BottomSheet.types.js';
|
|
11
|
+
export { Breadcrumb, type BreadcrumbProps } from './core/breadcrumb/Breadcrumb.js';
|
|
12
|
+
export { breadcrumbParts, breadcrumbDefaults } from './core/breadcrumb/Breadcrumb.types.js';
|
|
13
|
+
export { BreadcrumbItem, type BreadcrumbItemProps } from './core/breadcrumb-item/BreadcrumbItem.js';
|
|
14
|
+
export { breadcrumbItemParts, breadcrumbItemDefaults } from './core/breadcrumb-item/BreadcrumbItem.types.js';
|
|
15
|
+
export { Button, type ButtonProps } from './core/button/Button.js';
|
|
16
|
+
export { buttonParts, buttonDefaults } from './core/button/Button.types.js';
|
|
17
|
+
export { ButtonIcon, type ButtonIconProps } from './core/button-icon/ButtonIcon.js';
|
|
18
|
+
export { buttonIconParts, buttonIconDefaults } from './core/button-icon/ButtonIcon.types.js';
|
|
19
|
+
export { Card, type CardProps } from './core/card/Card.js';
|
|
20
|
+
export { cardParts, cardDefaults } from './core/card/Card.types.js';
|
|
21
|
+
export { CardBody, type CardBodyProps } from './core/card-body/CardBody.js';
|
|
22
|
+
export { cardBodyParts, cardBodyDefaults } from './core/card-body/CardBody.types.js';
|
|
23
|
+
export { CardButton, type CardButtonProps } from './core/card-button/CardButton.js';
|
|
24
|
+
export { cardButtonParts, cardButtonDefaults } from './core/card-button/CardButton.types.js';
|
|
25
|
+
export { Checkbox, type CheckboxProps } from './core/checkbox/Checkbox.js';
|
|
26
|
+
export { checkboxParts, checkboxDefaults } from './core/checkbox/Checkbox.types.js';
|
|
27
|
+
export { Divider, type DividerProps } from './core/divider/Divider.js';
|
|
28
|
+
export { dividerParts, dividerDefaults } from './core/divider/Divider.types.js';
|
|
29
|
+
export { DropdownMenu, type DropdownMenuProps } from './core/dropdown-menu/DropdownMenu.js';
|
|
30
|
+
export { dropdownMenuParts, dropdownMenuDefaults } from './core/dropdown-menu/DropdownMenu.types.js';
|
|
31
|
+
export { FilterChip, type FilterChipProps } from './core/filter-chip/FilterChip.js';
|
|
32
|
+
export { filterChipParts, filterChipDefaults } from './core/filter-chip/FilterChip.types.js';
|
|
33
|
+
export { Footer, type FooterProps } from './core/footer/Footer.js';
|
|
34
|
+
export { footerParts, footerDefaults } from './core/footer/Footer.types.js';
|
|
35
|
+
export { FooterGroup, type FooterGroupProps } from './core/footer-group/FooterGroup.js';
|
|
36
|
+
export { footerGroupParts, footerGroupDefaults } from './core/footer-group/FooterGroup.types.js';
|
|
37
|
+
export { Grid, type GridProps } from './layout/grid/Grid.js';
|
|
38
|
+
export { gridParts, gridDefaults } from './layout/grid/Grid.types.js';
|
|
39
|
+
export { Icon, type IconProps } from './core/icon/Icon.js';
|
|
40
|
+
export { iconParts, iconDefaults } from './core/icon/Icon.types.js';
|
|
41
|
+
export { Link, type LinkProps } from './core/link/Link.js';
|
|
42
|
+
export { linkParts, linkDefaults } from './core/link/Link.types.js';
|
|
43
|
+
export { MenuItem, type MenuItemProps } from './core/menu-item/MenuItem.js';
|
|
44
|
+
export { menuItemParts, menuItemDefaults } from './core/menu-item/MenuItem.types.js';
|
|
45
|
+
export { Navbar, type NavbarProps } from './core/navbar/Navbar.js';
|
|
46
|
+
export { navbarParts, navbarDefaults } from './core/navbar/Navbar.types.js';
|
|
47
|
+
export { NavbarItem, type NavbarItemProps } from './core/navbar-item/NavbarItem.js';
|
|
48
|
+
export { navbarItemParts, navbarItemDefaults } from './core/navbar-item/NavbarItem.types.js';
|
|
49
|
+
export { NavbarMenu, type NavbarMenuProps } from './core/navbar-menu/NavbarMenu.js';
|
|
50
|
+
export { navbarMenuParts, navbarMenuDefaults } from './core/navbar-menu/NavbarMenu.types.js';
|
|
51
|
+
export { NavbarMenuGroup, type NavbarMenuGroupProps } from './core/navbar-menu-group/NavbarMenuGroup.js';
|
|
52
|
+
export { navbarMenuGroupParts } from './core/navbar-menu-group/NavbarMenuGroup.types.js';
|
|
53
|
+
export { NavbarPanel, type NavbarPanelProps } from './core/navbar-panel/NavbarPanel.js';
|
|
54
|
+
export { navbarPanelParts } from './core/navbar-panel/NavbarPanel.types.js';
|
|
55
|
+
export { useNavbarPanel } from './core/navbar-panel/use-navbar-panel.js';
|
|
56
|
+
export { NavbarSwitcher, type NavbarSwitcherProps } from './core/navbar-switcher/NavbarSwitcher.js';
|
|
57
|
+
export { navbarSwitcherParts, navbarSwitcherDefaults } from './core/navbar-switcher/NavbarSwitcher.types.js';
|
|
58
|
+
export { NavbarSwitcherOption, type NavbarSwitcherOptionProps } from './core/navbar-switcher-option/NavbarSwitcherOption.js';
|
|
59
|
+
export { navbarSwitcherOptionParts, navbarSwitcherOptionDefaults } from './core/navbar-switcher-option/NavbarSwitcherOption.types.js';
|
|
60
|
+
export { Option, type OptionProps } from './core/option/Option.js';
|
|
61
|
+
export { optionParts, optionDefaults } from './core/option/Option.types.js';
|
|
62
|
+
export { Pagination, type PaginationProps } from './core/pagination/Pagination.js';
|
|
63
|
+
export { paginationParts, paginationDefaults } from './core/pagination/Pagination.types.js';
|
|
64
|
+
export { RemovableChip, type RemovableChipProps } from './core/removable-chip/RemovableChip.js';
|
|
65
|
+
export { removableChipParts, removableChipDefaults } from './core/removable-chip/RemovableChip.types.js';
|
|
66
|
+
export { Row, type RowProps } from './layout/row/Row.js';
|
|
67
|
+
export { rowParts, rowDefaults } from './layout/row/Row.types.js';
|
|
68
|
+
export { Scroller, type ScrollerProps } from './layout/scroller/Scroller.js';
|
|
69
|
+
export { scrollerParts, scrollerDefaults } from './layout/scroller/Scroller.types.js';
|
|
70
|
+
export { SearchInput, type SearchInputProps } from './core/search-input/SearchInput.js';
|
|
71
|
+
export { searchInputParts, searchInputDefaults } from './core/search-input/SearchInput.types.js';
|
|
72
|
+
export { SegmentedControl, type SegmentedControlProps } from './core/segmented-control/SegmentedControl.js';
|
|
73
|
+
export { segmentedControlParts, segmentedControlDefaults } from './core/segmented-control/SegmentedControl.types.js';
|
|
74
|
+
export { SegmentedControlItem, type SegmentedControlItemProps } from './core/segmented-control-item/SegmentedControlItem.js';
|
|
75
|
+
export { segmentedControlItemParts, segmentedControlItemDefaults } from './core/segmented-control-item/SegmentedControlItem.types.js';
|
|
76
|
+
export { Select, type SelectProps } from './core/select/Select.js';
|
|
77
|
+
export { selectParts, selectDefaults } from './core/select/Select.types.js';
|
|
78
|
+
export { SelectChip, type SelectChipProps } from './core/select-chip/SelectChip.js';
|
|
79
|
+
export { selectChipParts, selectChipDefaults } from './core/select-chip/SelectChip.types.js';
|
|
80
|
+
export { Spinner, type SpinnerProps } from './core/spinner/Spinner.js';
|
|
81
|
+
export { spinnerParts, spinnerDefaults } from './core/spinner/Spinner.types.js';
|
|
82
|
+
export { Stack, type StackProps } from './layout/stack/Stack.js';
|
|
83
|
+
export { stackParts, stackDefaults } from './layout/stack/Stack.types.js';
|
|
84
|
+
export { StatusDot, type StatusDotProps } from './core/status-dot/StatusDot.js';
|
|
85
|
+
export { statusDotParts, statusDotDefaults } from './core/status-dot/StatusDot.types.js';
|
|
86
|
+
export { SubdomainNavbar, type SubdomainNavbarProps } from './core/subdomain-navbar/SubdomainNavbar.js';
|
|
87
|
+
export { subdomainNavbarParts, subdomainNavbarDefaults } from './core/subdomain-navbar/SubdomainNavbar.types.js';
|
|
88
|
+
export { Tab, type TabProps } from './core/tab/Tab.js';
|
|
89
|
+
export { tabParts, tabDefaults } from './core/tab/Tab.types.js';
|
|
90
|
+
export { Table, type TableProps } from './core/table/Table.js';
|
|
91
|
+
export { tableParts, tableDefaults } from './core/table/Table.types.js';
|
|
92
|
+
export { useTableSort, type TableSort, type TableSortDirection } from './core/table/use-table-sort.js';
|
|
93
|
+
export { TableBody, type TableBodyProps } from './core/table-body/TableBody.js';
|
|
94
|
+
export { tableBodyParts, tableBodyDefaults } from './core/table-body/TableBody.types.js';
|
|
95
|
+
export { TableCell, type TableCellProps } from './core/table-cell/TableCell.js';
|
|
96
|
+
export { tableCellParts, tableCellDefaults } from './core/table-cell/TableCell.types.js';
|
|
97
|
+
export { TableHead, type TableHeadProps } from './core/table-head/TableHead.js';
|
|
98
|
+
export { tableHeadParts, tableHeadDefaults } from './core/table-head/TableHead.types.js';
|
|
99
|
+
export { TableHeaderCell, type TableHeaderCellProps } from './core/table-header-cell/TableHeaderCell.js';
|
|
100
|
+
export { tableHeaderCellParts, tableHeaderCellDefaults } from './core/table-header-cell/TableHeaderCell.types.js';
|
|
101
|
+
export { TableRow, type TableRowProps } from './core/table-row/TableRow.js';
|
|
102
|
+
export { tableRowParts, tableRowDefaults } from './core/table-row/TableRow.types.js';
|
|
103
|
+
export { TabList, type TabListProps } from './core/tab-list/TabList.js';
|
|
104
|
+
export { tabListParts } from './core/tab-list/TabList.types.js';
|
|
105
|
+
export { TextArea, type TextAreaProps } from './core/text-area/TextArea.js';
|
|
106
|
+
export { textAreaParts, textAreaDefaults } from './core/text-area/TextArea.types.js';
|
|
107
|
+
export { TextInput, type TextInputProps } from './core/text-input/TextInput.js';
|
|
108
|
+
export { textInputParts, textInputDefaults } from './core/text-input/TextInput.types.js';
|
|
109
|
+
export { Tooltip, type TooltipProps } from './core/tooltip/Tooltip.js';
|
|
110
|
+
export { tooltipParts, tooltipDefaults } from './core/tooltip/Tooltip.types.js';
|
|
111
|
+
export { useTooltip, useTooltipDefaults, type UseTooltipOptions, type UseTooltipResult } from './core/tooltip/use-tooltip.js';
|
|
112
|
+
export { TooltipAnchor, type TooltipAnchorProps } from './core/tooltip/TooltipAnchor.js';
|
|
113
|
+
export { Typography, type TypographyProps } from './core/typography/Typography.js';
|
|
114
|
+
export { typographyParts, typographyDefaults } from './core/typography/Typography.types.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,115 @@
|
|
|
1
|
-
// GENERATED from components
|
|
2
|
-
export {};
|
|
1
|
+
// GENERATED from components/**/*.contract.json. Do not edit.
|
|
2
|
+
export { Accordion } from './core/accordion/Accordion.js';
|
|
3
|
+
export { accordionParts, accordionDefaults } from './core/accordion/Accordion.types.js';
|
|
4
|
+
export { AccordionItem } from './core/accordion-item/AccordionItem.js';
|
|
5
|
+
export { accordionItemParts, accordionItemDefaults } from './core/accordion-item/AccordionItem.types.js';
|
|
6
|
+
export { AspectRatio } from './layout/aspect-ratio/AspectRatio.js';
|
|
7
|
+
export { aspectRatioParts, aspectRatioDefaults } from './layout/aspect-ratio/AspectRatio.types.js';
|
|
8
|
+
export { Badge } from './core/badge/Badge.js';
|
|
9
|
+
export { badgeParts, badgeDefaults } from './core/badge/Badge.types.js';
|
|
10
|
+
export { BottomSheet } from './core/bottom-sheet/BottomSheet.js';
|
|
11
|
+
export { bottomSheetParts, bottomSheetDefaults } from './core/bottom-sheet/BottomSheet.types.js';
|
|
12
|
+
export { Breadcrumb } from './core/breadcrumb/Breadcrumb.js';
|
|
13
|
+
export { breadcrumbParts, breadcrumbDefaults } from './core/breadcrumb/Breadcrumb.types.js';
|
|
14
|
+
export { BreadcrumbItem } from './core/breadcrumb-item/BreadcrumbItem.js';
|
|
15
|
+
export { breadcrumbItemParts, breadcrumbItemDefaults } from './core/breadcrumb-item/BreadcrumbItem.types.js';
|
|
16
|
+
export { Button } from './core/button/Button.js';
|
|
17
|
+
export { buttonParts, buttonDefaults } from './core/button/Button.types.js';
|
|
18
|
+
export { ButtonIcon } from './core/button-icon/ButtonIcon.js';
|
|
19
|
+
export { buttonIconParts, buttonIconDefaults } from './core/button-icon/ButtonIcon.types.js';
|
|
20
|
+
export { Card } from './core/card/Card.js';
|
|
21
|
+
export { cardParts, cardDefaults } from './core/card/Card.types.js';
|
|
22
|
+
export { CardBody } from './core/card-body/CardBody.js';
|
|
23
|
+
export { cardBodyParts, cardBodyDefaults } from './core/card-body/CardBody.types.js';
|
|
24
|
+
export { CardButton } from './core/card-button/CardButton.js';
|
|
25
|
+
export { cardButtonParts, cardButtonDefaults } from './core/card-button/CardButton.types.js';
|
|
26
|
+
export { Checkbox } from './core/checkbox/Checkbox.js';
|
|
27
|
+
export { checkboxParts, checkboxDefaults } from './core/checkbox/Checkbox.types.js';
|
|
28
|
+
export { Divider } from './core/divider/Divider.js';
|
|
29
|
+
export { dividerParts, dividerDefaults } from './core/divider/Divider.types.js';
|
|
30
|
+
export { DropdownMenu } from './core/dropdown-menu/DropdownMenu.js';
|
|
31
|
+
export { dropdownMenuParts, dropdownMenuDefaults } from './core/dropdown-menu/DropdownMenu.types.js';
|
|
32
|
+
export { FilterChip } from './core/filter-chip/FilterChip.js';
|
|
33
|
+
export { filterChipParts, filterChipDefaults } from './core/filter-chip/FilterChip.types.js';
|
|
34
|
+
export { Footer } from './core/footer/Footer.js';
|
|
35
|
+
export { footerParts, footerDefaults } from './core/footer/Footer.types.js';
|
|
36
|
+
export { FooterGroup } from './core/footer-group/FooterGroup.js';
|
|
37
|
+
export { footerGroupParts, footerGroupDefaults } from './core/footer-group/FooterGroup.types.js';
|
|
38
|
+
export { Grid } from './layout/grid/Grid.js';
|
|
39
|
+
export { gridParts, gridDefaults } from './layout/grid/Grid.types.js';
|
|
40
|
+
export { Icon } from './core/icon/Icon.js';
|
|
41
|
+
export { iconParts, iconDefaults } from './core/icon/Icon.types.js';
|
|
42
|
+
export { Link } from './core/link/Link.js';
|
|
43
|
+
export { linkParts, linkDefaults } from './core/link/Link.types.js';
|
|
44
|
+
export { MenuItem } from './core/menu-item/MenuItem.js';
|
|
45
|
+
export { menuItemParts, menuItemDefaults } from './core/menu-item/MenuItem.types.js';
|
|
46
|
+
export { Navbar } from './core/navbar/Navbar.js';
|
|
47
|
+
export { navbarParts, navbarDefaults } from './core/navbar/Navbar.types.js';
|
|
48
|
+
export { NavbarItem } from './core/navbar-item/NavbarItem.js';
|
|
49
|
+
export { navbarItemParts, navbarItemDefaults } from './core/navbar-item/NavbarItem.types.js';
|
|
50
|
+
export { NavbarMenu } from './core/navbar-menu/NavbarMenu.js';
|
|
51
|
+
export { navbarMenuParts, navbarMenuDefaults } from './core/navbar-menu/NavbarMenu.types.js';
|
|
52
|
+
export { NavbarMenuGroup } from './core/navbar-menu-group/NavbarMenuGroup.js';
|
|
53
|
+
export { navbarMenuGroupParts } from './core/navbar-menu-group/NavbarMenuGroup.types.js';
|
|
54
|
+
export { NavbarPanel } from './core/navbar-panel/NavbarPanel.js';
|
|
55
|
+
export { navbarPanelParts } from './core/navbar-panel/NavbarPanel.types.js';
|
|
56
|
+
export { useNavbarPanel } from './core/navbar-panel/use-navbar-panel.js';
|
|
57
|
+
export { NavbarSwitcher } from './core/navbar-switcher/NavbarSwitcher.js';
|
|
58
|
+
export { navbarSwitcherParts, navbarSwitcherDefaults } from './core/navbar-switcher/NavbarSwitcher.types.js';
|
|
59
|
+
export { NavbarSwitcherOption } from './core/navbar-switcher-option/NavbarSwitcherOption.js';
|
|
60
|
+
export { navbarSwitcherOptionParts, navbarSwitcherOptionDefaults } from './core/navbar-switcher-option/NavbarSwitcherOption.types.js';
|
|
61
|
+
export { Option } from './core/option/Option.js';
|
|
62
|
+
export { optionParts, optionDefaults } from './core/option/Option.types.js';
|
|
63
|
+
export { Pagination } from './core/pagination/Pagination.js';
|
|
64
|
+
export { paginationParts, paginationDefaults } from './core/pagination/Pagination.types.js';
|
|
65
|
+
export { RemovableChip } from './core/removable-chip/RemovableChip.js';
|
|
66
|
+
export { removableChipParts, removableChipDefaults } from './core/removable-chip/RemovableChip.types.js';
|
|
67
|
+
export { Row } from './layout/row/Row.js';
|
|
68
|
+
export { rowParts, rowDefaults } from './layout/row/Row.types.js';
|
|
69
|
+
export { Scroller } from './layout/scroller/Scroller.js';
|
|
70
|
+
export { scrollerParts, scrollerDefaults } from './layout/scroller/Scroller.types.js';
|
|
71
|
+
export { SearchInput } from './core/search-input/SearchInput.js';
|
|
72
|
+
export { searchInputParts, searchInputDefaults } from './core/search-input/SearchInput.types.js';
|
|
73
|
+
export { SegmentedControl } from './core/segmented-control/SegmentedControl.js';
|
|
74
|
+
export { segmentedControlParts, segmentedControlDefaults } from './core/segmented-control/SegmentedControl.types.js';
|
|
75
|
+
export { SegmentedControlItem } from './core/segmented-control-item/SegmentedControlItem.js';
|
|
76
|
+
export { segmentedControlItemParts, segmentedControlItemDefaults } from './core/segmented-control-item/SegmentedControlItem.types.js';
|
|
77
|
+
export { Select } from './core/select/Select.js';
|
|
78
|
+
export { selectParts, selectDefaults } from './core/select/Select.types.js';
|
|
79
|
+
export { SelectChip } from './core/select-chip/SelectChip.js';
|
|
80
|
+
export { selectChipParts, selectChipDefaults } from './core/select-chip/SelectChip.types.js';
|
|
81
|
+
export { Spinner } from './core/spinner/Spinner.js';
|
|
82
|
+
export { spinnerParts, spinnerDefaults } from './core/spinner/Spinner.types.js';
|
|
83
|
+
export { Stack } from './layout/stack/Stack.js';
|
|
84
|
+
export { stackParts, stackDefaults } from './layout/stack/Stack.types.js';
|
|
85
|
+
export { StatusDot } from './core/status-dot/StatusDot.js';
|
|
86
|
+
export { statusDotParts, statusDotDefaults } from './core/status-dot/StatusDot.types.js';
|
|
87
|
+
export { SubdomainNavbar } from './core/subdomain-navbar/SubdomainNavbar.js';
|
|
88
|
+
export { subdomainNavbarParts, subdomainNavbarDefaults } from './core/subdomain-navbar/SubdomainNavbar.types.js';
|
|
89
|
+
export { Tab } from './core/tab/Tab.js';
|
|
90
|
+
export { tabParts, tabDefaults } from './core/tab/Tab.types.js';
|
|
91
|
+
export { Table } from './core/table/Table.js';
|
|
92
|
+
export { tableParts, tableDefaults } from './core/table/Table.types.js';
|
|
93
|
+
export { useTableSort } from './core/table/use-table-sort.js';
|
|
94
|
+
export { TableBody } from './core/table-body/TableBody.js';
|
|
95
|
+
export { tableBodyParts, tableBodyDefaults } from './core/table-body/TableBody.types.js';
|
|
96
|
+
export { TableCell } from './core/table-cell/TableCell.js';
|
|
97
|
+
export { tableCellParts, tableCellDefaults } from './core/table-cell/TableCell.types.js';
|
|
98
|
+
export { TableHead } from './core/table-head/TableHead.js';
|
|
99
|
+
export { tableHeadParts, tableHeadDefaults } from './core/table-head/TableHead.types.js';
|
|
100
|
+
export { TableHeaderCell } from './core/table-header-cell/TableHeaderCell.js';
|
|
101
|
+
export { tableHeaderCellParts, tableHeaderCellDefaults } from './core/table-header-cell/TableHeaderCell.types.js';
|
|
102
|
+
export { TableRow } from './core/table-row/TableRow.js';
|
|
103
|
+
export { tableRowParts, tableRowDefaults } from './core/table-row/TableRow.types.js';
|
|
104
|
+
export { TabList } from './core/tab-list/TabList.js';
|
|
105
|
+
export { tabListParts } from './core/tab-list/TabList.types.js';
|
|
106
|
+
export { TextArea } from './core/text-area/TextArea.js';
|
|
107
|
+
export { textAreaParts, textAreaDefaults } from './core/text-area/TextArea.types.js';
|
|
108
|
+
export { TextInput } from './core/text-input/TextInput.js';
|
|
109
|
+
export { textInputParts, textInputDefaults } from './core/text-input/TextInput.types.js';
|
|
110
|
+
export { Tooltip } from './core/tooltip/Tooltip.js';
|
|
111
|
+
export { tooltipParts, tooltipDefaults } from './core/tooltip/Tooltip.types.js';
|
|
112
|
+
export { useTooltip, useTooltipDefaults } from './core/tooltip/use-tooltip.js';
|
|
113
|
+
export { TooltipAnchor } from './core/tooltip/TooltipAnchor.js';
|
|
114
|
+
export { Typography } from './core/typography/Typography.js';
|
|
115
|
+
export { typographyParts, typographyDefaults } from './core/typography/Typography.types.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* GENERATED from aspectratio.contract.json. Do not edit. */
|
|
2
|
+
|
|
3
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: block;
|
|
6
|
+
inline-size: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio[data-ratio="landscape"] {
|
|
11
|
+
aspect-ratio: var(--aspect-landscape);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio[data-ratio="portrait"] {
|
|
15
|
+
aspect-ratio: var(--aspect-portrait);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio[data-ratio="square"] {
|
|
19
|
+
aspect-ratio: var(--aspect-square);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio[data-ratio="ultrawide"] {
|
|
23
|
+
aspect-ratio: var(--aspect-ultrawide);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio[data-ratio="widescreen"] {
|
|
27
|
+
aspect-ratio: var(--aspect-widescreen);
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import './AspectRatio.css';
|
|
2
|
+
import './aspect-ratio-impl.css';
|
|
3
|
+
import { type AspectRatioProps } from './AspectRatio.types.js';
|
|
4
|
+
export type { AspectRatioProps };
|
|
5
|
+
/**
|
|
6
|
+
* A box that holds one shape whatever is put in it.
|
|
7
|
+
*
|
|
8
|
+
* It renders one element and decides one thing. The ratio reaches the stylesheet as
|
|
9
|
+
* an axis rather than a style written here, which is what makes it a shape the system
|
|
10
|
+
* knows about: one rule per shape, and a variant grid a designer can judge them in.
|
|
11
|
+
* A free ratio would have to be an inline style — a number cannot be a styling axis,
|
|
12
|
+
* because an axis emits one rule per value and a number has none to enumerate — and
|
|
13
|
+
* the component's whole purpose would then be invisible to every gate. CardBody's own
|
|
14
|
+
* `aspect` is that shape, and its source says so.
|
|
15
|
+
*
|
|
16
|
+
* It draws nothing and has no size of its own. A ratio and a width give a height; a
|
|
17
|
+
* ratio alone gives nothing, so the box is as wide as whatever holds it and as tall as
|
|
18
|
+
* that width implies. What fills it is stated in the impl sheet, because the child is
|
|
19
|
+
* whatever the page passed and there is no part here to put a class on.
|
|
20
|
+
*
|
|
21
|
+
* The spread goes first, so a consumer can set an id, a test hook or a label and cannot
|
|
22
|
+
* write over the class or the axis the stylesheet reads.
|
|
23
|
+
*/
|
|
24
|
+
export declare function AspectRatio({ ratio, children, ...rest }: AspectRatioProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import './AspectRatio.css';
|
|
3
|
+
import './aspect-ratio-impl.css';
|
|
4
|
+
import { aspectRatioDefaults, aspectRatioParts } from './AspectRatio.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* A box that holds one shape whatever is put in it.
|
|
7
|
+
*
|
|
8
|
+
* It renders one element and decides one thing. The ratio reaches the stylesheet as
|
|
9
|
+
* an axis rather than a style written here, which is what makes it a shape the system
|
|
10
|
+
* knows about: one rule per shape, and a variant grid a designer can judge them in.
|
|
11
|
+
* A free ratio would have to be an inline style — a number cannot be a styling axis,
|
|
12
|
+
* because an axis emits one rule per value and a number has none to enumerate — and
|
|
13
|
+
* the component's whole purpose would then be invisible to every gate. CardBody's own
|
|
14
|
+
* `aspect` is that shape, and its source says so.
|
|
15
|
+
*
|
|
16
|
+
* It draws nothing and has no size of its own. A ratio and a width give a height; a
|
|
17
|
+
* ratio alone gives nothing, so the box is as wide as whatever holds it and as tall as
|
|
18
|
+
* that width implies. What fills it is stated in the impl sheet, because the child is
|
|
19
|
+
* whatever the page passed and there is no part here to put a class on.
|
|
20
|
+
*
|
|
21
|
+
* The spread goes first, so a consumer can set an id, a test hook or a label and cannot
|
|
22
|
+
* write over the class or the axis the stylesheet reads.
|
|
23
|
+
*/
|
|
24
|
+
export function AspectRatio({ ratio = aspectRatioDefaults.ratio, children, ...rest }) {
|
|
25
|
+
return (_jsx("div", { ...rest, className: aspectRatioParts.root, "data-ratio": ratio, children: children }));
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AspectRatioOwnProps {
|
|
3
|
+
/**
|
|
4
|
+
* `portrait` — Taller than wide, for a picture read on a phone where the width is the constraint — a card whose image carries the card, a person, a product standing up. Four by five rather than anything narrower: past that the image takes the whole screen and the copy under it is below the fold
|
|
5
|
+
* `square` — Equal sides, for a set that repeats — a grid of logos, a row of market tiles, an avatar’s frame. The one shape a grid can tile without the rows disagreeing, and the only one that reads the same in a column as in a row
|
|
6
|
+
* `landscape` — Wider than tall and barely so — the shape a photograph or a screenshot arrives in before anything crops it. Reach for it where the picture was not composed for a wider slot and losing its top and foot would cost the subject
|
|
7
|
+
* `widescreen` — The default, and the shape most moving media already is: an embedded video, a screen recording, a still from one. Sixteen by nine is what a camera and a capture both hand over, so asking for it usually means asking for what the file already was
|
|
8
|
+
* `ultrawide` — Far wider than it is tall, for a hero or a section break where the picture is scenery rather than subject. Twenty-one by nine crops hard — most of a photograph’s height is gone — so it belongs to art chosen for it rather than to a picture that happens to be there
|
|
9
|
+
*/
|
|
10
|
+
ratio?: 'portrait' | 'square' | 'landscape' | 'widescreen' | 'ultrawide';
|
|
11
|
+
/** Allowed: any content */
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export type AspectRatioProps = AspectRatioOwnProps & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'ratio'>;
|
|
15
|
+
/** The class each part carries. Apply these — do not retype them. */
|
|
16
|
+
export declare const aspectRatioParts: {
|
|
17
|
+
readonly root: "dds-aspectratio";
|
|
18
|
+
};
|
|
19
|
+
/** Generated so defaults cannot drift from the contract. */
|
|
20
|
+
export declare const aspectRatioDefaults: {
|
|
21
|
+
readonly ratio: "widescreen";
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// GENERATED from aspect-ratio.contract.json. Do not edit.
|
|
2
|
+
/** The class each part carries. Apply these — do not retype them. */
|
|
3
|
+
export const aspectRatioParts = {
|
|
4
|
+
root: 'dds-aspectratio',
|
|
5
|
+
};
|
|
6
|
+
/** Generated so defaults cannot drift from the contract. */
|
|
7
|
+
export const aspectRatioDefaults = { ratio: 'widescreen' };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Scoped to this package, like the generated sheet beside it.
|
|
3
|
+
*
|
|
4
|
+
* `:where([data-dds-context="marketing"])` confines these rules without contributing
|
|
5
|
+
* specificity, so every override below still ties or beats exactly what it did before.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* What the box holds fills it, which the contract has no way to say.
|
|
10
|
+
*
|
|
11
|
+
* The child is whatever the page passed — an `<img>`, an `<iframe>`, a `<video>`, a band of
|
|
12
|
+
* art — so there is no part here to put a class on, and a rule for it is a relationship
|
|
13
|
+
* between this element and its own child rather than a property of either. `> *` is the
|
|
14
|
+
* only way to state it, and it is the same kind of positional fact a table's head states
|
|
15
|
+
* about its second row.
|
|
16
|
+
*
|
|
17
|
+
* `object-fit` is the other half and applies only to the things that have intrinsic
|
|
18
|
+
* proportions of their own: a picture given a shape it does not have must lose something,
|
|
19
|
+
* and `cover` is what decides that it loses the overflow rather than the shape. It is a
|
|
20
|
+
* keyword no token carries — there is no design decision in it, only the answer to which
|
|
21
|
+
* of two proportions wins — so it belongs here beside the rule that needs it.
|
|
22
|
+
*
|
|
23
|
+
* Every side is set rather than just the block one, because a child with a width of its own
|
|
24
|
+
* would otherwise sit in the corner of a box it was meant to fill, and an image is exactly
|
|
25
|
+
* that: `<img>` carries its file's dimensions until something says otherwise.
|
|
26
|
+
*/
|
|
27
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio > * {
|
|
28
|
+
inline-size: 100%;
|
|
29
|
+
block-size: 100%;
|
|
30
|
+
object-fit: cover;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Except an embed, which has nothing to fit.
|
|
35
|
+
*
|
|
36
|
+
* `object-fit` is a rule about replaced content with proportions of its own, and an iframe
|
|
37
|
+
* has none — it is a viewport onto a document that lays itself out. Left in it does nothing
|
|
38
|
+
* at all, which is harmless, but a border is not: every browser draws one on an iframe by
|
|
39
|
+
* default, and a box whose whole job is a clean shape should not ship with a line around it
|
|
40
|
+
* that nobody asked for.
|
|
41
|
+
*/
|
|
42
|
+
:where([data-dds-context="marketing"]) .dds-aspectratio > iframe {
|
|
43
|
+
border: none;
|
|
44
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* GENERATED from grid.contract.json. Do not edit. */
|
|
2
|
+
|
|
3
|
+
:where([data-dds-context="marketing"]) .dds-grid {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: grid;
|
|
6
|
+
min-inline-size: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-align="center"] {
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-align="end"] {
|
|
14
|
+
align-items: end;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-align="start"] {
|
|
18
|
+
align-items: start;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-align="stretch"] {
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="2xl"] {
|
|
26
|
+
--dds-grid-gap: var(--space-gap-2xl);
|
|
27
|
+
gap: var(--space-gap-2xl);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="3xl"] {
|
|
31
|
+
--dds-grid-gap: var(--space-gap-3xl);
|
|
32
|
+
gap: var(--space-gap-3xl);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="lg"] {
|
|
36
|
+
--dds-grid-gap: var(--space-gap-lg);
|
|
37
|
+
gap: var(--space-gap-lg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="md"] {
|
|
41
|
+
--dds-grid-gap: var(--space-gap-md);
|
|
42
|
+
gap: var(--space-gap-md);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="none"] {
|
|
46
|
+
--dds-grid-gap: var(--space-gap-none);
|
|
47
|
+
gap: var(--space-gap-none);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="sm"] {
|
|
51
|
+
--dds-grid-gap: var(--space-gap-sm);
|
|
52
|
+
gap: var(--space-gap-sm);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="xl"] {
|
|
56
|
+
--dds-grid-gap: var(--space-gap-xl);
|
|
57
|
+
gap: var(--space-gap-xl);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-gap="xs"] {
|
|
61
|
+
--dds-grid-gap: var(--space-gap-xs);
|
|
62
|
+
gap: var(--space-gap-xs);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-min="lg"] {
|
|
66
|
+
--dds-grid-track: var(--size-grid-track-lg);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-min="md"] {
|
|
70
|
+
--dds-grid-track: var(--size-grid-track-md);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where([data-dds-context="marketing"]) .dds-grid[data-min="sm"] {
|
|
74
|
+
--dds-grid-track: var(--size-grid-track-sm);
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import './Grid.css';
|
|
2
|
+
import './grid-impl.css';
|
|
3
|
+
import { type GridProps } from './Grid.types.js';
|
|
4
|
+
export type { GridProps };
|
|
5
|
+
/**
|
|
6
|
+
* A field of equal tracks, and one measure between them.
|
|
7
|
+
*
|
|
8
|
+
* One element, which is the whole of it. The four axes reach the root as attributes, the
|
|
9
|
+
* stylesheet reads them there, and the browser does the arranging — there is nothing to compose
|
|
10
|
+
* and no state to hold. In particular nothing here measures anything: the column count is
|
|
11
|
+
* resolved by the browser from an expression, not by this component from a width it observed, so
|
|
12
|
+
* there is no resize listener, no layout effect, and nothing that can be a frame out of date
|
|
13
|
+
* while the reader drags a window.
|
|
14
|
+
*
|
|
15
|
+
* `grid-impl.css` is imported after the generated sheet, which is the order that matters: the
|
|
16
|
+
* generated rules set the two custom properties the track expression is built from, and the impl
|
|
17
|
+
* rules read them. Both are `:where()`, so neither wins on specificity and the later file simply
|
|
18
|
+
* adds the property the earlier one has no way to state.
|
|
19
|
+
*
|
|
20
|
+
* The defaults are destructured from the generated `gridDefaults` rather than typed here, so the
|
|
21
|
+
* attribute the stylesheet matches on cannot drift from the value the contract declares. Every
|
|
22
|
+
* axis is written to the root unconditionally, including when it holds its default: a rule per
|
|
23
|
+
* value means there is no bare-element case to fall through to, and `columns` left off would
|
|
24
|
+
* leave the field with no track expression at all — one column, silently, which looks like a
|
|
25
|
+
* Stack that forgot what it was.
|
|
26
|
+
*
|
|
27
|
+
* The spread goes first, so a consumer can set what is not load-bearing — an id, a data
|
|
28
|
+
* attribute, a ref — and cannot set what is. `className` is not in the type at all, which is the
|
|
29
|
+
* point of the component: everything this field can be, it can be through the four props.
|
|
30
|
+
*/
|
|
31
|
+
export declare function Grid({ gap, columns, min, align, children, ...rest }: GridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Grid.css';
|
|
3
|
+
import './grid-impl.css';
|
|
4
|
+
import { gridDefaults, gridParts } from './Grid.types.js';
|
|
5
|
+
/**
|
|
6
|
+
* A field of equal tracks, and one measure between them.
|
|
7
|
+
*
|
|
8
|
+
* One element, which is the whole of it. The four axes reach the root as attributes, the
|
|
9
|
+
* stylesheet reads them there, and the browser does the arranging — there is nothing to compose
|
|
10
|
+
* and no state to hold. In particular nothing here measures anything: the column count is
|
|
11
|
+
* resolved by the browser from an expression, not by this component from a width it observed, so
|
|
12
|
+
* there is no resize listener, no layout effect, and nothing that can be a frame out of date
|
|
13
|
+
* while the reader drags a window.
|
|
14
|
+
*
|
|
15
|
+
* `grid-impl.css` is imported after the generated sheet, which is the order that matters: the
|
|
16
|
+
* generated rules set the two custom properties the track expression is built from, and the impl
|
|
17
|
+
* rules read them. Both are `:where()`, so neither wins on specificity and the later file simply
|
|
18
|
+
* adds the property the earlier one has no way to state.
|
|
19
|
+
*
|
|
20
|
+
* The defaults are destructured from the generated `gridDefaults` rather than typed here, so the
|
|
21
|
+
* attribute the stylesheet matches on cannot drift from the value the contract declares. Every
|
|
22
|
+
* axis is written to the root unconditionally, including when it holds its default: a rule per
|
|
23
|
+
* value means there is no bare-element case to fall through to, and `columns` left off would
|
|
24
|
+
* leave the field with no track expression at all — one column, silently, which looks like a
|
|
25
|
+
* Stack that forgot what it was.
|
|
26
|
+
*
|
|
27
|
+
* The spread goes first, so a consumer can set what is not load-bearing — an id, a data
|
|
28
|
+
* attribute, a ref — and cannot set what is. `className` is not in the type at all, which is the
|
|
29
|
+
* point of the component: everything this field can be, it can be through the four props.
|
|
30
|
+
*/
|
|
31
|
+
export function Grid({ gap = gridDefaults.gap, columns = gridDefaults.columns, min = gridDefaults.min, align = gridDefaults.align, children, ...rest }) {
|
|
32
|
+
return (_jsx("div", { ...rest, className: gridParts.root, "data-gap": gap, "data-columns": columns, "data-min": min, "data-align": align, children: children }));
|
|
33
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface GridOwnProps {
|
|
3
|
+
/**
|
|
4
|
+
* `none` — No gap at all, for a field whose cells are meant to read as one object rather than as a set. The only step here that is a decision rather than a measure
|
|
5
|
+
* `xs` — The tightest gap between related elements, for a field read as one texture rather than as separate cells
|
|
6
|
+
* `sm` — The step the token names for sibling controls — a field of small tiles, where the tightness makes the set read as one block
|
|
7
|
+
* `md` — The step the token names for stacked items, taken as a field: cells close enough to be scanned in one pass rather than weighed one at a time
|
|
8
|
+
* `lg` — The default, and what the token names for feature cards in a grid, footer columns and pricing plans. Reach for this unless the cells are smaller or larger than a card
|
|
9
|
+
* `xl` — Between the parts of a card, taken as a field — cells that each hold a picture as well as words. Drops one step below 768px, a phone having a third of the width to spend
|
|
10
|
+
* `2xl` — Between one section of a page and the next, laid out as a field. Drops one step below 768px, a phone having a third of the width to spend
|
|
11
|
+
* `3xl` — The largest gap, for separating whole movements of a page laid out as a field. Drops one step below 768px, a phone having a third of the width to spend
|
|
12
|
+
*/
|
|
13
|
+
gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
14
|
+
/**
|
|
15
|
+
* `sm` — The narrow floor, for a cell holding a logo, an icon and a word, or one short claim. Six of these clear the page's measure with its gutter still on both sides
|
|
16
|
+
* `md` — The default floor, for a feature card: a heading and a line or two beneath it. Four fit the page's measure, so a field of three has room to spare
|
|
17
|
+
* `lg` — The wide floor, for a cell holding a picture as well as words, or a pricing plan with a list under it. Three fit the page's measure and four do not
|
|
18
|
+
*/
|
|
19
|
+
min?: 'sm' | 'md' | 'lg';
|
|
20
|
+
/**
|
|
21
|
+
* `start` — Cells keep their own height and sit against the top of their row, so a short cell beside a tall one ends early rather than being drawn out
|
|
22
|
+
* `center` — Cells keep their own height and sit in the middle of their row
|
|
23
|
+
* `end` — Cells keep their own height and sit against the bottom of their row
|
|
24
|
+
* `stretch` — The default. Every cell takes the full height of its row, so a field of cards finishes level however much is in each — which is the reason most fields are a grid rather than a wrapped line
|
|
25
|
+
*/
|
|
26
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
27
|
+
/**
|
|
28
|
+
* `2` — Two across — cells that hold enough to be read rather than scanned, or a field beside a picture
|
|
29
|
+
* `3` — The default, and what most fields of feature cards want. Three is the most a reader takes in as a set rather than as a list
|
|
30
|
+
* `4` — Four across, for cells holding a claim and a line — a field of benefits, a set of tiles
|
|
31
|
+
* `6` — Six across, for marks rather than cards — partner logos, payment methods, regulator badges. A field this wide is read as a texture
|
|
32
|
+
*/
|
|
33
|
+
columns?: '2' | '3' | '4' | '6';
|
|
34
|
+
/** Allowed: any content */
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export type GridProps = GridOwnProps & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'gap' | 'min' | 'align' | 'columns'>;
|
|
38
|
+
/** The class each part carries. Apply these — do not retype them. */
|
|
39
|
+
export declare const gridParts: {
|
|
40
|
+
readonly root: "dds-grid";
|
|
41
|
+
};
|
|
42
|
+
/** Generated so defaults cannot drift from the contract. */
|
|
43
|
+
export declare const gridDefaults: {
|
|
44
|
+
readonly gap: "lg";
|
|
45
|
+
readonly min: "md";
|
|
46
|
+
readonly align: "stretch";
|
|
47
|
+
readonly columns: "3";
|
|
48
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// GENERATED from grid.contract.json. Do not edit.
|
|
2
|
+
/** The class each part carries. Apply these — do not retype them. */
|
|
3
|
+
export const gridParts = {
|
|
4
|
+
root: 'dds-grid',
|
|
5
|
+
};
|
|
6
|
+
/** Generated so defaults cannot drift from the contract. */
|
|
7
|
+
export const gridDefaults = { gap: 'lg', min: 'md', align: 'stretch', columns: '3' };
|