@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'),
@@ -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
- const valueAsNumber = Number.parseFloat(rawValue);
8
- if (!Number.isNaN(valueAsNumber))
9
- return valueAsNumber;
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
@@ -260,9 +260,6 @@
260
260
  100% no-repeat exclude,
261
261
  linear-gradient(0deg, #000, #000);
262
262
  }
263
- :root {
264
- scrollbar-gutter: stable;
265
- }
266
263
 
267
264
  .address-info-display-module-CbRth {
268
265
  font: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "165.0.0",
3
+ "version": "166.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {