@primer/react-brand 0.6.0-rc.e989738 → 0.7.0-rc.e007fdb
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/ComparisonTable/ComparisonTable.d.ts +42 -0
- package/lib/ComparisonTable/ComparisonTable.visual.spec.d.ts +1 -0
- package/lib/ComparisonTable/index.d.ts +1 -0
- package/lib/LayoutExamples/LayoutExamples.visual.spec.d.ts +1 -0
- package/lib/Stack/Stack.d.ts +4 -4
- package/lib/css/main.css +604 -19
- 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 +15 -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 +13 -1
- 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 +2 -2
- 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/forms/Radio/Radio.d.ts +40 -0
- package/lib/forms/Radio/Radio.visual.spec.d.ts +1 -0
- package/lib/forms/Radio/index.d.ts +1 -0
- package/lib/forms/Textarea/Textarea.d.ts +66 -0
- package/lib/forms/Textarea/Textarea.visual.spec.d.ts +1 -0
- package/lib/forms/Textarea/index.d.ts +1 -0
- package/lib/forms/index.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { PropsWithChildren } 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/comparison-table/colors-with-modes.css';
|
|
7
|
+
export declare type ComparisonTableProps<C extends React.ElementType> = BaseProps<C> & {
|
|
8
|
+
as?: C;
|
|
9
|
+
heading?: string;
|
|
10
|
+
variant?: 'default' | 'minimal';
|
|
11
|
+
featuredColumn?: number;
|
|
12
|
+
} & React.ComponentPropsWithoutRef<C>;
|
|
13
|
+
export declare const _ComparisonTable: React.ForwardRefExoticComponent<Pick<BaseProps<React.ElementType<any>> & {
|
|
14
|
+
as?: React.ElementType<any> | undefined;
|
|
15
|
+
heading?: string | undefined;
|
|
16
|
+
variant?: "default" | "minimal" | undefined;
|
|
17
|
+
featuredColumn?: number | undefined;
|
|
18
|
+
} & Pick<any, string | number | symbol>, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare type RowProps = {
|
|
20
|
+
header?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare type CellProps = BaseProps<HTMLTableCellElement> & {
|
|
23
|
+
as?: 'td' | 'th';
|
|
24
|
+
};
|
|
25
|
+
export declare type FootnoteProps = BaseProps<HTMLParagraphElement>;
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* Comparison tables are used to aid decision-making by displaying a list of features and their associated qualities side-by-side.
|
|
29
|
+
* They are useful for comparing products, plans, or features in marketing pages.
|
|
30
|
+
* @see https://primer.style/brand/components/ComparisonTable
|
|
31
|
+
*/
|
|
32
|
+
export declare const ComparisonTable: React.ForwardRefExoticComponent<Pick<BaseProps<React.ElementType<any>> & {
|
|
33
|
+
as?: React.ElementType<any> | undefined;
|
|
34
|
+
heading?: string | undefined;
|
|
35
|
+
variant?: "default" | "minimal" | undefined;
|
|
36
|
+
featuredColumn?: number | undefined;
|
|
37
|
+
} & Pick<any, string | number | symbol>, string | number | symbol> & React.RefAttributes<HTMLDivElement>> & {
|
|
38
|
+
Row: ({ children, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
|
|
39
|
+
Cell: ({ as, children, ...props }: PropsWithChildren<CellProps>) => JSX.Element;
|
|
40
|
+
Footnote: ({ children, ...props }: PropsWithChildren<FootnoteProps>) => JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ComparisonTable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/Stack/Stack.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/size/si
|
|
|
4
4
|
export declare const StackDirectionVariants: readonly ["horizontal", "vertical"];
|
|
5
5
|
declare type StackDirectionVariants = typeof StackDirectionVariants[number];
|
|
6
6
|
export declare const defaultStackDirection: "vertical";
|
|
7
|
-
export declare const StackSpacingVariants: readonly ["condensed", "normal", "spacious"];
|
|
7
|
+
export declare const StackSpacingVariants: readonly ["none", "condensed", "normal", "spacious"];
|
|
8
8
|
declare type StackSpacingVariants = typeof StackSpacingVariants[number];
|
|
9
|
-
export declare const defaultStackSpacing: "
|
|
9
|
+
export declare const defaultStackSpacing: "condensed";
|
|
10
10
|
export declare const StackAlignItemVariants: readonly ["center", "flex-start", "flex-end"];
|
|
11
11
|
declare type StackAlignItemVariants = typeof StackAlignItemVariants[number];
|
|
12
12
|
export declare const StackJustifyContentVariants: readonly ["center", "flex-start", "flex-end", "space-between", "space-around", "space-evenly"];
|
|
@@ -85,7 +85,7 @@ export declare const Stack: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLE
|
|
|
85
85
|
* A string value will be applied to all viewports.
|
|
86
86
|
* An object can be used to define different values for different viewports.
|
|
87
87
|
*/
|
|
88
|
-
gap?: "condensed" | "normal" | "spacious" | ResponsiveSpacingMap | undefined;
|
|
88
|
+
gap?: "none" | "condensed" | "normal" | "spacious" | ResponsiveSpacingMap | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* Applies vertical alignment to child elements relative to the Stack, using the align-items CSS property.
|
|
91
91
|
* A string value will be applied to all viewports.
|
|
@@ -97,7 +97,7 @@ export declare const Stack: React.ForwardRefExoticComponent<Pick<BaseProps<HTMLE
|
|
|
97
97
|
* A string value will be applied to all viewports.
|
|
98
98
|
* An object can be used to define different values for different viewports.
|
|
99
99
|
*/
|
|
100
|
-
padding?: "condensed" | "normal" | "spacious" | ResponsiveSpacingMap | undefined;
|
|
100
|
+
padding?: "none" | "condensed" | "normal" | "spacious" | ResponsiveSpacingMap | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* Applies horizontal alignment to child elements relative to the Stack, using the justify-content CSS property.
|
|
103
103
|
* A string value will be applied to all viewports.
|