@atlaskit/ds-explorations 1.0.0 → 1.2.0

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 (53) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/components/box.partial.js +4 -4
  3. package/dist/cjs/components/inline.partial.js +42 -19
  4. package/dist/cjs/components/interaction-surface.partial.js +2 -2
  5. package/dist/cjs/components/stack.partial.js +4 -4
  6. package/dist/cjs/components/text.partial.js +6 -4
  7. package/dist/cjs/internal/color-map.js +2 -2
  8. package/dist/cjs/version.json +1 -1
  9. package/dist/es2019/components/box.partial.js +4 -4
  10. package/dist/es2019/components/inline.partial.js +32 -9
  11. package/dist/es2019/components/interaction-surface.partial.js +2 -2
  12. package/dist/es2019/components/stack.partial.js +5 -5
  13. package/dist/es2019/components/text.partial.js +6 -4
  14. package/dist/es2019/internal/color-map.js +2 -2
  15. package/dist/es2019/version.json +1 -1
  16. package/dist/esm/components/box.partial.js +4 -4
  17. package/dist/esm/components/inline.partial.js +41 -17
  18. package/dist/esm/components/interaction-surface.partial.js +2 -2
  19. package/dist/esm/components/stack.partial.js +5 -5
  20. package/dist/esm/components/text.partial.js +6 -4
  21. package/dist/esm/internal/color-map.js +2 -2
  22. package/dist/esm/version.json +1 -1
  23. package/dist/types/components/box.partial.d.ts +9 -9
  24. package/dist/types/components/inline.partial.d.ts +14 -5
  25. package/dist/types/components/stack.partial.d.ts +7 -6
  26. package/dist/types/components/text.partial.d.ts +6 -2
  27. package/dist/types/components/types.d.ts +0 -1
  28. package/dist/types/internal/color-map.d.ts +2 -2
  29. package/examples/02-text.tsx +1 -0
  30. package/inline/package.json +15 -0
  31. package/package.json +4 -2
  32. package/report.api.md +9 -12
  33. package/src/components/__tests__/unit/text.test.tsx +9 -1
  34. package/src/components/box.partial.tsx +69 -68
  35. package/src/components/inline.partial.tsx +79 -58
  36. package/src/components/interaction-surface.partial.tsx +2 -2
  37. package/src/components/stack.partial.tsx +48 -46
  38. package/src/components/text.partial.tsx +8 -2
  39. package/src/components/types.tsx +0 -2
  40. package/src/internal/color-map.tsx +2 -2
  41. package/stack/package.json +15 -0
  42. package/tmp/api-report-tmp.d.ts +7 -10
  43. package/dist/types-ts4.0/components/box.partial.d.ts +0 -303
  44. package/dist/types-ts4.0/components/inline.partial.d.ts +0 -86
  45. package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +0 -49
  46. package/dist/types-ts4.0/components/stack.partial.d.ts +0 -80
  47. package/dist/types-ts4.0/components/surface-provider.d.ts +0 -15
  48. package/dist/types-ts4.0/components/text.partial.d.ts +0 -131
  49. package/dist/types-ts4.0/components/types.d.ts +0 -14
  50. package/dist/types-ts4.0/index.d.ts +0 -7
  51. package/dist/types-ts4.0/internal/color-map.d.ts +0 -36
  52. package/dist/types-ts4.0/internal/role-to-element.d.ts +0 -32
  53. package/dist/types-ts4.0/internal/spacing-scale.d.ts +0 -22
