@procore/core-react 12.9.0 → 12.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  4. package/dist/Badge/Badge.styles.js +2 -2
  5. package/dist/Banner/Banner.styles.js +10 -10
  6. package/dist/Box/Box.styles.js +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  8. package/dist/Button/Button.styles.js +5 -5
  9. package/dist/Calendar/Calendar.styles.js +8 -8
  10. package/dist/Card/Card.styles.js +1 -1
  11. package/dist/Checkbox/Checkbox.styles.js +6 -6
  12. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  13. package/dist/ContactItem/ContactItem.styles.js +5 -5
  14. package/dist/Content/Content.styles.js +2 -2
  15. package/dist/DateInput/DateInput.js +7 -0
  16. package/dist/DateInput/DateInput.js.map +1 -1
  17. package/dist/DateInput/DateInput.styles.js +6 -6
  18. package/dist/DetailPage/DetailPage.styles.js +7 -7
  19. package/dist/Dropdown/Dropdown.styles.js +3 -3
  20. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  21. package/dist/Dropzone/Dropzone.js +1 -1
  22. package/dist/Dropzone/Dropzone.styles.js +9 -9
  23. package/dist/EmptyState/EmptyState.styles.js +6 -6
  24. package/dist/Field/Field.styles.js +3 -3
  25. package/dist/FileList/FileList.styles.js +4 -4
  26. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  27. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  28. package/dist/FileSelect/FileSelect.styles.js +2 -2
  29. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  30. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  31. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  32. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  33. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  34. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  35. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  36. package/dist/FileToken/FileToken.styles.js +4 -4
  37. package/dist/FilterToken/FilterToken.styles.js +2 -2
  38. package/dist/FlexList/FlexList.styles.js +1 -1
  39. package/dist/Form/Form.styles.js +14 -14
  40. package/dist/Form/StyledFormikForm.styles.js +2 -2
  41. package/dist/GhostPlaceholder/GhostPlaceholder.d.ts +4 -0
  42. package/dist/GhostPlaceholder/GhostPlaceholder.js +30 -0
  43. package/dist/GhostPlaceholder/GhostPlaceholder.js.map +1 -0
  44. package/dist/GhostPlaceholder/GhostPlaceholder.styles.d.ts +3 -0
  45. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +20 -0
  46. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js.map +1 -0
  47. package/dist/GhostPlaceholder/GhostPlaceholder.types.d.ts +37 -0
  48. package/dist/GhostPlaceholder/GhostPlaceholder.types.js +2 -0
  49. package/dist/GhostPlaceholder/GhostPlaceholder.types.js.map +1 -0
  50. package/dist/GhostPlaceholder/index.d.ts +3 -0
  51. package/dist/GhostPlaceholder/index.js +3 -0
  52. package/dist/GhostPlaceholder/index.js.map +1 -0
  53. package/dist/Grid/Grid.styles.js +2 -2
  54. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  55. package/dist/Input/Input.styles.js +1 -1
  56. package/dist/Link/Link.styles.js +1 -1
  57. package/dist/ListPage/ListPage.styles.js +8 -8
  58. package/dist/Loader/Loader.styles.js +2 -2
  59. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  60. package/dist/Modal/Modal.styles.js +13 -13
  61. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  62. package/dist/NextMenu/NextMenu.styles.js +3 -3
  63. package/dist/Notation/Notation.js +1 -1
  64. package/dist/NumberInput/NumberInput.styles.js +7 -7
  65. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  66. package/dist/OverlayTrigger/OverlayTrigger.js +2 -2
  67. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  68. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +5 -2
  69. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  70. package/dist/PageLayout/PageLayout.styles.js +16 -16
  71. package/dist/Pagination/Pagination.js +1 -1
  72. package/dist/Pagination/Pagination.js.map +1 -1
  73. package/dist/Pagination/Pagination.styles.js +5 -5
  74. package/dist/Panel/Panel.js +7 -2
  75. package/dist/Panel/Panel.js.map +1 -1
  76. package/dist/Panel/Panel.styles.js +11 -11
  77. package/dist/Pill/Pill.styles.js +2 -2
  78. package/dist/PillSelect/PillSelect.styles.js +4 -4
  79. package/dist/Popover/Popover.styles.js +2 -2
  80. package/dist/Portal/Portal.styles.js +1 -1
  81. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  82. package/dist/RadioButton/RadioButton.styles.js +3 -3
  83. package/dist/Required/Required.styles.js +3 -3
  84. package/dist/Search/Search.styles.js +5 -5
  85. package/dist/Section/Section.styles.js +7 -7
  86. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  87. package/dist/Select/Select.js +4 -1
  88. package/dist/Select/Select.js.map +1 -1
  89. package/dist/Select/Select.styles.js +7 -7
  90. package/dist/Select/Select.types.d.ts +9 -0
  91. package/dist/Select/Select.types.js.map +1 -1
  92. package/dist/Semantic/Semantic.styles.js +9 -9
  93. package/dist/Slider/Slider.styles.js +5 -5
  94. package/dist/Spinner/Spinner.styles.js +7 -7
  95. package/dist/SplitViewCard/SplitViewCard.styles.js +10 -10
  96. package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
  97. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  98. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  99. package/dist/Switch/Switch.styles.js +4 -4
  100. package/dist/Table/Table.styles.js +28 -28
  101. package/dist/TableShelf/TableShelf.styles.js +5 -5
  102. package/dist/Tabs/Tabs.styles.js +15 -15
  103. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  104. package/dist/TextArea/TextArea.styles.js +1 -1
  105. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  106. package/dist/Thumbnail/Thumbnail.hooks.d.ts +4 -2
  107. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  108. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  109. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  110. package/dist/Tile/Tile.styles.js +8 -8
  111. package/dist/Title/Title.styles.js +7 -7
  112. package/dist/Toast/Toast.styles.js +3 -3
  113. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  114. package/dist/Token/Token.styles.js +3 -3
  115. package/dist/ToolHeader/ToolHeader.d.ts +3 -1
  116. package/dist/ToolHeader/ToolHeader.js +3 -1
  117. package/dist/ToolHeader/ToolHeader.js.map +1 -1
  118. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  119. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  120. package/dist/Tooltip/Tooltip.styles.js +2 -2
  121. package/dist/Tree/Tree.styles.js +9 -9
  122. package/dist/Typeahead/Typeahead.styles.js +3 -3
  123. package/dist/Typography/Typography.styles.js +1 -1
  124. package/dist/Typography/Typography.table.story.js +2 -2
  125. package/dist/_hooks/I18n.d.ts +9 -1
  126. package/dist/_hooks/I18n.js +10 -1
  127. package/dist/_hooks/I18n.js.map +1 -1
  128. package/dist/_hooks/getI18nProviderLocale.d.ts +6 -0
  129. package/dist/_hooks/getI18nProviderLocale.js +12 -2
  130. package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
  131. package/dist/_locales/de-DE.json +2 -2
  132. package/dist/_locales/en-AU.json +1 -1
  133. package/dist/_locales/en-CA.json +1 -1
  134. package/dist/_locales/en-GB.json +1 -1
  135. package/dist/_locales/en.json +1 -1
  136. package/dist/_locales/es-ES.json +1 -1
  137. package/dist/_locales/es.json +1 -1
  138. package/dist/_locales/fr-CA.json +2 -2
  139. package/dist/_locales/fr-FR.json +2 -2
  140. package/dist/_locales/is-IS.json +1 -1
  141. package/dist/_locales/ja-JP.json +1 -1
  142. package/dist/_locales/pl-PL.json +3 -0
  143. package/dist/_locales/pseudo.json +1 -1
  144. package/dist/_locales/pt-BR.json +2 -2
  145. package/dist/_locales/th-TH.json +1 -1
  146. package/dist/_locales/zh-SG.json +1 -1
  147. package/dist/_styles/colors.d.ts +1 -2
  148. package/dist/_styles/colors.js.map +1 -1
  149. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  150. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  151. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  152. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  153. package/dist/_typedoc/Box/Box.types.json +68 -68
  154. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  155. package/dist/_typedoc/Button/Button.types.json +12 -12
  156. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  157. package/dist/_typedoc/Card/Card.types.json +6 -6
  158. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  159. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  160. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  161. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  162. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  163. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  164. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  165. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  166. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  167. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  168. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  169. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  170. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  171. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  172. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  173. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  174. package/dist/_typedoc/Form/Form.types.json +766 -726
  175. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +140 -0
  176. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  177. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  178. package/dist/_typedoc/Input/Input.types.json +2 -2
  179. package/dist/_typedoc/Link/Link.types.json +4 -4
  180. package/dist/_typedoc/ListPage/ListPage.json +9 -0
  181. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  182. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  183. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  184. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  185. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  186. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  187. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  188. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +35 -35
  189. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  190. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  191. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  192. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  193. package/dist/_typedoc/PillSelect/PillSelect.types.json +57 -47
  194. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  195. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  196. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  197. package/dist/_typedoc/Required/Required.types.json +5 -5
  198. package/dist/_typedoc/Search/Search.types.json +18 -18
  199. package/dist/_typedoc/Section/Section.types.json +15 -15
  200. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  201. package/dist/_typedoc/Select/Select.types.json +67 -57
  202. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  203. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  204. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  205. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  206. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  207. package/dist/_typedoc/Table/Table.types.json +109 -99
  208. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  209. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  210. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  211. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  212. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  213. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  214. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  215. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  216. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  217. package/dist/_typedoc/Title/Title.types.json +1 -1
  218. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  219. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  220. package/dist/_typedoc/Token/Token.types.json +4 -4
  221. package/dist/_typedoc/ToolHeader/ToolHeader.json +9 -0
  222. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  223. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  224. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  225. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  226. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  227. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  228. package/dist/_typedoc/_utils/types.json +3 -3
  229. package/dist/_typedoc/deprecations.json +1 -1
  230. package/dist/_utils/CalendarHelpers.js +3 -2
  231. package/dist/_utils/CalendarHelpers.js.map +1 -1
  232. package/dist/_utils/TinyMCE.js +2 -1
  233. package/dist/_utils/TinyMCE.js.map +1 -1
  234. package/dist/_utils/propsTypedoc.d.ts +3 -0
  235. package/dist/_utils/propsTypedoc.js +3 -1
  236. package/dist/_utils/propsTypedoc.js.map +1 -1
  237. package/dist/index.d.ts +1 -0
  238. package/dist/index.js +1 -0
  239. package/dist/index.js.map +1 -1
  240. package/package.json +3 -3
