@scbt-ecom/ui 0.76.3 → 0.77.1

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.
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface DialogProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
3
+ title?: string;
4
+ portal?: HTMLElement;
5
+ }
6
+ export declare const Dialog: ({ className, children, title, portal, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Dialog, type DialogProps } from './Dialog';
@@ -9,8 +9,9 @@ export declare const allowedIcons: {
9
9
  readonly general: readonly ["general/calendar", "general/check", "general/close", "general/edit", "general/hiddenEye", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye"];
10
10
  readonly info: readonly ["info/helpCircle", "info/warningCircle"];
11
11
  readonly logos: readonly ["logos/beeline", "logos/megafon", "logos/mts"];
12
+ readonly media: readonly ["media/desktop", "media/mobile"];
12
13
  readonly social: readonly ["social/classmates", "social/telegram", "social/vk"];
13
14
  readonly status: readonly ["status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser"];
14
15
  };
15
- readonly flatten: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "communication/phone", "editor/bold", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload", "general/calendar", "general/check", "general/close", "general/edit", "general/hiddenEye", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "info/helpCircle", "info/warningCircle", "logos/beeline", "logos/megafon", "logos/mts", "social/classmates", "social/telegram", "social/vk", "status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser"];
16
+ readonly flatten: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "communication/phone", "editor/bold", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload", "general/calendar", "general/check", "general/close", "general/edit", "general/hiddenEye", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "info/helpCircle", "info/warningCircle", "logos/beeline", "logos/megafon", "logos/mts", "media/desktop", "media/mobile", "social/classmates", "social/telegram", "social/vk", "status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser"];
16
17
  };
@@ -281,6 +281,18 @@ export declare const iconsMap: {
281
281
  desc?: string;
282
282
  descId?: string;
283
283
  }>;
284
+ 'media/desktop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
285
+ title?: string;
286
+ titleId?: string;
287
+ desc?: string;
288
+ descId?: string;
289
+ }>;
290
+ 'media/mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
291
+ title?: string;
292
+ titleId?: string;
293
+ desc?: string;
294
+ descId?: string;
295
+ }>;
284
296
  'social/classmates': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
285
297
  title?: string;
286
298
  titleId?: string;
@@ -7,6 +7,7 @@ export interface SpritesMap {
7
7
  general: 'calendar' | 'check' | 'close' | 'edit' | 'hiddenEye' | 'menu' | 'plus' | 'reorder' | 'search' | 'shield' | 'showEye';
8
8
  info: 'helpCircle' | 'warningCircle';
9
9
  logos: 'beeline' | 'megafon' | 'mts';
10
+ media: 'desktop' | 'mobile';
10
11
  social: 'classmates' | 'telegram' | 'vk';
11
12
  status: 'badSmile' | 'iconMark' | 'iconRetry' | 'iconUser';
12
13
  }
@@ -17,6 +17,7 @@ export * from './notification';
17
17
  export * from './table';
18
18
  export * from './pagination';
19
19
  export * from './carousel';
20
+ export * from './dialog';
20
21
  export * from './providers';
21
22
  export * from './heading';
22
23
  export * from './icon';
@@ -1,12 +1,19 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { AdvantageClasses, AdvantagesProps } from '../advantages/Advantages';
3
3
  import { BackgroundBannerColorsValues } from './model/constants';
4
- import { BannerClasses, ButtonsConfig, ImgBanner } from './model/types';
4
+ import { BannerClasses, ButtonsConfig } from './model/types';
5
5
  export interface BannerProps {
6
6
  headTitle: string | ReactElement;
7
7
  subtitle: string | ReactElement;
8
- imgDesktop: ImgBanner;
9
- imgMobile: ImgBanner;
8
+ imgMobile: {
9
+ src: string;
10
+ base64?: string;
11
+ };
12
+ imgDesktop: {
13
+ src: string;
14
+ base64?: string;
15
+ };
16
+ imgAlt?: string;
10
17
  buttonsConfig: ButtonsConfig;
11
18
  advantages?: AdvantagesProps;
12
19
  variant?: 'separateImg' | 'fullImg';
@@ -14,6 +21,7 @@ export interface BannerProps {
14
21
  classes?: BannerClasses & {
15
22
  advantages?: AdvantageClasses;
16
23
  };
24
+ renderImage?: (props: React.ComponentProps<'img'>) => ReactElement;
17
25
  }
18
26
  export declare const Banner: ({ variant, ...props }: BannerProps) => import("react/jsx-runtime").JSX.Element;
19
27
  export default Banner;
@@ -1,4 +1,3 @@
1
- import { ReactElement } from 'react';
2
1
  import { ButtonHandlerOptions } from '../../buttonWithHandlers';
3
2
  import { ButtonProps } from '../../../shared/ui';
4
3
  export interface BannerClasses {
@@ -30,7 +29,3 @@ export type ButtonsConfig = {
30
29
  enabled: boolean;
31
30
  };
32
31
  };
33
- export type ImgBanner = ReactElement | {
34
- url: string;
35
- alt: string;
36
- };
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, color }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, imgAlt, color, renderImage }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, color }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imgMobile, imgDesktop, imgAlt, color, renderImage }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ <svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="desktop" fill="currentColor" viewBox="0 0 24 24"><path d="M2 5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-7v2h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3v-2H4a2 2 0 0 1-2-2V5Zm18 11V5H4v11h16Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="mobile" fill="currentColor" viewBox="0 0 24 24"><path d="M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V5Zm10 0H8v14h8V5Z"/><path d="M13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/></symbol></svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M2 5C2 3.89543 2.89543 3 4 3H20C21.1046 3 22 3.89543 22 5V16C22 17.1046 21.1046 18 20 18H13V20H16C16.5523 20 17 20.4477 17 21C17 21.5523 16.5523 22 16 22H8C7.44772 22 7 21.5523 7 21C7 20.4477 7.44772 20 8 20H11V18H4C2.89543 18 2 17.1046 2 16V5ZM20 16V5H4V16H20Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6 5C6 3.89543 6.89543 3 8 3H16C17.1046 3 18 3.89543 18 5V19C18 20.1046 17.1046 21 16 21H8C6.89543 21 6 20.1046 6 19V5ZM16 5H8V19H16V5Z" fill="currentColor"/>
3
+ <path d="M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z" fill="currentColor"/>
4
+ </svg>