@vchasno/ui-kit 0.2.18 → 0.2.20

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 (73) hide show
  1. package/CHANGELOG.md +12 -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/ProjectsPopover.d.ts +2 -1
  11. package/dist/Datepicker/types/components/ProjectsPopover/mappers.d.ts +3 -2
  12. package/dist/Datepicker/types/components/ProjectsPopover/types.d.ts +3 -3
  13. package/dist/Datepicker/types/components/index.d.ts +4 -0
  14. package/dist/Datepicker/types/components/types.d.ts +6 -0
  15. package/dist/ProjectsPopover/index.cjs.js.map +1 -1
  16. package/dist/ProjectsPopover/index.d.ts +4 -3
  17. package/dist/ProjectsPopover/index.js.map +1 -1
  18. package/dist/ProjectsPopover/types/components/FollowUs/FollowUs.d.ts +14 -0
  19. package/dist/ProjectsPopover/types/components/FollowUs/config.d.ts +4 -0
  20. package/dist/ProjectsPopover/types/components/FollowUs/index.d.ts +2 -0
  21. package/dist/ProjectsPopover/types/components/FollowUs/types.d.ts +1 -0
  22. package/dist/ProjectsPopover/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  23. package/dist/ProjectsPopover/types/components/MobileAppLinks/config.d.ts +4 -0
  24. package/dist/ProjectsPopover/types/components/MobileAppLinks/index.d.ts +2 -0
  25. package/dist/ProjectsPopover/types/components/MobileAppLinks/types.d.ts +4 -0
  26. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProjectsPopover.d.ts +2 -1
  27. package/dist/ProjectsPopover/types/components/ProjectsPopover/mappers.d.ts +3 -2
  28. package/dist/ProjectsPopover/types/components/ProjectsPopover/types.d.ts +3 -3
  29. package/dist/ProjectsPopover/types/components/index.d.ts +4 -0
  30. package/dist/ProjectsPopover/types/components/types.d.ts +6 -0
  31. package/dist/Select/types/components/FollowUs/FollowUs.d.ts +14 -0
  32. package/dist/Select/types/components/FollowUs/config.d.ts +4 -0
  33. package/dist/Select/types/components/FollowUs/index.d.ts +2 -0
  34. package/dist/Select/types/components/FollowUs/types.d.ts +1 -0
  35. package/dist/Select/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  36. package/dist/Select/types/components/MobileAppLinks/config.d.ts +4 -0
  37. package/dist/Select/types/components/MobileAppLinks/index.d.ts +2 -0
  38. package/dist/Select/types/components/MobileAppLinks/types.d.ts +4 -0
  39. package/dist/Select/types/components/ProjectsPopover/ProjectsPopover.d.ts +2 -1
  40. package/dist/Select/types/components/ProjectsPopover/mappers.d.ts +3 -2
  41. package/dist/Select/types/components/ProjectsPopover/types.d.ts +3 -3
  42. package/dist/Select/types/components/index.d.ts +4 -0
  43. package/dist/Select/types/components/types.d.ts +6 -0
  44. package/dist/SelectCreatable/types/components/FollowUs/FollowUs.d.ts +14 -0
  45. package/dist/SelectCreatable/types/components/FollowUs/config.d.ts +4 -0
  46. package/dist/SelectCreatable/types/components/FollowUs/index.d.ts +2 -0
  47. package/dist/SelectCreatable/types/components/FollowUs/types.d.ts +1 -0
  48. package/dist/SelectCreatable/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  49. package/dist/SelectCreatable/types/components/MobileAppLinks/config.d.ts +4 -0
  50. package/dist/SelectCreatable/types/components/MobileAppLinks/index.d.ts +2 -0
  51. package/dist/SelectCreatable/types/components/MobileAppLinks/types.d.ts +4 -0
  52. package/dist/SelectCreatable/types/components/ProjectsPopover/ProjectsPopover.d.ts +2 -1
  53. package/dist/SelectCreatable/types/components/ProjectsPopover/mappers.d.ts +3 -2
  54. package/dist/SelectCreatable/types/components/ProjectsPopover/types.d.ts +3 -3
  55. package/dist/SelectCreatable/types/components/index.d.ts +4 -0
  56. package/dist/SelectCreatable/types/components/types.d.ts +6 -0
  57. package/dist/index.d.ts +36 -3
  58. package/dist/index.js +119 -45
  59. package/dist/index.js.map +1 -1
  60. package/dist/types/components/FollowUs/FollowUs.d.ts +14 -0
  61. package/dist/types/components/FollowUs/config.d.ts +4 -0
  62. package/dist/types/components/FollowUs/index.d.ts +2 -0
  63. package/dist/types/components/FollowUs/types.d.ts +1 -0
  64. package/dist/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
  65. package/dist/types/components/MobileAppLinks/config.d.ts +4 -0
  66. package/dist/types/components/MobileAppLinks/index.d.ts +2 -0
  67. package/dist/types/components/MobileAppLinks/types.d.ts +4 -0
  68. package/dist/types/components/ProjectsPopover/ProjectsPopover.d.ts +2 -1
  69. package/dist/types/components/ProjectsPopover/mappers.d.ts +3 -2
  70. package/dist/types/components/ProjectsPopover/types.d.ts +3 -3
  71. package/dist/types/components/index.d.ts +4 -0
  72. package/dist/types/components/types.d.ts +6 -0
  73. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.20] - 2024-07-27
