@vchasno/ui-kit 0.3.7 → 0.3.9

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 (112) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Datepicker/types/components/FollowUs/FollowUs.d.ts +14 -0
  3. package/dist/Datepicker/types/components/FollowUs/config.d.ts +4 -0
  4. package/dist/Datepicker/types/components/FollowUs/index.d.ts +2 -0
  5. package/dist/Datepicker/types/components/FollowUs/types.d.ts +1 -0
  6. package/dist/Datepicker/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  7. package/dist/Datepicker/types/components/MobileAppLinks/config.d.ts +4 -0
  8. package/dist/Datepicker/types/components/MobileAppLinks/index.d.ts +2 -0
  9. package/dist/Datepicker/types/components/MobileAppLinks/types.d.ts +4 -0
  10. package/dist/Datepicker/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  11. package/dist/Datepicker/types/components/ProjectsPopover/mappers.d.ts +2 -1
  12. package/dist/Datepicker/types/components/ProjectsPopover/types.d.ts +3 -3
  13. package/dist/Datepicker/types/components/ProjectsPopover/utils.d.ts +2 -1
  14. package/dist/Datepicker/types/components/index.d.ts +4 -0
  15. package/dist/Datepicker/types/components/types.d.ts +1 -0
  16. package/dist/Menu/types/components/FollowUs/FollowUs.d.ts +14 -0
  17. package/dist/Menu/types/components/FollowUs/config.d.ts +4 -0
  18. package/dist/Menu/types/components/FollowUs/index.d.ts +2 -0
  19. package/dist/Menu/types/components/FollowUs/types.d.ts +1 -0
  20. package/dist/Menu/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  21. package/dist/Menu/types/components/MobileAppLinks/config.d.ts +4 -0
  22. package/dist/Menu/types/components/MobileAppLinks/index.d.ts +2 -0
  23. package/dist/Menu/types/components/MobileAppLinks/types.d.ts +4 -0
  24. package/dist/Menu/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  25. package/dist/Menu/types/components/ProjectsPopover/mappers.d.ts +2 -1
  26. package/dist/Menu/types/components/ProjectsPopover/types.d.ts +3 -3
  27. package/dist/Menu/types/components/ProjectsPopover/utils.d.ts +2 -1
  28. package/dist/Menu/types/components/index.d.ts +4 -0
  29. package/dist/Menu/types/components/types.d.ts +1 -0
  30. package/dist/ProjectsPopover/index.cjs.js +8 -7
  31. package/dist/ProjectsPopover/index.cjs.js.map +1 -1
  32. package/dist/ProjectsPopover/index.d.ts +3 -2
  33. package/dist/ProjectsPopover/index.js +8 -7
  34. package/dist/ProjectsPopover/index.js.map +1 -1
  35. package/dist/ProjectsPopover/types/components/FollowUs/FollowUs.d.ts +14 -0
  36. package/dist/ProjectsPopover/types/components/FollowUs/config.d.ts +4 -0
  37. package/dist/ProjectsPopover/types/components/FollowUs/index.d.ts +2 -0
  38. package/dist/ProjectsPopover/types/components/FollowUs/types.d.ts +1 -0
  39. package/dist/ProjectsPopover/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  40. package/dist/ProjectsPopover/types/components/MobileAppLinks/config.d.ts +4 -0
  41. package/dist/ProjectsPopover/types/components/MobileAppLinks/index.d.ts +2 -0
  42. package/dist/ProjectsPopover/types/components/MobileAppLinks/types.d.ts +4 -0
  43. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  44. package/dist/ProjectsPopover/types/components/ProjectsPopover/mappers.d.ts +2 -1
  45. package/dist/ProjectsPopover/types/components/ProjectsPopover/types.d.ts +3 -3
  46. package/dist/ProjectsPopover/types/components/ProjectsPopover/utils.d.ts +2 -1
  47. package/dist/ProjectsPopover/types/components/index.d.ts +4 -0
  48. package/dist/ProjectsPopover/types/components/types.d.ts +1 -0
  49. package/dist/Select/types/components/FollowUs/FollowUs.d.ts +14 -0
  50. package/dist/Select/types/components/FollowUs/config.d.ts +4 -0
  51. package/dist/Select/types/components/FollowUs/index.d.ts +2 -0
  52. package/dist/Select/types/components/FollowUs/types.d.ts +1 -0
  53. package/dist/Select/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  54. package/dist/Select/types/components/MobileAppLinks/config.d.ts +4 -0
  55. package/dist/Select/types/components/MobileAppLinks/index.d.ts +2 -0
  56. package/dist/Select/types/components/MobileAppLinks/types.d.ts +4 -0
  57. package/dist/Select/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  58. package/dist/Select/types/components/ProjectsPopover/mappers.d.ts +2 -1
  59. package/dist/Select/types/components/ProjectsPopover/types.d.ts +3 -3
  60. package/dist/Select/types/components/ProjectsPopover/utils.d.ts +2 -1
  61. package/dist/Select/types/components/index.d.ts +4 -0
  62. package/dist/Select/types/components/types.d.ts +1 -0
  63. package/dist/SelectCreatable/types/components/FollowUs/FollowUs.d.ts +14 -0
  64. package/dist/SelectCreatable/types/components/FollowUs/config.d.ts +4 -0
  65. package/dist/SelectCreatable/types/components/FollowUs/index.d.ts +2 -0
  66. package/dist/SelectCreatable/types/components/FollowUs/types.d.ts +1 -0
  67. package/dist/SelectCreatable/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  68. package/dist/SelectCreatable/types/components/MobileAppLinks/config.d.ts +4 -0
  69. package/dist/SelectCreatable/types/components/MobileAppLinks/index.d.ts +2 -0
  70. package/dist/SelectCreatable/types/components/MobileAppLinks/types.d.ts +4 -0
  71. package/dist/SelectCreatable/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  72. package/dist/SelectCreatable/types/components/ProjectsPopover/mappers.d.ts +2 -1
  73. package/dist/SelectCreatable/types/components/ProjectsPopover/types.d.ts +3 -3
  74. package/dist/SelectCreatable/types/components/ProjectsPopover/utils.d.ts +2 -1
  75. package/dist/SelectCreatable/types/components/index.d.ts +4 -0
  76. package/dist/SelectCreatable/types/components/types.d.ts +1 -0
  77. package/dist/Snackbar/index.cjs.js +52 -46
  78. package/dist/Snackbar/index.cjs.js.map +1 -1
  79. package/dist/Snackbar/index.js +52 -46
  80. package/dist/Snackbar/index.js.map +1 -1
  81. package/dist/Snackbar/types/components/FollowUs/FollowUs.d.ts +14 -0
  82. package/dist/Snackbar/types/components/FollowUs/config.d.ts +4 -0
  83. package/dist/Snackbar/types/components/FollowUs/index.d.ts +2 -0
  84. package/dist/Snackbar/types/components/FollowUs/types.d.ts +1 -0
  85. package/dist/Snackbar/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  86. package/dist/Snackbar/types/components/MobileAppLinks/config.d.ts +4 -0
  87. package/dist/Snackbar/types/components/MobileAppLinks/index.d.ts +2 -0
  88. package/dist/Snackbar/types/components/MobileAppLinks/types.d.ts +4 -0
  89. package/dist/Snackbar/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  90. package/dist/Snackbar/types/components/ProjectsPopover/mappers.d.ts +2 -1
  91. package/dist/Snackbar/types/components/ProjectsPopover/types.d.ts +3 -3
  92. package/dist/Snackbar/types/components/ProjectsPopover/utils.d.ts +2 -1
  93. package/dist/Snackbar/types/components/index.d.ts +4 -0
  94. package/dist/Snackbar/types/components/types.d.ts +1 -0
  95. package/dist/index.d.ts +36 -3
  96. package/dist/index.js +121 -47
  97. package/dist/index.js.map +1 -1
  98. package/dist/types/components/FollowUs/FollowUs.d.ts +14 -0
  99. package/dist/types/components/FollowUs/config.d.ts +4 -0
  100. package/dist/types/components/FollowUs/index.d.ts +2 -0
  101. package/dist/types/components/FollowUs/types.d.ts +1 -0
  102. package/dist/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  103. package/dist/types/components/MobileAppLinks/config.d.ts +4 -0
  104. package/dist/types/components/MobileAppLinks/index.d.ts +2 -0
  105. package/dist/types/components/MobileAppLinks/types.d.ts +4 -0
  106. package/dist/types/components/ProjectsPopover/ProductLink.d.ts +1 -0
  107. package/dist/types/components/ProjectsPopover/mappers.d.ts +2 -1
  108. package/dist/types/components/ProjectsPopover/types.d.ts +3 -3
  109. package/dist/types/components/ProjectsPopover/utils.d.ts +2 -1
  110. package/dist/types/components/index.d.ts +4 -0
  111. package/dist/types/components/types.d.ts +1 -0
  112. package/package.json +2 -1
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { Product } from './config';
3
+ import { Social } from './types';
4
+ import './FollowUs.global.css';
5
+ export interface FollowUsProps {
6
+ label?: string;
7
+ product?: Product;
8
+ hideTitle?: boolean;
9
+ onClick?: (target: Social) => void;
10
+ gap?: number;
11
+ list?: Social[];
12
+ }
13
+ declare const FollowUs: React.FC<FollowUsProps>;
14
+ export default FollowUs;
@@ -0,0 +1,4 @@
1
+ import { VchasnoProduct } from '../types';
2
+ import { Social } from './types';
3
+ export type Product = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
4
+ export declare const config: Record<Product, Partial<Record<Social, string>>>;
@@ -0,0 +1,2 @@
1
+ export { default } from './FollowUs';
2
+ export type { FollowUsProps } from './FollowUs';
@@ -0,0 +1 @@
1
+ export type Social = 'fb' | 'inst' | 'telegram' | 'youtube' | 'tiktok';
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { FlexBoxProps } from '../FlexBox';
3
+ import { Product } from './config';
4
+ import { LinkConfig } from './types';
5
+ import './MobileAppLinks.global.css';
6
+ export interface MobileAppLinksProps {
7
+ android?: boolean;
8
+ ios?: boolean;
9
+ label?: string;
10
+ hideTitle?: boolean;
11
+ product: Product;
12
+ onClick?: (target: keyof LinkConfig) => void;
13
+ direction?: FlexBoxProps['direction'];
14
+ }
15
+ declare const MobileAppLinks: React.FC<MobileAppLinksProps>;
16
+ export default MobileAppLinks;
@@ -0,0 +1,4 @@
1
+ import { VchasnoProduct } from '../types';
2
+ import { LinkConfig } from './types';
3
+ export type Product = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
4
+ export declare const config: Record<Product, LinkConfig>;
@@ -0,0 +1,2 @@
1
+ export { default } from './MobileAppLinks';
2
+ export type { MobileAppLinksProps } from './MobileAppLinks';
@@ -0,0 +1,4 @@
1
+ export interface LinkConfig {
2
+ android: string;
3
+ ios: string;
4
+ }
@@ -7,6 +7,7 @@ export interface ProductLinkProps {
7
7
  queryParams?: Record<string, string>;
8
8
  onLinkClick?: (product: AllProducts, event: React.MouseEvent) => void;
9
9
  overrideHint?: (product: AllProducts) => string;
10
+ urls?: Partial<Record<AllProducts, string>>;
10
11
  }
