@vectoriox/iox-ui 5.96.1 → 5.96.2
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.
|
@@ -5025,7 +5025,7 @@ function buildVariantPickerRecipe(create) {
|
|
|
5025
5025
|
/** Quantity: − · the count · + (min 1, max from the variant's stock). `compact` = a cart line's. */
|
|
5026
5026
|
function buildQuantityRecipe(create, compact = false, key = 'quantity') {
|
|
5027
5027
|
const size = compact ? '30px' : 'var(--iox-stepper-size)';
|
|
5028
|
-
const root = part(create, key, Type.Container, ShopRole.Quantity, Style.Quantity, {}, SHOP_LABELS.quantity, { ...ROW, alignItems: 'stretch', gap: '0px',
|
|
5028
|
+
const root = part(create, key, Type.Container, ShopRole.Quantity, Style.Quantity, {}, SHOP_LABELS.quantity, { ...ROW, alignItems: 'stretch', gap: '0px', minHeight: size });
|
|
5029
5029
|
const down = button(create, `${key}-down`, ShopRole.QuantityDown, Style.QuantityButton, 'Decrease', 'Decrease quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO });
|
|
5030
5030
|
down.children = [icon(create, `${key}-down-icon`, 'ph ph-minus', compact ? '14px' : '16px')];
|
|
5031
5031
|
const value = text(create, `${key}-value`, ShopRole.QuantityValue, Style.Body, SHOP_RECIPE_WORDS.quantity, 'Count', { ...WORDS, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: compact ? '32px' : '40px', fontVariantNumeric: 'tabular-nums' }, 'span');
|
|
@@ -5054,7 +5054,7 @@ function buildBuyNowRecipe(create) {
|
|
|
5054
5054
|
/** The bag button with its live count ($cart.count); it opens the page's cart drawer. */
|
|
5055
5055
|
function buildCartButtonRecipe(create) {
|
|
5056
5056
|
const root = button(create, 'cart-button', ShopRole.CartButton, Style.CartButton, SHOP_LABELS.cartButton, SHOP_RECIPE_WORDS.cart, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', padding: '6px 6px 6px 6px', position: 'relative' });
|
|
5057
|
-
const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style.CartCount, {}, 'Count', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', minHeight: '
|
|
5057
|
+
const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style.CartCount, {}, 'Count', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', minHeight: 'var(--iox-cart-count-size)', padding: '0px 4px 0px 4px', position: 'absolute', top: '-5px', right: '-5px' });
|
|
5058
5058
|
const words = text(create, 'cart-count-text', null, Style.Label, SHOP_RECIPE_WORDS.count, 'Text', { ...WORDS, lineHeight: '1' }, 'span');
|
|
5059
5059
|
bindSlot(words, 'content', '$cart', 'count');
|
|
5060
5060
|
count.children = [words];
|