@sonic-equipment/ui 0.0.31 → 0.0.32

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 CHANGED
@@ -485,7 +485,7 @@ declare function FavoriteOutlinedIcon(props: React.SVGProps<SVGSVGElement>): rea
485
485
 
486
486
  declare function HashedOutlinedIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
487
487
 
488
- type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
488
+ type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort by' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
489
489
 
490
490
  interface FormattedMessageProps {
491
491
  fallbackValue?: string;
package/dist/index.js CHANGED
@@ -633,7 +633,7 @@ function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: Favorit
633
633
  var styles$n = {"category-card":"category-card-module-4NUjH","title":"category-card-module-LEhh3","is-selected":"category-card-module-vJ7vB","image-container":"category-card-module-oNTrK"};
634
634
 
635
635
  function CategoryCard({ href, image, isSelected = false, title, }) {
636
- return (jsxs("a", { className: clsx({
636
+ return (jsxs(Link, { className: clsx({
637
637
  [styles$n['is-selected']]: isSelected,
638
638
  }, styles$n['category-card']), href: href, children: [jsx("div", { className: styles$n['image-container'], children: jsx(Image, { ...image }) }), jsx("p", { className: styles$n.title, children: title })] }));
639
639
  }
@@ -6200,7 +6200,7 @@ function AlgoliaSortBy() {
6200
6200
  acc[option.value] = option.label;
6201
6201
  return acc;
6202
6202
  }, {});
6203
- return (jsx(Select, { label: "Sort", onChange: value => refine(String(value)), options: options, selectedOption: currentRefinement, showLabel: false }));
6203
+ return (jsx(Select, { label: t('Sort by'), onChange: value => refine(String(value)), options: options, selectedOption: currentRefinement, showLabel: false }));
6204
6204
  }
6205
6205
 
6206
6206
  function ConnectedFavoriteButton({ productId }) {
@@ -1 +1 @@
1
- export type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
1
+ export type TranslationId = 'Chosen filters' | 'Clear' | 'Clear filters' | 'Excl. VAT' | 'Hide filters' | 'Incl. VAT' | 'Show' | 'Show all' | 'Show filters' | 'Show less' | 'Sort by' | 'Submit' | 'articles' | 'article' | 'of' | 'sort.relevance' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc';
package/dist/styles.css CHANGED
@@ -844,8 +844,8 @@
844
844
  }
845
845
 
846
846
  .image-module-lg7Kj.image-module-LM93B {
847
- width: var(--space-32);
848
- height: var(--space-32);
847
+ width: var(--space-40);
848
+ height: var(--space-40);
849
849
  }
850
850
 
851
851
  .product-card-module-pLaiB {
@@ -1005,6 +1005,10 @@
1005
1005
  word-break: break-all;
1006
1006
  }
1007
1007
 
1008
+ .category-card-module-4NUjH[data-pressed] .category-card-module-LEhh3, .category-card-module-4NUjH[data-hovered] .category-card-module-LEhh3, .category-card-module-4NUjH[data-focused] .category-card-module-LEhh3 {
1009
+ color: var(--color-brand-red);
1010
+ }
1011
+
1008
1012
  .category-card-module-4NUjH.category-card-module-vJ7vB .category-card-module-LEhh3 {
1009
1013
  color: var(--color-brand-red);
1010
1014
  }
@@ -2455,8 +2459,11 @@
2455
2459
  }
2456
2460
 
2457
2461
  .search-root-module-g9MP0 {
2458
- position: relative;
2462
+ position: absolute;
2459
2463
  z-index: var(--search-layer);
2464
+ top: 0;
2465
+ right: 0;
2466
+ left: 0;
2460
2467
  box-sizing: border-box;
2461
2468
  transition: transform 0.3s ease-in-out;
2462
2469
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {