@sonic-equipment/ui 0.0.38 → 0.0.40

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.
Files changed (170) hide show
  1. package/dist/badges/tag/tag.stories.d.ts +1 -0
  2. package/dist/breadcrumbs/breadcrumb.stories.d.ts +1 -0
  3. package/dist/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +1 -0
  4. package/dist/buttons/button/button.stories.d.ts +1 -0
  5. package/dist/buttons/favorite/favorite-button.stories.d.ts +1 -0
  6. package/dist/buttons/icon-button/icon-button.stories.d.ts +1 -0
  7. package/dist/buttons/link-button/link-button.stories.d.ts +1 -0
  8. package/dist/cards/category-card/category-card.stories.d.ts +1 -0
  9. package/dist/cards/product-card/connected-product-cart.d.ts +2 -3
  10. package/dist/cards/product-card/product-card.stories.d.ts +1 -0
  11. package/dist/carousel/carousel.d.ts +3 -1
  12. package/dist/carousel/category-carousel/category-carousel.d.ts +3 -3
  13. package/dist/carousel/category-carousel/category-carousel.stories.d.ts +4 -0
  14. package/dist/carousel/product-carousel/product-carousel.d.ts +5 -0
  15. package/dist/collapsables/accordion/accordion.stories.d.ts +1 -0
  16. package/dist/collapsables/show-all/show-all.stories.d.ts +1 -0
  17. package/dist/display/product-price/product-price.stories.d.ts +1 -0
  18. package/dist/display/product-sku/product-sku.stories.d.ts +1 -0
  19. package/dist/filters/active-filters/active-filters.stories.d.ts +1 -0
  20. package/dist/filters/multi-select/multi-select.stories.d.ts +1 -0
  21. package/dist/filters/pagination/pagination.stories.d.ts +3 -0
  22. package/dist/forms/checkbox/checkbox.stories.d.ts +1 -0
  23. package/dist/forms/color-checkbox/color-checkbox.stories.d.ts +1 -0
  24. package/dist/forms/field-error/field-error.stories.d.ts +1 -0
  25. package/dist/forms/input/input.stories.d.ts +1 -0
  26. package/dist/forms/label/label.stories.d.ts +1 -0
  27. package/dist/forms/number-field/number-field.stories.d.ts +1 -0
  28. package/dist/forms/select/select.stories.d.ts +1 -0
  29. package/dist/forms/text-field/text-field.stories.d.ts +1 -0
  30. package/dist/forms/textarea/textarea.stories.d.ts +1 -0
  31. package/dist/global-search/global-search.stories.d.ts +1 -0
  32. package/dist/global-search/search-result-panel/panel-content.d.ts +0 -9
  33. package/dist/global-search/search-result-panel/sections/no-results.d.ts +1 -0
  34. package/dist/global-search/search-result-panel/sections/no-search.d.ts +1 -0
  35. package/dist/global-search/search-result-panel/sections/search-content-section.d.ts +3 -0
  36. package/dist/global-search/search-result-panel/sections/section-container.d.ts +7 -0
  37. package/dist/global-search/search-result-panel/sections/with-results.d.ts +1 -0
  38. package/dist/icons/glyph/glyphs-arrow-black-left-icon.d.ts +1 -0
  39. package/dist/icons/glyph/glyphs-arrow-black-right-icon.d.ts +1 -0
  40. package/dist/icons/glyph/glyphs-arrow-blackcaps-left-icon.d.ts +1 -0
  41. package/dist/icons/glyph/glyphs-arrow-blackcaps-right-icon.d.ts +1 -0
  42. package/dist/icons/glyph/glyphs-arrow-bold-left-icon.d.ts +1 -0
  43. package/dist/icons/glyph/glyphs-arrow-bold-right-icon.d.ts +1 -0
  44. package/dist/icons/glyph/glyphs-arrow-boldcaps-left-icon.d.ts +1 -0
  45. package/dist/icons/glyph/glyphs-arrow-boldcaps-right-icon.d.ts +1 -0
  46. package/dist/icons/glyph/glyphs-arrow-regular-left-icon.d.ts +1 -0
  47. package/dist/icons/glyph/glyphs-arrow-regular-right-icon.d.ts +1 -0
  48. package/dist/icons/glyph/glyphs-arrow-regularcaps-left-icon.d.ts +1 -0
  49. package/dist/icons/glyph/glyphs-arrow-regularcaps-right-icon.d.ts +1 -0
  50. package/dist/icons/glyph/glyphs-arrow-semibold-left-icon.d.ts +1 -0
  51. package/dist/icons/glyph/glyphs-arrow-semibold-right-icon.d.ts +1 -0
  52. package/dist/icons/glyph/glyphs-arrow-semiboldcaps-left-icon.d.ts +1 -0
  53. package/dist/icons/glyph/glyphs-arrow-semiboldcaps-right-icon.d.ts +1 -0
  54. package/dist/icons/glyph/glyphs-arrow-thin-left-icon.d.ts +1 -0
  55. package/dist/icons/glyph/glyphs-arrow-thin-right-icon.d.ts +1 -0
  56. package/dist/icons/glyph/glyphs-arrow-thincaps-left-icon.d.ts +1 -0
  57. package/dist/icons/glyph/glyphs-arrow-thincaps-right-icon.d.ts +1 -0
  58. package/dist/icons/glyph/glyphs-chevrons-bold-down-icon.d.ts +1 -0
  59. package/dist/icons/glyph/glyphs-chevrons-bold-left-icon.d.ts +1 -0
  60. package/dist/icons/glyph/glyphs-chevrons-bold-right-icon.d.ts +1 -0
  61. package/dist/icons/glyph/glyphs-chevrons-bold-up-icon.d.ts +1 -0
  62. package/dist/icons/glyph/glyphs-chevrons-slim-down-icon.d.ts +1 -0
  63. package/dist/icons/glyph/glyphs-chevrons-slim-left-icon.d.ts +1 -0
  64. package/dist/icons/glyph/glyphs-chevrons-slim-right-icon.d.ts +1 -0
  65. package/dist/icons/glyph/glyphs-chevrons-slim-up-icon.d.ts +1 -0
  66. package/dist/icons/other/career-innovate-icon.d.ts +1 -0
  67. package/dist/icons/other/career-proactive-icon.d.ts +1 -0
  68. package/dist/icons/other/career-teamplayer-icon.d.ts +1 -0
  69. package/dist/icons/other/fallback-icon.d.ts +1 -0
  70. package/dist/icons/other/some-facebook-icon.d.ts +1 -0
  71. package/dist/icons/other/some-instagram-icon.d.ts +1 -0
  72. package/dist/icons/other/some-linkedin-icon.d.ts +1 -0
  73. package/dist/icons/other/some-mail-icon.d.ts +1 -0
  74. package/dist/icons/other/some-youtube-icon.d.ts +1 -0
  75. package/dist/icons/other/usp-efficiency-icon.d.ts +1 -0
  76. package/dist/icons/other/usp-style-icon.d.ts +1 -0
  77. package/dist/icons/other/usp-support-icon.d.ts +1 -0
  78. package/dist/icons/other/warranty-10y-icon.d.ts +1 -0
  79. package/dist/icons/other/warranty-1y-icon.d.ts +1 -0
  80. package/dist/icons/other/warranty-3y-icon.d.ts +1 -0
  81. package/dist/icons/other/warranty-5y-icon.d.ts +1 -0
  82. package/dist/icons/other/warranty-consumable-icon.d.ts +1 -0
  83. package/dist/icons/other/warranty-lifetime-icon.d.ts +1 -0
  84. package/dist/icons/solid/solid-attention-icon.d.ts +1 -0
  85. package/dist/icons/solid/solid-business-icon.d.ts +1 -0
  86. package/dist/icons/solid/solid-cart-icon.d.ts +1 -0
  87. package/dist/icons/solid/solid-clock-icon.d.ts +1 -0
  88. package/dist/icons/solid/solid-close-icon.d.ts +1 -0
  89. package/dist/icons/solid/solid-download-icon.d.ts +1 -0
  90. package/dist/icons/solid/solid-favorite-icon.d.ts +1 -0
  91. package/dist/icons/solid/solid-home-icon.d.ts +1 -0
  92. package/dist/icons/solid/solid-information-icon.d.ts +1 -0
  93. package/dist/icons/solid/solid-login-icon.d.ts +1 -0
  94. package/dist/icons/solid/solid-notice-icon.d.ts +1 -0
  95. package/dist/icons/solid/solid-okay-icon.d.ts +1 -0
  96. package/dist/icons/solid/solid-rating-icon.d.ts +1 -0
  97. package/dist/icons/solid/solid-tag-icon.d.ts +1 -0
  98. package/dist/icons/solid/solid-trash-icon.d.ts +1 -0
  99. package/dist/icons/solid/solid-updateuser-icon.d.ts +1 -0
  100. package/dist/icons/solid/solid-vote-thumbsdown-icon.d.ts +1 -0
  101. package/dist/icons/solid/solid-vote-thumbsup-icon.d.ts +1 -0
  102. package/dist/icons/stroke/stroke-attention-icon.d.ts +1 -0
  103. package/dist/icons/stroke/stroke-business-icon.d.ts +1 -0
  104. package/dist/icons/stroke/stroke-cart-icon.d.ts +1 -0
  105. package/dist/icons/stroke/stroke-categories-icon.d.ts +1 -0
  106. package/dist/icons/stroke/stroke-checkmark-icon.d.ts +1 -0
  107. package/dist/icons/stroke/stroke-clock-icon.d.ts +1 -0
  108. package/dist/icons/stroke/stroke-close-icon.d.ts +1 -0
  109. package/dist/icons/stroke/stroke-closebox-icon.d.ts +1 -0
  110. package/dist/icons/stroke/stroke-closemenu-icon.d.ts +1 -0
  111. package/dist/icons/stroke/stroke-collapse-icon.d.ts +1 -0
  112. package/dist/icons/stroke/stroke-dehashed-icon.d.ts +1 -0
  113. package/dist/icons/stroke/stroke-download-icon.d.ts +1 -0
  114. package/dist/icons/stroke/stroke-expand-icon.d.ts +1 -0
  115. package/dist/icons/stroke/stroke-favorite-icon.d.ts +1 -0
  116. package/dist/icons/stroke/stroke-filter-icon.d.ts +1 -0
  117. package/dist/icons/stroke/stroke-hashed-icon.d.ts +1 -0
  118. package/dist/icons/stroke/stroke-home-icon.d.ts +1 -0
  119. package/dist/icons/stroke/stroke-information-icon.d.ts +1 -0
  120. package/dist/icons/stroke/stroke-login-icon.d.ts +1 -0
  121. package/dist/icons/stroke/stroke-menu-icon.d.ts +1 -0
  122. package/dist/icons/stroke/stroke-notice-icon.d.ts +1 -0
  123. package/dist/icons/stroke/stroke-okay-icon.d.ts +1 -0
  124. package/dist/icons/stroke/stroke-rating-icon.d.ts +1 -0
  125. package/dist/icons/stroke/stroke-recent-icon.d.ts +1 -0
  126. package/dist/icons/stroke/stroke-search-icon.d.ts +1 -0
  127. package/dist/icons/stroke/stroke-tag-icon.d.ts +1 -0
  128. package/dist/icons/stroke/stroke-trash-icon.d.ts +1 -0
  129. package/dist/icons/stroke/stroke-updateuser-icon.d.ts +1 -0
  130. package/dist/icons/stroke/stroke-vote-thumbsdown-icon.d.ts +1 -0
  131. package/dist/icons/stroke/stroke-vote-thumbsup-icon.d.ts +1 -0
  132. package/dist/index.d.ts +11 -26
  133. package/dist/index.js +479 -224
  134. package/dist/lists/product-overview-grid/product-overview-grid.stories.d.ts +1 -0
  135. package/dist/loading/loading-overlay.d.ts +1 -0
  136. package/dist/loading/progress-circle.d.ts +4 -0
  137. package/dist/loading/progress-circle.stories.d.ts +12 -0
  138. package/dist/media/image/image.stories.d.ts +1 -0
  139. package/dist/pages/page/page.stories.d.ts +1 -0
  140. package/dist/pages/page-container/page-container.stories.d.ts +1 -0
  141. package/dist/pages/product-listing-page/product-listing-page.d.ts +1 -1
  142. package/dist/pages/product-listing-page/product-listing-page.stories.d.ts +1 -0
  143. package/dist/shared/api/bff/hooks/use-fetch-product-listing-page-data.stories.d.ts +1 -0
  144. package/dist/shared/api/shop/hooks/cart/cart.stories.d.ts +1 -0
  145. package/dist/shared/routing/route-provider.stories.d.ts +1 -0
  146. package/dist/styles.css +283 -117
  147. package/dist/typography/heading/heading.stories.d.ts +1 -0
  148. package/package.json +4 -1
  149. package/dist/icons/arrows/chrevron-down-bold.d.ts +0 -1
  150. package/dist/icons/arrows/chrevron-down-slim.d.ts +0 -1
  151. package/dist/icons/arrows/left-arrow-filled-icon.d.ts +0 -1
  152. package/dist/icons/arrows/right-arrow-filled-icon.d.ts +0 -1
  153. package/dist/icons/arrows/text-aligned-arrow-icon.d.ts +0 -1
  154. package/dist/icons/cart/cart-filled-icon.d.ts +0 -1
  155. package/dist/icons/cart/cart-outlined-icon.d.ts +0 -1
  156. package/dist/icons/checkmark/checkmark-filled-icon.d.ts +0 -1
  157. package/dist/icons/chevrons/chevron-left-filled-icon.d.ts +0 -1
  158. package/dist/icons/chevrons/chevron-right-filled-icon.d.ts +0 -1
  159. package/dist/icons/close/close-filled-icon.d.ts +0 -1
  160. package/dist/icons/dehashed/dehashed-outlined-icon.d.ts +0 -1
  161. package/dist/icons/favorite/favorite-filled-icon.d.ts +0 -1
  162. package/dist/icons/favorite/favorite-outlined-icon.d.ts +0 -1
  163. package/dist/icons/filter/filter-outlined-icon.d.ts +0 -1
  164. package/dist/icons/hashed/hashed-outlined-icon.d.ts +0 -1
  165. package/dist/icons/home/home-filled-icon.d.ts +0 -1
  166. package/dist/icons/magnifying-glass/magnifying-glass-icon.d.ts +0 -1
  167. package/dist/icons/math/minus-filled-icon.d.ts +0 -1
  168. package/dist/icons/math/plus-filled-icon.d.ts +0 -1
  169. package/dist/icons/reset/reset-icon.d.ts +0 -1
  170. package/dist/icons/trash/trash-outlined-icon.d.ts +0 -1
