@procore/core-react 11.3.0-rc.13 → 11.3.0-rc.14
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/NextMenu/NextMenu.d.ts +0 -12
- package/dist/NextMenu/NextMenu.js +4 -18
- package/dist/NextMenu/NextMenu.js.map +1 -1
- package/dist/NextMenu/NextMenu.styles.js +3 -2
- package/dist/NextMenu/NextMenu.styles.js.map +1 -1
- package/dist/NextMenu/NextMenu.types.d.ts +37 -20
- package/dist/NextMenu/NextMenuItem.js +2 -2
- package/dist/NextMenu/NextMenuItem.js.map +1 -1
- package/dist/NextMenu/sampleData.js +2 -9
- package/dist/NextMenu/sampleData.js.map +1 -1
- package/dist/_typedoc/Avatar/Avatar.types.json +17 -17
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +22 -22
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +12 -12
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +7 -7
- package/dist/_typedoc/Button/Button.types.json +11 -11
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +35 -35
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- 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 +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +688 -688
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +51 -51
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +69 -69
- package/dist/_typedoc/Modal/Modal.types.json +27 -27
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +30 -30
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +36 -36
- package/dist/_typedoc/PageLayout/PageLayout.types.json +7 -7
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- 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 +10 -10
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +5 -5
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- 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 +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +31 -31
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +94 -94
- package/dist/_typedoc/Tabs/Tabs.types.json +15 -15
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +10 -10
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +7 -7
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +25 -25
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +41 -41
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +27 -27
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- 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 +8 -8
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +2 -2
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NextMenuProps } from './NextMenu.types';
|
|
3
|
-
/**
|
|
4
|
-
* Defines how menu item will be rendered
|
|
5
|
-
* */
|
|
6
|
-
export declare const defaultMenuItemRenderer: (index: number) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Defines how menu group header will be rendered
|
|
9
|
-
* */
|
|
10
|
-
export declare const defaultGroupHeaderRenderer: (index: number) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Defines how menu group menu item will be rendered
|
|
13
|
-
* */
|
|
14
|
-
export declare const defaultGroupedMenuItemRenderer: (index: number, groupedIndex: number) => string;
|
|
15
3
|
/**
|
|
16
4
|
* Count items in groups by id received from getItemGroupId
|
|
17
5
|
*
|
|
@@ -24,18 +24,6 @@ import React from 'react';
|
|
|
24
24
|
import { GroupedVirtuoso, Virtuoso } from 'react-virtuoso';
|
|
25
25
|
import { defaultMenuHeight, optionMinHeight, StyledOptions, } from './NextMenu.styles';
|
|
26
26
|
import { NextMenuGroup, NextMenuItem } from './NextMenuItem';
|
|
27
|
-
/**
|
|
28
|
-
* Defines how menu item will be rendered
|
|
29
|
-
* */
|
|
30
|
-
export var defaultMenuItemRenderer = function (index) { return "Item: ".concat(index); };
|
|
31
|
-
/**
|
|
32
|
-
* Defines how menu group header will be rendered
|
|
33
|
-
* */
|
|
34
|
-
export var defaultGroupHeaderRenderer = function (index) { return "Group: ".concat(index); };
|
|
35
|
-
/**
|
|
36
|
-
* Defines how menu group menu item will be rendered
|
|
37
|
-
* */
|
|
38
|
-
export var defaultGroupedMenuItemRenderer = function (index, groupedIndex) { return "Item: ".concat(index, " (Group ").concat(groupedIndex, ")"); };
|
|
39
27
|
/**
|
|
40
28
|
* Count items in groups by id received from getItemGroupId
|
|
41
29
|
*
|
|
@@ -96,8 +84,8 @@ export var NextMenu = React.forwardRef(function (_a, menuRef) {
|
|
|
96
84
|
* Flat version of menu list
|
|
97
85
|
* */
|
|
98
86
|
export var NextMenuFlat = React.forwardRef(function (_a, menuRef) {
|
|
99
|
-
var _b = _a.items, items = _b === void 0 ? [] : _b,
|
|
100
|
-
return (React.createElement(Virtuoso, { ref: menuRef, components: flatComponents, context: { items: items }, data: items, overscan: overscan, style: style,
|
|
87
|
+
var _b = _a.items, items = _b === void 0 ? [] : _b, _c = _a.overscan, overscan = _c === void 0 ? 20 : _c, style = _a.style, totalListHeightChanged = _a.totalListHeightChanged, _d = _a.onEndReached, onEndReached = _d === void 0 ? function () { } : _d, _e = _a.components, components = _e === void 0 ? {} : _e, _f = _a.getItemLabel, getItemLabel = _f === void 0 ? function (item) { return item === null || item === void 0 ? void 0 : item.label; } : _f;
|
|
88
|
+
return (React.createElement(Virtuoso, { ref: menuRef, components: __assign(__assign({}, flatComponents), components), context: { items: items, getItemLabel: getItemLabel }, data: items, overscan: overscan, style: style, totalListHeightChanged: totalListHeightChanged, endReached: onEndReached }));
|
|
101
89
|
});
|
|
102
90
|
/**
|
|
103
91
|
* Grouped version of menu list
|
|
@@ -105,10 +93,8 @@ export var NextMenuFlat = React.forwardRef(function (_a, menuRef) {
|
|
|
105
93
|
* @see getGroupCounts
|
|
106
94
|
* */
|
|
107
95
|
export var NextMenuGrouped = React.forwardRef(function (props, menuRef) {
|
|
108
|
-
var children = props.children, _a = props.
|
|
109
|
-
? defaultGroupedMenuItemRenderer
|
|
110
|
-
: defaultMenuItemRenderer : _d, _e = props.groupHeaderRenderer, groupHeaderRenderer = _e === void 0 ? defaultGroupHeaderRenderer : _e, _f = props.overscan, overscan = _f === void 0 ? 20 : _f, onSelect_ = props.onSelect, onEndReached_ = props.onEndReached, style = props.style, totalListHeightChanged = props.totalListHeightChanged;
|
|
96
|
+
var children = props.children, _a = props.components, components = _a === void 0 ? {} : _a, _b = props.items, items = _b === void 0 ? [] : _b, _c = props.groups, groups = _c === void 0 ? [] : _c, _d = props.getItemGroupId, getItemGroupId = _d === void 0 ? function () { return -1; } : _d, _e = props.overscan, overscan = _e === void 0 ? 20 : _e, onSelect_ = props.onSelect, _f = props.onEndReached, onEndReached_ = _f === void 0 ? function () { } : _f, style = props.style, totalListHeightChanged = props.totalListHeightChanged;
|
|
111
97
|
var groupCounts = getGroupCounts(items, groups, getItemGroupId);
|
|
112
|
-
return (React.createElement(GroupedVirtuoso, { ref: menuRef, style: style, components: groupedComponents,
|
|
98
|
+
return (React.createElement(GroupedVirtuoso, { ref: menuRef, style: style, components: __assign(__assign({}, groupedComponents), components), context: { items: items }, groupCounts: groupCounts, overscan: overscan, endReached: onEndReached_, totalListHeightChanged: totalListHeightChanged }));
|
|
113
99
|
});
|
|
114
100
|
//# sourceMappingURL=NextMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextMenu.js","sourceRoot":"","sources":["../../src/Next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,EAAE,QAAQ,EAClB,UAAU,EAAE,aAAa,EACzB,sBAAsB,EAAE,sBAAsB,GAC9C,CACH,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -4,11 +4,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { getTypographyIntent, typographyWeights, } from '../Typography/Typography.styles';
|
|
7
|
+
import { spacing } from '../_styles/spacing';
|
|
7
8
|
export var optionMinHeight = 32;
|
|
8
9
|
/** Large enough to fit one group and one item */
|
|
9
10
|
export var defaultMenuHeight = 64;
|
|
10
11
|
export var StyledOptions = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
11
|
-
export var StyledItem = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n cursor: pointer;\n list-style-type: none;\n"], ["\n ", ";\n\n cursor: pointer;\n list-style-type: none;\n"])), getTypographyIntent('body'));
|
|
12
|
-
export var StyledGroup = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n font-weight: ", ";\n background: white;\n list-style-type: none;\n"], ["\n ", ";\n font-weight: ", ";\n background: white;\n list-style-type: none;\n"])), getTypographyIntent('body'), typographyWeights.semibold);
|
|
12
|
+
export var StyledItem = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n padding: ", "px ", "px;\n cursor: pointer;\n list-style-type: none;\n"], ["\n ", ";\n\n padding: ", "px ", "px;\n cursor: pointer;\n list-style-type: none;\n"])), getTypographyIntent('body'), spacing.xs, spacing.md);
|
|
13
|
+
export var StyledGroup = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n\n padding: ", "px ", "px ", "px;\n font-weight: ", ";\n background: white;\n list-style-type: none;\n"], ["\n ", ";\n\n padding: ", "px ", "px ", "px;\n font-weight: ", ";\n background: white;\n list-style-type: none;\n"])), getTypographyIntent('body'), spacing.md, spacing.md, spacing.xs, typographyWeights.semibold);
|
|
13
14
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
14
15
|
//# sourceMappingURL=NextMenu.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextMenu.styles.js","sourceRoot":"","sources":["../../src/NextMenu/NextMenu.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"NextMenu.styles.js","sourceRoot":"","sources":["../../src/NextMenu/NextMenu.styles.ts"],"names":[],"mappings":";;;;AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,IAAM,eAAe,GAAG,EAAE,CAAA;AACjC,iDAAiD;AACjD,MAAM,CAAC,IAAM,iBAAiB,GAAG,EAAE,CAAA;AAEnC,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,GAAG,qEAAA,EAAE,IAAA,CAAA;AAEzC,MAAM,CAAC,IAAM,UAAU,GAAG,MAAM,CAAC,GAAG,2JAAA,MAChC,EAA2B,kBAElB,EAAU,KAAM,EAAU,qDAGtC,KALG,mBAAmB,CAAC,MAAM,CAAC,EAElB,OAAO,CAAC,EAAE,EAAM,OAAO,CAAC,EAAE,CAGtC,CAAA;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,MAAM,CAAC,GAAG,0LAAA,MACjC,EAA2B,kBAElB,EAAU,KAAM,EAAU,KAAM,EAAU,sBACtC,EAA0B,qDAG1C,KANG,mBAAmB,CAAC,MAAM,CAAC,EAElB,OAAO,CAAC,EAAE,EAAM,OAAO,CAAC,EAAE,EAAM,OAAO,CAAC,EAAE,EACtC,iBAAiB,CAAC,QAAQ,CAG1C,CAAA"}
|
|
@@ -1,6 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ItemProps } from 'react-virtuoso';
|
|
2
3
|
import { Props } from '../_utils/types';
|
|
4
|
+
export interface MenuComponentContext<Item> {
|
|
5
|
+
items?: Item[];
|
|
6
|
+
totalSize?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Function that returns label for given item
|
|
9
|
+
* @default (item: Item) => item.label
|
|
10
|
+
* @since 11.3.0
|
|
11
|
+
*/
|
|
12
|
+
getItemLabel?(item: Item): string;
|
|
13
|
+
/**
|
|
14
|
+
* Handler for selecting menu items
|
|
15
|
+
* @since 11.1.1
|
|
16
|
+
*/
|
|
17
|
+
onSelect?: (event: any) => Item;
|
|
18
|
+
}
|
|
19
|
+
interface MenuComponents {
|
|
20
|
+
Item?: ComponentType<{
|
|
21
|
+
context?: MenuComponentContext<any>;
|
|
22
|
+
}>;
|
|
23
|
+
Group?: ComponentType<{
|
|
24
|
+
context?: MenuComponentContext<any>;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
3
27
|
export interface NextMenuProps<Item, Group> extends Props {
|
|
28
|
+
/**
|
|
29
|
+
* Components used for UI customization
|
|
30
|
+
* @since 11.3.0
|
|
31
|
+
* */
|
|
32
|
+
components?: MenuComponents;
|
|
4
33
|
/**
|
|
5
34
|
* Items that should be rendered in the menu. Presorted to display order.
|
|
6
35
|
* It is ignored for grouped menu
|
|
@@ -21,6 +50,11 @@ export interface NextMenuProps<Item, Group> extends Props {
|
|
|
21
50
|
* @since 11.1.1
|
|
22
51
|
*/
|
|
23
52
|
getItemGroupId?(item: Item): string | number;
|
|
53
|
+
/**
|
|
54
|
+
* Function that returns label for given item
|
|
55
|
+
* @since 11.1.1
|
|
56
|
+
*/
|
|
57
|
+
getItemLabel?(item: Item): string;
|
|
24
58
|
/**
|
|
25
59
|
* Specifies the amount of items in each group (and, actually, how many groups are there).
|
|
26
60
|
* For example, passing [20, 30] will display 2 groups with 20 and 30 items each.
|
|
@@ -33,17 +67,6 @@ export interface NextMenuProps<Item, Group> extends Props {
|
|
|
33
67
|
* @since 11.3.0
|
|
34
68
|
* */
|
|
35
69
|
overscan?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Specifies how each group header gets rendered.
|
|
38
|
-
* The callback receives the zero-based index of the group.
|
|
39
|
-
* @since 11.1.1
|
|
40
|
-
*/
|
|
41
|
-
groupHeaderRenderer?: GroupContent;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies how each item gets rendered.
|
|
44
|
-
* @since 11.1.1
|
|
45
|
-
*/
|
|
46
|
-
menuItemRenderer?: ItemContent<Item, any> | GroupItemContent<Item, any>;
|
|
47
70
|
/**
|
|
48
71
|
* Handler for selecting menu items
|
|
49
72
|
* @since 11.1.1
|
|
@@ -74,14 +97,8 @@ export interface NextMenuItemProps<Item> extends ItemProps {
|
|
|
74
97
|
* @since 11.3.0
|
|
75
98
|
* */
|
|
76
99
|
itemPositionInList: number;
|
|
77
|
-
context?:
|
|
78
|
-
items: Item[];
|
|
79
|
-
/**
|
|
80
|
-
* Handler for selecting menu items
|
|
81
|
-
* @since 11.1.1
|
|
82
|
-
*/
|
|
83
|
-
onSelect?: (event: any) => Item;
|
|
84
|
-
};
|
|
100
|
+
context?: MenuComponentContext<Item>;
|
|
85
101
|
}
|
|
86
102
|
export interface NextMenuGroupProps<Group> extends NextMenuItemProps<Group> {
|
|
87
103
|
}
|
|
104
|
+
export {};
|
|
@@ -26,9 +26,9 @@ import { StyledGroup, StyledItem } from './NextMenu.styles';
|
|
|
26
26
|
* Default representation of item in menu
|
|
27
27
|
* */
|
|
28
28
|
export var NextMenuItem = React.forwardRef(function (_a, ref) {
|
|
29
|
-
var _b;
|
|
29
|
+
var _b, _c, _d, _e;
|
|
30
30
|
var totalSize = _a.totalSize, itemPositionInList = _a["data-item-index"], context = _a.context, props = __rest(_a, ["totalSize", 'data-item-index', "context"]);
|
|
31
|
-
return (React.createElement(StyledItem, __assign({ "aria-setsize": (_b = context === null || context === void 0 ? void 0 : context.items) === null || _b === void 0 ? void 0 : _b.length, "aria-posinset": itemPositionInList + 1, ref: ref }, props)));
|
|
31
|
+
return (React.createElement(StyledItem, __assign({ "aria-setsize": (_b = context === null || context === void 0 ? void 0 : context.items) === null || _b === void 0 ? void 0 : _b.length, "aria-posinset": itemPositionInList + 1, ref: ref }, props), (_e = (_c = context === null || context === void 0 ? void 0 : context.getItemLabel) === null || _c === void 0 ? void 0 : _c.call(context, (_d = context === null || context === void 0 ? void 0 : context.items) === null || _d === void 0 ? void 0 : _d[itemPositionInList])) !== null && _e !== void 0 ? _e : null));
|
|
32
32
|
});
|
|
33
33
|
/**
|
|
34
34
|
* Default representation of group with items in menu
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextMenuItem.js","sourceRoot":"","sources":["../../src/NextMenu/NextMenuItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAG3D;;KAEK;AACL,MAAM,CAAC,IAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAI1C,UACE,EAAyE,EACzE,GAAG;;IADD,IAAA,SAAS,eAAA,EAAuB,kBAAkB,wBAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAAvE,2CAAyE,CAAF;IAGvE,OAAO,CACL,oBAAC,UAAU,6BACK,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,MAAM,mBACrB,kBAAkB,GAAG,CAAC,EACrC,GAAG,EAAE,GAAG,IACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"NextMenuItem.js","sourceRoot":"","sources":["../../src/NextMenu/NextMenuItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAG3D;;KAEK;AACL,MAAM,CAAC,IAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAI1C,UACE,EAAyE,EACzE,GAAG;;IADD,IAAA,SAAS,eAAA,EAAuB,kBAAkB,wBAAA,EAAE,OAAO,aAAA,EAAK,KAAK,cAAvE,2CAAyE,CAAF;IAGvE,OAAO,CACL,oBAAC,UAAU,6BACK,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,MAAM,mBACrB,kBAAkB,GAAG,CAAC,EACrC,GAAG,EAAE,GAAG,IACJ,KAAK,GAER,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,wDAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAG,kBAAkB,CAAC,CAAC,mCAAI,IAAI,CAC3D,CACd,CAAA;AACH,CAAC,CACF,CAAA;AAED;;KAEK;AACL,MAAM,CAAC,IAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAG3C,UAAC,EAAsB,EAAE,GAAG;IAAzB,IAAA,QAAQ,cAAA,EAAK,KAAK,cAApB,YAAsB,CAAF;IACrB,OAAO,CACL,oBAAC,WAAW,aAAC,GAAG,EAAE,GAAG,IAAM,KAAK,GAC7B,QAAQ,CACG,CACf,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -32,14 +32,8 @@ export var planetGroups = [
|
|
|
32
32
|
{ name: 'Kuiper belt', id: 'group_3' },
|
|
33
33
|
];
|
|
34
34
|
export var veggieGroups = [
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
id: -1,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'Legumes',
|
|
41
|
-
id: 1,
|
|
42
|
-
},
|
|
35
|
+
{ name: 'Vegetables', id: -1 },
|
|
36
|
+
{ name: 'Legumes', id: 1 },
|
|
43
37
|
{ name: 'Cabbage', id: 2 },
|
|
44
38
|
{ name: 'Greens', id: 3 },
|
|
45
39
|
{ name: 'Herbs', id: 4 },
|
|
@@ -166,7 +160,6 @@ export var veggies = [
|
|
|
166
160
|
{ name: 'Bitter melon', category: 9 },
|
|
167
161
|
{ name: 'Butternut squash', category: 9 },
|
|
168
162
|
{ name: 'Banana squash', category: 9 },
|
|
169
|
-
{ name: 'Zucchini', aka: ['Courgette'], category: 9 },
|
|
170
163
|
{ name: 'Cucumber', category: 9 },
|
|
171
164
|
{ name: 'Delicata', category: 9 },
|
|
172
165
|
{ name: 'Gem squash', category: 9 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleData.js","sourceRoot":"","sources":["../../src/NextMenu/sampleData.ts"],"names":[],"mappings":"AAAA;gCACgC;;;;;;;;;;;;AAEhC,MAAM,CAAC,IAAM,OAAO,GAAG;IACrB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;IACvC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;IACpC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;IACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE;IACtC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE;IACtC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE;IACvC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE;IACrC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE;IACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE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,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;IAChD,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,EAAE;IACzC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE;CAClC,CAAA;AAED,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,KAAU;IAAV,sBAAA,EAAA,UAAU;IACzC,IAAI,WAAW,GAAU,EAAE,CAAA;4BAClB,CAAC;QACR,OAAO,CAAC,OAAO,CAAC,UAAC,GAAG;YAClB,IAAM,MAAM,gBAAQ,GAAG,CAAE,CAAA;YACzB,MAAM,CAAC,IAAI,GAAG,UAAG,GAAG,CAAC,IAAI,cAAI,CAAC,CAAE,CAAA;YAChC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAA;;IALJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE;gBAArB,CAAC;KAMT;IACD,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Instead of using the default children, you can pass in your own.",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
|
|
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/9b7f5947b/packages/core-react/src/_utils/types.ts#L45"
|
|
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/9b7f5947b/packages/core-react/src/_utils/types.ts#L50"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "icon",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "The icon to display",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The icon to display</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
32
32
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/Avatar/Avatar.types.ts#L49"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "style",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"description": "Additional CSS styles",
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
42
42
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L55"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"description": ""
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"description": "Instead of using the default children, you can pass in your own.",
|
|
57
57
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
|
|
58
58
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
59
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
59
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L45"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"name": "className",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"description": "Additional classNames",
|
|
67
67
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
68
68
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
69
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
69
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L50"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"name": "style",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"description": "Additional CSS styles",
|
|
77
77
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
78
78
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
79
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
79
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L55"
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"description": ""
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"description": "Instead of using the default children, you can pass in your own.",
|
|
93
93
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
|
|
94
94
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
95
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
95
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L45"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "className",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"description": "Additional classNames",
|
|
103
103
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
104
104
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
105
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
105
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L50"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "imageUrl",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "The Avatar rich media url",
|
|
113
113
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The Avatar rich media url</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
114
114
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
115
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
115
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/Avatar/Avatar.types.ts#L57"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"name": "style",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"description": "Additional CSS styles",
|
|
123
123
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
124
124
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
125
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
125
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L55"
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
128
|
"description": ""
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"description": "Instead of using the default children, you can pass in your own.",
|
|
139
139
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Instead of using the default children, you can pass in your own.</p>\n</div></div>",
|
|
140
140
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
141
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
141
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L45"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"name": "className",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"description": "Additional classNames",
|
|
149
149
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
150
150
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
151
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
151
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L50"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "clickable",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets the Avatar's clickable state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd><dt>defaultvalue</dt><dd><p>false</p>\n</dd></dl></div>",
|
|
160
160
|
"defaultValue": "false\n",
|
|
161
161
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
162
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
162
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/Avatar/Avatar.types.ts#L12"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
"name": "disabled",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Sets the Avatar's disabled state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd></dl></div>",
|
|
171
171
|
"defaultValue": "false\n",
|
|
172
172
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
173
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
173
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/Avatar/Avatar.types.ts#L18"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"name": "size",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"deprecated": "\n\nSize \"xl\" has been deprecated and will be removed in a future version.\nPlease use \"lg\" instead of \"xl\".\n\n**Before**\n\n`<Avatar size=\"xl\" />`\n\n**After**\n\n`<Avatar size=\"lg\" />`\n",
|
|
184
184
|
"deprecatedSince": "10.20.0",
|
|
185
185
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
186
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
186
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/Avatar/Avatar.types.ts#L40"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"name": "style",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"description": "Additional CSS styles",
|
|
194
194
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
195
195
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
196
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
196
|
+
"sourceUrl": "https://github.com/procore/core/blob/9b7f5947b/packages/core-react/src/_utils/types.ts#L55"
|
|
197
197
|
}
|
|
198
198
|
],
|
|
199
199
|
"description": ""
|