@sonic-equipment/ui 162.0.0 → 164.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.
Files changed (60) hide show
  1. package/dist/buttons/link/link.d.ts +2 -1
  2. package/dist/buttons/link/link.js +3 -3
  3. package/dist/cards/orderline-card/orderline-card.js +1 -1
  4. package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +2 -0
  5. package/dist/collapsables/cascading-component/cascading-component-container-context.js +5 -0
  6. package/dist/collapsables/cascading-component/cascading-component-container-provider.d.ts +7 -0
  7. package/dist/collapsables/cascading-component/cascading-component-container-provider.js +28 -0
  8. package/dist/collapsables/cascading-component/cascading-component-container.d.ts +8 -0
  9. package/dist/collapsables/cascading-component/cascading-component-container.js +8 -0
  10. package/dist/collapsables/cascading-component/cascading-component.d.ts +13 -0
  11. package/dist/collapsables/cascading-component/cascading-component.js +44 -0
  12. package/dist/collapsables/cascading-component/types.d.ts +11 -0
  13. package/dist/collapsables/cascading-component/use-cascading-component-container.d.ts +2 -0
  14. package/dist/collapsables/cascading-component/use-cascading-component-container.js +8 -0
  15. package/dist/collapsables/cascading-component/use-cascading-component.d.ts +2 -0
  16. package/dist/collapsables/cascading-component/use-cascading-component.js +14 -0
  17. package/dist/collapsables/cascading-component/use-has-cascading-component-container.d.ts +1 -0
  18. package/dist/collapsables/cascading-component/use-has-cascading-component-container.js +7 -0
  19. package/dist/collapsables/unmounter/unmounter.d.ts +14 -0
  20. package/dist/collapsables/unmounter/unmounter.js +43 -0
  21. package/dist/collapsables/unmounter/utils.d.ts +2 -0
  22. package/dist/collapsables/unmounter/utils.js +18 -0
  23. package/dist/country-select/country-select.js +1 -1
  24. package/dist/country-selector/connected-country-selector.js +20 -2
  25. package/dist/country-selector/country-selector-dialog/country-selector-dialog.js +1 -1
  26. package/dist/country-selector/use-countries-languages.d.ts +17 -1
  27. package/dist/country-selector/use-countries-languages.js +58 -29
  28. package/dist/delivery-time/delivery-time.d.ts +1 -1
  29. package/dist/delivery-time/delivery-time.js +20 -8
  30. package/dist/delivery-time/delivery-time.module.css.js +1 -1
  31. package/dist/exports.d.ts +15 -1
  32. package/dist/icons/glyph/glyphs-arrow-blackcaps-right-icon.js +7 -0
  33. package/dist/index.js +15 -2
  34. package/dist/intl/translation-id.d.ts +1 -1
  35. package/dist/lists/icon-list/icon-list.d.ts +10 -0
  36. package/dist/lists/icon-list/icon-list.js +11 -0
  37. package/dist/lists/icon-list/icon-list.module.css.js +3 -0
  38. package/dist/lists/menu-list/menu-list-back-button.d.ts +7 -0
  39. package/dist/lists/menu-list/menu-list-back-button.js +9 -0
  40. package/dist/lists/menu-list/menu-list-header.d.ts +7 -0
  41. package/dist/lists/menu-list/menu-list-header.js +10 -0
  42. package/dist/lists/menu-list/menu-list-item.d.ts +26 -0
  43. package/dist/lists/menu-list/menu-list-item.js +20 -0
  44. package/dist/lists/menu-list/menu-list.d.ts +14 -0
  45. package/dist/lists/menu-list/menu-list.js +13 -0
  46. package/dist/lists/menu-list/menu-list.module.css.js +3 -0
  47. package/dist/modals/signin/sign-in-dialog.js +2 -2
  48. package/dist/pages/checkout/cart-page/cart-page.js +1 -1
  49. package/dist/pages/checkout/order-confirmation-page/order-confirmation-page-content.js +1 -1
  50. package/dist/pages/checkout/payment-page/components/adyen-payment.js +1 -1
  51. package/dist/pages/checkout/payment-page/components/payment.js +9 -9
  52. package/dist/pages/checkout/payment-page/payment-page-content.js +1 -1
  53. package/dist/shared/utils/date.d.ts +1 -12
  54. package/dist/shared/utils/date.js +8 -64
  55. package/dist/styles.css +333 -6
  56. package/package.json +1 -1
  57. package/dist/lists/ul/list.d.ts +0 -10
  58. package/dist/lists/ul/list.js +0 -11
  59. package/dist/lists/ul/list.module.css.js +0 -3
  60. package/dist/shared/utils/date.test.d.ts +0 -1