@@ -5,6 +5,7 @@ declare const meta: {
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
+ tags: string[];
8
9
  title: string;
9
10
  };
10
11
  export default meta;
@@ -0,0 +1 @@
1
+ export declare function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface ProgressCircleProps {
2
+ className?: string;
3
+ }
4
+ export declare function ProgressCircle({ className }: ProgressCircleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ProgressCircle } from './progress-circle';
3
+ declare const meta: {
4
+ component: typeof ProgressCircle;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ title: string;
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
@@ -5,6 +5,7 @@ declare const meta: {
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
+ tags: string[];
8
9
  title: string;
9
10
  };
10
11
  export default meta;
@@ -14,6 +14,7 @@ declare const meta: {
14
14
  layout: string;
15
15
  };
16
16
  render: ({ children, ...props }: import("./page").PageProps) => import("react/jsx-runtime").JSX.Element;
17
+ tags: string[];
17
18
  title: string;
18
19
  };
19
20
  export default meta;
@@ -12,6 +12,7 @@ declare const meta: {
12
12
  children: React.ReactNode;
13
13
  className?: string;
14
14
  }) => import("react/jsx-runtime").JSX.Element;
15
+ tags: string[];
15
16
  title: string;
16
17
  };
17
18
  export default meta;
@@ -13,4 +13,4 @@ export interface ProductListingPageProps {
13
13
  pageUrl: string;
14
14
  searchClient?: SearchClient;
15
15
  }
