@trafilea/afrodita-components 6.54.9 → 6.54.11
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/build/index.esm.js +9 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -3131,6 +3131,12 @@ var formatPrice = function (value, _a) {
|
|
|
3131
3131
|
var resultOverridden = "S$".concat(onlyValue);
|
|
3132
3132
|
return resultOverridden;
|
|
3133
3133
|
}
|
|
3134
|
+
if (['DKK', 'NOK', 'SEK'].includes(currency)) {
|
|
3135
|
+
// intlFormat does not support Denmark, Norway and Sweden currency
|
|
3136
|
+
var onlyValue = result.slice(result.indexOf(currency) + 4);
|
|
3137
|
+
var resultOverridden = "kr".concat(onlyValue);
|
|
3138
|
+
return resultOverridden;
|
|
3139
|
+
}
|
|
3134
3140
|
return result;
|
|
3135
3141
|
};
|
|
3136
3142
|
|
|
@@ -5767,7 +5773,9 @@ var Checkbox = function (_a) {
|
|
|
5767
5773
|
}
|
|
5768
5774
|
onChange(e.target.checked);
|
|
5769
5775
|
};
|
|
5770
|
-
return (jsxs$1(Container$1o, { children: [jsx$1(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsx$1(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsx$1(Icon.Actions.Check, { fill:
|
|
5776
|
+
return (jsxs$1(Container$1o, { children: [jsx$1(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsx$1(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && (jsx$1(Icon.Actions.Check, { fill: text === 'White'
|
|
5777
|
+
? theme.colors.shades['black'].color
|
|
5778
|
+
: theme.colors.shades['white'].color }, void 0)) }), void 0), jsx$1(Label$6, __assign$1({ "data-testid": "checkbox-text", size: sizeLabel, style: { color: colorLabel ? colorLabel : theme.colors.shades['700'].color }, variant: checked ? 'demi' : 'regular', htmlFor: id, disabled: disabled }, { children: text }), void 0)] }, void 0));
|
|
5771
5779
|
};
|
|
5772
5780
|
var templateObject_1$2b, templateObject_2$1D;
|
|
5773
5781
|
|