@@ -5,11 +5,11 @@ import { spacing } from '../_styles/spacing';
5
5
  var inputHeight = 36;
6
6
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
7
7
  displayName: "StyledInput",
8
- componentId: "core-12_9_0__sc-gpc39h-0"
8
+ componentId: "core-12_11_0__sc-gpc39h-0"
9
9
  })(["", " padding-right:", "px;"], getSearchInputStyles(), spacing.xxl);
10
10
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledIcon",
12
- componentId: "core-12_9_0__sc-gpc39h-1"
12
+ componentId: "core-12_11_0__sc-gpc39h-1"
13
13
  })(["align-items:center;color:", ";display:flex;height:", "px;justify-content:center;pointer-events:", ";position:absolute;right:0;top:0;width:", "px;"], function (p) {
14
14
  return p.disabled ? colors.gray70 : colors.gray45;
15
15
  }, inputHeight, function (p) {
@@ -17,6 +17,6 @@ export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
17
17
  }, inputHeight);
18
18
  export var StyledTypeahead = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledTypeahead",
20
- componentId: "core-12_9_0__sc-gpc39h-2"
20
+ componentId: "core-12_11_0__sc-gpc39h-2"
21
21
  })(["position:relative;width:100%;"]);
22
22
  //# sourceMappingURL=Typeahead.styles.js.map