16
- export declare function ProductListingPage({ bffUrl, pageUrl, searchClient, }: ProductListingPageProps): import("react/jsx-runtime").JSX.Element | null;
16
+ export declare function ProductListingPage({ bffUrl, pageUrl, searchClient, }: ProductListingPageProps): import("react/jsx-runtime").JSX.Element;
@@ -17,6 +17,7 @@ declare const meta: {
17
17
  parameters: {
18
18
  layout: string;
19
19
  };
20
+ tags: string[];
20
21
  title: string;
21
22
  };
22
23
  export default meta;
@@ -15,6 +15,7 @@ declare const meta: {
15
15
  parameters: {
16
16
  layout: string;
17
17
  };
18
+ tags: string[];
18
19
  title: string;
19
20
  };
20
21
  export default meta;
@@ -4,6 +4,7 @@ declare const meta: {
4
4
  parameters: {
5
5
  layout: string;
6
6
  };
7
+ tags: string[];
7
8
  title: string;
8
9
  };
9
10
  export default meta;
@@ -7,6 +7,7 @@ declare const meta: {
7
7
  parameters: {
8
8
  layout: string;
9
9
  };
10
+ tags: string[];
10
11
  title: string;
11
12
  };
12
13
  export default meta;
package/dist/styles.css CHANGED
@@ -206,6 +206,7 @@
206
206
 
