@procore/core-react 11.30.0 → 11.31.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/AnchorNavigation/AnchorNavigation.d.ts +9 -0
- package/dist/AnchorNavigation/AnchorNavigation.js +50 -0
- package/dist/AnchorNavigation/AnchorNavigation.js.map +1 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.d.ts +7 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +29 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js.map +1 -0
- package/dist/AnchorNavigation/index.d.ts +1 -0
- package/dist/AnchorNavigation/index.js +2 -0
- package/dist/AnchorNavigation/index.js.map +1 -0
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.js +0 -7
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +16 -16
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +13 -13
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +1 -36
- package/dist/_hooks/I18n.js +0 -6
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/getI18nProviderLocale.d.ts +7 -0
- package/dist/_hooks/getI18nProviderLocale.js +28 -0
- package/dist/_hooks/getI18nProviderLocale.js.map +1 -0
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +12 -12
- 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 +9 -9
- 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 +37 -37
- 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 +726 -726
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- 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 +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
- 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 +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- 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 +57 -57
- 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 +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- 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 +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- 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 +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- 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 +10 -10
- 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/dist/_utils/CalendarHelpers.js +1 -4
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.js +0 -3
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/_locales/en-US.json +0 -33
- package/dist/_locales/it-IT.json +0 -1
- package/dist/_locales/ko.json +0 -1
|
@@ -35,7 +35,7 @@ export var semiboldRules = function semiboldRules() {
|
|
|
35
35
|
};
|
|
36
36
|
export var StyledTypography = /*#__PURE__*/styled.span.withConfig({
|
|
37
37
|
displayName: "StyledTypography",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-11_31_0__sc-1c4583t-0"
|
|
39
39
|
})(["", " color:", ";font-style:", ";font-weight:", ";", " em,i{font-style:italic;}"], function (_ref) {
|
|
40
40
|
var _ref$intent = _ref.intent,
|
|
41
41
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent;
|
|
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { getTypographyIntent } from './Typography.styles';
|
|
6
6
|
var StyledBodyCell = /*#__PURE__*/styled(Table.BodyCell).withConfig({
|
|
7
7
|
displayName: "StyledBodyCell",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_31_0__sc-p4v7d-0"
|
|
9
9
|
})([""]);
|
|
10
10
|
var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
|
|
11
11
|
displayName: "StyledTextCell",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_31_0__sc-p4v7d-1"
|
|
13
13
|
})(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
|
|
14
14
|
function BodyCell() {
|
|
15
15
|
return /*#__PURE__*/React.createElement(StyledBodyCell, {
|
package/dist/_hooks/I18n.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { I18njs, I18njsConfig } from '@procore/core-i18n-js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare type I18nConfig = Omit<I18njsConfig, 'I18n'>;
|
|
4
|
-
export declare type Locale = '
|
|
4
|
+
export declare type Locale = 'de-DE' | 'en-AE' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-SG' | 'en' | 'es-ES' | 'es' | 'fr-CA' | 'fr-FR' | 'is-IS' | 'ja-JP' | 'pt-BR' | 'th-TH' | 'zh-SG' | 'pseudo';
|
|
5
5
|
export declare const coreTranslations: {
|
|
6
6
|
readonly 'de-DE': {
|
|
7
7
|
core: {
|
|
@@ -1803,39 +1803,6 @@ export declare const coreTranslations: {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
};
|
|
1805
1805
|
};
|
|
1806
|
-
readonly 'en-US': {
|
|
1807
|
-
core: {
|
|
1808
|
-
dropdown: {
|
|
1809
|
-
search: string;
|
|
1810
|
-
};
|
|
1811
|
-
menu: {
|
|
1812
|
-
search: string;
|
|
1813
|
-
};
|
|
1814
|
-
pagination: {
|
|
1815
|
-
interval: string;
|
|
1816
|
-
};
|
|
1817
|
-
required: {
|
|
1818
|
-
requiredFields: string;
|
|
1819
|
-
};
|
|
1820
|
-
select: {
|
|
1821
|
-
search: string;
|
|
1822
|
-
};
|
|
1823
|
-
tabs: {
|
|
1824
|
-
more: string;
|
|
1825
|
-
};
|
|
1826
|
-
tieredSelect: {
|
|
1827
|
-
emptyMessage: string;
|
|
1828
|
-
placeholder: string;
|
|
1829
|
-
quickCreateActionLabel: string;
|
|
1830
|
-
quickCreateCancelLabel: string;
|
|
1831
|
-
quickCreateCreateLabel: string;
|
|
1832
|
-
quickCreatePlaceholder: string;
|
|
1833
|
-
searchEmptyMessage: string;
|
|
1834
|
-
searchPlaceholder: string;
|
|
1835
|
-
spinnerLabel: string;
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
};
|
|
1839
1806
|
readonly es: {
|
|
1840
1807
|
core: {
|
|
1841
1808
|
banner: {
|
|
@@ -3636,7 +3603,6 @@ export declare const coreTranslations: {
|
|
|
3636
3603
|
};
|
|
3637
3604
|
};
|
|
3638
3605
|
};
|
|
3639
|
-
readonly 'it-IT': {};
|
|
3640
3606
|
readonly 'ja-JP': {
|
|
3641
3607
|
core: {
|
|
3642
3608
|
banner: {
|
|
@@ -3997,7 +3963,6 @@ export declare const coreTranslations: {
|
|
|
3997
3963
|
};
|
|
3998
3964
|
};
|
|
3999
3965
|
};
|
|
4000
|
-
readonly ko: {};
|
|
4001
3966
|
readonly 'pt-BR': {
|
|
4002
3967
|
core: {
|
|
4003
3968
|
banner: {
|
package/dist/_hooks/I18n.js
CHANGED
|
@@ -8,16 +8,13 @@ import deDE from '../_locales/de-DE.json';
|
|
|
8
8
|
import enAU from '../_locales/en-AU.json';
|
|
9
9
|
import enCA from '../_locales/en-CA.json';
|
|
10
10
|
import enGB from '../_locales/en-GB.json';
|
|
11
|
-
import enUS from '../_locales/en-US.json';
|
|
12
11
|
import en from '../_locales/en.json';
|
|
13
12
|
import esES from '../_locales/es-ES.json';
|
|
14
13
|
import es from '../_locales/es.json';
|
|
15
14
|
import frCA from '../_locales/fr-CA.json';
|
|
16
15
|
import frFR from '../_locales/fr-FR.json';
|
|
17
16
|
import isIS from '../_locales/is-IS.json';
|
|
18
|
-
import isIT from '../_locales/it-IT.json';
|
|
19
17
|
import jaJP from '../_locales/ja-JP.json';
|
|
20
|
-
import ko from '../_locales/ko.json';
|
|
21
18
|
import ptBR from '../_locales/pt-BR.json';
|
|
22
19
|
import thTH from '../_locales/th-TH.json';
|
|
23
20
|
import zhSG from '../_locales/zh-SG.json';
|
|
@@ -28,15 +25,12 @@ export var coreTranslations = {
|
|
|
28
25
|
'en-AU': enAU,
|
|
29
26
|
'en-CA': enCA,
|
|
30
27
|
'en-GB': enGB,
|
|
31
|
-
'en-US': enUS,
|
|
32
28
|
es: es,
|
|
33
29
|
'es-ES': esES,
|
|
34
30
|
'fr-CA': frCA,
|
|
35
31
|
'fr-FR': frFR,
|
|
36
32
|
'is-IS': isIS,
|
|
37
|
-
'it-IT': isIT,
|
|
38
33
|
'ja-JP': jaJP,
|
|
39
|
-
ko: ko,
|
|
40
34
|
'pt-BR': ptBR,
|
|
41
35
|
'th-TH': thTH,
|
|
42
36
|
'zh-SG': zhSG
|
package/dist/_hooks/I18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","
|
|
1
|
+
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","ptBR","thTH","zhSG","coreTranslations","getValidLocale","_ref","locale","translations","useI18n","_ref2","_locale","_ref2$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref3","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","useI18nContext","ctx","useContext"],"sources":["../../src/_hooks/I18n.tsx"],"sourcesContent":["import type { I18njs, I18njsConfig } from '@procore/core-i18n-js'\nimport { createI18njs } from '@procore/core-i18n-js'\nimport * as R from 'ramda'\nimport React from 'react'\nimport deDE from '../_locales/de-DE.json'\nimport enAU from '../_locales/en-AU.json'\nimport enCA from '../_locales/en-CA.json'\nimport enGB from '../_locales/en-GB.json'\nimport en from '../_locales/en.json'\nimport esES from '../_locales/es-ES.json'\nimport es from '../_locales/es.json'\nimport frCA from '../_locales/fr-CA.json'\nimport frFR from '../_locales/fr-FR.json'\nimport isIS from '../_locales/is-IS.json'\nimport jaJP from '../_locales/ja-JP.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\nexport type Locale =\n | 'de-DE'\n | 'en-AE'\n | 'en-AU'\n | 'en-CA'\n | 'en-GB'\n | 'en-SG'\n | 'en'\n | 'es-ES'\n | 'es'\n | 'fr-CA'\n | 'fr-FR'\n | 'is-IS'\n | 'ja-JP'\n | 'pt-BR'\n | 'th-TH'\n | 'zh-SG'\n | 'pseudo'\n\n/* Set up i18n-js */\nexport const coreTranslations = {\n 'de-DE': deDE,\n en,\n 'en-AU': enAU,\n 'en-CA': enCA,\n 'en-GB': enGB,\n es,\n 'es-ES': esES,\n 'fr-CA': frCA,\n 'fr-FR': frFR,\n 'is-IS': isIS,\n 'ja-JP': jaJP,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nexport function useI18n({\n locale: _locale,\n translations: _translations = {},\n}: I18njsConfig): I18njs {\n const translations = R.mergeDeepLeft(_translations, coreTranslations)\n const locale = getValidLocale({ locale: _locale, translations })\n return createI18njs({\n locale,\n translations,\n })\n}\n\nexport const I18nContext: React.Context<I18njs> = React.createContext(\n createI18njs({\n locale: 'en',\n translations: coreTranslations, // inject our translations\n })\n)\n\nexport function I18nProvider({\n children,\n ...props\n}: I18nConfig & { children: React.ReactNode }) {\n return (\n <I18nContext.Provider value={useI18n(props)}>\n {children}\n </I18nContext.Provider>\n )\n}\n\nexport function useI18nContext() {\n const ctx = React.useContext(I18nContext)\n\n if (!ctx) {\n // TODO investigate a way to do warnings that won't annoy people\n // we probably need to introduce a build system to have nice dev warnings\n // console.warn()\n }\n\n return ctx\n}\n"],"mappings":";;;AACA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,OAAO,KAAKC,CAAC,MAAM,OAAO;AAC1B,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AAuBzC;AACA,OAAO,IAAMC,gBAAgB,GAAG;EAC9B,OAAO,EAAEd,IAAI;EACbI,EAAE,EAAFA,EAAE;EACF,OAAO,EAAEH,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC,IAAI;EACbG,EAAE,EAAFA,EAAE;EACF,OAAO,EAAED,IAAI;EACb,OAAO,EAAEE,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC,IAAI;EACb,OAAO,EAAEC;AACX,CAAU;AAEV,SAASE,cAAcA,CAAAC,IAAA,EAAyC;EAAA,IAAtCC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;EAC5C,OAAOD,MAAM;AACf;AAEA,OAAO,SAASE,OAAOA,CAAAC,KAAA,EAGE;EAAA,IAFfC,OAAO,GAAAD,KAAA,CAAfH,MAAM;IAAAK,kBAAA,GAAAF,KAAA,CACNF,YAAY;IAAEK,aAAa,GAAAD,kBAAA,cAAG,CAAC,CAAC,GAAAA,kBAAA;EAEhC,IAAMJ,YAAY,GAAGpB,CAAC,CAAC0B,aAAa,CAACD,aAAa,EAAET,gBAAgB,CAAC;EACrE,IAAMG,MAAM,GAAGF,cAAc,CAAC;IAAEE,MAAM,EAAEI,OAAO;IAAEH,YAAY,EAAZA;EAAa,CAAC,CAAC;EAChE,OAAOrB,YAAY,CAAC;IAClBoB,MAAM,EAANA,MAAM;IACNC,YAAY,EAAZA;EACF,CAAC,CAAC;AACJ;AAEA,OAAO,IAAMO,WAAkC,gBAAG1B,KAAK,CAAC2B,aAAa,CACnE7B,YAAY,CAAC;EACXoB,MAAM,EAAE,IAAI;EACZC,YAAY,EAAEJ,gBAAgB,CAAE;AAClC,CAAC,CACH,CAAC;;AAED,OAAO,SAASa,YAAYA,CAAAC,KAAA,EAGmB;EAAA,IAF7CC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACLC,KAAK,GAAAC,wBAAA,CAAAH,KAAA,EAAAI,SAAA;EAER,oBACEjC,KAAA,CAAAkC,aAAA,CAACR,WAAW,CAACS,QAAQ;IAACC,KAAK,EAAEhB,OAAO,CAACW,KAAK;EAAE,GACzCD,QACmB,CAAC;AAE3B;AAEA,OAAO,SAASO,cAAcA,CAAA,EAAG;EAC/B,IAAMC,GAAG,GAAGtC,KAAK,CAACuC,UAAU,CAACb,WAAW,CAAC;EAEzC,IAAI,CAACY,GAAG,EAAE;IACR;IACA;IACA;EAAA;EAGF,OAAOA,GAAG;AACZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Locale } from './I18n';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the locale that should be used for the I18nProvider based on the environment locale
|
|
4
|
+
* @param envLocale - the locale from the environment
|
|
5
|
+
* @returns the locale that should be used for the I18nProvider
|
|
6
|
+
*/
|
|
7
|
+
export declare function getI18nProviderLocale(envLocale: string): Locale;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// All and only locales that will receive smartling translations and can be directly fed into <I18nProvider>
|
|
2
|
+
var SUPPORTED_LOCALES = ['de-DE', 'en-AU', 'en-CA', 'en-GB', 'en', 'es-ES', 'es', 'fr-CA', 'fr-FR', 'is-IS', 'ja-JP', 'pt-BR', 'th-TH', 'zh-SG'];
|
|
3
|
+
/*
|
|
4
|
+
all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'
|
|
5
|
+
this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7
|
|
6
|
+
for any locales that are not listed in SUPPORTED_LOCALES
|
|
7
|
+
*/
|
|
8
|
+
var OVERWRITE_LOCALE_MAP = {
|
|
9
|
+
'en-AE': 'en-GB',
|
|
10
|
+
'en-SG': 'en-GB',
|
|
11
|
+
'es-419': 'es'
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns the locale that should be used for the I18nProvider based on the environment locale
|
|
16
|
+
* @param envLocale - the locale from the environment
|
|
17
|
+
* @returns the locale that should be used for the I18nProvider
|
|
18
|
+
*/
|
|
19
|
+
export function getI18nProviderLocale(envLocale) {
|
|
20
|
+
if (SUPPORTED_LOCALES.includes(envLocale)) {
|
|
21
|
+
return envLocale;
|
|
22
|
+
}
|
|
23
|
+
if (OVERWRITE_LOCALE_MAP[envLocale]) {
|
|
24
|
+
return OVERWRITE_LOCALE_MAP[envLocale];
|
|
25
|
+
}
|
|
26
|
+
return 'en';
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=getI18nProviderLocale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getI18nProviderLocale.js","names":["SUPPORTED_LOCALES","OVERWRITE_LOCALE_MAP","getI18nProviderLocale","envLocale","includes"],"sources":["../../src/_hooks/getI18nProviderLocale.ts"],"sourcesContent":["import type { Locale } from './I18n'\n\n// All and only locales that will receive smartling translations and can be directly fed into <I18nProvider>\nconst SUPPORTED_LOCALES: Locale[] = [\n 'de-DE',\n 'en-AU',\n 'en-CA',\n 'en-GB',\n 'en',\n 'es-ES',\n 'es',\n 'fr-CA',\n 'fr-FR',\n 'is-IS',\n 'ja-JP',\n 'pt-BR',\n 'th-TH',\n 'zh-SG',\n]\n/*\n all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'\n this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7\n for any locales that are not listed in SUPPORTED_LOCALES\n*/\nconst OVERWRITE_LOCALE_MAP: Record<string, Locale> = {\n 'en-AE': 'en-GB',\n 'en-SG': 'en-GB',\n 'es-419': 'es',\n} as const\n\n/**\n * Returns the locale that should be used for the I18nProvider based on the environment locale\n * @param envLocale - the locale from the environment\n * @returns the locale that should be used for the I18nProvider\n */\nexport function getI18nProviderLocale(envLocale: string): Locale {\n if (SUPPORTED_LOCALES.includes(envLocale as Locale)) {\n return envLocale as Locale\n }\n if (OVERWRITE_LOCALE_MAP[envLocale]) {\n return OVERWRITE_LOCALE_MAP[envLocale]\n }\n\n return 'en'\n}\n"],"mappings":"AAEA;AACA,IAAMA,iBAA2B,GAAG,CAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA,IAAMC,oBAA4C,GAAG;EACnD,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChB,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACC,SAAiB,EAAU;EAC/D,IAAIH,iBAAiB,CAACI,QAAQ,CAACD,SAAmB,CAAC,EAAE;IACnD,OAAOA,SAAS;EAClB;EACA,IAAIF,oBAAoB,CAACE,SAAS,CAAC,EAAE;IACnC,OAAOF,oBAAoB,CAACE,SAAS,CAAC;EACxC;EAEA,OAAO,IAAI;AACb"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
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/3adb6ed/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/3adb6ed/packages/core-react/src/_utils/types.ts#L47"
|
|
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/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L100"
|
|
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/3adb6ed/packages/core-react/src/_utils/types.ts#L52"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"description": ""
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"description": "",
|
|
57
57
|
"descriptionHtml": "",
|
|
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/3adb6ed/packages/core-react/src/_utils/types.ts#L42"
|
|
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/3adb6ed/packages/core-react/src/_utils/types.ts#L47"
|
|
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/3adb6ed/packages/core-react/src/_utils/types.ts#L52"
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"description": ""
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"description": "",
|
|
93
93
|
"descriptionHtml": "",
|
|
94
94
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
95
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
95
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L12"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "img",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"description": "",
|
|
103
103
|
"descriptionHtml": "",
|
|
104
104
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
105
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
105
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L13"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "link",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "",
|
|
113
113
|
"descriptionHtml": "",
|
|
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/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L14"
|
|
116
116
|
}
|
|
117
117
|
],
|
|
118
118
|
"description": ""
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"description": "",
|
|
129
129
|
"descriptionHtml": "",
|
|
130
130
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
131
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
131
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/_utils/types.ts#L42"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"name": "className",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"description": "Additional classNames",
|
|
139
139
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</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/3adb6ed/packages/core-react/src/_utils/types.ts#L47"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"name": "imageUrl",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"description": "The Avatar rich media url",
|
|
149
149
|
"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>",
|
|
150
150
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
151
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
151
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L108"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "style",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"description": "Additional CSS styles",
|
|
159
159
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
160
160
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
161
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
161
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/_utils/types.ts#L52"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
"description": ""
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"description": "",
|
|
175
175
|
"descriptionHtml": "",
|
|
176
176
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
177
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
177
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/_utils/types.ts#L42"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"name": "className",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"description": "Additional classNames",
|
|
185
185
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div></div>",
|
|
186
186
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
187
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
187
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/_utils/types.ts#L47"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"name": "clickable",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"deprecated": "Reviewing for removal from system, prefer accessible `role` for interactive UI.",
|
|
198
198
|
"deprecatedSince": "TBD",
|
|
199
199
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
200
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
200
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L34"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "disabled",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"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>",
|
|
209
209
|
"defaultValue": "false\n",
|
|
210
210
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
211
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
211
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L40"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"name": "size",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
"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",
|
|
222
222
|
"deprecatedSince": "10.20.0",
|
|
223
223
|
"sourceFile": "packages/core-react/src/Avatar/Avatar.types.ts",
|
|
224
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
224
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/Avatar/Avatar.types.ts#L62"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"name": "style",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"description": "Additional CSS styles",
|
|
232
232
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div></div>",
|
|
233
233
|
"sourceFile": "packages/core-react/src/_utils/types.ts",
|
|
234
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
234
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/_utils/types.ts#L52"
|
|
235
235
|
}
|
|
236
236
|
],
|
|
237
237
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Avatar description",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar description</p>\n</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/AvatarStack/AvatarStack.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L25"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "id",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Avatar ID",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar ID</p>\n</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/AvatarStack/AvatarStack.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L10"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "imageUrl",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Avatar image URL",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar image URL</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/AvatarStack/AvatarStack.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L30"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "inactive",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar inactive state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>false</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
42
42
|
"defaultValue": "false",
|
|
43
43
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
44
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
44
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L46"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "initials",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"description": "Avatar initials",
|
|
52
52
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar initials</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
53
53
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
54
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
54
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L40"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "linkUrl",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"description": "Avatar link URL",
|
|
62
62
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar link URL</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
63
63
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
64
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
64
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L35"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"name": "name",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"description": "Avatar name",
|
|
72
72
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar name</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
73
73
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
74
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
74
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L15"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"name": "type",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"description": "Avatar type",
|
|
82
82
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar type</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
83
83
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
84
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
84
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L20"
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
87
|
"description": ""
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"description": "Avatar stack items",
|
|
98
98
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar stack items</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.22.0</p>\n</dd></dl></div>",
|
|
99
99
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
100
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
100
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L58"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "size",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar stack size</p>\n</div><dl class=\"tsd-comment-tags\"><dt>defaultvalue</dt><dd><p>lg</p>\n</dd><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
109
109
|
"defaultValue": "lg",
|
|
110
110
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
111
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
111
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L80"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "title",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"description": "Avatar stack title",
|
|
119
119
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar stack title</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.19.0</p>\n</dd></dl></div>",
|
|
120
120
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
121
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
121
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L73"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"name": "getImageUrl",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"description": "Avatar item imageURL getter",
|
|
129
129
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar item imageURL getter</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.22.0</p>\n</dd></dl></div>",
|
|
130
130
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
131
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
131
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L63"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"name": "getInitials",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"description": "Avatar item initials getter",
|
|
139
139
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Avatar item initials getter</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.22.0</p>\n</dd></dl></div>",
|
|
140
140
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
141
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
141
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L68"
|
|
142
142
|
}
|
|
143
143
|
],
|
|
144
144
|
"description": ""
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"description": "",
|
|
155
155
|
"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>",
|
|
156
156
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
157
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
157
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L103"
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"name": "items",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"description": "",
|
|
165
165
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.22.0</p>\n</dd></dl></div>",
|
|
166
166
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
167
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
167
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L87"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"name": "restCountLabel",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"description": "",
|
|
175
175
|
"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>",
|
|
176
176
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
177
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
177
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L99"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
"name": "size",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"description": "",
|
|
185
185
|
"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>",
|
|
186
186
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
187
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
187
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L95"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"name": "title",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"description": "",
|
|
195
195
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>11.13.0</p>\n</dd></dl></div>",
|
|
196
196
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
197
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
197
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L107"
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"name": "onClickViewAll",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"description": "",
|
|
205
205
|
"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>",
|
|
206
206
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
207
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
207
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L91"
|
|
208
208
|
}
|
|
209
209
|
],
|
|
210
210
|
"description": ""
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"description": "",
|
|
221
221
|
"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>",
|
|
222
222
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
223
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
223
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L122"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
"name": "items",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"description": "",
|
|
231
231
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.22.0</p>\n</dd></dl></div>",
|
|
232
232
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
233
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
233
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L114"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"name": "title",
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"description": "",
|
|
241
241
|
"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>",
|
|
242
242
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
243
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
243
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L126"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
"name": "onClose",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"description": "",
|
|
251
251
|
"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>",
|
|
252
252
|
"sourceFile": "packages/core-react/src/AvatarStack/AvatarStack.types.ts",
|
|
253
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
253
|
+
"sourceUrl": "https://github.com/procore/core/blob/3adb6ed/packages/core-react/src/AvatarStack/AvatarStack.types.ts#L118"
|
|
254
254
|
}
|
|
255
255
|
],
|
|
256
256
|
"description": ""
|