@procore/core-react 11.12.1-rc.0 → 11.13.0-rc.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.
- package/dist/Avatar/Avatar.js +20 -4
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Modal/Modal.d.ts +3 -1
- package/dist/Modal/Modal.js +72 -19
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/Modal.types.d.ts +59 -3
- package/dist/OverlayTrigger/OverlayTrigger.d.ts +6 -6
- package/dist/OverlayTrigger/OverlayTrigger.js +43 -32
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +15 -7
- package/dist/OverlayTrigger/a11yPresets.d.ts +202 -1
- package/dist/OverlayTrigger/a11yPresets.js +210 -0
- package/dist/OverlayTrigger/a11yPresets.js.map +1 -1
- package/dist/Popover/Popover.d.ts +24 -2
- package/dist/Popover/Popover.js +6 -4
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.types.d.ts +15 -2
- package/dist/Portal/Portal.d.ts +1 -1
- package/dist/Portal/Portal.js +24 -2
- package/dist/Portal/Portal.js.map +1 -1
- package/dist/Section/Section.d.ts +4 -0
- package/dist/Section/Section.js +12 -6
- package/dist/Section/Section.js.map +1 -1
- package/dist/Semantic/Semantic.d.ts +8 -0
- package/dist/Semantic/Semantic.js +28 -0
- package/dist/Semantic/Semantic.js.map +1 -1
- package/dist/Semantic/Semantic.types.d.ts +1 -1
- package/dist/Tearsheet/Tearsheet.d.ts +7 -1
- package/dist/Tearsheet/Tearsheet.js +32 -19
- package/dist/Tearsheet/Tearsheet.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.types.d.ts +24 -0
- package/dist/_hooks/I18n.d.ts +1 -0
- package/dist/_locales/en.json +2 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +28 -28
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
- package/dist/_typedoc/Badge/Badge.types.json +10 -10
- package/dist/_typedoc/Banner/Banner.types.json +19 -19
- package/dist/_typedoc/Box/Box.types.json +70 -70
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +14 -14
- package/dist/_typedoc/Button/Button.types.json +11 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +98 -98
- package/dist/_typedoc/Card/Card.types.json +8 -8
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +11 -11
- package/dist/_typedoc/DateInput/DateInput.types.json +37 -37
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +6 -6
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +22 -22
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +29 -29
- package/dist/_typedoc/FlexList/FlexList.types.json +32 -32
- package/dist/_typedoc/Form/Form.types.json +698 -698
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +6 -6
- package/dist/_typedoc/ListPage/ListPage.types.json +19 -19
- package/dist/_typedoc/Menu/Menu.types.json +68 -68
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +75 -75
- package/dist/_typedoc/Modal/Modal.types.json +213 -70
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +6 -6
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +76 -34
- package/dist/_typedoc/PageLayout/PageLayout.types.json +32 -32
- package/dist/_typedoc/Pagination/Pagination.types.json +9 -9
- package/dist/_typedoc/Panel/Panel.types.json +29 -29
- package/dist/_typedoc/Pill/Pill.types.json +1 -1
- package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
- package/dist/_typedoc/Popover/Popover.types.json +60 -38
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +8 -8
- package/dist/_typedoc/RadioButton/RadioButton.types.json +8 -8
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +16 -16
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +26 -26
- package/dist/_typedoc/Select/Select.types.json +32 -32
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
- package/dist/_typedoc/Switch/Switch.types.json +5 -5
- package/dist/_typedoc/Table/Table.types.json +116 -116
- package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +70 -10
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +21 -21
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +42 -42
- package/dist/_typedoc/Toast/Toast.types.json +6 -6
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +14 -14
- package/dist/_typedoc/Tooltip/Tooltip.types.json +17 -17
- package/dist/_typedoc/Tree/Tree.types.json +88 -88
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +5 -5
- package/dist/_utils/polymorphic.d.ts +4 -4
- package/dist/_utils/types.d.ts +0 -3
- package/package.json +3 -2
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typeahead/Typeahead.types.ts#L15"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "onChange",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/Typeahead/Typeahead.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typeahead/Typeahead.types.ts#L19"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span>",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Change the HTML tag. This{' '}\n <Link href=\"https://styled-components.com/docs/api#as-polymorphic-prop\">\n prop is from styled-components\n </Link>\n .<em>WARNING</em>: If using TypeScript, it will not switch types and\n some props may error. You can add <Code>// @ts-expect-error</Code>.\n See{' '}\n <Link href=\"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30117\">\n styled-components issue\n </Link>\n .\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L35"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "children",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span>",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n When children are a string or multiple elements, they will be wrapped\n by a <Code>span</Code>. When it is a single element, classnames will\n be added to it instead\n</span></div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L17"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "className",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Additional classNames",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L47"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "color",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"description": "<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span>",
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<span>\n Changes font color, can be any of the{' '}\n <Link to=\"/web/style/colors/#hsl-palette\">HSL Palette</Link> css\n strings\n</span></div><dl class=\"tsd-comment-tags\"><dt>default</dt><dd><p>'gray15'</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
42
42
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L46"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "intent",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "Changes the size of the font",
|
|
51
51
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes the size of the font</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
52
52
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
53
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
53
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L52"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "italic",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"description": "Applies `font-style: italic` if enabled",
|
|
61
61
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Applies <code>font-style: italic</code> if enabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
62
62
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
63
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
63
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L58"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "style",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"description": "Additional CSS styles",
|
|
71
71
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
72
72
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
73
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
73
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L52"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "weight",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"description": "Changes font weight if it is supported in the design system",
|
|
81
81
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Changes font weight if it is supported in the design system</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
82
82
|
"sourceFile": "packages/core-react/src/Typography/Typography.types.ts",
|
|
83
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
83
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/Typography/Typography.types.ts#L64"
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
86
|
"description": ""
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"required": false,
|
|
8
8
|
"type": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
9
9
|
"typeDetail": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
10
|
-
"description": "
|
|
11
|
-
"descriptionHtml": "
|
|
10
|
+
"description": "",
|
|
11
|
+
"descriptionHtml": "",
|
|
12
12
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L42"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "className",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Additional classNames",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
22
22
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L47"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "style",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Additional CSS styles",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/fbd7c364a/packages/core-react/src/_utils/types.ts#L52"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
declare type PickRequired<T, K extends keyof T> = Required<Pick<T, K>>;
|
|
3
3
|
export declare namespace Polymorphic {
|
|
4
4
|
/** Maps our name to the HTMLElement ref type */
|
|
5
|
-
export type Ref<
|
|
5
|
+
export type Ref<Names extends Record<keyof Names, React.ElementType>, T extends keyof Names> = React.ComponentPropsWithRef<Names[T]>['ref'];
|
|
6
6
|
type PolymorphicProp<M extends Record<keyof M, React.ElementType>, T extends keyof M> = {
|
|
7
7
|
as?: (props: React.ComponentPropsWithRef<M[T]>) => React.ReactElement | null;
|
|
8
8
|
role: T;
|
|
9
9
|
};
|
|
10
10
|
type CleanComponentProps<M extends Record<keyof M, React.ElementType>, T extends keyof M, Props> = Omit<React.ComponentPropsWithoutRef<M[T]>, keyof (PolymorphicProp<M, T> & Props)>;
|
|
11
11
|
type RequiredComponentProps<M extends Record<keyof M, React.ElementType>, T extends keyof M, Require extends keyof React.ComponentPropsWithoutRef<M[T]>> = PickRequired<React.ComponentPropsWithoutRef<M[T]>, Require>;
|
|
12
|
-
export type ComponentProps<
|
|
13
|
-
export type ComponentPropsWithRef<
|
|
14
|
-
ref?: Ref<
|
|
12
|
+
export type ComponentProps<Names extends Record<keyof Names, React.ElementType>, Role extends keyof Names, Require extends keyof React.ComponentPropsWithoutRef<Names[Role]>, Props = {}> = PolymorphicProp<Names, Role> & RequiredComponentProps<Names, Role, Require> & CleanComponentProps<Names, Role, Props> & Props;
|
|
13
|
+
export type ComponentPropsWithRef<Names extends Record<keyof Names, React.ElementType>, Role extends keyof Names, Require extends keyof React.ComponentPropsWithoutRef<Names[Role]>, Props = {}> = ComponentProps<Names, Role, Require, Props> & {
|
|
14
|
+
ref?: Ref<Names, Role>;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
17
17
|
}
|
package/dist/_utils/types.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ export interface RenderProp<T> {
|
|
|
8
8
|
children: React.ReactNode | ((props: T) => React.ReactNode);
|
|
9
9
|
}
|
|
10
10
|
export interface Props {
|
|
11
|
-
/**
|
|
12
|
-
* Instead of using the default children, you can pass in your own.
|
|
13
|
-
*/
|
|
14
11
|
children?: React.ReactNode;
|
|
15
12
|
/**
|
|
16
13
|
* Additional classNames
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/core-react",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.13.0-rc.0",
|
|
4
4
|
"description": "React library of Procore Design Guidelines",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
"@react-aria/checkbox": "3.6.0",
|
|
125
125
|
"@react-aria/focus": "3.10.1",
|
|
126
126
|
"@react-aria/label": "3.4.4",
|
|
127
|
+
"@react-aria/overlays": "3.12.1",
|
|
127
128
|
"@react-aria/radio": "3.4.2",
|
|
128
129
|
"@react-aria/utils": "3.14.2",
|
|
129
130
|
"@react-aria/visually-hidden": "3.4.1",
|
|
@@ -156,5 +157,5 @@
|
|
|
156
157
|
"react-dom": ">=16.8.0 < 19",
|
|
157
158
|
"styled-components": ">= 5.1.1 < 6"
|
|
158
159
|
},
|
|
159
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "fbd7c364a63257735d0f26e690c9e203be7b0fe7"
|
|
160
161
|
}
|