207
207
  /* Box shadows */
208
208
  --box-shadow-heavy: 0 0 96px 0 rgb(0 0 0 / 30%);
209
+ --box-shadow-medium: 0 0 16px 0 rgb(0 0 0 / 30%);
209
210
  --box-shadow-light: 0 0 8px 0 rgb(0 0 0 / 30%);
210
211
  }
211
212
  :root {
@@ -291,7 +292,7 @@
291
292
  font-size: var(--font-size-base);
292
293
  font-style: italic;
293
294
  font-weight: var(--font-weight-bold);
294
- gap: 5px;
295
+ gap: 2px;
295
296
  line-height: var(--line-height-base);
296
297
  text-transform: uppercase;
297
298
  -webkit-user-select: none;
@@ -373,6 +374,7 @@
373
374
 
374
375
  .button-module-tmyk8 .button-module-ydQAo {
375
376
  color: var(--color-brand-white);
377
+ transform: translateY(-1px);
376
378
  }
377
379
 
378
380
  .button-module-tmyk8:where([data-disabled]) {
@@ -699,6 +701,11 @@
699
701
  opacity: 0.4;
700
702
  }
701
703
 
704
+ .number-field-module-gmnog .number-field-module-8Lvgh svg {
705
+ width: 16px;
706
+ height: 16px;
707
+ }
708
+
702
709
  .number-field-module-gmnog span:empty {
703
710
  display: none;
704
711
  }
@@ -776,6 +783,10 @@
776
783
  text-decoration: line-through;
777
784
  }