11
+
12
+ ## Fixed
13
+
14
+ - fix `ProjectsPopover` dm conflict
15
+
16
+ ## [0.2.19] - 2024-07-27
17
+
18
+ ## Added
19
+
20
+ - add FollowUs and MobileAppLinks components
21
+
10
22
  ## [0.2.16] - 2024-05-13
11
23
 
12
24
  ## Fixed
@@ -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
+ }
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
+ import { VchasnoInfrastructureProduct } from '../types';
2
3
  import { ProductLinkProps } from './ProductLink';
3
4
  import { AllProducts } from './types';
4
5
  import './ProjectsPopover.global.css';
5
6
  export interface ProjectsPopoverProps extends Omit<ProductLinkProps, 'product' | 'ctxProduct'> {
6
- product: AllProducts;
7
+ product: AllProducts & VchasnoInfrastructureProduct;
7
8
  className?: string;
8
9
  vchasnoTitle?: string;
9
10
  zakupivliTitle?: string;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import { AllProducts, VchasnoProduct, ZakupivliProduct } from './types';
2
+ import { VchasnoProduct } from '../types';
3
+ import { ZakupivliProduct } from './types';
3
4
  export declare const hrefMap: Record<VchasnoProduct | ZakupivliProduct, string>;
4
- export declare const tooltipHintMap: Record<AllProducts, string>;
5
+ export declare const tooltipHintMap: Record<VchasnoProduct | ZakupivliProduct, string>;
5
6
  export declare const titleMap: Record<VchasnoProduct, string>;
6
7
  export declare const iconMap: Record<VchasnoProduct | ZakupivliProduct, React.ReactElement>;
@@ -1,7 +1,7 @@
1
- export declare const vchasnoProductsList: readonly ["edo", "kep", "kasa", "edi", "ttn"];
1
+ import { VchasnoProduct } from '../types';
2
+ export declare const vchasnoProductsList: VchasnoProduct[];
2
3
  export declare const zakupivliProductsList: readonly ["zakupivli", "prozorroSale", "prozorroMarket", "prozorroRRO"];
3
- export type VchasnoProduct = (typeof vchasnoProductsList)[number];
4
- export declare const isVchasnoProduct: (product: string) => product is "edo" | "edi" | "ttn" | "kep" | "kasa";
4
+ export declare const isVchasnoProduct: (product: string) => product is VchasnoProduct;
5
5
  export type ZakupivliProduct = (typeof zakupivliProductsList)[number];
6
6
  export declare const isZakupivliProduct: (product: string) => product is "zakupivli" | "prozorroSale" | "prozorroMarket" | "prozorroRRO";
7
7
  export type AllProducts = VchasnoProduct | ZakupivliProduct;
@@ -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';
@@ -22,3 +22,9 @@ export interface EllipsisText {
22
22
  /** для скорочення тексту і виведення 3 точок */
23
23
  ellipsis?: boolean;
24
24
  }
25
+ export interface TextAlign {
26
+ /** для центрування тексту **/
27
+ textAlign?: 'center' | 'start' | 'end' | 'justify';
28
+ }
29
+ export type VchasnoProduct = 'edo' | 'kep' | 'kasa' | 'edi' | 'ttn';
30
+ export type VchasnoInfrastructureProduct = 'dm';