@@ -1,86 +0,0 @@
1
- /** @jsx jsx */
2
- import { ReactNode } from 'react';
3
- import type { BasePrimitiveProps, NonTextChildren } from './types';
4
- interface InlineProps extends BasePrimitiveProps {
5
- /**
6
- * Used to align children along the cross axis.
7
- */
8
- alignItems?: FlexAlignItems;
9
- /**
10
- * Used to align children along the main axis.
11
- */
12
- justifyContent?: FlexJustifyContent;
13
- /**
14
- * Sets whether children are forced onto one line or can wrap onto multiple lines
15
- */
16
- flexWrap?: FlexWrap;
17
- /**
18
- * Token representing gap between children.
19
- */
20
- gap: ColumnGap;
21
- /**
22
- * Renders a divider between children.
23
- * If a string is provided it will automatically be wrapped in a `<Text>` component.
24
- */
25
- divider?: ReactNode;
26
- /**
27
- * Elements to be rendered inside the Inline.
28
- */
29
- children: NonTextChildren;
30
- }
31
- declare type FlexAlignItems = keyof typeof flexAlignItemsMap;
32
- declare const flexAlignItemsMap: {
33
- center: import("@emotion/react").SerializedStyles;
34
- baseline: import("@emotion/react").SerializedStyles;
35
- flexStart: import("@emotion/react").SerializedStyles;
36
- flexEnd: import("@emotion/react").SerializedStyles;
37
- start: import("@emotion/react").SerializedStyles;
38
- end: import("@emotion/react").SerializedStyles;
39
- };
40
- declare type FlexJustifyContent = keyof typeof flexJustifyContentMap;
41
- declare const flexJustifyContentMap: {
42
- center: import("@emotion/react").SerializedStyles;
43
- flexStart: import("@emotion/react").SerializedStyles;
44
- flexEnd: import("@emotion/react").SerializedStyles;
45
- start: import("@emotion/react").SerializedStyles;
46
- end: import("@emotion/react").SerializedStyles;
47
- };
48
- declare type FlexWrap = keyof typeof flexWrapMap;
49
- declare const flexWrapMap: {
50
- wrap: import("@emotion/react").SerializedStyles;
51
- };
52
- /**
53
- * __Inline__
54
- *
55
- * Inline is a primitive component based on flexbox that manages the horizontal layout of direct children.
56
- * Renders a `div` by default.
57
- *
58
- */
59
- declare const Inline: import("react").ForwardRefExoticComponent<InlineProps & import("react").RefAttributes<HTMLDivElement>>;
60
- export default Inline;
61
- /**
62
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
63
- * @codegen <<SignedSource::cff5655983f2243060cade5b107d7762>>
64
- * @codegenId spacing
65
- * @codegenCommand yarn codegen-styles
66
- * @codegenParams ["columnGap"]
67
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::0c1fe9904b2ff2465a532b97ab76491e>>
68
- */
69
- declare const columnGapMap: {
70
- 'scale.0': import("@emotion/react").SerializedStyles;
71
- 'scale.025': import("@emotion/react").SerializedStyles;
72
- 'scale.050': import("@emotion/react").SerializedStyles;
73
- 'scale.075': import("@emotion/react").SerializedStyles;
74
- 'scale.100': import("@emotion/react").SerializedStyles;
75
- 'scale.150': import("@emotion/react").SerializedStyles;
76
- 'scale.200': import("@emotion/react").SerializedStyles;
77
- 'scale.250': import("@emotion/react").SerializedStyles;
78
- 'scale.300': import("@emotion/react").SerializedStyles;
79
- 'scale.400': import("@emotion/react").SerializedStyles;
80
- 'scale.500': import("@emotion/react").SerializedStyles;
81
- 'scale.600': import("@emotion/react").SerializedStyles;
82
- };
83
- export declare type ColumnGap = keyof typeof columnGapMap;
84
- /**
85
- * @codegenEnd
86
- */
@@ -1,49 +0,0 @@
1
- /** @jsx jsx */
2
- import { ReactNode } from 'react';
3
- import { jsx } from '@emotion/react';
4
- import { BasePrimitiveProps } from './types';
5
- interface InteractionSurfaceProps extends BasePrimitiveProps {
6
- children: ReactNode;
7
- appearance?: InteractionBackgroundColor;
8
- }
9
- /**
10
- *
11
- * @example
12
- * ```js
13
- * // a minimal icon button
14
- * <Box as="button">
15
- * <InteractionSurface>
16
- * <WarningIcon label="icon button" />
17
- * </InteractionSurface>
18
- * </Box>
19
- * ```
20
- */
21
- declare const InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
22
- export default InteractionSurface;
23
- declare const backgroundHoverColorMap: {
24
- 'inverse.subtle': import("@emotion/react").SerializedStyles;
25
- input: import("@emotion/react").SerializedStyles;
26
- neutral: import("@emotion/react").SerializedStyles;
27
- 'neutral.subtle': import("@emotion/react").SerializedStyles;
28
- 'neutral.bold': import("@emotion/react").SerializedStyles;
29
- 'brand.bold': import("@emotion/react").SerializedStyles;
30
- selected: import("@emotion/react").SerializedStyles;
31
- 'selected.bold': import("@emotion/react").SerializedStyles;
32
- danger: import("@emotion/react").SerializedStyles;
33
- 'danger.bold': import("@emotion/react").SerializedStyles;
34
- warning: import("@emotion/react").SerializedStyles;
35
- 'warning.bold': import("@emotion/react").SerializedStyles;
36
- success: import("@emotion/react").SerializedStyles;
37
- 'success.bold': import("@emotion/react").SerializedStyles;
38
- discovery: import("@emotion/react").SerializedStyles;
39
- 'discovery.bold': import("@emotion/react").SerializedStyles;
40
- information: import("@emotion/react").SerializedStyles;
41
- 'information.bold': import("@emotion/react").SerializedStyles;
42
- 'elevation.surface': import("@emotion/react").SerializedStyles;
43
- 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
44
- 'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
45
- };
46
- declare type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
47
- /**
48
- * @codegenEnd
49
- */
@@ -1,80 +0,0 @@
1
- /// <reference types="react" />
2
- import { BasePrimitiveProps, NonTextChildren } from './types';
3
- interface StackProps extends BasePrimitiveProps {
4
- /**
5
- * Used to align children along the cross axis.
6
- */
7
- alignItems?: FlexAlignItems;
8
- /**
9
- * Used to align children along the main axis.
10
- */
11
- justifyContent?: FlexJustifyContent;
12
- /**
13
- * Sets whether children are forced onto one line or can wrap onto multiple lines
14
- */
15
- flexWrap?: FlexWrap;
16
- /**
17
- * Token representing gap between children.
18
- */
19
- gap: RowGap;
20
- /**
21
- * Elements to be rendered inside the Stack.
22
- */
23
- children: NonTextChildren;
24
- }
25
- declare type FlexAlignItems = keyof typeof flexAlignItemsMap;
26
- declare const flexAlignItemsMap: {
27
- center: import("@emotion/react").SerializedStyles;
28
- baseline: import("@emotion/react").SerializedStyles;
29
- flexStart: import("@emotion/react").SerializedStyles;
30
- flexEnd: import("@emotion/react").SerializedStyles;
31
- start: import("@emotion/react").SerializedStyles;
32
- end: import("@emotion/react").SerializedStyles;
33
- };
34
- declare type FlexJustifyContent = keyof typeof flexJustifyContentMap;
35
- declare const flexJustifyContentMap: {
36
- center: import("@emotion/react").SerializedStyles;
37
- flexStart: import("@emotion/react").SerializedStyles;
38
- flexEnd: import("@emotion/react").SerializedStyles;
39
- start: import("@emotion/react").SerializedStyles;
40
- end: import("@emotion/react").SerializedStyles;
41
- };
42
- declare type FlexWrap = keyof typeof flexWrapMap;
43
- declare const flexWrapMap: {
44
- wrap: import("@emotion/react").SerializedStyles;
45
- };
46
- /**
47
- * __Stack__
48
- *
49
- * Stack is a primitive component based on flexbox that manages the vertical layout of direct children.
50
- * Renders a `div` by default.
51
- *
52
- */
53
- declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
54
- export default Stack;
55
- /**
56
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
57
- * @codegen <<SignedSource::c486b14097494305925c3c989823d602>>
58
- * @codegenId spacing
59
- * @codegenCommand yarn codegen-styles
60
- * @codegenParams ["rowGap"]
61
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::0c1fe9904b2ff2465a532b97ab76491e>>
62
- */
63
- declare const rowGapMap: {
64
- 'scale.0': import("@emotion/react").SerializedStyles;
65
- 'scale.025': import("@emotion/react").SerializedStyles;
66
- 'scale.050': import("@emotion/react").SerializedStyles;
67
- 'scale.075': import("@emotion/react").SerializedStyles;
68
- 'scale.100': import("@emotion/react").SerializedStyles;
69
- 'scale.150': import("@emotion/react").SerializedStyles;
70
- 'scale.200': import("@emotion/react").SerializedStyles;
71
- 'scale.250': import("@emotion/react").SerializedStyles;
72
- 'scale.300': import("@emotion/react").SerializedStyles;
73
- 'scale.400': import("@emotion/react").SerializedStyles;
74
- 'scale.500': import("@emotion/react").SerializedStyles;
75
- 'scale.600': import("@emotion/react").SerializedStyles;
76
- };
77
- export declare type RowGap = keyof typeof rowGapMap;
78
- /**
79
- * @codegenEnd
80
- */
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * __Surface context__
4
- *
5
- * A surface context provides context information on the current background (if set).
6
- */
7
- export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.sunken" | "elevation.surface.raised" | "elevation.surface.overlay" | "disabled" | "inverse.subtle" | "input" | "neutral" | "neutral.subtle" | "neutral.bold" | "brand.bold" | "selected" | "selected.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
8
- /**
9
- * __useSurface__
10
- *
11
- * Return the current surface. If no parent sets a surface color it falls back to the default surface.
12
- *
13
- * @see SurfaceContext
14
- */
15
- export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.sunken" | "elevation.surface.raised" | "elevation.surface.overlay" | "disabled" | "inverse.subtle" | "input" | "neutral" | "neutral.subtle" | "neutral.bold" | "brand.bold" | "selected" | "selected.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
@@ -1,131 +0,0 @@
1
- /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
3
- import type { BasePrimitiveProps } from './types';
4
- declare const asAllowlist: readonly [
5
- "span",
6
- "div",
7
- "p"
8
- ];
9
- declare type AsElement = typeof asAllowlist[number];
10
- export interface TextProps extends BasePrimitiveProps {
11
- /**
12
- * HTML tag to be rendered. Defaults to `span`.
13
- */
14
- as?: AsElement;
15
- /**
16
- * Elements rendered within the Text element
17
- */
18
- children: ReactNode;
19
- /**
20
- * Text color
21
- */
22
- color?: TextColor;
23
- /**
24
- * Font size https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
25
- */
26
- fontSize?: FontSize;
27
- /**
28
- * Font weight https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
29
- */
30
- fontWeight?: FontWeight;
31
- /**
32
- * Line height https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
33
- */
34
- lineHeight?: LineHeight;
35
- /**
36
- * Truncates text with an ellipsis when text overflows its parent container
37
- * (i.e. `width` has been set on parent that is shorter than text length).
38
- */
39
- shouldTruncate?: boolean;
40
- /**
41
- * Text align https://developer.mozilla.org/en-US/docs/Web/CSS/text-align
42
- */
43
- textAlign?: TextAlign;
44
- /**
45
- * Text transform https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform
46
- */
47
- textTransform?: TextTransform;
48
- /**
49
- * Vertical align https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align
50
- */
51
- verticalAlign?: VerticalAlign;
52
- }
53
- declare type FontSize = keyof typeof fontSizeMap;
54
- declare const fontSizeMap: {
55
- '11px': import("@emotion/react").SerializedStyles;
56
- '12px': import("@emotion/react").SerializedStyles;
57
- '14px': import("@emotion/react").SerializedStyles;
58
- };
59
- declare type FontWeight = keyof typeof fontWeightMap;
60
- declare const fontWeightMap: {
61
- '400': import("@emotion/react").SerializedStyles;
62
- '500': import("@emotion/react").SerializedStyles;
63
- '600': import("@emotion/react").SerializedStyles;
64
- '700': import("@emotion/react").SerializedStyles;
65
- };
66
- declare type LineHeight = keyof typeof lineHeightMap;
67
- declare const lineHeightMap: {
68
- '12px': import("@emotion/react").SerializedStyles;
69
- '16px': import("@emotion/react").SerializedStyles;
70
- '20px': import("@emotion/react").SerializedStyles;
71
- '24px': import("@emotion/react").SerializedStyles;
72
- '28px': import("@emotion/react").SerializedStyles;
73
- '32px': import("@emotion/react").SerializedStyles;
74
- '40px': import("@emotion/react").SerializedStyles;
75
- };
76
- declare type TextAlign = keyof typeof textAlignMap;
77
- declare const textAlignMap: {
78
- center: import("@emotion/react").SerializedStyles;
79
- end: import("@emotion/react").SerializedStyles;
80
- start: import("@emotion/react").SerializedStyles;
81
- };
82
- declare type TextTransform = keyof typeof textTransformMap;
83
- declare const textTransformMap: {
84
- none: import("@emotion/react").SerializedStyles;
85
- lowercase: import("@emotion/react").SerializedStyles;
86
- uppercase: import("@emotion/react").SerializedStyles;
87
- };
88
- declare type VerticalAlign = keyof typeof verticalAlignMap;
89
- declare const verticalAlignMap: {
90
- top: import("@emotion/react").SerializedStyles;
91
- middle: import("@emotion/react").SerializedStyles;
92
- bottom: import("@emotion/react").SerializedStyles;
93
- };
94
- /**
95
- * __Text__
96
- *
97
- * Text is a primitive component that has the Atlassian Design System's design guidelines baked in.
98
- * This includes considerations for text attributes such as color, font size, font weight, and line height.
99
- * It renders a `span` by default.
100
- *
101
- * @internal
102
- */
103
- declare const Text: FC<TextProps>;
104
- export default Text;
105
- /**
106
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
107
- * @codegen <<SignedSource::21771f01de3c37646642de03274f0738>>
108
- * @codegenId colors
109
- * @codegenCommand yarn codegen-styles
110
- * @codegenParams ["text"]
111
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::0c1fe9904b2ff2465a532b97ab76491e>>
112
- */
113
- declare const textColorMap: {
114
- 'color.text': import("@emotion/react").SerializedStyles;
115
- subtle: import("@emotion/react").SerializedStyles;
116
- subtlest: import("@emotion/react").SerializedStyles;
117
- disabled: import("@emotion/react").SerializedStyles;
118
- inverse: import("@emotion/react").SerializedStyles;
119
- brand: import("@emotion/react").SerializedStyles;
120
- selected: import("@emotion/react").SerializedStyles;
121
- danger: import("@emotion/react").SerializedStyles;
122
- warning: import("@emotion/react").SerializedStyles;
123
- 'warning.inverse': import("@emotion/react").SerializedStyles;
124
- success: import("@emotion/react").SerializedStyles;
125
- discovery: import("@emotion/react").SerializedStyles;
126
- information: import("@emotion/react").SerializedStyles;
127
- };
128
- export declare type TextColor = keyof typeof textColorMap;
129
- /**
130
- * @codegenEnd
131
- */
@@ -1,14 +0,0 @@
1
- import type { CSSProperties } from 'react';
2
- export interface BasePrimitiveProps {
3
- /**
4
- * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
5
- */
6
- testId?: string;
7
- /**
8
- * Inline styles to be applied to the primitive.
9
- * Marked as "unsafe" because any CSS properties can be provided here without any extra control or validation, including those that would be better managed by the primitive itself via props.
10
- * Effectively equivalent to the standard `style` prop but marked with a special name so we can rationalise its usage IN THE FUTURE.
11
- */
12
- UNSAFE_style?: CSSProperties;
13
- }
14
- export declare type NonTextChildren = JSX.Element | (JSX.Element | null | false)[];
@@ -1,7 +0,0 @@
1
- export { default as UNSAFE_Box } from './components/box.partial';
2
- export { default as UNSAFE_Text } from './components/text.partial';
3
- export { default as UNSAFE_Inline } from './components/inline.partial';
4
- export { default as UNSAFE_Stack } from './components/stack.partial';
5
- export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
6
- export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
7
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
@@ -1,36 +0,0 @@
1
- declare const _default: {
2
- readonly 'neutral.bold': "inverse";
3
- readonly 'neutral.bold.hovered': "inverse";
4
- readonly 'neutral.bold.pressed': "inverse";
5
- readonly 'brand.bold': "inverse";
6
- readonly 'brand.bold.hovered': "inverse";
7
- readonly 'brand.bold.pressed': "inverse";
8
- readonly 'selected.bold': "inverse";
9
- readonly 'selected.bold.hovered': "inverse";
10
- readonly 'selected.bold.pressed': "inverse";
11
- readonly 'danger.bold': "inverse";
12
- readonly 'danger.bold.hovered': "inverse";
13
- readonly 'danger.bold.pressed': "inverse";
14
- readonly 'warning.bold': "warning.inverse";
15
- readonly 'warning.bold.hovered': "warning.inverse";
16
- readonly 'warning.bold.pressed': "warning.inverse";
17
- readonly 'success.bold': "inverse";
18
- readonly 'success.bold.hovered': "inverse";
19
- readonly 'success.bold.pressed': "inverse";
20
- readonly 'discovery.bold': "inverse";
21
- readonly 'discovery.bold.hovered': "inverse";
22
- readonly 'discovery.bold.pressed': "inverse";
23
- readonly 'information.bold': "inverse";
24
- readonly 'information.bold.hovered': "inverse";
25
- readonly 'information.bold.pressed': "inverse";
26
- };
27
- /**
28
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
29
- *
30
- * The color map is used to map a background color token to a matching text color that will meet contrast.
31
- *
32
- * @codegen <<SignedSource::c9429c38d12f88de9f5be644bf5e704a>>
33
- * @codegenCommand yarn codegen-styles
34
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::0c1fe9904b2ff2465a532b97ab76491e>>
35
- */
36
- export default _default;
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * Adapted straight from react-mui, with a small change.
4
- * @see https://www.unpkg.com/browse/react-gui@0.2.1/src/modules/getAccessibilityElementWithSideEffect.js
5
- */
6
- declare const roleToElementType: {
7
- readonly article: "article";
8
- readonly banner: "header";
9
- readonly blockquote: "blockquote";
10
- readonly button: "button";
11
- readonly code: "code";
12
- readonly complementary: "aside";
13
- readonly contentinfo: "footer";
14
- readonly deletion: "del";
15
- readonly emphasis: "em";
16
- readonly figure: "figure";
17
- readonly insertion: "ins";
18
- readonly form: "form";
19
- readonly link: "a";
20
- readonly list: "ul";
21
- readonly listitem: "li";
22
- readonly main: "main";
23
- readonly navigation: "nav";
24
- readonly region: "section";
25
- readonly strong: "strong";
26
- readonly presentation: "div";
27
- readonly group: "fieldset";
28
- };
29
- declare type RoleMap = typeof roleToElementType;
30
- export declare type Role = keyof RoleMap;
31
- export declare type SupportedElements = RoleMap[Role] & keyof JSX.IntrinsicElements;
32
- export default roleToElementType;
@@ -1,22 +0,0 @@
1
- /**
2
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- *
4
- * Some artifact
5
- *
6
- * @codegen <<SignedSource::caecb926afa82b027fba396074de5c2c>>
7
- * @codegenCommand yarn codegen-styles
8
- */
9
- export declare const spacingScale: readonly [
10
- "scale.0",
11
- "scale.025",
12
- "scale.050",
13
- "scale.075",
14
- "scale.100",
15
- "scale.150",
16
- "scale.200",
17
- "scale.250",
18
- "scale.300",
19
- "scale.400",
20
- "scale.500",
21
- "scale.600"
22
- ];