@sonic-equipment/ui 214.0.0 → 216.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.
- package/dist/address-info-display/address-info-display.js +1 -1
- package/dist/algolia/algolia-insights-provider.d.ts +1 -1
- package/dist/buttons/button/button.d.ts +1 -1
- package/dist/buttons/link/link.d.ts +1 -1
- package/dist/buttons/print-button/print-button.d.ts +2 -1
- package/dist/buttons/print-button/print-button.js +2 -2
- package/dist/cards/product-card/product-card.js +1 -1
- package/dist/cards/table-card/table-card.d.ts +1 -1
- package/dist/cards/table-card/table-card.js +5 -3
- package/dist/carousel/carousel-navigation-button.d.ts +1 -1
- package/dist/cart-totals/cart-totals.js +1 -1
- package/dist/collapsables/accordion/accordion-item.js +3 -1
- package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +1 -1
- package/dist/collapsables/show-all/show-all.js +4 -2
- package/dist/collapsables/unmounter/unmounter.d.ts +1 -1
- package/dist/cookies/cookie-context.d.ts +1 -1
- package/dist/country-select/country-select.js +3 -1
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.js +3 -1
- package/dist/exports.d.ts +13 -1
- package/dist/filters/active-filters/active-filters.js +1 -1
- package/dist/forms/elements/field-error/field-error.js +3 -1
- package/dist/forms/fields/number-field/number-field.d.ts +1 -1
- package/dist/forms/partials/address-form/address-form.js +6 -2
- package/dist/header/buttons/account/connected-account-button.js +1 -1
- package/dist/index.js +15 -3
- package/dist/intl/formatted-message.d.ts +3 -2
- package/dist/intl/formatted-message.js +25 -5
- package/dist/intl/intl-context.d.ts +1 -1
- package/dist/intl/intl-context.js +1 -10
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/intl/types.d.ts +27 -15
- package/dist/intl/types.js +7 -1
- package/dist/intl/use-formatted-message.d.ts +2 -2
- package/dist/intl/use-formatted-message.js +5 -5
- package/dist/intl/use-intl.js +4 -1
- package/dist/intl/utils.js +1 -1
- package/dist/lists/menu-list/menu-list-provider.d.ts +1 -1
- package/dist/modals/confirmation/confirmation-dialog.d.ts +3 -2
- package/dist/modals/dialog/dialog.js +1 -1
- package/dist/notifications/announcements/announcement.d.ts +1 -1
- package/dist/observers/intersection-observer.js +1 -1
- package/dist/pages/my-sonic/actions/change-password/change-password.js +1 -1
- package/dist/pages/my-sonic/actions/edit-bill-to-address/connected-edit-bill-to-address-form.js +1 -1
- package/dist/pages/my-sonic/actions/edit-ship-to-address/connected-edit-ship-to-address-form.js +1 -1
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +1 -1
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +2 -2
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.js +3 -1
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.js +4 -2
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.d.ts +1 -1
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.js +3 -3
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +7 -0
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +7 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +9 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.js +23 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.js +30 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.d.ts +8 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.js +69 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +3 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +8 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +41 -0
- package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/order-history/{order-history.js → order-history-page.js} +25 -7
- package/dist/pages/my-sonic/pages/order-history/order-history-page.module.css.js +3 -0
- package/dist/pages/my-sonic/widgets/connected-address-book-widget.js +8 -6
- package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.js +14 -0
- package/dist/shared/api/storefront/model/storefront.model.d.ts +2 -1
- package/dist/shared/api/storefront/services/order-service.d.ts +3 -1
- package/dist/shared/api/storefront/services/order-service.js +12 -1
- package/dist/shared/data/order.d.ts +2 -0
- package/dist/shared/data/order.js +41 -0
- package/dist/shared/hooks/use-inert.d.ts +3 -0
- package/dist/shared/hooks/use-inert.js +16 -0
- package/dist/shared/model/address.d.ts +1 -1
- package/dist/shared/providers/global-state-provider.d.ts +1 -1
- package/dist/shared/routing/route-context.d.ts +1 -1
- package/dist/shared/routing/types.d.ts +1 -1
- package/dist/shared/routing/use-route-link-element.d.ts +1 -1
- package/dist/shared/routing/use-route-link.d.ts +1 -1
- package/dist/shared/routing/with-routing.d.ts +2 -2
- package/dist/sidebar/sidebar.js +4 -2
- package/dist/styles.css +129 -48
- package/dist/table/elements/table-context.d.ts +1 -1
- package/dist/table/elements/table-row-context.d.ts +1 -1
- package/dist/table/elements/types.d.ts +1 -0
- package/dist/text/status-text/status-text.d.ts +6 -0
- package/dist/text/status-text/status-text.js +8 -0
- package/dist/text/status-text/status-text.module.css.js +3 -0
- package/dist/toast/toast.d.ts +1 -1
- package/dist/typography/heading/heading.d.ts +2 -2
- package/package.json +7 -7
- package/dist/pages/my-sonic/pages/order-history/order-history.d.ts +0 -1
- package/dist/pages/my-sonic/pages/order-history/order-history.module.css.js +0 -3
package/dist/styles.css
CHANGED
|
@@ -8104,6 +8104,7 @@ button.swiper-pagination-bullet {
|
|
|
8104
8104
|
display: grid;
|
|
8105
8105
|
gap: var(--gap) 0;
|
|
8106
8106
|
grid-template-areas:
|
|
8107
|
+
'breadcrumb'
|
|
8107
8108
|
'pre-aside'
|
|
8108
8109
|
'aside'
|
|
8109
8110
|
'title'
|
|
@@ -8119,6 +8120,8 @@ button.swiper-pagination-bullet {
|
|
|
8119
8120
|
--aside-sticky-top: calc(var(--header-bottom, 0) + var(--space-16));
|
|
8120
8121
|
|
|
8121
8122
|
grid-template-areas:
|
|
8123
|
+
'breadcrumb breadcrumb breadcrumb'
|
|
8124
|
+
'pre-aside pre-aside pre-aside'
|
|
8122
8125
|
'. . title'
|
|
8123
8126
|
'aside . main';
|
|
8124
8127
|
grid-template-columns: var(--aside-size) var(--gap) 1fr
|
|
@@ -8129,6 +8132,7 @@ button.swiper-pagination-bullet {
|
|
|
8129
8132
|
--aside-size: clamp(56px, 22%, 308px);
|
|
8130
8133
|
|
|
8131
8134
|
grid-template-areas:
|
|
8135
|
+
'breadcrumb breadcrumb breadcrumb'
|
|
8132
8136
|
'pre-aside . title'
|
|
8133
8137
|
'aside . main';
|
|
8134
8138
|
grid-template-columns: var(--aside-size) var(--gap) 1fr
|
|
@@ -8142,6 +8146,14 @@ button.swiper-pagination-bullet {
|
|
|
8142
8146
|
}
|
|
8143
8147
|
}
|
|
8144
8148
|
|
|
8149
|
+
/* pre aside */
|
|
8150
|
+
|
|
8151
|
+
.my-sonic-layout-module-ep0n3 .my-sonic-layout-module-QsEQM {
|
|
8152
|
+
align-self: last baseline;
|
|
8153
|
+
grid-area: breadcrumb;
|
|
8154
|
+
margin-block-end: var(--margin);
|
|
8155
|
+
}
|
|
8156
|
+
|
|
8145
8157
|
/* title */
|
|
8146
8158
|
|
|
8147
8159
|
.my-sonic-layout-module-ep0n3 .my-sonic-layout-module-yMdPQ {
|
|
@@ -8187,6 +8199,10 @@ button.swiper-pagination-bullet {
|
|
|
8187
8199
|
|
|
8188
8200
|
@media (width >= 768px) {.connected-my-sonic-navigation-module-2iY0- {
|
|
8189
8201
|
display: none
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
@media print {.connected-my-sonic-navigation-module-2iY0- {
|
|
8205
|
+
display: none
|
|
8190
8206
|
}
|
|
8191
8207
|
}
|
|
8192
8208
|
|
|
@@ -8592,7 +8608,106 @@ button.swiper-pagination-bullet {
|
|
|
8592
8608
|
inline-size: var(--space-20);
|
|
8593
8609
|
}
|
|
8594
8610
|
|
|
8595
|
-
.
|
|
8611
|
+
.connected-address-book-widget-module-Xd9WN {
|
|
8612
|
+
--height-actions: 42px;
|
|
8613
|
+
--height-title: 22px;
|
|
8614
|
+
}
|
|
8615
|
+
|
|
8616
|
+
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-9mOgI {
|
|
8617
|
+
--scroll-margin-block-start: calc(
|
|
8618
|
+
var(--header-bottom, 0px) + var(--space-12) * 3 + var(--height-actions) +
|
|
8619
|
+
var(--height-title)
|
|
8620
|
+
);
|
|
8621
|
+
|
|
8622
|
+
scroll-margin-block-start: var(--scroll-margin-block-start, 0);
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8625
|
+
@container (min-width: 636px) {
|
|
8626
|
+
|
|
8627
|
+
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-9mOgI {
|
|
8628
|
+
--scroll-margin-block-start: calc(
|
|
8629
|
+
var(--header-bottom, 0px) + var(--space-12) * 2 + var(--height-actions)
|
|
8630
|
+
)
|
|
8631
|
+
}
|
|
8632
|
+
}
|
|
8633
|
+
|
|
8634
|
+
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-g9kHi {
|
|
8635
|
+
block-size: 1em;
|
|
8636
|
+
inline-size: 1em;
|
|
8637
|
+
margin-inline-end: -8px;
|
|
8638
|
+
vertical-align: -0.2em;
|
|
8639
|
+
}
|
|
8640
|
+
|
|
8641
|
+
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-3ir-C {
|
|
8642
|
+
flex-grow: 1;
|
|
8643
|
+
}
|
|
8644
|
+
|
|
8645
|
+
.status-text-module-63aRD {
|
|
8646
|
+
font-weight: 600;
|
|
8647
|
+
}
|
|
8648
|
+
|
|
8649
|
+
.status-text-module-63aRD[data-status='success'] {
|
|
8650
|
+
color: var(--color-semantic-okay);
|
|
8651
|
+
}
|
|
8652
|
+
|
|
8653
|
+
.status-text-module-63aRD[data-status='critical'] {
|
|
8654
|
+
color: var(--color-semantic-stop);
|
|
8655
|
+
}
|
|
8656
|
+
|
|
8657
|
+
.status-text-module-63aRD[data-status='pending'] {
|
|
8658
|
+
color: var(--color-semantic-notify);
|
|
8659
|
+
}
|
|
8660
|
+
|
|
8661
|
+
.order-details-content-module-aU3VQ {
|
|
8662
|
+
display: grid;
|
|
8663
|
+
gap: var(--space-12);
|
|
8664
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
8665
|
+
}
|
|
8666
|
+
|
|
8667
|
+
.order-details-content-module-aU3VQ .order-details-content-module-q0QYm {
|
|
8668
|
+
display: flex;
|
|
8669
|
+
align-items: start;
|
|
8670
|
+
gap: var(--space-8);
|
|
8671
|
+
}
|
|
8672
|
+
|
|
8673
|
+
.order-details-content-module-aU3VQ .order-details-content-module-q0QYm .order-details-content-module-d9sC4 {
|
|
8674
|
+
flex: 1;
|
|
8675
|
+
}
|
|
8676
|
+
|
|
8677
|
+
.order-details-content-module-aU3VQ .order-details-content-module--1w7s dl {
|
|
8678
|
+
display: flex;
|
|
8679
|
+
}
|
|
8680
|
+
|
|
8681
|
+
.order-details-content-module-aU3VQ .order-details-content-module--1w7s dl dt {
|
|
8682
|
+
font-weight: var(--font-weight-bold);
|
|
8683
|
+
}
|
|
8684
|
+
|
|
8685
|
+
.order-details-content-module-aU3VQ .order-details-content-module-BO26h h3 {
|
|
8686
|
+
padding-bottom: var(--space-8);
|
|
8687
|
+
}
|
|
8688
|
+
|
|
8689
|
+
@media print {
|
|
8690
|
+
|
|
8691
|
+
.order-details-content-module-aU3VQ button {
|
|
8692
|
+
display: none
|
|
8693
|
+
}
|
|
8694
|
+
}
|
|
8695
|
+
|
|
8696
|
+
.order-details-content-module-aU3VQ .order-details-content-module-RkRvM,
|
|
8697
|
+
.order-details-content-module-aU3VQ .order-details-content-module-o62H3 {
|
|
8698
|
+
display: flex;
|
|
8699
|
+
justify-content: flex-end;
|
|
8700
|
+
}
|
|
8701
|
+
|
|
8702
|
+
@media print {
|
|
8703
|
+
|
|
8704
|
+
.order-details-content-module-aU3VQ .order-details-content-module-RkRvM,
|
|
8705
|
+
.order-details-content-module-aU3VQ .order-details-content-module-o62H3 {
|
|
8706
|
+
display: none
|
|
8707
|
+
}
|
|
8708
|
+
}
|
|
8709
|
+
|
|
8710
|
+
.order-history-page-module-A-YGB {
|
|
8596
8711
|
--gap-col: var(--space-8);
|
|
8597
8712
|
--gap-row: var(--space-8);
|
|
8598
8713
|
--sticky-z-index: 10;
|
|
@@ -8611,7 +8726,7 @@ button.swiper-pagination-bullet {
|
|
|
8611
8726
|
scroll-margin-block: calc(var(--sticky-top) + var(--gap-row));
|
|
8612
8727
|
}
|
|
8613
8728
|
|
|
8614
|
-
@media (width >= 768px) {.order-history-module-
|
|
8729
|
+
@media (width >= 768px) {.order-history-page-module-A-YGB {
|
|
8615
8730
|
--gap-row: var(--space-16);
|
|
8616
8731
|
|
|
8617
8732
|
grid-template-areas:
|
|
@@ -8622,7 +8737,7 @@ button.swiper-pagination-bullet {
|
|
|
8622
8737
|
}
|
|
8623
8738
|
}
|
|
8624
8739
|
|
|
8625
|
-
@media (width >= 1024px) {.order-history-module-
|
|
8740
|
+
@media (width >= 1024px) {.order-history-page-module-A-YGB {
|
|
8626
8741
|
grid-template-areas:
|
|
8627
8742
|
'. search filter'
|
|
8628
8743
|
'results results results'
|
|
@@ -8631,14 +8746,14 @@ button.swiper-pagination-bullet {
|
|
|
8631
8746
|
}
|
|
8632
8747
|
}
|
|
8633
8748
|
|
|
8634
|
-
@media (width >= 1440px) {.order-history-module-
|
|
8749
|
+
@media (width >= 1440px) {.order-history-page-module-A-YGB {
|
|
8635
8750
|
--gap-row: var(--space-20)
|
|
8636
8751
|
}
|
|
8637
8752
|
}
|
|
8638
8753
|
|
|
8639
8754
|
/* search */
|
|
8640
8755
|
|
|
8641
|
-
.order-history-module-
|
|
8756
|
+
.order-history-page-module-A-YGB .order-history-page-module-A-oqW {
|
|
8642
8757
|
position: sticky;
|
|
8643
8758
|
z-index: var(--sticky-z-index);
|
|
8644
8759
|
grid-area: search;
|
|
@@ -8647,13 +8762,13 @@ button.swiper-pagination-bullet {
|
|
|
8647
8762
|
|
|
8648
8763
|
/* filter */
|
|
8649
8764
|
|
|
8650
|
-
.order-history-module-
|
|
8765
|
+
.order-history-page-module-A-YGB .order-history-page-module--fnE1 {
|
|
8651
8766
|
grid-area: filter;
|
|
8652
8767
|
}
|
|
8653
8768
|
|
|
8654
8769
|
@media (width >= 768px) {
|
|
8655
8770
|
|
|
8656
|
-
.order-history-module-
|
|
8771
|
+
.order-history-page-module-A-YGB .order-history-page-module--fnE1 {
|
|
8657
8772
|
position: sticky;
|
|
8658
8773
|
z-index: var(--sticky-z-index);
|
|
8659
8774
|
inset-block-start: calc(var(--sticky-top) + var(--gap-row))
|
|
@@ -8662,17 +8777,17 @@ button.swiper-pagination-bullet {
|
|
|
8662
8777
|
|
|
8663
8778
|
/* results */
|
|
8664
8779
|
|
|
8665
|
-
.order-history-module-
|
|
8780
|
+
.order-history-page-module-A-YGB .order-history-page-module-Gp4CJ {
|
|
8666
8781
|
grid-area: results;
|
|
8667
8782
|
}
|
|
8668
8783
|
|
|
8669
|
-
.order-history-module-
|
|
8784
|
+
.order-history-page-module-A-YGB .order-history-page-module-Gp4CJ .order-history-page-module-ulch1 {
|
|
8670
8785
|
margin-block: var(--space-8);
|
|
8671
8786
|
}
|
|
8672
8787
|
|
|
8673
8788
|
/* paging */
|
|
8674
8789
|
|
|
8675
|
-
.order-history-module-
|
|
8790
|
+
.order-history-page-module-A-YGB .order-history-page-module-D35yK {
|
|
8676
8791
|
grid-area: paging;
|
|
8677
8792
|
justify-self: center;
|
|
8678
8793
|
padding-block: var(--gap-row);
|
|
@@ -8680,7 +8795,7 @@ button.swiper-pagination-bullet {
|
|
|
8680
8795
|
|
|
8681
8796
|
/* white bar behind sticky elements */
|
|
8682
8797
|
|
|
8683
|
-
.order-history-module-
|
|
8798
|
+
.order-history-page-module-A-YGB .order-history-page-module-xgntY {
|
|
8684
8799
|
position: sticky;
|
|
8685
8800
|
z-index: calc(var(--sticky-z-index) - 1);
|
|
8686
8801
|
margin: calc(var(--gap-row) * -1)
|
|
@@ -8694,12 +8809,12 @@ button.swiper-pagination-bullet {
|
|
|
8694
8809
|
|
|
8695
8810
|
@media (width >= 768px) {
|
|
8696
8811
|
|
|
8697
|
-
.order-history-module-
|
|
8812
|
+
.order-history-page-module-A-YGB .order-history-page-module-xgntY {
|
|
8698
8813
|
margin-inline: 0
|
|
8699
8814
|
}
|
|
8700
8815
|
}
|
|
8701
8816
|
|
|
8702
|
-
.order-history-module-
|
|
8817
|
+
.order-history-page-module-A-YGB .order-history-page-module-xgntY::after {
|
|
8703
8818
|
position: absolute;
|
|
8704
8819
|
background: linear-gradient(180deg, var(--shadow) 0%, transparent 100%);
|
|
8705
8820
|
block-size: var(--space-8);
|
|
@@ -8711,45 +8826,11 @@ button.swiper-pagination-bullet {
|
|
|
8711
8826
|
|
|
8712
8827
|
@container scroll-state(stuck: block-start) {
|
|
8713
8828
|
|
|
8714
|
-
.order-history-module-
|
|
8829
|
+
.order-history-page-module-A-YGB .order-history-page-module-xgntY::after {
|
|
8715
8830
|
opacity: 1
|
|
8716
8831
|
}
|
|
8717
8832
|
}
|
|
8718
8833
|
|
|
8719
|
-
.connected-address-book-widget-module-Xd9WN {
|
|
8720
|
-
--height-actions: 42px;
|
|
8721
|
-
--height-title: 22px;
|
|
8722
|
-
}
|
|
8723
|
-
|
|
8724
|
-
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-9mOgI {
|
|
8725
|
-
--scroll-margin-block-start: calc(
|
|
8726
|
-
var(--header-bottom, 0px) + var(--space-12) * 3 + var(--height-actions) +
|
|
8727
|
-
var(--height-title)
|
|
8728
|
-
);
|
|
8729
|
-
|
|
8730
|
-
scroll-margin-block-start: var(--scroll-margin-block-start, 0);
|
|
8731
|
-
}
|
|
8732
|
-
|
|
8733
|
-
@container (min-width: 636px) {
|
|
8734
|
-
|
|
8735
|
-
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-9mOgI {
|
|
8736
|
-
--scroll-margin-block-start: calc(
|
|
8737
|
-
var(--header-bottom, 0px) + var(--space-12) * 2 + var(--height-actions)
|
|
8738
|
-
)
|
|
8739
|
-
}
|
|
8740
|
-
}
|
|
8741
|
-
|
|
8742
|
-
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-g9kHi {
|
|
8743
|
-
block-size: 1em;
|
|
8744
|
-
inline-size: 1em;
|
|
8745
|
-
margin-inline-end: -8px;
|
|
8746
|
-
vertical-align: -0.2em;
|
|
8747
|
-
}
|
|
8748
|
-
|
|
8749
|
-
.connected-address-book-widget-module-Xd9WN .connected-address-book-widget-module-3ir-C {
|
|
8750
|
-
flex-grow: 1;
|
|
8751
|
-
}
|
|
8752
|
-
|
|
8753
8834
|
.product-details-page-layout-module-pPtZX {
|
|
8754
8835
|
display: flex;
|
|
8755
8836
|
flex-direction: column;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type StatusType = 'success' | 'critical' | 'pending';
|
|
2
|
+
export type StatusTextProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
3
|
+
fallback?: StatusType;
|
|
4
|
+
status?: StatusType;
|
|
5
|
+
};
|
|
6
|
+
export declare function StatusText({ children, fallback, status, ...rest }: StatusTextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import styles from './status-text.module.css.js';
|
|
3
|
+
|
|
4
|
+
function StatusText({ children, fallback = 'pending', status, ...rest }) {
|
|
5
|
+
return (jsx("span", { className: styles['status-text'], "data-status": status || fallback, ...rest, children: children }));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { StatusText };
|
package/dist/toast/toast.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface ToastProps {
|
|
|
5
5
|
onClose?: (id: string) => void;
|
|
6
6
|
toastMessage: ToastMessage;
|
|
7
7
|
}
|
|
8
|
-
export declare const Toast:
|
|
8
|
+
export declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -15,9 +15,9 @@ export interface HeadingProps {
|
|
|
15
15
|
tag?: Tag;
|
|
16
16
|
uppercase?: boolean;
|
|
17
17
|
}
|
|
18
|
-
export declare function Heading({ bold, breakpoints, children, className, 'data-test-selector': dataTestSelector, id, italic, size, tag, uppercase, }: HeadingProps):
|
|
18
|
+
export declare function Heading({ bold, breakpoints, children, className, 'data-test-selector': dataTestSelector, id, italic, size, tag, uppercase, }: HeadingProps): React.ReactElement<{
|
|
19
19
|
className: string;
|
|
20
20
|
'data-test-selector': string;
|
|
21
21
|
id: string | undefined;
|
|
22
|
-
}, string |
|
|
22
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
23
23
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonic-equipment/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "216.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@chromatic-com/storybook": "^4.1.1",
|
|
54
54
|
"@csstools/postcss-global-data": "3.1.0",
|
|
55
|
-
"@eslint-react/eslint-plugin": "^1.52.
|
|
55
|
+
"@eslint-react/eslint-plugin": "^1.52.9",
|
|
56
56
|
"@rollup/plugin-alias": "5.1.1",
|
|
57
57
|
"@rollup/plugin-commonjs": "28.0.6",
|
|
58
58
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"@storybook/react-vite": "^9.1.3",
|
|
64
64
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
65
65
|
"@types/js-cookie": "3.0.6",
|
|
66
|
-
"@types/node": "
|
|
66
|
+
"@types/node": "24.3.0",
|
|
67
67
|
"@types/postcss-import": "14.0.3",
|
|
68
68
|
"@types/react": "18.3.12",
|
|
69
69
|
"@types/react-dom": "18.3.1",
|
|
70
70
|
"@typescript-eslint/eslint-plugin": "8.41.0",
|
|
71
71
|
"@typescript-eslint/parser": "8.41.0",
|
|
72
72
|
"@typescript/lib-dom": "npm:typescript-partial-lib-dom@^1.1.0",
|
|
73
|
-
"@vitejs/plugin-react": "5.0.
|
|
73
|
+
"@vitejs/plugin-react": "5.0.2",
|
|
74
74
|
"autoprefixer": "10.4.21",
|
|
75
75
|
"concurrently": "9.2.1",
|
|
76
76
|
"eslint": "8.57.0",
|
|
@@ -124,11 +124,11 @@
|
|
|
124
124
|
},
|
|
125
125
|
"dependencies": {
|
|
126
126
|
"@adyen/adyen-web": "5.32.0",
|
|
127
|
-
"@algolia/client-search": "4.24.0",
|
|
128
127
|
"@algolia/autocomplete-core": "1.19.2",
|
|
129
128
|
"@algolia/autocomplete-plugin-query-suggestions": "1.19.2",
|
|
130
129
|
"@algolia/autocomplete-plugin-recent-searches": "1.19.2",
|
|
131
130
|
"@algolia/autocomplete-preset-algolia": "1.19.2",
|
|
131
|
+
"@algolia/client-search": "4.24.0",
|
|
132
132
|
"@tanstack/react-query": "5.85.5",
|
|
133
133
|
"@tanstack/react-query-devtools": "5.85.5",
|
|
134
134
|
"@types/react-transition-group": "4.4.12",
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
"instantsearch.js": "4.79.2",
|
|
139
139
|
"js-cookie": "3.0.5",
|
|
140
140
|
"query-string": "9.2.2",
|
|
141
|
-
"react-aria": "3.43.
|
|
142
|
-
"react-aria-components": "1.12.
|
|
141
|
+
"react-aria": "3.43.1",
|
|
142
|
+
"react-aria-components": "1.12.1",
|
|
143
143
|
"react-instantsearch": "7.16.2",
|
|
144
144
|
"react-toastify": "10.0.6",
|
|
145
145
|
"react-transition-group": "4.4.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function OrderHistory(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var styles = {"order-history":"order-history-module-LrkiZ","search":"order-history-module-Y18m7","filter":"order-history-module-tBrZG","results":"order-history-module-5mST2","no-results":"order-history-module-g-FzV","paging":"order-history-module-POsiS","sticky-bar":"order-history-module-98Tvf"};
|
|
2
|
-
|
|
3
|
-
export { styles as default };
|