@scbt-ecom/ui 0.141.0 → 0.142.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 (28) hide show
  1. package/dist/lib/exports/widget.js +1 -1
  2. package/dist/lib/shared/style.css +1 -1
  3. package/dist/lib/shared/types/shared-types.js +2 -0
  4. package/dist/lib/shared/types/shared-types.js.map +1 -0
  5. package/dist/lib/widgets/banner/Banner.js.map +1 -1
  6. package/dist/lib/widgets/errorPage/ErrorPage.js +2 -0
  7. package/dist/lib/widgets/errorPage/ErrorPage.js.map +1 -0
  8. package/dist/lib/widgets/errorPage/index.js +2 -0
  9. package/dist/lib/widgets/errorPage/index.js.map +1 -0
  10. package/dist/lib/widgets/errorPage/ui/TextContainer.js +2 -0
  11. package/dist/lib/widgets/errorPage/ui/TextContainer.js.map +1 -0
  12. package/dist/lib/widgets/errorPage/ui/index.js +2 -0
  13. package/dist/lib/widgets/errorPage/ui/index.js.map +1 -0
  14. package/dist/lib/widgets/index.js +1 -1
  15. package/dist/lib/widgets/infoBlock/ui/RootContent.js.map +1 -1
  16. package/dist/stats.html +1 -1
  17. package/dist/types/lib/widgets/banner/Banner.d.ts +1 -1
  18. package/dist/types/lib/widgets/banner/model/types.d.ts +0 -5
  19. package/dist/types/lib/widgets/errorPage/ErrorPage.d.ts +12 -0
  20. package/dist/types/lib/widgets/errorPage/index.d.ts +1 -0
  21. package/dist/types/lib/widgets/errorPage/ui/TextContainer.d.ts +6 -0
  22. package/dist/types/lib/widgets/errorPage/ui/index.d.ts +0 -0
  23. package/dist/types/lib/widgets/index.d.ts +1 -0
  24. package/dist/types/lib/widgets/infoBlock/ui/RootContent.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/dist/lib/widgets/infoBlock/model/types.js +0 -2
  27. package/dist/lib/widgets/infoBlock/model/types.js.map +0 -1
  28. /package/dist/types/lib/{widgets/infoBlock/model/types.d.ts → shared/types/shared-types.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { BannerClasses, ButtonsConfig } from './model';
3
- import { Images } from './model/types';
4
3
  import { AdvantageClasses, AdvantagesProps } from './ui/banners/ui';
5
4
  import { BackgroundBannerColors } from '../../shared/constants';
5
+ import { Images } from '../../shared/types/shared-types';
6
6
  export interface BannerProps {
7
7
  headTitle: string | ReactElement;
8
8
  subtitle: string | ReactElement;
@@ -24,8 +24,3 @@ export type ButtonsConfig = {
24
24
  enabled: boolean;
25
25
  };
26
26
  };
27
- export type Images = {
28
- desktop?: string;
29
- mobile?: string;
30
- alt?: string;
31
- };
@@ -0,0 +1,12 @@
1
+ import { BackgroundBannerColors } from '../../shared/constants';
2
+ import { ButtonWithHandlersProps } from '../buttonWithHandlers';
3
+ import { TextContainerProps } from './ui/TextContainer';
4
+ import { Images } from '../../shared/types/shared-types';
5
+ import { CustomLinkProps } from '../../shared/ui';
6
+ export interface ErrorPageProps extends TextContainerProps {
7
+ buttonProps: ButtonWithHandlersProps;
8
+ links: CustomLinkProps[];
9
+ images: Images;
10
+ backgroundColor?: BackgroundBannerColors;
11
+ }
12
+ export declare const ErrorPage: ({ errorText, title, subtitle, buttonProps, links, images, backgroundColor }: ErrorPageProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { type ErrorPageProps, ErrorPage } from './ErrorPage';
@@ -0,0 +1,6 @@
1
+ export interface TextContainerProps {
2
+ errorText: string;
3
+ title: string;
4
+ subtitle: string;
5
+ }
6
+ export declare const TextContainer: ({ errorText, subtitle, title }: TextContainerProps) => import("react/jsx-runtime").JSX.Element;
File without changes
@@ -13,6 +13,7 @@ export * from './dynamicFormDialog';
13
13
  export * from './buttonWithHandlers';
14
14
  export * from './model';
15
15
  export * from './fallbacksView';
16
+ export * from './errorPage';
16
17
  export * from './htmlParser';
17
18
  export * from './breadcrumbs';
18
19
  export * from './seoHeader';
@@ -1,5 +1,5 @@
1
+ import { Images } from '../../../shared/types/shared-types';
1
2
  import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
2
- import { Images } from '../model/types';
3
3
  import { LinksListClasses, LinksListProps } from './LinksList';
4
4
  export type RootContentClasses = {
5
5
  wrapper?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.141.0",
3
+ "version": "0.142.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}