11
12
  declare const ProductLink: React.FC<ProductLinkProps>;
12
13
  export default ProductLink;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { AllProducts, VchasnoProduct, ZakupivliProduct } from './types';
2
+ import { VchasnoProduct } from '../types';
3
+ import { AllProducts, ZakupivliProduct } from './types';
3
4
  export declare const hrefMap: Record<VchasnoProduct | ZakupivliProduct, string>;
4
5
  export declare const tooltipHintMap: Record<AllProducts, string>;
5
6
  export declare const titleMap: Record<VchasnoProduct, string>;
@@ -1,8 +1,8 @@
1
- export declare const vchasnoProductsList: readonly ["edo", "kep", "kasa", "edi", "ttn", "dm"];
1
+ import { VchasnoProduct } from '../types';
2
+ export declare const vchasnoProductsList: VchasnoProduct[];
2
3
  export declare const vchasnoProductsWithoutSiteList: readonly ["dm"];
3
4
  export declare const zakupivliProductsList: readonly ["zakupivli", "prozorroSale", "prozorroMarket", "prozorroRRO"];
4
- export type VchasnoProduct = (typeof vchasnoProductsList)[number];
5
- export declare const isVchasnoProduct: (product: string) => product is "edo" | "edi" | "ttn" | "kep" | "kasa" | "dm";
5
+ export declare const isVchasnoProduct: (product: string) => product is VchasnoProduct;
6
6
  export type ZakupivliProduct = (typeof zakupivliProductsList)[number];
