@primer/react-brand 0.7.2 → 0.8.0-rc.6962b2d
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/lib/CTABanner/CTABanner.d.ts +51 -0
- package/lib/CTABanner/CTABanner.visual.spec.d.ts +1 -0
- package/lib/CTABanner/index.d.ts +1 -0
- package/lib/Heading/Heading.d.ts +1 -2
- package/lib/css/main.css +108 -20
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/cta-banner/colors-with-modes.css +15 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -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';
|
package/lib/Heading/Heading.d.ts
CHANGED
|
@@ -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 {};
|
package/lib/css/main.css
CHANGED
|
@@ -89,7 +89,7 @@ select {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Do not edit directly
|
|
92
|
-
* Generated on
|
|
92
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
95
|
:root,
|
|
@@ -629,7 +629,7 @@ select {
|
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Do not edit directly
|
|
632
|
-
* Generated on
|
|
632
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
633
633
|
*/
|
|
634
634
|
|
|
635
635
|
:root {
|
|
@@ -654,7 +654,7 @@ select {
|
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
656
|
* Do not edit directly
|
|
657
|
-
* Generated on
|
|
657
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
658
658
|
*/
|
|
659
659
|
|
|
660
660
|
:root {
|
|
@@ -669,7 +669,7 @@ select {
|
|
|
669
669
|
|
|
670
670
|
/**
|
|
671
671
|
* Do not edit directly
|
|
672
|
-
* Generated on
|
|
672
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
673
673
|
*/
|
|
674
674
|
|
|
675
675
|
:root {
|
|
@@ -848,7 +848,7 @@ select {
|
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
850
|
* Do not edit directly
|
|
851
|
-
* Generated on
|
|
851
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
852
852
|
*/
|
|
853
853
|
|
|
854
854
|
:root {
|
|
@@ -862,7 +862,7 @@ select {
|
|
|
862
862
|
|
|
863
863
|
/**
|
|
864
864
|
* Do not edit directly
|
|
865
|
-
* Generated on
|
|
865
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
866
866
|
*/
|
|
867
867
|
|
|
868
868
|
:root {
|
|
@@ -880,7 +880,7 @@ select {
|
|
|
880
880
|
|
|
881
881
|
/**
|
|
882
882
|
* Do not edit directly
|
|
883
|
-
* Generated on
|
|
883
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
884
884
|
*/
|
|
885
885
|
|
|
886
886
|
:root,
|
|
@@ -1076,7 +1076,7 @@ select {
|
|
|
1076
1076
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Do not edit directly
|
|
1079
|
-
* Generated on
|
|
1079
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
1080
1080
|
*/
|
|
1081
1081
|
|
|
1082
1082
|
:root,
|
|
@@ -1266,7 +1266,7 @@ select {
|
|
|
1266
1266
|
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Do not edit directly
|
|
1269
|
-
* Generated on
|
|
1269
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
1270
1270
|
*/
|
|
1271
1271
|
|
|
1272
1272
|
:root {
|
|
@@ -1287,7 +1287,7 @@ select {
|
|
|
1287
1287
|
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Do not edit directly
|
|
1290
|
-
* Generated on
|
|
1290
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
1291
1291
|
*/
|
|
1292
1292
|
|
|
1293
1293
|
:root {
|
|
@@ -1628,7 +1628,7 @@ select {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
@media screen and (max-width: 767px) {
|
|
1631
|
-
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc:first-
|
|
1631
|
+
.Primer_Brand__SubdomainNavBar-module__SubdomainNavBar-link___XmtPc:first-of-type {
|
|
1632
1632
|
padding-top: var(--base-size-24);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
@@ -2073,7 +2073,7 @@ select {
|
|
|
2073
2073
|
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Do not edit directly
|
|
2076
|
-
* Generated on
|
|
2076
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
2077
2077
|
*/
|
|
2078
2078
|
|
|
2079
2079
|
:root,
|
|
@@ -2101,7 +2101,7 @@ select {
|
|
|
2101
2101
|
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Do not edit directly
|
|
2104
|
-
* Generated on
|
|
2104
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
2105
2105
|
*/
|
|
2106
2106
|
|
|
2107
2107
|
:root,
|
|
@@ -2206,7 +2206,7 @@ select {
|
|
|
2206
2206
|
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Do not edit directly
|
|
2209
|
-
* Generated on
|
|
2209
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
2210
2210
|
*/
|
|
2211
2211
|
|
|
2212
2212
|
:root,
|
|
@@ -2348,7 +2348,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2348
2348
|
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Do not edit directly
|
|
2351
|
-
* Generated on
|
|
2351
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
2352
2352
|
*/
|
|
2353
2353
|
|
|
2354
2354
|
:root {
|
|
@@ -2358,7 +2358,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2358
2358
|
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Do not edit directly
|
|
2361
|
-
* Generated on
|
|
2361
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
2362
2362
|
*/
|
|
2363
2363
|
|
|
2364
2364
|
:root,
|
|
@@ -2428,7 +2428,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2428
2428
|
|
|
2429
2429
|
/**
|
|
2430
2430
|
* Do not edit directly
|
|
2431
|
-
* Generated on
|
|
2431
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
2432
2432
|
*/
|
|
2433
2433
|
|
|
2434
2434
|
:root {
|
|
@@ -2447,7 +2447,7 @@ details[open] > .Primer_Brand__Accordion-module__Accordion__content___wMZGe {
|
|
|
2447
2447
|
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Do not edit directly
|
|
2450
|
-
* Generated on
|
|
2450
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
2451
2451
|
*/
|
|
2452
2452
|
|
|
2453
2453
|
:root,
|
|
@@ -3390,7 +3390,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
3390
3390
|
|
|
3391
3391
|
/**
|
|
3392
3392
|
* Do not edit directly
|
|
3393
|
-
* Generated on
|
|
3393
|
+
* Generated on Wed, 07 Dec 2022 20:10:52 GMT
|
|
3394
3394
|
*/
|
|
3395
3395
|
|
|
3396
3396
|
:root {
|
|
@@ -3707,7 +3707,7 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
3707
3707
|
|
|
3708
3708
|
/**
|
|
3709
3709
|
* Do not edit directly
|
|
3710
|
-
* Generated on
|
|
3710
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
3711
3711
|
*/
|
|
3712
3712
|
|
|
3713
3713
|
:root,
|
|
@@ -4009,3 +4009,91 @@ Fixes safari bug where outline doesn't respect border-radius
|
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
|
|
4012
|
+
/**
|
|
4013
|
+
* Do not edit directly
|
|
4014
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
4015
|
+
*/
|
|
4016
|
+
|
|
4017
|
+
:root,
|
|
4018
|
+
[data-color-mode="light"] {
|
|
4019
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-5-hsl);
|
|
4020
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-5-hsl);
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
[data-color-mode="dark"] {
|
|
4024
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-2-hsl);
|
|
4025
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-3-hsl);
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
.Primer_Brand__CTABanner-module__CTABanner___m0t8s {
|
|
4029
|
+
position: relative;
|
|
4030
|
+
margin: 0 auto;
|
|
4031
|
+
display: flex;
|
|
4032
|
+
max-width: var(--brand-breakpoint-xlarge);
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4035
|
+
.Primer_Brand__CTABanner-module__CTABanner--shadow___BA030::before {
|
|
4036
|
+
content: '';
|
|
4037
|
+
position: absolute;
|
|
4038
|
+
top: var(--base-size-16);
|
|
4039
|
+
right: var(--base-size-16);
|
|
4040
|
+
bottom: var(--base-size-16);
|
|
4041
|
+
left: var(--base-size-16);
|
|
4042
|
+
filter: blur(var(--base-size-96));
|
|
4043
|
+
transform: translateZ(0);
|
|
4044
|
+
background: linear-gradient(
|
|
4045
|
+
to right,
|
|
4046
|
+
hsl(var(--brand-CTABanner-shadow-color-start)),
|
|
4047
|
+
hsl(var(--brand-CTABanner-shadow-color-end))
|
|
4048
|
+
);
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4052
|
+
border-radius: var(--brand-borderRadius-medium);
|
|
4053
|
+
padding: var(--base-size-40) var(--base-size-32);
|
|
4054
|
+
z-index: 1;
|
|
4055
|
+
width: 100%;
|
|
4056
|
+
box-sizing: border-box;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
.Primer_Brand__CTABanner-module__CTABanner-content___sZo6_ {
|
|
4060
|
+
display: flex;
|
|
4061
|
+
flex-direction: column;
|
|
4062
|
+
gap: var(--base-size-16);
|
|
4063
|
+
align-items: flex-start;
|
|
4064
|
+
max-width: 800px;
|
|
4065
|
+
margin: 0 auto;
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
.Primer_Brand__CTABanner-module__CTABanner-container--background___v1yTH {
|
|
4069
|
+
background: var(--brand-color-canvas-default);
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
.Primer_Brand__CTABanner-module__CTABanner-container--border___FbAer {
|
|
4073
|
+
border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
.Primer_Brand__CTABanner-module__CTABanner-content--center___S0ChQ {
|
|
4077
|
+
align-items: center;
|
|
4078
|
+
text-align: center;
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4081
|
+
.Primer_Brand__CTABanner-module__CTABanner-description___I7md6 {
|
|
4082
|
+
color: var(--brand-color-text-muted);
|
|
4083
|
+
margin-bottom: var(--base-size-16);
|
|
4084
|
+
}
|
|
4085
|
+
|
|
4086
|
+
/* Medium breakpoint and up */
|
|
4087
|
+
@media screen and (min-width: 48rem) {
|
|
4088
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4089
|
+
padding: var(--base-size-80) var(--base-size-64);
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
/* Large breakpoint and up */
|
|
4094
|
+
@media screen and (min-width: 63.25rem) {
|
|
4095
|
+
.Primer_Brand__CTABanner-module__CTABanner-container___iRzd1 {
|
|
4096
|
+
padding: var(--base-size-128) var(--base-size-64);
|
|
4097
|
+
}
|
|
4098
|
+
}
|
|
4099
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Wed, 07 Dec 2022 20:10:53 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-color-mode="light"] {
|
|
8
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-5-hsl);
|
|
9
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-5-hsl);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-color-mode="dark"] {
|
|
13
|
+
--brand-CTABanner-shadow-color-start: var(--base-color-scale-green-2-hsl);
|
|
14
|
+
--brand-CTABanner-shadow-color-end: var(--base-color-scale-blue-3-hsl);
|
|
15
|
+
}
|