@deix/rossini-core 1.0.1 → 1.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.
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deix/rossini-core",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "lib/src/index.js",
5
5
  "type": "commonjs",
6
6
  "repository": {
@@ -1 +1 @@
1
- {"version":3,"file":"StyledValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/display/StyledValue/StyledValue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAIL,SAAS,EAIT,eAAe,EAChB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAuB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAwB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG1E,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAMD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,YAAY,CAAC;IACtD,aAAa,CAAC,EAAE,OAAO,CACrB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,CACtD,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC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IAAI,GAAG,YAAY,CAAC;IACtD,aAAa,CAAC,EAAE,OAAO,CACrB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,CACtD,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,eAAe,CAAC;IACvC,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD,oBAAoB,CAAC,EAAE,IAAI,CACzB,OAAO,CAAC,oBAAoB,CAAC,EAC7B,oBAAoB,GAAG,qBAAqB,CAC7C,CAAC;CACH;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuJ3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -60,17 +60,31 @@ const StyledValue = (props) => {
60
60
  paddingBottom: 2,
61
61
  },
62
62
  } },
63
- react_1.default.createElement(material_1.Grid, { container: true, spacing: 1, alignItems: 'center' },
64
- icon && (react_1.default.createElement(material_1.Grid, { item: true, xs: 4 }, icon)),
65
- react_1.default.createElement(material_1.Grid, { item: true, xs: icon ? 8 : 12 },
66
- react_1.default.createElement(material_1.Grid, { container: true, spacing: 0 },
67
- react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
68
- react_1.default.createElement(material_1.Box, { sx: { display: 'flex', justifyContent: 'space-between' } },
69
- react_1.default.createElement(material_1.Typography, { ...valueTypographyProps }, loading || isLoadingValue || value === undefined ? (react_1.default.createElement(material_1.Skeleton, null)) : (stringValue)),
70
- previousValue && stringPreviousValue && (react_1.default.createElement(ImprovementChip_1.default, { currentValue: value, previousValue: previousValue, tooltip: `${stringPreviousValue} ${translations_json_1.default['tooltipPreviousPeriod'][locale]}`, ...improvementChipProps })))),
71
- react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
72
- react_1.default.createElement(material_1.Typography, { ...captionTypographyProps }, captionString)),
73
- details && (react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
74
- react_1.default.createElement(material_1.Typography, { ...detailsTypographyProps }, detailsString)))))))));
63
+ react_1.default.createElement(material_1.Box, { sx: {
64
+ display: 'flex',
65
+ alignItems: 'center',
66
+ width: '100%',
67
+ } },
68
+ icon && react_1.default.createElement(material_1.Box, { sx: { marginRight: 2, width: '10%' } }, icon),
69
+ react_1.default.createElement(material_1.Box, { sx: {
70
+ width: '90%',
71
+ display: 'flex',
72
+ flexDirection: { xs: 'column', md: 'row' },
73
+ justifyContent: 'space-between',
74
+ } },
75
+ react_1.default.createElement(material_1.Box, { sx: {
76
+ width: { xs: '100%', md: '60%' },
77
+ display: 'flex',
78
+ justifyContent: { xs: 'flex-end', md: 'flex-start' },
79
+ } },
80
+ react_1.default.createElement(material_1.Typography, { ...valueTypographyProps }, loading || isLoadingValue || value === undefined ? (react_1.default.createElement(material_1.Skeleton, null)) : (stringValue))),
81
+ previousValue && stringPreviousValue && (react_1.default.createElement(material_1.Box, { sx: {
82
+ width: { xs: '100%', md: '40%' },
83
+ display: 'flex',
84
+ justifyContent: 'flex-end',
85
+ } },
86
+ react_1.default.createElement(ImprovementChip_1.default, { currentValue: value, previousValue: previousValue, tooltip: `${stringPreviousValue} ${translations_json_1.default['tooltipPreviousPeriod'][locale]}`, ...improvementChipProps }))))),
87
+ react_1.default.createElement(material_1.Typography, { ...captionTypographyProps }, captionString),
88
+ details && (react_1.default.createElement(material_1.Typography, { ...detailsTypographyProps }, detailsString)))));
75
89
  };
76
90
  exports.default = StyledValue;