@sonic-equipment/ui 165.0.0 → 166.0.0
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.
|
@@ -304,7 +304,7 @@ function Payment({ atp, cart: _cart, form, isProcessing, onError: _onError, onPa
|
|
|
304
304
|
setAsSoonAsPossible(checked);
|
|
305
305
|
if (checked)
|
|
306
306
|
setDeliveryDate('');
|
|
307
|
-
}, children: t('As soon as possible') }), jsx(InfoIconTooltip, { variant: "stroke", children: t('Selecting As Soon As Possible will enable us to send the products to you as they become available.') })] })] })), jsx(Select, { isRequired: true, "data-test-selector": "industrySelect", defaultSelectedOption: cart.properties.industry, isDisabled: isDisabled, label: t('Industry'), name: "industry", options: {
|
|
307
|
+
}, children: t('As soon as possible') }), jsx(InfoIconTooltip, { variant: "stroke", children: t('Selecting As Soon As Possible will enable us to send the products to you as they become available.') })] })] })), jsx(Select, { isRequired: true, showLabel: true, "data-test-selector": "industrySelect", defaultSelectedOption: cart.properties.industry, isDisabled: isDisabled, label: t('Industry'), name: "industry", options: {
|
|
308
308
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
309
309
|
PP: t('industry.PP'),
|
|
310
310
|
AU: t('industry.AU'),
|
package/dist/shared/utils/css.js
CHANGED
|
@@ -4,9 +4,11 @@ function getCssPropertyValue(property) {
|
|
|
4
4
|
const rawValue = getComputedStyle?.(document.body).getPropertyValue(property);
|
|
5
5
|
if (!rawValue)
|
|
6
6
|
return undefined;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
if (rawValue && !/\D/.test(rawValue)) {
|
|
8
|
+
const valueAsNumber = Number.parseFloat(rawValue);
|
|
9
|
+
if (!Number.isNaN(valueAsNumber))
|
|
10
|
+
return valueAsNumber;
|
|
11
|
+
}
|
|
10
12
|
return rawValue;
|
|
11
13
|
}
|
|
12
14
|
|
package/dist/styles.css
CHANGED