@@ -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-12_9_0__sc-1c4583t-0"
38
+ componentId: "core-12_11_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-12_9_0__sc-p4v7d-0"
8
+ componentId: "core-12_11_0__sc-p4v7d-0"
9
9
  })([""]);
10
10
  var StyledTextCell = /*#__PURE__*/styled(Table.TextCell).withConfig({
11
11
  displayName: "StyledTextCell",
12
- componentId: "core-12_9_0__sc-p4v7d-1"
12
+ componentId: "core-12_11_0__sc-p4v7d-1"
13
13
  })(["", " color:", ";"], getTypographyIntent('body'), colors.blue50);
14
14
  function BodyCell() {
15
15
  return /*#__PURE__*/React.createElement(StyledBodyCell, {
@@ -1,7 +1,12 @@
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 = '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';
4
+ /**
5
+ * @deprecated this type will no longer be supported from core-i18n-js,
6
+ * to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
7
+ * @deprecatedSince 12.10.0
8
+ */
9
+ 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' | 'pl-PL';
5
10
  export declare const coreTranslations: {
6
11
  readonly 'de-DE': {
7
12
  core: {
@@ -5478,6 +5483,9 @@ export declare const coreTranslations: {
5478
5483
  };
5479
5484
  };
5480
5485
  };
5486
+ readonly 'pl-PL': {
5487
+ core: {};
5488
+ };
5481
5489
  };
5482
5490
  export declare function useI18n({ locale: _locale, translations: _translations, }: I18njsConfig): I18njs;
5483
5491
  export declare const I18nContext: React.Context<I18njs>;
@@ -15,11 +15,19 @@ import frCA from '../_locales/fr-CA.json';
15
15
  import frFR from '../_locales/fr-FR.json';
16
16
  import isIS from '../_locales/is-IS.json';
17
17
  import jaJP from '../_locales/ja-JP.json';
18
+ import plPL from '../_locales/pl-PL.json';
18
19
  import pseudo from '../_locales/pseudo.json';
19
20
  import ptBR from '../_locales/pt-BR.json';
20
21
  import thTH from '../_locales/th-TH.json';
21
22
  import zhSG from '../_locales/zh-SG.json';
22
23
  import { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale';
24
+
25
+ /**
26
+ * @deprecated this type will no longer be supported from core-i18n-js,
27
+ * to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
28
+ * @deprecatedSince 12.10.0
29
+ */
30
+
23
31
  /* Set up i18n-js */
24
32
  export var coreTranslations = {
25
33
  'de-DE': deDE,
@@ -36,7 +44,8 @@ export var coreTranslations = {
36
44
  pseudo: pseudo,
37
45
  'pt-BR': ptBR,
38
46
  'th-TH': thTH,
39
- 'zh-SG': zhSG
47
+ 'zh-SG': zhSG,
48
+ 'pl-PL': plPL
40
49
  };
41
50
  function getValidLocale(_ref) {
42
51
  var locale = _ref.locale,
@@ -1 +1 @@
1
- {"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","pseudo","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","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 pseudo from '../_locales/pseudo.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\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 pseudo,\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\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\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 const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\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,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ACnErC,YAAY,CAAC;EACXsB,MAAM,EAAE,IAAI;EACZC,YAAY,EAAEJ,gBAAgB,CAAE;AAClC,CAAC,CACH,CAAC;;AAED,OAAO,SAASmB,YAAYA,CAAAC,KAAA,EAGmB;EAAA,IAF7CC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IACLC,KAAK,GAAAC,wBAAA,CAAAH,KAAA,EAAAI,SAAA;EAER,oBACEzC,KAAA,CAAA0C,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,GAAG9C,KAAK,CAAC+C,UAAU,CAACb,WAAW,CAAC;EAEzC,IAAI,CAACY,GAAG,EAAE;IACR;IACA;IACA;EAAA;EAGF,OAAOA,GAAG;AACZ"}
1
+ {"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","plPL","pseudo","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","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 plPL from '../_locales/pl-PL.json'\nimport pseudo from '../_locales/pseudo.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\n\n/**\n * @deprecated this type will no longer be supported from core-i18n-js,\n * to have a type safe Locale use TmsSupportedLocale or AllLocales from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\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 | 'pl-PL'\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 pseudo,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n 'pl-PL': plPL,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\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 const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\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,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AA2C,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,GAAG/C,KAAK,CAACgD,UAAU,CAACb,WAAW,CAAC;EAEzC,IAAI,CAACY,GAAG,EAAE;IACR;IACA;IACA;EAAA;EAGF,OAAOA,GAAG;AACZ"}
@@ -1,6 +1,12 @@
1
1
  import type { Locale } from './I18n';
2
+ /**
3
+ * @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
4
+ * @deprecatedSince 12.10.0
5
+ */
2
6
  export declare const OVERWRITE_LOCALE_MAP: Record<string, Locale>;
3
7
  /**
8
+ * @deprecatedSince 12.10.0
9
+ * @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)
4
10
  * Returns the locale that should be used for the I18nProvider based on the environment locale
5
11
  * @param envLocale - the locale from the environment
6
12
  * @returns the locale that should be used for the I18nProvider
@@ -1,10 +1,18 @@
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', 'pseudo', 'pt-BR', 'th-TH', 'zh-SG'];
1
+ // All and only locales that will receive Smartling translations and can be directly fed into <I18nProvider>
2
+ /**
3
+ * @deprecated you can use TMS_SUPPORTED_LOCALE from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
4
+ * @deprecatedSince 12.10.0
5
+ */ // TODO breaking change requiring a new minimum version of the peerDep, replace with GTK imports
6
+ var SUPPORTED_LOCALES = ['de-DE', 'en-AU', 'en-CA', 'en-GB', 'en', 'es-ES', 'es', 'fr-CA', 'fr-FR', 'is-IS', 'ja-JP', 'pl-PL', 'pseudo', 'pt-BR', 'th-TH', 'zh-SG'];
3
7
  /*
4
8
  all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'
5
9
  this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7
6
10
  for any locales that are not listed in SUPPORTED_LOCALES
7
11
  */
12
+ /**
13
+ * @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)
14
+ * @deprecatedSince 12.10.0
15
+ */
8
16
  export var OVERWRITE_LOCALE_MAP = {
9
17
  'en-AE': 'en-GB',
10
18
  'en-SG': 'en-GB',
@@ -12,6 +20,8 @@ export var OVERWRITE_LOCALE_MAP = {
12
20
  };
13
21
 
14
22
  /**
23
+ * @deprecatedSince 12.10.0
24
+ * @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)
15
25
  * Returns the locale that should be used for the I18nProvider based on the environment locale
16
26
  * @param envLocale - the locale from the environment
17
27
  * @returns the locale that should be used for the I18nProvider
@@ -1 +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 'pseudo',\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*/\nexport const 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,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAA4C,GAAG;EAC1D,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"}
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>\n/**\n * @deprecated you can use TMS_SUPPORTED_LOCALE from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\n */\n// TODO breaking change requiring a new minimum version of the peerDep, replace with GTK imports\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 'pl-PL',\n 'pseudo',\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*/\n/**\n * @deprecated you can use OVERWRITE_LOCALE_MAP from [Globalization toolkit](https://github.com/procore/globalization-toolkit)\n * @deprecatedSince 12.10.0\n */\nexport const 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 * @deprecatedSince 12.10.0\n * @deprecated you can use getOverrideLocale from [Globalization toolkit](https://procore.github.io/globalization-toolkit/#md:getoverridelocale-function)\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;AACA;AACA;AACA,GAHA,CAIA;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,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAA4C,GAAG;EAC1D,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChB,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;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"}
@@ -100,7 +100,7 @@
100
100
  "panelTitle" : "Verlinkte Elemente verknüpfen",
101
101
  "search" : "Suchen",
102
102
  "searchItemType" : "Elementtyp suchen",
103
- "submit" : "Verknüpfung",
103
+ "submit" : "Verknüpfen",
104
104
  "toast" : {
105
105
  "itemAdded" : "Das verknüpfte Element wurde erfolgreich verlinkt.",
106
106
  "itemAdditionFailed" : "Leider konnte das Element nicht angehängt werden. Bitte versuchen Sie es erneut.",
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "von",
286
286
  "notation" : "{{start}}–{{end}} von {{totalItems}}",
287
- "page" : "Seite",
287
+ "page" : "Seite:",
288
288
  "nextPage" : "Nächste Seite",
289
289
  "prevPage" : "Vorherige Seite"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "of",
286
286
  "notation" : "{{start}}-{{end}} of {{totalItems}}",
287
- "page" : "Page",
287
+ "page" : "Page:",
288
288
  "nextPage" : "Next page",
289
289
  "prevPage" : "Previous page"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "of",
286
286
  "notation" : "{{start}}-{{end}} of {{totalItems}}",
287
- "page" : "Page",
287
+ "page" : "Page:",
288
288
  "nextPage" : "Next page",
289
289
  "prevPage" : "Previous page"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "of",
286
286
  "notation" : "{{start}}-{{end}} of {{totalItems}}",
287
- "page" : "Page",
287
+ "page" : "Page:",
288
288
  "nextPage" : "Next page",
289
289
  "prevPage" : "Previous page"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination": {
285
285
  "interval": "of",
286
286
  "notation": "{{start}}-{{end}} of {{totalItems}}",
287
- "page": "Page",
287
+ "page": "Page:",
288
288
  "nextPage": "Next page",
289
289
  "prevPage": "Previous page"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "de",
286
286
  "notation" : "{{start}}-{{end}} de {{totalItems}}",
287
- "page" : "Página",
287
+ "page" : "Página:",
288
288
  "nextPage" : "Página siguiente",
289
289
  "prevPage" : "Página anterior"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "de",
286
286
  "notation" : "{{start}}-{{end}} de {{totalItems}}",
287
- "page" : "Página",
287
+ "page" : "Página:",
288
288
  "nextPage" : "Página siguiente",
289
289
  "prevPage" : "Página anterior"
290
290
  },
@@ -137,7 +137,7 @@
137
137
  "resetToDefault" : "Réinitialiser les valeurs par défaut",
138
138
  "rowHeight" : "Hauteur de la rangée",
139
139
  "small" : "Petit",
140
- "medium" : "Moyen",
140
+ "medium" : "Moyenne",
141
141
  "large" : "Grand",
142
142
  "tableSettings" : "Paramètres du tableau"
143
143
  }
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "sur",
286
286
  "notation" : "{{start}} - {{end}} sur {{totalItems}}",
287
- "page" : "Page",
287
+ "page" : "Page :",
288
288
  "nextPage" : "Page suivante",
289
289
  "prevPage" : "Page précédente"
290
290
  },
@@ -137,7 +137,7 @@
137
137
  "resetToDefault" : "Réinitialiser les valeurs par défaut",
138
138
  "rowHeight" : "Hauteur de ligne",
139
139
  "small" : "Petit",
140
- "medium" : "Moyen",
140
+ "medium" : "Moyenne",
141
141
  "large" : "Grand",
142
142
  "tableSettings" : "Paramètres du tableau"
143
143
  }
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "sur",
286
286
  "notation" : "{{start}}-{{end}} sur {{totalItems}}",
287
- "page" : "Page",
287
+ "page" : "Page :",
288
288
  "nextPage" : "Page suivante",
289
289
  "prevPage" : "Page précédente"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "af",
286
286
  "notation" : "{{start}} - {{end}} af {{totalItems}}",
287
- "page" : "Bls",
287
+ "page" : "Síða:",
288
288
  "nextPage" : "Næsta síða",
289
289
  "prevPage" : "Fyrri síða"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "/",
286
286
  "notation" : "{{start}} ~ {{end}} / {{totalItems}}",
287
- "page" : "ページ",
287
+ "page" : "ページ:",
288
288
  "nextPage" : "次のページ",
289
289
  "prevPage" : "前のページ"
290
290
  },
@@ -0,0 +1,3 @@
1
+ {
2
+ "core": {}
3
+ }
@@ -284,7 +284,7 @@
284
284
  "pagination": {
285
285
  "interval": "[ǿƒ]",
286
286
  "notation": "[{{{{{{{{şŧȧřŧ}}-{{ḗƞḓ}} · ǿƒ · {{ŧǿŧȧŀĪŧḗḿş}}}}}}}}]",
287
- "page": "[Ƥȧɠḗ]",
287
+ "page": "[Ƥȧɠḗ:]",
288
288
  "nextPage": "[ȠȠḗẋŧ · ƥȧɠḗḗ]",
289
289
  "prevPage": "[ƤƤƤřḗṽīǿŭş · ƥȧɠḗḗḗ]"
290
290
  },
@@ -33,7 +33,7 @@
33
33
  "emailContentDisclaimer" : "Observação: as informações gerais sobre \"{{title}}\" serão incluídas no corpo deste e-mail.",
34
34
  "recipientSelectPlaceholder" : "Digite para pesquisar pessoas",
35
35
  "emailRecipientRequiredError" : "Insira o destinatário a quem a mensagem será enviada.",
36
- "emailSubjectRequiredError" : "Digite o Assunto a ser enviado.",
36
+ "emailSubjectRequiredError" : "Digite o Assunto a ser Enviado.",
37
37
  "goToAllEmails" : "Todos os E-mails",
38
38
  "sendEmail" : "Enviar",
39
39
  "replyAll" : "Responder a Todos",
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "de",
286
286
  "notation" : "{{start}}-{{end}} de {{totalItems}}",
287
- "page" : "Página",
287
+ "page" : "Página:",
288
288
  "nextPage" : "Próxima página",
289
289
  "prevPage" : "Página anterior"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "ของ",
286
286
  "notation" : "{{start}} - {{end}} จาก {{totalItems}}",
287
- "page" : "หน้า",
287
+ "page" : "หน้าหนังสือ:",
288
288
  "nextPage" : "หน้าต่อไป",
289
289
  "prevPage" : "หน้าก่อน"
290
290
  },
@@ -284,7 +284,7 @@
284
284
  "pagination" : {
285
285
  "interval" : "/",
286
286
  "notation" : "{{start}}-{{end}} / {{totalItems}}",
287
- "page" : "页码",
287
+ "page" : "页码:",
288
288
  "nextPage" : "下一页",
289
289
  "prevPage" : "上一页"
290
290
  },
@@ -1,6 +1,5 @@
1
1
  export declare type Color = 'blue10' | 'blue15' | 'blue20' | 'blue30' | 'blue40' | 'blue45' | 'blue50' | 'blue60' | 'blue70' | 'blue85' | 'blue90' | 'blue94' | 'blue96' | 'blue98' | 'cyan10' | 'cyan15' | 'cyan20' | 'cyan30' | 'cyan40' | 'cyan45' | 'cyan50' | 'cyan60' | 'cyan70' | 'cyan85' | 'cyan90' | 'cyan94' | 'cyan96' | 'cyan98' | 'gray10' | 'gray15' | 'gray20' | 'gray30' | 'gray40' | 'gray45' | 'gray50' | 'gray60' | 'gray70' | 'gray85' | 'gray90' | 'gray94' | 'gray96' | 'gray98' | 'green10' | 'green15' | 'green20' | 'green30' | 'green40' | 'green45' | 'green50' | 'green60' | 'green70' | 'green85' | 'green90' | 'green94' | 'green96' | 'green98' | 'magenta10' | 'magenta15' | 'magenta20' | 'magenta30' | 'magenta40' | 'magenta45' | 'magenta50' | 'magenta60' | 'magenta70' | 'magenta85' | 'magenta90' | 'magenta94' | 'magenta96' | 'magenta98' | 'orange10' | 'orange15' | 'orange20' | 'orange30' | 'orange40' | 'orange45' | 'orange50' | 'orange60' | 'orange70' | 'orange85' | 'orange90' | 'orange94' | 'orange96' | 'orange98' | 'purple10' | 'purple15' | 'purple20' | 'purple30' | 'purple40' | 'purple45' | 'purple50' | 'purple60' | 'purple70' | 'purple85' | 'purple90' | 'purple94' | 'purple96' | 'purple98' | 'red10' | 'red15' | 'red20' | 'red30' | 'red40' | 'red45' | 'red50' | 'red60' | 'red70' | 'red85' | 'red90' | 'red94' | 'red96' | 'red98' | 'yellow10' | 'yellow15' | 'yellow20' | 'yellow30' | 'yellow40' | 'yellow45' | 'yellow50' | 'yellow60' | 'yellow70' | 'yellow85' | 'yellow90' | 'yellow94' | 'yellow96' | 'yellow98' | 'black' | 'white';
2
- declare type ColorPaletteObject = {
2
+ export declare type ColorPaletteObject = {
3
3
  [key in Color]: string;
4
4
  };
5
5
  export declare const colors: ColorPaletteObject;
6
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"colors.js","names":["luminosities","colorGenerator","color","hue","saturation","colorSet","index","key","concat","paletteGenerator","_objectSpread","black","white","colors"],"sources":["../../src/_styles/colors.ts"],"sourcesContent":["export type Color =\n | 'blue10'\n | 'blue15'\n | 'blue20'\n | 'blue30'\n | 'blue40'\n | 'blue45'\n | 'blue50'\n | 'blue60'\n | 'blue70'\n | 'blue85'\n | 'blue90'\n | 'blue94'\n | 'blue96'\n | 'blue98'\n | 'cyan10'\n | 'cyan15'\n | 'cyan20'\n | 'cyan30'\n | 'cyan40'\n | 'cyan45'\n | 'cyan50'\n | 'cyan60'\n | 'cyan70'\n | 'cyan85'\n | 'cyan90'\n | 'cyan94'\n | 'cyan96'\n | 'cyan98'\n | 'gray10'\n | 'gray15'\n | 'gray20'\n | 'gray30'\n | 'gray40'\n | 'gray45'\n | 'gray50'\n | 'gray60'\n | 'gray70'\n | 'gray85'\n | 'gray90'\n | 'gray94'\n | 'gray96'\n | 'gray98'\n | 'green10'\n | 'green15'\n | 'green20'\n | 'green30'\n | 'green40'\n | 'green45'\n | 'green50'\n | 'green60'\n | 'green70'\n | 'green85'\n | 'green90'\n | 'green94'\n | 'green96'\n | 'green98'\n | 'magenta10'\n | 'magenta15'\n | 'magenta20'\n | 'magenta30'\n | 'magenta40'\n | 'magenta45'\n | 'magenta50'\n | 'magenta60'\n | 'magenta70'\n | 'magenta85'\n | 'magenta90'\n | 'magenta94'\n | 'magenta96'\n | 'magenta98'\n | 'orange10'\n | 'orange15'\n | 'orange20'\n | 'orange30'\n | 'orange40'\n | 'orange45'\n | 'orange50'\n | 'orange60'\n | 'orange70'\n | 'orange85'\n | 'orange90'\n | 'orange94'\n | 'orange96'\n | 'orange98'\n | 'purple10'\n | 'purple15'\n | 'purple20'\n | 'purple30'\n | 'purple40'\n | 'purple45'\n | 'purple50'\n | 'purple60'\n | 'purple70'\n | 'purple85'\n | 'purple90'\n | 'purple94'\n | 'purple96'\n | 'purple98'\n | 'red10'\n | 'red15'\n | 'red20'\n | 'red30'\n | 'red40'\n | 'red45'\n | 'red50'\n | 'red60'\n | 'red70'\n | 'red85'\n | 'red90'\n | 'red94'\n | 'red96'\n | 'red98'\n | 'yellow10'\n | 'yellow15'\n | 'yellow20'\n | 'yellow30'\n | 'yellow40'\n | 'yellow45'\n | 'yellow50'\n | 'yellow60'\n | 'yellow70'\n | 'yellow85'\n | 'yellow90'\n | 'yellow94'\n | 'yellow96'\n | 'yellow98'\n | 'black'\n | 'white'\n\nconst luminosities = [10, 15, 20, 30, 40, 45, 50, 60, 70, 85, 90, 94, 96, 98]\n\n// Palette Generation\n\ntype ColorPaletteObject = { [key in Color]: string }\n\nfunction colorGenerator(color: string, hue: number, saturation: number) {\n const colorSet = {} as ColorPaletteObject\n\n for (let index in luminosities) {\n const key = `${color}${luminosities[index]}` as unknown as Color\n\n colorSet[key] = `hsl(${hue}, ${saturation}%, ${luminosities[index]}%)`\n }\n\n return colorSet\n}\n\nfunction paletteGenerator(): ColorPaletteObject {\n return {\n ...colorGenerator('blue', 218, 75),\n ...colorGenerator('cyan', 170, 65),\n ...colorGenerator('gray', 200, 8),\n ...colorGenerator('green', 125, 50),\n ...colorGenerator('magenta', 310, 60),\n ...colorGenerator('orange', 19, 100),\n ...colorGenerator('purple', 288, 43),\n ...colorGenerator('red', 360, 70),\n ...colorGenerator('yellow', 45, 85),\n black: 'black',\n white: 'white',\n }\n}\n\nexport const colors = paletteGenerator()\n"],"mappings":";;;;;;AAkIA,IAAMA,YAAY,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;;AAE7E;;AAIA,SAASC,cAAcA,CAACC,KAAa,EAAEC,GAAW,EAAEC,UAAkB,EAAE;EACtE,IAAMC,QAAQ,GAAG,CAAC,CAAuB;EAEzC,KAAK,IAAIC,KAAK,IAAIN,YAAY,EAAE;IAC9B,IAAMO,GAAG,MAAAC,MAAA,CAAMN,KAAK,EAAAM,MAAA,CAAGR,YAAY,CAACM,KAAK,CAAC,CAAsB;IAEhED,QAAQ,CAACE,GAAG,CAAC,UAAAC,MAAA,CAAUL,GAAG,QAAAK,MAAA,CAAKJ,UAAU,SAAAI,MAAA,CAAMR,YAAY,CAACM,KAAK,CAAC,OAAI;EACxE;EAEA,OAAOD,QAAQ;AACjB;AAEA,SAASI,gBAAgBA,CAAA,EAAuB;EAC9C,OAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,KACKT,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,GAC/BA,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,GAC/BA,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,GAC9BA,cAAc,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,GAChCA,cAAc,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC,GAClCA,cAAc,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,GACjCA,cAAc,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,GACjCA,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAC9BA,cAAc,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACnCU,KAAK,EAAE,OAAO;IACdC,KAAK,EAAE;EAAO;AAElB;AAEA,OAAO,IAAMC,MAAM,GAAGJ,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"colors.js","names":["luminosities","colorGenerator","color","hue","saturation","colorSet","index","key","concat","paletteGenerator","_objectSpread","black","white","colors"],"sources":["../../src/_styles/colors.ts"],"sourcesContent":["export type Color =\n | 'blue10'\n | 'blue15'\n | 'blue20'\n | 'blue30'\n | 'blue40'\n | 'blue45'\n | 'blue50'\n | 'blue60'\n | 'blue70'\n | 'blue85'\n | 'blue90'\n | 'blue94'\n | 'blue96'\n | 'blue98'\n | 'cyan10'\n | 'cyan15'\n | 'cyan20'\n | 'cyan30'\n | 'cyan40'\n | 'cyan45'\n | 'cyan50'\n | 'cyan60'\n | 'cyan70'\n | 'cyan85'\n | 'cyan90'\n | 'cyan94'\n | 'cyan96'\n | 'cyan98'\n | 'gray10'\n | 'gray15'\n | 'gray20'\n | 'gray30'\n | 'gray40'\n | 'gray45'\n | 'gray50'\n | 'gray60'\n | 'gray70'\n | 'gray85'\n | 'gray90'\n | 'gray94'\n | 'gray96'\n | 'gray98'\n | 'green10'\n | 'green15'\n | 'green20'\n | 'green30'\n | 'green40'\n | 'green45'\n | 'green50'\n | 'green60'\n | 'green70'\n | 'green85'\n | 'green90'\n | 'green94'\n | 'green96'\n | 'green98'\n | 'magenta10'\n | 'magenta15'\n | 'magenta20'\n | 'magenta30'\n | 'magenta40'\n | 'magenta45'\n | 'magenta50'\n | 'magenta60'\n | 'magenta70'\n | 'magenta85'\n | 'magenta90'\n | 'magenta94'\n | 'magenta96'\n | 'magenta98'\n | 'orange10'\n | 'orange15'\n | 'orange20'\n | 'orange30'\n | 'orange40'\n | 'orange45'\n | 'orange50'\n | 'orange60'\n | 'orange70'\n | 'orange85'\n | 'orange90'\n | 'orange94'\n | 'orange96'\n | 'orange98'\n | 'purple10'\n | 'purple15'\n | 'purple20'\n | 'purple30'\n | 'purple40'\n | 'purple45'\n | 'purple50'\n | 'purple60'\n | 'purple70'\n | 'purple85'\n | 'purple90'\n | 'purple94'\n | 'purple96'\n | 'purple98'\n | 'red10'\n | 'red15'\n | 'red20'\n | 'red30'\n | 'red40'\n | 'red45'\n | 'red50'\n | 'red60'\n | 'red70'\n | 'red85'\n | 'red90'\n | 'red94'\n | 'red96'\n | 'red98'\n | 'yellow10'\n | 'yellow15'\n | 'yellow20'\n | 'yellow30'\n | 'yellow40'\n | 'yellow45'\n | 'yellow50'\n | 'yellow60'\n | 'yellow70'\n | 'yellow85'\n | 'yellow90'\n | 'yellow94'\n | 'yellow96'\n | 'yellow98'\n | 'black'\n | 'white'\n\nconst luminosities = [10, 15, 20, 30, 40, 45, 50, 60, 70, 85, 90, 94, 96, 98]\n\n// Palette Generation\n\nexport type ColorPaletteObject = { [key in Color]: string }\n\nfunction colorGenerator(color: string, hue: number, saturation: number) {\n const colorSet = {} as ColorPaletteObject\n\n for (let index in luminosities) {\n const key = `${color}${luminosities[index]}` as unknown as Color\n\n colorSet[key] = `hsl(${hue}, ${saturation}%, ${luminosities[index]}%)`\n }\n\n return colorSet\n}\n\nfunction paletteGenerator(): ColorPaletteObject {\n return {\n ...colorGenerator('blue', 218, 75),\n ...colorGenerator('cyan', 170, 65),\n ...colorGenerator('gray', 200, 8),\n ...colorGenerator('green', 125, 50),\n ...colorGenerator('magenta', 310, 60),\n ...colorGenerator('orange', 19, 100),\n ...colorGenerator('purple', 288, 43),\n ...colorGenerator('red', 360, 70),\n ...colorGenerator('yellow', 45, 85),\n black: 'black',\n white: 'white',\n }\n}\n\nexport const colors = paletteGenerator()\n"],"mappings":";;;;;;AAkIA,IAAMA,YAAY,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;;AAE7E;;AAIA,SAASC,cAAcA,CAACC,KAAa,EAAEC,GAAW,EAAEC,UAAkB,EAAE;EACtE,IAAMC,QAAQ,GAAG,CAAC,CAAuB;EAEzC,KAAK,IAAIC,KAAK,IAAIN,YAAY,EAAE;IAC9B,IAAMO,GAAG,MAAAC,MAAA,CAAMN,KAAK,EAAAM,MAAA,CAAGR,YAAY,CAACM,KAAK,CAAC,CAAsB;IAEhED,QAAQ,CAACE,GAAG,CAAC,UAAAC,MAAA,CAAUL,GAAG,QAAAK,MAAA,CAAKJ,UAAU,SAAAI,MAAA,CAAMR,YAAY,CAACM,KAAK,CAAC,OAAI;EACxE;EAEA,OAAOD,QAAQ;AACjB;AAEA,SAASI,gBAAgBA,CAAA,EAAuB;EAC9C,OAAAC,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAAA,aAAA,KACKT,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,GAC/BA,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,GAC/BA,cAAc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