@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.js
CHANGED
|
@@ -3157,6 +3157,12 @@ var formatPrice = function (value, _a) {
|
|
|
3157
3157
|
var resultOverridden = "S$".concat(onlyValue);
|
|
3158
3158
|
return resultOverridden;
|
|
3159
3159
|
}
|
|
3160
|
+
if (['DKK', 'NOK', 'SEK'].includes(currency)) {
|
|
3161
|
+
// intlFormat does not support Denmark, Norway and Sweden currency
|
|
3162
|
+
var onlyValue = result.slice(result.indexOf(currency) + 4);
|
|
3163
|
+
var resultOverridden = "kr".concat(onlyValue);
|
|
3164
|
+
return resultOverridden;
|
|
3165
|
+
}
|
|
3160
3166
|
return result;
|
|
3161
3167
|
};
|
|
3162
3168
|
|
|
@@ -5793,7 +5799,9 @@ var Checkbox = function (_a) {
|
|
|
5793
5799
|
}
|
|
5794
5800
|
onChange(e.target.checked);
|
|
5795
5801
|
};
|
|
5796
|
-
return (jsxRuntime.jsxs(Container$1o, { children: [jsxRuntime.jsx(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsxRuntime.jsx(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsxRuntime.jsx(Icon.Actions.Check, { fill:
|
|
5802
|
+
return (jsxRuntime.jsxs(Container$1o, { children: [jsxRuntime.jsx(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsxRuntime.jsx(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && (jsxRuntime.jsx(Icon.Actions.Check, { fill: text === 'White'
|
|
5803
|
+
? theme.colors.shades['black'].color
|
|
5804
|
+
: theme.colors.shades['white'].color }, void 0)) }), void 0), jsxRuntime.jsx(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));
|
|
5797
5805
|
};
|
|
5798
5806
|
var templateObject_1$2b, templateObject_2$1D;
|
|
5799
5807
|
|