@coinbase/cds-web 0.0.0 → 8.13.2
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/CHANGELOG.md +45 -0
- package/README.md +1 -0
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts +32 -0
- package/dts/AccessibilityAnnouncer/AccessibilityAnnouncer.d.ts.map +1 -0
- package/dts/accordion/Accordion.d.ts +17 -0
- package/dts/accordion/Accordion.d.ts.map +1 -0
- package/dts/accordion/AccordionHeader.d.ts +69 -0
- package/dts/accordion/AccordionHeader.d.ts.map +1 -0
- package/dts/accordion/AccordionItem.d.ts +31 -0
- package/dts/accordion/AccordionItem.d.ts.map +1 -0
- package/dts/accordion/AccordionPanel.d.ts +33 -0
- package/dts/accordion/AccordionPanel.d.ts.map +1 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts +2 -0
- package/dts/accordion/__figma__/Accordion.figma.d.ts.map +1 -0
- package/dts/accordion/index.d.ts +3 -0
- package/dts/accordion/index.d.ts.map +1 -0
- package/dts/accordion/utils.d.ts +3 -0
- package/dts/accordion/utils.d.ts.map +1 -0
- package/dts/animation/Lottie.d.ts +20 -0
- package/dts/animation/Lottie.d.ts.map +1 -0
- package/dts/animation/LottieStatusAnimation.d.ts +11 -0
- package/dts/animation/LottieStatusAnimation.d.ts.map +1 -0
- package/dts/animation/NewAnimatePresence.d.ts +7 -0
- package/dts/animation/NewAnimatePresence.d.ts.map +1 -0
- package/dts/animation/convertMotionConfig.d.ts +33 -0
- package/dts/animation/convertMotionConfig.d.ts.map +1 -0
- package/dts/animation/index.d.ts +3 -0
- package/dts/animation/index.d.ts.map +1 -0
- package/dts/animation/types.d.ts +55 -0
- package/dts/animation/types.d.ts.map +1 -0
- package/dts/animation/useLottieHandlers.d.ts +3 -0
- package/dts/animation/useLottieHandlers.d.ts.map +1 -0
- package/dts/animation/useLottieListeners.d.ts +6 -0
- package/dts/animation/useLottieListeners.d.ts.map +1 -0
- package/dts/animation/useLottieLoader.d.ts +15 -0
- package/dts/animation/useLottieLoader.d.ts.map +1 -0
- package/dts/banner/Banner.d.ts +63 -0
- package/dts/banner/Banner.d.ts.map +1 -0
- package/dts/buttons/AvatarButton.d.ts +26 -0
- package/dts/buttons/AvatarButton.d.ts.map +1 -0
- package/dts/buttons/Button.d.ts +72 -0
- package/dts/buttons/Button.d.ts.map +1 -0
- package/dts/buttons/ButtonGroup.d.ts +23 -0
- package/dts/buttons/ButtonGroup.d.ts.map +1 -0
- package/dts/buttons/IconButton.d.ts +32 -0
- package/dts/buttons/IconButton.d.ts.map +1 -0
- package/dts/buttons/IconCounterButton.d.ts +31 -0
- package/dts/buttons/IconCounterButton.d.ts.map +1 -0
- package/dts/buttons/Tile.d.ts +17 -0
- package/dts/buttons/Tile.d.ts.map +1 -0
- package/dts/buttons/TileButton.d.ts +25 -0
- package/dts/buttons/TileButton.d.ts.map +1 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/AvatarButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/Button.figma.d.ts +2 -0
- package/dts/buttons/__figma__/Button.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts +2 -0
- package/dts/buttons/__figma__/ButtonGroup.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/IconButton.figma.d.ts.map +1 -0
- package/dts/buttons/__figma__/TileButton.figma.d.ts +2 -0
- package/dts/buttons/__figma__/TileButton.figma.d.ts.map +1 -0
- package/dts/buttons/index.d.ts +7 -0
- package/dts/buttons/index.d.ts.map +1 -0
- package/dts/cards/AnnouncementCard.d.ts +8 -0
- package/dts/cards/AnnouncementCard.d.ts.map +1 -0
- package/dts/cards/Card.d.ts +18 -0
- package/dts/cards/Card.d.ts.map +1 -0
- package/dts/cards/CardBody.d.ts +55 -0
- package/dts/cards/CardBody.d.ts.map +1 -0
- package/dts/cards/CardFooter.d.ts +11 -0
- package/dts/cards/CardFooter.d.ts.map +1 -0
- package/dts/cards/CardGroup.d.ts +11 -0
- package/dts/cards/CardGroup.d.ts.map +1 -0
- package/dts/cards/CardHeader.d.ts +4 -0
- package/dts/cards/CardHeader.d.ts.map +1 -0
- package/dts/cards/CardMedia.d.ts +4 -0
- package/dts/cards/CardMedia.d.ts.map +1 -0
- package/dts/cards/CardRemoteImage.d.ts +8 -0
- package/dts/cards/CardRemoteImage.d.ts.map +1 -0
- package/dts/cards/ContainedAssetCard.d.ts +38 -0
- package/dts/cards/ContainedAssetCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCard.d.ts +17 -0
- package/dts/cards/ContentCard/ContentCard.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts +36 -0
- package/dts/cards/ContentCard/ContentCardBody.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts +19 -0
- package/dts/cards/ContentCard/ContentCardFooter.d.ts.map +1 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts +32 -0
- package/dts/cards/ContentCard/ContentCardHeader.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCard.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardBody.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardFooter.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts +2 -0
- package/dts/cards/ContentCard/__figma__/ContentCardHeader.figma.d.ts.map +1 -0
- package/dts/cards/ContentCard/index.d.ts +5 -0
- package/dts/cards/ContentCard/index.d.ts.map +1 -0
- package/dts/cards/DataCard.d.ts +20 -0
- package/dts/cards/DataCard.d.ts.map +1 -0
- package/dts/cards/FeatureEntryCard.d.ts +9 -0
- package/dts/cards/FeatureEntryCard.d.ts.map +1 -0
- package/dts/cards/FeedCard.d.ts +37 -0
- package/dts/cards/FeedCard.d.ts.map +1 -0
- package/dts/cards/FloatingAssetCard.d.ts +37 -0
- package/dts/cards/FloatingAssetCard.d.ts.map +1 -0
- package/dts/cards/LikeButton.d.ts +21 -0
- package/dts/cards/LikeButton.d.ts.map +1 -0
- package/dts/cards/NudgeCard.d.ts +72 -0
- package/dts/cards/NudgeCard.d.ts.map +1 -0
- package/dts/cards/UpsellCard.d.ts +55 -0
- package/dts/cards/UpsellCard.d.ts.map +1 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/AnnouncementCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/ContainedAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/FloatingAssetCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/NudgeCard.figma.d.ts.map +1 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts +2 -0
- package/dts/cards/__figma__/UpsellCard.figma.d.ts.map +1 -0
- package/dts/cards/index.d.ts +15 -0
- package/dts/cards/index.d.ts.map +1 -0
- package/dts/carousel/Carousel.d.ts +259 -0
- package/dts/carousel/Carousel.d.ts.map +1 -0
- package/dts/carousel/CarouselItem.d.ts +15 -0
- package/dts/carousel/CarouselItem.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts +75 -0
- package/dts/carousel/DefaultCarouselNavigation.d.ts.map +1 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts +34 -0
- package/dts/carousel/DefaultCarouselPagination.d.ts.map +1 -0
- package/dts/carousel/index.d.ts +5 -0
- package/dts/carousel/index.d.ts.map +1 -0
- package/dts/cells/Cell.d.ts +67 -0
- package/dts/cells/Cell.d.ts.map +1 -0
- package/dts/cells/CellAccessory.d.ts +20 -0
- package/dts/cells/CellAccessory.d.ts.map +1 -0
- package/dts/cells/CellDetail.d.ts +18 -0
- package/dts/cells/CellDetail.d.ts.map +1 -0
- package/dts/cells/CellHelperText.d.ts +13 -0
- package/dts/cells/CellHelperText.d.ts.map +1 -0
- package/dts/cells/CellMedia.d.ts +34 -0
- package/dts/cells/CellMedia.d.ts.map +1 -0
- package/dts/cells/ContentCell.d.ts +34 -0
- package/dts/cells/ContentCell.d.ts.map +1 -0
- package/dts/cells/ContentCellFallback.d.ts +17 -0
- package/dts/cells/ContentCellFallback.d.ts.map +1 -0
- package/dts/cells/ListCell.d.ts +51 -0
- package/dts/cells/ListCell.d.ts.map +1 -0
- package/dts/cells/ListCellFallback.d.ts +50 -0
- package/dts/cells/ListCellFallback.d.ts.map +1 -0
- package/dts/cells/MediaFallback.d.ts +8 -0
- package/dts/cells/MediaFallback.d.ts.map +1 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ContentCell.figma.d.ts.map +1 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts +2 -0
- package/dts/cells/__figma__/ListCell.figma.d.ts.map +1 -0
- package/dts/cells/index.d.ts +7 -0
- package/dts/cells/index.d.ts.map +1 -0
- package/dts/chips/Chip.d.ts +10 -0
- package/dts/chips/Chip.d.ts.map +1 -0
- package/dts/chips/ChipProps.d.ts +51 -0
- package/dts/chips/ChipProps.d.ts.map +1 -0
- package/dts/chips/InputChip.d.ts +8 -0
- package/dts/chips/InputChip.d.ts.map +1 -0
- package/dts/chips/SelectChip.d.ts +19 -0
- package/dts/chips/SelectChip.d.ts.map +1 -0
- package/dts/chips/TabbedChips.d.ts +14 -0
- package/dts/chips/TabbedChips.d.ts.map +1 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/InputChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts +2 -0
- package/dts/chips/__figma__/SelectChip.figma.d.ts.map +1 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts +2 -0
- package/dts/chips/__figma__/TabbedChips.figma.d.ts.map +1 -0
- package/dts/chips/index.d.ts +6 -0
- package/dts/chips/index.d.ts.map +1 -0
- package/dts/coachmark/Coachmark.d.ts +44 -0
- package/dts/coachmark/Coachmark.d.ts.map +1 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts +2 -0
- package/dts/coachmark/__figma__/Coachmark.figma.d.ts.map +1 -0
- package/dts/collapsible/Collapsible.d.ts +71 -0
- package/dts/collapsible/Collapsible.d.ts.map +1 -0
- package/dts/collapsible/index.d.ts +2 -0
- package/dts/collapsible/index.d.ts.map +1 -0
- package/dts/collapsible/useCollapsibleMotionProps.d.ts +5565 -0
- package/dts/collapsible/useCollapsibleMotionProps.d.ts.map +1 -0
- package/dts/controls/Checkbox.d.ts +23 -0
- package/dts/controls/Checkbox.d.ts.map +1 -0
- package/dts/controls/CheckboxCell.d.ts +49 -0
- package/dts/controls/CheckboxCell.d.ts.map +1 -0
- package/dts/controls/CheckboxGroup.d.ts +60 -0
- package/dts/controls/CheckboxGroup.d.ts.map +1 -0
- package/dts/controls/Control.d.ts +47 -0
- package/dts/controls/Control.d.ts.map +1 -0
- package/dts/controls/ControlGroup.d.ts +44 -0
- package/dts/controls/ControlGroup.d.ts.map +1 -0
- package/dts/controls/HelperText.d.ts +15 -0
- package/dts/controls/HelperText.d.ts.map +1 -0
- package/dts/controls/InputIcon.d.ts +18 -0
- package/dts/controls/InputIcon.d.ts.map +1 -0
- package/dts/controls/InputIconButton.d.ts +17 -0
- package/dts/controls/InputIconButton.d.ts.map +1 -0
- package/dts/controls/InputLabel.d.ts +5 -0
- package/dts/controls/InputLabel.d.ts.map +1 -0
- package/dts/controls/InputStack.d.ts +77 -0
- package/dts/controls/InputStack.d.ts.map +1 -0
- package/dts/controls/NativeInput.d.ts +48 -0
- package/dts/controls/NativeInput.d.ts.map +1 -0
- package/dts/controls/NativeTextArea.d.ts +20 -0
- package/dts/controls/NativeTextArea.d.ts.map +1 -0
- package/dts/controls/Radio.d.ts +17 -0
- package/dts/controls/Radio.d.ts.map +1 -0
- package/dts/controls/RadioCell.d.ts +49 -0
- package/dts/controls/RadioCell.d.ts.map +1 -0
- package/dts/controls/RadioGroup.d.ts +65 -0
- package/dts/controls/RadioGroup.d.ts.map +1 -0
- package/dts/controls/SearchInput.d.ts +146 -0
- package/dts/controls/SearchInput.d.ts.map +1 -0
- package/dts/controls/SegmentedControl.d.ts +49 -0
- package/dts/controls/SegmentedControl.d.ts.map +1 -0
- package/dts/controls/Select.d.ts +54 -0
- package/dts/controls/Select.d.ts.map +1 -0
- package/dts/controls/SelectOption.d.ts +39 -0
- package/dts/controls/SelectOption.d.ts.map +1 -0
- package/dts/controls/SelectStack.d.ts +25 -0
- package/dts/controls/SelectStack.d.ts.map +1 -0
- package/dts/controls/SelectTrigger.d.ts +24 -0
- package/dts/controls/SelectTrigger.d.ts.map +1 -0
- package/dts/controls/Switch.d.ts +40 -0
- package/dts/controls/Switch.d.ts.map +1 -0
- package/dts/controls/TextInput.d.ts +139 -0
- package/dts/controls/TextInput.d.ts.map +1 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts +2 -0
- package/dts/controls/__figma__/Checkbox.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/CheckboxGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts +2 -0
- package/dts/controls/__figma__/NativeTextArea.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioCell.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts +2 -0
- package/dts/controls/__figma__/RadioGroup.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/SearchInput.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Select.figma.d.ts +2 -0
- package/dts/controls/__figma__/Select.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts +2 -0
- package/dts/controls/__figma__/SelectOption.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/Switch.figma.d.ts +2 -0
- package/dts/controls/__figma__/Switch.figma.d.ts.map +1 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts +2 -0
- package/dts/controls/__figma__/TextInput.figma.d.ts.map +1 -0
- package/dts/controls/context.d.ts +6 -0
- package/dts/controls/context.d.ts.map +1 -0
- package/dts/controls/index.d.ts +16 -0
- package/dts/controls/index.d.ts.map +1 -0
- package/dts/controls/selectContext.d.ts +13 -0
- package/dts/controls/selectContext.d.ts.map +1 -0
- package/dts/controls/useHandleRadioSelect.d.ts +4 -0
- package/dts/controls/useHandleRadioSelect.d.ts.map +1 -0
- package/dts/controls/useRefocusTrigger.d.ts +5 -0
- package/dts/controls/useRefocusTrigger.d.ts.map +1 -0
- package/dts/controls/useSelectionCellControlHeight.d.ts +15 -0
- package/dts/controls/useSelectionCellControlHeight.d.ts.map +1 -0
- package/dts/core/createThemeCssVars.d.ts +4 -0
- package/dts/core/createThemeCssVars.d.ts.map +1 -0
- package/dts/core/polymorphism.d.ts +27 -0
- package/dts/core/polymorphism.d.ts.map +1 -0
- package/dts/core/theme.d.ts +162 -0
- package/dts/core/theme.d.ts.map +1 -0
- package/dts/cx.d.ts +30 -0
- package/dts/cx.d.ts.map +1 -0
- package/dts/dates/Calendar.d.ts +109 -0
- package/dts/dates/Calendar.d.ts.map +1 -0
- package/dts/dates/DateInput.d.ts +23 -0
- package/dts/dates/DateInput.d.ts.map +1 -0
- package/dts/dates/DatePicker.d.ts +155 -0
- package/dts/dates/DatePicker.d.ts.map +1 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts +2 -0
- package/dts/dates/__figma__/DatePicker.figma.d.ts.map +1 -0
- package/dts/defaultFontStyles.d.ts +2 -0
- package/dts/defaultFontStyles.d.ts.map +1 -0
- package/dts/dots/DotCount.d.ts +96 -0
- package/dts/dots/DotCount.d.ts.map +1 -0
- package/dts/dots/DotStatusColor.d.ts +39 -0
- package/dts/dots/DotStatusColor.d.ts.map +1 -0
- package/dts/dots/DotSymbol.d.ts +69 -0
- package/dts/dots/DotSymbol.d.ts.map +1 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotCount.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotStatusColor.figma.d.ts.map +1 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts +2 -0
- package/dts/dots/__figma__/DotSymbol.figma.d.ts.map +1 -0
- package/dts/dots/dotStyles.d.ts +20 -0
- package/dts/dots/dotStyles.d.ts.map +1 -0
- package/dts/dots/index.d.ts +4 -0
- package/dts/dots/index.d.ts.map +1 -0
- package/dts/dropdown/Dropdown.d.ts +40 -0
- package/dts/dropdown/Dropdown.d.ts.map +1 -0
- package/dts/dropdown/DropdownContent.d.ts +18 -0
- package/dts/dropdown/DropdownContent.d.ts.map +1 -0
- package/dts/dropdown/DropdownProps.d.ts +77 -0
- package/dts/dropdown/DropdownProps.d.ts.map +1 -0
- package/dts/dropdown/MenuItem.d.ts +23 -0
- package/dts/dropdown/MenuItem.d.ts.map +1 -0
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts +2 -0
- package/dts/dropdown/__figma__/Dropdown.figma.d.ts.map +1 -0
- package/dts/dropdown/index.d.ts +4 -0
- package/dts/dropdown/index.d.ts.map +1 -0
- package/dts/dropdown/useResponsiveHeight.d.ts +22 -0
- package/dts/dropdown/useResponsiveHeight.d.ts.map +1 -0
- package/dts/globalStyles.d.ts +2 -0
- package/dts/globalStyles.d.ts.map +1 -0
- package/dts/hooks/useA11yControlledVisibility.d.ts +22 -0
- package/dts/hooks/useA11yControlledVisibility.d.ts.map +1 -0
- package/dts/hooks/useA11yLabels.d.ts +45 -0
- package/dts/hooks/useA11yLabels.d.ts.map +1 -0
- package/dts/hooks/useBreakpoints.d.ts +19 -0
- package/dts/hooks/useBreakpoints.d.ts.map +1 -0
- package/dts/hooks/useCellSpacing.d.ts +298 -0
- package/dts/hooks/useCellSpacing.d.ts.map +1 -0
- package/dts/hooks/useCheckboxGroupState.d.ts +27 -0
- package/dts/hooks/useCheckboxGroupState.d.ts.map +1 -0
- package/dts/hooks/useDimensions.d.ts +73 -0
- package/dts/hooks/useDimensions.d.ts.map +1 -0
- package/dts/hooks/useEventHandler.d.ts +7 -0
- package/dts/hooks/useEventHandler.d.ts.map +1 -0
- package/dts/hooks/useHasMounted.d.ts +2 -0
- package/dts/hooks/useHasMounted.d.ts.map +1 -0
- package/dts/hooks/useIsBrowser.d.ts +3 -0
- package/dts/hooks/useIsBrowser.d.ts.map +1 -0
- package/dts/hooks/useIsoEffect.d.ts +3 -0
- package/dts/hooks/useIsoEffect.d.ts.map +1 -0
- package/dts/hooks/useMediaQuery.d.ts +2 -0
- package/dts/hooks/useMediaQuery.d.ts.map +1 -0
- package/dts/hooks/useScrollBlocker.d.ts +2 -0
- package/dts/hooks/useScrollBlocker.d.ts.map +1 -0
- package/dts/hooks/useTheme.d.ts +4 -0
- package/dts/hooks/useTheme.d.ts.map +1 -0
- package/dts/hooks/useThemeContext.d.ts +8 -0
- package/dts/hooks/useThemeContext.d.ts.map +1 -0
- package/dts/icons/Icon.d.ts +56 -0
- package/dts/icons/Icon.d.ts.map +1 -0
- package/dts/icons/LogoMark.d.ts +9 -0
- package/dts/icons/LogoMark.d.ts.map +1 -0
- package/dts/icons/LogoWordmark.d.ts +8 -0
- package/dts/icons/LogoWordmark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoMark.d.ts +9 -0
- package/dts/icons/SubBrandLogoMark.d.ts.map +1 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts +8 -0
- package/dts/icons/SubBrandLogoWordmark.d.ts.map +1 -0
- package/dts/icons/__figma__/Icon.figma.d.ts +2 -0
- package/dts/icons/__figma__/Icon.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/LogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoMark.figma.d.ts.map +1 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts +2 -0
- package/dts/icons/__figma__/SubBrandLogoWordmark.figma.d.ts.map +1 -0
- package/dts/icons/index.d.ts +6 -0
- package/dts/icons/index.d.ts.map +1 -0
- package/dts/illustrations/HeroSquare.d.ts +19 -0
- package/dts/illustrations/HeroSquare.d.ts.map +1 -0
- package/dts/illustrations/Pictogram.d.ts +18 -0
- package/dts/illustrations/Pictogram.d.ts.map +1 -0
- package/dts/illustrations/SpotIcon.d.ts +18 -0
- package/dts/illustrations/SpotIcon.d.ts.map +1 -0
- package/dts/illustrations/SpotRectangle.d.ts +19 -0
- package/dts/illustrations/SpotRectangle.d.ts.map +1 -0
- package/dts/illustrations/SpotSquare.d.ts +18 -0
- package/dts/illustrations/SpotSquare.d.ts.map +1 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/HeroSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/Pictogram.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotIcon.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotRectangle.figma.d.ts.map +1 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts +2 -0
- package/dts/illustrations/__figma__/SpotSquare.figma.d.ts.map +1 -0
- package/dts/illustrations/createIllustration.d.ts +68 -0
- package/dts/illustrations/createIllustration.d.ts.map +1 -0
- package/dts/illustrations/index.d.ts +6 -0
- package/dts/illustrations/index.d.ts.map +1 -0
- package/dts/index.d.ts +7 -0
- package/dts/index.d.ts.map +1 -0
- package/dts/layout/Box.d.ts +69 -0
- package/dts/layout/Box.d.ts.map +1 -0
- package/dts/layout/Divider.d.ts +19 -0
- package/dts/layout/Divider.d.ts.map +1 -0
- package/dts/layout/Fallback.d.ts +49 -0
- package/dts/layout/Fallback.d.ts.map +1 -0
- package/dts/layout/Grid.d.ts +55 -0
- package/dts/layout/Grid.d.ts.map +1 -0
- package/dts/layout/GridColumn.d.ts +60 -0
- package/dts/layout/GridColumn.d.ts.map +1 -0
- package/dts/layout/Group.d.ts +44 -0
- package/dts/layout/Group.d.ts.map +1 -0
- package/dts/layout/HStack.d.ts +17 -0
- package/dts/layout/HStack.d.ts.map +1 -0
- package/dts/layout/Spacer.d.ts +34 -0
- package/dts/layout/Spacer.d.ts.map +1 -0
- package/dts/layout/VStack.d.ts +17 -0
- package/dts/layout/VStack.d.ts.map +1 -0
- package/dts/layout/__figma__/Divider.figma.d.ts +2 -0
- package/dts/layout/__figma__/Divider.figma.d.ts.map +1 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts +2 -0
- package/dts/layout/__figma__/Fallback.figma.d.ts.map +1 -0
- package/dts/layout/index.d.ts +10 -0
- package/dts/layout/index.d.ts.map +1 -0
- package/dts/loaders/CircularProgress.d.ts +30 -0
- package/dts/loaders/CircularProgress.d.ts.map +1 -0
- package/dts/loaders/MaterialSpinner.d.ts +16 -0
- package/dts/loaders/MaterialSpinner.d.ts.map +1 -0
- package/dts/loaders/Spinner.d.ts +21 -0
- package/dts/loaders/Spinner.d.ts.map +1 -0
- package/dts/loaders/index.d.ts +2 -0
- package/dts/loaders/index.d.ts.map +1 -0
- package/dts/media/Avatar.d.ts +55 -0
- package/dts/media/Avatar.d.ts.map +1 -0
- package/dts/media/Hexagon.d.ts +90 -0
- package/dts/media/Hexagon.d.ts.map +1 -0
- package/dts/media/RemoteImage.d.ts +46 -0
- package/dts/media/RemoteImage.d.ts.map +1 -0
- package/dts/media/RemoteImageGroup.d.ts +37 -0
- package/dts/media/RemoteImageGroup.d.ts.map +1 -0
- package/dts/media/__figma__/Avatar.figma.d.ts +2 -0
- package/dts/media/__figma__/Avatar.figma.d.ts.map +1 -0
- package/dts/media/index.d.ts +4 -0
- package/dts/media/index.d.ts.map +1 -0
- package/dts/motion/AnimatedCaret.d.ts +9 -0
- package/dts/motion/AnimatedCaret.d.ts.map +1 -0
- package/dts/motion/ColorSurge.d.ts +29 -0
- package/dts/motion/ColorSurge.d.ts.map +1 -0
- package/dts/motion/Pulse.d.ts +57 -0
- package/dts/motion/Pulse.d.ts.map +1 -0
- package/dts/motion/Shake.d.ts +20 -0
- package/dts/motion/Shake.d.ts.map +1 -0
- package/dts/motion/types.d.ts +29 -0
- package/dts/motion/types.d.ts.map +1 -0
- package/dts/motion/useMotionProps.d.ts +11128 -0
- package/dts/motion/useMotionProps.d.ts.map +1 -0
- package/dts/motion/utils.d.ts +5396 -0
- package/dts/motion/utils.d.ts.map +1 -0
- package/dts/multi-content-module/MultiContentModule.d.ts +40 -0
- package/dts/multi-content-module/MultiContentModule.d.ts.map +1 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts +2 -0
- package/dts/multi-content-module/__figma__/MultiContentModule.figma.d.ts.map +1 -0
- package/dts/navigation/NavLink.d.ts +14 -0
- package/dts/navigation/NavLink.d.ts.map +1 -0
- package/dts/navigation/NavigationBar.d.ts +68 -0
- package/dts/navigation/NavigationBar.d.ts.map +1 -0
- package/dts/navigation/NavigationTitle.d.ts +7 -0
- package/dts/navigation/NavigationTitle.d.ts.map +1 -0
- package/dts/navigation/NavigationTitleSelect.d.ts +23 -0
- package/dts/navigation/NavigationTitleSelect.d.ts.map +1 -0
- package/dts/navigation/Sidebar.d.ts +36 -0
- package/dts/navigation/Sidebar.d.ts.map +1 -0
- package/dts/navigation/SidebarContext.d.ts +8 -0
- package/dts/navigation/SidebarContext.d.ts.map +1 -0
- package/dts/navigation/SidebarItem.d.ts +55 -0
- package/dts/navigation/SidebarItem.d.ts.map +1 -0
- package/dts/navigation/SidebarMoreMenu.d.ts +16 -0
- package/dts/navigation/SidebarMoreMenu.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavLink.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavLink.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavigationBar.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts +2 -0
- package/dts/navigation/__figma__/NavigationTitle.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/Sidebar.figma.d.ts +2 -0
- package/dts/navigation/__figma__/Sidebar.figma.d.ts.map +1 -0
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts +2 -0
- package/dts/navigation/__figma__/SidebarItem.figma.d.ts.map +1 -0
- package/dts/navigation/index.d.ts +8 -0
- package/dts/navigation/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberAffixSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts +8 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberDigit.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberMask.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberSymbol.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts +3 -0
- package/dts/numbers/RollingNumber/DefaultRollingNumberValueSection.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts +415 -0
- package/dts/numbers/RollingNumber/RollingNumber.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/index.d.ts +7 -0
- package/dts/numbers/RollingNumber/index.d.ts.map +1 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts +17 -0
- package/dts/numbers/RollingNumber/useColorPulse.d.ts.map +1 -0
- package/dts/numbers/index.d.ts +2 -0
- package/dts/numbers/index.d.ts.map +1 -0
- package/dts/overlays/Alert.d.ts +122 -0
- package/dts/overlays/Alert.d.ts.map +1 -0
- package/dts/overlays/FocusTrap.d.ts +42 -0
- package/dts/overlays/FocusTrap.d.ts.map +1 -0
- package/dts/overlays/FullscreenAlert.d.ts +43 -0
- package/dts/overlays/FullscreenAlert.d.ts.map +1 -0
- package/dts/overlays/Portal.d.ts +14 -0
- package/dts/overlays/Portal.d.ts.map +1 -0
- package/dts/overlays/PortalProvider.d.ts +19 -0
- package/dts/overlays/PortalProvider.d.ts.map +1 -0
- package/dts/overlays/Toast.d.ts +28 -0
- package/dts/overlays/Toast.d.ts.map +1 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Alert.figma.d.ts.map +1 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts +2 -0
- package/dts/overlays/__figma__/Toast.figma.d.ts.map +1 -0
- package/dts/overlays/index.d.ts +18 -0
- package/dts/overlays/index.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModal.d.ts +65 -0
- package/dts/overlays/modal/FullscreenModal.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModalHeader.d.ts +21 -0
- package/dts/overlays/modal/FullscreenModalHeader.d.ts.map +1 -0
- package/dts/overlays/modal/FullscreenModalLayout.d.ts +47 -0
- package/dts/overlays/modal/FullscreenModalLayout.d.ts.map +1 -0
- package/dts/overlays/modal/Modal.d.ts +57 -0
- package/dts/overlays/modal/Modal.d.ts.map +1 -0
- package/dts/overlays/modal/ModalBody.d.ts +7 -0
- package/dts/overlays/modal/ModalBody.d.ts.map +1 -0
- package/dts/overlays/modal/ModalFooter.d.ts +32 -0
- package/dts/overlays/modal/ModalFooter.d.ts.map +1 -0
- package/dts/overlays/modal/ModalHeader.d.ts +57 -0
- package/dts/overlays/modal/ModalHeader.d.ts.map +1 -0
- package/dts/overlays/modal/ModalWrapper.d.ts +46 -0
- package/dts/overlays/modal/ModalWrapper.d.ts.map +1 -0
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts +2 -0
- package/dts/overlays/modal/__figma__/FullscreenModal.figma.d.ts.map +1 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts +2 -0
- package/dts/overlays/modal/__figma__/Modal.figma.d.ts.map +1 -0
- package/dts/overlays/overlay/Overlay.d.ts +6 -0
- package/dts/overlays/overlay/Overlay.d.ts.map +1 -0
- package/dts/overlays/overlay/OverlayContent.d.ts +15 -0
- package/dts/overlays/overlay/OverlayContent.d.ts.map +1 -0
- package/dts/overlays/popover/Popover.d.ts +37 -0
- package/dts/overlays/popover/Popover.d.ts.map +1 -0
- package/dts/overlays/popover/PopoverProps.d.ts +83 -0
- package/dts/overlays/popover/PopoverProps.d.ts.map +1 -0
- package/dts/overlays/popover/usePopper.d.ts +24 -0
- package/dts/overlays/popover/usePopper.d.ts.map +1 -0
- package/dts/overlays/tooltip/Tooltip.d.ts +21 -0
- package/dts/overlays/tooltip/Tooltip.d.ts.map +1 -0
- package/dts/overlays/tooltip/TooltipContent.d.ts +14 -0
- package/dts/overlays/tooltip/TooltipContent.d.ts.map +1 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts +60 -0
- package/dts/overlays/tooltip/TooltipProps.d.ts.map +1 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts +2 -0
- package/dts/overlays/tooltip/__figma__/Tooltip.figma.d.ts.map +1 -0
- package/dts/overlays/tooltip/useTooltipState.d.ts +9 -0
- package/dts/overlays/tooltip/useTooltipState.d.ts.map +1 -0
- package/dts/overlays/tray/Tray.d.ts +145 -0
- package/dts/overlays/tray/Tray.d.ts.map +1 -0
- package/dts/overlays/useModal.d.ts +6 -0
- package/dts/overlays/useModal.d.ts.map +1 -0
- package/dts/overlays/usePortal.d.ts +3 -0
- package/dts/overlays/usePortal.d.ts.map +1 -0
- package/dts/overlays/useToast.d.ts +9 -0
- package/dts/overlays/useToast.d.ts.map +1 -0
- package/dts/page/PageFooter.d.ts +28 -0
- package/dts/page/PageFooter.d.ts.map +1 -0
- package/dts/page/PageHeader.d.ts +81 -0
- package/dts/page/PageHeader.d.ts.map +1 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts +2 -0
- package/dts/page/__figma__/PageFooter.figma.d.ts.map +1 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts +2 -0
- package/dts/page/__figma__/PageHeader.figma.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationEllipsis.d.ts +6 -0
- package/dts/pagination/DefaultPaginationEllipsis.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationNavigationButton.d.ts +11 -0
- package/dts/pagination/DefaultPaginationNavigationButton.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts +15 -0
- package/dts/pagination/DefaultPaginationNavigationTextButton.d.ts.map +1 -0
- package/dts/pagination/DefaultPaginationPageButton.d.ts +5 -0
- package/dts/pagination/DefaultPaginationPageButton.d.ts.map +1 -0
- package/dts/pagination/Pagination.d.ts +101 -0
- package/dts/pagination/Pagination.d.ts.map +1 -0
- package/dts/pagination/__figma__/Pagination.figma.d.ts +2 -0
- package/dts/pagination/__figma__/Pagination.figma.d.ts.map +1 -0
- package/dts/pagination/usePagination.d.ts +49 -0
- package/dts/pagination/usePagination.d.ts.map +1 -0
- package/dts/section-header/SectionHeader.d.ts +27 -0
- package/dts/section-header/SectionHeader.d.ts.map +1 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts +2 -0
- package/dts/section-header/__figma__/SectionHeader.figma.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperHeaderHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperIconVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperLabelHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperLabelVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperProgressVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperStepVertical.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerHorizontal.d.ts.map +1 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts +3 -0
- package/dts/stepper/DefaultStepperSubstepContainerVertical.d.ts.map +1 -0
- package/dts/stepper/Stepper.d.ts +259 -0
- package/dts/stepper/Stepper.d.ts.map +1 -0
- package/dts/stepper/index.d.ts +12 -0
- package/dts/stepper/index.d.ts.map +1 -0
- package/dts/styles/booleanStyles.d.ts +18 -0
- package/dts/styles/booleanStyles.d.ts.map +1 -0
- package/dts/styles/config.d.ts +133 -0
- package/dts/styles/config.d.ts.map +1 -0
- package/dts/styles/defaultFont.d.ts +2 -0
- package/dts/styles/defaultFont.d.ts.map +1 -0
- package/dts/styles/global.d.ts +2 -0
- package/dts/styles/global.d.ts.map +1 -0
- package/dts/styles/media.d.ts +33 -0
- package/dts/styles/media.d.ts.map +1 -0
- package/dts/styles/responsive/base.d.ts +178 -0
- package/dts/styles/responsive/base.d.ts.map +1 -0
- package/dts/styles/responsive/desktop.d.ts +226 -0
- package/dts/styles/responsive/desktop.d.ts.map +1 -0
- package/dts/styles/responsive/phone.d.ts +226 -0
- package/dts/styles/responsive/phone.d.ts.map +1 -0
- package/dts/styles/responsive/tablet.d.ts +226 -0
- package/dts/styles/responsive/tablet.d.ts.map +1 -0
- package/dts/styles/styleProps.d.ts +153 -0
- package/dts/styles/styleProps.d.ts.map +1 -0
- package/dts/system/BrowserOnly.d.ts +14 -0
- package/dts/system/BrowserOnly.d.ts.map +1 -0
- package/dts/system/ButtonOrLink.d.ts +17 -0
- package/dts/system/ButtonOrLink.d.ts.map +1 -0
- package/dts/system/EventHandlerProvider.d.ts +8 -0
- package/dts/system/EventHandlerProvider.d.ts.map +1 -0
- package/dts/system/FramerMotionProvider.d.ts +9 -0
- package/dts/system/FramerMotionProvider.d.ts.map +1 -0
- package/dts/system/Interactable.d.ts +112 -0
- package/dts/system/Interactable.d.ts.map +1 -0
- package/dts/system/MediaQueryProvider.d.ts +46 -0
- package/dts/system/MediaQueryProvider.d.ts.map +1 -0
- package/dts/system/Pressable.d.ts +25 -0
- package/dts/system/Pressable.d.ts.map +1 -0
- package/dts/system/PressableOpacity.d.ts +25 -0
- package/dts/system/PressableOpacity.d.ts.map +1 -0
- package/dts/system/ThemeProvider.d.ts +37 -0
- package/dts/system/ThemeProvider.d.ts.map +1 -0
- package/dts/system/index.d.ts +7 -0
- package/dts/system/index.d.ts.map +1 -0
- package/dts/system/interactableCSSProperties.d.ts +12 -0
- package/dts/system/interactableCSSProperties.d.ts.map +1 -0
- package/dts/system/reakit-utils.d.ts +26 -0
- package/dts/system/reakit-utils.d.ts.map +1 -0
- package/dts/tables/Table.d.ts +95 -0
- package/dts/tables/Table.d.ts.map +1 -0
- package/dts/tables/TableBody.d.ts +7 -0
- package/dts/tables/TableBody.d.ts.map +1 -0
- package/dts/tables/TableCaption.d.ts +81 -0
- package/dts/tables/TableCaption.d.ts.map +1 -0
- package/dts/tables/TableCell.d.ts +152 -0
- package/dts/tables/TableCell.d.ts.map +1 -0
- package/dts/tables/TableCellFallback.d.ts +33 -0
- package/dts/tables/TableCellFallback.d.ts.map +1 -0
- package/dts/tables/TableCellSortIcon.d.ts +8 -0
- package/dts/tables/TableCellSortIcon.d.ts.map +1 -0
- package/dts/tables/TableFooter.d.ts +7 -0
- package/dts/tables/TableFooter.d.ts.map +1 -0
- package/dts/tables/TableHeader.d.ts +20 -0
- package/dts/tables/TableHeader.d.ts.map +1 -0
- package/dts/tables/TableRow.d.ts +67 -0
- package/dts/tables/TableRow.d.ts.map +1 -0
- package/dts/tables/TableSection.d.ts +22 -0
- package/dts/tables/TableSection.d.ts.map +1 -0
- package/dts/tables/__figma__/TableCell.figma.d.ts +2 -0
- package/dts/tables/__figma__/TableCell.figma.d.ts.map +1 -0
- package/dts/tables/context/TableContext.d.ts +4 -0
- package/dts/tables/context/TableContext.d.ts.map +1 -0
- package/dts/tables/context/TableSectionContext.d.ts +6 -0
- package/dts/tables/context/TableSectionContext.d.ts.map +1 -0
- package/dts/tables/hooks/useSortableCell.d.ts +17 -0
- package/dts/tables/hooks/useSortableCell.d.ts.map +1 -0
- package/dts/tables/hooks/useTable.d.ts +27 -0
- package/dts/tables/hooks/useTable.d.ts.map +1 -0
- package/dts/tables/hooks/useTableRowListener.d.ts +4 -0
- package/dts/tables/hooks/useTableRowListener.d.ts.map +1 -0
- package/dts/tables/hooks/useTableVariant.d.ts +2 -0
- package/dts/tables/hooks/useTableVariant.d.ts.map +1 -0
- package/dts/tables/index.d.ts +9 -0
- package/dts/tables/index.d.ts.map +1 -0
- package/dts/tabs/Paddle.d.ts +33 -0
- package/dts/tabs/Paddle.d.ts.map +1 -0
- package/dts/tabs/SegmentedTab.d.ts +52 -0
- package/dts/tabs/SegmentedTab.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabs.d.ts +14 -0
- package/dts/tabs/SegmentedTabs.d.ts.map +1 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts +7 -0
- package/dts/tabs/SegmentedTabsActiveIndicator.d.ts.map +1 -0
- package/dts/tabs/TabIndicator.d.ts +28 -0
- package/dts/tabs/TabIndicator.d.ts.map +1 -0
- package/dts/tabs/TabLabel.d.ts +31 -0
- package/dts/tabs/TabLabel.d.ts.map +1 -0
- package/dts/tabs/TabNavigation.d.ts +86 -0
- package/dts/tabs/TabNavigation.d.ts.map +1 -0
- package/dts/tabs/Tabs.d.ts +46 -0
- package/dts/tabs/Tabs.d.ts.map +1 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts +2 -0
- package/dts/tabs/__figma__/SegmentedTabs.figma.d.ts.map +1 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts +2 -0
- package/dts/tabs/__figma__/TabNavigation.figma.d.ts.map +1 -0
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts +11160 -0
- package/dts/tabs/hooks/useAnimateTabIndicator.d.ts.map +1 -0
- package/dts/tabs/index.d.ts +8 -0
- package/dts/tabs/index.d.ts.map +1 -0
- package/dts/tag/Tag.d.ts +37 -0
- package/dts/tag/Tag.d.ts.map +1 -0
- package/dts/tag/__figma__/Tag.figma.d.ts +2 -0
- package/dts/tag/__figma__/Tag.figma.d.ts.map +1 -0
- package/dts/themes/coinbaseDenseTheme.d.ts +540 -0
- package/dts/themes/coinbaseDenseTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts +539 -0
- package/dts/themes/coinbaseHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/coinbaseTheme.d.ts +539 -0
- package/dts/themes/coinbaseTheme.d.ts.map +1 -0
- package/dts/themes/defaultHighContrastTheme.d.ts +539 -0
- package/dts/themes/defaultHighContrastTheme.d.ts.map +1 -0
- package/dts/themes/defaultTheme.d.ts +539 -0
- package/dts/themes/defaultTheme.d.ts.map +1 -0
- package/dts/tour/DefaultTourMask.d.ts +10 -0
- package/dts/tour/DefaultTourMask.d.ts.map +1 -0
- package/dts/tour/DefaultTourStepArrow.d.ts +6 -0
- package/dts/tour/DefaultTourStepArrow.d.ts.map +1 -0
- package/dts/tour/Tour.d.ts +85 -0
- package/dts/tour/Tour.d.ts.map +1 -0
- package/dts/tour/TourStep.d.ts +17 -0
- package/dts/tour/TourStep.d.ts.map +1 -0
- package/dts/tour/index.d.ts +5 -0
- package/dts/tour/index.d.ts.map +1 -0
- package/dts/types.d.ts +5 -0
- package/dts/types.d.ts.map +1 -0
- package/dts/typography/Link.d.ts +37 -0
- package/dts/typography/Link.d.ts.map +1 -0
- package/dts/typography/Text.d.ts +60 -0
- package/dts/typography/Text.d.ts.map +1 -0
- package/dts/typography/TextBody.d.ts +17 -0
- package/dts/typography/TextBody.d.ts.map +1 -0
- package/dts/typography/TextCaption.d.ts +17 -0
- package/dts/typography/TextCaption.d.ts.map +1 -0
- package/dts/typography/TextDisplay1.d.ts +17 -0
- package/dts/typography/TextDisplay1.d.ts.map +1 -0
- package/dts/typography/TextDisplay2.d.ts +17 -0
- package/dts/typography/TextDisplay2.d.ts.map +1 -0
- package/dts/typography/TextDisplay3.d.ts +17 -0
- package/dts/typography/TextDisplay3.d.ts.map +1 -0
- package/dts/typography/TextHeadline.d.ts +17 -0
- package/dts/typography/TextHeadline.d.ts.map +1 -0
- package/dts/typography/TextInherited.d.ts +17 -0
- package/dts/typography/TextInherited.d.ts.map +1 -0
- package/dts/typography/TextLabel1.d.ts +17 -0
- package/dts/typography/TextLabel1.d.ts.map +1 -0
- package/dts/typography/TextLabel2.d.ts +17 -0
- package/dts/typography/TextLabel2.d.ts.map +1 -0
- package/dts/typography/TextLegal.d.ts +17 -0
- package/dts/typography/TextLegal.d.ts.map +1 -0
- package/dts/typography/TextTitle1.d.ts +17 -0
- package/dts/typography/TextTitle1.d.ts.map +1 -0
- package/dts/typography/TextTitle2.d.ts +17 -0
- package/dts/typography/TextTitle2.d.ts.map +1 -0
- package/dts/typography/TextTitle3.d.ts +17 -0
- package/dts/typography/TextTitle3.d.ts.map +1 -0
- package/dts/typography/TextTitle4.d.ts +17 -0
- package/dts/typography/TextTitle4.d.ts.map +1 -0
- package/dts/typography/__figma__/Link.figma.d.ts +2 -0
- package/dts/typography/__figma__/Link.figma.d.ts.map +1 -0
- package/dts/typography/index.d.ts +17 -0
- package/dts/typography/index.d.ts.map +1 -0
- package/dts/utils/browser.d.ts +21 -0
- package/dts/utils/browser.d.ts.map +1 -0
- package/dts/utils/eventHandlers.d.ts +2 -0
- package/dts/utils/eventHandlers.d.ts.map +1 -0
- package/dts/utils/flattenAndJoinNodes.d.ts +24 -0
- package/dts/utils/flattenAndJoinNodes.d.ts.map +1 -0
- package/dts/utils/isRtl.d.ts +2 -0
- package/dts/utils/isRtl.d.ts.map +1 -0
- package/dts/utils/mediaQueryListener.d.ts +11 -0
- package/dts/utils/mediaQueryListener.d.ts.map +1 -0
- package/dts/utils/storybook.d.ts +6 -0
- package/dts/utils/storybook.d.ts.map +1 -0
- package/dts/utils/test.d.ts +20 -0
- package/dts/utils/test.d.ts.map +1 -0
- package/dts/visualizations/Counter.d.ts +18 -0
- package/dts/visualizations/Counter.d.ts.map +1 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts +10 -0
- package/dts/visualizations/DefaultProgressCircleContent.d.ts.map +1 -0
- package/dts/visualizations/ProgressBar.d.ts +136 -0
- package/dts/visualizations/ProgressBar.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts +89 -0
- package/dts/visualizations/ProgressBarWithFixedLabels.d.ts.map +1 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts +66 -0
- package/dts/visualizations/ProgressBarWithFloatLabel.d.ts.map +1 -0
- package/dts/visualizations/ProgressCircle.d.ts +171 -0
- package/dts/visualizations/ProgressCircle.d.ts.map +1 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts +6 -0
- package/dts/visualizations/ProgressContainerWithButtons.d.ts.map +1 -0
- package/dts/visualizations/ProgressTextLabel.d.ts +27 -0
- package/dts/visualizations/ProgressTextLabel.d.ts.map +1 -0
- package/dts/visualizations/VisualizationContainer.d.ts +16 -0
- package/dts/visualizations/VisualizationContainer.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressBar.figma.d.ts.map +1 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts +2 -0
- package/dts/visualizations/__figma__/ProgressCircle.figma.d.ts.map +1 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts +16 -0
- package/dts/visualizations/getProgressBarLabelParts.d.ts.map +1 -0
- package/dts/visualizations/index.d.ts +8 -0
- package/dts/visualizations/index.d.ts.map +1 -0
- package/esm/AccessibilityAnnouncer/AccessibilityAnnouncer.css +1 -0
- package/esm/AccessibilityAnnouncer/AccessibilityAnnouncer.js +46 -0
- package/esm/accordion/Accordion.js +35 -0
- package/esm/accordion/AccordionHeader.css +3 -0
- package/esm/accordion/AccordionHeader.js +125 -0
- package/esm/accordion/AccordionItem.js +53 -0
- package/esm/accordion/AccordionPanel.js +36 -0
- package/esm/accordion/__figma__/Accordion.figma.js +47 -0
- package/esm/accordion/index.js +2 -0
- package/esm/accordion/utils.js +2 -0
- package/esm/animation/Lottie.css +1 -0
- package/esm/animation/Lottie.js +83 -0
- package/esm/animation/LottieStatusAnimation.js +41 -0
- package/esm/animation/NewAnimatePresence.js +5 -0
- package/esm/animation/convertMotionConfig.js +35 -0
- package/esm/animation/index.js +2 -0
- package/esm/animation/types.js +1 -0
- package/esm/animation/useLottieHandlers.js +15 -0
- package/esm/animation/useLottieListeners.js +24 -0
- package/esm/animation/useLottieLoader.js +94 -0
- package/esm/banner/Banner.css +1 -0
- package/esm/banner/Banner.js +226 -0
- package/esm/buttons/AvatarButton.css +1 -0
- package/esm/buttons/AvatarButton.js +55 -0
- package/esm/buttons/Button.css +13 -0
- package/esm/buttons/Button.js +136 -0
- package/esm/buttons/ButtonGroup.css +3 -0
- package/esm/buttons/ButtonGroup.js +34 -0
- package/esm/buttons/IconButton.css +4 -0
- package/esm/buttons/IconButton.js +94 -0
- package/esm/buttons/IconCounterButton.js +50 -0
- package/esm/buttons/Tile.css +2 -0
- package/esm/buttons/Tile.js +56 -0
- package/esm/buttons/TileButton.js +58 -0
- package/esm/buttons/__figma__/AvatarButton.figma.js +30 -0
- package/esm/buttons/__figma__/Button.figma.js +63 -0
- package/esm/buttons/__figma__/ButtonGroup.figma.js +54 -0
- package/esm/buttons/__figma__/IconButton.figma.js +35 -0
- package/esm/buttons/__figma__/TileButton.figma.js +29 -0
- package/esm/buttons/index.js +6 -0
- package/esm/cards/AnnouncementCard.js +45 -0
- package/esm/cards/Card.js +97 -0
- package/esm/cards/CardBody.js +162 -0
- package/esm/cards/CardFooter.js +28 -0
- package/esm/cards/CardGroup.js +30 -0
- package/esm/cards/CardHeader.js +43 -0
- package/esm/cards/CardMedia.js +55 -0
- package/esm/cards/CardRemoteImage.js +26 -0
- package/esm/cards/ContainedAssetCard.css +2 -0
- package/esm/cards/ContainedAssetCard.js +96 -0
- package/esm/cards/ContentCard/ContentCard.js +38 -0
- package/esm/cards/ContentCard/ContentCardBody.js +59 -0
- package/esm/cards/ContentCard/ContentCardFooter.js +29 -0
- package/esm/cards/ContentCard/ContentCardHeader.js +57 -0
- package/esm/cards/ContentCard/__figma__/ContentCard.figma.js +37 -0
- package/esm/cards/ContentCard/__figma__/ContentCardBody.figma.js +55 -0
- package/esm/cards/ContentCard/__figma__/ContentCardFooter.figma.js +150 -0
- package/esm/cards/ContentCard/__figma__/ContentCardHeader.figma.js +29 -0
- package/esm/cards/ContentCard/index.js +4 -0
- package/esm/cards/DataCard.js +72 -0
- package/esm/cards/FeatureEntryCard.js +42 -0
- package/esm/cards/FeedCard.js +104 -0
- package/esm/cards/FloatingAssetCard.css +2 -0
- package/esm/cards/FloatingAssetCard.js +76 -0
- package/esm/cards/LikeButton.js +62 -0
- package/esm/cards/NudgeCard.css +2 -0
- package/esm/cards/NudgeCard.js +162 -0
- package/esm/cards/UpsellCard.js +99 -0
- package/esm/cards/__figma__/AnnouncementCard.figma.js +19 -0
- package/esm/cards/__figma__/ContainedAssetCard.figma.js +45 -0
- package/esm/cards/__figma__/FloatingAssetCard.figma.js +36 -0
- package/esm/cards/__figma__/NudgeCard.figma.js +60 -0
- package/esm/cards/__figma__/UpsellCard.figma.js +57 -0
- package/esm/cards/index.js +17 -0
- package/esm/carousel/Carousel.css +1 -0
- package/esm/carousel/Carousel.js +424 -0
- package/esm/carousel/CarouselItem.js +52 -0
- package/esm/carousel/DefaultCarouselNavigation.css +1 -0
- package/esm/carousel/DefaultCarouselNavigation.js +60 -0
- package/esm/carousel/DefaultCarouselPagination.css +2 -0
- package/esm/carousel/DefaultCarouselPagination.js +119 -0
- package/esm/carousel/index.js +4 -0
- package/esm/cells/Cell.css +4 -0
- package/esm/cells/Cell.js +201 -0
- package/esm/cells/CellAccessory.js +50 -0
- package/esm/cells/CellDetail.js +34 -0
- package/esm/cells/CellHelperText.js +40 -0
- package/esm/cells/CellMedia.js +54 -0
- package/esm/cells/ContentCell.css +2 -0
- package/esm/cells/ContentCell.js +111 -0
- package/esm/cells/ContentCellFallback.js +69 -0
- package/esm/cells/ListCell.css +1 -0
- package/esm/cells/ListCell.js +102 -0
- package/esm/cells/ListCellFallback.js +127 -0
- package/esm/cells/MediaFallback.js +24 -0
- package/esm/cells/__figma__/ContentCell.figma.js +40 -0
- package/esm/cells/__figma__/ListCell.figma.js +79 -0
- package/esm/cells/index.js +6 -0
- package/esm/chips/Chip.css +2 -0
- package/esm/chips/Chip.js +79 -0
- package/esm/chips/ChipProps.js +1 -0
- package/esm/chips/InputChip.js +33 -0
- package/esm/chips/SelectChip.js +94 -0
- package/esm/chips/TabbedChips.css +1 -0
- package/esm/chips/TabbedChips.js +156 -0
- package/esm/chips/__figma__/InputChip.figma.js +29 -0
- package/esm/chips/__figma__/SelectChip.figma.js +47 -0
- package/esm/chips/__figma__/TabbedChips.figma.js +55 -0
- package/esm/chips/index.js +5 -0
- package/esm/coachmark/Coachmark.js +73 -0
- package/esm/coachmark/__figma__/Coachmark.figma.js +49 -0
- package/esm/collapsible/Collapsible.js +99 -0
- package/esm/collapsible/index.js +1 -0
- package/esm/collapsible/useCollapsibleMotionProps.js +34 -0
- package/esm/controls/Checkbox.css +1 -0
- package/esm/controls/Checkbox.js +84 -0
- package/esm/controls/CheckboxCell.css +1 -0
- package/esm/controls/CheckboxCell.js +120 -0
- package/esm/controls/CheckboxGroup.css +1 -0
- package/esm/controls/CheckboxGroup.js +112 -0
- package/esm/controls/Control.css +3 -0
- package/esm/controls/Control.js +118 -0
- package/esm/controls/ControlGroup.css +1 -0
- package/esm/controls/ControlGroup.js +72 -0
- package/esm/controls/HelperText.css +1 -0
- package/esm/controls/HelperText.js +49 -0
- package/esm/controls/InputIcon.js +41 -0
- package/esm/controls/InputIconButton.js +41 -0
- package/esm/controls/InputLabel.js +26 -0
- package/esm/controls/InputStack.css +3 -0
- package/esm/controls/InputStack.js +137 -0
- package/esm/controls/NativeInput.css +3 -0
- package/esm/controls/NativeInput.js +56 -0
- package/esm/controls/NativeTextArea.css +2 -0
- package/esm/controls/NativeTextArea.js +46 -0
- package/esm/controls/Radio.css +1 -0
- package/esm/controls/Radio.js +84 -0
- package/esm/controls/RadioCell.css +1 -0
- package/esm/controls/RadioCell.js +118 -0
- package/esm/controls/RadioGroup.js +85 -0
- package/esm/controls/SearchInput.css +2 -0
- package/esm/controls/SearchInput.js +90 -0
- package/esm/controls/SegmentedControl.css +6 -0
- package/esm/controls/SegmentedControl.js +109 -0
- package/esm/controls/Select.js +94 -0
- package/esm/controls/SelectOption.css +5 -0
- package/esm/controls/SelectOption.js +106 -0
- package/esm/controls/SelectStack.js +64 -0
- package/esm/controls/SelectTrigger.css +1 -0
- package/esm/controls/SelectTrigger.js +133 -0
- package/esm/controls/Switch.css +2 -0
- package/esm/controls/Switch.js +88 -0
- package/esm/controls/TextInput.css +3 -0
- package/esm/controls/TextInput.js +206 -0
- package/esm/controls/__figma__/Checkbox.figma.js +32 -0
- package/esm/controls/__figma__/CheckboxCell.figma.js +43 -0
- package/esm/controls/__figma__/CheckboxGroup.figma.js +27 -0
- package/esm/controls/__figma__/NativeTextArea.figma.js +30 -0
- package/esm/controls/__figma__/RadioCell.figma.js +43 -0
- package/esm/controls/__figma__/RadioGroup.figma.js +47 -0
- package/esm/controls/__figma__/SearchInput.figma.js +44 -0
- package/esm/controls/__figma__/Select.figma.js +47 -0
- package/esm/controls/__figma__/SelectOption.figma.js +38 -0
- package/esm/controls/__figma__/Switch.figma.js +20 -0
- package/esm/controls/__figma__/TextInput.figma.js +130 -0
- package/esm/controls/context.js +3 -0
- package/esm/controls/index.js +15 -0
- package/esm/controls/selectContext.js +9 -0
- package/esm/controls/useHandleRadioSelect.js +6 -0
- package/esm/controls/useRefocusTrigger.js +19 -0
- package/esm/controls/useSelectionCellControlHeight.js +35 -0
- package/esm/core/createThemeCssVars.js +33 -0
- package/esm/core/polymorphism.js +6 -0
- package/esm/core/theme.js +26 -0
- package/esm/cx.js +49 -0
- package/esm/dates/Calendar.css +1 -0
- package/esm/dates/Calendar.js +271 -0
- package/esm/dates/DateInput.js +108 -0
- package/esm/dates/DatePicker.js +188 -0
- package/esm/dates/__figma__/DatePicker.figma.js +46 -0
- package/esm/defaultFontStyles.js +1 -0
- package/esm/dots/DotCount.css +2 -0
- package/esm/dots/DotCount.js +84 -0
- package/esm/dots/DotStatusColor.css +1 -0
- package/esm/dots/DotStatusColor.js +60 -0
- package/esm/dots/DotSymbol.css +3 -0
- package/esm/dots/DotSymbol.js +86 -0
- package/esm/dots/__figma__/DotCount.figma.js +19 -0
- package/esm/dots/__figma__/DotStatusColor.figma.js +27 -0
- package/esm/dots/__figma__/DotSymbol.figma.js +49 -0
- package/esm/dots/dotStyles.js +31 -0
- package/esm/dots/index.js +3 -0
- package/esm/dropdown/Dropdown.js +213 -0
- package/esm/dropdown/DropdownContent.js +51 -0
- package/esm/dropdown/DropdownProps.js +1 -0
- package/esm/dropdown/MenuItem.css +1 -0
- package/esm/dropdown/MenuItem.js +51 -0
- package/esm/dropdown/__figma__/Dropdown.figma.js +20 -0
- package/esm/dropdown/index.js +3 -0
- package/esm/dropdown/useResponsiveHeight.js +74 -0
- package/esm/globalStyles.js +1 -0
- package/esm/hooks/useA11yControlledVisibility.js +27 -0
- package/esm/hooks/useA11yLabels.js +51 -0
- package/esm/hooks/useBreakpoints.js +79 -0
- package/esm/hooks/useCellSpacing.js +31 -0
- package/esm/hooks/useCheckboxGroupState.js +43 -0
- package/esm/hooks/useDimensions.js +169 -0
- package/esm/hooks/useEventHandler.js +6 -0
- package/esm/hooks/useHasMounted.js +8 -0
- package/esm/hooks/useIsBrowser.js +8 -0
- package/esm/hooks/useIsoEffect.js +3 -0
- package/esm/hooks/useMediaQuery.js +20 -0
- package/esm/hooks/useScrollBlocker.js +32 -0
- package/esm/hooks/useTheme.js +9 -0
- package/esm/hooks/useThemeContext.js +13 -0
- package/esm/icons/Icon.css +5 -0
- package/esm/icons/Icon.js +83 -0
- package/esm/icons/LogoMark.css +2 -0
- package/esm/icons/LogoMark.js +43 -0
- package/esm/icons/LogoWordmark.css +2 -0
- package/esm/icons/LogoWordmark.js +39 -0
- package/esm/icons/SubBrandLogoMark.css +2 -0
- package/esm/icons/SubBrandLogoMark.js +49 -0
- package/esm/icons/SubBrandLogoWordmark.css +2 -0
- package/esm/icons/SubBrandLogoWordmark.js +52 -0
- package/esm/icons/__figma__/Icon.figma.js +3000 -0
- package/esm/icons/__figma__/LogoMark.figma.js +23 -0
- package/esm/icons/__figma__/LogoWordmark.figma.js +35 -0
- package/esm/icons/__figma__/SubBrandLogoMark.figma.js +51 -0
- package/esm/icons/__figma__/SubBrandLogoWordmark.figma.js +52 -0
- package/esm/icons/index.js +5 -0
- package/esm/illustrations/HeroSquare.js +3 -0
- package/esm/illustrations/Pictogram.js +3 -0
- package/esm/illustrations/SpotIcon.js +3 -0
- package/esm/illustrations/SpotRectangle.js +3 -0
- package/esm/illustrations/SpotSquare.js +3 -0
- package/esm/illustrations/__figma__/HeroSquare.figma.js +2103 -0
- package/esm/illustrations/__figma__/Pictogram.figma.js +1773 -0
- package/esm/illustrations/__figma__/SpotIcon.figma.js +339 -0
- package/esm/illustrations/__figma__/SpotRectangle.figma.js +1101 -0
- package/esm/illustrations/__figma__/SpotSquare.figma.js +1191 -0
- package/esm/illustrations/createIllustration.js +53 -0
- package/esm/illustrations/index.js +5 -0
- package/esm/index.js +6 -0
- package/esm/layout/Box.js +239 -0
- package/esm/layout/Divider.css +2 -0
- package/esm/layout/Divider.js +39 -0
- package/esm/layout/Fallback.css +1 -0
- package/esm/layout/Fallback.js +83 -0
- package/esm/layout/Grid.js +40 -0
- package/esm/layout/GridColumn.js +32 -0
- package/esm/layout/Group.js +68 -0
- package/esm/layout/HStack.js +26 -0
- package/esm/layout/Spacer.js +45 -0
- package/esm/layout/VStack.js +26 -0
- package/esm/layout/__figma__/Divider.figma.js +31 -0
- package/esm/layout/__figma__/Fallback.figma.js +25 -0
- package/esm/layout/index.js +9 -0
- package/esm/loaders/CircularProgress.js +51 -0
- package/esm/loaders/MaterialSpinner.css +1 -0
- package/esm/loaders/MaterialSpinner.js +68 -0
- package/esm/loaders/Spinner.css +2 -0
- package/esm/loaders/Spinner.js +45 -0
- package/esm/loaders/index.js +1 -0
- package/esm/media/Avatar.css +5 -0
- package/esm/media/Avatar.js +130 -0
- package/esm/media/Hexagon.css +1 -0
- package/esm/media/Hexagon.js +158 -0
- package/esm/media/RemoteImage.css +10 -0
- package/esm/media/RemoteImage.js +63 -0
- package/esm/media/RemoteImageGroup.css +5 -0
- package/esm/media/RemoteImageGroup.js +93 -0
- package/esm/media/__figma__/Avatar.figma.js +61 -0
- package/esm/media/index.js +3 -0
- package/esm/motion/AnimatedCaret.js +72 -0
- package/esm/motion/ColorSurge.js +46 -0
- package/esm/motion/Pulse.js +60 -0
- package/esm/motion/Shake.js +31 -0
- package/esm/motion/types.js +1 -0
- package/esm/motion/useMotionProps.js +46 -0
- package/esm/motion/utils.js +80 -0
- package/esm/multi-content-module/MultiContentModule.js +81 -0
- package/esm/multi-content-module/__figma__/MultiContentModule.figma.js +39 -0
- package/esm/navigation/NavLink.css +1 -0
- package/esm/navigation/NavLink.js +29 -0
- package/esm/navigation/NavigationBar.js +73 -0
- package/esm/navigation/NavigationTitle.js +24 -0
- package/esm/navigation/NavigationTitleSelect.js +81 -0
- package/esm/navigation/Sidebar.css +3 -0
- package/esm/navigation/Sidebar.js +122 -0
- package/esm/navigation/SidebarContext.js +10 -0
- package/esm/navigation/SidebarItem.css +1 -0
- package/esm/navigation/SidebarItem.js +87 -0
- package/esm/navigation/SidebarMoreMenu.js +85 -0
- package/esm/navigation/__figma__/NavLink.figma.js +58 -0
- package/esm/navigation/__figma__/NavigationBar.figma.js +284 -0
- package/esm/navigation/__figma__/NavigationTitle.figma.js +18 -0
- package/esm/navigation/__figma__/Sidebar.figma.js +40 -0
- package/esm/navigation/__figma__/SidebarItem.figma.js +25 -0
- package/esm/navigation/index.js +7 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberAffixSection.js +37 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.css +5 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberDigit.js +83 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberMask.js +31 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberSymbol.js +35 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.css +1 -0
- package/esm/numbers/RollingNumber/DefaultRollingNumberValueSection.js +90 -0
- package/esm/numbers/RollingNumber/RollingNumber.css +3 -0
- package/esm/numbers/RollingNumber/RollingNumber.js +261 -0
- package/esm/numbers/RollingNumber/index.js +6 -0
- package/esm/numbers/RollingNumber/useColorPulse.js +35 -0
- package/esm/numbers/index.js +1 -0
- package/esm/overlays/Alert.js +146 -0
- package/esm/overlays/FocusTrap.js +201 -0
- package/esm/overlays/FullscreenAlert.css +3 -0
- package/esm/overlays/FullscreenAlert.js +96 -0
- package/esm/overlays/Portal.js +24 -0
- package/esm/overlays/PortalProvider.js +109 -0
- package/esm/overlays/Toast.css +2 -0
- package/esm/overlays/Toast.js +135 -0
- package/esm/overlays/__figma__/Alert.figma.js +37 -0
- package/esm/overlays/__figma__/Toast.figma.js +51 -0
- package/esm/overlays/index.js +17 -0
- package/esm/overlays/modal/FullscreenModal.css +5 -0
- package/esm/overlays/modal/FullscreenModal.js +103 -0
- package/esm/overlays/modal/FullscreenModalHeader.css +2 -0
- package/esm/overlays/modal/FullscreenModalHeader.js +74 -0
- package/esm/overlays/modal/FullscreenModalLayout.css +1 -0
- package/esm/overlays/modal/FullscreenModalLayout.js +74 -0
- package/esm/overlays/modal/Modal.css +3 -0
- package/esm/overlays/modal/Modal.js +134 -0
- package/esm/overlays/modal/ModalBody.js +38 -0
- package/esm/overlays/modal/ModalFooter.css +1 -0
- package/esm/overlays/modal/ModalFooter.js +46 -0
- package/esm/overlays/modal/ModalHeader.js +83 -0
- package/esm/overlays/modal/ModalWrapper.css +1 -0
- package/esm/overlays/modal/ModalWrapper.js +77 -0
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.css +1 -0
- package/esm/overlays/modal/__figma__/FullscreenModal.figma.js +104 -0
- package/esm/overlays/modal/__figma__/Modal.figma.js +81 -0
- package/esm/overlays/overlay/Overlay.js +21 -0
- package/esm/overlays/overlay/OverlayContent.js +38 -0
- package/esm/overlays/popover/Popover.css +2 -0
- package/esm/overlays/popover/Popover.js +147 -0
- package/esm/overlays/popover/PopoverProps.js +1 -0
- package/esm/overlays/popover/usePopper.js +40 -0
- package/esm/overlays/tooltip/Tooltip.js +87 -0
- package/esm/overlays/tooltip/TooltipContent.css +1 -0
- package/esm/overlays/tooltip/TooltipContent.js +65 -0
- package/esm/overlays/tooltip/TooltipProps.js +1 -0
- package/esm/overlays/tooltip/__figma__/Tooltip.figma.js +91 -0
- package/esm/overlays/tooltip/useTooltipState.js +27 -0
- package/esm/overlays/tray/Tray.js +208 -0
- package/esm/overlays/useModal.js +6 -0
- package/esm/overlays/usePortal.js +2 -0
- package/esm/overlays/useToast.js +44 -0
- package/esm/page/PageFooter.js +43 -0
- package/esm/page/PageHeader.css +2 -0
- package/esm/page/PageHeader.js +131 -0
- package/esm/page/__figma__/PageFooter.figma.js +17 -0
- package/esm/page/__figma__/PageHeader.figma.js +57 -0
- package/esm/pagination/DefaultPaginationEllipsis.js +16 -0
- package/esm/pagination/DefaultPaginationNavigationButton.js +30 -0
- package/esm/pagination/DefaultPaginationNavigationTextButton.js +35 -0
- package/esm/pagination/DefaultPaginationPageButton.css +1 -0
- package/esm/pagination/DefaultPaginationPageButton.js +41 -0
- package/esm/pagination/Pagination.js +141 -0
- package/esm/pagination/__figma__/Pagination.figma.js +22 -0
- package/esm/pagination/usePagination.js +122 -0
- package/esm/section-header/SectionHeader.js +70 -0
- package/esm/section-header/__figma__/SectionHeader.figma.js +58 -0
- package/esm/stepper/DefaultStepperHeaderHorizontal.js +87 -0
- package/esm/stepper/DefaultStepperIconVertical.js +51 -0
- package/esm/stepper/DefaultStepperLabelHorizontal.js +114 -0
- package/esm/stepper/DefaultStepperLabelVertical.js +72 -0
- package/esm/stepper/DefaultStepperProgressHorizontal.js +65 -0
- package/esm/stepper/DefaultStepperProgressVertical.js +111 -0
- package/esm/stepper/DefaultStepperStepHorizontal.js +173 -0
- package/esm/stepper/DefaultStepperStepVertical.js +179 -0
- package/esm/stepper/DefaultStepperSubstepContainerHorizontal.js +37 -0
- package/esm/stepper/DefaultStepperSubstepContainerVertical.js +35 -0
- package/esm/stepper/Stepper.js +238 -0
- package/esm/stepper/index.js +13 -0
- package/esm/styles/booleanStyles.css +12 -0
- package/esm/styles/booleanStyles.js +25 -0
- package/esm/styles/config.js +47 -0
- package/esm/styles/defaultFont.css +1 -0
- package/esm/styles/defaultFont.js +3 -0
- package/esm/styles/global.css +1 -0
- package/esm/styles/global.js +3 -0
- package/esm/styles/media.js +21 -0
- package/esm/styles/responsive/base.css +659 -0
- package/esm/styles/responsive/base.js +786 -0
- package/esm/styles/responsive/desktop.css +1 -0
- package/esm/styles/responsive/desktop.js +787 -0
- package/esm/styles/responsive/phone.css +1 -0
- package/esm/styles/responsive/phone.js +787 -0
- package/esm/styles/responsive/tablet.css +1 -0
- package/esm/styles/responsive/tablet.js +787 -0
- package/esm/styles/styleProps.js +187 -0
- package/esm/system/BrowserOnly.js +13 -0
- package/esm/system/ButtonOrLink.css +1 -0
- package/esm/system/ButtonOrLink.js +167 -0
- package/esm/system/EventHandlerProvider.js +7 -0
- package/esm/system/FramerMotionProvider.js +14 -0
- package/esm/system/Interactable.css +4 -0
- package/esm/system/Interactable.js +114 -0
- package/esm/system/MediaQueryProvider.js +164 -0
- package/esm/system/Pressable.css +3 -0
- package/esm/system/Pressable.js +148 -0
- package/esm/system/PressableOpacity.js +33 -0
- package/esm/system/ThemeProvider.js +87 -0
- package/esm/system/index.js +6 -0
- package/esm/system/interactableCSSProperties.js +14 -0
- package/esm/system/reakit-utils.js +151 -0
- package/esm/tables/Table.css +7 -0
- package/esm/tables/Table.js +76 -0
- package/esm/tables/TableBody.js +25 -0
- package/esm/tables/TableCaption.js +68 -0
- package/esm/tables/TableCell.css +5 -0
- package/esm/tables/TableCell.js +187 -0
- package/esm/tables/TableCellFallback.css +1 -0
- package/esm/tables/TableCellFallback.js +79 -0
- package/esm/tables/TableCellSortIcon.js +37 -0
- package/esm/tables/TableFooter.js +25 -0
- package/esm/tables/TableHeader.css +1 -0
- package/esm/tables/TableHeader.js +32 -0
- package/esm/tables/TableRow.css +2 -0
- package/esm/tables/TableRow.js +68 -0
- package/esm/tables/TableSection.js +41 -0
- package/esm/tables/__figma__/TableCell.figma.js +116 -0
- package/esm/tables/context/TableContext.js +5 -0
- package/esm/tables/context/TableSectionContext.js +2 -0
- package/esm/tables/hooks/useSortableCell.js +21 -0
- package/esm/tables/hooks/useTable.js +77 -0
- package/esm/tables/hooks/useTableRowListener.js +25 -0
- package/esm/tables/hooks/useTableVariant.js +7 -0
- package/esm/tables/index.js +8 -0
- package/esm/tabs/Paddle.css +7 -0
- package/esm/tabs/Paddle.js +87 -0
- package/esm/tabs/SegmentedTab.css +4 -0
- package/esm/tabs/SegmentedTab.js +78 -0
- package/esm/tabs/SegmentedTabs.js +34 -0
- package/esm/tabs/SegmentedTabsActiveIndicator.js +20 -0
- package/esm/tabs/TabIndicator.js +55 -0
- package/esm/tabs/TabLabel.css +3 -0
- package/esm/tabs/TabLabel.js +125 -0
- package/esm/tabs/TabNavigation.css +5 -0
- package/esm/tabs/TabNavigation.js +319 -0
- package/esm/tabs/Tabs.js +142 -0
- package/esm/tabs/__figma__/SegmentedTabs.figma.js +82 -0
- package/esm/tabs/__figma__/TabNavigation.figma.js +82 -0
- package/esm/tabs/hooks/useAnimateTabIndicator.js +47 -0
- package/esm/tabs/index.js +7 -0
- package/esm/tag/Tag.js +63 -0
- package/esm/tag/__figma__/Tag.figma.js +82 -0
- package/esm/themes/coinbaseDenseTheme.js +135 -0
- package/esm/themes/coinbaseHighContrastTheme.js +576 -0
- package/esm/themes/coinbaseTheme.js +576 -0
- package/esm/themes/defaultHighContrastTheme.js +576 -0
- package/esm/themes/defaultTheme.js +576 -0
- package/esm/tour/DefaultTourMask.js +39 -0
- package/esm/tour/DefaultTourStepArrow.js +42 -0
- package/esm/tour/Tour.css +1 -0
- package/esm/tour/Tour.js +204 -0
- package/esm/tour/TourStep.js +22 -0
- package/esm/tour/index.js +4 -0
- package/esm/types.js +1 -0
- package/esm/typography/Link.css +1 -0
- package/esm/typography/Link.js +62 -0
- package/esm/typography/Text.css +11 -0
- package/esm/typography/Text.js +77 -0
- package/esm/typography/TextBody.js +26 -0
- package/esm/typography/TextCaption.js +26 -0
- package/esm/typography/TextDisplay1.js +26 -0
- package/esm/typography/TextDisplay2.js +26 -0
- package/esm/typography/TextDisplay3.js +26 -0
- package/esm/typography/TextHeadline.js +26 -0
- package/esm/typography/TextInherited.js +26 -0
- package/esm/typography/TextLabel1.js +26 -0
- package/esm/typography/TextLabel2.js +26 -0
- package/esm/typography/TextLegal.js +26 -0
- package/esm/typography/TextTitle1.js +26 -0
- package/esm/typography/TextTitle2.js +26 -0
- package/esm/typography/TextTitle3.js +26 -0
- package/esm/typography/TextTitle4.js +26 -0
- package/esm/typography/__figma__/Link.figma.js +32 -0
- package/esm/typography/index.js +16 -0
- package/esm/utils/browser.js +29 -0
- package/esm/utils/eventHandlers.js +1 -0
- package/esm/utils/flattenAndJoinNodes.js +47 -0
- package/esm/utils/isRtl.js +7 -0
- package/esm/utils/mediaQueryListener.js +16 -0
- package/esm/utils/storybook.js +5 -0
- package/esm/utils/test.js +30 -0
- package/esm/visualizations/Counter.css +3 -0
- package/esm/visualizations/Counter.js +38 -0
- package/esm/visualizations/DefaultProgressCircleContent.js +15 -0
- package/esm/visualizations/ProgressBar.css +1 -0
- package/esm/visualizations/ProgressBar.js +96 -0
- package/esm/visualizations/ProgressBarWithFixedLabels.js +166 -0
- package/esm/visualizations/ProgressBarWithFloatLabel.css +1 -0
- package/esm/visualizations/ProgressBarWithFloatLabel.js +126 -0
- package/esm/visualizations/ProgressCircle.css +1 -0
- package/esm/visualizations/ProgressCircle.js +162 -0
- package/esm/visualizations/ProgressContainerWithButtons.js +39 -0
- package/esm/visualizations/ProgressTextLabel.js +48 -0
- package/esm/visualizations/VisualizationContainer.js +32 -0
- package/esm/visualizations/__figma__/ProgressBar.figma.js +103 -0
- package/esm/visualizations/__figma__/ProgressCircle.figma.js +29 -0
- package/esm/visualizations/getProgressBarLabelParts.js +11 -0
- package/esm/visualizations/index.js +7 -0
- package/package.json +186 -6
- package/index.js +0 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const _excluded = ["placeholder"],
|
|
2
|
+
_excluded2 = ["placeholder", "endIcon"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import { figma } from '@figma/code-connect';
|
|
11
|
+
import { HStack } from '../../layout';
|
|
12
|
+
import { Link } from '../../typography';
|
|
13
|
+
import { TextInput } from '../TextInput';
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
|
|
16
|
+
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput';"],
|
|
17
|
+
props: {
|
|
18
|
+
align: figma.boolean('right align text', {
|
|
19
|
+
true: 'end',
|
|
20
|
+
false: undefined
|
|
21
|
+
}),
|
|
22
|
+
disabled: figma.boolean('disabled'),
|
|
23
|
+
compact: figma.boolean('compact'),
|
|
24
|
+
label: figma.boolean('show label', {
|
|
25
|
+
true: figma.string('↳ label string'),
|
|
26
|
+
false: undefined
|
|
27
|
+
}),
|
|
28
|
+
labelVariant: figma.enum('label inside', {
|
|
29
|
+
inside: 'inside',
|
|
30
|
+
outside: 'outside'
|
|
31
|
+
}),
|
|
32
|
+
start: figma.boolean('show start', {
|
|
33
|
+
true: figma.instance('↳ start icon'),
|
|
34
|
+
false: undefined
|
|
35
|
+
}),
|
|
36
|
+
end: figma.boolean('show end', {
|
|
37
|
+
true: figma.boolean('↳ show end icon', {
|
|
38
|
+
true: figma.instance('↳ end icon'),
|
|
39
|
+
false: undefined
|
|
40
|
+
}),
|
|
41
|
+
false: undefined
|
|
42
|
+
}),
|
|
43
|
+
helperText: figma.boolean('show helper text', {
|
|
44
|
+
true: 'Assistive message',
|
|
45
|
+
false: undefined
|
|
46
|
+
}),
|
|
47
|
+
placeholder: figma.nestedProps('string.text input', {
|
|
48
|
+
text: figma.enum('Ready-made', {
|
|
49
|
+
Custom: figma.string('string'),
|
|
50
|
+
Email: figma.textContent('text-input-label'),
|
|
51
|
+
Password: figma.textContent('text-input-label'),
|
|
52
|
+
'Legal name': figma.textContent('text-input-label')
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
variant: figma.enum('state', {
|
|
56
|
+
positive: 'positive',
|
|
57
|
+
negative: 'negative'
|
|
58
|
+
})
|
|
59
|
+
},
|
|
60
|
+
example: _ref => {
|
|
61
|
+
let {
|
|
62
|
+
placeholder
|
|
63
|
+
} = _ref,
|
|
64
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
65
|
+
return /*#__PURE__*/_jsx(TextInput, _objectSpread({
|
|
66
|
+
placeholder: placeholder.text
|
|
67
|
+
}, props));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
figma.connect(TextInput, 'https://www.figma.com/design/k5CtyJccNQUGMI5bI4lJ2g/✨-CDS-Components?node-id=252%3A16679', {
|
|
71
|
+
imports: ["import { TextInput } from '@coinbase/cds-web/controls/TextInput';"],
|
|
72
|
+
variant: {
|
|
73
|
+
'show end': true,
|
|
74
|
+
'↳ show suffix': true
|
|
75
|
+
},
|
|
76
|
+
props: {
|
|
77
|
+
align: figma.boolean('right align text', {
|
|
78
|
+
true: 'end',
|
|
79
|
+
false: undefined
|
|
80
|
+
}),
|
|
81
|
+
disabled: figma.boolean('disabled'),
|
|
82
|
+
compact: figma.boolean('compact'),
|
|
83
|
+
label: figma.boolean('show label', {
|
|
84
|
+
true: figma.string('↳ label string'),
|
|
85
|
+
false: undefined
|
|
86
|
+
}),
|
|
87
|
+
labelVariant: figma.boolean('label inside', {
|
|
88
|
+
true: 'inside',
|
|
89
|
+
false: 'outside'
|
|
90
|
+
}),
|
|
91
|
+
start: figma.boolean('show start', {
|
|
92
|
+
true: figma.instance('↳ start icon'),
|
|
93
|
+
false: undefined
|
|
94
|
+
}),
|
|
95
|
+
endIcon: figma.instance('↳ end icon'),
|
|
96
|
+
helperText: figma.boolean('show helper text', {
|
|
97
|
+
true: 'Assistive message',
|
|
98
|
+
false: undefined
|
|
99
|
+
}),
|
|
100
|
+
placeholder: figma.nestedProps('string.text input', {
|
|
101
|
+
text: figma.enum('Ready-made', {
|
|
102
|
+
Custom: figma.string('string'),
|
|
103
|
+
Email: figma.textContent('text-input-label'),
|
|
104
|
+
Password: figma.textContent('text-input-label'),
|
|
105
|
+
'Legal name': figma.textContent('text-input-label')
|
|
106
|
+
})
|
|
107
|
+
}),
|
|
108
|
+
variant: figma.enum('state', {
|
|
109
|
+
positive: 'positive',
|
|
110
|
+
negative: 'negative'
|
|
111
|
+
})
|
|
112
|
+
},
|
|
113
|
+
example: _ref2 => {
|
|
114
|
+
let {
|
|
115
|
+
placeholder,
|
|
116
|
+
endIcon
|
|
117
|
+
} = _ref2,
|
|
118
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
119
|
+
return /*#__PURE__*/_jsx(TextInput, _objectSpread({
|
|
120
|
+
end: /*#__PURE__*/_jsxs(HStack, {
|
|
121
|
+
children: [/*#__PURE__*/_jsx(Link, {
|
|
122
|
+
color: "fgPrimary",
|
|
123
|
+
onClick: () => {},
|
|
124
|
+
children: "copy"
|
|
125
|
+
}), endIcon]
|
|
126
|
+
}),
|
|
127
|
+
placeholder: placeholder.text
|
|
128
|
+
}, props));
|
|
129
|
+
}
|
|
130
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
2
|
+
export * from './CheckboxCell';
|
|
3
|
+
export * from './CheckboxGroup';
|
|
4
|
+
export * from './ControlGroup';
|
|
5
|
+
export * from './InputIcon';
|
|
6
|
+
export * from './InputIconButton';
|
|
7
|
+
export * from './NativeTextArea';
|
|
8
|
+
export * from './RadioCell';
|
|
9
|
+
export * from './RadioGroup';
|
|
10
|
+
export * from './SearchInput';
|
|
11
|
+
export * from './SegmentedControl';
|
|
12
|
+
export * from './Select';
|
|
13
|
+
export * from './SelectOption';
|
|
14
|
+
export * from './Switch';
|
|
15
|
+
export * from './TextInput';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
export const defaultContext = {
|
|
3
|
+
onChange: () => {},
|
|
4
|
+
value: undefined,
|
|
5
|
+
handleCloseMenu: undefined
|
|
6
|
+
};
|
|
7
|
+
export const SelectContext = /*#__PURE__*/createContext(defaultContext);
|
|
8
|
+
export const SelectProvider = SelectContext.Provider;
|
|
9
|
+
export const useSelectContext = () => useContext(SelectContext);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { FOCUSABLE_ELEMENTS } from '@coinbase/cds-common/tokens/overlays';
|
|
3
|
+
import { isBrowser } from '../utils/browser';
|
|
4
|
+
|
|
5
|
+
/** Refocuses a pressable that opens a menu after the menu has been opened and then closed */
|
|
6
|
+
export const useRefocusTrigger = shouldRefocus => {
|
|
7
|
+
const ref = useRef(null);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
// focuses the element after the menu opens & closes at least once
|
|
10
|
+
if (shouldRefocus && isBrowser() && ref.current) {
|
|
11
|
+
var _ref$current$parentNo;
|
|
12
|
+
const focusableElements = (_ref$current$parentNo = ref.current.parentNode) === null || _ref$current$parentNo === void 0 ? void 0 : _ref$current$parentNo.querySelectorAll(FOCUSABLE_ELEMENTS);
|
|
13
|
+
if (focusableElements !== null && focusableElements !== void 0 && focusableElements.length && focusableElements[0]) {
|
|
14
|
+
focusableElements[0].focus();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, [shouldRefocus, ref]);
|
|
18
|
+
return ref;
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useTheme } from '../hooks/useTheme';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns the height of the selection cell control based on the theme's headline line height and font size
|
|
5
|
+
* @returns The height of the selection cell control
|
|
6
|
+
*/
|
|
7
|
+
export const useSelectionCellControlHeight = () => {
|
|
8
|
+
const {
|
|
9
|
+
lineHeight,
|
|
10
|
+
fontSize
|
|
11
|
+
} = useTheme();
|
|
12
|
+
const headlineLineHeight = lineHeight.headline;
|
|
13
|
+
if (typeof headlineLineHeight === 'string' && headlineLineHeight.endsWith('%')) {
|
|
14
|
+
// If the line height is a percentage, we need to convert it to a number by timing it to the font size
|
|
15
|
+
const headlineFontSize = fontSize.headline;
|
|
16
|
+
// convert the percentage string to a number
|
|
17
|
+
const headlineLineHeightNumber = Number(headlineLineHeight.replace('%', '')) / 100;
|
|
18
|
+
if (typeof headlineFontSize === 'number') {
|
|
19
|
+
// multiply the font size by the line height percentage
|
|
20
|
+
return headlineFontSize * headlineLineHeightNumber;
|
|
21
|
+
} else if (headlineFontSize.endsWith('rem')) {
|
|
22
|
+
// if font size is a rem, we need to convert it to a number by multiplying it by 16
|
|
23
|
+
const headlineFontSizeNumber = Number(headlineFontSize.replace('rem', '')) * 16;
|
|
24
|
+
return headlineFontSizeNumber * headlineLineHeightNumber;
|
|
25
|
+
} else if (headlineFontSize.endsWith('px')) {
|
|
26
|
+
// if font size is a px, we need to convert it to a number
|
|
27
|
+
const headlineFontSizeNumber = Number(headlineFontSize.replace('px', ''));
|
|
28
|
+
return headlineFontSizeNumber * headlineLineHeightNumber;
|
|
29
|
+
} else {
|
|
30
|
+
// fall to 24 in all other cases
|
|
31
|
+
return headlineLineHeightNumber * 24;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return headlineLineHeight;
|
|
35
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { styleVarPrefixes } from './theme';
|
|
2
|
+
|
|
3
|
+
/** Takes a theme object and formats its keys as CSS variables to be used in inline styles. */
|
|
4
|
+
export const createThemeCssVars = theme => {
|
|
5
|
+
const themeCss = {};
|
|
6
|
+
const themeKeys = Object.keys(theme);
|
|
7
|
+
for (const key of themeKeys) {
|
|
8
|
+
const themeVars = theme[key];
|
|
9
|
+
if (!themeVars || key === 'id') continue;
|
|
10
|
+
|
|
11
|
+
// Handle activeColorScheme separately
|
|
12
|
+
if (key === 'activeColorScheme') {
|
|
13
|
+
themeCss['--activeColorScheme'] = theme.activeColorScheme;
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
const prefix = styleVarPrefixes[key];
|
|
17
|
+
const cssVarPrefix = prefix ? "--".concat(prefix, "-") : '--';
|
|
18
|
+
const varNames = Object.keys(themeVars);
|
|
19
|
+
|
|
20
|
+
// Process each var in the themeVars
|
|
21
|
+
for (const varName of varNames) {
|
|
22
|
+
const value = themeVars[varName];
|
|
23
|
+
if (value === undefined) continue;
|
|
24
|
+
|
|
25
|
+
// Create CSS variable name, replacing periods with underscores
|
|
26
|
+
const cssVarName = "".concat(cssVarPrefix).concat(varName).replaceAll('.', '_');
|
|
27
|
+
|
|
28
|
+
// Format value (add px to numbers)
|
|
29
|
+
themeCss[cssVarName] = typeof value !== 'number' ? value : value + 'px';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return themeCss;
|
|
33
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Maps our StyleVars to their CSS variable prefixes. For example, the names of CSS vars generated from `iconSize` vars will be prefixed with `--iconSize-`. */
|
|
2
|
+
export const styleVarPrefixes = {
|
|
3
|
+
lightSpectrum: 'light',
|
|
4
|
+
darkSpectrum: 'dark',
|
|
5
|
+
lightColor: 'lightColor',
|
|
6
|
+
darkColor: 'darkColor',
|
|
7
|
+
spectrum: '',
|
|
8
|
+
color: 'color',
|
|
9
|
+
space: 'space',
|
|
10
|
+
iconSize: 'iconSize',
|
|
11
|
+
avatarSize: 'avatarSize',
|
|
12
|
+
borderWidth: 'borderWidth',
|
|
13
|
+
borderRadius: 'borderRadius',
|
|
14
|
+
fontFamily: 'fontFamily',
|
|
15
|
+
fontFamilyMono: 'fontFamilyMono',
|
|
16
|
+
fontSize: 'fontSize',
|
|
17
|
+
fontWeight: 'fontWeight',
|
|
18
|
+
lineHeight: 'lineHeight',
|
|
19
|
+
textTransform: 'textTransform',
|
|
20
|
+
shadow: 'shadow',
|
|
21
|
+
controlSize: 'controlSize'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** Used to generate intellisense via ThemeCSSVars below. */
|
|
25
|
+
|
|
26
|
+
/** A flat object of the CSS variable names of all themeable vars, based on the Theme type. */
|
package/esm/cx.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a copy of the cx function from @linaria/core@3.0.0-beta.22.
|
|
3
|
+
* We copy it here to avoid the need to depend on @linaria/core@3.0.0-beta.22 at runtime.
|
|
4
|
+
* https://github.com/callstack/linaria/blob/08ddb916cd944dedb30881fedb997bba185da3a5/packages/core/src/cx.ts
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Takes a list of class names and filters for truthy ones, joining them into a single class name for convenience.
|
|
11
|
+
* eg.
|
|
12
|
+
* ```js
|
|
13
|
+
* cx('red', isBig && 'big') // returns 'red big' if `isBig` is true, otherwise returns 'red'
|
|
14
|
+
* ```
|
|
15
|
+
* If space separated atomic styles are provided, they are deduplicated according to the first hashed valued:
|
|
16
|
+
*
|
|
17
|
+
* ```js
|
|
18
|
+
* cx('atm_a_class1 atm_b_class2', 'atm_a_class3') // returns `atm_a_class3 atm_b_class2`
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @returns the combined, space separated class names that can be applied directly to the class attribute
|
|
22
|
+
*/
|
|
23
|
+
export const cx = function cx() {
|
|
24
|
+
const presentClassNames = Array.prototype.slice
|
|
25
|
+
// eslint-disable-next-line prefer-rest-params
|
|
26
|
+
.call(arguments).filter(Boolean);
|
|
27
|
+
const atomicClasses = {};
|
|
28
|
+
const nonAtomicClasses = [];
|
|
29
|
+
presentClassNames.forEach(arg => {
|
|
30
|
+
// className could be the output of a previous cx call, so split by ' ' first
|
|
31
|
+
const individualClassNames = arg ? arg.split(' ') : [];
|
|
32
|
+
individualClassNames.forEach(className => {
|
|
33
|
+
if (className.startsWith('atm_')) {
|
|
34
|
+
const [, keyHash] = className.split('_');
|
|
35
|
+
atomicClasses[keyHash] = className;
|
|
36
|
+
} else {
|
|
37
|
+
nonAtomicClasses.push(className);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const result = [];
|
|
42
|
+
for (const keyHash in atomicClasses) {
|
|
43
|
+
if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
|
|
44
|
+
result.push(atomicClasses[keyHash]);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
result.push(...nonAtomicClasses);
|
|
48
|
+
return result.join(' ');
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer cds{.pressableCss-pb7kwm3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
const _excluded = ["as", "className", "borderRadius", "width", "height", "background", "children"],
|
|
2
|
+
_excluded2 = ["selectedDate", "seedDate", "onPressDate", "disabled", "hideControls", "disabledDates", "highlightedDates", "minDate", "maxDate", "disabledDateError", "className", "style", "nextArrowAccessibilityLabel", "previousArrowAccessibilityLabel"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
import React, { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
11
|
+
import { generateCalendarMonth } from '@coinbase/cds-common/dates/generateCalendarMonth';
|
|
12
|
+
import { getISOStringLocal } from '@coinbase/cds-common/dates/getISOStringLocal';
|
|
13
|
+
import { getMidnightDate } from '@coinbase/cds-common/dates/getMidnightDate';
|
|
14
|
+
import { getTimesFromDatesAndRanges } from '@coinbase/cds-common/dates/getTimesFromDatesAndRanges';
|
|
15
|
+
import { useLocale } from '@coinbase/cds-common/system/LocaleProvider';
|
|
16
|
+
import { accessibleOpacityDisabled } from '@coinbase/cds-common/tokens/interactable';
|
|
17
|
+
import { cx } from '../cx';
|
|
18
|
+
import { Icon } from '../icons/Icon';
|
|
19
|
+
import { Grid } from '../layout/Grid';
|
|
20
|
+
import { HStack } from '../layout/HStack';
|
|
21
|
+
import { VStack } from '../layout/VStack';
|
|
22
|
+
import { Tooltip } from '../overlays/tooltip/Tooltip';
|
|
23
|
+
import { Pressable } from '../system/Pressable';
|
|
24
|
+
import { Text } from '../typography/Text';
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
const pressableCss = "pressableCss-pb7kwm3";
|
|
27
|
+
export const calendarPressableDefaultElement = 'button';
|
|
28
|
+
const CalendarPressable = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
29
|
+
let {
|
|
30
|
+
as,
|
|
31
|
+
className,
|
|
32
|
+
borderRadius = 1000,
|
|
33
|
+
width = 40,
|
|
34
|
+
height = 40,
|
|
35
|
+
background = 'transparent',
|
|
36
|
+
children
|
|
37
|
+
} = _ref,
|
|
38
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
+
const Component = as !== null && as !== void 0 ? as : calendarPressableDefaultElement;
|
|
40
|
+
return /*#__PURE__*/_jsx(Pressable, _objectSpread(_objectSpread({
|
|
41
|
+
ref: ref,
|
|
42
|
+
as: Component,
|
|
43
|
+
background: background,
|
|
44
|
+
borderRadius: borderRadius,
|
|
45
|
+
className: cx(pressableCss, className),
|
|
46
|
+
height: height,
|
|
47
|
+
width: width
|
|
48
|
+
}, props), {}, {
|
|
49
|
+
children: children
|
|
50
|
+
}));
|
|
51
|
+
}));
|
|
52
|
+
const getDayAccessibilityLabel = function (date) {
|
|
53
|
+
let locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';
|
|
54
|
+
return "".concat(date.toLocaleDateString(locale, {
|
|
55
|
+
weekday: 'long',
|
|
56
|
+
day: 'numeric'
|
|
57
|
+
}), " ").concat(date.toLocaleDateString(locale, {
|
|
58
|
+
month: 'long',
|
|
59
|
+
year: 'numeric'
|
|
60
|
+
}));
|
|
61
|
+
};
|
|
62
|
+
const getDateWithOffset = function (year, month, day) {
|
|
63
|
+
let monthOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
64
|
+
let yearOffset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
65
|
+
let dayOffset = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
|
|
66
|
+
const targetYear = year + yearOffset;
|
|
67
|
+
const targetMonth = month - 1 + monthOffset;
|
|
68
|
+
const targetDay = day + dayOffset;
|
|
69
|
+
const lastDayOfTargetMonth = new Date(targetYear, targetMonth + 1, 0).getDate();
|
|
70
|
+
return new Date(targetYear, targetMonth, Math.min(targetDay, lastDayOfTargetMonth));
|
|
71
|
+
};
|
|
72
|
+
const CalendarDay = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
73
|
+
let {
|
|
74
|
+
date,
|
|
75
|
+
active,
|
|
76
|
+
disabled,
|
|
77
|
+
highlighted,
|
|
78
|
+
isToday,
|
|
79
|
+
isCurrentMonth,
|
|
80
|
+
onClick,
|
|
81
|
+
disabledError = 'Date unavailable'
|
|
82
|
+
} = _ref2;
|
|
83
|
+
const {
|
|
84
|
+
locale
|
|
85
|
+
} = useLocale();
|
|
86
|
+
const handleClick = useCallback(() => onClick === null || onClick === void 0 ? void 0 : onClick(date), [date, onClick]);
|
|
87
|
+
const accessibilityLabel = getDayAccessibilityLabel(date, locale);
|
|
88
|
+
const calendarDayButton = useMemo(() => /*#__PURE__*/_jsx(CalendarPressable, {
|
|
89
|
+
ref: ref,
|
|
90
|
+
focusable: true,
|
|
91
|
+
accessibilityLabel: accessibilityLabel,
|
|
92
|
+
"aria-current": isToday ? 'date' : undefined,
|
|
93
|
+
"aria-pressed": active ? 'true' : undefined,
|
|
94
|
+
background: active ? 'bgPrimary' : 'bg',
|
|
95
|
+
borderColor: isToday ? 'bgPrimary' : undefined,
|
|
96
|
+
"data-calendar-date": getISOStringLocal(date),
|
|
97
|
+
disabled: disabled,
|
|
98
|
+
onClick: disabled ? undefined : handleClick,
|
|
99
|
+
tabIndex: date.getDate() === 1 ? undefined : -1,
|
|
100
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
101
|
+
color: active ? 'fgInverse' : highlighted ? 'fgPrimary' : undefined,
|
|
102
|
+
font: "body",
|
|
103
|
+
children: date.getDate()
|
|
104
|
+
})
|
|
105
|
+
}), [date, active, disabled, highlighted, isToday, accessibilityLabel, handleClick, ref]);
|
|
106
|
+
if (!isCurrentMonth) return /*#__PURE__*/_jsx("div", {});
|
|
107
|
+
if (!disabled || disabled && !disabledError) return calendarDayButton;
|
|
108
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
109
|
+
disablePortal: true,
|
|
110
|
+
content: disabledError,
|
|
111
|
+
children: calendarDayButton
|
|
112
|
+
});
|
|
113
|
+
}));
|
|
114
|
+
// These could be dynamically generated, but our Calendar and DatePicker aren't localized so there's no point
|
|
115
|
+
const daysOfWeek = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
116
|
+
export const Calendar = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
117
|
+
let {
|
|
118
|
+
selectedDate,
|
|
119
|
+
seedDate,
|
|
120
|
+
onPressDate,
|
|
121
|
+
disabled,
|
|
122
|
+
hideControls,
|
|
123
|
+
disabledDates,
|
|
124
|
+
highlightedDates,
|
|
125
|
+
minDate,
|
|
126
|
+
maxDate,
|
|
127
|
+
disabledDateError = 'Date unavailable',
|
|
128
|
+
className,
|
|
129
|
+
style,
|
|
130
|
+
nextArrowAccessibilityLabel = 'Go to next month',
|
|
131
|
+
previousArrowAccessibilityLabel = 'Go to previous month'
|
|
132
|
+
} = _ref3,
|
|
133
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
134
|
+
const calendarRef = useRef(null);
|
|
135
|
+
useImperativeHandle(ref, () => calendarRef.current, []); // Merges forwarded ref with internal calendarRef
|
|
136
|
+
|
|
137
|
+
const today = useMemo(() => getMidnightDate(new Date()), []);
|
|
138
|
+
const [calendarSeedDate, setCalendarSeedDate] = useState(selectedDate || seedDate || new Date());
|
|
139
|
+
const calendarMonth = useMemo(() => generateCalendarMonth(calendarSeedDate), [calendarSeedDate]);
|
|
140
|
+
const selectedTime = useMemo(() => selectedDate ? getMidnightDate(selectedDate).getTime() : null, [selectedDate]);
|
|
141
|
+
const disabledTimes = useMemo(() => getTimesFromDatesAndRanges(disabledDates || []), [disabledDates]);
|
|
142
|
+
const minTime = useMemo(() => minDate && getMidnightDate(minDate).getTime(), [minDate]);
|
|
143
|
+
const maxTime = useMemo(() => maxDate && getMidnightDate(maxDate).getTime(), [maxDate]);
|
|
144
|
+
const highlightedTimes = useMemo(() => getTimesFromDatesAndRanges(highlightedDates || []), [highlightedDates]);
|
|
145
|
+
const handleGoNextMonth = useCallback(() => setCalendarSeedDate(s => new Date(s.getFullYear(), s.getMonth() + 1, 1)), [setCalendarSeedDate]);
|
|
146
|
+
const handleGoPreviousMonth = useCallback(() => setCalendarSeedDate(s => new Date(s.getFullYear(), s.getMonth() - 1, 1)), [setCalendarSeedDate]);
|
|
147
|
+
const disableGoNextMonth = useMemo(() => {
|
|
148
|
+
if (disabled) return true;
|
|
149
|
+
const firstDateOfNextMonth = new Date(calendarSeedDate.getFullYear(), calendarSeedDate.getMonth() + 1, 1);
|
|
150
|
+
return maxTime ? maxTime <= firstDateOfNextMonth.getTime() : false;
|
|
151
|
+
}, [maxTime, calendarSeedDate, disabled]);
|
|
152
|
+
const disableGoPreviousMonth = useMemo(() => {
|
|
153
|
+
if (disabled) return true;
|
|
154
|
+
const lastDateOfPreviousMonth = new Date(calendarSeedDate.getFullYear(), calendarSeedDate.getMonth(), 0);
|
|
155
|
+
return minTime ? minTime >= lastDateOfPreviousMonth.getTime() : false;
|
|
156
|
+
}, [minTime, calendarSeedDate, disabled]);
|
|
157
|
+
const handleCalendarFocus = useCallback(event => {
|
|
158
|
+
var _calendarRef$current;
|
|
159
|
+
const focusedElement = document.activeElement;
|
|
160
|
+
const focusedDateString = focusedElement === null || focusedElement === void 0 ? void 0 : focusedElement.getAttribute('data-calendar-date');
|
|
161
|
+
if (!focusedDateString || !((_calendarRef$current = calendarRef.current) !== null && _calendarRef$current !== void 0 && _calendarRef$current.contains(focusedElement))) return;
|
|
162
|
+
if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'PageUp', 'PageDown', 'Home', 'End'].includes(event.key)) event.preventDefault();
|
|
163
|
+
const [year, month, day] = focusedDateString.split('-').map(s => parseInt(s, 10));
|
|
164
|
+
const focusedDate = new Date(year, month - 1, day);
|
|
165
|
+
let newFocusDate = null;
|
|
166
|
+
if (event.key === 'ArrowUp') newFocusDate = new Date(year, month - 1, day - 7);
|
|
167
|
+
if (event.key === 'ArrowDown') newFocusDate = new Date(year, month - 1, day + 7);
|
|
168
|
+
if (event.key === 'ArrowLeft') newFocusDate = new Date(year, month - 1, day - 1);
|
|
169
|
+
if (event.key === 'ArrowRight') newFocusDate = new Date(year, month - 1, day + 1);
|
|
170
|
+
if (event.key === 'Home') newFocusDate = new Date(year, month - 1, day - focusedDate.getDay());
|
|
171
|
+
if (event.key === 'End') newFocusDate = new Date(year, month - 1, day + (6 - focusedDate.getDay()));
|
|
172
|
+
if (event.key === 'PageUp') {
|
|
173
|
+
newFocusDate = event.shiftKey ? getDateWithOffset(year, month, day, 0, -1) : getDateWithOffset(year, month, day, -1, 0);
|
|
174
|
+
}
|
|
175
|
+
if (event.key === 'PageDown') {
|
|
176
|
+
newFocusDate = event.shiftKey ? getDateWithOffset(year, month, day, 0, 1) : getDateWithOffset(year, month, day, 1, 0);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Prevent keyboard focus navigation past minDate and maxDate months
|
|
180
|
+
if (!newFocusDate || minDate && (newFocusDate.getMonth() < minDate.getMonth() || newFocusDate.getFullYear() < minDate.getFullYear()) || maxDate && (newFocusDate.getMonth() > maxDate.getMonth() || newFocusDate.getFullYear() > maxDate.getFullYear())) return;
|
|
181
|
+
if (newFocusDate.getMonth() !== focusedDate.getMonth() || newFocusDate.getFullYear() !== focusedDate.getFullYear()) setCalendarSeedDate(newFocusDate);
|
|
182
|
+
setTimeout(() => {
|
|
183
|
+
var _calendarRef$current2;
|
|
184
|
+
const dateString = newFocusDate && getISOStringLocal(newFocusDate);
|
|
185
|
+
(_calendarRef$current2 = calendarRef.current) === null || _calendarRef$current2 === void 0 || (_calendarRef$current2 = _calendarRef$current2.querySelector("[data-calendar-date=\"".concat(dateString, "\"]"))) === null || _calendarRef$current2 === void 0 || _calendarRef$current2.focus();
|
|
186
|
+
}, 1);
|
|
187
|
+
}, [minDate, maxDate, setCalendarSeedDate]);
|
|
188
|
+
useEffect(() => {
|
|
189
|
+
window.addEventListener('keydown', handleCalendarFocus);
|
|
190
|
+
return () => window.removeEventListener('keydown', handleCalendarFocus);
|
|
191
|
+
}, [handleCalendarFocus]);
|
|
192
|
+
return /*#__PURE__*/_jsxs(VStack, _objectSpread(_objectSpread({
|
|
193
|
+
ref: calendarRef,
|
|
194
|
+
background: "bg",
|
|
195
|
+
borderRadius: 400,
|
|
196
|
+
className: className,
|
|
197
|
+
opacity: disabled ? accessibleOpacityDisabled : undefined,
|
|
198
|
+
overflow: "auto",
|
|
199
|
+
padding: 2,
|
|
200
|
+
style: style,
|
|
201
|
+
width: 360
|
|
202
|
+
}, props), {}, {
|
|
203
|
+
children: [/*#__PURE__*/_jsxs(HStack, {
|
|
204
|
+
alignItems: "center",
|
|
205
|
+
justifyContent: "space-between",
|
|
206
|
+
paddingBottom: 2,
|
|
207
|
+
paddingX: 1.5,
|
|
208
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
209
|
+
as: "h3",
|
|
210
|
+
display: "block",
|
|
211
|
+
font: "headline",
|
|
212
|
+
children: calendarSeedDate.toLocaleDateString('en-US', {
|
|
213
|
+
month: 'long',
|
|
214
|
+
year: 'numeric'
|
|
215
|
+
})
|
|
216
|
+
}), !hideControls && /*#__PURE__*/_jsxs(HStack, {
|
|
217
|
+
gap: 1,
|
|
218
|
+
marginEnd: -1,
|
|
219
|
+
children: [/*#__PURE__*/_jsx(CalendarPressable, {
|
|
220
|
+
accessibilityLabel: previousArrowAccessibilityLabel,
|
|
221
|
+
background: "bg",
|
|
222
|
+
disabled: disableGoPreviousMonth,
|
|
223
|
+
onClick: disableGoPreviousMonth ? undefined : handleGoPreviousMonth,
|
|
224
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
225
|
+
color: "fg",
|
|
226
|
+
name: "backArrow",
|
|
227
|
+
size: "s"
|
|
228
|
+
})
|
|
229
|
+
}), /*#__PURE__*/_jsx(CalendarPressable, {
|
|
230
|
+
accessibilityLabel: nextArrowAccessibilityLabel,
|
|
231
|
+
background: "bg",
|
|
232
|
+
disabled: disableGoNextMonth,
|
|
233
|
+
onClick: disableGoNextMonth ? undefined : handleGoNextMonth,
|
|
234
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
235
|
+
color: "fg",
|
|
236
|
+
name: "forwardArrow",
|
|
237
|
+
size: "s"
|
|
238
|
+
})
|
|
239
|
+
})]
|
|
240
|
+
})]
|
|
241
|
+
}), /*#__PURE__*/_jsxs(Grid, {
|
|
242
|
+
gap: 1,
|
|
243
|
+
justifyContent: "space-between",
|
|
244
|
+
templateColumns: "repeat(7, 40px)",
|
|
245
|
+
children: [daysOfWeek.map(day => /*#__PURE__*/_jsx(VStack, {
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
height: 40,
|
|
248
|
+
justifyContent: "center",
|
|
249
|
+
width: 40,
|
|
250
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
251
|
+
font: "body",
|
|
252
|
+
userSelect: "none",
|
|
253
|
+
children: day.charAt(0)
|
|
254
|
+
})
|
|
255
|
+
}, day)), calendarMonth.map(date => {
|
|
256
|
+
const time = date.getTime();
|
|
257
|
+
return /*#__PURE__*/_jsx(CalendarDay, {
|
|
258
|
+
active: time === selectedTime,
|
|
259
|
+
date: date,
|
|
260
|
+
disabled: disabled || minTime && time < minTime || maxTime && time > maxTime || disabledTimes.includes(time),
|
|
261
|
+
disabledError: disabledDateError,
|
|
262
|
+
highlighted: highlightedTimes.includes(time),
|
|
263
|
+
isCurrentMonth: date.getMonth() === calendarSeedDate.getMonth(),
|
|
264
|
+
isToday: time === today.getTime(),
|
|
265
|
+
onClick: onPressDate
|
|
266
|
+
}, time);
|
|
267
|
+
})]
|
|
268
|
+
})]
|
|
269
|
+
}));
|
|
270
|
+
}));
|
|
271
|
+
import "./Calendar.css";
|