@sis-cc/dotstatsuite-components 22.0.0 → 22.0.2

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 (686) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +35 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +12 -0
  4. package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  5. package/dist/_virtual/colorManipulator.js +6 -0
  6. package/dist/_virtual/colorManipulator.js.map +1 -0
  7. package/dist/_virtual/colorManipulator2.js +4 -0
  8. package/dist/_virtual/colorManipulator2.js.map +1 -0
  9. package/dist/_virtual/index.js +8 -0
  10. package/dist/_virtual/index.js.map +1 -0
  11. package/dist/_virtual/index10.js +8 -0
  12. package/dist/_virtual/index10.js.map +1 -0
  13. package/dist/_virtual/index11.js +8 -0
  14. package/dist/_virtual/index11.js.map +1 -0
  15. package/dist/_virtual/index12.js +8 -0
  16. package/dist/_virtual/index12.js.map +1 -0
  17. package/dist/_virtual/index13.js +8 -0
  18. package/dist/_virtual/index13.js.map +1 -0
  19. package/dist/_virtual/index14.js +8 -0
  20. package/dist/_virtual/index14.js.map +1 -0
  21. package/dist/_virtual/index15.js +8 -0
  22. package/dist/_virtual/index15.js.map +1 -0
  23. package/dist/_virtual/index16.js +8 -0
  24. package/dist/_virtual/index16.js.map +1 -0
  25. package/dist/_virtual/index17.js +7 -0
  26. package/dist/_virtual/index17.js.map +1 -0
  27. package/dist/_virtual/index18.js +7 -0
  28. package/dist/_virtual/index18.js.map +1 -0
  29. package/dist/_virtual/index19.js +8 -0
  30. package/dist/_virtual/index19.js.map +1 -0
  31. package/dist/_virtual/index2.js +8 -0
  32. package/dist/_virtual/index2.js.map +1 -0
  33. package/dist/_virtual/index20.js +4 -0
  34. package/dist/_virtual/index20.js.map +1 -0
  35. package/dist/_virtual/index21.js +6 -0
  36. package/dist/_virtual/index21.js.map +1 -0
  37. package/dist/_virtual/index22.js +4 -0
  38. package/dist/_virtual/index22.js.map +1 -0
  39. package/dist/_virtual/index23.js +4 -0
  40. package/dist/_virtual/index23.js.map +1 -0
  41. package/dist/_virtual/index3.js +8 -0
  42. package/dist/_virtual/index3.js.map +1 -0
  43. package/dist/_virtual/index4.js +8 -0
  44. package/dist/_virtual/index4.js.map +1 -0
  45. package/dist/_virtual/index5.js +8 -0
  46. package/dist/_virtual/index5.js.map +1 -0
  47. package/dist/_virtual/index6.js +8 -0
  48. package/dist/_virtual/index6.js.map +1 -0
  49. package/dist/_virtual/index7.js +8 -0
  50. package/dist/_virtual/index7.js.map +1 -0
  51. package/dist/_virtual/index8.js +8 -0
  52. package/dist/_virtual/index8.js.map +1 -0
  53. package/dist/_virtual/index9.js +8 -0
  54. package/dist/_virtual/index9.js.map +1 -0
  55. package/dist/_virtual/interopRequireDefault.js +4 -0
  56. package/dist/_virtual/interopRequireDefault.js.map +1 -0
  57. package/dist/_virtual/jsx-runtime.js +4 -0
  58. package/dist/_virtual/jsx-runtime.js.map +1 -0
  59. package/dist/_virtual/jsx-runtime2.js +6 -0
  60. package/dist/_virtual/jsx-runtime2.js.map +1 -0
  61. package/dist/_virtual/react-is.development.js +4 -0
  62. package/dist/_virtual/react-is.development.js.map +1 -0
  63. package/dist/_virtual/react-is.development2.js +4 -0
  64. package/dist/_virtual/react-is.development2.js.map +1 -0
  65. package/dist/_virtual/react-is.production.js +4 -0
  66. package/dist/_virtual/react-is.production.js.map +1 -0
  67. package/dist/_virtual/react-is.production.min.js +4 -0
  68. package/dist/_virtual/react-is.production.min.js.map +1 -0
  69. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  70. package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
  71. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
  72. package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  73. package/dist/bridge-d3-react/src/index.js +18 -0
  74. package/dist/bridge-d3-react/src/index.js.map +1 -0
  75. package/dist/bridge-d3-react/src/react-chart-factory.js +44 -0
  76. package/dist/bridge-d3-react/src/react-chart-factory.js.map +1 -0
  77. package/dist/index.js +6 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
  80. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
  81. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +8 -0
  82. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
  83. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  84. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  85. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +16 -0
  86. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
  87. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  88. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  89. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -0
  90. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  91. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
  92. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
  93. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
  94. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
  95. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  96. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  97. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  98. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  99. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +11 -0
  100. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
  101. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +15 -0
  102. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
  103. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +10 -0
  104. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
  105. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
  106. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  107. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
  108. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
  109. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +20 -0
  110. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js.map +1 -0
  111. package/dist/node_modules/@mui/material/colors/blue.js +9 -0
  112. package/dist/node_modules/@mui/material/colors/blue.js.map +1 -0
  113. package/dist/node_modules/@mui/material/colors/common.js +7 -0
  114. package/dist/node_modules/@mui/material/colors/common.js.map +1 -0
  115. package/dist/node_modules/@mui/material/colors/green.js +10 -0
  116. package/dist/node_modules/@mui/material/colors/green.js.map +1 -0
  117. package/dist/node_modules/@mui/material/colors/grey.js +19 -0
  118. package/dist/node_modules/@mui/material/colors/grey.js.map +1 -0
  119. package/dist/node_modules/@mui/material/colors/lightBlue.js +9 -0
  120. package/dist/node_modules/@mui/material/colors/lightBlue.js.map +1 -0
  121. package/dist/node_modules/@mui/material/colors/orange.js +9 -0
  122. package/dist/node_modules/@mui/material/colors/orange.js.map +1 -0
  123. package/dist/node_modules/@mui/material/colors/purple.js +10 -0
  124. package/dist/node_modules/@mui/material/colors/purple.js.map +1 -0
  125. package/dist/node_modules/@mui/material/colors/red.js +9 -0
  126. package/dist/node_modules/@mui/material/colors/red.js.map +1 -0
  127. package/dist/node_modules/@mui/material/styles/createMixins.js +20 -0
  128. package/dist/node_modules/@mui/material/styles/createMixins.js.map +1 -0
  129. package/dist/node_modules/@mui/material/styles/createPalette.js +309 -0
  130. package/dist/node_modules/@mui/material/styles/createPalette.js.map +1 -0
  131. package/dist/node_modules/@mui/material/styles/createTheme.js +86 -0
  132. package/dist/node_modules/@mui/material/styles/createTheme.js.map +1 -0
  133. package/dist/node_modules/@mui/material/styles/createTransitions.js +92 -0
  134. package/dist/node_modules/@mui/material/styles/createTransitions.js.map +1 -0
  135. package/dist/node_modules/@mui/material/styles/createTypography.js +94 -0
  136. package/dist/node_modules/@mui/material/styles/createTypography.js.map +1 -0
  137. package/dist/node_modules/@mui/material/styles/defaultTheme.js +6 -0
  138. package/dist/node_modules/@mui/material/styles/defaultTheme.js.map +1 -0
  139. package/dist/node_modules/@mui/material/styles/identifier.js +4 -0
  140. package/dist/node_modules/@mui/material/styles/identifier.js.map +1 -0
  141. package/dist/node_modules/@mui/material/styles/shadows.js +12 -0
  142. package/dist/node_modules/@mui/material/styles/shadows.js.map +1 -0
  143. package/dist/node_modules/@mui/material/styles/useTheme.js +16 -0
  144. package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -0
  145. package/dist/node_modules/@mui/material/styles/zIndex.js +15 -0
  146. package/dist/node_modules/@mui/material/styles/zIndex.js.map +1 -0
  147. package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +5 -0
  148. package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +1 -0
  149. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +9 -0
  150. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +1 -0
  151. package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +14 -0
  152. package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js.map +1 -0
  153. package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js +151 -0
  154. package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js.map +1 -0
  155. package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js +66 -0
  156. package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js.map +1 -0
  157. package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js +52 -0
  158. package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js.map +1 -0
  159. package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js +5 -0
  160. package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js.map +1 -0
  161. package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js +21 -0
  162. package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js.map +1 -0
  163. package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js +22 -0
  164. package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js.map +1 -0
  165. package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js +230 -0
  166. package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js.map +1 -0
  167. package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js +23 -0
  168. package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js.map +1 -0
  169. package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js +37 -0
  170. package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js.map +1 -0
  171. package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js +31 -0
  172. package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js.map +1 -0
  173. package/dist/node_modules/@mui/styles/useTheme/index.js +10 -0
  174. package/dist/node_modules/@mui/styles/useTheme/index.js.map +1 -0
  175. package/dist/node_modules/@mui/system/colorManipulator.js +386 -0
  176. package/dist/node_modules/@mui/system/colorManipulator.js.map +1 -0
  177. package/dist/node_modules/@mui/system/esm/borders.js +52 -0
  178. package/dist/node_modules/@mui/system/esm/borders.js.map +1 -0
  179. package/dist/node_modules/@mui/system/esm/breakpoints.js +67 -0
  180. package/dist/node_modules/@mui/system/esm/breakpoints.js.map +1 -0
  181. package/dist/node_modules/@mui/system/esm/compose.js +27 -0
  182. package/dist/node_modules/@mui/system/esm/compose.js.map +1 -0
  183. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +77 -0
  184. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
  185. package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +83 -0
  186. package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js.map +1 -0
  187. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js +35 -0
  188. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
  189. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +46 -0
  190. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
  191. package/dist/node_modules/@mui/system/esm/createTheme/shape.js +6 -0
  192. package/dist/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
  193. package/dist/node_modules/@mui/system/esm/cssGrid.js +87 -0
  194. package/dist/node_modules/@mui/system/esm/cssGrid.js.map +1 -0
  195. package/dist/node_modules/@mui/system/esm/memoize.js +12 -0
  196. package/dist/node_modules/@mui/system/esm/memoize.js.map +1 -0
  197. package/dist/node_modules/@mui/system/esm/merge.js +13 -0
  198. package/dist/node_modules/@mui/system/esm/merge.js.map +1 -0
  199. package/dist/node_modules/@mui/system/esm/palette.js +29 -0
  200. package/dist/node_modules/@mui/system/esm/palette.js.map +1 -0
  201. package/dist/node_modules/@mui/system/esm/responsivePropType.js +6 -0
  202. package/dist/node_modules/@mui/system/esm/responsivePropType.js.map +1 -0
  203. package/dist/node_modules/@mui/system/esm/sizing.js +68 -0
  204. package/dist/node_modules/@mui/system/esm/sizing.js.map +1 -0
  205. package/dist/node_modules/@mui/system/esm/spacing.js +145 -0
  206. package/dist/node_modules/@mui/system/esm/spacing.js.map +1 -0
  207. package/dist/node_modules/@mui/system/esm/style.js +78 -0
  208. package/dist/node_modules/@mui/system/esm/style.js.map +1 -0
  209. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +294 -0
  210. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
  211. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +137 -0
  212. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
  213. package/dist/node_modules/@mui/system/esm/useTheme.js +10 -0
  214. package/dist/node_modules/@mui/system/esm/useTheme.js.map +1 -0
  215. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js +13 -0
  216. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -0
  217. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +19 -0
  218. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  219. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js +15 -0
  220. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  221. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js +6 -0
  222. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
  223. package/dist/node_modules/@mui/utils/esm/clamp/index.js +2 -0
  224. package/dist/node_modules/@mui/utils/esm/clamp/index.js.map +1 -0
  225. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +46 -0
  226. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  227. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js +24 -0
  228. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  229. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +22 -0
  230. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  231. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js +2 -0
  232. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js.map +1 -0
  233. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +23 -0
  234. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  235. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +50 -0
  236. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  237. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +143 -0
  238. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  239. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +140 -0
  240. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  241. package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +20 -0
  242. package/dist/node_modules/@mui/utils/node_modules/react-is/index.js.map +1 -0
  243. package/dist/node_modules/css-vendor/dist/css-vendor.esm.js +574 -0
  244. package/dist/node_modules/css-vendor/dist/css-vendor.esm.js.map +1 -0
  245. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js +32 -0
  246. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js.map +1 -0
  247. package/dist/node_modules/date-fns/get_iso_week/index.js +49 -0
  248. package/dist/node_modules/date-fns/get_iso_week/index.js.map +1 -0
  249. package/dist/node_modules/date-fns/get_iso_year/index.js +59 -0
  250. package/dist/node_modules/date-fns/get_iso_year/index.js.map +1 -0
  251. package/dist/node_modules/date-fns/is_date/index.js +32 -0
  252. package/dist/node_modules/date-fns/is_date/index.js.map +1 -0
  253. package/dist/node_modules/date-fns/is_friday/index.js +35 -0
  254. package/dist/node_modules/date-fns/is_friday/index.js.map +1 -0
  255. package/dist/node_modules/date-fns/is_monday/index.js +35 -0
  256. package/dist/node_modules/date-fns/is_monday/index.js.map +1 -0
  257. package/dist/node_modules/date-fns/is_saturday/index.js +35 -0
  258. package/dist/node_modules/date-fns/is_saturday/index.js.map +1 -0
  259. package/dist/node_modules/date-fns/is_sunday/index.js +35 -0
  260. package/dist/node_modules/date-fns/is_sunday/index.js.map +1 -0
  261. package/dist/node_modules/date-fns/is_thursday/index.js +35 -0
  262. package/dist/node_modules/date-fns/is_thursday/index.js.map +1 -0
  263. package/dist/node_modules/date-fns/is_tuesday/index.js +35 -0
  264. package/dist/node_modules/date-fns/is_tuesday/index.js.map +1 -0
  265. package/dist/node_modules/date-fns/is_wednesday/index.js +35 -0
  266. package/dist/node_modules/date-fns/is_wednesday/index.js.map +1 -0
  267. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js +39 -0
  268. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js.map +1 -0
  269. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js +110 -0
  270. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js.map +1 -0
  271. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js +86 -0
  272. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js.map +1 -0
  273. package/dist/node_modules/date-fns/locale/ar/index.js +26 -0
  274. package/dist/node_modules/date-fns/locale/ar/index.js.map +1 -0
  275. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js +196 -0
  276. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js.map +1 -0
  277. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js +90 -0
  278. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js.map +1 -0
  279. package/dist/node_modules/date-fns/locale/de/index.js +27 -0
  280. package/dist/node_modules/date-fns/locale/de/index.js.map +1 -0
  281. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js +110 -0
  282. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js.map +1 -0
  283. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js +101 -0
  284. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js.map +1 -0
  285. package/dist/node_modules/date-fns/locale/en/index.js +25 -0
  286. package/dist/node_modules/date-fns/locale/en/index.js.map +1 -0
  287. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js +110 -0
  288. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js.map +1 -0
  289. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js +86 -0
  290. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js.map +1 -0
  291. package/dist/node_modules/date-fns/locale/es/index.js +28 -0
  292. package/dist/node_modules/date-fns/locale/es/index.js.map +1 -0
  293. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js +110 -0
  294. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js.map +1 -0
  295. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js +135 -0
  296. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js.map +1 -0
  297. package/dist/node_modules/date-fns/locale/fr/index.js +27 -0
  298. package/dist/node_modules/date-fns/locale/fr/index.js.map +1 -0
  299. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js +110 -0
  300. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js.map +1 -0
  301. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js +86 -0
  302. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js.map +1 -0
  303. package/dist/node_modules/date-fns/locale/it/index.js +26 -0
  304. package/dist/node_modules/date-fns/locale/it/index.js.map +1 -0
  305. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js +110 -0
  306. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js.map +1 -0
  307. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js +86 -0
  308. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js.map +1 -0
  309. package/dist/node_modules/date-fns/locale/nl/index.js +27 -0
  310. package/dist/node_modules/date-fns/locale/nl/index.js.map +1 -0
  311. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js +114 -0
  312. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js.map +1 -0
  313. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js +74 -0
  314. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js.map +1 -0
  315. package/dist/node_modules/date-fns/locale/th/index.js +26 -0
  316. package/dist/node_modules/date-fns/locale/th/index.js.map +1 -0
  317. package/dist/node_modules/date-fns/parse/index.js +346 -0
  318. package/dist/node_modules/date-fns/parse/index.js.map +1 -0
  319. package/dist/node_modules/date-fns/start_of_iso_week/index.js +38 -0
  320. package/dist/node_modules/date-fns/start_of_iso_week/index.js.map +1 -0
  321. package/dist/node_modules/date-fns/start_of_iso_year/index.js +46 -0
  322. package/dist/node_modules/date-fns/start_of_iso_year/index.js.map +1 -0
  323. package/dist/node_modules/date-fns/start_of_week/index.js +51 -0
  324. package/dist/node_modules/date-fns/start_of_week/index.js.map +1 -0
  325. package/dist/node_modules/hyphenate-style-name/index.js +20 -0
  326. package/dist/node_modules/hyphenate-style-name/index.js.map +1 -0
  327. package/dist/node_modules/is-in-browser/dist/module.js +6 -0
  328. package/dist/node_modules/is-in-browser/dist/module.js.map +1 -0
  329. package/dist/node_modules/jss/dist/jss.esm.js +2220 -0
  330. package/dist/node_modules/jss/dist/jss.esm.js.map +1 -0
  331. package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js +60 -0
  332. package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js.map +1 -0
  333. package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js +252 -0
  334. package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js.map +1 -0
  335. package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js +187 -0
  336. package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js.map +1 -0
  337. package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js +114 -0
  338. package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js.map +1 -0
  339. package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js +29 -0
  340. package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js.map +1 -0
  341. package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js +66 -0
  342. package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js.map +1 -0
  343. package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js +58 -0
  344. package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js.map +1 -0
  345. package/dist/node_modules/object-assign/index.js +100 -0
  346. package/dist/node_modules/object-assign/index.js.map +1 -0
  347. package/dist/node_modules/prop-types/checkPropTypes.js +116 -0
  348. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
  349. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  350. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  351. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
  352. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  353. package/dist/node_modules/prop-types/index.js +34 -0
  354. package/dist/node_modules/prop-types/index.js.map +1 -0
  355. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  356. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  357. package/dist/node_modules/prop-types/lib/has.js +12 -0
  358. package/dist/node_modules/prop-types/lib/has.js.map +1 -0
  359. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
  360. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  361. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
  362. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  363. package/dist/node_modules/react/jsx-runtime.js +20 -0
  364. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  365. package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
  366. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  367. package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  368. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  369. package/dist/node_modules/react-is/index.js +20 -0
  370. package/dist/node_modules/react-is/index.js.map +1 -0
  371. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +18 -0
  372. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js.map +1 -0
  373. package/dist/rules/src/chart/getAxisOptions.js +256 -0
  374. package/dist/rules/src/chart/getAxisOptions.js.map +1 -0
  375. package/dist/rules/src/chart/getBaseOptions.js +77 -0
  376. package/dist/rules/src/chart/getBaseOptions.js.map +1 -0
  377. package/dist/rules/src/chart/getChartOptions.js +120 -0
  378. package/dist/rules/src/chart/getChartOptions.js.map +1 -0
  379. package/dist/rules/src/chart/getGridOptions.js +46 -0
  380. package/dist/rules/src/chart/getGridOptions.js.map +1 -0
  381. package/dist/rules/src/chart/getTooltipOptions.js +223 -0
  382. package/dist/rules/src/chart/getTooltipOptions.js.map +1 -0
  383. package/dist/rules/src/constants.js +65 -0
  384. package/dist/rules/src/constants.js.map +1 -0
  385. package/dist/rules/src/date.js +121 -0
  386. package/dist/rules/src/date.js.map +1 -0
  387. package/dist/rules/src/dimension-utils.js +57 -0
  388. package/dist/rules/src/dimension-utils.js.map +1 -0
  389. package/dist/rules/src/factories/choro-series.js +68 -0
  390. package/dist/rules/src/factories/choro-series.js.map +1 -0
  391. package/dist/rules/src/factories/sample-focus.js +25 -0
  392. package/dist/rules/src/factories/sample-focus.js.map +1 -0
  393. package/dist/rules/src/factories/sample-series.js +53 -0
  394. package/dist/rules/src/factories/sample-series.js.map +1 -0
  395. package/dist/rules/src/factories/scatter-dimension.js +35 -0
  396. package/dist/rules/src/factories/scatter-dimension.js.map +1 -0
  397. package/dist/rules/src/factories/scatter-focus.js +42 -0
  398. package/dist/rules/src/factories/scatter-focus.js.map +1 -0
  399. package/dist/rules/src/factories/scatter-series.js +91 -0
  400. package/dist/rules/src/factories/scatter-series.js.map +1 -0
  401. package/dist/rules/src/factories/stacked-dimension.js +32 -0
  402. package/dist/rules/src/factories/stacked-dimension.js.map +1 -0
  403. package/dist/rules/src/factories/stacked-series.js +188 -0
  404. package/dist/rules/src/factories/stacked-series.js.map +1 -0
  405. package/dist/rules/src/factories/symbol-dimension.js +32 -0
  406. package/dist/rules/src/factories/symbol-dimension.js.map +1 -0
  407. package/dist/rules/src/factories/symbol-series.js +65 -0
  408. package/dist/rules/src/factories/symbol-series.js.map +1 -0
  409. package/dist/rules/src/factories/timeline-focus.js +21 -0
  410. package/dist/rules/src/factories/timeline-focus.js.map +1 -0
  411. package/dist/rules/src/factories/timeline-series.js +94 -0
  412. package/dist/rules/src/factories/timeline-series.js.map +1 -0
  413. package/dist/rules/src/get-values-enhanced.js +133 -0
  414. package/dist/rules/src/get-values-enhanced.js.map +1 -0
  415. package/dist/rules/src/header/getDefaultSubtitle.js +44 -0
  416. package/dist/rules/src/header/getDefaultSubtitle.js.map +1 -0
  417. package/dist/rules/src/header/getHeaderUnits.js +21 -0
  418. package/dist/rules/src/header/getHeaderUnits.js.map +1 -0
  419. package/dist/rules/src/header/getSubtitleFlags.js +47 -0
  420. package/dist/rules/src/header/getSubtitleFlags.js.map +1 -0
  421. package/dist/rules/src/header/getTitleFlags.js +12 -0
  422. package/dist/rules/src/header/getTitleFlags.js.map +1 -0
  423. package/dist/rules/src/index.js +378 -0
  424. package/dist/rules/src/index.js.map +1 -0
  425. package/dist/rules/src/layout.js +107 -0
  426. package/dist/rules/src/layout.js.map +1 -0
  427. package/dist/rules/src/observation-formater.js +86 -0
  428. package/dist/rules/src/observation-formater.js.map +1 -0
  429. package/dist/rules/src/preparators/formatValue.js +96 -0
  430. package/dist/rules/src/preparators/formatValue.js.map +1 -0
  431. package/dist/rules/src/preparators/getObservations.js +22 -0
  432. package/dist/rules/src/preparators/getObservations.js.map +1 -0
  433. package/dist/rules/src/preparators/getReportingYearStart.js +19 -0
  434. package/dist/rules/src/preparators/getReportingYearStart.js.map +1 -0
  435. package/dist/rules/src/properties/errors.js +22 -0
  436. package/dist/rules/src/properties/errors.js.map +1 -0
  437. package/dist/rules/src/properties/focus.js +72 -0
  438. package/dist/rules/src/properties/focus.js.map +1 -0
  439. package/dist/rules/src/properties/getAvailableChartTypes.js +31 -0
  440. package/dist/rules/src/properties/getAvailableChartTypes.js.map +1 -0
  441. package/dist/rules/src/properties/getHeaderProps.js +76 -0
  442. package/dist/rules/src/properties/getHeaderProps.js.map +1 -0
  443. package/dist/rules/src/properties/getInformationsStateFromNewProps.js +50 -0
  444. package/dist/rules/src/properties/getInformationsStateFromNewProps.js.map +1 -0
  445. package/dist/rules/src/properties/getObservationsType.js +28 -0
  446. package/dist/rules/src/properties/getObservationsType.js.map +1 -0
  447. package/dist/rules/src/properties/getStringifiedSubtitle.js +9 -0
  448. package/dist/rules/src/properties/getStringifiedSubtitle.js.map +1 -0
  449. package/dist/rules/src/properties/index.js +384 -0
  450. package/dist/rules/src/properties/index.js.map +1 -0
  451. package/dist/rules/src/properties/linear.js +123 -0
  452. package/dist/rules/src/properties/linear.js.map +1 -0
  453. package/dist/rules/src/properties/scatter.js +156 -0
  454. package/dist/rules/src/properties/scatter.js.map +1 -0
  455. package/dist/rules/src/properties/stacked.js +96 -0
  456. package/dist/rules/src/properties/stacked.js.map +1 -0
  457. package/dist/rules/src/properties/symbol.js +76 -0
  458. package/dist/rules/src/properties/symbol.js.map +1 -0
  459. package/dist/rules/src/properties/utils.js +86 -0
  460. package/dist/rules/src/properties/utils.js.map +1 -0
  461. package/dist/rules/src/sdmx-data/index.js +38 -0
  462. package/dist/rules/src/sdmx-data/index.js.map +1 -0
  463. package/dist/rules/src/table/factories/getCellValue.js +53 -0
  464. package/dist/rules/src/table/factories/getCellValue.js.map +1 -0
  465. package/dist/rules/src/v8-transformer.js +174 -0
  466. package/dist/rules/src/v8-transformer.js.map +1 -0
  467. package/dist/rules2/src/applyHierarchicalCodesToDim.js +126 -0
  468. package/dist/rules2/src/applyHierarchicalCodesToDim.js.map +1 -0
  469. package/dist/rules2/src/combinedValuesDisplay.js +77 -0
  470. package/dist/rules2/src/combinedValuesDisplay.js.map +1 -0
  471. package/dist/rules2/src/constants.js +9 -0
  472. package/dist/rules2/src/constants.js.map +1 -0
  473. package/dist/rules2/src/duplicateObservations.js +38 -0
  474. package/dist/rules2/src/duplicateObservations.js.map +1 -0
  475. package/dist/rules2/src/enhanceObservations.js +98 -0
  476. package/dist/rules2/src/enhanceObservations.js.map +1 -0
  477. package/dist/rules2/src/getAttributesSeries.js +39 -0
  478. package/dist/rules2/src/getAttributesSeries.js.map +1 -0
  479. package/dist/rules2/src/getCombinationDefinitions.js +50 -0
  480. package/dist/rules2/src/getCombinationDefinitions.js.map +1 -0
  481. package/dist/rules2/src/getDataflowAttributes.js +25 -0
  482. package/dist/rules2/src/getDataflowAttributes.js.map +1 -0
  483. package/dist/rules2/src/getDataflowTooltipAttributesIds.js +33 -0
  484. package/dist/rules2/src/getDataflowTooltipAttributesIds.js.map +1 -0
  485. package/dist/rules2/src/getDimensionValuesIndexes.js +16 -0
  486. package/dist/rules2/src/getDimensionValuesIndexes.js.map +1 -0
  487. package/dist/rules2/src/getHCodelistsRefsInData.js +35 -0
  488. package/dist/rules2/src/getHCodelistsRefsInData.js.map +1 -0
  489. package/dist/rules2/src/getHeaderCombinations.js +51 -0
  490. package/dist/rules2/src/getHeaderCombinations.js.map +1 -0
  491. package/dist/rules2/src/getHeaderCoordinates.js +10 -0
  492. package/dist/rules2/src/getHeaderCoordinates.js.map +1 -0
  493. package/dist/rules2/src/getHeaderSubtitle.js +37 -0
  494. package/dist/rules2/src/getHeaderSubtitle.js.map +1 -0
  495. package/dist/rules2/src/getHeaderTitle.js +18 -0
  496. package/dist/rules2/src/getHeaderTitle.js.map +1 -0
  497. package/dist/rules2/src/getMSDInformations.js +26 -0
  498. package/dist/rules2/src/getMSDInformations.js.map +1 -0
  499. package/dist/rules2/src/getManyValuesDimensions.js +37 -0
  500. package/dist/rules2/src/getManyValuesDimensions.js.map +1 -0
  501. package/dist/rules2/src/getMetadataCoordinates.js +40 -0
  502. package/dist/rules2/src/getMetadataCoordinates.js.map +1 -0
  503. package/dist/rules2/src/getNotDisplayedIds.js +56 -0
  504. package/dist/rules2/src/getNotDisplayedIds.js.map +1 -0
  505. package/dist/rules2/src/getOneValueDimensions.js +37 -0
  506. package/dist/rules2/src/getOneValueDimensions.js.map +1 -0
  507. package/dist/rules2/src/getSeriesCombinations.js +27 -0
  508. package/dist/rules2/src/getSeriesCombinations.js.map +1 -0
  509. package/dist/rules2/src/hasCellMetadata.js +17 -0
  510. package/dist/rules2/src/hasCellMetadata.js.map +1 -0
  511. package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js +60 -0
  512. package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js.map +1 -0
  513. package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js +38 -0
  514. package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js.map +1 -0
  515. package/dist/rules2/src/index.js +47 -0
  516. package/dist/rules2/src/index.js.map +1 -0
  517. package/dist/rules2/src/parseAttributes.js +44 -0
  518. package/dist/rules2/src/parseAttributes.js.map +1 -0
  519. package/dist/rules2/src/parseCombinations.js +105 -0
  520. package/dist/rules2/src/parseCombinations.js.map +1 -0
  521. package/dist/rules2/src/parseHierarchicalCodelist.js +34 -0
  522. package/dist/rules2/src/parseHierarchicalCodelist.js.map +1 -0
  523. package/dist/rules2/src/parseMetadataSeries.js +124 -0
  524. package/dist/rules2/src/parseMetadataSeries.js.map +1 -0
  525. package/dist/rules2/src/prepareData.js +78 -0
  526. package/dist/rules2/src/prepareData.js.map +1 -0
  527. package/dist/rules2/src/refineAttributes.js +19 -0
  528. package/dist/rules2/src/refineAttributes.js.map +1 -0
  529. package/dist/rules2/src/refineDimensions.js +21 -0
  530. package/dist/rules2/src/refineDimensions.js.map +1 -0
  531. package/dist/rules2/src/refineTimePeriod.js +130 -0
  532. package/dist/rules2/src/refineTimePeriod.js.map +1 -0
  533. package/dist/rules2/src/sdmx3.0DataFormatPatch.js +12 -0
  534. package/dist/rules2/src/sdmx3.0DataFormatPatch.js.map +1 -0
  535. package/dist/rules2/src/table/declineObservationsOverAttributes.js +35 -0
  536. package/dist/rules2/src/table/declineObservationsOverAttributes.js.map +1 -0
  537. package/dist/rules2/src/table/getCells.js +96 -0
  538. package/dist/rules2/src/table/getCells.js.map +1 -0
  539. package/dist/rules2/src/table/getCellsAttributesIds.js +41 -0
  540. package/dist/rules2/src/table/getCellsAttributesIds.js.map +1 -0
  541. package/dist/rules2/src/table/getCellsMetadataCoordinates.js +16 -0
  542. package/dist/rules2/src/table/getCellsMetadataCoordinates.js.map +1 -0
  543. package/dist/rules2/src/table/getCuratedCells.js +36 -0
  544. package/dist/rules2/src/table/getCuratedCells.js.map +1 -0
  545. package/dist/rules2/src/table/getFlagsAndNotes.js +26 -0
  546. package/dist/rules2/src/table/getFlagsAndNotes.js.map +1 -0
  547. package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js +19 -0
  548. package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js.map +1 -0
  549. package/dist/rules2/src/table/getLayout.js +87 -0
  550. package/dist/rules2/src/table/getLayout.js.map +1 -0
  551. package/dist/rules2/src/table/getLayoutData2.js +205 -0
  552. package/dist/rules2/src/table/getLayoutData2.js.map +1 -0
  553. package/dist/rules2/src/table/getSortedLayoutIndexes.js +141 -0
  554. package/dist/rules2/src/table/getSortedLayoutIndexes.js.map +1 -0
  555. package/dist/rules2/src/table/getTableLabelAccessor.js +11 -0
  556. package/dist/rules2/src/table/getTableLabelAccessor.js.map +1 -0
  557. package/dist/rules2/src/table/getTableLayoutIds.js +317 -0
  558. package/dist/rules2/src/table/getTableLayoutIds.js.map +1 -0
  559. package/dist/rules2/src/table/getTableProps.js +85 -0
  560. package/dist/rules2/src/table/getTableProps.js.map +1 -0
  561. package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js +82 -0
  562. package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js.map +1 -0
  563. package/dist/rules2/src/table/parseValueHierarchy.js +29 -0
  564. package/dist/rules2/src/table/parseValueHierarchy.js.map +1 -0
  565. package/dist/rules2/src/table/refineLayoutSize2.js +324 -0
  566. package/dist/rules2/src/table/refineLayoutSize2.js.map +1 -0
  567. package/dist/rules2/src/utils.js +29 -0
  568. package/dist/rules2/src/utils.js.map +1 -0
  569. package/dist/viewer/src/chart.js +50 -0
  570. package/dist/viewer/src/chart.js.map +1 -0
  571. package/dist/viewer/src/chartUtils/options.js +33 -0
  572. package/dist/viewer/src/chartUtils/options.js.map +1 -0
  573. package/dist/viewer/src/chartUtils/series.js +54 -0
  574. package/dist/viewer/src/chartUtils/series.js.map +1 -0
  575. package/dist/viewer/src/footer.js +39 -0
  576. package/dist/viewer/src/footer.js.map +1 -0
  577. package/dist/viewer/src/header.js +12 -0
  578. package/dist/viewer/src/header.js.map +1 -0
  579. package/dist/viewer/src/index.js +160 -0
  580. package/dist/viewer/src/index.js.map +1 -0
  581. package/dist/viewer/src/legends/AxisLegend.js +42 -0
  582. package/dist/viewer/src/legends/AxisLegend.js.map +1 -0
  583. package/dist/viewer/src/legends/ChartLegends.js +80 -0
  584. package/dist/viewer/src/legends/ChartLegends.js.map +1 -0
  585. package/dist/viewer/src/legends/FocusLegend.js +67 -0
  586. package/dist/viewer/src/legends/FocusLegend.js.map +1 -0
  587. package/dist/viewer/src/legends/Legend.js +51 -0
  588. package/dist/viewer/src/legends/Legend.js.map +1 -0
  589. package/dist/viewer/src/legends/SeriesLegend.js +77 -0
  590. package/dist/viewer/src/legends/SeriesLegend.js.map +1 -0
  591. package/dist/viewer/src/utils.js +24 -0
  592. package/dist/viewer/src/utils.js.map +1 -0
  593. package/package.json +1 -1
  594. package/.editorconfig +0 -19
  595. package/.gitlab-ci.yml +0 -48
  596. package/prettier.config.js +0 -13
  597. package/rollup.config.mjs +0 -28
  598. package/src/rules/test/extractSdmxArtefacts.js +0 -26
  599. package/src/rules/test/get-values-enhanced.test.js +0 -127
  600. package/src/rules/test/oecd-HEALTH_PROT-no-freq.json +0 -2903
  601. package/src/rules/test/oecd-HEALTH_PROT-parsed.js +0 -398
  602. package/src/rules/test/oecd-HEALTH_PROT-wrong-freq.json +0 -2913
  603. package/src/rules/test/oecd-HEALTH_PROT.json +0 -2913
  604. package/src/rules/test/oecd-KEI.json +0 -372
  605. package/src/rules/test/scatter-property.js +0 -455
  606. package/src/rules/test/stacked-property.js +0 -273
  607. package/src/rules/test/symbol-property.js +0 -262
  608. package/src/rules/test/v8-transformer.test.js +0 -90
  609. package/test/applyHierarchicalCodesToDim.test.js +0 -643
  610. package/test/combinedValuesDisplay.test.js +0 -66
  611. package/test/duplicateObs.test.js +0 -118
  612. package/test/enhanceObservations2.test.js +0 -257
  613. package/test/getAttributesSeries.test.js +0 -66
  614. package/test/getAxisOptions.test.js +0 -309
  615. package/test/getBaseOptions.test.js +0 -77
  616. package/test/getCellValue.test.js +0 -32
  617. package/test/getCells.test.js +0 -178
  618. package/test/getCellsMetadataCoordinates.test.js +0 -40
  619. package/test/getCombinationDefinitions.test.js +0 -104
  620. package/test/getCombinationDimensionsData.test.js +0 -99
  621. package/test/getDataflowAttributes.test.js +0 -23
  622. package/test/getDataflowTooltipAttributesIds.test.js +0 -146
  623. package/test/getDimensionValuesIndexes.test.js +0 -33
  624. package/test/getGridOptions.test.js +0 -65
  625. package/test/getHCodelistsRefs.test.js +0 -23
  626. package/test/getHeaderCombinations.test.js +0 -62
  627. package/test/getHeaderTitle.test.js +0 -25
  628. package/test/getLayout.test.js +0 -54
  629. package/test/getLayoutData2.test.js +0 -540
  630. package/test/getMSDInformations.test.js +0 -35
  631. package/test/getMetadataCoordinates.test.js +0 -0
  632. package/test/getNotDisplayedIds.test.js +0 -47
  633. package/test/getObservationsType.test.js +0 -55
  634. package/test/getOneValueDimensions.test.js +0 -35
  635. package/test/getReportingYearStart.test.js +0 -59
  636. package/test/getSeriesCombinations.test.js +0 -29
  637. package/test/getSortedLayoutIndexes.test.js +0 -1248
  638. package/test/getTableLabelAccessor.test.js +0 -50
  639. package/test/getTableLayoutIds.test.js +0 -356
  640. package/test/hierarchiseDimensionWithNativeHierarchy2.test.js +0 -109
  641. package/test/isTableLayoutCompatible.test.js +0 -102
  642. package/test/metadata-parsing-perf.test.js +0 -509
  643. package/test/mocks/MSD_TEST.json +0 -490
  644. package/test/mocks/OECD_SNA_TABLE1_1.0_-_AUS_V_metadata.json +0 -152
  645. package/test/mocks/h-codelist.json +0 -2095
  646. package/test/mocks/large_metadata_series.json +0 -701
  647. package/test/mocks/observations-advanced-attributes.json +0 -55382
  648. package/test/mocks/table-invert-time--data.json +0 -80211
  649. package/test/mocks/table-invert-time--inverted.json +0 -80076
  650. package/test/mocks/table-layout-multi-hierarchies--layout.json +0 -621
  651. package/test/mocks/table-layout-multi-hierarchies--layoutData.json +0 -32411
  652. package/test/mocks/table-layout-multi-hierarchies--layoutIndexes.json +0 -2760
  653. package/test/mocks/table-layout-multi-hierarchies--observations.json +0 -30688
  654. package/test/mocks/table-layout-multi-hierarchies--sizedIndexes.json +0 -2762
  655. package/test/mocks/table-layout-truncation1--layout.json +0 -27469
  656. package/test/mocks/table-layout-truncation1--layoutData.json +0 -20358
  657. package/test/mocks/table-layout-truncation1--layoutIndexes.json +0 -7512
  658. package/test/mocks/table-layout-truncation1--observations.json +0 -70002
  659. package/test/mocks/table-layout-truncation1--sizedIndexes.json +0 -3011
  660. package/test/mocks/table-prep-multi-hierarchies--attributes.json +0 -46
  661. package/test/mocks/table-prep-multi-hierarchies--dimensions.json +0 -688
  662. package/test/mocks/table-prep-multi-hierarchies--enhancedObservations.json +0 -19696
  663. package/test/mocks/table-prep-multi-hierarchies--observations.json +0 -8246
  664. package/test/mocks/table-prep-multi-hierarchies--sdmxJson.json +0 -2985
  665. package/test/mocks/table-prep-simple-duplicate--dimensions2.json +0 -858
  666. package/test/mocks/table-prep-simple-duplicate--duplicated2.json +0 -77502
  667. package/test/mocks/table-prep-simple-duplicate--observations2.json +0 -60002
  668. package/test/mocks/table-prep-truncation1--dimensions.json +0 -35057
  669. package/test/mocks/table-prep-truncation1--enhancedObservations.json +0 -70002
  670. package/test/mocks/table-prep-truncation1--observations.json +0 -27502
  671. package/test/mocks/table-prep-truncation1--sdmxJson.json +0 -55103
  672. package/test/mocks/table-prep-units--observations.json +0 -284286
  673. package/test/mocks/table-prep-units--unitsSeries.json +0 -41042
  674. package/test/parseAttributes.test.js +0 -36
  675. package/test/parseCombinations.test.js +0 -172
  676. package/test/parseHierarchicalCodelist.test.js +0 -140
  677. package/test/parseMetadataSeries.test.js +0 -126
  678. package/test/parseSeriesIndexesHierarchies.test.js +0 -345
  679. package/test/parseValueHierarchy.test.js +0 -138
  680. package/test/refineAttributes.test.js +0 -29
  681. package/test/refineLayoutSize2.test.js +0 -3410
  682. package/test/refineMetadataCoordinates.test.js +0 -86
  683. package/test/refineTimePeriod.test.js +0 -580
  684. package/test/refinedDimensions.test.js +0 -35
  685. package/test/scatter-dimension.test.js +0 -79
  686. package/test/scatter-series.test.js +0 -67
