@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.
Files changed (94) hide show
  1. package/dist/address-info-display/address-info-display.js +1 -1
  2. package/dist/algolia/algolia-insights-provider.d.ts +1 -1
  3. package/dist/buttons/button/button.d.ts +1 -1
  4. package/dist/buttons/link/link.d.ts +1 -1
  5. package/dist/buttons/print-button/print-button.d.ts +2 -1
  6. package/dist/buttons/print-button/print-button.js +2 -2
  7. package/dist/cards/product-card/product-card.js +1 -1
  8. package/dist/cards/table-card/table-card.d.ts +1 -1
  9. package/dist/cards/table-card/table-card.js +5 -3
  10. package/dist/carousel/carousel-navigation-button.d.ts +1 -1
  11. package/dist/cart-totals/cart-totals.js +1 -1
  12. package/dist/collapsables/accordion/accordion-item.js +3 -1
  13. package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +1 -1
  14. package/dist/collapsables/show-all/show-all.js +4 -2
  15. package/dist/collapsables/unmounter/unmounter.d.ts +1 -1
  16. package/dist/cookies/cookie-context.d.ts +1 -1
  17. package/dist/country-select/country-select.js +3 -1
  18. package/dist/country-selector/country-selector-trigger/country-selector-trigger.js +3 -1
  19. package/dist/exports.d.ts +13 -1
  20. package/dist/filters/active-filters/active-filters.js +1 -1
  21. package/dist/forms/elements/field-error/field-error.js +3 -1
  22. package/dist/forms/fields/number-field/number-field.d.ts +1 -1
  23. package/dist/forms/partials/address-form/address-form.js +6 -2
  24. package/dist/index.js +15 -3
  25. package/dist/intl/formatted-message.d.ts +3 -2
  26. package/dist/intl/formatted-message.js +25 -5
  27. package/dist/intl/intl-context.d.ts +1 -1
  28. package/dist/intl/intl-context.js +1 -10
  29. package/dist/intl/translation-id.d.ts +1 -1
  30. package/dist/intl/types.d.ts +27 -15
  31. package/dist/intl/types.js +7 -1
  32. package/dist/intl/use-formatted-message.d.ts +2 -2
  33. package/dist/intl/use-formatted-message.js +5 -5
  34. package/dist/intl/use-intl.js +4 -1
  35. package/dist/intl/utils.js +1 -1
  36. package/dist/lists/menu-list/menu-list-provider.d.ts +1 -1
  37. package/dist/modals/confirmation/confirmation-dialog.d.ts +3 -2
  38. package/dist/modals/dialog/dialog.js +1 -1
  39. package/dist/notifications/announcements/announcement.d.ts +1 -1
  40. package/dist/observers/intersection-observer.js +1 -1
  41. package/dist/pages/my-sonic/actions/change-password/change-password.js +1 -1
  42. package/dist/pages/my-sonic/actions/edit-bill-to-address/connected-edit-bill-to-address-form.js +1 -1
  43. package/dist/pages/my-sonic/actions/edit-ship-to-address/connected-edit-ship-to-address-form.js +1 -1
  44. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +4 -0
  45. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +9 -0
  46. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +1 -1
  47. package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +7 -0
  48. package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +29 -0
  49. package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +7 -0
  50. package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +29 -0
  51. package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +9 -0
  52. package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +29 -0
  53. package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +2 -0
  54. package/dist/pages/my-sonic/pages/favorites/favorites-page.js +23 -0
  55. package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +2 -0
  56. package/dist/pages/my-sonic/pages/my-account/my-account-page.js +30 -0
  57. package/dist/pages/my-sonic/pages/order-details/order-details-content.d.ts +8 -0
  58. package/dist/pages/my-sonic/pages/order-details/order-details-content.js +69 -0
  59. package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +3 -0
  60. package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +5 -0
  61. package/dist/pages/my-sonic/pages/order-details/order-details-page.js +22 -0
  62. package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +2 -0
  63. package/dist/pages/my-sonic/pages/order-history/{order-history.js → order-history-page.js} +25 -7
  64. package/dist/pages/my-sonic/pages/order-history/order-history-page.module.css.js +3 -0
  65. package/dist/pages/my-sonic/widgets/connected-address-book-widget.js +8 -6
  66. package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
  67. package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.d.ts +1 -0
  68. package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.js +14 -0
  69. package/dist/shared/api/storefront/model/storefront.model.d.ts +2 -1
  70. package/dist/shared/api/storefront/services/order-service.d.ts +3 -1
  71. package/dist/shared/api/storefront/services/order-service.js +12 -1
  72. package/dist/shared/data/order.d.ts +2 -0
  73. package/dist/shared/data/order.js +41 -0
  74. package/dist/shared/hooks/use-inert.d.ts +3 -0
  75. package/dist/shared/hooks/use-inert.js +16 -0
  76. package/dist/shared/model/address.d.ts +1 -1
  77. package/dist/shared/providers/global-state-provider.d.ts +1 -1
  78. package/dist/shared/routing/route-context.d.ts +1 -1
  79. package/dist/shared/routing/use-route-link-element.d.ts +1 -1
  80. package/dist/shared/routing/use-route-link.d.ts +1 -1
  81. package/dist/shared/routing/with-routing.d.ts +2 -2
  82. package/dist/sidebar/sidebar.js +4 -2
  83. package/dist/styles.css +128 -48
  84. package/dist/table/elements/table-context.d.ts +1 -1
  85. package/dist/table/elements/table-row-context.d.ts +1 -1
  86. package/dist/table/elements/types.d.ts +1 -0
  87. package/dist/text/status-text/status-text.d.ts +6 -0
  88. package/dist/text/status-text/status-text.js +8 -0
  89. package/dist/text/status-text/status-text.module.css.js +3 -0
  90. package/dist/toast/toast.d.ts +1 -1
  91. package/dist/typography/heading/heading.d.ts +2 -2
  92. package/package.json +7 -7
  93. package/dist/pages/my-sonic/pages/order-history/order-history.d.ts +0 -1
  94. package/dist/pages/my-sonic/pages/order-history/order-history.module.css.js +0 -3
@@ -11,4 +11,4 @@ export interface TableRowContextValue {
11
11
  };
12
12
  };
13
13
  }
14
- export declare const TableRowContext: import("react").Context<TableRowContextValue>;
14
+ export declare const TableRowContext: React.Context<TableRowContextValue>;
@@ -15,6 +15,7 @@ export interface TableColumnProperties {
15
15
  align?: TableColumnAlignment;
16
16
  colSpan?: number;
17
17
  cssColumn?: string;
18
+ 'data-test-selector'?: string;
18
19
  isNarrow?: boolean;
19
20
  nowrap?: boolean;
20
21
  rowSpan?: number;
@@ -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 };
@@ -0,0 +1,3 @@
1
+ var styles = {"status-text":"status-text-module-63aRD"};
2
+
3
+ export { styles as default };
@@ -5,4 +5,4 @@ export interface ToastProps {
5
5
  onClose?: (id: string) => void;
6
6
  toastMessage: ToastMessage;
7
7
  }
8
- export declare const Toast: import("react").ForwardRefExoticComponent<ToastProps & import("react").RefAttributes<HTMLDivElement>>;
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): import("react").ReactElement<{
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 | import("react").JSXElementConstructor<any>>;
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": "214.0.0",
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.6",
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": "22.8.0",
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.1",
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.0",
142
- "react-aria-components": "1.12.0",
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 };