@sonic-equipment/ui 0.0.80 → 0.0.81
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/index.d.ts +3 -4
- package/dist/index.js +38 -31
- package/dist/src/buttons/button/button.d.ts +1 -2
- package/dist/src/buttons/button/button.stories.d.ts +0 -1
- package/dist/src/buttons/link/link.d.ts +1 -1
- package/dist/src/cards/category-card/category-card.d.ts +2 -1
- package/dist/src/global-search/categories-grid/categories-grid.stories.d.ts +14 -0
- package/dist/src/shared/routing/route-button.d.ts +1 -0
- package/dist/styles.css +14 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4142,7 +4142,6 @@ interface ButtonProps$1 {
|
|
|
4142
4142
|
className?: string
|
|
4143
4143
|
color?: 'primary' | 'secondary'
|
|
4144
4144
|
condensed?: boolean
|
|
4145
|
-
href?: string
|
|
4146
4145
|
icon?: React.ReactNode
|
|
4147
4146
|
iconPosition?: 'left' | 'right'
|
|
4148
4147
|
isDisabled?: boolean
|
|
@@ -4155,6 +4154,7 @@ interface ButtonProps$1 {
|
|
|
4155
4154
|
}
|
|
4156
4155
|
|
|
4157
4156
|
interface RouteButtonProps extends ButtonProps$1 {
|
|
4157
|
+
href?: string;
|
|
4158
4158
|
route?: NavigateOptions;
|
|
4159
4159
|
}
|
|
4160
4160
|
declare function RouteButton({ children, onClick, ...props }: RouteButtonProps): react_jsx_runtime.JSX.Element;
|
|
@@ -4262,7 +4262,6 @@ interface ButtonProps {
|
|
|
4262
4262
|
className?: string;
|
|
4263
4263
|
color?: 'primary' | 'secondary';
|
|
4264
4264
|
condensed?: boolean;
|
|
4265
|
-
href?: string;
|
|
4266
4265
|
icon?: React.ReactNode;
|
|
4267
4266
|
iconPosition?: 'left' | 'right';
|
|
4268
4267
|
isDisabled?: boolean;
|
|
@@ -4273,7 +4272,7 @@ interface ButtonProps {
|
|
|
4273
4272
|
variant?: 'solid' | 'outline' | 'ghost';
|
|
4274
4273
|
withArrow?: boolean;
|
|
4275
4274
|
}
|
|
4276
|
-
declare function Button({ _pseudo, children, className, color, condensed,
|
|
4275
|
+
declare function Button({ _pseudo, children, className, color, condensed, icon, iconPosition, isDisabled, onClick: _onClick, onPress: onPress, size, type, variant, withArrow, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
4277
4276
|
|
|
4278
4277
|
interface FavoriteButtonProps {
|
|
4279
4278
|
isDisabled?: boolean;
|
|
@@ -4304,7 +4303,7 @@ interface LinkProps extends LinkProps$2, RefAttributes<HTMLAnchorElement> {
|
|
|
4304
4303
|
onMouseMove?(event: MouseEvent): void;
|
|
4305
4304
|
role?: 'option';
|
|
4306
4305
|
}
|
|
4307
|
-
declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ref, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
4306
|
+
declare function Link({ children, className, color, hasUnderline, onClick: _onClick, onPress, ref, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
4308
4307
|
|
|
4309
4308
|
type AddToCartState = 'initial' | 'spinner' | 'manual-input';
|
|
4310
4309
|
interface AddToCartButtonProps {
|
package/dist/index.js
CHANGED
|
@@ -364,7 +364,9 @@ function useFeatureFlags() {
|
|
|
364
364
|
/* When no new feature flags are set get them from localStorage */
|
|
365
365
|
return Object.entries(features).reduce((acc, [, value]) => ({
|
|
366
366
|
...acc,
|
|
367
|
-
[value]:
|
|
367
|
+
[value]: HAS_LOCAL_STORAGE_SUPPORT
|
|
368
|
+
? localStorage.getItem(value) === 'true'
|
|
369
|
+
: false,
|
|
368
370
|
}), {});
|
|
369
371
|
}
|
|
370
372
|
const queryStringFeatures = String(queryParams['features'])
|
|
@@ -1164,22 +1166,24 @@ function useNavigate() {
|
|
|
1164
1166
|
|
|
1165
1167
|
var styles$X = {"link":"link-module-xLqBn","primary":"link-module-bGD6u","secondary":"link-module-v31wH","has-underline":"link-module-UuCEp"};
|
|
1166
1168
|
|
|
1167
|
-
function Link({ children, className, color = 'primary', hasUnderline, onClick: _onClick, ref, ...props }) {
|
|
1169
|
+
function Link({ children, className, color = 'primary', hasUnderline, onClick: _onClick, onPress, ref, ...props }) {
|
|
1168
1170
|
function onClick(e) {
|
|
1169
1171
|
_onClick?.(e);
|
|
1170
1172
|
if (props.href)
|
|
1171
1173
|
return;
|
|
1172
1174
|
e.preventDefault();
|
|
1173
1175
|
}
|
|
1174
|
-
const linkRef =
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1176
|
+
const linkRef = onPress
|
|
1177
|
+
? ref
|
|
1178
|
+
: ref ||
|
|
1179
|
+
(ref =>
|
|
1180
|
+
// Workaround for react/react-aria #1513
|
|
1181
|
+
ref?.addEventListener('touchend', e => e.preventDefault()));
|
|
1178
1182
|
return (jsx(Link$1, { ref: linkRef, className: clsx({ [styles$X['has-underline']]: hasUnderline }, styles$X['link'], styles$X[color], className),
|
|
1179
1183
|
// Workaround for adobe/react-spectrum #963
|
|
1180
1184
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1181
1185
|
// @ts-ignore
|
|
1182
|
-
onClick: onClick, ...props, children: children }));
|
|
1186
|
+
onClick: onClick, onPress: onPress, ...props, children: children }));
|
|
1183
1187
|
}
|
|
1184
1188
|
|
|
1185
1189
|
function RouteLink({ children, onClick: _onClick, ...props }) {
|
|
@@ -1210,21 +1214,19 @@ function GlyphsArrowBoldCapsRightIcon(props) {
|
|
|
1210
1214
|
|
|
1211
1215
|
var buttonStyles = {"button":"button-module-V4meK","icon":"button-module-XaNWz","sm":"button-module-Pbwz7","md":"button-module-GVTEW","condensed":"button-module-GKHQc","lg":"button-module-nyNY8","primary":"button-module-tmyk8","outline":"button-module-vq9GI","solid":"button-module-AjvlY","hover":"button-module-YzPAr","focus":"button-module--xzsY","active":"button-module-XMFzj","ghost":"button-module-f4UVe","right-arrow-icon":"button-module-ydQAo","secondary":"button-module--1bCH"};
|
|
1212
1216
|
|
|
1213
|
-
function Button({ _pseudo = 'none', children, className, color = 'primary', condensed,
|
|
1217
|
+
function Button({ _pseudo = 'none', children, className, color = 'primary', condensed, icon, iconPosition = 'left', isDisabled, onClick: _onClick, onPress: onPress, size = 'lg', type = 'button', variant = 'solid', withArrow = false, }) {
|
|
1214
1218
|
const showIconOnLeft = icon && iconPosition === 'left';
|
|
1215
1219
|
const showIconOnRight = icon && iconPosition === 'right';
|
|
1216
1220
|
const onClick = (e) => {
|
|
1217
1221
|
if (_onClick)
|
|
1218
1222
|
_onClick(e);
|
|
1219
|
-
if (e.isDefaultPrevented())
|
|
1220
|
-
return;
|
|
1221
|
-
if (href)
|
|
1222
|
-
window.location.href = href;
|
|
1223
1223
|
e.preventDefault();
|
|
1224
1224
|
};
|
|
1225
|
-
return (jsxs(Button$1, { ref:
|
|
1226
|
-
|
|
1227
|
-
|
|
1225
|
+
return (jsxs(Button$1, { ref: _onClick
|
|
1226
|
+
? undefined
|
|
1227
|
+
: ref =>
|
|
1228
|
+
// Workaround for react/react-aria #1513
|
|
1229
|
+
ref?.addEventListener('touchend', e => e.preventDefault()), className: clsx({ [buttonStyles.condensed]: condensed }, { [buttonStyles.icon]: icon }, buttonStyles.button, buttonStyles[variant], buttonStyles[size], buttonStyles[color], buttonStyles[_pseudo], className), isDisabled: isDisabled,
|
|
1228
1230
|
// Workaround for adobe/react-spectrum #963
|
|
1229
1231
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1230
1232
|
// @ts-ignore
|
|
@@ -1238,6 +1240,11 @@ function RouteButton({ children, onClick, ...props }) {
|
|
|
1238
1240
|
if (!props.href)
|
|
1239
1241
|
return;
|
|
1240
1242
|
e.preventDefault();
|
|
1243
|
+
if (props.isDisabled)
|
|
1244
|
+
return;
|
|
1245
|
+
if (e.ctrlKey || e.metaKey || e.shiftKey) {
|
|
1246
|
+
return window.open(props.href, '_blank');
|
|
1247
|
+
}
|
|
1241
1248
|
navigate(props.href, props.route);
|
|
1242
1249
|
}, ...props, children: children }));
|
|
1243
1250
|
}
|
|
@@ -7630,9 +7637,9 @@ function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialI
|
|
|
7630
7637
|
return (jsxs("div", { ref: showAllRef, className: clsx(styles$G['show-all'], {
|
|
7631
7638
|
[styles$G['content-fits']]: contentFits,
|
|
7632
7639
|
[styles$G['is-open']]: isReallyOpen,
|
|
7633
|
-
}), style: { '--initital-height': `${initialHeight}px` }, children: [jsx("div", { className: styles$G.panel, children: jsx("div", { className: clsx(styles$G.content, {
|
|
7634
|
-
[styles$G['has-transparency']]: hasTransparency,
|
|
7635
|
-
}), children: jsx("div", { ref: ref,
|
|
7640
|
+
}), style: contentFits ? undefined : { '--initital-height': `${initialHeight}px` }, children: [jsx("div", { className: styles$G.panel, children: jsx("div", { className: clsx(styles$G.content, {
|
|
7641
|
+
[styles$G['has-transparency']]: !contentFits && hasTransparency,
|
|
7642
|
+
}), children: jsx("div", { ref: ref, children: children }) }) }), !contentFits && (jsxs(RouteLink, { className: styles$G.button, color: "secondary", onPress: () => {
|
|
7636
7643
|
if (isControlled)
|
|
7637
7644
|
return onToggle(!isControlled);
|
|
7638
7645
|
toggle();
|
|
@@ -8153,12 +8160,12 @@ function DownloadListItem({ document: { href, name }, }) {
|
|
|
8153
8160
|
return (jsxs("div", { className: styles$m['download-list-item'], children: [jsx(StrokeDownloadIcon, {}), jsx("a", { href: href, rel: "noreferrer", target: "_blank", children: name })] }));
|
|
8154
8161
|
}
|
|
8155
8162
|
|
|
8156
|
-
var styles$l = {"product-details-panel":"product-details-panel-module-qO4Hi","heading":"product-details-panel-module-s42w-","price-action-container":"product-details-panel-module-5AUJ4","action-container":"product-details-panel-module-IZCrY","description":"product-details-panel-module-BqSmY","feature-list":"product-details-panel-module-J060x"};
|
|
8163
|
+
var styles$l = {"product-details-panel":"product-details-panel-module-qO4Hi","heading":"product-details-panel-module-s42w-","product-features-heading":"product-details-panel-module-Fa6vy","price-action-container":"product-details-panel-module-5AUJ4","action-container":"product-details-panel-module-IZCrY","description":"product-details-panel-module-BqSmY","feature-list":"product-details-panel-module-J060x"};
|
|
8157
8164
|
|
|
8158
8165
|
function ProductDetailsPanel({ product }) {
|
|
8159
|
-
return (jsxs("div", { className: styles$l['product-details-panel'], children: [jsxs("div", { className: styles$l.heading, children: [jsx(Heading, { size: "xs", children: product.productTitle }), jsx(ProductSku, { sku: product.productNumber })] }), jsxs("div", { className: styles$l['price-action-container'], children: [jsx(ProductPrice, { isVatIncluded: false, originalPrice: product.unitListPrice, price: product.unitListPrice }), jsxs("div", { className: styles$l['action-container'], children: [product.canAddToCart && (jsx(ConnectedAddToCartButton, { productId: product.storefrontId })), product.canAddToWishlist && (jsx(ConnectedFavoriteButton, { productId: product.storefrontId }))] })] }), jsxs("div", { children: [jsx(Heading, { size: "xxs", children: jsx(FormattedMessage, { id: "Product Features" }) }), jsx(ShowAll, { initialHeight: 216, children: jsx("div", { className: styles$l.description, dangerouslySetInnerHTML: {
|
|
8166
|
+
return (jsxs("div", { className: styles$l['product-details-panel'], children: [jsxs("div", { className: styles$l.heading, children: [jsx(Heading, { italic: true, size: "xs", children: product.productTitle }), jsx(ProductSku, { sku: product.productNumber })] }), jsxs("div", { className: styles$l['price-action-container'], children: [jsx(ProductPrice, { isVatIncluded: false, originalPrice: product.unitListPrice, price: product.unitListPrice }), jsxs("div", { className: styles$l['action-container'], children: [product.canAddToCart && (jsx(ConnectedAddToCartButton, { productId: product.storefrontId })), product.canAddToWishlist && (jsx(ConnectedFavoriteButton, { productId: product.storefrontId }))] })] }), jsxs("div", { children: [jsx(Heading, { italic: true, className: styles$l['product-features-heading'], size: "xxs", children: jsx(FormattedMessage, { id: "Product Features" }) }), product.content.htmlContent && (jsx(ShowAll, { initialHeight: 216, children: jsx("div", { className: styles$l.description, dangerouslySetInnerHTML: {
|
|
8160
8167
|
__html: product.content.htmlContent,
|
|
8161
|
-
} }) })] }), jsx("div", { children: jsxs(Accordion, { indented: true, borderType: ['top', 'middle-accentuated'], children: [Boolean(product.attributeTypes.length) && (jsx(AccordionItem, { id: "specification", title: jsx(FormattedMessage, { id: "Specifications" }), children: jsx(FeatureList, { className: styles$l['feature-list'], features: product.attributeTypes.map(attribute => ({
|
|
8168
|
+
} }) }))] }), jsx("div", { children: jsxs(Accordion, { indented: true, borderType: ['top', 'middle-accentuated'], children: [Boolean(product.attributeTypes.length) && (jsx(AccordionItem, { id: "specification", title: jsx(FormattedMessage, { id: "Specifications" }), children: jsx(FeatureList, { className: styles$l['feature-list'], features: product.attributeTypes.map(attribute => ({
|
|
8162
8169
|
id: `${attribute.id}`,
|
|
8163
8170
|
key: { label: attribute.label },
|
|
8164
8171
|
value: attribute.attributeValues.map(attributeValue => attributeValue.value),
|
|
@@ -8880,10 +8887,10 @@ function NoResults$1({ content, title }) {
|
|
|
8880
8887
|
|
|
8881
8888
|
var styles$d = {"category-card":"category-card-module-4NUjH","title":"category-card-module-LEhh3","arrow":"category-card-module-hL4-A","image":"category-card-module-RxWMW","is-selected":"category-card-module-vJ7vB","image-container":"category-card-module-oNTrK"};
|
|
8882
8889
|
|
|
8883
|
-
function CategoryCard({ href, image, isSelected = false, onClick, title, withArrow = false, }) {
|
|
8890
|
+
function CategoryCard({ className, href, image, isSelected = false, onClick, title, withArrow = false, }) {
|
|
8884
8891
|
return (jsxs(RouteLink, { className: clsx({
|
|
8885
8892
|
[styles$d['is-selected']]: isSelected,
|
|
8886
|
-
}, styles$d['category-card']), href: href, onClick: onClick, children: [jsx("div", { className: styles$d['image-container'], children: jsx(Image, { className: styles$d.image, ...image, fit: "contain" }) }), jsxs("p", { className: styles$d.title, children: [jsx("span", { children: title }), withArrow && jsx(GlyphsArrowBoldCapsRightIcon, { className: styles$d.arrow })] })] }));
|
|
8893
|
+
}, styles$d['category-card'], className), href: href, onClick: onClick, children: [jsx("div", { className: styles$d['image-container'], children: jsx(Image, { className: styles$d.image, ...image, fit: "contain" }) }), jsxs("p", { className: styles$d.title, children: [jsx("span", { children: title }), withArrow && jsx(GlyphsArrowBoldCapsRightIcon, { className: styles$d.arrow })] })] }));
|
|
8887
8894
|
}
|
|
8888
8895
|
|
|
8889
8896
|
function transformAlgoliaCategoryData(categories) {
|
|
@@ -8910,7 +8917,7 @@ function transformAlgoliaCategoryData(categories) {
|
|
|
8910
8917
|
|
|
8911
8918
|
function ProductListingPageCategoryCarousel({ currentCategoryPath, }) {
|
|
8912
8919
|
const { items } = useRefinementList({
|
|
8913
|
-
attribute: `hierarchicalStorefrontCategories.lvl${
|
|
8920
|
+
attribute: `hierarchicalStorefrontCategories.lvl${currentCategoryPath.length}`,
|
|
8914
8921
|
limit: 100,
|
|
8915
8922
|
});
|
|
8916
8923
|
const categories = transformAlgoliaCategoryData(items).filter(category => currentCategoryPath.every((path, index) => path === category.path[index]));
|
|
@@ -9256,11 +9263,11 @@ function SearchResultsPageContent({ keyword }) {
|
|
|
9256
9263
|
replacementValues: { 0: keyword },
|
|
9257
9264
|
}) })), jsxs("div", { style: {
|
|
9258
9265
|
display: !hasProducts ? 'none' : undefined,
|
|
9259
|
-
}, children: [jsxs("section", { className: styles$b['action-bar'], children: [jsx("div", { className: styles$b['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles$b.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles$b.sort, children: jsx(AlgoliaSortBy, {}) })] }),
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9266
|
+
}, children: [jsx("section", { className: styles$b.categories, children: jsx(SearchResultsPageCategoryCarousel, {}) }), jsxs("section", { className: styles$b['action-bar'], children: [jsx("div", { className: styles$b['sidebar-toggle'], children: jsx(ToggleSidebarButton, {}) }), jsx("span", { className: styles$b.count, children: jsx(AlgoliaResultsCount, {}) }), jsx("div", { className: styles$b.sort, children: jsx(AlgoliaSortBy, {}) })] }), jsx("section", { children: jsxs("div", { className: styles$b['product-grid-container'], children: [jsx(Sidebar, { children: jsx(AlgoliaFilterPanel, { showCategoriesFilters: true }) }), jsxs("div", { className: styles$b['product-grid'], children: [jsx(SearchResultProductOverview, {}), jsx("div", { className: styles$b.pagination, children: jsx(AlgoliaPagination, { onChange: () => {
|
|
9267
|
+
setTimeout(() => {
|
|
9268
|
+
scrollToTop();
|
|
9269
|
+
}, 100);
|
|
9270
|
+
} }) })] })] }) })] })] }));
|
|
9264
9271
|
}
|
|
9265
9272
|
|
|
9266
9273
|
var styles$a = {"background-overlay":"background-overlay-module-mGiNQ","open":"background-overlay-module-5Uxcl","close":"background-overlay-module-GRInQ"};
|
|
@@ -9672,10 +9679,10 @@ function ConnectedSearchInput() {
|
|
|
9672
9679
|
}, placeholder: t('What are you searching for?') }));
|
|
9673
9680
|
}
|
|
9674
9681
|
|
|
9675
|
-
var styles$6 = {"categories-grid":"categories-grid-module-C751R","category":"categories-grid-module-7OZS1"};
|
|
9682
|
+
var styles$6 = {"categories-grid":"categories-grid-module-C751R","category":"categories-grid-module-7OZS1","category-grid-card":"categories-grid-module-Q7i00"};
|
|
9676
9683
|
|
|
9677
9684
|
function CategoriesGrid({ categories, onItemClick, }) {
|
|
9678
|
-
return (jsx("div", { className: styles$6['categories-grid'], children: categories.map(category => (jsx("div", { className: styles$6['category'], children: jsx(CategoryCard, {
|
|
9685
|
+
return (jsx("div", { className: styles$6['categories-grid'], children: categories.map(category => (jsx("div", { className: styles$6['category'], children: jsx(CategoryCard, { className: styles$6['category-grid-card'], href: category.href, image: {
|
|
9679
9686
|
fit: 'contain',
|
|
9680
9687
|
image: category.image,
|
|
9681
9688
|
title: category.title,
|
|
@@ -5,7 +5,6 @@ export interface ButtonProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
color?: 'primary' | 'secondary';
|
|
7
7
|
condensed?: boolean;
|
|
8
|
-
href?: string;
|
|
9
8
|
icon?: React.ReactNode;
|
|
10
9
|
iconPosition?: 'left' | 'right';
|
|
11
10
|
isDisabled?: boolean;
|
|
@@ -16,4 +15,4 @@ export interface ButtonProps {
|
|
|
16
15
|
variant?: 'solid' | 'outline' | 'ghost';
|
|
17
16
|
withArrow?: boolean;
|
|
18
17
|
}
|
|
19
|
-
export declare function Button({ _pseudo, children, className, color, condensed,
|
|
18
|
+
export declare function Button({ _pseudo, children, className, color, condensed, icon, iconPosition, isDisabled, onClick: _onClick, onPress: onPress, size, type, variant, withArrow, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,7 +19,6 @@ export declare const PrimaryActive: Story;
|
|
|
19
19
|
export declare const PrimaryDisabled: Story;
|
|
20
20
|
export declare const IconOnly: Story;
|
|
21
21
|
export declare const WithArrow: Story;
|
|
22
|
-
export declare const WithHref: Story;
|
|
23
22
|
export declare const Outlined: Story;
|
|
24
23
|
export declare const SecondaryActive: Story;
|
|
25
24
|
export declare const Ghost: Story;
|
|
@@ -11,4 +11,4 @@ export interface LinkProps extends AriaLinkProps, RefAttributes<HTMLAnchorElemen
|
|
|
11
11
|
onMouseMove?(event: MouseEvent): void;
|
|
12
12
|
role?: 'option';
|
|
13
13
|
}
|
|
14
|
-
export declare function Link({ children, className, color, hasUnderline, onClick: _onClick, ref, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function Link({ children, className, color, hasUnderline, onClick: _onClick, onPress, ref, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ImageSource } from 'shared/model/image';
|
|
2
2
|
export interface CategoryCardProps {
|
|
3
|
+
className?: string;
|
|
3
4
|
href: string;
|
|
4
5
|
image: ImageSource;
|
|
5
6
|
isSelected?: boolean;
|
|
@@ -7,4 +8,4 @@ export interface CategoryCardProps {
|
|
|
7
8
|
title: string;
|
|
8
9
|
withArrow?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function CategoryCard({ href, image, isSelected, onClick, title, withArrow, }: CategoryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function CategoryCard({ className, href, image, isSelected, onClick, title, withArrow, }: CategoryCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { CategoriesGrid } from './categories-grid';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof CategoriesGrid;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const LVP: Story;
|
|
13
|
+
export declare const MVP: Story;
|
|
14
|
+
export declare const SVP: Story;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from 'buttons/button/button';
|
|
2
2
|
import { NavigateOptions } from './route-provider';
|
|
3
3
|
interface RouteButtonProps extends ButtonProps {
|
|
4
|
+
href?: string;
|
|
4
5
|
route?: NavigateOptions;
|
|
5
6
|
}
|
|
6
7
|
export declare function RouteButton({ children, onClick, ...props }: RouteButtonProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/styles.css
CHANGED
|
@@ -2938,6 +2938,10 @@ button.swiper-pagination-bullet {
|
|
|
2938
2938
|
gap: 8px;
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
2941
|
+
.product-details-panel-module-qO4Hi .product-details-panel-module-Fa6vy {
|
|
2942
|
+
padding-bottom: var(--space-12);
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2941
2945
|
.product-details-panel-module-qO4Hi .product-details-panel-module-5AUJ4 {
|
|
2942
2946
|
display: flex;
|
|
2943
2947
|
width: 100%;
|
|
@@ -2948,7 +2952,6 @@ button.swiper-pagination-bullet {
|
|
|
2948
2952
|
.product-details-panel-module-qO4Hi .product-details-panel-module-5AUJ4 .product-details-panel-module-IZCrY {
|
|
2949
2953
|
display: flex;
|
|
2950
2954
|
align-items: center;
|
|
2951
|
-
gap: 8px;
|
|
2952
2955
|
}
|
|
2953
2956
|
|
|
2954
2957
|
.product-details-panel-module-qO4Hi .product-details-panel-module-BqSmY {
|
|
@@ -2961,7 +2964,12 @@ button.swiper-pagination-bullet {
|
|
|
2961
2964
|
line-height: 1.5;
|
|
2962
2965
|
}
|
|
2963
2966
|
|
|
2967
|
+
.product-details-panel-module-qO4Hi .product-details-panel-module-BqSmY p {
|
|
2968
|
+
margin: 0;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2964
2971
|
.product-details-panel-module-qO4Hi .product-details-panel-module-J060x {
|
|
2972
|
+
margin-top: var(--space-16);
|
|
2965
2973
|
margin-bottom: var(--space-24);
|
|
2966
2974
|
}
|
|
2967
2975
|
|
|
@@ -3724,10 +3732,14 @@ button.swiper-pagination-bullet {
|
|
|
3724
3732
|
.categories-grid-module-C751R .categories-grid-module-7OZS1 {
|
|
3725
3733
|
position: relative;
|
|
3726
3734
|
display: grid;
|
|
3727
|
-
padding: var(--space-16);
|
|
3735
|
+
padding: var(--space-16) var(--space-4);
|
|
3728
3736
|
place-items: center;
|
|
3729
3737
|
}
|
|
3730
3738
|
|
|
3739
|
+
.categories-grid-module-C751R .categories-grid-module-Q7i00 {
|
|
3740
|
+
width: 100%;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3731
3743
|
@media (0 <= width < 576px) {
|
|
3732
3744
|
.categories-grid-module-C751R {
|
|
3733
3745
|
position: relative;
|