7
7
  export declare const isZakupivliProduct: (product: string) => product is "zakupivli" | "prozorroSale" | "prozorroMarket" | "prozorroRRO";
8
8
  export type AllProducts = VchasnoProduct | ZakupivliProduct;
@@ -4,7 +4,8 @@ interface ComposeLinkOptions {
4
4
  ctxProduct: string;
5
5
  targetProduct: AllProducts;
6
6
  queryParams?: Record<string, string>;
7
+ urls?: Partial<Record<AllProducts, string>>;
7
8
  }
8
9
  export declare const composeZakupivliLink: ({ targetProduct, }: Pick<ComposeLinkOptions, 'targetProduct'>) => string;
9
- export declare const composeLink: ({ targetProduct, ctxProduct, queryParams, edrpou, }: ComposeLinkOptions) => string;
10
+ export declare const composeLink: ({ targetProduct, ctxProduct, queryParams, edrpou, urls, }: ComposeLinkOptions) => string;
10
11
  export {};
@@ -40,3 +40,7 @@ export { default as SplashLogo } from './SplashLogo';
40
40
  export type { SplashLogoProps } from './SplashLogo';
41
41
  export { default as BlackTooltip } from './BlackTooltip';
42
42
  export type { BlackTooltipProps } from './BlackTooltip';