package/dist/styles.css CHANGED
@@ -259,6 +259,9 @@
259
259
  100% no-repeat exclude,
260
260
  linear-gradient(0deg, #000, #000);
261
261
  }
262
+ :root {
263
+ scrollbar-gutter: stable;
264
+ }
262
265
 
263
266
  .address-info-display-module-CbRth {
264
267
  font: inherit;
@@ -1464,6 +1467,9 @@
1464
1467
  opacity: 1;
1465
1468
  visibility: visible;
1466
1469
  }
1470
+ .input-module-2woJR .input-module-zjVxG input[type='password']::-ms-reveal {
1471
+ display: none;
1472
+ }
1467
1473
 
1468
1474
  .number-field-module-xawWc .number-field-module-A1nvE {
1469
1475
  display: flex;
@@ -1948,7 +1954,7 @@
1948
1954
  }
1949
1955
  }
1950
1956
 
1951
- .list-module-7-DFP {
1957
+ .icon-list-module-tWkJY {
1952
1958
  display: flex;
1953
1959
  flex-direction: column;
1954
1960
  padding: 0;
@@ -1957,13 +1963,13 @@
1957
1963
  list-style: none;
1958
1964
  }
1959
1965
 
1960
- .list-module-YMLVY .list-module-wTIOA {
1966
+ .icon-list-module-3BzE4 .icon-list-module-9-620 {
1961
1967
  display: block;
1962
1968
  width: 24px;
1963
1969
  height: 24px;
1964
1970
  }
1965
1971
 
1966
- .list-module-YMLVY {
1972
+ .icon-list-module-3BzE4 {
1967
1973
 
1968
1974
  display: flex;
1969
1975
  align-items: center;
@@ -2612,7 +2618,7 @@
2612
2618
  aspect-ratio: 1 / 1;
2613
2619
  background-color: var(--color-brand-light-gray);
2614
2620
  content: '';
2615
- inset: 0;
2621
+ inset: var(--space-2);
2616
2622
  }
2617
2623
 
2618
2624
  @media (width >= 768px) {
@@ -2655,15 +2661,24 @@
2655
2661
  display: flex;
2656
2662
  align-items: center;
2657
2663
  color: var(--color-status-available);
2664
+ font-size: var(--font-size-14);
2658
2665
  gap: var(--space-4);
2659
2666
  grid-column: span 2;
2660
- line-height: 1.5;
2667
+ line-height: 1.25;
2661
2668
  }
2662
2669
 
2663
2670
  .delivery-time-module-fEWEl p {
2664
2671
  margin: 0;
2665
2672
  }
2666
2673
 
2674
+ .delivery-time-module-fEWEl p a {
2675
+ color: inherit;
2676
+ }
2677
+
2678
+ .delivery-time-module-fEWEl .delivery-time-module-Ta7xm {
2679
+ margin-block-start: -0.1em;
2680
+ }
2681
+
2667
2682
  /* Singular prices */
2668
2683
  .price-module-Qyyas {
2669
2684
  display: inline-grid;
@@ -2988,7 +3003,7 @@
2988
3003
  'image . sku price'
2989
3004
  'image . . price'
2990
3005
  'image . amount price'
2991
- 'image . info price';
3006
+ 'image . info info';
2992
3007
  grid-template-columns:
2993
3008
  143px var(--space-8)
2994
3009
  1fr auto
@@ -5715,6 +5730,318 @@ button.swiper-pagination-bullet {
5715
5730
  height: 20px;
5716
5731
  }
5717
5732
 
5733
+ .menu-list-module-TloB9 {
5734
+ --ml-font-size: var(--font-size-16);
5735
+ --ml-font-weight: var(--font-weight-normal);
5736
+ --ml-item-minimal-height: 48px;
5737
+ --ml-item-inner-spacing: var(--space-12);
5738
+ --ml-item-outer-spacing: var(--space-16);
5739
+ --ml-icon-size: 16px;
5740
+
5741
+ position: relative;
5742
+ display: grid;
5743
+ overflow: hidden;
5744
+ color: currentcolor;
5745
+ font-size: var(--ml-font-size);
5746
+ grid-template: auto 1fr / 1fr;
5747
+ grid-template-areas:
5748
+ 'back-button'
5749
+ 'scroll-area';
5750
+ }
5751
+
5752
+ /* TODO: scroll area row should stretch to avail height, but also enforce the scroll-area to scroll if overflowing */
5753
+
5754
+ .menu-list-module-TloB9.menu-list-module-xUg6i {
5755
+ --ml-font-size: var(--font-size-18);
5756
+ --ml-font-weight: var(--font-weight-bold);
5757
+ --ml-button-hover-color: var(--color-white);
5758
+ --ml-button-hover-bgcolor: var(--color-brand-red);
5759
+ --ml-link-hover-color: var(--color-white);
5760
+ --ml-link-hover-bgcolor: var(--color-brand-red);
5761
+ --ml-selected-color: var(--color-white);
5762
+ --ml-selected-bgcolor: var(--color-brand-red);
5763
+ }
5764
+
5765
+ /* scroll area */
5766
+
5767
+ .menu-list-module-TloB9 .menu-list-module-x3D-V {
5768
+ grid-area: scroll-area;
5769
+ overflow-y: auto;
5770
+ scrollbar-width: thin;
5771
+ }
5772
+
5773
+ /* list */
5774
+
5775
+ .menu-list-module-TloB9 .menu-list-module-m3rpo {
5776
+ display: grid;
5777
+ padding: 0 0 1px;
5778
+ margin: 0;
5779
+ grid-template-columns: 1fr;
5780
+ list-style: none;
5781
+ }
5782
+
5783
+ .menu-list-module-TloB9 .menu-list-module-m3rpo > * {
5784
+ margin-block: 0 -1px;
5785
+ }
5786
+
5787
+ /* menu list back button */
5788
+
5789
+ .menu-list-module-eKDL9 {
5790
+ all: unset;
5791
+ display: flex;
5792
+ align-items: center;
5793
+ padding: var(--space-4) var(--ml-item-outer-spacing, var(--space-8));
5794
+ background: var(--color-brand-light-gray);
5795
+ cursor: pointer;
5796
+ gap: var(--space-4);
5797
+ grid-area: back-button;
5798
+ inset-block-start: 0;
5799
+ min-block-size: var(--ml-item-minimal-height, 0);
5800
+ }
5801
+
5802
+ .menu-list-module-eKDL9:focus-visible {
5803
+ box-shadow: inset var(--shadow-focus-outline);
5804
+ }
5805
+
5806
+ .menu-list-module-eKDL9 .menu-list-module-syyw9 {
5807
+ block-size: var(--ml-icon-size);
5808
+ inline-size: var(--ml-icon-size);
5809
+ }
5810
+
5811
+ /* menu list title */
5812
+
5813
+ .menu-list-module-S08LI {
5814
+ position: relative;
5815
+ display: flex;
5816
+ align-items: center;
5817
+ padding: var(--space-8) var(--ml-item-outer-spacing, 0);
5818
+ margin: 0 0 -2px;
5819
+ background: var(--color-white);
5820
+ color: var(--color-brand-dark-gray);
5821
+ font-size: var(--text-heading-xxxs-size);
5822
+ font-style: italic;
5823
+ font-weight: var(--font-weight-black);
5824
+ line-height: 1;
5825
+ min-block-size: var(--ml-item-minimal-height, 0);
5826
+ text-wrap: pretty;
5827
+ }
5828
+
5829
+ .menu-list-module-S08LI [href] {
5830
+ position: static;
5831
+ display: flex;
5832
+ align-items: center;
5833
+ box-shadow: none;
5834
+ color: var(--color-brand-dark-gray);
5835
+ }
5836
+
5837
+ .menu-list-module-S08LI [href]:hover {
5838
+ color: var(--color-brand-red);
5839
+ }
5840
+
5841
+ .menu-list-module-S08LI [href] .menu-list-module-syyw9 {
5842
+ flex-shrink: 0;
5843
+ block-size: 1ex;
5844
+ inline-size: 1ex;
5845
+ margin-block-start: 0.1em;
5846
+ }
5847
+
5848
+ .menu-list-module-S08LI [href]::after {
5849
+ position: absolute;
5850
+ background: transparent;
5851
+ content: '';
5852
+ inset: 0;
5853
+ }
5854
+
5855
+ .menu-list-module-S08LI:has(:focus-visible) {
5856
+ z-index: 1;
5857
+ box-shadow: inset var(--shadow-focus-outline);
5858
+ }
5859
+
5860
+ /* menu list item */
5861
+
5862
+ .menu-list-module-4QhF4 {
5863
+ --mli-button-hover-color: var(--ml-button-hover-color, currentcolor);
5864
+ --mli-button-hover-bgcolor: var(
5865
+ --ml-button-hover-bgcolor,
5866
+ var(--color-brand-light-gray)
5867
+ );
5868
+ --mli-link-hover-color: var(--ml-link-hover-color, var(--color-brand-red));
5869
+ --mli-link-hover-bgcolor: var(--ml-link-hover-bgcolor, transparent);
5870
+ --mli-selected-color: var(--ml-selected-color, currentcolor);
5871
+ --mli-selected-bgcolor: var(
5872
+ --ml-selected-bgcolor,
5873
+ var(--color-brand-light-gray)
5874
+ );
5875
+ --mli-inner-spacing: var(--ml-item-inner-spacing, var(--space-12));
5876
+ --mli-outer-spacing: var(--ml-item-outer-spacing, var(--space-16));
5877
+ --mli-image-size: 48px;
5878
+ --mli-badge-size: 24px;
5879
+ --mli-icon-size: var(--ml-icon-size, 16px);
5880
+
5881
+ position: relative;
5882
+ z-index: 0;
5883
+ display: grid;
5884
+ align-items: center;
5885
+ padding: var(--space-8) 0;
5886
+ margin: 0;
5887
+ grid-template:
5888
+ minmax(var(--ml-item-minimal-height, 48px), min-content) / var(
5889
+ --mli-outer-spacing
5890
+ )
5891
+ minmax(0, min-content) 1fr var(--mli-outer-spacing);
5892
+ grid-template-areas: '. imagebadge label .';
5893
+
5894
+ /* children icon */
5895
+ }
5896
+
5897
+ /* separator lines */
5898
+
5899
+ .menu-list-module-4QhF4::before,
5900
+ .menu-list-module-4QhF4::after {
5901
+ position: absolute;
5902
+ z-index: -2;
5903
+ background: var(--color-brand-light-gray);
5904
+ block-size: 1px;
5905
+ content: '';
5906
+ inset-inline: var(--mli-outer-spacing);
5907
+ }
5908
+
5909
+ .menu-list-module-4QhF4::before {
5910
+ inset-block: 0 auto;
5911
+ }
5912
+
5913
+ .menu-list-module-4QhF4::after {
5914
+ inset-block: auto 0;
5915
+ }
5916
+
5917
+ /* text label */
5918
+
5919
+ .menu-list-module-4QhF4 .menu-list-module-xFYyo {
5920
+ position: static;
5921
+ padding: 0;
5922
+ border: 0;
5923
+ background: transparent;
5924
+ box-shadow: none;
5925
+ color: currentcolor;
5926
+ cursor: pointer;
5927
+ font: inherit;
5928
+ font-weight: var(--ml-font-weight, normal);
5929
+ grid-area: label;
5930
+ line-height: 1;
5931
+ text-align: left;
5932
+ }
5933
+
5934
+ .menu-list-module-4QhF4 .menu-list-module-xFYyo::before {
5935
+ position: absolute;
5936
+ z-index: -1;
5937
+ background: inherit;
5938
+ content: '';
5939
+ inset: 0;
5940
+ }
5941
+
5942
+ .menu-list-module-4QhF4 .menu-list-module-xFYyo::after {
5943
+ position: absolute;
5944
+ background: transparent;
5945
+ content: '';
5946
+ inset: 0;
5947
+ }
5948
+
5949
+ /* image */
5950
+
5951
+ .menu-list-module-4QhF4 .menu-list-module-ELekn {
5952
+ position: relative;
5953
+ z-index: 0;
5954
+ aspect-ratio: 1;
5955
+ grid-area: imagebadge;
5956
+ inline-size: var(--mli-image-size);
5957
+ margin-inline-end: var(--mli-inner-spacing);
5958
+ }
5959
+
5960
+ .menu-list-module-4QhF4 .menu-list-module-ELekn [class*='image'] {
5961
+ mix-blend-mode: multiply;
5962
+ }
5963
+
5964
+ .menu-list-module-4QhF4 .menu-list-module-ELekn::after {
5965
+ position: absolute;
5966
+ z-index: -1;
5967
+ border-radius: 100%;
5968
+ background-color: rgb(0 0 0 / 7%);
5969
+ content: '';
5970
+ inset: 2px;
5971
+ }
5972
+
5973
+ /* badge */
5974
+
5975
+ .menu-list-module-4QhF4 .menu-list-module-4PbP- {
5976
+ display: grid;
5977
+ grid-area: imagebadge;
5978
+ inline-size: var(--mli-badge-size);
5979
+ margin-inline-end: var(--mli-inner-spacing);
5980
+ }
5981
+
5982
+ /* stylelint-disable-next-line no-descending-specificity */
5983
+
5984
+ .menu-list-module-4QhF4 .menu-list-module-syyw9 {
5985
+ aspect-ratio: 1;
5986
+ block-size: var(--mli-icon-size);
5987
+ grid-area: icon;
5988
+ inline-size: var(--mli-icon-size);
5989
+ justify-self: center;
5990
+ }
5991
+
5992
+ /* focus */
5993
+
5994
+ .menu-list-module-4QhF4:has(:focus-visible) {
5995
+ z-index: 2;
5996
+ }
5997
+
5998
+ .menu-list-module-4QhF4:has(:focus-visible) .menu-list-module-xFYyo::before {
5999
+ box-shadow: inset var(--shadow-focus-outline);
6000
+ }
6001
+
6002
+ /* selected state */
6003
+
6004
+ .menu-list-module-4QhF4.menu-list-module-hiMca {
6005
+ z-index: 1;
6006
+ color: var(--mli-selected-color);
6007
+ }
6008
+
6009
+ .menu-list-module-4QhF4.menu-list-module-hiMca .menu-list-module-xFYyo::before {
6010
+ background: var(--mli-selected-bgcolor);
6011
+ }
6012
+
6013
+ /* no children */
6014
+
6015
+ .menu-list-module-4QhF4:not(.menu-list-module-61uJb, .menu-list-module-hiMca):has(.menu-list-module-xFYyo:hover) {
6016
+ z-index: 2;
6017
+ color: var(--mli-link-hover-color);
6018
+ }
6019
+
6020
+ .menu-list-module-4QhF4:not(.menu-list-module-61uJb, .menu-list-module-hiMca):has(.menu-list-module-xFYyo:hover) .menu-list-module-xFYyo::before {
6021
+ background: var(--mli-link-hover-bgcolor);
6022
+ }
6023
+
6024
+ /* has children */
6025
+
6026
+ .menu-list-module-4QhF4.menu-list-module-61uJb {
6027
+ grid-template-areas: '. imagebadge label icon';
6028
+ grid-template-columns:
6029
+ var(--mli-outer-spacing) minmax(0, min-content)
6030
+ 1fr calc(
6031
+ var(--mli-inner-spacing) + var(--mli-icon-size) +
6032
+ var(--mli-inner-spacing)
6033
+ );
6034
+ }
6035
+
6036
+ .menu-list-module-4QhF4.menu-list-module-61uJb:not(.menu-list-module-hiMca):has(.menu-list-module-xFYyo:hover) {
6037
+ z-index: 2;
6038
+ color: var(--mli-button-hover-color);
6039
+ }
6040
+
6041
+ .menu-list-module-4QhF4.menu-list-module-61uJb:not(.menu-list-module-hiMca):has(.menu-list-module-xFYyo:hover) .menu-list-module-xFYyo::before {
6042
+ background: var(--mli-button-hover-bgcolor);
6043
+ }
6044
+
5718
6045
  .orderline-list-module-v-FqO {
5719
6046
  container-type: inline-size;
5720
6047
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "162.0.0",
3
+ "version": "164.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface ListProps {
3
- children: ReactNode;
4
- }
5
- export declare function List({ children }: ListProps): import("react/jsx-runtime").JSX.Element;
6
- export interface ListItemProps {
7
- icon?: ReactNode;
8
- text: ReactNode;
9
- }
10
- export declare function ListItem({ icon, text }: ListItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import styles from './list.module.css.js';
3
-
4
- function List({ children }) {
5
- return jsx("ul", { className: styles.list, children: children });
6
- }
7
- function ListItem({ icon, text }) {
8
- return (jsxs("li", { className: styles['list-item'], children: [icon && jsx("span", { className: styles.icon, children: icon }), text] }));
9
- }
10
-
11
- export { List, ListItem };
@@ -1,3 +0,0 @@
1
- var styles = {"list":"list-module-7-DFP","list-item":"list-module-YMLVY","icon":"list-module-wTIOA"};
2
-
3
- export { styles as default };
@@ -1 +0,0 @@
1
- export {};