@coinbase/cds-common 8.13.1 → 8.13.5
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 +58 -0
- package/dts/accordion/AccordionProvider.d.ts +23 -17
- package/dts/animation/accordion.d.ts +1 -1
- package/dts/animation/border.d.ts +9 -3
- package/dts/animation/carousel.d.ts +1 -1
- package/dts/animation/collapsible.d.ts +4 -4
- package/dts/animation/dot.d.ts +1 -1
- package/dts/animation/drawer.d.ts +8 -8
- package/dts/animation/dropdown.d.ts +19 -19
- package/dts/animation/fullscreenModal.d.ts +1 -1
- package/dts/animation/likeButton.d.ts +1 -1
- package/dts/animation/menu.d.ts +21 -21
- package/dts/animation/modal.d.ts +1 -1
- package/dts/animation/overlay.d.ts +1 -1
- package/dts/animation/paddle.d.ts +1 -1
- package/dts/animation/progress.d.ts +1 -1
- package/dts/animation/rotate.d.ts +1 -1
- package/dts/animation/select.d.ts +1 -1
- package/dts/animation/sparkline.d.ts +3 -3
- package/dts/animation/tabs.d.ts +1 -1
- package/dts/animation/toast.d.ts +1 -1
- package/dts/animation/tooltip.d.ts +7 -4
- package/dts/cards/getCardBodySpacingProps.d.ts +16 -4
- package/dts/color/blendColors.d.ts +12 -9
- package/dts/color/colorToHex.d.ts +1 -1
- package/dts/color/darkenColor.d.ts +1 -1
- package/dts/color/getAccessibleForegroundGradient.d.ts +13 -8
- package/dts/color/getBlendedColor.d.ts +61 -54
- package/dts/color/getContrastRatio.d.ts +1 -1
- package/dts/color/getLuminance.d.ts +1 -1
- package/dts/color/isAccessibleColor.d.ts +11 -6
- package/dts/color/isLightOrDarkColor.d.ts +2 -2
- package/dts/color/overrideAlpha.d.ts +1 -1
- package/dts/core/theme.d.ts +251 -252
- package/dts/dates/DateInputValidationError.d.ts +3 -3
- package/dts/dates/IntlDateFormat.d.ts +29 -32
- package/dts/dates/generateCalendarMonth.d.ts +1 -1
- package/dts/dates/getISOStringLocal.d.ts +1 -1
- package/dts/dates/getMidnightDate.d.ts +1 -1
- package/dts/dates/getTimesFromDatesAndRanges.d.ts +4 -2
- package/dts/dates/useDateInput.d.ts +33 -17
- package/dts/dates/useDateInputValidation.d.ts +48 -39
- package/dts/hooks/useEventHandler.d.ts +12 -3
- package/dts/hooks/useFallbackShape.d.ts +10 -6
- package/dts/hooks/useGroupToggler.d.ts +9 -6
- package/dts/hooks/useHasMounted.d.ts +1 -1
- package/dts/hooks/useIndexCounter.d.ts +21 -14
- package/dts/hooks/useInputVariant.d.ts +1 -1
- package/dts/hooks/useLogo.d.ts +17 -17
- package/dts/hooks/useMergeRefs.d.ts +4 -2
- package/dts/hooks/usePrefixedId.d.ts +9 -3
- package/dts/hooks/usePreviousValue.d.ts +1 -1
- package/dts/hooks/usePreviousValues.d.ts +3 -3
- package/dts/hooks/useRefMap.d.ts +9 -7
- package/dts/hooks/useSort.d.ts +14 -14
- package/dts/hooks/useSubBrandLogo.d.ts +53 -45
- package/dts/hooks/useTimer.d.ts +5 -5
- package/dts/hooks/useToggler.d.ts +7 -7
- package/dts/hooks/useValueChanges.d.ts +6 -6
- package/dts/index.d.ts +1 -1
- package/dts/internal/data/accounts.d.ts +220 -210
- package/dts/internal/data/announcementCards.d.ts +7 -7
- package/dts/internal/data/asset.d.ts +162 -162
- package/dts/internal/data/assets.d.ts +73 -70
- package/dts/internal/data/avatars.d.ts +6 -3
- package/dts/internal/data/candles.d.ts +9 -0
- package/dts/internal/data/candles.d.ts.map +1 -0
- package/dts/internal/data/dataCards.d.ts +25 -21
- package/dts/internal/data/featureEntryCards.d.ts +19 -16
- package/dts/internal/data/feedImages.d.ts +1 -1
- package/dts/internal/data/iconData.d.ts +2 -2
- package/dts/internal/data/loremIpsum.d.ts +3 -2
- package/dts/internal/data/navigation.d.ts +5 -5
- package/dts/internal/data/prices.d.ts +3 -3
- package/dts/internal/data/product.d.ts +31 -23
- package/dts/internal/data/tabs.d.ts +16 -13
- package/dts/internal/data/users.d.ts +13 -10
- package/dts/internal/utils/storyBuilder.d.ts +136 -95
- package/dts/internal/visualizations/SparklineInteractiveData.d.ts +8 -8
- package/dts/jest/timeTravel.d.ts +1 -1
- package/dts/lottie/lottieUtils.d.ts +7 -4
- package/dts/lottie/useStatusAnimationPoller.d.ts +29 -6
- package/dts/media/getAvatarFallbackColor.d.ts +4 -2
- package/dts/media/remoteImageFallbackSrc.d.ts +5 -3
- package/dts/motion/animatedCaret.d.ts +1 -1
- package/dts/motion/checkbox.d.ts +85 -77
- package/dts/motion/dot.d.ts +85 -77
- package/dts/motion/hint.d.ts +46 -42
- package/dts/motion/switch.d.ts +1 -1
- package/dts/motion/tokens.d.ts +896 -414
- package/dts/motion/utils.d.ts +30 -12
- package/dts/numbers/IntlNumberFormat.d.ts +101 -103
- package/dts/numbers/subscript.d.ts +1 -1
- package/dts/overlays/ModalContext.d.ts +22 -22
- package/dts/overlays/OverlayContentContext.d.ts +10 -10
- package/dts/overlays/PortalContext.d.ts +5 -5
- package/dts/overlays/ToastProvider.d.ts +44 -35
- package/dts/overlays/useAlert.d.ts +3 -3
- package/dts/overlays/useModal.d.ts +3 -3
- package/dts/overlays/useOverlay.d.ts +3 -3
- package/dts/overlays/usePortal.d.ts +2 -2
- package/dts/overlays/usePortalState.d.ts +12 -12
- package/dts/overlays/useToastQueue.d.ts +8 -8
- package/dts/stepper/useStepper.d.ts +27 -23
- package/dts/stepper/utils.d.ts +15 -8
- package/dts/system/EventHandlerProvider.d.ts +13 -11
- package/dts/system/LocaleProvider.d.ts +8 -5
- package/dts/system/RefMapContext.d.ts +3 -3
- package/dts/tabs/TabsContext.d.ts +2 -2
- package/dts/tabs/useTabs.d.ts +27 -22
- package/dts/tokens/accordion.d.ts +4 -4
- package/dts/tokens/appSwitcher.d.ts +1 -1
- package/dts/tokens/avatar.d.ts +12 -12
- package/dts/tokens/banner.d.ts +8 -8
- package/dts/tokens/borderRadius.d.ts +1 -1
- package/dts/tokens/button.d.ts +61 -61
- package/dts/tokens/card.d.ts +16 -16
- package/dts/tokens/cell.d.ts +17 -14
- package/dts/tokens/chip.d.ts +1 -1
- package/dts/tokens/dot.d.ts +4 -4
- package/dts/tokens/drawer.d.ts +1 -1
- package/dts/tokens/illustrations.d.ts +21 -21
- package/dts/tokens/input.d.ts +1 -1
- package/dts/tokens/interactable.d.ts +1 -1
- package/dts/tokens/interactableHeight.d.ts +3 -3
- package/dts/tokens/menu.d.ts +1 -1
- package/dts/tokens/multiContentModule.d.ts +1 -1
- package/dts/tokens/navigation.d.ts +1 -1
- package/dts/tokens/overlays.d.ts +3 -2
- package/dts/tokens/page.d.ts +1 -1
- package/dts/tokens/select.d.ts +1 -1
- package/dts/tokens/sidebar.d.ts +1 -1
- package/dts/tokens/sizing.d.ts +1 -1
- package/dts/tokens/sparkline.d.ts +1 -1
- package/dts/tokens/tags.d.ts +11 -5
- package/dts/tokens/tile.d.ts +1 -1
- package/dts/tokens/toast.d.ts +1 -1
- package/dts/tokens/tooltip.d.ts +1 -1
- package/dts/tokens/zIndex.d.ts +12 -12
- package/dts/tour/TourContext.d.ts +1 -1
- package/dts/tour/TourContext.d.ts.map +1 -1
- package/dts/tour/useTour.d.ts +86 -77
- package/dts/tour/useTour.d.ts.map +1 -1
- package/dts/types/AvatarBaseProps.d.ts +1 -1
- package/dts/types/AvatarSize.d.ts +1 -1
- package/dts/types/BannerBaseProps.d.ts +1 -1
- package/dts/types/BoxBaseProps.d.ts +61 -48
- package/dts/types/ButtonBaseProps.d.ts +8 -2
- package/dts/types/CardHeaderProps.d.ts +9 -9
- package/dts/types/CardMediaProps.d.ts +28 -22
- package/dts/types/CardRemoteImageProps.d.ts +18 -14
- package/dts/types/CdsPlatform.d.ts +1 -1
- package/dts/types/CellBaseProps.d.ts +3 -3
- package/dts/types/Chart.d.ts +18 -16
- package/dts/types/CollapsibleBaseProps.d.ts +1 -1
- package/dts/types/Color.d.ts +3 -3
- package/dts/types/ComponentEventHandlerProps.d.ts +3 -3
- package/dts/types/DimensionStyles.d.ts +18 -18
- package/dts/types/Display.d.ts +9 -2
- package/dts/types/DotBaseProps.d.ts +1 -1
- package/dts/types/DotCountBaseProps.d.ts +1 -1
- package/dts/types/ElevationLevels.d.ts +3 -3
- package/dts/types/FallbackBaseProps.d.ts +8 -8
- package/dts/types/Grid.d.ts +1 -1
- package/dts/types/Helpers.d.ts +6 -2
- package/dts/types/IconButtonBaseProps.d.ts +1 -1
- package/dts/types/IconName.d.ts +1 -1
- package/dts/types/IconSize.d.ts +1 -1
- package/dts/types/IllustrationNames.d.ts +14 -3
- package/dts/types/IllustrationProps.d.ts +15 -3
- package/dts/types/InputBaseProps.d.ts +23 -17
- package/dts/types/LottiePlayer.d.ts +9 -6
- package/dts/types/LottieSource.d.ts +19 -19
- package/dts/types/LottieStatusAnimationProps.d.ts +21 -15
- package/dts/types/Motion.d.ts +58 -21
- package/dts/types/OverlayLifecycleProps.d.ts +17 -17
- package/dts/types/Palette.d.ts +1 -1
- package/dts/types/Placement.d.ts +1 -1
- package/dts/types/Position.d.ts +1 -1
- package/dts/types/ProgressContainerWithButtonsProps.d.ts +5 -5
- package/dts/types/PulseBaseProps.d.ts +1 -1
- package/dts/types/React.d.ts +1 -1
- package/dts/types/Rect.d.ts +5 -5
- package/dts/types/Responsive.d.ts +9 -2
- package/dts/types/ResponsiveProps.d.ts +13 -6
- package/dts/types/SectionHeaderProps.d.ts +15 -13
- package/dts/types/Shape.d.ts +1 -1
- package/dts/types/SharedAccessibilityProps.d.ts +32 -32
- package/dts/types/SharedProps.d.ts +7 -7
- package/dts/types/SpacingProps.d.ts +37 -37
- package/dts/types/SparklineInteractiveHeaderBaseProps.d.ts +7 -2
- package/dts/types/SpreadPropsSafely.d.ts +2 -2
- package/dts/types/StickyFooterProps.d.ts +17 -15
- package/dts/types/TagBaseProps.d.ts +5 -2
- package/dts/types/TextBaseProps.d.ts +7 -7
- package/dts/types/TooltipBaseProps.d.ts +1 -1
- package/dts/types/TypeOrNumber.d.ts +1 -1
- package/dts/types/Visibility.d.ts +2 -2
- package/dts/types/Weight.d.ts +1 -1
- package/dts/types/index.d.ts +1 -1
- package/dts/utils/cell.d.ts +5 -2
- package/dts/utils/chart.d.ts +1 -1
- package/dts/utils/circle.d.ts +1 -1
- package/dts/utils/convertDimensionToAspectRatio.d.ts +12 -2
- package/dts/utils/convertDimensionToSize.d.ts +3 -3
- package/dts/utils/convertSizeWithMultiplier.d.ts +8 -5
- package/dts/utils/debounce.d.ts +5 -2
- package/dts/utils/delay.d.ts +1 -1
- package/dts/utils/flattenNodes.d.ts +6 -2
- package/dts/utils/formatCount.d.ts +1 -1
- package/dts/utils/getAccessibleColor.d.ts +16 -11
- package/dts/utils/getButtonSpacingProps.d.ts +12 -9
- package/dts/utils/getDefaultAspectRatioForIllustration.d.ts +9 -2
- package/dts/utils/getDefaultSizeObjectForIllustration.d.ts +4 -2
- package/dts/utils/getRectWidthVariant.d.ts +5 -2
- package/dts/utils/getWidthInEm.d.ts +1 -1
- package/dts/utils/join.d.ts +5 -2
- package/dts/utils/mergeProps.d.ts +1 -1
- package/dts/utils/mockUtils.d.ts +1 -1
- package/dts/utils/modulate.d.ts +8 -5
- package/dts/utils/parseDotCountMaxOverflow.d.ts +1 -1
- package/dts/visualizations/getProgressCircleParams.d.ts +15 -11
- package/dts/visualizations/getSparklineRange.d.ts +11 -7
- package/dts/visualizations/getSparklineTransform.d.ts +7 -3
- package/dts/visualizations/largestTriangleThreeBucket.d.ts +1 -1
- package/dts/visualizations/useCounter.d.ts +9 -5
- package/dts/visualizations/useDateLookup.d.ts +9 -5
- package/dts/visualizations/useProgressSize.d.ts +1 -1
- package/dts/visualizations/useSparklineArea.d.ts +1 -1
- package/dts/visualizations/useSparklineAreaOpacity.d.ts +1 -1
- package/dts/visualizations/useSparklineCoordinates.d.ts +19 -12
- package/dts/visualizations/useSparklinePath.d.ts +1 -1
- package/dts/visualizations/useSparklinePathGenerator.d.ts +16 -10
- package/dts/visualizations/useTimeseriesPaths.d.ts +6 -6
- package/dts/visualizations/useVisualizationDimensions.d.ts +15 -10
- package/esm/internal/data/assets.js +1 -1
- package/esm/internal/data/candles.js +2101 -0
- package/esm/tour/useTour.js +5 -2
- package/package.json +7 -7
- package/dts/accordion/__tests__/AccordionProvider.test.d.ts +0 -2
- package/dts/accordion/__tests__/AccordionProvider.test.d.ts.map +0 -1
- package/dts/color/__tests__/blendColors.test.d.ts +0 -2
- package/dts/color/__tests__/blendColors.test.d.ts.map +0 -1
- package/dts/color/__tests__/isLightOrDarkColor.test.d.ts +0 -2
- package/dts/color/__tests__/isLightOrDarkColor.test.d.ts.map +0 -1
- package/dts/color/__tests__/overrideAlpha.test.d.ts +0 -2
- package/dts/color/__tests__/overrideAlpha.test.d.ts.map +0 -1
- package/dts/dates/__tests__/IntlDateFormat.test.d.ts +0 -2
- package/dts/dates/__tests__/IntlDateFormat.test.d.ts.map +0 -1
- package/dts/dates/__tests__/useDateInput.test.d.ts +0 -2
- package/dts/dates/__tests__/useDateInput.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/useFallbackShape.test.d.ts +0 -2
- package/dts/hooks/__tests__/useFallbackShape.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/usePrefixedId.test.d.ts +0 -2
- package/dts/hooks/__tests__/usePrefixedId.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/usePreviousValue.test.d.ts +0 -2
- package/dts/hooks/__tests__/usePreviousValue.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/useRefMap.test.d.ts +0 -2
- package/dts/hooks/__tests__/useRefMap.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/useSort.test.d.ts +0 -2
- package/dts/hooks/__tests__/useSort.test.d.ts.map +0 -1
- package/dts/hooks/__tests__/useTimer.test.d.ts +0 -2
- package/dts/hooks/__tests__/useTimer.test.d.ts.map +0 -1
- package/dts/lottie/lottieUtils.test.d.ts +0 -2
- package/dts/lottie/lottieUtils.test.d.ts.map +0 -1
- package/dts/numbers/__tests__/formatToParts.test.d.ts +0 -2
- package/dts/numbers/__tests__/formatToParts.test.d.ts.map +0 -1
- package/dts/numbers/__tests__/subscript.test.d.ts +0 -2
- package/dts/numbers/__tests__/subscript.test.d.ts.map +0 -1
- package/dts/overlays/__tests__/useOverlay.test.d.ts +0 -2
- package/dts/overlays/__tests__/useOverlay.test.d.ts.map +0 -1
- package/dts/overlays/__tests__/useToastQueue.test.d.ts +0 -2
- package/dts/overlays/__tests__/useToastQueue.test.d.ts.map +0 -1
- package/dts/stepper/__tests__/useStepper.test.d.ts +0 -2
- package/dts/stepper/__tests__/useStepper.test.d.ts.map +0 -1
- package/dts/stepper/__tests__/utils.test.d.ts +0 -2
- package/dts/stepper/__tests__/utils.test.d.ts.map +0 -1
- package/dts/system/__tests__/EventHandlerProvider.test.d.ts +0 -2
- package/dts/system/__tests__/EventHandlerProvider.test.d.ts.map +0 -1
- package/dts/tabs/__tests__/TabsContext.test.d.ts +0 -2
- package/dts/tabs/__tests__/TabsContext.test.d.ts.map +0 -1
- package/dts/tabs/__tests__/useTabs.test.d.ts +0 -2
- package/dts/tabs/__tests__/useTabs.test.d.ts.map +0 -1
- package/dts/tour/__tests__/TourContext.test.d.ts +0 -2
- package/dts/tour/__tests__/TourContext.test.d.ts.map +0 -1
- package/dts/tour/__tests__/useTour.test.d.ts +0 -2
- package/dts/tour/__tests__/useTour.test.d.ts.map +0 -1
- package/dts/utils/__tests__/cell.test.d.ts +0 -2
- package/dts/utils/__tests__/cell.test.d.ts.map +0 -1
- package/dts/utils/__tests__/chart.test.d.ts +0 -2
- package/dts/utils/__tests__/chart.test.d.ts.map +0 -1
- package/dts/utils/__tests__/flattenNodes.test.d.ts +0 -2
- package/dts/utils/__tests__/flattenNodes.test.d.ts.map +0 -1
- package/dts/utils/__tests__/formatCount.test.d.ts +0 -2
- package/dts/utils/__tests__/formatCount.test.d.ts.map +0 -1
- package/dts/utils/__tests__/getRectWidthVariant.test.d.ts +0 -2
- package/dts/utils/__tests__/getRectWidthVariant.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/getSparklineRange.test.d.ts +0 -2
- package/dts/visualizations/__tests__/getSparklineRange.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/largestTriangleThreeBucket.test.d.ts +0 -2
- package/dts/visualizations/__tests__/largestTriangleThreeBucket.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/useCounter.test.d.ts +0 -2
- package/dts/visualizations/__tests__/useCounter.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/useSparklineArea.test.d.ts +0 -2
- package/dts/visualizations/__tests__/useSparklineArea.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/useSparklineCoordinates.test.d.ts +0 -2
- package/dts/visualizations/__tests__/useSparklineCoordinates.test.d.ts.map +0 -1
- package/dts/visualizations/__tests__/useSparklinePath.test.d.ts +0 -2
- package/dts/visualizations/__tests__/useSparklinePath.test.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventHandlerCustomConfig } from '../system/EventHandlerProvider';
|
|
2
2
|
export type ComponentEventHandlerProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
eventConfig?: EventHandlerCustomConfig;
|
|
4
|
+
analyticsId?: string;
|
|
5
5
|
};
|
|
6
|
-
//# sourceMappingURL=ComponentEventHandlerProps.d.ts.map
|
|
6
|
+
//# sourceMappingURL=ComponentEventHandlerProps.d.ts.map
|
|
@@ -3,22 +3,22 @@ export type PercentageValue = string;
|
|
|
3
3
|
export type DimensionValue = 'auto' | FixedValue | PercentageValue;
|
|
4
4
|
export type ResizeMode = 'cover' | 'contain';
|
|
5
5
|
export type DimensionStyles = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
/** Set a fixed height. */
|
|
7
|
+
height?: DimensionValue;
|
|
8
|
+
/** Set a maximum height. */
|
|
9
|
+
maxHeight?: DimensionValue;
|
|
10
|
+
/** Set a maximum width. */
|
|
11
|
+
maxWidth?: DimensionValue;
|
|
12
|
+
/** Set a minimum height. */
|
|
13
|
+
minHeight?: DimensionValue;
|
|
14
|
+
/** Set a minimum width. */
|
|
15
|
+
minWidth?: DimensionValue;
|
|
16
|
+
/** Set a fixed width. */
|
|
17
|
+
width?: DimensionValue;
|
|
18
|
+
/**
|
|
19
|
+
* The aspect-ratio CSS property allows you to define the desired width-to-height ratio of an element's box
|
|
20
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio
|
|
21
|
+
*/
|
|
22
|
+
aspectRatio?: React.CSSProperties['aspectRatio'];
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=DimensionStyles.d.ts.map
|
|
24
|
+
//# sourceMappingURL=DimensionStyles.d.ts.map
|
package/dts/types/Display.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export type Display =
|
|
2
|
-
|
|
1
|
+
export type Display =
|
|
2
|
+
| 'block'
|
|
3
|
+
| 'inline-block'
|
|
4
|
+
| 'flex'
|
|
5
|
+
| 'inline-flex'
|
|
6
|
+
| 'none'
|
|
7
|
+
| 'contents'
|
|
8
|
+
| 'grid';
|
|
9
|
+
//# sourceMappingURL=Display.d.ts.map
|
|
@@ -2,4 +2,4 @@ import type { IconSize } from './IconSize';
|
|
|
2
2
|
export type DotVariant = 'positive' | 'negative' | 'primary' | 'foregroundMuted' | 'warning';
|
|
3
3
|
export type DotOverlap = 'circular';
|
|
4
4
|
export type DotSize = IconSize;
|
|
5
|
-
//# sourceMappingURL=DotBaseProps.d.ts.map
|
|
5
|
+
//# sourceMappingURL=DotBaseProps.d.ts.map
|
|
@@ -2,4 +2,4 @@ import type { DotVariant } from './DotBaseProps';
|
|
|
2
2
|
import type { PinPlacement } from './Placement';
|
|
3
3
|
export type DotCountVariants = Extract<DotVariant, 'negative'>;
|
|
4
4
|
export type DotCountPinPlacement = Extract<PinPlacement, 'top-end'>;
|
|
5
|
-
//# sourceMappingURL=DotCountBaseProps.d.ts.map
|
|
5
|
+
//# sourceMappingURL=DotCountBaseProps.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ThemeVars } from '../core/theme';
|
|
2
2
|
export type ElevationLevels = ThemeVars.Elevation;
|
|
3
3
|
export type ElevationProps = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/** Determines a component's shadow styles. Parent should have overflow set to visible to ensure styles are not clipped. */
|
|
5
|
+
elevation?: ElevationLevels;
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=ElevationLevels.d.ts.map
|
|
7
|
+
//# sourceMappingURL=ElevationLevels.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type FallbackRectWidthProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
/** Disables randomization of rectangle fallback width. */
|
|
3
|
+
disableRandomRectWidth?: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a variant that contains rectangle fallbacks of deterministic width.
|
|
6
|
+
* Variants map to a predetermined set of width values, which are cycled through repeatedly when the set is exhausted.
|
|
7
|
+
*/
|
|
8
|
+
rectWidthVariant?: number;
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=FallbackBaseProps.d.ts.map
|
|
10
|
+
//# sourceMappingURL=FallbackBaseProps.d.ts.map
|
package/dts/types/Grid.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type GridColumn = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
2
|
-
//# sourceMappingURL=Grid.d.ts.map
|
|
2
|
+
//# sourceMappingURL=Grid.d.ts.map
|
package/dts/types/Helpers.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type RecursiveKeyOf<T> = {
|
|
2
|
-
|
|
2
|
+
[K in keyof T & (string | number)]: T[K] extends object[]
|
|
3
|
+
? `${K}`
|
|
4
|
+
: T[K] extends object
|
|
5
|
+
? `${K}.${RecursiveKeyOf<T[K]>}`
|
|
6
|
+
: `${K}`;
|
|
3
7
|
}[keyof T & (string | number)];
|
|
4
|
-
//# sourceMappingURL=Helpers.d.ts.map
|
|
8
|
+
//# sourceMappingURL=Helpers.d.ts.map
|
package/dts/types/IconName.d.ts
CHANGED
package/dts/types/IconSize.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
HeroSquareName,
|
|
3
|
+
PictogramName,
|
|
4
|
+
SpotIconName,
|
|
5
|
+
SpotRectangleName,
|
|
6
|
+
SpotSquareName,
|
|
7
|
+
} from '@coinbase/cds-illustrations';
|
|
8
|
+
export type IllustrationVariant =
|
|
9
|
+
| 'spotSquare'
|
|
10
|
+
| 'spotRectangle'
|
|
11
|
+
| 'heroSquare'
|
|
12
|
+
| 'pictogram'
|
|
13
|
+
| 'spotIcon';
|
|
3
14
|
export type IllustrationHeroSquareNames = HeroSquareName;
|
|
4
15
|
export type IllustrationPictogramNames = PictogramName;
|
|
5
16
|
export type IllustrationSpotRectangleNames = SpotRectangleName;
|
|
6
17
|
export type IllustrationSpotSquareNames = SpotSquareName;
|
|
7
18
|
export type IllustrationSpotIconNames = SpotIconName;
|
|
8
|
-
//# sourceMappingURL=IllustrationNames.d.ts.map
|
|
19
|
+
//# sourceMappingURL=IllustrationNames.d.ts.map
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import type { illustrationDimensions } from '../tokens/illustrations';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
IllustrationHeroSquareNames,
|
|
4
|
+
IllustrationPictogramNames,
|
|
5
|
+
IllustrationSpotIconNames,
|
|
6
|
+
IllustrationSpotRectangleNames,
|
|
7
|
+
IllustrationSpotSquareNames,
|
|
8
|
+
IllustrationVariant,
|
|
9
|
+
} from './IllustrationNames';
|
|
3
10
|
export type HeroSquareDimension = (typeof illustrationDimensions.heroSquare)[number];
|
|
4
11
|
export type SpotSquareDimension = (typeof illustrationDimensions.spotSquare)[number];
|
|
5
12
|
export type SpotRectangleDimension = (typeof illustrationDimensions.spotRectangle)[number];
|
|
6
13
|
export type PictogramDimension = (typeof illustrationDimensions.pictogram)[number];
|
|
7
14
|
export type SpotIconDimension = (typeof illustrationDimensions.spotIcon)[number];
|
|
8
|
-
export type IllustrationDimension =
|
|
15
|
+
export type IllustrationDimension =
|
|
16
|
+
| HeroSquareDimension
|
|
17
|
+
| SpotSquareDimension
|
|
18
|
+
| SpotRectangleDimension
|
|
19
|
+
| PictogramDimension
|
|
20
|
+
| SpotIconDimension;
|
|
9
21
|
export type HeroSquareName = IllustrationHeroSquareNames;
|
|
10
22
|
export type PictogramName = IllustrationPictogramNames;
|
|
11
23
|
export type SpotRectangleName = IllustrationSpotRectangleNames;
|
|
12
24
|
export type SpotSquareName = IllustrationSpotSquareNames;
|
|
13
25
|
export type SpotIconName = IllustrationSpotIconNames;
|
|
14
26
|
export type IllustrationType = IllustrationVariant;
|
|
15
|
-
//# sourceMappingURL=IllustrationProps.d.ts.map
|
|
27
|
+
//# sourceMappingURL=IllustrationProps.d.ts.map
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
export type InputVariant =
|
|
1
|
+
export type InputVariant =
|
|
2
|
+
| 'positive'
|
|
3
|
+
| 'negative'
|
|
4
|
+
| 'foreground'
|
|
5
|
+
| 'primary'
|
|
6
|
+
| 'foregroundMuted'
|
|
7
|
+
| 'secondary';
|
|
2
8
|
export type SharedInputProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Enables compact variation
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
/** Short messageArea indicating purpose of input */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Placeholder text displayed inside of the input. Will be replaced if there is a value. */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* For cases where label is not enough information
|
|
20
|
+
* to describe what the text input is for. Can also be used for
|
|
21
|
+
* showing positive/negative messages
|
|
22
|
+
*/
|
|
23
|
+
helperText?: string | React.ReactNode;
|
|
18
24
|
};
|
|
19
|
-
//# sourceMappingURL=InputBaseProps.d.ts.map
|
|
25
|
+
//# sourceMappingURL=InputBaseProps.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { LottieMarkersAsMap, LottieSource } from './LottieSource';
|
|
2
2
|
export type LottiePlayer<Source extends LottieSource> = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
play: (startFrame?: number, endFrame?: number) => void;
|
|
4
|
+
playMarkers: (
|
|
5
|
+
startFrame: keyof LottieMarkersAsMap<Source>,
|
|
6
|
+
endFrame: keyof LottieMarkersAsMap<Source>,
|
|
7
|
+
) => void;
|
|
8
|
+
pause: () => void;
|
|
9
|
+
resume: () => void;
|
|
10
|
+
reset: () => void;
|
|
8
11
|
};
|
|
9
|
-
//# sourceMappingURL=LottiePlayer.d.ts.map
|
|
12
|
+
//# sourceMappingURL=LottiePlayer.d.ts.map
|
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
* Generated from scripts/codegen/main.ts
|
|
4
4
|
*/
|
|
5
5
|
export type LottieMarker<T extends string> = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
tm: number;
|
|
7
|
+
cm: T;
|
|
8
|
+
dr: number;
|
|
9
9
|
};
|
|
10
10
|
export type LottieSource<Marker extends string = string> = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
meta: Record<string, unknown>;
|
|
12
|
+
v: string;
|
|
13
|
+
fr: number;
|
|
14
|
+
ip: number;
|
|
15
|
+
op: number;
|
|
16
|
+
w: number;
|
|
17
|
+
h: number;
|
|
18
|
+
nm: string;
|
|
19
|
+
ddd: number;
|
|
20
|
+
assets: unknown[];
|
|
21
|
+
layers: ({
|
|
18
22
|
nm: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
nm: string;
|
|
23
|
-
cl?: string;
|
|
24
|
-
} & Record<string, unknown>)[];
|
|
25
|
-
markers: LottieMarker<Marker>[];
|
|
23
|
+
cl?: string;
|
|
24
|
+
} & Record<string, unknown>)[];
|
|
25
|
+
markers: LottieMarker<Marker>[];
|
|
26
26
|
};
|
|
27
27
|
export type LottieMarkersAsMap<T extends LottieSource> = {
|
|
28
|
-
|
|
28
|
+
[key in T['markers'][number]['cm']]: number;
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=LottieSource.d.ts.map
|
|
30
|
+
//# sourceMappingURL=LottieSource.d.ts.map
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import type { DimensionValue } from './DimensionStyles';
|
|
2
2
|
import type { SharedProps } from './SharedProps';
|
|
3
|
-
export type LottieStatusAnimationType =
|
|
3
|
+
export type LottieStatusAnimationType =
|
|
4
|
+
| 'loading'
|
|
5
|
+
| 'success'
|
|
6
|
+
| 'cardSuccess'
|
|
7
|
+
| 'failure'
|
|
8
|
+
| 'pending';
|
|
4
9
|
type BaseStatusAnimationProps = {
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
status?: LottieStatusAnimationType;
|
|
11
|
+
onFinish?: () => void;
|
|
7
12
|
};
|
|
8
13
|
type StatusAnimationWithWidth = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* We use aspect ratio to calculate the unset dimension based on the set dimension and a given aspect ratio.
|
|
16
|
+
* Only width or height is allowed, but not both.
|
|
17
|
+
*/
|
|
18
|
+
width: DimensionValue;
|
|
14
19
|
} & BaseStatusAnimationProps;
|
|
15
20
|
type StatusAnimationWithHeight = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* We use aspect ratio to calculate the unset dimension based on the set dimension and a given aspect ratio.
|
|
23
|
+
* Only width or height is allowed, but not both.
|
|
24
|
+
*/
|
|
25
|
+
height: DimensionValue;
|
|
21
26
|
} & BaseStatusAnimationProps;
|
|
22
|
-
export type LottieStatusAnimationProps = (StatusAnimationWithWidth | StatusAnimationWithHeight) &
|
|
27
|
+
export type LottieStatusAnimationProps = (StatusAnimationWithWidth | StatusAnimationWithHeight) &
|
|
28
|
+
SharedProps;
|
|
23
29
|
export {};
|
|
24
|
-
//# sourceMappingURL=LottieStatusAnimationProps.d.ts.map
|
|
30
|
+
//# sourceMappingURL=LottieStatusAnimationProps.d.ts.map
|
package/dts/types/Motion.d.ts
CHANGED
|
@@ -1,34 +1,71 @@
|
|
|
1
1
|
import type { curves, durations } from '../motion/tokens';
|
|
2
2
|
export type MotionCurve = keyof typeof curves;
|
|
3
3
|
export type MotionDuration = keyof typeof durations;
|
|
4
|
-
export type MotionEffect =
|
|
4
|
+
export type MotionEffect =
|
|
5
|
+
| 'fadeIn'
|
|
6
|
+
| 'fadeIn10'
|
|
7
|
+
| 'fadeIn20'
|
|
8
|
+
| 'fadeIn30'
|
|
9
|
+
| 'fadeOut'
|
|
10
|
+
| 'fadeOut10'
|
|
11
|
+
| 'fadeOut20'
|
|
12
|
+
| 'fadeOut30'
|
|
13
|
+
| 'slideUp'
|
|
14
|
+
| 'slideUp8'
|
|
15
|
+
| 'slideUp16'
|
|
16
|
+
| 'slideUp24'
|
|
17
|
+
| 'slideUp40'
|
|
18
|
+
| 'slideDown'
|
|
19
|
+
| 'slideDown8'
|
|
20
|
+
| 'slideDown16'
|
|
21
|
+
| 'slideDown24'
|
|
22
|
+
| 'slideDown40'
|
|
23
|
+
| 'slideRight'
|
|
24
|
+
| 'slideRight8'
|
|
25
|
+
| 'slideRight16'
|
|
26
|
+
| 'slideRight24'
|
|
27
|
+
| 'slideRight40'
|
|
28
|
+
| 'slideLeft'
|
|
29
|
+
| 'slideLeft8'
|
|
30
|
+
| 'slideLeft16'
|
|
31
|
+
| 'slideLeft24'
|
|
32
|
+
| 'slideLeft40'
|
|
33
|
+
| 'scaleUpXXS'
|
|
34
|
+
| 'scaleUpXS'
|
|
35
|
+
| 'scaleUpS'
|
|
36
|
+
| 'scaleDownXXS'
|
|
37
|
+
| 'scaleDownXS'
|
|
38
|
+
| 'scaleDownS';
|
|
5
39
|
export type MotionProperty = 'opacity' | 'rotate' | 'scale' | 'y' | 'x';
|
|
6
40
|
export type MotionValue = number | string;
|
|
7
|
-
export type MotionAnimation = Record<
|
|
41
|
+
export type MotionAnimation = Record<
|
|
42
|
+
MotionEffect,
|
|
43
|
+
{
|
|
8
44
|
property: MotionProperty;
|
|
9
45
|
fromValue?: MotionValue;
|
|
10
46
|
toValue: MotionValue;
|
|
11
47
|
easing: MotionCurve;
|
|
12
|
-
}
|
|
48
|
+
}
|
|
49
|
+
>;
|
|
13
50
|
export type MotionTransition = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
51
|
+
/**
|
|
52
|
+
* CDS motion easing token
|
|
53
|
+
*/
|
|
54
|
+
easing: MotionCurve;
|
|
55
|
+
/**
|
|
56
|
+
* CDS motion duration token
|
|
57
|
+
*/
|
|
58
|
+
duration?: MotionDuration;
|
|
59
|
+
/**
|
|
60
|
+
* One-off duration in ms
|
|
61
|
+
*/
|
|
62
|
+
oneOffDuration?: number;
|
|
26
63
|
};
|
|
27
64
|
export type MotionBaseSpec = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
65
|
+
property: string;
|
|
66
|
+
toValue: MotionValue;
|
|
67
|
+
fromValue?: MotionValue;
|
|
68
|
+
delay?: number;
|
|
69
|
+
useNativeDriver?: boolean;
|
|
33
70
|
} & MotionTransition;
|
|
34
|
-
//# sourceMappingURL=Motion.d.ts.map
|
|
71
|
+
//# sourceMappingURL=Motion.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export type OverlayLifecycleProps = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Callback fired before the component shows.
|
|
4
|
+
*/
|
|
5
|
+
onWillShow?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* Callback fired after the component is visible.
|
|
8
|
+
*/
|
|
9
|
+
onDidShow?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Callback fired before the component hides.
|
|
12
|
+
*/
|
|
13
|
+
onWillHide?: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Callback fired after the component is hidden.
|
|
16
|
+
*/
|
|
17
|
+
onDidHide?: () => void;
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=OverlayLifecycleProps.d.ts.map
|
|
19
|
+
//# sourceMappingURL=OverlayLifecycleProps.d.ts.map
|
package/dts/types/Palette.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type { ThemeVars } from '../core/theme';
|
|
|
2
2
|
export type PaletteValue = ThemeVars.SpectrumColor | [ThemeVars.SpectrumColor, number];
|
|
3
3
|
export type PaletteValueTuple = [ThemeVars.SpectrumColor, number];
|
|
4
4
|
export type UsePaletteFn = () => Record<ThemeVars.Color, string>;
|
|
5
|
-
//# sourceMappingURL=Palette.d.ts.map
|
|
5
|
+
//# sourceMappingURL=Palette.d.ts.map
|
package/dts/types/Placement.d.ts
CHANGED
package/dts/types/Position.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type Position = 'static' | 'relative' | 'fixed' | 'absolute' | 'sticky';
|
|
2
|
-
//# sourceMappingURL=Position.d.ts.map
|
|
2
|
+
//# sourceMappingURL=Position.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
export type ProgressContainerWithButtonsProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
hideIncrease?: boolean;
|
|
4
|
+
children: (props: {
|
|
5
|
+
calculateProgress: (perc: number) => number;
|
|
6
|
+
}) => React.ReactNode | React.ReactNode[];
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=ProgressContainerWithButtonsProps.d.ts.map
|
|
8
|
+
//# sourceMappingURL=ProgressContainerWithButtonsProps.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type PulseVariant = 'moderate' | 'subtle' | 'heavy';
|
|
2
|
-
//# sourceMappingURL=PulseBaseProps.d.ts.map
|
|
2
|
+
//# sourceMappingURL=PulseBaseProps.d.ts.map
|
package/dts/types/React.d.ts
CHANGED
package/dts/types/Rect.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type Rect = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const defaultRect: Rect;
|
|
8
|
-
//# sourceMappingURL=Rect.d.ts.map
|
|
8
|
+
//# sourceMappingURL=Rect.d.ts.map
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
export type DeviceBreakpoint =
|
|
1
|
+
export type DeviceBreakpoint =
|
|
2
|
+
| 'extraWide'
|
|
3
|
+
| 'desktopLarge'
|
|
4
|
+
| 'desktop'
|
|
5
|
+
| 'tabletLandscape'
|
|
6
|
+
| 'tablet'
|
|
7
|
+
| 'phoneLandscape'
|
|
8
|
+
| 'phone';
|
|
2
9
|
export type ResponsivePropsDevices = 'desktop' | 'tablet' | 'phone';
|
|
3
|
-
//# sourceMappingURL=Responsive.d.ts.map
|
|
10
|
+
//# sourceMappingURL=Responsive.d.ts.map
|
|
@@ -5,20 +5,27 @@ import type { ResponsivePropsDevices } from './Responsive';
|
|
|
5
5
|
import type { MarginProps, PaddingProps } from './SpacingProps';
|
|
6
6
|
import type { Visibility } from './Visibility';
|
|
7
7
|
type VisibilityProps = {
|
|
8
|
-
|
|
8
|
+
visibility?: Visibility;
|
|
9
9
|
};
|
|
10
10
|
type DisplayProps = {
|
|
11
|
-
|
|
11
|
+
display?: Display;
|
|
12
12
|
};
|
|
13
13
|
type StackProps = {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Gap to insert between siblings. */
|
|
15
|
+
gap?: ThemeVars.Space;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* @internal
|
|
19
19
|
* Do not modify this without leads approval
|
|
20
20
|
*/
|
|
21
|
-
export type ResponsiveStyles = DisplayProps &
|
|
21
|
+
export type ResponsiveStyles = DisplayProps &
|
|
22
|
+
FlexStyles &
|
|
23
|
+
PaddingProps &
|
|
24
|
+
MarginProps &
|
|
25
|
+
StackProps &
|
|
26
|
+
VisibilityProps &
|
|
27
|
+
FlexGrow &
|
|
28
|
+
FlexShrink;
|
|
22
29
|
export type ResponsiveProps = Partial<Record<ResponsivePropsDevices, ResponsiveStyles>>;
|
|
23
30
|
export {};
|
|
24
|
-
//# sourceMappingURL=ResponsiveProps.d.ts.map
|
|
31
|
+
//# sourceMappingURL=ResponsiveProps.d.ts.map
|
|
@@ -3,16 +3,18 @@ import type { SharedAccessibilityProps } from './SharedAccessibilityProps';
|
|
|
3
3
|
import type { SharedProps } from './SharedProps';
|
|
4
4
|
import type { PaddingProps } from './SpacingProps';
|
|
5
5
|
export type SectionHeaderProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} & SharedProps &
|
|
18
|
-
|
|
6
|
+
/** Text or ReactNode to be displayed in Title */
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
start?: React.ReactNode;
|
|
9
|
+
icon?: Exclude<React.ReactNode, 'string'> | IconName;
|
|
10
|
+
/** Whether the icon is active */
|
|
11
|
+
iconActive?: boolean;
|
|
12
|
+
/** ReactNode or UiIconName to present balances wherever it is necessary */
|
|
13
|
+
balance?: React.ReactNode;
|
|
14
|
+
/** ReactNode to display up to 2 lines of copy that frames the section's purpose and relevance */
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
end?: React.ReactNode;
|
|
17
|
+
} & SharedProps &
|
|
18
|
+
Pick<SharedAccessibilityProps, 'accessibilityLabel'> &
|
|
19
|
+
PaddingProps;
|
|
20
|
+
//# sourceMappingURL=SectionHeaderProps.d.ts.map
|
package/dts/types/Shape.d.ts
CHANGED