@primer/react-brand 0.7.2 → 0.8.0-rc.302d683

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.
Files changed (115) hide show
  1. package/lib/AnchorNav/AnchorNav.d.ts +65 -0
  2. package/lib/AnchorNav/AnchorNav.visual.spec.d.ts +1 -0
  3. package/lib/AnchorNav/index.d.ts +1 -0
  4. package/lib/AnchorNav/useExpandedMenu.d.ts +2 -0
  5. package/lib/CTABanner/CTABanner.d.ts +51 -0
  6. package/lib/CTABanner/CTABanner.visual.spec.d.ts +1 -0
  7. package/lib/CTABanner/index.d.ts +1 -0
  8. package/lib/Heading/Heading.d.ts +1 -2
  9. package/lib/component-helpers.d.ts +7 -1
  10. package/lib/css/main.css +499 -20
  11. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  12. package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
  13. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  14. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  15. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css +15 -0
  19. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +15 -0
  24. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  37. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  38. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  39. package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
  40. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  41. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  42. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  43. package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
  44. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  45. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  46. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  47. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  48. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  49. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  50. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  51. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  52. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  53. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  54. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  55. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  56. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  57. package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
  58. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  59. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  60. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  61. package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
  62. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  63. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  64. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  65. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  66. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  67. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  68. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  69. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  70. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  71. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  72. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  73. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  74. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  75. package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
  76. package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
  77. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  78. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  79. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  80. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  81. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  82. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  83. package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
  84. package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
  85. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  86. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  87. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  88. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  89. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  90. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  91. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  92. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  93. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  94. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  95. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  96. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  97. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  98. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  99. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  100. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  101. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  102. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  103. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  104. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  105. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  106. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  107. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  108. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  109. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  110. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  111. package/lib/hooks/useWindowSize.d.ts +1 -0
  112. package/lib/index.d.ts +2 -0
  113. package/lib/index.js +1 -1
  114. package/lib/test-utils/mocks/match-media-mock.d.ts +0 -0
  115. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import type { BaseProps } from '../component-helpers';
