pcm-shared-components 2.0.1 → 2.0.3

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.
@@ -177,14 +177,10 @@ export const ProductItemButton = props => {
177
177
  }, sub_title));
178
178
  };
179
179
 
180
- const toFloat_2_decimal = (value, with_thousand_separators = true) => {
180
+ const toFloat_2_decimal = value => {
181
181
  try {
182
182
  if (value) {
183
183
  value = parseFloat(Math.round(value * 100) / 100).toFixed(2);
184
-
185
- if (with_thousand_separators) {
186
- value = thousandsSeparators(value);
187
- }
188
184
  }
189
185
  } catch (e) {
190
186
  console.error(e.message);
@@ -193,14 +189,10 @@ export const ProductItemButton = props => {
193
189
  return value;
194
190
  };
195
191
 
196
- const toFloat_0_decimal = (value, with_thousand_separators = true) => {
192
+ const toFloat_0_decimal = value => {
197
193
  try {
198
194
  if (value) {
199
195
  value = parseFloat(Math.round(value * 100) / 100).toFixed(0);
200
-
201
- if (with_thousand_separators) {
202
- value = thousandsSeparators(value);
203
- }
204
196
  }
205
197
  } catch (e) {
206
198
  console.error(e.message);
@@ -238,7 +230,7 @@ export const ProductItemButton = props => {
238
230
  title: productData.description,
239
231
  arrow: true
240
232
  }, /*#__PURE__*/React.createElement(InfoIcon, {
241
- fontSize: "large"
233
+ fontSize: "normal"
242
234
  })))), productData.pictures && productData.pictures.length > 0 && /*#__PURE__*/React.createElement("div", {
243
235
  className: "absolute left-0 -ml-10 z-99",
244
236
  style: {
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ import GenericAppBar from './components/Dialogs/GenericAppBar';
14
14
  import ReusablePopupMenu from './components/Menus/ReusablePopupMenu';
15
15
  import SearchBar from './components/TextBoxes/SearchBar';
16
16
  import TillButton from './components/Buttons/TillButton';
17
+ import ProductItemButton from './components/Buttons/ProductItemButton';
17
18
  import DropdownButton from './components/Buttons/DropdownButton';
18
19
  import translationResources from './locals/translationResources';
19
20
  import coreLocals from './locals/coreLocals';
@@ -26,4 +27,4 @@ import PlatformPaymentPlans from './components/Platform/PlatformPaymentPlans';
26
27
  import PlatformPlanTitles from './components/Platform/PlatformPlanTitles';
27
28
  import PlatformPlanPrices from './components/Platform/PlatformPlanPrices';
28
29
  import LoadingBackdrop from './components/Loaders/LoadingBackdrop';
29
- export { TestButton, CodeHighlight, CustomFab, HelpButton, GenericDialogWindow, PcSharedComponentThemeInheritor, ImageCanvasDraw, PCMScrollbar, TwoColumnDisplay, SimpleTab, HrefLink, GenericAppBar, ReusablePopupMenu, SearchBar, TillButton, DropdownButton, translationResources, coreLocals, currencySymbol, DateRangeCalendar, SimpleLabel, CurrencyTextInput, ImageStack, PlatformPaymentPlans, PlatformPlanTitles, PlatformPlanPrices, LoadingBackdrop };
30
+ export { TestButton, CodeHighlight, CustomFab, HelpButton, GenericDialogWindow, PcSharedComponentThemeInheritor, ImageCanvasDraw, PCMScrollbar, TwoColumnDisplay, SimpleTab, HrefLink, GenericAppBar, ReusablePopupMenu, SearchBar, TillButton, ProductItemButton, DropdownButton, translationResources, coreLocals, currencySymbol, DateRangeCalendar, SimpleLabel, CurrencyTextInput, ImageStack, PlatformPaymentPlans, PlatformPlanTitles, PlatformPlanPrices, LoadingBackdrop };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {