@primer/react-brand 0.20.1-rc.e3fd625 → 0.20.1
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/Accordion/Accordion.d.ts +4 -4
- package/lib/ActionMenu/ActionMenu.d.ts +6 -6
- package/lib/Avatar/Avatar.d.ts +1 -1
- package/lib/Button/Button.d.ts +4 -4
- package/lib/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/lib/CTABanner/CTABanner.d.ts +8 -8
- package/lib/CTAForm/CTAForm.d.ts +2 -2
- package/lib/Card/Card.d.ts +9 -7
- package/lib/ComparisonTable/ComparisonTable.d.ts +5 -4
- package/lib/FAQ/FAQ.d.ts +6 -5
- package/lib/Heading/Heading.d.ts +1 -1
- package/lib/Hero/Hero.d.ts +8 -8
- package/lib/InlineLink/InlineLink.d.ts +2 -1
- package/lib/Label/Label.d.ts +1 -1
- package/lib/Pillar/Pillar.d.ts +5 -5
- package/lib/Prose/Prose.d.ts +12 -0
- package/lib/Prose/index.d.ts +1 -0
- package/lib/River/River.d.ts +5 -5
- package/lib/SectionIntro/SectionIntro.d.ts +5 -5
- package/lib/Stack/Stack.d.ts +2 -2
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +1 -1
- package/lib/Testimonial/Testimonial.d.ts +7 -7
- package/lib/css/main.css +383 -59
- 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/animation/base.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/action-menu/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/anchor-nav/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/card/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/card/colors.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/comparison-table/comparison-table.css +26 -0
- 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 +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -2
- 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/faq/faq.css +26 -0
- package/lib/design-tokens/css/tokens/functional/components/footer/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/footer/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/grid/grid.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/image/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/base.css +10 -0
- 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/label/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/label/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/pillar/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/prose/base.css +9 -0
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/river.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/animation/base.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/card/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/comparison-table/comparison-table.js +63 -0
- 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 -22
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/faq.js +63 -0
- package/lib/design-tokens/js/module/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/grid/grid.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/image/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/base.js +65 -0
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/prose/base.js +44 -0
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/river.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/animation/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/comparison-table/comparison-table.js +6 -0
- 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 -2
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/faq.js +6 -0
- package/lib/design-tokens/js/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/grid/grid.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/base.js +8 -0
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/prose/base.js +7 -0
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/river.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/scss/tokens/base/colors/color-scales.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/base/typography/typography.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/animation/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/colors/global.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/card/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/comparison-table/comparison-table.scss +5 -0
- package/lib/design-tokens/scss/tokens/functional/components/control/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/base.scss +1 -2
- package/lib/design-tokens/scss/tokens/functional/components/faq/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/faq/faq.scss +5 -0
- package/lib/design-tokens/scss/tokens/functional/components/footer/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/grid/grid.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/hero/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/image/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/base.scss +7 -0
- package/lib/design-tokens/scss/tokens/functional/components/inline-link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/label/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/link/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/pillar/colors.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/prose/base.scss +6 -0
- package/lib/design-tokens/scss/tokens/functional/components/river/base.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/components/river/river.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/border.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/breakpoints.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-coarse.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size-fine.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/size.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/size/viewport.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography-responsive.scss +1 -1
- package/lib/design-tokens/scss/tokens/functional/typography/typography.scss +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/animation/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/animation/base.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/card/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/card/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.d.ts +17 -0
- package/lib/design-tokens/ts/tokens/functional/components/comparison-table/comparison-table.js +16 -0
- 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 -6
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -6
- 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/faq/faq.d.ts +17 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/faq.js +16 -0
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/footer/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/grid/grid.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/image/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/image/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.d.ts +53 -0
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/base.js +20 -0
- 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/label/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/label/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/link/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/pillar/colors.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.d.ts +18 -0
- package/lib/design-tokens/ts/tokens/functional/components/prose/base.js +17 -0
- 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/components/river/river.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/river.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/forms/Checkbox/Checkbox.d.ts +2 -2
- package/lib/forms/Radio/Radio.d.ts +2 -2
- package/lib/forms/Select/Select.d.ts +2 -2
- package/lib/forms/TextInput/TextInput.d.ts +2 -2
- package/lib/forms/Textarea/Textarea.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/lib/forms/Checkbox/forms.visual.spec.d.ts +0 -1
|
@@ -8,13 +8,13 @@ export type AccordionRootProps = BaseProps<HTMLDetailsElement> & {
|
|
|
8
8
|
open?: boolean;
|
|
9
9
|
children: React.ReactElement<AccordionHeadingProps | AccordionContentProps>[];
|
|
10
10
|
} & React.HTMLAttributes<HTMLDetailsElement>;
|
|
11
|
-
export declare const AccordionRoot: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const AccordionRoot: React.ForwardRefExoticComponent<Omit<AccordionRootProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
12
12
|
type AccordionHeadingProps = BaseProps<HTMLHeadingElement> & {
|
|
13
13
|
className?: string;
|
|
14
14
|
children: string;
|
|
15
15
|
as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
16
16
|
};
|
|
17
|
-
export declare const AccordionHeading: React.ForwardRefExoticComponent<
|
|
17
|
+
export declare const AccordionHeading: React.ForwardRefExoticComponent<Omit<AccordionHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
18
|
type AccordionContentProps = BaseProps<HTMLElement> & {
|
|
19
19
|
className?: string;
|
|
20
20
|
children: React.ReactElement | React.ReactElement[];
|
|
@@ -23,8 +23,8 @@ export declare function AccordionContent({ children, className, ...rest }: Accor
|
|
|
23
23
|
/**
|
|
24
24
|
* Branded Accordion component
|
|
25
25
|
*/
|
|
26
|
-
export declare const Accordion: React.ForwardRefExoticComponent<
|
|
26
|
+
export declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionRootProps, "ref"> & React.RefAttributes<HTMLDetailsElement>> & {
|
|
27
27
|
Content: typeof AccordionContent;
|
|
28
|
-
Heading: React.ForwardRefExoticComponent<
|
|
28
|
+
Heading: React.ForwardRefExoticComponent<Omit<AccordionHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
29
29
|
};
|
|
30
30
|
export {};
|
|
@@ -101,7 +101,7 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
101
101
|
} & BaseProps<HTMLDivElement>> & {
|
|
102
102
|
readonly type: ({ id, children, "data-testid": testId, disabled, open, selectionVariant, menuAlignment, onSelect, }: ActionMenuProps) => JSX.Element;
|
|
103
103
|
} & {
|
|
104
|
-
Button: React.ForwardRefExoticComponent<(
|
|
104
|
+
Button: React.ForwardRefExoticComponent<(Omit<((instance: HTMLButtonElement | null) => void) & {
|
|
105
105
|
children?: React.ReactNode;
|
|
106
106
|
} & {
|
|
107
107
|
id?: string | undefined;
|
|
@@ -111,7 +111,7 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
111
111
|
disabled?: boolean | undefined;
|
|
112
112
|
onClick?: ((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
113
113
|
'data-testid'?: string | undefined;
|
|
114
|
-
}, "
|
|
114
|
+
}, "ref"> | Omit<React.RefObject<HTMLButtonElement> & {
|
|
115
115
|
children?: React.ReactNode;
|
|
116
116
|
} & {
|
|
117
117
|
id?: string | undefined;
|
|
@@ -121,9 +121,9 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
121
121
|
disabled?: boolean | undefined;
|
|
122
122
|
onClick?: ((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
123
123
|
'data-testid'?: string | undefined;
|
|
124
|
-
}, "
|
|
124
|
+
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
125
125
|
Item: ({ children, className, disabled, handler, selected, type, value, ...props }: ActionMenuItemProps) => JSX.Element;
|
|
126
|
-
Overlay: React.ForwardRefExoticComponent<(
|
|
126
|
+
Overlay: React.ForwardRefExoticComponent<(Omit<((instance: HTMLUListElement | null) => void) & {
|
|
127
127
|
children?: React.ReactNode;
|
|
128
128
|
} & {
|
|
129
129
|
'aria-label': string;
|
|
@@ -133,7 +133,7 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
133
133
|
'data-testid'?: string | undefined;
|
|
134
134
|
menuOpen?: boolean | undefined;
|
|
135
135
|
style?: React.CSSProperties | undefined;
|
|
136
|
-
}, "
|
|
136
|
+
}, "ref"> | Omit<React.RefObject<HTMLUListElement> & {
|
|
137
137
|
children?: React.ReactNode;
|
|
138
138
|
} & {
|
|
139
139
|
'aria-label': string;
|
|
@@ -143,7 +143,7 @@ export declare const ActionMenu: React.NamedExoticComponent<{
|
|
|
143
143
|
'data-testid'?: string | undefined;
|
|
144
144
|
menuOpen?: boolean | undefined;
|
|
145
145
|
style?: React.CSSProperties | undefined;
|
|
146
|
-
}, "
|
|
146
|
+
}, "ref">) & React.RefAttributes<HTMLUListElement>>;
|
|
147
147
|
testIds: {
|
|
148
148
|
root: string;
|
|
149
149
|
readonly button: string;
|
package/lib/Avatar/Avatar.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type AvatarProps = BaseProps<HTMLImageElement> & {
|
|
|
15
15
|
alt: string;
|
|
16
16
|
['data-testid']?: string;
|
|
17
17
|
} & React.ImgHTMLAttributes<HTMLImageElement>;
|
|
18
|
-
export declare const Avatar: React.ForwardRefExoticComponent<
|
|
18
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLImageElement>> & {
|
|
19
19
|
testIds: {
|
|
20
20
|
root: string;
|
|
21
21
|
readonly image: string;
|
package/lib/Button/Button.d.ts
CHANGED
|
@@ -31,12 +31,12 @@ export type ButtonBaseProps = {
|
|
|
31
31
|
export type ButtonProps<C extends React.ElementType> = BaseProps<C> & {
|
|
32
32
|
as?: C;
|
|
33
33
|
} & ButtonBaseProps & React.ComponentPropsWithoutRef<C>;
|
|
34
|
-
export declare const _Button: React.ForwardRefExoticComponent<
|
|
34
|
+
export declare const _Button: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
35
35
|
as?: React.ElementType<any> | undefined;
|
|
36
|
-
} & ButtonBaseProps &
|
|
37
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
36
|
+
} & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
38
38
|
as?: React.ElementType<any> | undefined;
|
|
39
|
-
} & ButtonBaseProps &
|
|
39
|
+
} & ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>> & {
|
|
40
40
|
testIds: {
|
|
41
41
|
root: string;
|
|
42
42
|
readonly leadingVisual: string;
|
|
@@ -7,9 +7,9 @@ export type ButtonGroupProps = BaseProps<HTMLDivElement> & {
|
|
|
7
7
|
buttonSize?: ButtonProps<'button' | 'a'>['size'];
|
|
8
8
|
buttonsAs?: React.ElementType;
|
|
9
9
|
};
|
|
10
|
-
export declare const ButtonGroup: React.ForwardRefExoticComponent<
|
|
10
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLDivElement> & {
|
|
11
11
|
children: PrimerBrandButtonType[] | PrimerBrandButtonType;
|
|
12
12
|
buttonSize?: ButtonProps<'button' | 'a'>['size'];
|
|
13
13
|
buttonsAs?: React.ElementType<any> | undefined;
|
|
14
|
-
}, "
|
|
14
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
export {};
|
|
@@ -11,14 +11,14 @@ export type CTABannerProps = BaseProps<HTMLElement> & {
|
|
|
11
11
|
hasShadow?: boolean;
|
|
12
12
|
hasBackground?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const CTABanner: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const CTABanner: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLElement> & {
|
|
15
15
|
children: React.ReactNode | React.ReactNode[];
|
|
16
16
|
align?: "start" | "center" | undefined;
|
|
17
17
|
hasBorder?: boolean | undefined;
|
|
18
18
|
hasShadow?: boolean | undefined;
|
|
19
19
|
hasBackground?: boolean | undefined;
|
|
20
|
-
}, "
|
|
21
|
-
Heading: React.ForwardRefExoticComponent<
|
|
20
|
+
}, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
21
|
+
Heading: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
22
22
|
children: React.ReactNode | React.ReactNode[];
|
|
23
23
|
} & {
|
|
24
24
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
@@ -40,13 +40,13 @@ export declare const CTABanner: React.ForwardRefExoticComponent<Pick<BaseProps<H
|
|
|
40
40
|
regular?: "normal" | "condensed" | "none" | undefined;
|
|
41
41
|
wide?: "normal" | "condensed" | "none" | undefined;
|
|
42
42
|
} | undefined;
|
|
43
|
-
} & React.HTMLAttributes<HTMLHeadingElement>, "
|
|
44
|
-
Description: React.ForwardRefExoticComponent<
|
|
43
|
+
} & React.HTMLAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
44
|
+
Description: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLParagraphElement> & {
|
|
45
45
|
children: React.ReactNode | React.ReactNode[];
|
|
46
|
-
}, "
|
|
47
|
-
ButtonGroup: React.ForwardRefExoticComponent<
|
|
46
|
+
}, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
47
|
+
ButtonGroup: React.ForwardRefExoticComponent<Omit<Omit<BaseProps<HTMLDivElement> & {
|
|
48
48
|
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>>[];
|
|
49
49
|
buttonSize?: "medium" | "large" | undefined;
|
|
50
50
|
buttonsAs?: React.ElementType<any> | undefined;
|
|
51
|
-
}, "
|
|
51
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
52
52
|
};
|
package/lib/CTAForm/CTAForm.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const CTAForm: React.ForwardRefExoticComponent<React.FormHTMLAttributes<HTMLFormElement> & React.RefAttributes<HTMLFormElement>> & {
|
|
3
3
|
Input: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Confirm: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
Action: React.ForwardRefExoticComponent<
|
|
5
|
+
Action: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../component-helpers").BaseProps<React.ElementType<any>> & {
|
|
6
6
|
as?: React.ElementType<any> | undefined;
|
|
7
|
-
} & import("../").ButtonBaseProps &
|
|
7
|
+
} & import("../").ButtonBaseProps & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLButtonElement>, "variant" | "type">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
};
|
package/lib/Card/Card.d.ts
CHANGED
|
@@ -24,15 +24,16 @@ export type CardProps = {
|
|
|
24
24
|
* Changes the cta text of the card
|
|
25
25
|
* */
|
|
26
26
|
ctaText?: string;
|
|
27
|
-
} & Omit<BaseProps<
|
|
27
|
+
} & Omit<BaseProps<HTMLDivElement>, 'animate'> & Omit<React.ComponentPropsWithoutRef<'div'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> & Pick<React.ComponentPropsWithoutRef<'a'>, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'>;
|
|
28
28
|
type CardImageProps = ImageProps;
|
|
29
29
|
declare function CardImage({ className, ...rest }: CardImageProps): JSX.Element;
|
|
30
30
|
type CardIconProps = BaseProps<HTMLSpanElement> & {
|
|
31
31
|
icon: React.ReactNode | IconProps;
|
|
32
32
|
color?: (typeof CardIconColors)[number];
|
|
33
33
|
hasBackground?: boolean;
|
|
34
|
+
['aria-hidden']?: boolean;
|
|
34
35
|
};
|
|
35
|
-
declare function CardIcon({ icon: Icon, className, color, hasBackground, ...rest }: CardIconProps): JSX.Element;
|
|
36
|
+
declare function CardIcon({ 'aria-hidden': ariaHidden, icon: Icon, className, color, hasBackground, ...rest }: CardIconProps): JSX.Element;
|
|
36
37
|
type CardLabelProps = BaseProps<HTMLSpanElement> & {
|
|
37
38
|
children: React.ReactNode | React.ReactNode[];
|
|
38
39
|
color?: (typeof LabelColors)[number];
|
|
@@ -40,7 +41,8 @@ type CardLabelProps = BaseProps<HTMLSpanElement> & {
|
|
|
40
41
|
type CardHeadingProps = BaseProps<HTMLHeadingElement> & {
|
|
41
42
|
children: React.ReactNode | React.ReactNode[];
|
|
42
43
|
as?: Exclude<HeadingProps['as'], 'h1'>;
|
|
43
|
-
|
|
44
|
+
href?: string;
|
|
45
|
+
} & Omit<HeadingProps, 'onMouseEnter' | 'onMouseLeave' | 'onFocus' | 'onBlur'> & React.ComponentPropsWithoutRef<'a'>;
|
|
44
46
|
type CardDescriptionProps = BaseProps<HTMLParagraphElement> & {
|
|
45
47
|
children: React.ReactNode | React.ReactNode[];
|
|
46
48
|
};
|
|
@@ -48,11 +50,11 @@ type CardDescriptionProps = BaseProps<HTMLParagraphElement> & {
|
|
|
48
50
|
* Card component:
|
|
49
51
|
* {@link https://primer.style/brand/components/Card/ See usage examples}.
|
|
50
52
|
*/
|
|
51
|
-
export declare const Card: React.ForwardRefExoticComponent<
|
|
53
|
+
export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
52
54
|
Image: typeof CardImage;
|
|
53
|
-
Label: React.ForwardRefExoticComponent<
|
|
55
|
+
Label: React.ForwardRefExoticComponent<Omit<CardLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
54
56
|
Icon: typeof CardIcon;
|
|
55
|
-
Heading: React.ForwardRefExoticComponent<
|
|
56
|
-
Description: React.ForwardRefExoticComponent<
|
|
57
|
+
Heading: React.ForwardRefExoticComponent<Omit<CardHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
58
|
+
Description: React.ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
57
59
|
};
|
|
58
60
|
export {};
|
|
@@ -4,18 +4,19 @@ import type { BaseProps } from '../component-helpers';
|
|
|
4
4
|
* Design tokens
|
|
5
5
|
*/
|
|
6
6
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/comparison-table/colors-with-modes.css';
|
|
7
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/comparison-table/comparison-table.css';
|
|
7
8
|
export type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
|
|
8
9
|
as?: C;
|
|
9
10
|
heading?: string;
|
|
10
11
|
variant?: 'default' | 'minimal';
|
|
11
12
|
featuredColumn?: number;
|
|
12
13
|
} & React.ComponentPropsWithoutRef<C>;
|
|
13
|
-
export declare const _ComparisonTable: React.ForwardRefExoticComponent<
|
|
14
|
+
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
14
15
|
as?: React.ElementType<any> | undefined;
|
|
15
16
|
heading?: string | undefined;
|
|
16
17
|
variant?: "default" | "minimal" | undefined;
|
|
17
18
|
featuredColumn?: number | undefined;
|
|
18
|
-
} &
|
|
19
|
+
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
20
|
type RowProps = {
|
|
20
21
|
header?: boolean;
|
|
21
22
|
};
|
|
@@ -29,12 +30,12 @@ export type FootnoteProps = BaseProps<HTMLParagraphElement>;
|
|
|
29
30
|
* They are useful for comparing products, plans, or features in marketing pages.
|
|
30
31
|
* @see https://primer.style/brand/components/ComparisonTable
|
|
31
32
|
*/
|
|
32
|
-
export declare const ComparisonTable: React.ForwardRefExoticComponent<
|
|
33
|
+
export declare const ComparisonTable: React.ForwardRefExoticComponent<Omit<BaseProps<React.ElementType<any>> & {
|
|
33
34
|
as?: React.ElementType<any> | undefined;
|
|
34
35
|
heading?: string | undefined;
|
|
35
36
|
variant?: "default" | "minimal" | undefined;
|
|
36
37
|
featuredColumn?: number | undefined;
|
|
37
|
-
} &
|
|
38
|
+
} & Omit<any, "ref">, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
38
39
|
Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
|
|
39
40
|
Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => JSX.Element;
|
|
40
41
|
Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => JSX.Element;
|
package/lib/FAQ/FAQ.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { BaseProps } from '../component-helpers';
|
|
|
6
6
|
*/
|
|
7
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/base.css';
|
|
8
8
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css';
|
|
9
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/faq/faq.css';
|
|
9
10
|
type FAQRootProps = PropsWithChildren<BaseProps<HTMLElement>> & React.HTMLAttributes<HTMLElement>;
|
|
10
11
|
type FAQHeadingProps = BaseProps<HTMLHeadingElement> & {
|
|
11
12
|
size?: 'medium' | 'large';
|
|
@@ -23,15 +24,15 @@ declare function FAQSubheading({ children, className, as, ...rest }: FAQSubheadi
|
|
|
23
24
|
* FAQ component:
|
|
24
25
|
* {@link https://primer.style/brand/components/FAQ/ See usage examples}.
|
|
25
26
|
*/
|
|
26
|
-
export declare const FAQ: React.ForwardRefExoticComponent<
|
|
27
|
+
export declare const FAQ: React.ForwardRefExoticComponent<Omit<FAQRootProps, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
27
28
|
Subheading: typeof FAQSubheading;
|
|
28
|
-
Heading: React.ForwardRefExoticComponent<
|
|
29
|
-
Item: React.ForwardRefExoticComponent<
|
|
30
|
-
Question: React.ForwardRefExoticComponent<
|
|
29
|
+
Heading: React.ForwardRefExoticComponent<Omit<FAQHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
30
|
+
Item: React.ForwardRefExoticComponent<Omit<import("..").AccordionRootProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
31
|
+
Question: React.ForwardRefExoticComponent<Omit<BaseProps<HTMLHeadingElement> & {
|
|
31
32
|
className?: string | undefined;
|
|
32
33
|
children: string;
|
|
33
34
|
as?: "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
34
|
-
}, "
|
|
35
|
+
}, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
35
36
|
Answer: typeof AccordionContent;
|
|
36
37
|
};
|
|
37
38
|
export {};
|
package/lib/Heading/Heading.d.ts
CHANGED
|
@@ -39,5 +39,5 @@ export type HeadingProps = {
|
|
|
39
39
|
stretch?: HeadingStretchVariants | ResponsiveStretchMap;
|
|
40
40
|
letterSpacing?: HeadingLetterSpacingVariants | ResponsiveLetterSpacingMap;
|
|
41
41
|
} & React.HTMLAttributes<HTMLHeadingElement> & BaseProps<HTMLHeadingElement>;
|
|
42
|
-
export declare const Heading: React.ForwardRefExoticComponent<
|
|
42
|
+
export declare const Heading: React.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
43
43
|
export {};
|
package/lib/Hero/Hero.d.ts
CHANGED
|
@@ -13,38 +13,38 @@ type HeroDescriptionProps = {
|
|
|
13
13
|
weight?: TextWeightVariants | ResponsiveWeightMap;
|
|
14
14
|
} & BaseProps<HTMLParagraphElement>;
|
|
15
15
|
declare function HeroDescription({ size, weight, children }: PropsWithChildren<HeroDescriptionProps>): JSX.Element;
|
|
16
|
-
export declare const Hero: React.ForwardRefExoticComponent<
|
|
17
|
-
Heading: React.ForwardRefExoticComponent<
|
|
16
|
+
export declare const Hero: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<HeroProps>, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
17
|
+
Heading: React.ForwardRefExoticComponent<Omit<HeroHeadingProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
18
|
Description: typeof HeroDescription;
|
|
19
|
-
PrimaryAction: React.ForwardRefExoticComponent<(
|
|
19
|
+
PrimaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
20
20
|
as?: "a" | "button" | undefined;
|
|
21
21
|
href: string;
|
|
22
22
|
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
23
23
|
as?: "a" | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
children?: React.ReactNode;
|
|
26
|
-
}, "
|
|
26
|
+
}, "ref"> | Omit<{
|
|
27
27
|
as?: "a" | "button" | undefined;
|
|
28
28
|
href: string;
|
|
29
29
|
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
30
30
|
as?: "button" | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
children?: React.ReactNode;
|
|
33
|
-
}, "
|
|
34
|
-
SecondaryAction: React.ForwardRefExoticComponent<(
|
|
33
|
+
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
34
|
+
SecondaryAction: React.ForwardRefExoticComponent<(Omit<{
|
|
35
35
|
as?: "a" | "button" | undefined;
|
|
36
36
|
href: string;
|
|
37
37
|
} & ButtonBaseProps & BaseProps<HTMLAnchorElement> & {
|
|
38
38
|
as?: "a" | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
children?: React.ReactNode;
|
|
41
|
-
}, "
|
|
41
|
+
}, "ref"> | Omit<{
|
|
42
42
|
as?: "a" | "button" | undefined;
|
|
43
43
|
href: string;
|
|
44
44
|
} & ButtonBaseProps & BaseProps<HTMLButtonElement> & {
|
|
45
45
|
as?: "button" | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
children?: React.ReactNode;
|
|
48
|
-
}, "
|
|
48
|
+
}, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
49
49
|
};
|
|
50
50
|
export {};
|
|
@@ -5,6 +5,7 @@ import type { BaseProps } from '../component-helpers';
|
|
|
5
5
|
* Design tokens
|
|
6
6
|
*/
|
|
7
7
|
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css';
|
|
8
|
+
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/inline-link/base.css';
|
|
8
9
|
export type InlineLinkProps = BaseProps<HTMLAnchorElement> & {
|
|
9
10
|
/**
|
|
10
11
|
* Specify the links destination
|
|
@@ -18,4 +19,4 @@ export type InlineLinkProps = BaseProps<HTMLAnchorElement> & {
|
|
|
18
19
|
/**
|
|
19
20
|
* A HTML anchor link component that renders inline with adjacent text.
|
|
20
21
|
*/
|
|
21
|
-
export declare const InlineLink: React.ForwardRefExoticComponent<
|
|
22
|
+
export declare const InlineLink: React.ForwardRefExoticComponent<Omit<InlineLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
package/lib/Label/Label.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type LabelProps = BaseProps<HTMLSpanElement> & {
|
|
|
27
27
|
* Use a Label to indicate the status of an object or to categorize it with metadata that describes it.
|
|
28
28
|
* @see https://primer.style/brand/components/Label
|
|
29
29
|
*/
|
|
30
|
-
export declare const Label: React.ForwardRefExoticComponent<
|
|
30
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>> & {
|
|
31
31
|
testIds: {
|
|
32
32
|
root: string;
|
|
33
33
|
readonly leadingVisual: string;
|