@sonic-equipment/ui 214.0.0 → 215.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/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/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 +5 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +22 -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/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 +128 -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
|
@@ -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": "215.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 };
|