@sonic-equipment/ui 197.0.0 → 199.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.
- package/dist/algolia/algolia-search-provider.js +7 -2
- package/dist/buttons/add-to-cart-button/add-to-cart-button.d.ts +1 -3
- package/dist/buttons/add-to-cart-button/add-to-cart-button.js +94 -68
- package/dist/buttons/add-to-cart-button/add-to-cart-button.module.css.js +1 -1
- package/dist/buttons/button/button.d.ts +2 -1
- package/dist/buttons/button/button.js +7 -5
- package/dist/forms/fields/number-field/number-field.d.ts +3 -3
- package/dist/forms/fields/number-field/number-field.js +29 -9
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/styles.css +23 -9
- package/package.json +1 -1
|
@@ -142,7 +142,7 @@ function AlgoliaSearchProvider({ children, searchClient: _searchClient, }) {
|
|
|
142
142
|
window?.removeEventListener('touchmove', onTouchMove);
|
|
143
143
|
};
|
|
144
144
|
}, [getEnvironmentProps, state.isOpen]);
|
|
145
|
-
const
|
|
145
|
+
const globalSearchContextValue = useMemo(() => ({
|
|
146
146
|
autocomplete,
|
|
147
147
|
formRef,
|
|
148
148
|
inputRef,
|
|
@@ -163,7 +163,12 @@ function AlgoliaSearchProvider({ children, searchClient: _searchClient, }) {
|
|
|
163
163
|
setState,
|
|
164
164
|
state,
|
|
165
165
|
]);
|
|
166
|
-
|
|
166
|
+
const insightsProviderValue = useMemo(() => {
|
|
167
|
+
return {
|
|
168
|
+
index: productsIndexName,
|
|
169
|
+
};
|
|
170
|
+
}, [productsIndexName]);
|
|
171
|
+
return (jsx(AlgoliaInsightsProvider, { value: insightsProviderValue, children: jsx(GlobalSearchContext.Provider, { value: globalSearchContextValue, children: typeof children === 'function' ? children(autocomplete) : children }) }));
|
|
167
172
|
}
|
|
168
173
|
|
|
169
174
|
export { AlgoliaSearchProvider, GlobalSearchContext };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
type AddToCartState = 'initial' | 'spinner' | 'manual-input';
|
|
2
1
|
interface AddToCartButtonProps {
|
|
3
|
-
initialState?: AddToCartState;
|
|
4
2
|
isDisabled?: boolean;
|
|
5
3
|
onChange: (quantity: number) => void;
|
|
6
4
|
quantity: number;
|
|
7
5
|
}
|
|
8
|
-
export declare function AddToCartButton({
|
|
6
|
+
export declare function AddToCartButton({ isDisabled, onChange, quantity, }: AddToCartButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export {};
|
|
@@ -1,93 +1,119 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { useState,
|
|
3
|
+
import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
4
5
|
import { NumberField } from '../../forms/fields/number-field/number-field.js';
|
|
5
6
|
import { SolidCartIcon } from '../../icons/solid/solid-cart-icon.js';
|
|
6
7
|
import { useFormattedMessage } from '../../intl/use-formatted-message.js';
|
|
7
|
-
import { useDebouncedCallback } from '../../shared/hooks/use-debounced-callback.js';
|
|
8
8
|
import { ensureNumber } from '../../shared/utils/number.js';
|
|
9
9
|
import { Button } from '../button/button.js';
|
|
10
10
|
import styles from './add-to-cart-button.module.css.js';
|
|
11
11
|
|
|
12
|
-
function AddToCartButton({
|
|
13
|
-
return (jsx(InternalAddToCartButton, {
|
|
12
|
+
function AddToCartButton({ isDisabled = false, onChange, quantity, }) {
|
|
13
|
+
return (jsx(InternalAddToCartButton, { isDisabled: isDisabled, onChange: onChange, quantity: quantity }));
|
|
14
14
|
}
|
|
15
|
-
function InternalAddToCartButton({
|
|
15
|
+
function InternalAddToCartButton({ isDisabled = false, onChange: _onChange, quantity: _quantity, }) {
|
|
16
16
|
const [quantity, setQuantity] = useState(_quantity);
|
|
17
|
-
const [currentState, setState] = useState(quantity > 0 ? '
|
|
18
|
-
const [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
17
|
+
const [currentState, setState] = useState(quantity > 0 ? 'input' : 'initial');
|
|
18
|
+
const [hasFocus, setHasFocus] = useState(false);
|
|
19
|
+
const buttonRef = useRef(null);
|
|
20
|
+
const inputRef = useRef(null);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (quantity > 0 && currentState === 'initial') {
|
|
23
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
24
|
+
if (document?.activeElement === buttonRef.current)
|
|
25
|
+
setHasFocus(true);
|
|
26
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
27
|
+
setState('input');
|
|
28
|
+
}
|
|
29
|
+
if (quantity === 0 && currentState === 'input') {
|
|
30
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
31
|
+
if (document?.activeElement === inputRef.current)
|
|
32
|
+
setHasFocus(true);
|
|
33
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
34
|
+
setState('initial');
|
|
35
|
+
}
|
|
36
|
+
}, [quantity, currentState]);
|
|
32
37
|
const onChange = useCallback((quantity) => {
|
|
33
38
|
_onChange(quantity);
|
|
34
39
|
setQuantity(quantity);
|
|
35
40
|
}, [_onChange]);
|
|
36
|
-
return (jsxs("div", { className: styles['add-to-cart-button'], "data-test-selector": "addToCartButton", children: [currentState === 'initial' && (jsx(InitialState, {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
return (jsxs("div", { className: styles['add-to-cart-button'], "data-test-selector": "addToCartButton", children: [currentState === 'initial' && (jsx(InitialState, { buttonRef: buttonRef, hasFocus: hasFocus, isDisabled: isDisabled, onAddToCart: () => {
|
|
42
|
+
onChange(1);
|
|
43
|
+
}, onHasFocussed: () => {
|
|
44
|
+
setHasFocus(false);
|
|
45
|
+
} })), currentState === 'input' && (jsx(InputState, { hasFocus: hasFocus, inputRef: inputRef, isDisabled: isDisabled, onChange: onChange, onHasFocussed: () => {
|
|
46
|
+
setHasFocus(false);
|
|
47
|
+
}, quantity: quantity }))] }));
|
|
40
48
|
}
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
/* initial state: button */
|
|
50
|
+
function InitialState({ buttonRef, hasFocus, isDisabled, onAddToCart, onHasFocussed, }) {
|
|
51
|
+
const t = useFormattedMessage();
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (hasFocus) {
|
|
54
|
+
buttonRef?.current?.focus();
|
|
55
|
+
onHasFocussed?.();
|
|
56
|
+
}
|
|
57
|
+
}, [hasFocus, buttonRef, onHasFocussed]);
|
|
58
|
+
return (jsx(Button, { ref: buttonRef, condensed: true, "aria-label": t('Add to cart'), className: clsx(styles['initial'], isDisabled && styles['disabled']), icon: jsx(SolidCartIcon, {}), onClick: () => {
|
|
59
|
+
if (!isDisabled)
|
|
60
|
+
onAddToCart();
|
|
61
|
+
}, size: "md" }));
|
|
43
62
|
}
|
|
44
|
-
|
|
63
|
+
let debounced;
|
|
64
|
+
/* input state: spinner buttons and manual input */
|
|
65
|
+
function InputState({ hasFocus, inputRef, isDisabled, onChange: _onChange, onHasFocussed, quantity, }) {
|
|
66
|
+
const t = useFormattedMessage();
|
|
45
67
|
const [internalQuantity, setInternalQuantity] = useState(quantity);
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
if (!mounted.current)
|
|
50
|
-
return;
|
|
51
|
-
onChange(value);
|
|
52
|
-
}, 1500);
|
|
68
|
+
const [manualQuantity, setManualQuantity] = useState(null);
|
|
69
|
+
const isManualInput = useMemo(() => manualQuantity !== null, [manualQuantity]);
|
|
70
|
+
const isSpinnerInput = useMemo(() => manualQuantity === null, [manualQuantity]);
|
|
53
71
|
useEffect(() => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
setInternalQuantity(quantity);
|
|
66
|
-
if (quantity === 0) {
|
|
67
|
-
mounted.current = false;
|
|
68
|
-
return onChange(0);
|
|
69
|
-
}
|
|
70
|
-
onDebouncedChange(quantity);
|
|
71
|
-
}, onInput: e => {
|
|
72
|
-
onManualInput(e.target.value);
|
|
73
|
-
}, size: "md", value: internalQuantity }));
|
|
74
|
-
}
|
|
75
|
-
function ManualInputState({ isDisabled, onCancel, onConfirm, quantity, }) {
|
|
76
|
-
const [updatedQuantity, setQuantity] = useState(quantity);
|
|
72
|
+
if (hasFocus) {
|
|
73
|
+
inputRef?.current?.focus();
|
|
74
|
+
onHasFocussed?.();
|
|
75
|
+
}
|
|
76
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
77
|
+
}, [hasFocus]);
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
// clear debounced when switching to manual input or when quantity is 0 (returning to initial state)
|
|
80
|
+
if (isManualInput)
|
|
81
|
+
clearTimeout(debounced);
|
|
82
|
+
}, [isManualInput]);
|
|
77
83
|
const onKeyUp = (e) => {
|
|
84
|
+
if (isSpinnerInput)
|
|
85
|
+
return;
|
|
78
86
|
if (e.key === 'Enter')
|
|
79
|
-
|
|
80
|
-
if (e.key === 'Escape')
|
|
81
|
-
|
|
87
|
+
confirmManualQuantity();
|
|
88
|
+
if (e.key === 'Escape') {
|
|
89
|
+
setManualQuantity(null);
|
|
90
|
+
setInternalQuantity(quantity);
|
|
91
|
+
}
|
|
82
92
|
};
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
const onSpinnerChange = (quantity) => {
|
|
94
|
+
clearTimeout(debounced);
|
|
95
|
+
setInternalQuantity(quantity);
|
|
96
|
+
if (quantity === 0) {
|
|
97
|
+
_onChange(0);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
debounced = setTimeout(() => {
|
|
101
|
+
_onChange(quantity);
|
|
102
|
+
}, 1500);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const onManualInput = (e) => {
|
|
106
|
+
const value = ensureNumber(e.currentTarget.value, 0);
|
|
107
|
+
setManualQuantity(value);
|
|
108
|
+
};
|
|
109
|
+
const confirmManualQuantity = () => {
|
|
110
|
+
const value = ensureNumber(manualQuantity, 0);
|
|
111
|
+
setInternalQuantity(value);
|
|
112
|
+
setManualQuantity(null);
|
|
113
|
+
_onChange(value);
|
|
114
|
+
inputRef?.current?.focus();
|
|
115
|
+
};
|
|
116
|
+
return (jsxs("div", { className: clsx(styles['input-container'], isManualInput && styles['has-button'], isSpinnerInput && styles['has-spinner']), children: [jsx(NumberField, { ref: inputRef, autoGrow: true, className: styles['input'], "data-test-selector": "quantity", isReadOnly: isDisabled, label: t('Quantity'), maxLength: 4, maxValue: 9999, minValue: 0, name: "quantity", onChange: onSpinnerChange, onInput: onManualInput, onKeyUp: onKeyUp, size: "md", value: isSpinnerInput ? internalQuantity : manualQuantity || 0, withButtons: isSpinnerInput }), isManualInput && (jsx(Button, { condensed: true, "data-test-selector": "confirm", onClick: confirmManualQuantity, size: "md", children: t('OK') }))] }));
|
|
91
117
|
}
|
|
92
118
|
|
|
93
119
|
export { AddToCartButton };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var styles = {"add-to-cart-button":"add-to-cart-button-module-GdrDp","
|
|
1
|
+
var styles = {"add-to-cart-button":"add-to-cart-button-module-GdrDp","initial":"add-to-cart-button-module-D5UBe","disabled":"add-to-cart-button-module-ySzuS","input-container":"add-to-cart-button-module-bRV8v","has-button":"add-to-cart-button-module-Jw4Wr","input":"add-to-cart-button-module-UFRIT"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
@@ -2,6 +2,7 @@ import { MouseEvent, ReactNode } from 'react';
|
|
|
2
2
|
import { NavigateOptions } from '../../shared/routing/types';
|
|
3
3
|
export interface ButtonProps {
|
|
4
4
|
_pseudo?: 'none' | 'focus' | 'hover' | 'active';
|
|
5
|
+
'aria-label'?: string;
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
className?: string;
|
|
7
8
|
color?: 'primary' | 'secondary';
|
|
@@ -24,4 +25,4 @@ export interface ButtonProps {
|
|
|
24
25
|
variant?: 'solid' | 'outline' | 'ghost';
|
|
25
26
|
withArrow?: boolean;
|
|
26
27
|
}
|
|
27
|
-
export declare
|
|
28
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import { isValidElement } from 'react';
|
|
3
|
+
import { forwardRef, isValidElement } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { ProgressCircle } from '../../loading/progress-circle.js';
|
|
6
6
|
import { GlyphsArrowBoldCapsRightIcon } from '../../icons/glyph/glyphs-arrow-boldcaps-right-icon.js';
|
|
7
7
|
import { useRouteLink } from '../../shared/routing/use-route-link.js';
|
|
8
8
|
import buttonStyles from './button.module.css.js';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const Button = forwardRef(({ _pseudo = 'none', 'aria-label': ariaLabel, children: _children, className, color = 'primary', condensed, 'data-test-selector': dataTestSelector, form, href, icon, iconPosition = 'left', isDisabled, isLoading = false, isValidating = true, light = false, name, onClick, route, size = 'lg', type = 'button', value, variant = 'solid', withArrow = false, }, ref) => {
|
|
11
11
|
const { getRouteLinkProps, RouteLinkElement } = useRouteLink();
|
|
12
12
|
const handleButtonClick = (e) => {
|
|
13
13
|
if (onClick)
|
|
@@ -26,10 +26,12 @@ function Button({ _pseudo = 'none', children: _children, className, color = 'pri
|
|
|
26
26
|
const iconElement = icon && jsx("span", { className: buttonStyles.icon, children: icon });
|
|
27
27
|
const children = (jsxs(Fragment, { children: [showIconOnLeft && iconElement, jsx("span", { className: buttonStyles.children, children: isLoading ? (isLoading === true ? _children : isLoading) : _children }), withArrow && (jsx(GlyphsArrowBoldCapsRightIcon, { className: buttonStyles['right-arrow-icon'] })), showIconOnRight && iconElement, isLoading && (jsx(ProgressCircle, { className: buttonStyles.spinner, size: "sm", variant: color === 'primary' ? 'white' : 'gray' }))] }));
|
|
28
28
|
if (href) {
|
|
29
|
+
// TODO: only button currently supports ref for now
|
|
29
30
|
const Element = RouteLinkElement || 'a';
|
|
30
|
-
return (jsx(Element, { className: classNames, "data-disabled": isDisabled ? true : undefined, "data-test-selector": dataTestSelector, onClick: onClick, type: type, ...getRouteLinkProps(href, route), children: children }));
|
|
31
|
+
return (jsx(Element, { "aria-label": ariaLabel, className: classNames, "data-disabled": isDisabled ? true : undefined, "data-test-selector": dataTestSelector, onClick: onClick, type: type, ...getRouteLinkProps(href, route), children: children }));
|
|
31
32
|
}
|
|
32
|
-
return (jsx("button", { className: classNames, "data-disabled": isDisabled ? true : undefined, "data-test-selector": dataTestSelector, disabled: isDisabled, form: form, formNoValidate: isValidating ? undefined : true, name: name, onClick: handleButtonClick, type: type, value: value, children: children }));
|
|
33
|
-
}
|
|
33
|
+
return (jsx("button", { ref: ref, "aria-label": ariaLabel, className: classNames, "data-disabled": isDisabled ? true : undefined, "data-test-selector": dataTestSelector, disabled: isDisabled, form: form, formNoValidate: isValidating ? undefined : true, name: name, onClick: handleButtonClick, type: type, value: value, children: children }));
|
|
34
|
+
});
|
|
35
|
+
Button.displayName = 'Button';
|
|
34
36
|
|
|
35
37
|
export { Button };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusEvent, FormEventHandler } from 'react';
|
|
2
2
|
import { ValidateFunction } from '../../elements/field-error/field-error';
|
|
3
|
-
interface NumberFieldProps {
|
|
3
|
+
export interface NumberFieldProps {
|
|
4
4
|
autoFocus?: boolean;
|
|
5
5
|
autoGrow?: boolean;
|
|
6
6
|
className?: string;
|
|
@@ -20,6 +20,7 @@ interface NumberFieldProps {
|
|
|
20
20
|
name?: string;
|
|
21
21
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
22
22
|
onChange?: (value: number) => void;
|
|
23
|
+
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
23
24
|
onInput?: FormEventHandler<HTMLInputElement>;
|
|
24
25
|
onKeyUp?: (e: React.KeyboardEvent) => void;
|
|
25
26
|
placeholder?: string;
|
|
@@ -30,5 +31,4 @@ interface NumberFieldProps {
|
|
|
30
31
|
value?: number;
|
|
31
32
|
withButtons?: boolean;
|
|
32
33
|
}
|
|
33
|
-
export declare
|
|
34
|
-
export {};
|
|
34
|
+
export declare const NumberField: React.ForwardRefExoticComponent<NumberFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { useRef, useState } from 'react';
|
|
3
|
+
import { forwardRef, useRef, useState, useEffect } from 'react';
|
|
4
4
|
import { NumberField as NumberField$1, Button } from 'react-aria-components';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { StrokeMinusIcon } from '../../../icons/stroke/stroke-minus-icon.js';
|
|
7
7
|
import { StrokePlusIcon } from '../../../icons/stroke/stroke-plus-icon.js';
|
|
8
8
|
import { StrokeTrashIcon } from '../../../icons/stroke/stroke-trash-icon.js';
|
|
9
9
|
import { InfoIconTooltip } from '../../../info-icon-tooltip/info-icon-tooltip.js';
|
|
10
|
+
import { useFormattedMessage } from '../../../intl/use-formatted-message.js';
|
|
11
|
+
import { multiRef } from '../../../shared/utils/refs.js';
|
|
10
12
|
import { FieldError } from '../../elements/field-error/field-error.js';
|
|
11
13
|
import { Input } from '../../elements/input/input.js';
|
|
12
14
|
import { Label } from '../../elements/label/label.js';
|
|
@@ -20,18 +22,36 @@ const defaultFormatOptions = {
|
|
|
20
22
|
// TODO: this should be hard set options, not free to tweak
|
|
21
23
|
};
|
|
22
24
|
function NumberFieldControls({ active, children, isDisabled, showReset, }) {
|
|
23
|
-
|
|
24
|
-
return (jsxs("div", { className: styles['controls'], children: [jsx(Button, { className: styles['control'], "data-test-selector": "decrement", isDisabled: isDisabled, slot: "decrement", children: showReset ? jsx(StrokeTrashIcon, {}) : jsx(StrokeMinusIcon, {}) }), children, jsx(Button, { className: styles['control'], "data-test-selector": "increment", isDisabled: isDisabled, slot: "increment", children: jsx(StrokePlusIcon, {}) })] }));
|
|
25
|
-
return children;
|
|
25
|
+
return (jsxs("div", { className: styles['controls'], children: [active && (jsx(Button, { className: styles['control'], "data-test-selector": "decrement", isDisabled: isDisabled, slot: "decrement", children: showReset ? jsx(StrokeTrashIcon, {}) : jsx(StrokeMinusIcon, {}) })), children, active && (jsx(Button, { className: styles['control'], "data-test-selector": "increment", isDisabled: isDisabled, slot: "increment", children: jsx(StrokePlusIcon, {}) }))] }));
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
let debouncedChange;
|
|
28
|
+
let debouncedKeyup;
|
|
29
|
+
const NumberField = forwardRef(({ autoGrow, className, 'data-test-selector': dataTestSelector, defaultValue, formatOptions = defaultFormatOptions, info, inputMode = 'numeric', isDisabled, isInvalid, isReadOnly, isRequired, label, maxLength, maxValue, minValue = 0, name, onBlur, onChange, onFocus, onInput, onKeyUp, placeholder, showLabel, size = 'lg', step = 1, value, withButtons, }, ref) => {
|
|
30
|
+
const t = useFormattedMessage();
|
|
28
31
|
const inputRef = useRef(null);
|
|
29
32
|
const [showControlsReset, setShowControlsReset] = useState((defaultValue || value || 0) - step <= minValue);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
35
|
+
setShowControlsReset((value || 0) - step <= minValue);
|
|
36
|
+
}, [value, step, minValue]);
|
|
30
37
|
const handleChange = (value) => {
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
// there needs to be a debounce here to prevent React Aria from firing onChange event twice on arrow key interaction
|
|
39
|
+
clearTimeout(debouncedChange);
|
|
40
|
+
debouncedChange = setTimeout(() => {
|
|
41
|
+
onChange?.(value);
|
|
42
|
+
}, 1);
|
|
33
43
|
};
|
|
34
|
-
|
|
35
|
-
|
|
44
|
+
const handleKeyUp = (e) => {
|
|
45
|
+
clearTimeout(debouncedKeyup);
|
|
46
|
+
debouncedKeyup = setTimeout(() => {
|
|
47
|
+
if (onKeyUp)
|
|
48
|
+
onKeyUp(e);
|
|
49
|
+
}, 1);
|
|
50
|
+
};
|
|
51
|
+
return (jsx(NumberField$1, { "aria-label": label, className: clsx(styles['number-field'], styles[size], className), "data-test-selector": dataTestSelector, decrementAriaLabel: t('Decrease'), defaultValue: defaultValue, formatOptions: formatOptions, incrementAriaLabel: t('Increase'), isDisabled: isDisabled, isInvalid: isInvalid, isReadOnly: isReadOnly, isRequired: isRequired, maxValue: maxValue, minValue: minValue, name: name, onChange: value => {
|
|
52
|
+
handleChange(value);
|
|
53
|
+
}, onInput: onInput, onKeyUp: handleKeyUp, step: step, value: value, children: jsx(FormFieldLayout, { errorSlot: jsx(FieldError, {}), infoSlot: info && jsx(InfoIconTooltip, { children: info }), labelSlot: showLabel && jsx(Label, { isRequired: isRequired, children: label }), children: jsx(NumberFieldControls, { active: withButtons, isDisabled: isDisabled, showReset: showControlsReset, children: jsx(Input, { ref: multiRef(inputRef, ref), autoGrow: autoGrow, "data-test-selector": "value", inputMode: inputMode, label: label, maxLength: maxLength, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, size: size }) }) }) }));
|
|
54
|
+
});
|
|
55
|
+
NumberField.displayName = 'NumberField';
|
|
36
56
|
|
|
37
57
|
export { NumberField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TranslationId = "'{0}' in all products" | "Try 'Search' and try to find the product you're looking for" | "Unfortnately, We found no articles for your search '{0}'" | ' to your account to manage your lists.' | 'Access denied.' | 'Account' | 'active' | 'Add order notes' | 'Add to list' | 'Address 1' | 'Address 2' | 'Address 3' | 'Address 4' | 'Address' | 'All payment methods are unavailable at this time. Please contact customer support.' | 'Amount: {0}' | 'An error occurred while changing the customer.' | 'An error occurred while fetching customers. Please try again later.' | 'An error occurred while processing your payment. Please try again.' | 'An unexpected error occured' | 'An unexpected error occured. Please try again.' | 'Are you looking for information about our service? Please visit our customer support page' | 'Are you sure you want to remove all items from your cart?' | 'Are you sure you want to remove this item from your cart?' | 'article' | 'articles' | 'As soon as possible' | 'ASC' | 'Attention' | 'Availability unknown, please contact customer support for lead time or alternatives.' | 'Billing address' | 'Billing and shipping address' | 'Billing and shipping information' | 'Billing' | 'Cancel' | 'Cart' | 'Change customer' | 'Change password' | 'Changing your address is currently not possible. Please contact customer support to change your address.' | 'Checkout order' | 'Chosen filters' | 'City' | 'Clear filters' | 'Clear' | 'Click the button below to continue shopping.' | 'Client cases' | 'Close' | 'CoC number' | 'Company name' | 'Conceal value' | 'Confirm password' | 'Continue shopping' | 'Continue to sign in' | 'Continue' | 'Copyright © Sonic Equipment B.V.' | 'Cost overview' | 'Country' | 'create account' | 'Create new list' | 'Currency Change' | 'Current page' | 'Current Password is invalid' | 'Date' | 'Delivery date' | 'Delivery expected on {0}' | 'DESC' | 'Double check your spelling' | 'Downloads' | 'Easily add your favorite products' | 'Edit billing address' | 'Edit shipping address' | 'Edit Sonic account' | 'Edit' | 'Email' | 'Enter your email address and we will send you an email that will allow you to recover your password.' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'Favorites' | 'Features' | 'Filter order status' | 'Finalize order' | 'Finalize payment' | 'First name' | 'Forgot password?' | 'Fulfillment method' | 'General' | 'Hide filters' | 'Home' | 'If an account matches the email address you entered, instructions on how to recover the password will be sent to that email address shortly. If you do not receive this email, please contact Customer Support.' | 'If you want to proceed, click the continue button. If you want to change your country, close this message and select a different country.' | 'Incl. VAT' | 'Includes' | 'Industry' | 'industry.AG' | 'industry.AU' | 'industry.AV' | 'industry.BC' | 'industry.MA' | 'industry.MC' | 'industry.OT' | 'industry.PP' | 'industry.TR' | 'Information' | 'Language' | 'Last name' | 'List name already exists' | 'Log out' | 'Main menu' | 'Make this the default customer' | 'More than {0} articles' | 'My Sonic' | 'Name' | 'Navigate to...' | 'Navigation' | 'New list name' | 'New Password is required and must be different than Current Password' | 'New password' | 'New user?' | 'Next' | 'No orders found.' | 'No results found. Please refine your search.' | 'Number of favorites' | 'Number of products' | 'of' | 'Or continue as guest' | 'Order confirmation' | 'Order date' | 'Order number' | 'Order#' | 'Order' | 'Orders' | 'orderProperty.Number' | 'orderProperty.Date' | 'orderProperty.Price' | 'orderProperty.Status' | 'orderProperty.Shipping Address' | 'orderProperty.PO Number' | 'orderStatus.Any' | 'orderStatus.Cancelled' | 'orderStatus.Fulfilled' | 'orderStatus.Partially fulfilled' | 'orderStatus.Processing' | 'orderStatus.Saved' | 'orderStatus.Waiting for customer service' | 'Our products' | 'Overview' | 'Password changed. Please sign in again.' | 'Password does not meet requirements' | 'Password' | 'Passwords do not match' | 'Pay by invoice' | 'Payment method' | 'Payment' | 'pc' | 'Phone' | 'Pick up' | 'Pickup address' | 'Please enter a valid email address' | 'Please enter a valid phone number' | 'please go back to your cart.' | 'Please Sign In' | 'PO Number' | 'Popular searches' | 'Postal Code' | 'Previous' | 'Print' | 'Private account' | 'Processing' | 'Product Features' | 'Product' | 'Products' | 'Quantity' | 'Quick access' | 'Recent searches' | 'Recently viewed' | 'Recover your password' | 'Remember me' | 'Remove all' | 'Reorder' | 'Requested delivery date' | 'Results' | 'Reveal value' | 'Review and payment' | 'Save order' | 'Save' | 'Saved cart for later.' | 'Search for a customer' | 'Search' | 'Searching again using more general terms' | 'Search orders' | 'See all results' | 'Select a country' | 'Select a desired delivery date' | 'Select a language' | 'Select a list' | 'Select an industry' | 'Select other customer' | 'Selected customer' | 'Selecting As Soon As Possible will enable us to send the products to you as they become available.' | 'Selecting this country will result in your cart to be converted to the currency {0}' | 'Share your favorite list with others' | 'Ship' | 'Shipping address' | 'Shipping and handling' | 'Shipping details' | 'Shop more efficiently and quicker with a favorites list' | 'Shopping cart' | 'Show all' | 'Show filters' | 'Show less' | 'Show' | 'Sign in or create account' | 'sign in' | 'Sign me up for newsletters and product updates' | 'Signed in' | 'Signed out' | 'Signing in…' | 'Sonic account' | 'Sonic address' | 'Sonic Equipment' | 'Sorry, there are no products found' | 'Sorry, we could not find matches for' | 'Sort by' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc' | 'sort.relevance' | 'sort.ASC' | 'sort.DESC' | 'sort.NONE' | 'Specifications' | 'Start checkout' | 'Status' | 'Submenu' | 'Submit email address' | 'Submit' | 'Submitting…' | 'Subtotal' | 'Suggestions' | 'Support' | 'tag.limited' | 'tag.new' | 'The email address you entered is already associated with an existing account. Please sign in to this account or contact Customer Support.' | 'The expected delivery is an indication based on the product availability and the shipping location.' | 'The product has been added to your cart.' | 'The product has been removed from your cart.' | 'The product has been updated in your cart.' | 'There are more customers, please refine your search if needed.' | 'There are no products in your shopping cart.' | 'There is no information to display' | 'This email is already in use' | 'Toggle navigation menu' | 'Total amount is' | 'Total' | 'Try another search' | 'Unable to add the product to your cart.' | 'Unable to empty your cart.' | 'Unable to remove the product from your cart.' | 'Unable to save cart for later.' | 'Unable to update the product in your cart.' | 'Unknown' | 'Updating address' | 'Use billing address' | 'Use fewer keywords' | 'Username' | 'Validating' | 'validation.badInput' | 'validation.customError' | 'validation.invalid' | 'validation.patternMismatch' | 'validation.rangeOverflow' | 'validation.rangeUnderflow' | 'validation.stepMismatch' | 'validation.tooLong' | 'validation.tooShort' | 'validation.typeMismatch' | 'validation.valid' | 'validation.valueMissing' | 'VAT Number' | 'VAT' | 'Welcome to Sonic Equipment. Please choose your country and language below.' | 'What are you searching for?' | 'You are not authorized to access this information.' | 'You are not authorized to perform this action' | 'You are not authorized to view customers. Please log in or contact support.' | 'You could try checking the spelling of your search query' | 'You could try exploring our products by category' | 'You could try' | 'You have reached the end of the results, but there may be more articles available. Adjust your filters or search to discover more!' | 'You must ' | 'You selected a country where we invoice in a different currency. This will result in your cart being converted to the new currency. If you would like to review your order, ' | 'Your cart has been emptied.' | 'Your email and password were not recognized.' | 'Your favorites are available on multiple devices' | 'Your new Sonic Equipment account was succesfully created. You should receive an email soon with further instructions on how to activate this account. If you do not receive this email, please contact Customer Support.' | 'Your shopping cart is still empty';
|
|
1
|
+
export type TranslationId = "'{0}' in all products" | "Try 'Search' and try to find the product you're looking for" | "Unfortnately, We found no articles for your search '{0}'" | ' to your account to manage your lists.' | 'Access denied.' | 'Account' | 'active' | 'Add order notes' | 'Add to cart' | 'Add to list' | 'Address 1' | 'Address 2' | 'Address 3' | 'Address 4' | 'Address' | 'All payment methods are unavailable at this time. Please contact customer support.' | 'Amount: {0}' | 'An error occurred while changing the customer.' | 'An error occurred while fetching customers. Please try again later.' | 'An error occurred while processing your payment. Please try again.' | 'An unexpected error occured' | 'An unexpected error occured. Please try again.' | 'Are you looking for information about our service? Please visit our customer support page' | 'Are you sure you want to remove all items from your cart?' | 'Are you sure you want to remove this item from your cart?' | 'article' | 'articles' | 'As soon as possible' | 'ASC' | 'Attention' | 'Availability unknown, please contact customer support for lead time or alternatives.' | 'Billing address' | 'Billing and shipping address' | 'Billing and shipping information' | 'Billing' | 'Cancel' | 'Cart' | 'Change customer' | 'Change password' | 'Changing your address is currently not possible. Please contact customer support to change your address.' | 'Checkout order' | 'Chosen filters' | 'City' | 'Clear filters' | 'Clear' | 'Click the button below to continue shopping.' | 'Client cases' | 'Close' | 'CoC number' | 'Company name' | 'Conceal value' | 'Confirm password' | 'Continue shopping' | 'Continue to sign in' | 'Continue' | 'Copyright © Sonic Equipment B.V.' | 'Cost overview' | 'Country' | 'create account' | 'Create new list' | 'Currency Change' | 'Current page' | 'Current Password is invalid' | 'Date' | 'Decrease' | 'Delivery date' | 'Delivery expected on {0}' | 'DESC' | 'Double check your spelling' | 'Downloads' | 'Easily add your favorite products' | 'Edit billing address' | 'Edit shipping address' | 'Edit Sonic account' | 'Edit' | 'Email' | 'Enter your email address and we will send you an email that will allow you to recover your password.' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'Favorites' | 'Features' | 'Filter order status' | 'Finalize order' | 'Finalize payment' | 'First name' | 'Forgot password?' | 'Fulfillment method' | 'General' | 'Hide filters' | 'Home' | 'If an account matches the email address you entered, instructions on how to recover the password will be sent to that email address shortly. If you do not receive this email, please contact Customer Support.' | 'If you want to proceed, click the continue button. If you want to change your country, close this message and select a different country.' | 'Incl. VAT' | 'Includes' | 'Increase' | 'Industry' | 'industry.AG' | 'industry.AU' | 'industry.AV' | 'industry.BC' | 'industry.MA' | 'industry.MC' | 'industry.OT' | 'industry.PP' | 'industry.TR' | 'Information' | 'Language' | 'Last name' | 'List name already exists' | 'Log out' | 'Main menu' | 'Make this the default customer' | 'More than {0} articles' | 'My Sonic' | 'Name' | 'Navigate to...' | 'Navigation' | 'New list name' | 'New Password is required and must be different than Current Password' | 'New password' | 'New user?' | 'Next' | 'No orders found.' | 'No results found. Please refine your search.' | 'Number of favorites' | 'Number of products' | 'of' | 'OK' | 'Or continue as guest' | 'Order confirmation' | 'Order date' | 'Order number' | 'Order#' | 'Order' | 'Orders' | 'orderProperty.Number' | 'orderProperty.Date' | 'orderProperty.Price' | 'orderProperty.Status' | 'orderProperty.Shipping Address' | 'orderProperty.PO Number' | 'orderStatus.Any' | 'orderStatus.Cancelled' | 'orderStatus.Fulfilled' | 'orderStatus.Partially fulfilled' | 'orderStatus.Processing' | 'orderStatus.Saved' | 'orderStatus.Waiting for customer service' | 'Our products' | 'Overview' | 'Password changed. Please sign in again.' | 'Password does not meet requirements' | 'Password' | 'Passwords do not match' | 'Pay by invoice' | 'Payment method' | 'Payment' | 'pc' | 'Phone' | 'Pick up' | 'Pickup address' | 'Please enter a valid email address' | 'Please enter a valid phone number' | 'please go back to your cart.' | 'Please Sign In' | 'PO Number' | 'Popular searches' | 'Postal Code' | 'Previous' | 'Print' | 'Private account' | 'Processing' | 'Product Features' | 'Product' | 'Products' | 'Quantity' | 'Quick access' | 'Recent searches' | 'Recently viewed' | 'Recover your password' | 'Remember me' | 'Remove all' | 'Reorder' | 'Requested delivery date' | 'Results' | 'Reveal value' | 'Review and payment' | 'Save order' | 'Save' | 'Saved cart for later.' | 'Search for a customer' | 'Search' | 'Searching again using more general terms' | 'Search orders' | 'See all results' | 'Select a country' | 'Select a desired delivery date' | 'Select a language' | 'Select a list' | 'Select an industry' | 'Select other customer' | 'Selected customer' | 'Selecting As Soon As Possible will enable us to send the products to you as they become available.' | 'Selecting this country will result in your cart to be converted to the currency {0}' | 'Share your favorite list with others' | 'Ship' | 'Shipping address' | 'Shipping and handling' | 'Shipping details' | 'Shop more efficiently and quicker with a favorites list' | 'Shopping cart' | 'Show all' | 'Show filters' | 'Show less' | 'Show' | 'Sign in or create account' | 'sign in' | 'Sign me up for newsletters and product updates' | 'Signed in' | 'Signed out' | 'Signing in…' | 'Sonic account' | 'Sonic address' | 'Sonic Equipment' | 'Sorry, there are no products found' | 'Sorry, we could not find matches for' | 'Sort by' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc' | 'sort.relevance' | 'sort.ASC' | 'sort.DESC' | 'sort.NONE' | 'Specifications' | 'Start checkout' | 'Status' | 'Submenu' | 'Submit email address' | 'Submit' | 'Submitting…' | 'Subtotal' | 'Suggestions' | 'Support' | 'tag.limited' | 'tag.new' | 'The email address you entered is already associated with an existing account. Please sign in to this account or contact Customer Support.' | 'The expected delivery is an indication based on the product availability and the shipping location.' | 'The product has been added to your cart.' | 'The product has been removed from your cart.' | 'The product has been updated in your cart.' | 'There are more customers, please refine your search if needed.' | 'There are no products in your shopping cart.' | 'There is no information to display' | 'This email is already in use' | 'Toggle navigation menu' | 'Total amount is' | 'Total' | 'Try another search' | 'Unable to add the product to your cart.' | 'Unable to empty your cart.' | 'Unable to remove the product from your cart.' | 'Unable to save cart for later.' | 'Unable to update the product in your cart.' | 'Unknown' | 'Updating address' | 'Use billing address' | 'Use fewer keywords' | 'Username' | 'Validating' | 'validation.badInput' | 'validation.customError' | 'validation.invalid' | 'validation.patternMismatch' | 'validation.rangeOverflow' | 'validation.rangeUnderflow' | 'validation.stepMismatch' | 'validation.tooLong' | 'validation.tooShort' | 'validation.typeMismatch' | 'validation.valid' | 'validation.valueMissing' | 'VAT Number' | 'VAT' | 'Welcome to Sonic Equipment. Please choose your country and language below.' | 'What are you searching for?' | 'You are not authorized to access this information.' | 'You are not authorized to perform this action' | 'You are not authorized to view customers. Please log in or contact support.' | 'You could try checking the spelling of your search query' | 'You could try exploring our products by category' | 'You could try' | 'You have reached the end of the results, but there may be more articles available. Adjust your filters or search to discover more!' | 'You must ' | 'You selected a country where we invoice in a different currency. This will result in your cart being converted to the new currency. If you would like to review your order, ' | 'Your cart has been emptied.' | 'Your email and password were not recognized.' | 'Your favorites are available on multiple devices' | 'Your new Sonic Equipment account was succesfully created. You should receive an email soon with further instructions on how to activate this account. If you do not receive this email, please contact Customer Support.' | 'Your shopping cart is still empty';
|
package/dist/styles.css
CHANGED
|
@@ -1224,7 +1224,7 @@ html {
|
|
|
1224
1224
|
color: var(--color-brand-white);
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
|
-
.button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where(:focus, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1227
|
+
.button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where(:focus-visible, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-vq9GI, .button-module-AjvlY):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1228
1228
|
background-color: var(--color-brand-dark-red);
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
@@ -1232,7 +1232,7 @@ html {
|
|
|
1232
1232
|
color: var(--color-brand-black);
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
|
-
.button-module-tmyk8:where(.button-module-f4UVe):where(:focus, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-f4UVe):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1235
|
+
.button-module-tmyk8:where(.button-module-f4UVe):where(:focus-visible, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module-tmyk8:where(.button-module-f4UVe):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1236
1236
|
color: var(--color-brand-red);
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
@@ -1258,7 +1258,7 @@ html {
|
|
|
1258
1258
|
color: var(--color-brand-black);
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
-
.button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where(:focus, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1261
|
+
.button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where(:focus-visible, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-vq9GI, .button-module-AjvlY):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1262
1262
|
background-color: var(--color-brand-light-gray);
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
@@ -1266,7 +1266,7 @@ html {
|
|
|
1266
1266
|
color: var(--color-brand-black);
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
|
-
.button-module--1bCH:where(.button-module-f4UVe):where(:focus, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-f4UVe):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1269
|
+
.button-module--1bCH:where(.button-module-f4UVe):where(:focus-visible, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-f4UVe):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1270
1270
|
color: var(--color-brand-red);
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
@@ -1274,7 +1274,7 @@ html {
|
|
|
1274
1274
|
border: 1px solid var(--color-brand-medium-gray);
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
|
-
.button-module--1bCH:where(.button-module-vq9GI):where(:focus, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-vq9GI):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1277
|
+
.button-module--1bCH:where(.button-module-vq9GI):where(:focus-visible, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj), .button-module--1bCH:where(.button-module-vq9GI):where(:hover, .button-module-YzPAr, .button-module--xzsY, .button-module-XMFzj) {
|
|
1278
1278
|
border-color: var(--color-brand-light-gray);
|
|
1279
1279
|
}
|
|
1280
1280
|
|
|
@@ -2232,18 +2232,32 @@ html {
|
|
|
2232
2232
|
display: flex;
|
|
2233
2233
|
}
|
|
2234
2234
|
|
|
2235
|
-
.add-to-cart-button-module-
|
|
2235
|
+
.add-to-cart-button-module-D5UBe.add-to-cart-button-module-ySzuS {
|
|
2236
|
+
background-color: var(--color-red-100);
|
|
2237
|
+
color: var(--color-red-50);
|
|
2238
|
+
cursor: default;
|
|
2239
|
+
pointer-events: none;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.add-to-cart-button-module-bRV8v {
|
|
2236
2243
|
display: flex;
|
|
2237
2244
|
flex-direction: row;
|
|
2238
2245
|
gap: var(--space-4);
|
|
2239
|
-
margin-inline-start: 32px;
|
|
2240
2246
|
place-items: center;
|
|
2241
2247
|
}
|
|
2242
2248
|
|
|
2243
|
-
.add-to-cart-button-module-
|
|
2249
|
+
.add-to-cart-button-module-bRV8v > * {
|
|
2244
2250
|
flex-shrink: 0;
|
|
2245
2251
|
}
|
|
2246
2252
|
|
|
2253
|
+
.add-to-cart-button-module-bRV8v.add-to-cart-button-module-Jw4Wr {
|
|
2254
|
+
margin-inline-start: 32px;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
.add-to-cart-button-module-bRV8v .add-to-cart-button-module-UFRIT [readonly] {
|
|
2258
|
+
opacity: 0.4;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2247
2261
|
.toast-module-VzLw4 {
|
|
2248
2262
|
--inline-padding: var(--space-16);
|
|
2249
2263
|
|
|
@@ -7344,7 +7358,7 @@ button.swiper-pagination-bullet {
|
|
|
7344
7358
|
|
|
7345
7359
|
.checkout-page-layout-module-lULV3 .checkout-page-layout-module-B3M80 {
|
|
7346
7360
|
position: sticky;
|
|
7347
|
-
top: calc(var(--header-
|
|
7361
|
+
top: calc(var(--header-bottom) + var(--space-8));
|
|
7348
7362
|
padding: var(--space-24) var(--space-32) var(--space-32);
|
|
7349
7363
|
border: 1px solid #00000019;
|
|
7350
7364
|
border-radius: var(--border-radius-12);
|