@@ -0,0 +1,309 @@
1
+ import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
+ import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
+ import { c as colorManipulatorExports } from '../../../../_virtual/colorManipulator.js';
4
+ import common from '../colors/common.js';
5
+ import grey from '../colors/grey.js';
6
+ import purple from '../colors/purple.js';
7
+ import red from '../colors/red.js';
8
+ import orange from '../colors/orange.js';
9
+ import blue from '../colors/blue.js';
10
+ import lightBlue from '../colors/lightBlue.js';
11
+ import green from '../colors/green.js';
12
+ import deepmerge from '../../utils/esm/deepmerge/deepmerge.js';
13
+ import formatMuiErrorMessage from '../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js';
14
+
15
+ const _excluded = ["mode", "contrastThreshold", "tonalOffset"];
16
+ const light = {
17
+ // The colors used to style the text.
18
+ text: {
19
+ // The most important text.
20
+ primary: 'rgba(0, 0, 0, 0.87)',
21
+ // Secondary text.
22
+ secondary: 'rgba(0, 0, 0, 0.6)',
23
+ // Disabled text have even lower visual prominence.
24
+ disabled: 'rgba(0, 0, 0, 0.38)'
25
+ },
26
+ // The color used to divide different elements.
27
+ divider: 'rgba(0, 0, 0, 0.12)',
28
+ // The background colors used to style the surfaces.
29
+ // Consistency between these values is important.
30
+ background: {
31
+ paper: common.white,
32
+ default: common.white
33
+ },
34
+ // The colors used to style the action elements.
35
+ action: {
36
+ // The color of an active action like an icon button.
37
+ active: 'rgba(0, 0, 0, 0.54)',
38
+ // The color of an hovered action.
39
+ hover: 'rgba(0, 0, 0, 0.04)',
40
+ hoverOpacity: 0.04,
41
+ // The color of a selected action.
42
+ selected: 'rgba(0, 0, 0, 0.08)',
43
+ selectedOpacity: 0.08,
44
+ // The color of a disabled action.
45
+ disabled: 'rgba(0, 0, 0, 0.26)',
46
+ // The background color of a disabled action.
47
+ disabledBackground: 'rgba(0, 0, 0, 0.12)',
48
+ disabledOpacity: 0.38,
49
+ focus: 'rgba(0, 0, 0, 0.12)',
50
+ focusOpacity: 0.12,
51
+ activatedOpacity: 0.12
52
+ }
53
+ };
54
+ const dark = {
55
+ text: {
56
+ primary: common.white,
57
+ secondary: 'rgba(255, 255, 255, 0.7)',
58
+ disabled: 'rgba(255, 255, 255, 0.5)',
59
+ icon: 'rgba(255, 255, 255, 0.5)'
60
+ },
61
+ divider: 'rgba(255, 255, 255, 0.12)',
62
+ background: {
63
+ paper: '#121212',
64
+ default: '#121212'
65
+ },
66
+ action: {
67
+ active: common.white,
68
+ hover: 'rgba(255, 255, 255, 0.08)',
69
+ hoverOpacity: 0.08,
70
+ selected: 'rgba(255, 255, 255, 0.16)',
71
+ selectedOpacity: 0.16,
72
+ disabled: 'rgba(255, 255, 255, 0.3)',
73
+ disabledBackground: 'rgba(255, 255, 255, 0.12)',
74
+ disabledOpacity: 0.38,
75
+ focus: 'rgba(255, 255, 255, 0.12)',
76
+ focusOpacity: 0.12,
77
+ activatedOpacity: 0.24
78
+ }
79
+ };
80
+ function addLightOrDark(intent, direction, shade, tonalOffset) {
81
+ const tonalOffsetLight = tonalOffset.light || tonalOffset;
82
+ const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;
83
+ if (!intent[direction]) {
84
+ if (intent.hasOwnProperty(shade)) {
85
+ intent[direction] = intent[shade];
86
+ } else if (direction === 'light') {
87
+ intent.light = colorManipulatorExports.lighten(intent.main, tonalOffsetLight);
88
+ } else if (direction === 'dark') {
89
+ intent.dark = colorManipulatorExports.darken(intent.main, tonalOffsetDark);
90
+ }
91
+ }
92
+ }
93
+ function getDefaultPrimary(mode = 'light') {
94
+ if (mode === 'dark') {
95
+ return {
96
+ main: blue[200],
97
+ light: blue[50],
98
+ dark: blue[400]
99
+ };
100
+ }
101
+ return {
102
+ main: blue[700],
103
+ light: blue[400],
104
+ dark: blue[800]
105
+ };
106
+ }
107
+ function getDefaultSecondary(mode = 'light') {
108
+ if (mode === 'dark') {
109
+ return {
110
+ main: purple[200],
111
+ light: purple[50],
112
+ dark: purple[400]
113
+ };
114
+ }
115
+ return {
116
+ main: purple[500],
117
+ light: purple[300],
118
+ dark: purple[700]
119
+ };
120
+ }
121
+ function getDefaultError(mode = 'light') {
122
+ if (mode === 'dark') {
123
+ return {
124
+ main: red[500],
125
+ light: red[300],
126
+ dark: red[700]
127
+ };
128
+ }
129
+ return {
130
+ main: red[700],
131
+ light: red[400],
132
+ dark: red[800]
133
+ };
134
+ }
135
+ function getDefaultInfo(mode = 'light') {
136
+ if (mode === 'dark') {
137
+ return {
138
+ main: lightBlue[400],
139
+ light: lightBlue[300],
140
+ dark: lightBlue[700]
141
+ };
142
+ }
143
+ return {
144
+ main: lightBlue[700],
145
+ light: lightBlue[500],
146
+ dark: lightBlue[900]
147
+ };
148
+ }
149
+ function getDefaultSuccess(mode = 'light') {
150
+ if (mode === 'dark') {
151
+ return {
152
+ main: green[400],
153
+ light: green[300],
154
+ dark: green[700]
155
+ };
156
+ }
157
+ return {
158
+ main: green[800],
159
+ light: green[500],
160
+ dark: green[900]
161
+ };
162
+ }
163
+ function getDefaultWarning(mode = 'light') {
164
+ if (mode === 'dark') {
165
+ return {
166
+ main: orange[400],
167
+ light: orange[300],
168
+ dark: orange[700]
169
+ };
170
+ }
171
+ return {
172
+ main: '#ed6c02',
173
+ // closest to orange[800] that pass 3:1.
174
+ light: orange[500],
175
+ dark: orange[900]
176
+ };
177
+ }
178
+ function createPalette(palette) {
179
+ const {
180
+ mode = 'light',
181
+ contrastThreshold = 3,
182
+ tonalOffset = 0.2
183
+ } = palette,
184
+ other = _objectWithoutPropertiesLoose(palette, _excluded);
185
+ const primary = palette.primary || getDefaultPrimary(mode);
186
+ const secondary = palette.secondary || getDefaultSecondary(mode);
187
+ const error = palette.error || getDefaultError(mode);
188
+ const info = palette.info || getDefaultInfo(mode);
189
+ const success = palette.success || getDefaultSuccess(mode);
190
+ const warning = palette.warning || getDefaultWarning(mode);
191
+
192
+ // Use the same logic as
193
+ // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
194
+ // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54
195
+ function getContrastText(background) {
196
+ const contrastText = colorManipulatorExports.getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
197
+ if (process.env.NODE_ENV !== 'production') {
198
+ const contrast = colorManipulatorExports.getContrastRatio(background, contrastText);
199
+ if (contrast < 3) {
200
+ console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n'));
201
+ }
202
+ }
203
+ return contrastText;
204
+ }
205
+ const augmentColor = ({
206
+ color,
207
+ name,
208
+ mainShade = 500,
209
+ lightShade = 300,
210
+ darkShade = 700
211
+ }) => {
212
+ color = _extends({}, color);
213
+ if (!color.main && color[mainShade]) {
214
+ color.main = color[mainShade];
215
+ }
216
+ if (!color.hasOwnProperty('main')) {
217
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.
218
+ The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));
219
+ }
220
+ if (typeof color.main !== 'string') {
221
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.
222
+ \`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.
223
+
224
+ Did you intend to use one of the following approaches?
225
+
226
+ import { green } from "@mui/material/colors";
227
+
228
+ const theme1 = createTheme({ palette: {
229
+ primary: green,
230
+ } });
231
+
232
+ const theme2 = createTheme({ palette: {
233
+ primary: { main: green[500] },
234
+ } });` : formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));
235
+ }
236
+ addLightOrDark(color, 'light', lightShade, tonalOffset);
237
+ addLightOrDark(color, 'dark', darkShade, tonalOffset);
238
+ if (!color.contrastText) {
239
+ color.contrastText = getContrastText(color.main);
240
+ }
241
+ return color;
242
+ };
243
+ const modes = {
244
+ dark,
245
+ light
246
+ };
247
+ if (process.env.NODE_ENV !== 'production') {
248
+ if (!modes[mode]) {
249
+ console.error(`MUI: The palette mode \`${mode}\` is not supported.`);
250
+ }
251
+ }
252
+ const paletteOutput = deepmerge(_extends({
253
+ // A collection of common colors.
254
+ common: _extends({}, common),
255
+ // prevent mutable object.
256
+ // The palette mode, can be light or dark.
257
+ mode,
258
+ // The colors used to represent primary interface elements for a user.
259
+ primary: augmentColor({
260
+ color: primary,
261
+ name: 'primary'
262
+ }),
263
+ // The colors used to represent secondary interface elements for a user.
264
+ secondary: augmentColor({
265
+ color: secondary,
266
+ name: 'secondary',
267
+ mainShade: 'A400',
268
+ lightShade: 'A200',
269
+ darkShade: 'A700'
270
+ }),
271
+ // The colors used to represent interface elements that the user should be made aware of.
272
+ error: augmentColor({
273
+ color: error,
274
+ name: 'error'
275
+ }),
276
+ // The colors used to represent potentially dangerous actions or important messages.
277
+ warning: augmentColor({
278
+ color: warning,
279
+ name: 'warning'
280
+ }),
281
+ // The colors used to present information to the user that is neutral and not necessarily important.
282
+ info: augmentColor({
283
+ color: info,
284
+ name: 'info'
285
+ }),
286
+ // The colors used to indicate the successful completion of an action that user triggered.
287
+ success: augmentColor({
288
+ color: success,
289
+ name: 'success'
290
+ }),
291
+ // The grey colors.
292
+ grey,
293
+ // Used by `getContrastText()` to maximize the contrast between
294
+ // the background and the text.
295
+ contrastThreshold,
296
+ // Takes a background color and returns the text color that maximizes the contrast.
297
+ getContrastText,
298
+ // Generate a rich color object.
299
+ augmentColor,
300
+ // Used by the functions below to shift a color's luminance by approximately
301
+ // two indexes within its tonal palette.
302
+ // E.g., shift from Red 500 to Red 300 or Red 700.
303
+ tonalOffset
304
+ }, modes[mode]), other);
305
+ return paletteOutput;
306
+ }
307
+
308
+ export { dark, createPalette as default, light };
309
+ //# sourceMappingURL=createPalette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPalette.js","sources":["../../../../../node_modules/@mui/material/styles/createPalette.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}"],"names":["lighten","darken","getContrastRatio","_formatMuiErrorMessage"],"mappings":";;;;;;;;;;;;;;AAGA,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,mBAAmB,EAAE,aAAa,CAAC;AAWlD,MAAC,KAAK,GAAG;AACrB;AACA,EAAE,IAAI,EAAE;AACR;AACA,IAAI,OAAO,EAAE,qBAAqB;AAClC;AACA,IAAI,SAAS,EAAE,oBAAoB;AACnC;AACA,IAAI,QAAQ,EAAE;AACd,GAAG;AACH;AACA,EAAE,OAAO,EAAE,qBAAqB;AAChC;AACA;AACA,EAAE,UAAU,EAAE;AACd,IAAI,KAAK,EAAE,MAAM,CAAC,KAAK;AACvB,IAAI,OAAO,EAAE,MAAM,CAAC;AACpB,GAAG;AACH;AACA,EAAE,MAAM,EAAE;AACV;AACA,IAAI,MAAM,EAAE,qBAAqB;AACjC;AACA,IAAI,KAAK,EAAE,qBAAqB;AAChC,IAAI,YAAY,EAAE,IAAI;AACtB;AACA,IAAI,QAAQ,EAAE,qBAAqB;AACnC,IAAI,eAAe,EAAE,IAAI;AACzB;AACA,IAAI,QAAQ,EAAE,qBAAqB;AACnC;AACA,IAAI,kBAAkB,EAAE,qBAAqB;AAC7C,IAAI,eAAe,EAAE,IAAI;AACzB,IAAI,KAAK,EAAE,qBAAqB;AAChC,IAAI,YAAY,EAAE,IAAI;AACtB,IAAI,gBAAgB,EAAE;AACtB;AACA;AACY,MAAC,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE;AACR,IAAI,OAAO,EAAE,MAAM,CAAC,KAAK;AACzB,IAAI,SAAS,EAAE,0BAA0B;AACzC,IAAI,QAAQ,EAAE,0BAA0B;AACxC,IAAI,IAAI,EAAE;AACV,GAAG;AACH,EAAE,OAAO,EAAE,2BAA2B;AACtC,EAAE,UAAU,EAAE;AACd,IAAI,KAAK,EAAE,SAAS;AACpB,IAAI,OAA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,IAAI,SAAS,EAAE,YAAY,CAAC;AAC5B,MAAM,KAAK,EAAE,SAAS;AACtB,MAAM,IAAI,EAAE,WAAW;AACvB,MAAM,SAAS,EAAE,MAAM;AACvB,MAAM,UAAU,EAAE,MAAM;AACxB,MAAM,SAAS,EAAE;AACjB,KAAK,CAAC;AACN;AACA,IAAI,KAAK,EAAE,YAAY,CAAC;AACxB,MAAM,KAAK,EAAE,KAAK;AAClB,MAAM,IAAI,EAAE;AACZ,KAAK,CAAC;AACN;AACA,IAAI,OAAO,EAAE,YAAY,CAAC;AAC1B,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,IAAI,EAAE;AACZ,KAAK,CAAC;AACN;AACA,IAAI,IAAI,EAAE,YAAY,CAAC;AACvB,MAAM,KAAK,EAAE,IAAI;AACjB,MAAM,IAAI,EAAE;AACZ,KAAK,CAAC;AACN;AACA,IAAI,OAAO,EAAE,YAAY,CAAC;AAC1B,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,IAAI,EAAE;AACZ,KAAK,CAAC;AACN;AACA,IAAI,IAAI;AACR;AACA;AACA,IAAI,iBAAiB;AACrB;AACA,IAAI,eAAe;AACnB;AACA,IAAI,YAAY;AAChB;AACA;AACA;AACA,IAAI;AACJ,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC;AACzB,EAAE,OAAO,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,86 @@
1
+ import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
+ import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
+ import createMixins from './createMixins.js';
4
+ import createPalette from './createPalette.js';
5
+ import createTypography from './createTypography.js';
6
+ import shadows from './shadows.js';
7
+ import createTransitions from './createTransitions.js';
8
+ import zIndex from './zIndex.js';
9
+ import formatMuiErrorMessage from '../../utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js';
10
+ import createTheme$1 from '../../system/esm/createTheme/createTheme.js';
11
+ import deepmerge from '../../utils/esm/deepmerge/deepmerge.js';
12
+ import defaultSxConfig from '../../system/esm/styleFunctionSx/defaultSxConfig.js';
13
+ import styleFunctionSx from '../../system/esm/styleFunctionSx/styleFunctionSx.js';
14
+ import generateUtilityClass from '../../utils/esm/generateUtilityClass/generateUtilityClass.js';
15
+
16
+ const _excluded = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
17
+ function createTheme(options = {}, ...args) {
18
+ const {
19
+ mixins: mixinsInput = {},
20
+ palette: paletteInput = {},
21
+ transitions: transitionsInput = {},
22
+ typography: typographyInput = {}
23
+ } = options,
24
+ other = _objectWithoutPropertiesLoose(options, _excluded);
25
+ if (options.vars &&
26
+ // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
27
+ // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
28
+ options.generateCssVars === undefined) {
29
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
30
+ Please use another name.` : formatMuiErrorMessage(18));
31
+ }
32
+ const palette = createPalette(paletteInput);
33
+ const systemTheme = createTheme$1(options);
34
+ let muiTheme = deepmerge(systemTheme, {
35
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
36
+ palette,
37
+ // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
38
+ shadows: shadows.slice(),
39
+ typography: createTypography(palette, typographyInput),
40
+ transitions: createTransitions(transitionsInput),
41
+ zIndex: _extends({}, zIndex)
42
+ });
43
+ muiTheme = deepmerge(muiTheme, other);
44
+ muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
45
+ if (process.env.NODE_ENV !== 'production') {
46
+ // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.
47
+ const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];
48
+ const traverse = (node, component) => {
49
+ let key;
50
+
51
+ // eslint-disable-next-line guard-for-in, no-restricted-syntax
52
+ for (key in node) {
53
+ const child = node[key];
54
+ if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
55
+ if (process.env.NODE_ENV !== 'production') {
56
+ const stateClass = generateUtilityClass('', key);
57
+ console.error([`MUI: The \`${component}\` component increases ` + `the CSS specificity of the \`${key}\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({
58
+ root: {
59
+ [`&.${stateClass}`]: child
60
+ }
61
+ }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\n'));
62
+ }
63
+ // Remove the style to prevent global conflicts.
64
+ node[key] = {};
65
+ }
66
+ }
67
+ };
68
+ Object.keys(muiTheme.components).forEach(component => {
69
+ const styleOverrides = muiTheme.components[component].styleOverrides;
70
+ if (styleOverrides && component.indexOf('Mui') === 0) {
71
+ traverse(styleOverrides, component);
72
+ }
73
+ });
74
+ }
75
+ muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
76
+ muiTheme.unstable_sx = function sx(props) {
77
+ return styleFunctionSx({
78
+ sx: props,
79
+ theme: this
80
+ });
81
+ };
82
+ return muiTheme;
83
+ }
84
+
85
+ export { createTheme as default };
86
+ //# sourceMappingURL=createTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTheme.js","sources":["../../../../../node_modules/@mui/material/styles/createTheme.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateCssVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;"],"names":["_formatMuiErrorMessage","systemCreateTheme"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAM,SAAS,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC;AAWvG,SAAS,WAAW,CAAC,OAAO,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE;AAC5C,EAAE,MAAM;AACR,MAAM,MAAM,EAAE,WAAW,GAAG,EAAE;AAC9B,MAAM,OAAO,EAAE,YAAY,GAAG,EAAE;AAChC,MAAM,WAAW,EAAE,gBAAgB,GAAG,EAAE;AACxC,MAAM,UAAU,EAAE,eAAe,GAAG;AACpC,KAAK,GAAG,OAAO;AACf,IAAI,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CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc;AAC1E,MAAM,IAAI,cAAc,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AAC5D,QAAQ,QAAQ,CAAC,cAAc,EAAE,SAAS,CAAC;AAC3C,MAAM;AACN,IAAI,CAAC,CAAC;AACN,EAAE;AACF,EAAE,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,IAAI,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC;AAC9G,EAAE,QAAQ,CAAC,WAAW,GAAG,SAAS,EAAE,CAAC,KAAK,EAAE;AAC5C,IAAI,OAAO,eAAe,CAAC;AAC3B,MAAM,EAAE,EAAE,KAAK;AACf,MAAM,KAAK,EAAE;AACb,KAAK,CAAC;AACN,EAAE,CAAC;AACH,EAAE,OAAO,QAAQ;AACjB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,92 @@
1
+ import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
2
+ import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
3
+
4
+ const _excluded = ["duration", "easing", "delay"];
5
+ // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
6
+ // to learn the context in which each easing should be used.
7
+ const easing = {
8
+ // This is the most common easing curve.
9
+ easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
10
+ // Objects enter the screen at full velocity from off-screen and
11
+ // slowly decelerate to a resting point.
12
+ easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
13
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
14
+ easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
15
+ // The sharp curve is used by objects that may return to the screen at any time.
16
+ sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
17
+ };
18
+
19
+ // Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
20
+ // to learn when use what timing
21
+ const duration = {
22
+ shortest: 150,
23
+ shorter: 200,
24
+ short: 250,
25
+ // most basic recommended timing
26
+ standard: 300,
27
+ // this is to be used in complex animations
28
+ complex: 375,
29
+ // recommended when something is entering screen
30
+ enteringScreen: 225,
31
+ // recommended when something is leaving screen
32
+ leavingScreen: 195
33
+ };
34
+ function formatMs(milliseconds) {
35
+ return `${Math.round(milliseconds)}ms`;
36
+ }
37
+ function getAutoHeightDuration(height) {
38
+ if (!height) {
39
+ return 0;
40
+ }
41
+ const constant = height / 36;
42
+
43
+ // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
44
+ return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
45
+ }
46
+ function createTransitions(inputTransitions) {
47
+ const mergedEasing = _extends({}, easing, inputTransitions.easing);
48
+ const mergedDuration = _extends({}, duration, inputTransitions.duration);
49
+ const create = (props = ['all'], options = {}) => {
50
+ const {
51
+ duration: durationOption = mergedDuration.standard,
52
+ easing: easingOption = mergedEasing.easeInOut,
53
+ delay = 0
54
+ } = options,
55
+ other = _objectWithoutPropertiesLoose(options, _excluded);
56
+ if (process.env.NODE_ENV !== 'production') {
57
+ const isString = value => typeof value === 'string';
58
+ // IE11 support, replace with Number.isNaN
59
+ // eslint-disable-next-line no-restricted-globals
60
+ const isNumber = value => !isNaN(parseFloat(value));
61
+ if (!isString(props) && !Array.isArray(props)) {
62
+ console.error('MUI: Argument "props" must be a string or Array.');
63
+ }
64
+ if (!isNumber(durationOption) && !isString(durationOption)) {
65
+ console.error(`MUI: Argument "duration" must be a number or a string but found ${durationOption}.`);
66
+ }
67
+ if (!isString(easingOption)) {
68
+ console.error('MUI: Argument "easing" must be a string.');
69
+ }
70
+ if (!isNumber(delay) && !isString(delay)) {
71
+ console.error('MUI: Argument "delay" must be a number or a string.');
72
+ }
73
+ if (typeof options !== 'object') {
74
+ console.error(['MUI: Secong argument of transition.create must be an object.', "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join('\n'));
75
+ }
76
+ if (Object.keys(other).length !== 0) {
77
+ console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);
78
+ }
79
+ }
80
+ return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
81
+ };
82
+ return _extends({
83
+ getAutoHeightDuration,
84
+ create
85
+ }, inputTransitions, {
86
+ easing: mergedEasing,
87
+ duration: mergedDuration
88
+ });
89
+ }
90
+
91
+ export { createTransitions as default, duration, easing };
92
+ //# sourceMappingURL=createTransitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTransitions.js","sources":["../../../../../node_modules/@mui/material/styles/createTransitions.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}"],"names":[],"mappings":";;;AAEA,MAAM,SAAS,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;AACjD;AACA;AACY,MAAC,MAAM,GAAG;AACtB;AACA,EAAE,SAAS,EAAE,8BAA8B;AAC3C;AACA;AACA,EAAE,OAAO,EAAE,8BAA8B;AACzC;AACA,EAAE,MAAM,EAAE,4BAA4B;AACtC;AACA,EAAE,KAAK,EAAE;AACT;;AAEA;AACA;AACY,MAAC,QAAQ,GAAG;AACxB,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,OAAO,EAAE,GAAG;AACd,EAAE,KAAK,EAAE,GAAG;AACZ;AACA,EAAE,QAAQ,EAAE,GAAG;AACf;AACA,EAAE,OAAO,EAAE,GAAG;AACd;AACA,EAAE,cAAc,EAAE,GAAG;AACrB;AACA,EAAE,aAAa,EAAE;AACjB;AACA,SAAS,QAAQ,CAAC,YAAY,EAAE;AAChC,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;AACxC;AACA,SAAS,qBAAqB,CAAC,MAAM,EAAE;AACvC,EAAE,IAAI,CAAC,MAAM,EAAE;AACf,IAAI,OAAO,CAAC;AACZ,EAAE;AACF,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,EAAE;;AAE9B;AACA,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,QAAQ,IAAI,IAAI,GAAG,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;AACpE;AACe,SAAS,iBAAiB,CAAC,gBAAgB,EAAE;AAC5D,EAAE,MAAM,YAAY,GAAG,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC;AACpE,EAAE,MAAM,cAAc,GAAG,QAAQ,CAAC,EAAE,EAAE,QA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,CAAC;AAC5E,MAAM;AACN,MAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;AACvC,QAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,8DAA8D,EAAE,gGAAgG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACpM,MAAM;AACN,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;AAC3C,QAAQ,OAAO,CAAC,KAAK,CAAC,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AACzF,MAAM;AACN,IAAI;AACJ,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,YAAY,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,cAAc,KAAK,QAAQ,GAAG,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAC7P,EAAE,CAAC;AACH,EAAE,OAAO,QAAQ,CAAC;AAClB,IAAI,qBAAqB;AACzB,IAAI;AACJ,GAAG,EAAE,gBAAgB,EAAE;AACvB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,QAAQ,EAAE;AACd,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,94 @@
1
+ import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
+ import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
3
+ import deepmerge from '../../utils/esm/deepmerge/deepmerge.js';
4
+
5
+ const _excluded = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
6
+ function round(value) {
7
+ return Math.round(value * 1e5) / 1e5;
8
+ }
9
+ const caseAllCaps = {
10
+ textTransform: 'uppercase'
11
+ };
12
+ const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
13
+
14
+ /**
15
+ * @see @link{https://m2.material.io/design/typography/the-type-system.html}
16
+ * @see @link{https://m2.material.io/design/typography/understanding-typography.html}
17
+ */
18
+ function createTypography(palette, typography) {
19
+ const _ref = typeof typography === 'function' ? typography(palette) : typography,
20
+ {
21
+ fontFamily = defaultFontFamily,
22
+ // The default font size of the Material Specification.
23
+ fontSize = 14,
24
+ // px
25
+ fontWeightLight = 300,
26
+ fontWeightRegular = 400,
27
+ fontWeightMedium = 500,
28
+ fontWeightBold = 700,
29
+ // Tell MUI what's the font-size on the html element.
30
+ // 16px is the default font-size used by browsers.
31
+ htmlFontSize = 16,
32
+ // Apply the CSS properties to all the variants.
33
+ allVariants,
34
+ pxToRem: pxToRem2
35
+ } = _ref,
36
+ other = _objectWithoutPropertiesLoose(_ref, _excluded);
37
+ if (process.env.NODE_ENV !== 'production') {
38
+ if (typeof fontSize !== 'number') {
39
+ console.error('MUI: `fontSize` is required to be a number.');
40
+ }
41
+ if (typeof htmlFontSize !== 'number') {
42
+ console.error('MUI: `htmlFontSize` is required to be a number.');
43
+ }
44
+ }
45
+ const coef = fontSize / 14;
46
+ const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
47
+ const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
48
+ fontFamily,
49
+ fontWeight,
50
+ fontSize: pxToRem(size),
51
+ // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
52
+ lineHeight
53
+ }, fontFamily === defaultFontFamily ? {
54
+ letterSpacing: `${round(letterSpacing / size)}em`
55
+ } : {}, casing, allVariants);
56
+ const variants = {
57
+ h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
58
+ h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
59
+ h3: buildVariant(fontWeightRegular, 48, 1.167, 0),
60
+ h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),
61
+ h5: buildVariant(fontWeightRegular, 24, 1.334, 0),
62
+ h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),
63
+ subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),
64
+ subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),
65
+ body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),
66
+ body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),
67
+ button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),
68
+ caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
69
+ overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),
70
+ // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
71
+ inherit: {
72
+ fontFamily: 'inherit',
73
+ fontWeight: 'inherit',
74
+ fontSize: 'inherit',
75
+ lineHeight: 'inherit',
76
+ letterSpacing: 'inherit'
77
+ }
78
+ };
79
+ return deepmerge(_extends({
80
+ htmlFontSize,
81
+ pxToRem,
82
+ fontFamily,
83
+ fontSize,
84
+ fontWeightLight,
85
+ fontWeightRegular,
86
+ fontWeightMedium,
87
+ fontWeightBold
88
+ }, variants), other, {
89
+ clone: false // No need to clone deep
90
+ });
91
+ }
92
+
93
+ export { createTypography as default };
94
+ //# sourceMappingURL=createTypography.js.map