778
785
 
786
+ .product-price-module-oIU1K .product-price-module-til0s.product-price-module-V1NCf {
787
+ opacity: 0;
788
+ }
789
+
779
790
  .product-price-module-oIU1K .product-price-module-FfVhl {
780
791
  display: flex;
781
792
  flex-wrap: wrap;
@@ -811,7 +822,7 @@
811
822
  font-weight: var(--font-weight-normal);
812
823
  }
813
824
 
814
- .product-price-module-oIU1K:has(.product-price-module-til0s) {
825
+ .product-price-module-oIU1K:has(.product-price-module-til0s:not(.product-price-module-V1NCf)) {
815
826
  --current-price-color: var(--color-brand-red);
816
827
  --current-price-font-style: italic;
817
828
  }
@@ -848,6 +859,7 @@
848
859
 
849
860
  .product-card-module-pLaiB {
850
861
  --title-font-size: var(--font-size-16);
862
+ --box-shadow: var(--box-shadow-medium);
851
863
  --price-font-size-wholes: var(--font-size-32);
852
864
  --price-font-size-decimals: var(--font-size-20);
853
865
  --image-width: 122px;
@@ -941,13 +953,14 @@
941
953
 
942
954
  @media (hover: hover) {
943
955
  .product-card-module-pLaiB:hover {
944
- box-shadow: var(--box-shadow-heavy);
956
+ box-shadow: var(--box-shadow);
945
957
  scale: 1.04;
946
958
  }
947
959
  }
948
960
 
949
961
  @container (min-width: 273px) {
950
962
  .product-card-module-pLaiB {
963
+ --box-shadow: var(--box-shadow-heavy);
951
964
  --image-width: 204px;
952
965
  --padding-bottom: var(--space-24);
953
966
  }
@@ -976,98 +989,6 @@
976
989
  }
977
990
  }
978
991
 
979
- .category-card-module-4NUjH {
980
- all: unset;
981
- display: grid;
982
- max-width: 136px;
983
- cursor: pointer;
984
- padding-inline: 10px;
985
- place-items: center;
986
- -webkit-tap-highlight-color: transparent;
987
- }
988
-
989
- .category-card-module-4NUjH,
990
- .category-card-module-4NUjH * {
991
- box-sizing: border-box;
992
- }
993
-
994
- .category-card-module-4NUjH .category-card-module-LEhh3 {
995
- margin-top: var(--space-8);
996
- margin-bottom: 0;
997
- color: var(--color-brand-black);
998
- font-size: var(--font-size-12);
999
- font-style: italic;
1000
- font-weight: var(--font-weight-bold);
1001
- line-height: 1;
1002
- text-align: center;
1003
- text-transform: uppercase;
1004
- word-break: break-word;
1005
- }
1006
-
1007
- .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 {
1008
- color: var(--color-brand-red);
1009
- }
1010
-
1011
- .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, .category-card-module-4NUjH.category-card-module-vJ7vB .category-card-module-LEhh3 {
1012
- color: var(--color-brand-red);
1013
- }
1014
-
1015
- .category-card-module-4NUjH .category-card-module-oNTrK {
1016
- position: relative;
1017
- display: flex;
1018
- width: 62px;
1019
- aspect-ratio: 1 / 1;
1020
- }
1021
-
1022
- .category-card-module-4NUjH .category-card-module-oNTrK img {
1023
- position: relative;
1024
- z-index: 5;
1025
- margin: auto;
1026
- }
1027
-
1028
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1029
- position: absolute;
1030
- width: 52px;
1031
- border-radius: 100%;
1032
- margin: auto;
1033
- aspect-ratio: 1 / 1;
1034
- background-color: var(--color-brand-light-gray);
1035
- content: '';
1036
- inset: 0;
1037
- }
1038
-
1039
- @media (width >= 768px) {
1040
- .category-card-module-4NUjH .category-card-module-oNTrK {
1041
- width: 74px;
1042
- }
1043
-
1044
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1045
- width: 62px;
1046
- }
1047
- }
1048
-
1049
- @media (width >= 1024px) {.category-card-module-4NUjH {
1050
- padding-inline: 0
1051
- }
1052
- }
1053
-
1054
- @media (width >= 1440px) {.category-card-module-4NUjH {
1055
- max-width: 144px
1056
- }
1057
-
1058
- .category-card-module-4NUjH .category-card-module-oNTrK {
1059
- width: 96px;
1060
- }
1061
-
1062
- .category-card-module-4NUjH .category-card-module-oNTrK::after {
1063
- width: 80px;
1064
- }
1065
-
1066
- .category-card-module-4NUjH .category-card-module-LEhh3 {
1067
- margin-top: var(--space-16);
1068
- }
1069
- }
1070
-
1071
992
  /**
1072
993
  * Swiper 11.1.4
1073
994
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -1362,28 +1283,31 @@
1362
1283
  position: relative;
1363
1284
  overflow: visible;
1364
1285
  }
1365
- .carousel-module-ealh- .carousel-module-IftbN::before,
1366
- .carousel-module-ealh- .carousel-module-IftbN::after {
1367
- position: absolute;
1368
- z-index: calc(var(--carousel-layer) - 1);
1369
- top: 0;
1370
- width: calc((100vw - 100%) / 2);
1371
- height: 100%;
1372
- background: var(--color-brand-white);
1373
- content: '';
1374
- opacity: 1;
1375
- transition: opacity 0.2s ease;
1376
- }
1377
- .carousel-module-ealh- .carousel-module-IftbN::before {
1378
- left: calc(-1 * ((100vw - 100%) / 2));
1379
- }
1380
- .carousel-module-ealh- .carousel-module-IftbN::after {
1381
- right: calc(-1 * ((100vw - 100%) / 2));
1382
- }
1286
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::before,
1287
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::after {
1288
+ position: absolute;
1289
+ z-index: calc(var(--carousel-layer) - 1);
1290
+ top: 0;
1291
+ width: calc((100vw - 100%) / 2);
1292
+ height: 100%;
1293
+ background: var(--color-brand-white);
1294
+ content: '';
1295
+ opacity: 1;
1296
+ transition: opacity 0.2s ease;
1297
+ }
1298
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::before {
1299
+ left: calc(-1 * ((100vw - 100%) / 2));
1300
+ }
1301
+ .carousel-module-ealh- .carousel-module-IftbN.carousel-module-tPg7k::after {
1302
+ right: calc(-1 * ((100vw - 100%) / 2));
1303
+ }
1383
1304
  .carousel-module-ealh- .carousel-module-bUMlb {
1384
1305
  display: block;
1385
1306
  width: auto;
1386
1307
  }
1308
+ .carousel-module-ealh- .carousel-module-kcqEE.carousel-module-uCrOA {
1309
+ display: none;
1310
+ }
1387
1311
  .carousel-module-ealh-:has(.carousel-module-T7bTr .carousel-module-kcqEE:hover) .carousel-module-IftbN::after, .carousel-module-ealh-:has(.carousel-module-34OWD) .carousel-module-IftbN::after {
1388
1312
  opacity: 0;
1389
1313
  }
@@ -1739,6 +1663,7 @@
1739
1663
  position: relative;
1740
1664
  display: inline-flex;
1741
1665
  box-sizing: border-box;
1666
+ flex-direction: column;
1742
1667
  flex-grow: 1;
1743
1668
  gap: var(--space-4);
1744
1669
  }
@@ -1988,6 +1913,42 @@
1988
1913
  }
1989
1914
  }
1990
1915
 
1916
+ .progress-circle-module-4nweP {
1917
+ --width: var(--space-24);
1918
+
1919
+ width: var(--width);
1920
+ height: var(--width);
1921
+ border-radius: 50%;
1922
+ animation: progress-circle-module-jPY-W 0.6s infinite linear;
1923
+ background: conic-gradient(#0000 10%, #000);
1924
+ -webkit-mask: radial-gradient(farthest-side, #0000 9px, #000 0);
1925
+ mask: radial-gradient(farthest-side, #0000 9px, #000 0);
1926
+ }
1927
+
1928
+ @keyframes progress-circle-module-jPY-W {
1929
+ to {
1930
+ transform: rotate(1turn);
1931
+ }
1932
+ }
1933
+
1934
+ .loading-overlay-module-L67Gy {
1935
+ --header-height-desktop: 96px;
1936
+ --header-height-mobile: 54px;
1937
+ --header-height: var(--header-height-mobile);
1938
+
1939
+ display: grid;
1940
+ width: 100%;
1941
+ height: calc(100dvh - var(--header-height));
1942
+ background-color: var(--color-white);
1943
+ place-items: center;
1944
+ }
1945
+
1946
+ @media (width >= 1024px) {
1947
+ .loading-overlay-module-L67Gy {
1948
+ --header-height: var(--header-height-desktop);
1949
+ }
1950
+ }
1951
+
1991
1952
  .page-container-module-PYmbC {
1992
1953
  overflow: hidden;
1993
1954
  }
@@ -2191,6 +2152,103 @@
2191
2152
  gap: var(--space-8);
2192
2153
  }
2193
2154
 
2155
+ .pagination-module-k4OgY button svg, .pagination-module-oq89A button svg {
2156
+ width: 12px;
2157
+ height: 12px;
2158
+ }
2159
+
2160
+ .category-card-module-4NUjH {
2161
+ all: unset;
2162
+ display: grid;
2163
+ max-width: 136px;
2164
+ cursor: pointer;
2165
+ padding-inline: 10px;
2166
+ place-items: center;
2167
+ -webkit-tap-highlight-color: transparent;
2168
+ }
2169
+
2170
+ .category-card-module-4NUjH,
2171
+ .category-card-module-4NUjH * {
2172
+ box-sizing: border-box;
2173
+ }
2174
+
2175
+ .category-card-module-4NUjH .category-card-module-LEhh3 {
2176
+ margin-top: var(--space-8);
2177
+ margin-bottom: 0;
2178
+ color: var(--color-brand-black);
2179
+ font-size: var(--font-size-12);
2180
+ font-style: italic;
2181
+ font-weight: var(--font-weight-bold);
2182
+ line-height: 1;
2183
+ text-align: center;
2184
+ text-transform: uppercase;
2185
+ word-break: break-word;
2186
+ }
2187
+
2188
+ .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 {
2189
+ color: var(--color-brand-red);
2190
+ }
2191
+
2192
+ .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, .category-card-module-4NUjH.category-card-module-vJ7vB .category-card-module-LEhh3 {
2193
+ color: var(--color-brand-red);
2194
+ }
2195
+
2196
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2197
+ position: relative;
2198
+ display: flex;
2199
+ width: 62px;
2200
+ aspect-ratio: 1 / 1;
2201
+ }
2202
+
2203
+ .category-card-module-4NUjH .category-card-module-oNTrK img {
2204
+ position: relative;
2205
+ z-index: 5;
2206
+ margin: auto;
2207
+ }
2208
+
2209
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2210
+ position: absolute;
2211
+ width: 52px;
2212
+ border-radius: 100%;
2213
+ margin: auto;
2214
+ aspect-ratio: 1 / 1;
2215
+ background-color: var(--color-brand-light-gray);
2216
+ content: '';
2217
+ inset: 0;
2218
+ }
2219
+
2220
+ @media (width >= 768px) {
2221
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2222
+ width: 74px;
2223
+ }
2224
+
2225
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2226
+ width: 62px;
2227
+ }
2228
+ }
2229
+
2230
+ @media (width >= 1024px) {.category-card-module-4NUjH {
2231
+ padding-inline: 0
2232
+ }
2233
+ }
2234
+
2235
+ @media (width >= 1440px) {.category-card-module-4NUjH {
2236
+ max-width: 144px
2237
+ }
2238
+
2239
+ .category-card-module-4NUjH .category-card-module-oNTrK {
2240
+ width: 96px;
2241
+ }
2242
+
2243
+ .category-card-module-4NUjH .category-card-module-oNTrK::after {
2244
+ width: 80px;
2245
+ }
2246
+
2247
+ .category-card-module-4NUjH .category-card-module-LEhh3 {
2248
+ margin-top: var(--space-16);
2249
+ }
2250
+ }
2251
+
2194
2252
  .sidebar-module-fSa9Q {
2195
2253
  --transition-timing-function: ease-in-out;
2196
2254
 
@@ -2486,6 +2544,117 @@
2486
2544
  appearance: none;
2487
2545
  }
2488
2546
 
2547
+ .search-content-module-KIok6 {
2548
+ --padding-inline: var(--space-16);
2549
+ --padding-block: var(--space-20);
2550
+
2551
+ display: grid;
2552
+ gap: var(--space-24);
2553
+ grid-template-columns: 1fr;
2554
+ }
2555
+
2556
+ .search-content-module-KIok6 .search-content-module-YRLIf {
2557
+ display: block;
2558
+ }
2559
+
2560
+ .search-content-module-KIok6 .search-content-module-qK5sg {
2561
+ display: block;
2562
+ }
2563
+
2564
+ .search-content-module-HLQ4O {
2565
+ display: grid;
2566
+ padding-block: var(--padding-block);
2567
+ padding-inline: var(--padding-inline);
2568
+ }
2569
+
2570
+ .search-content-module-HLQ4O .search-content-module-ywvOI {
2571
+ margin-top: 0;
2572
+ margin-bottom: var(--space-8);
2573
+ color: var(--color-brand-dark-gray);
2574
+ font-size: var(--font-size-16);
2575
+ font-weight: var(--font-weight-normal);
2576
+ line-height: 1;
2577
+ }
2578
+
2579
+ .search-content-module-HLQ4O.search-content-module--V5hi {
2580
+ padding-block-end: 0;
2581
+ padding-inline: 0;
2582
+ }
2583
+
2584
+ .search-content-module-HLQ4O.search-content-module--V5hi .search-content-module-ywvOI {
2585
+ padding-inline: var(--padding-inline);
2586
+ }
2587
+
2588
+ .search-content-module-bcFCH {
2589
+ --column-gap: var(--space-16);
2590
+ --card-width: 154px;
2591
+
2592
+ overflow: hidden;
2593
+ padding-top: 32px;
2594
+ margin-top: -32px;
2595
+ gap: var(--column-gap);
2596
+ padding-block-end: var(--padding-block);
2597
+ padding-inline: var(--padding-inline);
2598
+ }
2599
+
2600
+ @media (width >= 768px) {
2601
+ .search-content-module-KIok6 {
2602
+ grid-template-columns: 324px 1fr;
2603
+ }
2604
+
2605
+ .search-content-module-bcFCH {
2606
+ --card-width: 192px;
2607
+ }
2608
+ }
2609
+
2610
+ @media (width >= 1024px) {
2611
+ .search-content-module-KIok6 {
2612
+ --padding-inline: var(--space-32);
2613
+ }
2614
+ }
2615
+
2616
+ .product-carousel-module-XVTB1 {
2617
+ --slide-width: 154px;
2618
+
2619
+ position: relative;
2620
+ }
2621
+
2622
+ .product-carousel-module-XVTB1 > * {
2623
+ width: var(--slide-width);
2624
+ }
2625
+
2626
+ .product-carousel-module-XVTB1:not(:last-child)::after {
2627
+ position: absolute;
2628
+ top: 0;
2629
+ left: calc(100% + var(--column-gap) / 2);
2630
+ width: 1px;
2631
+ height: 100%;
2632
+ background-image: linear-gradient(
2633
+ to bottom,
2634
+ var(--color-white),
2635
+ #e0dfdf 10%,
2636
+ #bdbcbc 51%,
2637
+ #e0dfdf 90%,
2638
+ var(--color-white)
2639
+ );
2640
+ content: '';
2641
+ }
2642
+
2643
+ @media (hover: hover) {
2644
+ .product-carousel-module-XVTB1:has(> :hover) {
2645
+ z-index: 1;
2646
+ }
2647
+ .product-carousel-module-XVTB1:has(> :hover)::after, .product-carousel-module-XVTB1:has(+ .product-carousel-module-XVTB1:hover)::after {
2648
+ display: none;
2649
+ }
2650
+ }
2651
+
2652
+ @media (width >= 768px) {
2653
+ .product-carousel-module-XVTB1 {
2654
+ --slide-width: 192px;
2655
+ }
2656
+ }
2657
+
2489
2658
  .search-result-panel-module-KBrc9 {
2490
2659
  position: absolute;
2491
2660
  z-index: var(--sidebar-layer);
@@ -2493,15 +2662,12 @@
2493
2662
  left: 0;
2494
2663
  overflow: hidden;
2495
2664
  width: 100%;
2665
+ box-sizing: border-box;
2496
2666
  background-color: var(--color-white);
2497
2667
  box-shadow: var(--box-shadow-heavy);
2498
2668
  transition: transform 0.3s ease-in-out;
2499
2669
  }
2500
2670
 
2501
- .search-result-panel-module-KBrc9:not(:empty) {
2502
- padding: 20px 32px;
2503
- }
2504
-
2505
2671
  .search-result-panel-module-KBrc9.search-result-panel-module-Us8rb,
2506
2672
  .search-result-panel-module-KBrc9.search-result-panel-module-7UxfH {
2507
2673
  transform: translateY(0);
@@ -29,6 +29,7 @@ declare const meta: {
29
29
  parameters: {
30
30
  layout: string;
31
31
  };
32
+ tags: string[];
32
33
  title: string;
33
34
  };
34
35
  export default meta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -23,6 +23,8 @@
23
23
  "build-storybook": "storybook build",
24
24
  "check-updates": "npx npm-check-updates",
25
25
  "clean": "rimraf node_modules dist",
26
+ "generate-icons": "node src/utils/icons/import-icons.js",
27
+ "generate-icons:watch": "nodemon src/utils/icons/import-icons.js",
26
28
  "reinstall": "pnpm clean; pnpm install && pnpm build",
27
29
  "dev": "storybook dev -p 6006",
28
30
  "proxy": "node src/proxy/proxy.js",
@@ -89,6 +91,7 @@
89
91
  "http-server": "^14.1.1",
90
92
  "husky": "^9.0.11",
91
93
  "instantsearch.js": "^4.72.2",
94
+ "nodemon": "^3.1.4",
92
95
  "postcss": "^8.4.38",
93
96
  "postcss-custom-media": "^10.0.6",
94
97
  "postcss-import": "^16.1.0",
@@ -1 +0,0 @@
1
- export declare function ChevronDownBold(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function ChevronDownSlim(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function LeftArrowFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function RightArrowFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function TextAlignedArrowIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function CartFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function CartOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function CheckmarkFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function ChevronLeftFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function ChevronRightFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function CloseFilledIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function DehashedOutlinedIcon(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;