@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,120 @@
|
|
|
1
|
+
const _excluded = ["title", "description", "checked", "onChange", "disabled", "columnGap", "rowGap", "padding", "borderWidth", "borderRadius", "titleId", "descriptionId", "testID", "style", "value", "noScaleOnPress", "readOnly", "indeterminate", "className", "classNames", "styles"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import { forwardRef, memo, useId, useMemo } from 'react';
|
|
10
|
+
import { cx } from '../cx';
|
|
11
|
+
import { Box, HStack, VStack } from '../layout';
|
|
12
|
+
import { Pressable } from '../system/Pressable';
|
|
13
|
+
import { Text } from '../typography/Text';
|
|
14
|
+
import { Checkbox } from './Checkbox';
|
|
15
|
+
import { useSelectionCellControlHeight } from './useSelectionCellControlHeight';
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const baseCss = "baseCss-b1n65grj";
|
|
18
|
+
const CheckboxCellWithRef = /*#__PURE__*/forwardRef(function CheckboxCell(_ref, ref) {
|
|
19
|
+
let {
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
checked,
|
|
23
|
+
onChange,
|
|
24
|
+
disabled,
|
|
25
|
+
columnGap = 2,
|
|
26
|
+
rowGap = 0,
|
|
27
|
+
padding = 2,
|
|
28
|
+
borderWidth = 100,
|
|
29
|
+
borderRadius = 200,
|
|
30
|
+
titleId: customTitleId,
|
|
31
|
+
descriptionId: customDescriptionId,
|
|
32
|
+
testID,
|
|
33
|
+
style,
|
|
34
|
+
value,
|
|
35
|
+
noScaleOnPress = true,
|
|
36
|
+
readOnly,
|
|
37
|
+
indeterminate,
|
|
38
|
+
className,
|
|
39
|
+
classNames,
|
|
40
|
+
styles
|
|
41
|
+
} = _ref,
|
|
42
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
43
|
+
const generatedTitleId = useId();
|
|
44
|
+
const generatedDescriptionId = useId();
|
|
45
|
+
const titleId = customTitleId !== null && customTitleId !== void 0 ? customTitleId : generatedTitleId;
|
|
46
|
+
const descriptionId = customDescriptionId !== null && customDescriptionId !== void 0 ? customDescriptionId : generatedDescriptionId;
|
|
47
|
+
const pressableStyle = useMemo(() => {
|
|
48
|
+
return _objectSpread(_objectSpread({
|
|
49
|
+
'--border-color-unfocused': 'transparent',
|
|
50
|
+
'--border-color-focused': 'var(--color-bgPrimary)',
|
|
51
|
+
'--border-width-focused': "var(--borderWidth-".concat(borderWidth, ")")
|
|
52
|
+
}, style), styles === null || styles === void 0 ? void 0 : styles.root);
|
|
53
|
+
}, [borderWidth, style, styles === null || styles === void 0 ? void 0 : styles.root]);
|
|
54
|
+
const ariaLabelledBy = titleId;
|
|
55
|
+
const ariaDescribedBy = description ? descriptionId : undefined;
|
|
56
|
+
const checkboxContainerHeight = useSelectionCellControlHeight();
|
|
57
|
+
return /*#__PURE__*/_jsxs(Pressable, _objectSpread(_objectSpread({
|
|
58
|
+
ref: ref,
|
|
59
|
+
as: "label",
|
|
60
|
+
background: "bg",
|
|
61
|
+
borderColor: "bgLine",
|
|
62
|
+
borderRadius: borderRadius,
|
|
63
|
+
borderWidth: borderWidth,
|
|
64
|
+
className: cx(baseCss, className, classNames === null || classNames === void 0 ? void 0 : classNames.root),
|
|
65
|
+
disabled: disabled || readOnly,
|
|
66
|
+
gap: columnGap,
|
|
67
|
+
noScaleOnPress: noScaleOnPress,
|
|
68
|
+
padding: padding,
|
|
69
|
+
style: pressableStyle,
|
|
70
|
+
testID: testID
|
|
71
|
+
}, props), {}, {
|
|
72
|
+
children: [/*#__PURE__*/_jsx(HStack, {
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.checkboxContainer,
|
|
75
|
+
height: checkboxContainerHeight,
|
|
76
|
+
style: styles === null || styles === void 0 ? void 0 : styles.checkboxContainer,
|
|
77
|
+
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
78
|
+
"aria-describedby": ariaDescribedBy,
|
|
79
|
+
"aria-labelledby": ariaLabelledBy,
|
|
80
|
+
checked: !!checked,
|
|
81
|
+
disabled: disabled,
|
|
82
|
+
indeterminate: indeterminate,
|
|
83
|
+
onChange: onChange,
|
|
84
|
+
readOnly: readOnly,
|
|
85
|
+
value: value
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/_jsxs(VStack, {
|
|
88
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.contentContainer,
|
|
89
|
+
gap: rowGap,
|
|
90
|
+
style: styles === null || styles === void 0 ? void 0 : styles.contentContainer,
|
|
91
|
+
children: [typeof title === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
92
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.title,
|
|
93
|
+
font: "headline",
|
|
94
|
+
id: titleId,
|
|
95
|
+
style: styles === null || styles === void 0 ? void 0 : styles.title,
|
|
96
|
+
children: title
|
|
97
|
+
}) : /*#__PURE__*/_jsx(Box, {
|
|
98
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.title,
|
|
99
|
+
id: titleId,
|
|
100
|
+
style: styles === null || styles === void 0 ? void 0 : styles.title,
|
|
101
|
+
children: title
|
|
102
|
+
}), description && (typeof description === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
103
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.description,
|
|
104
|
+
color: "fgMuted",
|
|
105
|
+
font: "body",
|
|
106
|
+
id: descriptionId,
|
|
107
|
+
style: styles === null || styles === void 0 ? void 0 : styles.description,
|
|
108
|
+
children: description
|
|
109
|
+
}) : /*#__PURE__*/_jsx(Box, {
|
|
110
|
+
className: classNames === null || classNames === void 0 ? void 0 : classNames.description,
|
|
111
|
+
id: descriptionId,
|
|
112
|
+
style: styles === null || styles === void 0 ? void 0 : styles.description,
|
|
113
|
+
children: description
|
|
114
|
+
}))]
|
|
115
|
+
})]
|
|
116
|
+
}));
|
|
117
|
+
});
|
|
118
|
+
export const CheckboxCell = /*#__PURE__*/memo(CheckboxCellWithRef);
|
|
119
|
+
CheckboxCell.displayName = 'CheckboxCell';
|
|
120
|
+
import "./CheckboxCell.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer cds{.checkboxCss-cmjsxse{margin:0;padding:0;min-width:0;border-width:0;}}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const _excluded = ["children", "className", "label", "aria-labelledby", "selectedValues", "onChange", "name", "style", "testID", "role", "id"],
|
|
2
|
+
_excluded2 = ["value", "children", "id"];
|
|
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, { Children, forwardRef, isValidElement, memo, useMemo } from 'react';
|
|
11
|
+
import { isDevelopment } from '@coinbase/cds-utils';
|
|
12
|
+
import { cx } from '../cx';
|
|
13
|
+
import { Checkbox } from './Checkbox';
|
|
14
|
+
import { ControlGroup } from './ControlGroup';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
const checkboxCss = "checkboxCss-cmjsxse";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Instead of:
|
|
23
|
+
* <CheckboxGroup selectedValues={new Set(['value1'])} onChange={onChange}>
|
|
24
|
+
* <Checkbox value="value1">Option 1</Checkbox>
|
|
25
|
+
* </CheckboxGroup>
|
|
26
|
+
*
|
|
27
|
+
* // Use:
|
|
28
|
+
* <ControlGroup
|
|
29
|
+
* role="group"
|
|
30
|
+
* ControlComponent={Checkbox}
|
|
31
|
+
* options={[{ value: 'value1', children: 'Option 1' }]}
|
|
32
|
+
* value={['value1']}
|
|
33
|
+
* onChange={onChange}xw
|
|
34
|
+
* />
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated CheckboxGroup is deprecated. Use ControlGroup with role="group" instead.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
// Follows behavior describe in https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-2/checkbox-2.html
|
|
42
|
+
const CheckboxGroupWithRef = /*#__PURE__*/forwardRef(function CheckboxGroupWithRef(_ref, ref) {
|
|
43
|
+
let {
|
|
44
|
+
children,
|
|
45
|
+
className,
|
|
46
|
+
label,
|
|
47
|
+
'aria-labelledby': ariaLabelledby,
|
|
48
|
+
selectedValues,
|
|
49
|
+
onChange,
|
|
50
|
+
name,
|
|
51
|
+
style,
|
|
52
|
+
testID,
|
|
53
|
+
role = 'group',
|
|
54
|
+
id
|
|
55
|
+
} = _ref,
|
|
56
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
57
|
+
if (isDevelopment()) {
|
|
58
|
+
console.warn('CheckboxGroup is deprecated. Use ControlGroup with role="group" instead.');
|
|
59
|
+
if (!label && !ariaLabelledby) {
|
|
60
|
+
console.warn('Please specify an aria label for the checkbox group.');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Convert children to ControlGroup options format
|
|
65
|
+
const controlGroupOptions = useMemo(() => {
|
|
66
|
+
return Children.map(children, child => {
|
|
67
|
+
if (! /*#__PURE__*/isValidElement(child) || child.type !== Checkbox) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
const _child$props = child.props,
|
|
71
|
+
{
|
|
72
|
+
value,
|
|
73
|
+
children: checkboxChildren,
|
|
74
|
+
id
|
|
75
|
+
} = _child$props,
|
|
76
|
+
childProps = _objectWithoutProperties(_child$props, _excluded2);
|
|
77
|
+
if (isDevelopment() && typeof value === 'undefined') {
|
|
78
|
+
console.error('Checkboxes inside CheckboxGroup should have values.');
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
const checkboxId = id !== null && id !== void 0 ? id : ['checkbox-group', name, value].join('-');
|
|
82
|
+
return _objectSpread({
|
|
83
|
+
value: value,
|
|
84
|
+
children: checkboxChildren,
|
|
85
|
+
id: checkboxId
|
|
86
|
+
}, childProps);
|
|
87
|
+
}).filter(Boolean);
|
|
88
|
+
}, [children, name]);
|
|
89
|
+
|
|
90
|
+
// Convert Set to Array for ControlGroup
|
|
91
|
+
const selectedValuesArray = Array.from(selectedValues);
|
|
92
|
+
return /*#__PURE__*/_jsx(ControlGroup, {
|
|
93
|
+
ref: ref,
|
|
94
|
+
ControlComponent: Checkbox,
|
|
95
|
+
"aria-labelledby": ariaLabelledby,
|
|
96
|
+
className: cx(checkboxCss, className),
|
|
97
|
+
gap: 0,
|
|
98
|
+
hidden: props.hidden,
|
|
99
|
+
id: id,
|
|
100
|
+
label: label,
|
|
101
|
+
name: name,
|
|
102
|
+
onChange: onChange,
|
|
103
|
+
options: controlGroupOptions || [],
|
|
104
|
+
role: role,
|
|
105
|
+
style: style,
|
|
106
|
+
tabIndex: props.tabIndex,
|
|
107
|
+
testID: testID,
|
|
108
|
+
value: selectedValuesArray
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
export const CheckboxGroup = /*#__PURE__*/memo(CheckboxGroupWithRef);
|
|
112
|
+
import "./CheckboxGroup.css";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@layer cds{.pointerCss-p1pliz73:not(:disabled),.pointerCss-p1pliz73:not(:-moz-read-only){cursor:pointer;}.pointerCss-p1pliz73:not(:disabled),.pointerCss-p1pliz73:not(:read-only){cursor:pointer;}
|
|
2
|
+
.inputBaseCss-i1hz3kk0{margin:0;opacity:0;position:absolute;width:100%;height:100%;z-index:1;}
|
|
3
|
+
.interactableCss-i1h2gel3{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;}@supports selector(:has(:focus-visible)){.interactableCss-i1h2gel3:has(:focus-visible){outline-style:solid;outline-width:2px;outline-color:var(--color-bgPrimary);outline-offset:1px;}}.interactableCss-i1h2gel3:active > input:first-of-type,.interactableCss-i1h2gel3:visited > input:first-of-type,.interactableCss-i1h2gel3:focus > input:first-of-type,.interactableCss-i1h2gel3:hover > input:first-of-type{opacity:0;}}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const _excluded = ["type", "checked", "disabled", "indeterminate", "readOnly", "required", "value", "children", "label", "aria-labelledby", "background", "borderColor", "borderRadius", "borderWidth", "color", "testID", "iconStyle", "labelStyle"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { forwardRef, memo, useMemo, useRef } from 'react';
|
|
10
|
+
import { useMergeRefs } from '@coinbase/cds-common/hooks/useMergeRefs';
|
|
11
|
+
import { usePrefixedId } from '@coinbase/cds-common/hooks/usePrefixedId';
|
|
12
|
+
import { zIndex } from '@coinbase/cds-common/tokens/zIndex';
|
|
13
|
+
import { isDevelopment } from '@coinbase/cds-utils';
|
|
14
|
+
import { cx } from '../cx';
|
|
15
|
+
import { Box } from '../layout/Box';
|
|
16
|
+
import { Interactable } from '../system/Interactable';
|
|
17
|
+
import { Text } from '../typography/Text';
|
|
18
|
+
import { isRtl } from '../utils/isRtl';
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
const pointerCss = "pointerCss-p1pliz73";
|
|
21
|
+
const inputBaseCss = "inputBaseCss-i1hz3kk0";
|
|
22
|
+
const interactableCss = "interactableCss-i1h2gel3";
|
|
23
|
+
const ControlWithRef = /*#__PURE__*/forwardRef(function ControlWithRef(_ref, ref) {
|
|
24
|
+
var _htmlProps$id;
|
|
25
|
+
let {
|
|
26
|
+
type,
|
|
27
|
+
checked,
|
|
28
|
+
disabled,
|
|
29
|
+
indeterminate,
|
|
30
|
+
readOnly,
|
|
31
|
+
required,
|
|
32
|
+
value,
|
|
33
|
+
children,
|
|
34
|
+
label,
|
|
35
|
+
'aria-labelledby': ariaLabelledby,
|
|
36
|
+
background,
|
|
37
|
+
borderColor,
|
|
38
|
+
borderRadius,
|
|
39
|
+
borderWidth,
|
|
40
|
+
color = checked || indeterminate ? 'fg' : 'fgMuted',
|
|
41
|
+
testID,
|
|
42
|
+
iconStyle,
|
|
43
|
+
labelStyle
|
|
44
|
+
} = _ref,
|
|
45
|
+
htmlProps = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
if (isDevelopment() && !children && !ariaLabelledby) {
|
|
47
|
+
console.warn("Please provide an aria label for the control component ".concat(value, " either through the children or aria-labelledby prop."));
|
|
48
|
+
}
|
|
49
|
+
// Setup a11y IDs
|
|
50
|
+
const [id1, id2] = usePrefixedId(['trigger', 'collapsible']);
|
|
51
|
+
const labelId = ariaLabelledby !== null && ariaLabelledby !== void 0 ? ariaLabelledby : id1;
|
|
52
|
+
const inputId = (_htmlProps$id = htmlProps.id) !== null && _htmlProps$id !== void 0 ? _htmlProps$id : id2;
|
|
53
|
+
const internalInputRef = useRef();
|
|
54
|
+
const inputRef = useMergeRefs(ref, internalInputRef);
|
|
55
|
+
const iconElement = useMemo(() => /*#__PURE__*/_jsxs(Interactable, {
|
|
56
|
+
transparentWhileInactive: true,
|
|
57
|
+
as: "div",
|
|
58
|
+
background: background,
|
|
59
|
+
borderColor: borderColor,
|
|
60
|
+
borderRadius: borderRadius,
|
|
61
|
+
borderWidth: borderWidth,
|
|
62
|
+
className: interactableCss,
|
|
63
|
+
disabled: disabled || readOnly,
|
|
64
|
+
style: iconStyle,
|
|
65
|
+
testID: testID ? "".concat(testID, "-parent") : undefined,
|
|
66
|
+
children: [/*#__PURE__*/_jsx("input", _objectSpread({
|
|
67
|
+
ref: inputRef,
|
|
68
|
+
"aria-checked": checked,
|
|
69
|
+
"aria-labelledby": labelId,
|
|
70
|
+
"aria-required": type !== 'checkbox' ? required : undefined,
|
|
71
|
+
checked: checked,
|
|
72
|
+
className: cx(inputBaseCss, pointerCss),
|
|
73
|
+
"data-testid": testID,
|
|
74
|
+
disabled: disabled,
|
|
75
|
+
id: inputId,
|
|
76
|
+
readOnly: readOnly,
|
|
77
|
+
required: required,
|
|
78
|
+
type: type,
|
|
79
|
+
value: value
|
|
80
|
+
}, htmlProps)), children]
|
|
81
|
+
}), [background, borderColor, borderRadius, borderWidth, checked, children, disabled, htmlProps, iconStyle, inputId, inputRef, labelId, readOnly, required, testID, type, value]);
|
|
82
|
+
const controlElement = useMemo(() => {
|
|
83
|
+
/**
|
|
84
|
+
* If the control has label, the label's lineHeight doesn't match the icon size. We need to
|
|
85
|
+
* wrap the icon with a container that match the lineHeight of the label typography and
|
|
86
|
+
* center the icon inside the wrapper so that the icon will be aligned properly with the
|
|
87
|
+
* first line of the label text.
|
|
88
|
+
*/
|
|
89
|
+
if (!label) return iconElement;
|
|
90
|
+
return /*#__PURE__*/_jsx("label", {
|
|
91
|
+
className: pointerCss,
|
|
92
|
+
htmlFor: inputId,
|
|
93
|
+
style: labelStyle,
|
|
94
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
95
|
+
alignItems: "flex-start",
|
|
96
|
+
flexDirection: isRtl() ? 'row-reverse' : 'row',
|
|
97
|
+
gap: 1,
|
|
98
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
99
|
+
alignItems: "center",
|
|
100
|
+
height: "var(--lineHeight-body)",
|
|
101
|
+
role: "presentation",
|
|
102
|
+
children: iconElement
|
|
103
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
104
|
+
color: color,
|
|
105
|
+
disabled: disabled || readOnly,
|
|
106
|
+
font: "body",
|
|
107
|
+
id: labelId,
|
|
108
|
+
children: label
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
}, [label, iconElement, inputId, labelStyle, color, disabled, readOnly, labelId]);
|
|
113
|
+
|
|
114
|
+
// If no label is provided, consumer should wrap the checkbox with <label> or provide a value for the aria-labelledby prop.
|
|
115
|
+
return controlElement;
|
|
116
|
+
});
|
|
117
|
+
export const Control = /*#__PURE__*/memo(ControlWithRef);
|
|
118
|
+
import "./Control.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer cds{.containerCss-c1holtq6{border:none;margin:0;padding:0;min-width:0;}}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const _excluded = ["ControlComponent", "options", "label", "aria-labelledby", "onChange", "value", "direction", "testID", "gap", "name", "role"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { forwardRef, memo, useId } from 'react';
|
|
10
|
+
import { isDevelopment } from '@coinbase/cds-utils';
|
|
11
|
+
import { cx } from '../cx';
|
|
12
|
+
import { Box } from '../layout';
|
|
13
|
+
import { Text } from '../typography';
|
|
14
|
+
|
|
15
|
+
// Styles for container reset
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const containerCss = "containerCss-c1holtq6";
|
|
18
|
+
const ControlGroupWithRef = /*#__PURE__*/forwardRef(function ControlGroup(_ref, ref) {
|
|
19
|
+
let {
|
|
20
|
+
ControlComponent: ControlComponent,
|
|
21
|
+
options,
|
|
22
|
+
label,
|
|
23
|
+
'aria-labelledby': ariaLabelledby,
|
|
24
|
+
onChange,
|
|
25
|
+
value,
|
|
26
|
+
direction = 'vertical',
|
|
27
|
+
testID,
|
|
28
|
+
gap = 2,
|
|
29
|
+
name,
|
|
30
|
+
role = 'group'
|
|
31
|
+
} = _ref,
|
|
32
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
const generatedId = useId();
|
|
34
|
+
const labelId = "".concat(generatedId, "-label");
|
|
35
|
+
if (isDevelopment() && !label && !ariaLabelledby) {
|
|
36
|
+
console.warn('Please specify a label or aria-labelledby for the ControlGroup.');
|
|
37
|
+
}
|
|
38
|
+
const isMultiSelect = Array.isArray(value);
|
|
39
|
+
return /*#__PURE__*/_jsxs(Box, _objectSpread(_objectSpread({
|
|
40
|
+
ref: ref,
|
|
41
|
+
"aria-labelledby": ariaLabelledby || (label ? labelId : undefined),
|
|
42
|
+
className: cx(containerCss, restProps.className),
|
|
43
|
+
flexDirection: direction === 'horizontal' ? 'row' : 'column',
|
|
44
|
+
gap: gap,
|
|
45
|
+
role: role,
|
|
46
|
+
testID: testID
|
|
47
|
+
}, restProps), {}, {
|
|
48
|
+
children: [label && (typeof label === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
49
|
+
font: "headline",
|
|
50
|
+
id: labelId,
|
|
51
|
+
children: label
|
|
52
|
+
}) : label), options.map(optionProps => {
|
|
53
|
+
const optionValue = optionProps.value;
|
|
54
|
+
if (!optionValue) {
|
|
55
|
+
if (isDevelopment()) {
|
|
56
|
+
console.warn('Each option in ControlGroup must have a `value` prop.', optionProps);
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const isChecked = isMultiSelect ? value.includes(optionValue) : value === optionValue;
|
|
61
|
+
return /*#__PURE__*/_jsx(ControlComponent, _objectSpread({
|
|
62
|
+
checked: isChecked,
|
|
63
|
+
name: name,
|
|
64
|
+
onChange: onChange,
|
|
65
|
+
testID: testID ? "".concat(testID, "-").concat(optionValue) : undefined,
|
|
66
|
+
value: optionValue
|
|
67
|
+
}, optionProps), optionValue);
|
|
68
|
+
})]
|
|
69
|
+
}));
|
|
70
|
+
});
|
|
71
|
+
export const ControlGroup = /*#__PURE__*/memo(ControlGroupWithRef);
|
|
72
|
+
import "./ControlGroup.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer cds{.iconCss-i1ej5caw{display:inline-block;padding-inline-end:var(--space-0_5);}}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const _excluded = ["color", "id", "errorIconAccessibilityLabel", "errorIconTestID", "children", "dangerouslySetColor", "textAlign"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { memo } from 'react';
|
|
10
|
+
import { Icon } from '../icons/Icon';
|
|
11
|
+
import { Box } from '../layout/Box';
|
|
12
|
+
import { Text } from '../typography/Text';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const iconCss = "iconCss-i1ej5caw";
|
|
15
|
+
export const HelperText = /*#__PURE__*/memo(function HelperTex(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
color,
|
|
18
|
+
id,
|
|
19
|
+
errorIconAccessibilityLabel,
|
|
20
|
+
errorIconTestID,
|
|
21
|
+
children,
|
|
22
|
+
dangerouslySetColor,
|
|
23
|
+
textAlign = 'start'
|
|
24
|
+
} = _ref,
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
return /*#__PURE__*/_jsxs(Text, _objectSpread(_objectSpread({
|
|
27
|
+
color: color,
|
|
28
|
+
dangerouslySetColor: dangerouslySetColor,
|
|
29
|
+
display: "block",
|
|
30
|
+
font: "label2",
|
|
31
|
+
id: id,
|
|
32
|
+
textAlign: textAlign
|
|
33
|
+
}, props), {}, {
|
|
34
|
+
children: [color === 'fgNegative' && /*#__PURE__*/_jsx(Box, {
|
|
35
|
+
as: "span",
|
|
36
|
+
className: iconCss,
|
|
37
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
38
|
+
active: true,
|
|
39
|
+
accessibilityLabel: errorIconAccessibilityLabel,
|
|
40
|
+
color: "fgNegative",
|
|
41
|
+
dangerouslySetColor: dangerouslySetColor,
|
|
42
|
+
name: "info",
|
|
43
|
+
size: "xs",
|
|
44
|
+
testID: errorIconTestID
|
|
45
|
+
})
|
|
46
|
+
}), children]
|
|
47
|
+
}));
|
|
48
|
+
});
|
|
49
|
+
import "./HelperText.css";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const _excluded = ["disableInheritFocusStyle", "testID", "color"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { forwardRef, memo, useContext } from 'react';
|
|
10
|
+
import { Icon } from '../icons/Icon';
|
|
11
|
+
import { Box } from '../layout/Box';
|
|
12
|
+
import { TextInputFocusVariantContext } from './context';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export const variantColorMap = {
|
|
15
|
+
primary: 'fgPrimary',
|
|
16
|
+
positive: 'fgPositive',
|
|
17
|
+
negative: 'fgNegative',
|
|
18
|
+
foreground: 'fg',
|
|
19
|
+
foregroundMuted: 'fgMuted',
|
|
20
|
+
secondary: 'bgSecondary'
|
|
21
|
+
};
|
|
22
|
+
export const InputIcon = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) => {
|
|
23
|
+
let {
|
|
24
|
+
disableInheritFocusStyle = false,
|
|
25
|
+
testID,
|
|
26
|
+
color = 'fg'
|
|
27
|
+
} = _ref,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const variant = useContext(TextInputFocusVariantContext);
|
|
30
|
+
const variantColor = variant ? variantColorMap[variant] : undefined;
|
|
31
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
32
|
+
paddingX: 2,
|
|
33
|
+
testID: testID,
|
|
34
|
+
children: /*#__PURE__*/_jsx(Icon, _objectSpread(_objectSpread({
|
|
35
|
+
color: disableInheritFocusStyle ? color : variantColor !== null && variantColor !== void 0 ? variantColor : color,
|
|
36
|
+
size: "s"
|
|
37
|
+
}, props), {}, {
|
|
38
|
+
ref: ref
|
|
39
|
+
}))
|
|
40
|
+
});
|
|
41
|
+
}));
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const _excluded = ["disableInheritFocusStyle", "testID", "variant"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { forwardRef, memo, useContext } from 'react';
|
|
10
|
+
import { IconButton } from '../buttons/IconButton';
|
|
11
|
+
import { Box } from '../layout/Box';
|
|
12
|
+
import { TextInputFocusVariantContext } from './context';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
export const variantTransformMap = {
|
|
15
|
+
positive: 'primary',
|
|
16
|
+
negative: 'primary',
|
|
17
|
+
foreground: 'primary',
|
|
18
|
+
primary: 'primary',
|
|
19
|
+
foregroundMuted: 'foregroundMuted',
|
|
20
|
+
secondary: 'secondary'
|
|
21
|
+
};
|
|
22
|
+
export const InputIconButton = /*#__PURE__*/memo(/*#__PURE__*/forwardRef(function InputIconButton(_ref, ref) {
|
|
23
|
+
let {
|
|
24
|
+
disableInheritFocusStyle = false,
|
|
25
|
+
testID,
|
|
26
|
+
variant = 'primary'
|
|
27
|
+
} = _ref,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
const contextVariant = useContext(TextInputFocusVariantContext);
|
|
30
|
+
const transformedVariant = contextVariant ? variantTransformMap[contextVariant] : variant;
|
|
31
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
32
|
+
paddingEnd: 0.5,
|
|
33
|
+
paddingStart: 1,
|
|
34
|
+
testID: testID,
|
|
35
|
+
children: /*#__PURE__*/_jsx(IconButton, _objectSpread({
|
|
36
|
+
ref: ref,
|
|
37
|
+
transparent: true,
|
|
38
|
+
variant: disableInheritFocusStyle ? variant : transformedVariant
|
|
39
|
+
}, props))
|
|
40
|
+
});
|
|
41
|
+
}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const _excluded = ["color", "disabled"];
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
|
+
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); }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
import React, { memo } from 'react';
|
|
10
|
+
import { Text } from '../typography/Text';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
export const InputLabel = /*#__PURE__*/memo(function InputLabel(_ref) {
|
|
13
|
+
let {
|
|
14
|
+
color = 'fg',
|
|
15
|
+
disabled = false
|
|
16
|
+
} = _ref,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsx(Text, _objectSpread({
|
|
19
|
+
as: "label",
|
|
20
|
+
color: color,
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
display: "block",
|
|
23
|
+
font: "label1",
|
|
24
|
+
paddingY: 0.5
|
|
25
|
+
}, props));
|
|
26
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@layer cds{.baseCss-b16zw4a5{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:0;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;border-color:var(--border-color-unfocused);-webkit-transition:box-shadow 200ms ease-in-out;transition:box-shadow 200ms ease-in-out;overflow:hidden;}.baseCss-b16zw4a5:disabled,.baseCss-b16zw4a5[aria-disabled='true'],.baseCss-b16zw4a5:hover{border-color:var(--border-color-unfocused);opacity:1;}.baseCss-b16zw4a5:focus-within{border-color:var(--border-color-focused);box-shadow:0 0 0 var(--border-width-focused) var(--border-color-focused);}
|
|
2
|
+
.inputAreaContainerCss-ipofex6{padding:1px;width:100%;}
|
|
3
|
+
.persistedFocusCss-p6phjeo{border-color:var(--border-color-focused);box-shadow:0 0 0 var(--border-width-focused) var(--border-color-focused);}}
|