43
+ export { default as MobileAppLinks } from './MobileAppLinks';
44
+ export type { MobileAppLinksProps } from './MobileAppLinks';
45
+ export { default as FollowUs } from './FollowUs';
46
+ export type { FollowUsProps } from './FollowUs';
@@ -26,3 +26,4 @@ export interface TextAlign {
26
26
  /** для центрування тексту **/
27
27
  textAlign?: 'center' | 'start' | 'end' | 'justify';
28
28
  }
29
+ export type VchasnoProduct = 'edo' | 'kep' | 'kasa' | 'edi' | 'ttn' | 'dm';
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ interface TextAlign {
47
47
  /** для центрування тексту **/
48
48
  textAlign?: 'center' | 'start' | 'end' | 'justify';
49
49
  }
50
+ type VchasnoProduct = 'edo' | 'kep' | 'kasa' | 'edi' | 'ttn' | 'dm';
50
51
 
51
52
  type ButtonTheme = 'primary' | 'secondary' | 'transparent' | 'light' | 'danger';
52
53
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable>, Partial<LoadingFeedback> {
@@ -250,9 +251,9 @@ declare const SvgBorder: React.ForwardRefExoticComponent<SvgBorderProps & React.
250
251
 
251
252
  declare const composeRoundedBorderPath: (width: number, height: number, radiusOffset: number) => string;
252
253
 
253
- type Product = 'edo' | 'edi' | 'ttn' | 'kep' | 'kasa' | 'vchasno';
254
+ type Product$2 = 'edo' | 'edi' | 'ttn' | 'kep' | 'kasa' | 'vchasno';
254
255
  interface SplashLogoProps extends HTMLAttributes<HTMLDivElement> {
255
- project?: Product;
256
+ project?: Product$2;
256
257
  color?: string;
257
258
  width?: string;
258
259
  height?: string;
@@ -264,9 +265,41 @@ interface BlackTooltipProps extends TooltipProps {
264
265
  }
265
266
  declare const BlackTooltip: _emotion_styled.StyledComponent<TooltipProps & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
266
267
 
268
+ interface LinkConfig {
269
+ android: string;
270
+ ios: string;
271
+ }
272
+
273
+ type Product$1 = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
274
+
275
+ interface MobileAppLinksProps {
276
+ android?: boolean;
277
+ ios?: boolean;
278
+ label?: string;
279
+ hideTitle?: boolean;
280
+ product: Product$1;
281
+ onClick?: (target: keyof LinkConfig) => void;
282
+ direction?: FlexBoxProps['direction'];
283
+ }
284
+ declare const MobileAppLinks: React.FC<MobileAppLinksProps>;
285
+
286
+ type Social = 'fb' | 'inst' | 'telegram' | 'youtube' | 'tiktok';
287
+
288
+ type Product = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
289
+
290
+ interface FollowUsProps {
291
+ label?: string;
292
+ product?: Product;
293
+ hideTitle?: boolean;
294
+ onClick?: (target: Social) => void;
295
+ gap?: number;
296
+ list?: Social[];
297
+ }
298
+ declare const FollowUs: React.FC<FollowUsProps>;
299
+
267
300
  declare const useClientRect: () => {
268
301
  rect: DOMRect | null;
269
302
  ref: React.RefObject<HTMLDivElement>;
270
303
  };
271
304
 
272
- export { Alert, type AlertProps, BlackTooltip, type BlackTooltipProps, BubbleBox, type BubbleBoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, FlexBox, type FlexBoxProps, Input, InputMeta, type InputMetaProps, type InputProps, MaskInput, type MaskInputProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, PulseDot, type PulseDotProps, Spinner, type SpinnerProps, SplashLogo, type SplashLogoProps, SvgBorder, type SvgBorderProps, Switch, type SwitchProps, Tabs, type TabsProps, Text, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, type TextProps, Title, type TitleProps, composeBubblePath, composeRoundedBorderPath, useClientRect };
305
+ export { Alert, type AlertProps, BlackTooltip, type BlackTooltipProps, BubbleBox, type BubbleBoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, FlexBox, type FlexBoxProps, FollowUs, type FollowUsProps, Input, InputMeta, type InputMetaProps, type InputProps, MaskInput, type MaskInputProps, MobileAppLinks, type MobileAppLinksProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, PulseDot, type PulseDotProps, Spinner, type SpinnerProps, SplashLogo, type SplashLogoProps, SvgBorder, type SvgBorderProps, Switch, type SwitchProps, Tabs, type TabsProps, Text, TextAreaInput, type TextAreaInputProps, TextInput, type TextInputProps, type TextProps, Title, type TitleProps, composeBubblePath, composeRoundedBorderPath, useClientRect };