@vchasno/ui-kit 0.2.17 → 0.2.19
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.
- package/CHANGELOG.md +6 -0
- package/dist/Datepicker/types/components/FollowUs/FollowUs.d.ts +14 -0
- package/dist/Datepicker/types/components/FollowUs/config.d.ts +4 -0
- package/dist/Datepicker/types/components/FollowUs/index.d.ts +2 -0
- package/dist/Datepicker/types/components/FollowUs/types.d.ts +1 -0
- package/dist/Datepicker/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
- package/dist/Datepicker/types/components/MobileAppLinks/config.d.ts +4 -0
- package/dist/Datepicker/types/components/MobileAppLinks/index.d.ts +2 -0
- package/dist/Datepicker/types/components/MobileAppLinks/types.d.ts +4 -0
- package/dist/Datepicker/types/components/ProjectsPopover/mappers.d.ts +2 -1
- package/dist/Datepicker/types/components/ProjectsPopover/types.d.ts +4 -3
- package/dist/Datepicker/types/components/index.d.ts +4 -0
- package/dist/Datepicker/types/components/types.d.ts +5 -0
- package/dist/ProjectsPopover/index.cjs.js +4 -4
- package/dist/ProjectsPopover/index.cjs.js.map +1 -1
- package/dist/ProjectsPopover/index.d.ts +2 -2
- package/dist/ProjectsPopover/index.js +4 -4
- package/dist/ProjectsPopover/index.js.map +1 -1
- package/dist/ProjectsPopover/types/components/FollowUs/FollowUs.d.ts +14 -0
- package/dist/ProjectsPopover/types/components/FollowUs/config.d.ts +4 -0
- package/dist/ProjectsPopover/types/components/FollowUs/index.d.ts +2 -0
- package/dist/ProjectsPopover/types/components/FollowUs/types.d.ts +1 -0
- package/dist/ProjectsPopover/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
- package/dist/ProjectsPopover/types/components/MobileAppLinks/config.d.ts +4 -0
- package/dist/ProjectsPopover/types/components/MobileAppLinks/index.d.ts +2 -0
- package/dist/ProjectsPopover/types/components/MobileAppLinks/types.d.ts +4 -0
- package/dist/ProjectsPopover/types/components/ProjectsPopover/mappers.d.ts +2 -1
- package/dist/ProjectsPopover/types/components/ProjectsPopover/types.d.ts +4 -3
- package/dist/ProjectsPopover/types/components/index.d.ts +4 -0
- package/dist/ProjectsPopover/types/components/types.d.ts +5 -0
- package/dist/Select/index.cjs.js +3 -3
- package/dist/Select/index.cjs.js.map +1 -1
- package/dist/Select/index.js +3 -3
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/types/components/FollowUs/FollowUs.d.ts +14 -0
- package/dist/Select/types/components/FollowUs/config.d.ts +4 -0
- package/dist/Select/types/components/FollowUs/index.d.ts +2 -0
- package/dist/Select/types/components/FollowUs/types.d.ts +1 -0
- package/dist/Select/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
- package/dist/Select/types/components/MobileAppLinks/config.d.ts +4 -0
- package/dist/Select/types/components/MobileAppLinks/index.d.ts +2 -0
- package/dist/Select/types/components/MobileAppLinks/types.d.ts +4 -0
- package/dist/Select/types/components/ProjectsPopover/mappers.d.ts +2 -1
- package/dist/Select/types/components/ProjectsPopover/types.d.ts +4 -3
- package/dist/Select/types/components/index.d.ts +4 -0
- package/dist/Select/types/components/types.d.ts +5 -0
- package/dist/SelectCreatable/index.cjs.js +3 -3
- package/dist/SelectCreatable/index.cjs.js.map +1 -1
- package/dist/SelectCreatable/index.js +3 -3
- package/dist/SelectCreatable/index.js.map +1 -1
- package/dist/SelectCreatable/types/components/FollowUs/FollowUs.d.ts +14 -0
- package/dist/SelectCreatable/types/components/FollowUs/config.d.ts +4 -0
- package/dist/SelectCreatable/types/components/FollowUs/index.d.ts +2 -0
- package/dist/SelectCreatable/types/components/FollowUs/types.d.ts +1 -0
- package/dist/SelectCreatable/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
- package/dist/SelectCreatable/types/components/MobileAppLinks/config.d.ts +4 -0
- package/dist/SelectCreatable/types/components/MobileAppLinks/index.d.ts +2 -0
- package/dist/SelectCreatable/types/components/MobileAppLinks/types.d.ts +4 -0
- package/dist/SelectCreatable/types/components/ProjectsPopover/mappers.d.ts +2 -1
- package/dist/SelectCreatable/types/components/ProjectsPopover/types.d.ts +4 -3
- package/dist/SelectCreatable/types/components/index.d.ts +4 -0
- package/dist/SelectCreatable/types/components/types.d.ts +5 -0
- package/dist/index.d.ts +36 -3
- package/dist/index.js +122 -48
- package/dist/index.js.map +1 -1
- package/dist/types/components/FollowUs/FollowUs.d.ts +14 -0
- package/dist/types/components/FollowUs/config.d.ts +4 -0
- package/dist/types/components/FollowUs/index.d.ts +2 -0
- package/dist/types/components/FollowUs/types.d.ts +1 -0
- package/dist/types/components/MobileAppLinks/MobileAppLinks.d.ts +16 -0
- package/dist/types/components/MobileAppLinks/config.d.ts +4 -0
- package/dist/types/components/MobileAppLinks/index.d.ts +2 -0
- package/dist/types/components/MobileAppLinks/types.d.ts +4 -0
- package/dist/types/components/ProjectsPopover/mappers.d.ts +2 -1
- package/dist/types/components/ProjectsPopover/types.d.ts +4 -3
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/types.d.ts +5 -0
- package/package.json +4 -3
|
@@ -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 @@
|
|
|
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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { VchasnoProduct } from '../types';
|
|
2
|
+
export declare const vchasnoProductsList: VchasnoProduct[];
|
|
3
|
+
export declare const vchasnoProductsWithoutSiteList: readonly ["dm"];
|
|
2
4
|
export declare const zakupivliProductsList: readonly ["zakupivli", "prozorroSale", "prozorroMarket", "prozorroRRO"];
|
|
3
|
-
export
|
|
4
|
-
export declare const isVchasnoProduct: (product: string) => product is "edo" | "edi" | "ttn" | "kep" | "kasa";
|
|
5
|
+
export declare const isVchasnoProduct: (product: string) => product is VchasnoProduct;
|
|
5
6
|
export type ZakupivliProduct = (typeof zakupivliProductsList)[number];
|
|
6
7
|
export declare const isZakupivliProduct: (product: string) => product is "zakupivli" | "prozorroSale" | "prozorroMarket" | "prozorroRRO";
|
|
7
8
|
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,8 @@ 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' | 'dm';
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ interface EllipsisText {
|
|
|
43
43
|
/** для скорочення тексту і виведення 3 точок */
|
|
44
44
|
ellipsis?: boolean;
|
|
45
45
|
}
|
|
46
|
+
type VchasnoProduct = 'edo' | 'kep' | 'kasa' | 'edi' | 'ttn' | 'dm';
|
|
46
47
|
|
|
47
48
|
type ButtonTheme = "primary" | "secondary" | "transparent" | "light" | "danger";
|
|
48
49
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Partial<Sizable>, Partial<LoadingFeedback> {
|
|
@@ -246,9 +247,9 @@ declare const SvgBorder: React.ForwardRefExoticComponent<SvgBorderProps & React.
|
|
|
246
247
|
|
|
247
248
|
declare const composeRoundedBorderPath: (width: number, height: number, radiusOffset: number) => string;
|
|
248
249
|
|
|
249
|
-
type Product = 'edo' | 'edi' | 'ttn' | 'kep' | 'kasa' | 'vchasno';
|
|
250
|
+
type Product$2 = 'edo' | 'edi' | 'ttn' | 'kep' | 'kasa' | 'vchasno';
|
|
250
251
|
interface SplashLogoProps extends HTMLAttributes<HTMLDivElement> {
|
|
251
|
-
project?: Product;
|
|
252
|
+
project?: Product$2;
|
|
252
253
|
color?: string;
|
|
253
254
|
width?: string;
|
|
254
255
|
height?: string;
|
|
@@ -260,9 +261,41 @@ interface BlackTooltipProps extends TooltipProps {
|
|
|
260
261
|
}
|
|
261
262
|
declare const BlackTooltip: _emotion_styled.StyledComponent<TooltipProps & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
|
|
262
263
|
|
|
264
|
+
interface LinkConfig {
|
|
265
|
+
android: string;
|
|
266
|
+
ios: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
type Product$1 = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
|
|
270
|
+
|
|
271
|
+
interface MobileAppLinksProps {
|
|
272
|
+
android?: boolean;
|
|
273
|
+
ios?: boolean;
|
|
274
|
+
label?: string;
|
|
275
|
+
hideTitle?: boolean;
|
|
276
|
+
product: Product$1;
|
|
277
|
+
onClick?: (target: keyof LinkConfig) => void;
|
|
278
|
+
direction?: FlexBoxProps['direction'];
|
|
279
|
+
}
|
|
280
|
+
declare const MobileAppLinks: React.FC<MobileAppLinksProps>;
|
|
281
|
+
|
|
282
|
+
type Social = 'fb' | 'inst' | 'telegram' | 'youtube' | 'tiktok';
|
|
283
|
+
|
|
284
|
+
type Product = Exclude<VchasnoProduct, 'edi' | 'ttn' | 'dm' | 'kasa' | 'kep'>;
|
|
285
|
+
|
|
286
|
+
interface FollowUsProps {
|
|
287
|
+
label?: string;
|
|
288
|
+
product?: Product;
|
|
289
|
+
hideTitle?: boolean;
|
|
290
|
+
onClick?: (target: Social) => void;
|
|
291
|
+
gap?: number;
|
|
292
|
+
list?: Social[];
|
|
293
|
+
}
|
|
294
|
+
declare const FollowUs: React.FC<FollowUsProps>;
|
|
295
|
+
|
|
263
296
|
declare const useClientRect: () => {
|
|
264
297
|
rect: DOMRect | null;
|
|
265
298
|
ref: React.RefObject<HTMLDivElement>;
|
|
266
299
|
};
|
|
267
300
|
|
|
268
|
-
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 };
|
|
301
|
+
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 };
|