3
+ /**
4
+ * Design tokens
5
+ */
6
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/anchor-nav/colors-with-modes.css';
7
+ export declare type AnchorNavProps = BaseProps<HTMLElement> & {
8
+ /**
9
+ * Accepts all of `AnchorNav.Item` and `AnchorNav.Action` child components.
10
+ */
11
+ children: React.ReactNode[];
12
+ /**
13
+ * Enable the idle state background color, which is transparent by default.
14
+ */
15
+ enableDefaultBgColor?: boolean;
16
+ } & React.ComponentPropsWithoutRef<'nav'>;
17
+ declare function _AnchorNav({ children, enableDefaultBgColor, ...props }: AnchorNavProps): JSX.Element;
18
+ declare type AnchorNavLinkIntersectionOptions = {
19
+ /**
20
+ * The area of the element that should trigger the next linked section to be highlighted.
21
+ */
22
+ rootMargin: 'start' | 'middle';
23
+ };
24
+ declare type AnchorNavLinkProps = BaseProps<HTMLAnchorElement> & {
25
+ /**
26
+ * Optional text alignment for the link. Defaults to 'start' if there are less than 4 links, otherwise 'center'.
27
+ */
28
+ alignment?: 'start' | 'center';
29
+ /**
30
+ * Required path or location for the anchor to link to.
31
+ */
32
+ href: string;
33
+ /**
34
+ * Optional boolean to indicate if the link is the current active link.
35
+ * Typically doesn't need to be sset unless custom animation is being used.
36
+ */
37
+ isActive?: boolean;
38
+ toggleMenuCallback?: () => void;
39
+ intersectionOptions?: AnchorNavLinkIntersectionOptions;
40
+ prefersReducedMotion?: boolean;
41
+ updateCurrentActiveNav?: (id: string | null) => void;
42
+ } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
43
+ declare function _AnchorNavLink({ alignment, children, href, isActive, toggleMenuCallback, prefersReducedMotion, intersectionOptions, updateCurrentActiveNav, ...rest }: AnchorNavLinkProps): JSX.Element;
44
+ declare type AnchorNavActionProps = {
45
+ /**
46
+ * Required path or location for the action button to link to.
47
+ */
48
+ href: string;
49
+ } & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
50
+ declare function _AnchorNavAction({ children, href, ...rest }: AnchorNavActionProps): JSX.Element;
51
+ /**
52
+ * AnchorNav allows users to navigate to different sections of a page.
53
+ * @see https://primer.style/brand/components/AnchorNav
54
+ */
55
+ export declare const AnchorNav: typeof _AnchorNav & {
56
+ Link: typeof _AnchorNavLink;
57
+ Action: typeof _AnchorNavAction;
58
+ testIds: {
59
+ root: string;
60
+ readonly menuButton: string;
61
+ readonly menuLinks: string;
62
+ readonly action: string;
63
+ };
64
+ };
65
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './AnchorNav';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const useExpandedMenu: (open: boolean, containerRef: React.RefObject<HTMLElement>, anchorRef: React.RefObject<HTMLElement>) => void;
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import type { BaseProps } from '../component-helpers';
3
+ /**
4
+ * Design tokens
5
+ */
6
+ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css';
7
+ export declare type CTABannerProps = BaseProps<HTMLElement> & {
8
+ children: React.ReactNode | React.ReactNode[];
9
+ align?: 'start' | 'center';
10
+ hasBorder?: boolean;
11
+ hasShadow?: boolean;
12
+ hasBackground?: boolean;
13
+ };
14
+ export declare const Root: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLElement> & {
15
+ children: React.ReactNode | React.ReactNode[];
16
+ align?: "start" | "center" | undefined;
17
+ hasBorder?: boolean | undefined;
18
+ hasShadow?: boolean | undefined;
19
+ hasBackground?: boolean | undefined;
20
+ }, "children" | "className" | "align" | "id" | "hasShadow" | "hasBorder" | "hasBackground"> & React.RefAttributes<HTMLElement>>;
21
+ export declare const _Heading: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLHeadingElement> & {
22
+ children: React.ReactNode | React.ReactNode[];
23
+ } & {
24
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
25
+ size?: "1" | "2" | "3" | "4" | "5" | "6" | undefined;
26
+ } & React.HTMLAttributes<HTMLHeadingElement>, "children" | "className" | "id" | "slot" | "style" | "title" | "as" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLHeadingElement>>;
27
+ export declare const Description: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLParagraphElement> & {
28
+ children: React.ReactNode | React.ReactNode[];
29
+ }, "children" | "className" | "id"> & React.RefAttributes<HTMLParagraphElement>>;
30
+ export declare const CTABanner: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLElement> & {
31
+ children: React.ReactNode | React.ReactNode[];
32
+ align?: "start" | "center" | undefined;
33
+ hasBorder?: boolean | undefined;
34
+ hasShadow?: boolean | undefined;
35
+ hasBackground?: boolean | undefined;
36
+ }, "children" | "className" | "align" | "id" | "hasShadow" | "hasBorder" | "hasBackground"> & React.RefAttributes<HTMLElement>> & {
37
+ Heading: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLHeadingElement> & {
38
+ children: React.ReactNode | React.ReactNode[];
39
+ } & {
40
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
41
+ size?: "1" | "2" | "3" | "4" | "5" | "6" | undefined;
42
+ } & React.HTMLAttributes<HTMLHeadingElement>, "children" | "className" | "id" | "slot" | "style" | "title" | "as" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLHeadingElement>>;
43
+ Description: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLParagraphElement> & {
44
+ children: React.ReactNode | React.ReactNode[];
45
+ }, "children" | "className" | "id"> & React.RefAttributes<HTMLParagraphElement>>;
46
+ ButtonGroup: React.ForwardRefExoticComponent<Pick<Pick<BaseProps<HTMLDivElement> & {
47
+ children: React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>> | React.ReactElement<import("..").ButtonProps<React.ElementType<"a" | "button">>, string | React.JSXElementConstructor<any>>[];
48
+ buttonSize?: "medium" | "large" | undefined;
49
+ buttonsAs?: React.ElementType<any> | undefined;
50
+ }, "children" | "className" | "id" | "buttonSize" | "buttonsAs"> & React.RefAttributes<HTMLDivElement>, "children" | "className" | "id" | "key" | "buttonSize" | "buttonsAs"> & React.RefAttributes<HTMLDivElement>>;
51
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './CTABanner';
@@ -11,7 +11,7 @@ export declare const classMap: {
11
11
  h5: "5";
12
12
  h6: "6";
13
13
  };
14
- declare type HeadingTags = BaseProps<HTMLHeadingElement> & {
14
+ export declare type HeadingTags = BaseProps<HTMLHeadingElement> & {
15
15
  as?: typeof HeadingTags[number];
16
16
  size?: typeof HeadingSizes[number];
17
17
  } & React.HTMLAttributes<HTMLHeadingElement>;
@@ -19,4 +19,3 @@ export declare type HeadingProps = {
19
19
  className?: string;
20
20
  } & HeadingTags;
21
21
  export declare const Heading: React.ForwardRefExoticComponent<Pick<HeadingProps, "children" | "className" | "id" | "slot" | "style" | "title" | "as" | "size" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLHeadingElement>>;
22
- export {};
@@ -1,4 +1,4 @@
1
- import React, { Ref } from 'react';
1
+ import React, { Ref, PropsWithChildren } from 'react';
2
2
  /**
3
3
  * Layout
4
4
  */
@@ -6,6 +6,11 @@ export declare const Container: ({ children, style }: {
6
6
  children: React.ReactElement[] | React.ReactElement;
7
7
  style?: React.CSSProperties | undefined;
8
8
  }) => JSX.Element;
9
+ declare type RedlineBackgroundProps = {
10
+ height?: number;
11
+ hasBorder?: boolean;
12
+ };
13
+ export declare function RedlineBackground({ height, hasBorder, ...rest }: PropsWithChildren<RedlineBackgroundProps>): JSX.Element;
9
14
  /**
10
15
  * Base Types
11
16
  */
@@ -23,3 +28,4 @@ export declare type BaseProps<T> = {
23
28
  id?: string;
24
29
  ref?: Ref<T>;
25
30
  };
31
+ export {};